/*! 
   *
    __  __      _            _       _              _                       
   |  \/  | ___| |_ __ _  __| | __ _| |_ __ _ _ __ | | __ _ _   _  ___ _ __ 
   | |\/| |/ _ \ __/ _` |/ _` |/ _` | __/ _` | '_ \| |/ _` | | | |/ _ \ '__|
   | |  | |  __/ || (_| | (_| | (_| | || (_| | |_) | | (_| | |_| |  __/ |   
   |_|  |_|\___|\__\__,_|\__,_|\__,_|\__\__,_| .__/|_|\__,_|\__, |\___|_|   
                                             |_|            |___/         
   
   *  Copyright 2010-2024 Institut de Recherche et d'Innovation 
   *  contributor(s) : Karim Hamidou, Samuel Huron, Raphael Velt, Thibaut Cavalie, Yves-Marie Haussonne, Nicolas Durand, Olivier Aubert
   *   
   *  contact@iri.centrepompidou.fr
   *  http://www.iri.centrepompidou.fr 
   *   
   *  This software is a computer program whose purpose is to show and add annotations on a video .
   *  This software is governed by the CeCILL-C license under French law and
   *  abiding by the rules of distribution of free software. You can  use, 
   *  modify and/ or redistribute the software under the terms of the CeCILL-C
   *  license as circulated by CEA, CNRS and INRIA at the following URL
   *  "http://www.cecill.info". 
   *  
   *  The fact that you are presently reading this means that you have had
   *  knowledge of the CeCILL-C license and that you accept its terms.
   *  metadataplayer - version 0.0.1
  */
(function(t,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.MetadataPlayer=n())})(this,function(){"use strict";var j0=Object.defineProperty;var T0=(t,n,l)=>n in t?j0(t,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[n]=l;var Cr=(t,n,l)=>T0(t,typeof n!="symbol"?n+"":n,l);const style={},global$1=globalThis||void 0||self;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var l=function d(){return this instanceof d?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};l.prototype=n.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(t).forEach(function(d){var m=Object.getOwnPropertyDescriptor(t,d);Object.defineProperty(l,d,m.get?m:{enumerable:!0,get:function(){return t[d]}})}),l}var jquery={exports:{}};/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */(function(t){(function(n,l){t.exports=n.document?l(n,!0):function(d){if(!d.document)throw new Error("jQuery requires a window with a document");return l(d)}})(typeof window<"u"?window:commonjsGlobal,function(n,l){var d=[],m=Object.getPrototypeOf,h=d.slice,S=d.flat?function(V){return d.flat.call(V)}:function(V){return d.concat.apply([],V)},k=d.push,A=d.indexOf,B={},M=B.toString,j=B.hasOwnProperty,I=j.toString,P=I.call(Object),$={},z=function(ie){return typeof ie=="function"&&typeof ie.nodeType!="number"&&typeof ie.item!="function"},N=function(ie){return ie!=null&&ie===ie.window},F=n.document,U={type:!0,src:!0,nonce:!0,noModule:!0};function J(V,ie,be){be=be||F;var Ee,Ie,De=be.createElement("script");if(De.text=V,ie)for(Ee in U)Ie=ie[Ee]||ie.getAttribute&&ie.getAttribute(Ee),Ie&&De.setAttribute(Ee,Ie);be.head.appendChild(De).parentNode.removeChild(De)}function te(V){return V==null?V+"":typeof V=="object"||typeof V=="function"?B[M.call(V)]||"object":typeof V}var se="3.7.1",de=/HTML$/i,Q=function(V,ie){return new Q.fn.init(V,ie)};Q.fn=Q.prototype={jquery:se,constructor:Q,length:0,toArray:function(){return h.call(this)},get:function(V){return V==null?h.call(this):V<0?this[V+this.length]:this[V]},pushStack:function(V){var ie=Q.merge(this.constructor(),V);return ie.prevObject=this,ie},each:function(V){return Q.each(this,V)},map:function(V){return this.pushStack(Q.map(this,function(ie,be){return V.call(ie,be,ie)}))},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Q.grep(this,function(V,ie){return(ie+1)%2}))},odd:function(){return this.pushStack(Q.grep(this,function(V,ie){return ie%2}))},eq:function(V){var ie=this.length,be=+V+(V<0?ie:0);return this.pushStack(be>=0&&be<ie?[this[be]]:[])},end:function(){return this.prevObject||this.constructor()},push:k,sort:d.sort,splice:d.splice},Q.extend=Q.fn.extend=function(){var V,ie,be,Ee,Ie,De,Ke=arguments[0]||{},St=1,vt=arguments.length,Dt=!1;for(typeof Ke=="boolean"&&(Dt=Ke,Ke=arguments[St]||{},St++),typeof Ke!="object"&&!z(Ke)&&(Ke={}),St===vt&&(Ke=this,St--);St<vt;St++)if((V=arguments[St])!=null)for(ie in V)Ee=V[ie],!(ie==="__proto__"||Ke===Ee)&&(Dt&&Ee&&(Q.isPlainObject(Ee)||(Ie=Array.isArray(Ee)))?(be=Ke[ie],Ie&&!Array.isArray(be)?De=[]:!Ie&&!Q.isPlainObject(be)?De={}:De=be,Ie=!1,Ke[ie]=Q.extend(Dt,De,Ee)):Ee!==void 0&&(Ke[ie]=Ee));return Ke},Q.extend({expando:"jQuery"+(se+Math.random()).replace(/\D/g,""),isReady:!0,error:function(V){throw new Error(V)},noop:function(){},isPlainObject:function(V){var ie,be;return!V||M.call(V)!=="[object Object]"?!1:(ie=m(V),ie?(be=j.call(ie,"constructor")&&ie.constructor,typeof be=="function"&&I.call(be)===P):!0)},isEmptyObject:function(V){var ie;for(ie in V)return!1;return!0},globalEval:function(V,ie,be){J(V,{nonce:ie&&ie.nonce},be)},each:function(V,ie){var be,Ee=0;if(ve(V))for(be=V.length;Ee<be&&ie.call(V[Ee],Ee,V[Ee])!==!1;Ee++);else for(Ee in V)if(ie.call(V[Ee],Ee,V[Ee])===!1)break;return V},text:function(V){var ie,be="",Ee=0,Ie=V.nodeType;if(!Ie)for(;ie=V[Ee++];)be+=Q.text(ie);return Ie===1||Ie===11?V.textContent:Ie===9?V.documentElement.textContent:Ie===3||Ie===4?V.nodeValue:be},makeArray:function(V,ie){var be=ie||[];return V!=null&&(ve(Object(V))?Q.merge(be,typeof V=="string"?[V]:V):k.call(be,V)),be},inArray:function(V,ie,be){return ie==null?-1:A.call(ie,V,be)},isXMLDoc:function(V){var ie=V&&V.namespaceURI,be=V&&(V.ownerDocument||V).documentElement;return!de.test(ie||be&&be.nodeName||"HTML")},merge:function(V,ie){for(var be=+ie.length,Ee=0,Ie=V.length;Ee<be;Ee++)V[Ie++]=ie[Ee];return V.length=Ie,V},grep:function(V,ie,be){for(var Ee,Ie=[],De=0,Ke=V.length,St=!be;De<Ke;De++)Ee=!ie(V[De],De),Ee!==St&&Ie.push(V[De]);return Ie},map:function(V,ie,be){var Ee,Ie,De=0,Ke=[];if(ve(V))for(Ee=V.length;De<Ee;De++)Ie=ie(V[De],De,be),Ie!=null&&Ke.push(Ie);else for(De in V)Ie=ie(V[De],De,be),Ie!=null&&Ke.push(Ie);return S(Ke)},guid:1,support:$}),typeof Symbol=="function"&&(Q.fn[Symbol.iterator]=d[Symbol.iterator]),Q.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(V,ie){B["[object "+ie+"]"]=ie.toLowerCase()});function ve(V){var ie=!!V&&"length"in V&&V.length,be=te(V);return z(V)||N(V)?!1:be==="array"||ie===0||typeof ie=="number"&&ie>0&&ie-1 in V}function he(V,ie){return V.nodeName&&V.nodeName.toLowerCase()===ie.toLowerCase()}var ke=d.pop,T=d.sort,u=d.splice,p="[\\x20\\t\\r\\n\\f]",b=new RegExp("^"+p+"+|((?:^|[^\\\\])(?:\\\\.)*)"+p+"+$","g");Q.contains=function(V,ie){var be=ie&&ie.parentNode;return V===be||!!(be&&be.nodeType===1&&(V.contains?V.contains(be):V.compareDocumentPosition&&V.compareDocumentPosition(be)&16))};var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function c(V,ie){return ie?V==="\0"?"�":V.slice(0,-1)+"\\"+V.charCodeAt(V.length-1).toString(16)+" ":"\\"+V}Q.escapeSelector=function(V){return(V+"").replace(e,c)};var y=F,w=k;(function(){var V,ie,be,Ee,Ie,De=w,Ke,St,vt,Dt,Jt,or=Q.expando,Wt=0,jr=0,Dr=sa(),ni=sa(),ri=sa(),Ei=sa(),xi=function(ut,qt){return ut===qt&&(Ie=!0),0},un="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",fn="(?:\\\\[\\da-fA-F]{1,6}"+p+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",hi="\\["+p+"*("+fn+")(?:"+p+"*([*^$|!~]?=)"+p+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+fn+"))|)"+p+"*\\]",Mn=":("+fn+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+hi+")*)|.*)\\)|)",di=new RegExp(p+"+","g"),wi=new RegExp("^"+p+"*,"+p+"*"),ia=new RegExp("^"+p+"*([>+~]|"+p+")"+p+"*"),va=new RegExp(p+"|>"),Ji=new RegExp(Mn),In=new RegExp("^"+fn+"$"),Ki={ID:new RegExp("^#("+fn+")"),CLASS:new RegExp("^\\.("+fn+")"),TAG:new RegExp("^("+fn+"|[*])"),ATTR:new RegExp("^"+hi),PSEUDO:new RegExp("^"+Mn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+p+"*(even|odd|(([+-]|)(\\d*)n|)"+p+"*(?:([+-]|)"+p+"*(\\d+)|))"+p+"*\\)|)","i"),bool:new RegExp("^(?:"+un+")$","i"),needsContext:new RegExp("^"+p+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+p+"*((?:-\\d)?\\d*)"+p+"*\\)|)(?=[^-]|$)","i")},gn=/^(?:input|select|textarea|button)$/i,En=/^h\d$/i,Ri=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,na=/[+~]/,yn=new RegExp("\\\\[\\da-fA-F]{1,6}"+p+"?|\\\\([^\\r\\n\\f])","g"),ln=function(ut,qt){var Ht="0x"+ut.slice(1)-65536;return qt||(Ht<0?String.fromCharCode(Ht+65536):String.fromCharCode(Ht>>10|55296,Ht&1023|56320))},Di=function(){An()},Aa=$n(function(ut){return ut.disabled===!0&&he(ut,"fieldset")},{dir:"parentNode",next:"legend"});function aa(){try{return Ke.activeElement}catch{}}try{De.apply(d=h.call(y.childNodes),y.childNodes),d[y.childNodes.length].nodeType}catch{De={apply:function(qt,Ht){w.apply(qt,h.call(Ht))},call:function(qt){w.apply(qt,h.call(arguments,1))}}}function gi(ut,qt,Ht,Gt){var st,jt,Mt,ur,yr,Lr,Or,$r=qt&&qt.ownerDocument,oi=qt?qt.nodeType:9;if(Ht=Ht||[],typeof ut!="string"||!ut||oi!==1&&oi!==9&&oi!==11)return Ht;if(!Gt&&(An(qt),qt=qt||Ke,vt)){if(oi!==11&&(yr=Ri.exec(ut)))if(st=yr[1]){if(oi===9)if(Mt=qt.getElementById(st)){if(Mt.id===st)return De.call(Ht,Mt),Ht}else return Ht;else if($r&&(Mt=$r.getElementById(st))&&gi.contains(qt,Mt)&&Mt.id===st)return De.call(Ht,Mt),Ht}else{if(yr[2])return De.apply(Ht,qt.getElementsByTagName(ut)),Ht;if((st=yr[3])&&qt.getElementsByClassName)return De.apply(Ht,qt.getElementsByClassName(st)),Ht}if(!Ei[ut+" "]&&(!Dt||!Dt.test(ut))){if(Or=ut,$r=qt,oi===1&&(va.test(ut)||ia.test(ut))){for($r=na.test(ut)&&Ca(qt.parentNode)||qt,($r!=qt||!$.scope)&&((ur=qt.getAttribute("id"))?ur=Q.escapeSelector(ur):qt.setAttribute("id",ur=or)),Lr=Gn(ut),jt=Lr.length;jt--;)Lr[jt]=(ur?"#"+ur:":scope")+" "+tn(Lr[jt]);Or=Lr.join(",")}try{return De.apply(Ht,$r.querySelectorAll(Or)),Ht}catch{Ei(ut,!0)}finally{ur===or&&qt.removeAttribute("id")}}}return Va(ut.replace(b,"$1"),qt,Ht,Gt)}function sa(){var ut=[];function qt(Ht,Gt){return ut.push(Ht+" ")>ie.cacheLength&&delete qt[ut.shift()],qt[Ht+" "]=Gt}return qt}function en(ut){return ut[or]=!0,ut}function Vn(ut){var qt=Ke.createElement("fieldset");try{return!!ut(qt)}catch{return!1}finally{qt.parentNode&&qt.parentNode.removeChild(qt),qt=null}}function As(ut){return function(qt){return he(qt,"input")&&qt.type===ut}}function Cs(ut){return function(qt){return(he(qt,"input")||he(qt,"button"))&&qt.type===ut}}function Wa(ut){return function(qt){return"form"in qt?qt.parentNode&&qt.disabled===!1?"label"in qt?"label"in qt.parentNode?qt.parentNode.disabled===ut:qt.disabled===ut:qt.isDisabled===ut||qt.isDisabled!==!ut&&Aa(qt)===ut:qt.disabled===ut:"label"in qt?qt.disabled===ut:!1}}function Vi(ut){return en(function(qt){return qt=+qt,en(function(Ht,Gt){for(var st,jt=ut([],Ht.length,qt),Mt=jt.length;Mt--;)Ht[st=jt[Mt]]&&(Ht[st]=!(Gt[st]=Ht[st]))})})}function Ca(ut){return ut&&typeof ut.getElementsByTagName<"u"&&ut}function An(ut){var qt,Ht=ut?ut.ownerDocument||ut:y;return Ht==Ke||Ht.nodeType!==9||!Ht.documentElement||(Ke=Ht,St=Ke.documentElement,vt=!Q.isXMLDoc(Ke),Jt=St.matches||St.webkitMatchesSelector||St.msMatchesSelector,St.msMatchesSelector&&y!=Ke&&(qt=Ke.defaultView)&&qt.top!==qt&&qt.addEventListener("unload",Di),$.getById=Vn(function(Gt){return St.appendChild(Gt).id=Q.expando,!Ke.getElementsByName||!Ke.getElementsByName(Q.expando).length}),$.disconnectedMatch=Vn(function(Gt){return Jt.call(Gt,"*")}),$.scope=Vn(function(){return Ke.querySelectorAll(":scope")}),$.cssHas=Vn(function(){try{return Ke.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),$.getById?(ie.filter.ID=function(Gt){var st=Gt.replace(yn,ln);return function(jt){return jt.getAttribute("id")===st}},ie.find.ID=function(Gt,st){if(typeof st.getElementById<"u"&&vt){var jt=st.getElementById(Gt);return jt?[jt]:[]}}):(ie.filter.ID=function(Gt){var st=Gt.replace(yn,ln);return function(jt){var Mt=typeof jt.getAttributeNode<"u"&&jt.getAttributeNode("id");return Mt&&Mt.value===st}},ie.find.ID=function(Gt,st){if(typeof st.getElementById<"u"&&vt){var jt,Mt,ur,yr=st.getElementById(Gt);if(yr){if(jt=yr.getAttributeNode("id"),jt&&jt.value===Gt)return[yr];for(ur=st.getElementsByName(Gt),Mt=0;yr=ur[Mt++];)if(jt=yr.getAttributeNode("id"),jt&&jt.value===Gt)return[yr]}return[]}}),ie.find.TAG=function(Gt,st){return typeof st.getElementsByTagName<"u"?st.getElementsByTagName(Gt):st.querySelectorAll(Gt)},ie.find.CLASS=function(Gt,st){if(typeof st.getElementsByClassName<"u"&&vt)return st.getElementsByClassName(Gt)},Dt=[],Vn(function(Gt){var st;St.appendChild(Gt).innerHTML="<a id='"+or+"' href='' disabled='disabled'></a><select id='"+or+"-\r\\' disabled='disabled'><option selected=''></option></select>",Gt.querySelectorAll("[selected]").length||Dt.push("\\["+p+"*(?:value|"+un+")"),Gt.querySelectorAll("[id~="+or+"-]").length||Dt.push("~="),Gt.querySelectorAll("a#"+or+"+*").length||Dt.push(".#.+[+~]"),Gt.querySelectorAll(":checked").length||Dt.push(":checked"),st=Ke.createElement("input"),st.setAttribute("type","hidden"),Gt.appendChild(st).setAttribute("name","D"),St.appendChild(Gt).disabled=!0,Gt.querySelectorAll(":disabled").length!==2&&Dt.push(":enabled",":disabled"),st=Ke.createElement("input"),st.setAttribute("name",""),Gt.appendChild(st),Gt.querySelectorAll("[name='']").length||Dt.push("\\["+p+"*name"+p+"*="+p+`*(?:''|"")`)}),$.cssHas||Dt.push(":has"),Dt=Dt.length&&new RegExp(Dt.join("|")),xi=function(Gt,st){if(Gt===st)return Ie=!0,0;var jt=!Gt.compareDocumentPosition-!st.compareDocumentPosition;return jt||(jt=(Gt.ownerDocument||Gt)==(st.ownerDocument||st)?Gt.compareDocumentPosition(st):1,jt&1||!$.sortDetached&&st.compareDocumentPosition(Gt)===jt?Gt===Ke||Gt.ownerDocument==y&&gi.contains(y,Gt)?-1:st===Ke||st.ownerDocument==y&&gi.contains(y,st)?1:Ee?A.call(Ee,Gt)-A.call(Ee,st):0:jt&4?-1:1)}),Ke}gi.matches=function(ut,qt){return gi(ut,null,null,qt)},gi.matchesSelector=function(ut,qt){if(An(ut),vt&&!Ei[qt+" "]&&(!Dt||!Dt.test(qt)))try{var Ht=Jt.call(ut,qt);if(Ht||$.disconnectedMatch||ut.document&&ut.document.nodeType!==11)return Ht}catch{Ei(qt,!0)}return gi(qt,Ke,null,[ut]).length>0},gi.contains=function(ut,qt){return(ut.ownerDocument||ut)!=Ke&&An(ut),Q.contains(ut,qt)},gi.attr=function(ut,qt){(ut.ownerDocument||ut)!=Ke&&An(ut);var Ht=ie.attrHandle[qt.toLowerCase()],Gt=Ht&&j.call(ie.attrHandle,qt.toLowerCase())?Ht(ut,qt,!vt):void 0;return Gt!==void 0?Gt:ut.getAttribute(qt)},gi.error=function(ut){throw new Error("Syntax error, unrecognized expression: "+ut)},Q.uniqueSort=function(ut){var qt,Ht=[],Gt=0,st=0;if(Ie=!$.sortStable,Ee=!$.sortStable&&h.call(ut,0),T.call(ut,xi),Ie){for(;qt=ut[st++];)qt===ut[st]&&(Gt=Ht.push(st));for(;Gt--;)u.call(ut,Ht[Gt],1)}return Ee=null,ut},Q.fn.uniqueSort=function(){return this.pushStack(Q.uniqueSort(h.apply(this)))},ie=Q.expr={cacheLength:50,createPseudo:en,match:Ki,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(ut){return ut[1]=ut[1].replace(yn,ln),ut[3]=(ut[3]||ut[4]||ut[5]||"").replace(yn,ln),ut[2]==="~="&&(ut[3]=" "+ut[3]+" "),ut.slice(0,4)},CHILD:function(ut){return ut[1]=ut[1].toLowerCase(),ut[1].slice(0,3)==="nth"?(ut[3]||gi.error(ut[0]),ut[4]=+(ut[4]?ut[5]+(ut[6]||1):2*(ut[3]==="even"||ut[3]==="odd")),ut[5]=+(ut[7]+ut[8]||ut[3]==="odd")):ut[3]&&gi.error(ut[0]),ut},PSEUDO:function(ut){var qt,Ht=!ut[6]&&ut[2];return Ki.CHILD.test(ut[0])?null:(ut[3]?ut[2]=ut[4]||ut[5]||"":Ht&&Ji.test(Ht)&&(qt=Gn(Ht,!0))&&(qt=Ht.indexOf(")",Ht.length-qt)-Ht.length)&&(ut[0]=ut[0].slice(0,qt),ut[2]=Ht.slice(0,qt)),ut.slice(0,3))}},filter:{TAG:function(ut){var qt=ut.replace(yn,ln).toLowerCase();return ut==="*"?function(){return!0}:function(Ht){return he(Ht,qt)}},CLASS:function(ut){var qt=Dr[ut+" "];return qt||(qt=new RegExp("(^|"+p+")"+ut+"("+p+"|$)"))&&Dr(ut,function(Ht){return qt.test(typeof Ht.className=="string"&&Ht.className||typeof Ht.getAttribute<"u"&&Ht.getAttribute("class")||"")})},ATTR:function(ut,qt,Ht){return function(Gt){var st=gi.attr(Gt,ut);return st==null?qt==="!=":qt?(st+="",qt==="="?st===Ht:qt==="!="?st!==Ht:qt==="^="?Ht&&st.indexOf(Ht)===0:qt==="*="?Ht&&st.indexOf(Ht)>-1:qt==="$="?Ht&&st.slice(-Ht.length)===Ht:qt==="~="?(" "+st.replace(di," ")+" ").indexOf(Ht)>-1:qt==="|="?st===Ht||st.slice(0,Ht.length+1)===Ht+"-":!1):!0}},CHILD:function(ut,qt,Ht,Gt,st){var jt=ut.slice(0,3)!=="nth",Mt=ut.slice(-4)!=="last",ur=qt==="of-type";return Gt===1&&st===0?function(yr){return!!yr.parentNode}:function(yr,Lr,Or){var $r,oi,Qr,li,Ai,Ti=jt!==Mt?"nextSibling":"previousSibling",Ci=yr.parentNode,Oi=ur&&yr.nodeName.toLowerCase(),wn=!Or&&!ur,ei=!1;if(Ci){if(jt){for(;Ti;){for(Qr=yr;Qr=Qr[Ti];)if(ur?he(Qr,Oi):Qr.nodeType===1)return!1;Ai=Ti=ut==="only"&&!Ai&&"nextSibling"}return!0}if(Ai=[Mt?Ci.firstChild:Ci.lastChild],Mt&&wn){for(oi=Ci[or]||(Ci[or]={}),$r=oi[ut]||[],li=$r[0]===Wt&&$r[1],ei=li&&$r[2],Qr=li&&Ci.childNodes[li];Qr=++li&&Qr&&Qr[Ti]||(ei=li=0)||Ai.pop();)if(Qr.nodeType===1&&++ei&&Qr===yr){oi[ut]=[Wt,li,ei];break}}else if(wn&&(oi=yr[or]||(yr[or]={}),$r=oi[ut]||[],li=$r[0]===Wt&&$r[1],ei=li),ei===!1)for(;(Qr=++li&&Qr&&Qr[Ti]||(ei=li=0)||Ai.pop())&&!((ur?he(Qr,Oi):Qr.nodeType===1)&&++ei&&(wn&&(oi=Qr[or]||(Qr[or]={}),oi[ut]=[Wt,ei]),Qr===yr)););return ei-=st,ei===Gt||ei%Gt===0&&ei/Gt>=0}}},PSEUDO:function(ut,qt){var Ht,Gt=ie.pseudos[ut]||ie.setFilters[ut.toLowerCase()]||gi.error("unsupported pseudo: "+ut);return Gt[or]?Gt(qt):Gt.length>1?(Ht=[ut,ut,"",qt],ie.setFilters.hasOwnProperty(ut.toLowerCase())?en(function(st,jt){for(var Mt,ur=Gt(st,qt),yr=ur.length;yr--;)Mt=A.call(st,ur[yr]),st[Mt]=!(jt[Mt]=ur[yr])}):function(st){return Gt(st,0,Ht)}):Gt}},pseudos:{not:en(function(ut){var qt=[],Ht=[],Gt=Ta(ut.replace(b,"$1"));return Gt[or]?en(function(st,jt,Mt,ur){for(var yr,Lr=Gt(st,null,ur,[]),Or=st.length;Or--;)(yr=Lr[Or])&&(st[Or]=!(jt[Or]=yr))}):function(st,jt,Mt){return qt[0]=st,Gt(qt,null,Mt,Ht),qt[0]=null,!Ht.pop()}}),has:en(function(ut){return function(qt){return gi(ut,qt).length>0}}),contains:en(function(ut){return ut=ut.replace(yn,ln),function(qt){return(qt.textContent||Q.text(qt)).indexOf(ut)>-1}}),lang:en(function(ut){return In.test(ut||"")||gi.error("unsupported lang: "+ut),ut=ut.replace(yn,ln).toLowerCase(),function(qt){var Ht;do if(Ht=vt?qt.lang:qt.getAttribute("xml:lang")||qt.getAttribute("lang"))return Ht=Ht.toLowerCase(),Ht===ut||Ht.indexOf(ut+"-")===0;while((qt=qt.parentNode)&&qt.nodeType===1);return!1}}),target:function(ut){var qt=n.location&&n.location.hash;return qt&&qt.slice(1)===ut.id},root:function(ut){return ut===St},focus:function(ut){return ut===aa()&&Ke.hasFocus()&&!!(ut.type||ut.href||~ut.tabIndex)},enabled:Wa(!1),disabled:Wa(!0),checked:function(ut){return he(ut,"input")&&!!ut.checked||he(ut,"option")&&!!ut.selected},selected:function(ut){return ut.parentNode&&ut.parentNode.selectedIndex,ut.selected===!0},empty:function(ut){for(ut=ut.firstChild;ut;ut=ut.nextSibling)if(ut.nodeType<6)return!1;return!0},parent:function(ut){return!ie.pseudos.empty(ut)},header:function(ut){return En.test(ut.nodeName)},input:function(ut){return gn.test(ut.nodeName)},button:function(ut){return he(ut,"input")&&ut.type==="button"||he(ut,"button")},text:function(ut){var qt;return he(ut,"input")&&ut.type==="text"&&((qt=ut.getAttribute("type"))==null||qt.toLowerCase()==="text")},first:Vi(function(){return[0]}),last:Vi(function(ut,qt){return[qt-1]}),eq:Vi(function(ut,qt,Ht){return[Ht<0?Ht+qt:Ht]}),even:Vi(function(ut,qt){for(var Ht=0;Ht<qt;Ht+=2)ut.push(Ht);return ut}),odd:Vi(function(ut,qt){for(var Ht=1;Ht<qt;Ht+=2)ut.push(Ht);return ut}),lt:Vi(function(ut,qt,Ht){var Gt;for(Ht<0?Gt=Ht+qt:Ht>qt?Gt=qt:Gt=Ht;--Gt>=0;)ut.push(Gt);return ut}),gt:Vi(function(ut,qt,Ht){for(var Gt=Ht<0?Ht+qt:Ht;++Gt<qt;)ut.push(Gt);return ut})}},ie.pseudos.nth=ie.pseudos.eq;for(V in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})ie.pseudos[V]=As(V);for(V in{submit:!0,reset:!0})ie.pseudos[V]=Cs(V);function ga(){}ga.prototype=ie.filters=ie.pseudos,ie.setFilters=new ga;function Gn(ut,qt){var Ht,Gt,st,jt,Mt,ur,yr,Lr=ni[ut+" "];if(Lr)return qt?0:Lr.slice(0);for(Mt=ut,ur=[],yr=ie.preFilter;Mt;){(!Ht||(Gt=wi.exec(Mt)))&&(Gt&&(Mt=Mt.slice(Gt[0].length)||Mt),ur.push(st=[])),Ht=!1,(Gt=ia.exec(Mt))&&(Ht=Gt.shift(),st.push({value:Ht,type:Gt[0].replace(b," ")}),Mt=Mt.slice(Ht.length));for(jt in ie.filter)(Gt=Ki[jt].exec(Mt))&&(!yr[jt]||(Gt=yr[jt](Gt)))&&(Ht=Gt.shift(),st.push({value:Ht,type:jt,matches:Gt}),Mt=Mt.slice(Ht.length));if(!Ht)break}return qt?Mt.length:Mt?gi.error(ut):ni(ut,ur).slice(0)}function tn(ut){for(var qt=0,Ht=ut.length,Gt="";qt<Ht;qt++)Gt+=ut[qt].value;return Gt}function $n(ut,qt,Ht){var Gt=qt.dir,st=qt.next,jt=st||Gt,Mt=Ht&&jt==="parentNode",ur=jr++;return qt.first?function(yr,Lr,Or){for(;yr=yr[Gt];)if(yr.nodeType===1||Mt)return ut(yr,Lr,Or);return!1}:function(yr,Lr,Or){var $r,oi,Qr=[Wt,ur];if(Or){for(;yr=yr[Gt];)if((yr.nodeType===1||Mt)&&ut(yr,Lr,Or))return!0}else for(;yr=yr[Gt];)if(yr.nodeType===1||Mt)if(oi=yr[or]||(yr[or]={}),st&&he(yr,st))yr=yr[Gt]||yr;else{if(($r=oi[jt])&&$r[0]===Wt&&$r[1]===ur)return Qr[2]=$r[2];if(oi[jt]=Qr,Qr[2]=ut(yr,Lr,Or))return!0}return!1}}function ja(ut){return ut.length>1?function(qt,Ht,Gt){for(var st=ut.length;st--;)if(!ut[st](qt,Ht,Gt))return!1;return!0}:ut[0]}function js(ut,qt,Ht){for(var Gt=0,st=qt.length;Gt<st;Gt++)gi(ut,qt[Gt],Ht);return Ht}function ya(ut,qt,Ht,Gt,st){for(var jt,Mt=[],ur=0,yr=ut.length,Lr=qt!=null;ur<yr;ur++)(jt=ut[ur])&&(!Ht||Ht(jt,Gt,st))&&(Mt.push(jt),Lr&&qt.push(ur));return Mt}function Cn(ut,qt,Ht,Gt,st,jt){return Gt&&!Gt[or]&&(Gt=Cn(Gt)),st&&!st[or]&&(st=Cn(st,jt)),en(function(Mt,ur,yr,Lr){var Or,$r,oi,Qr,li=[],Ai=[],Ti=ur.length,Ci=Mt||js(qt||"*",yr.nodeType?[yr]:yr,[]),Oi=ut&&(Mt||!qt)?ya(Ci,li,ut,yr,Lr):Ci;if(Ht?(Qr=st||(Mt?ut:Ti||Gt)?[]:ur,Ht(Oi,Qr,yr,Lr)):Qr=Oi,Gt)for(Or=ya(Qr,Ai),Gt(Or,[],yr,Lr),$r=Or.length;$r--;)(oi=Or[$r])&&(Qr[Ai[$r]]=!(Oi[Ai[$r]]=oi));if(Mt){if(st||ut){if(st){for(Or=[],$r=Qr.length;$r--;)(oi=Qr[$r])&&Or.push(Oi[$r]=oi);st(null,Qr=[],Or,Lr)}for($r=Qr.length;$r--;)(oi=Qr[$r])&&(Or=st?A.call(Mt,oi):li[$r])>-1&&(Mt[Or]=!(ur[Or]=oi))}}else Qr=ya(Qr===ur?Qr.splice(Ti,Qr.length):Qr),st?st(null,ur,Qr,Lr):De.apply(ur,Qr)})}function Li(ut){for(var qt,Ht,Gt,st=ut.length,jt=ie.relative[ut[0].type],Mt=jt||ie.relative[" "],ur=jt?1:0,yr=$n(function($r){return $r===qt},Mt,!0),Lr=$n(function($r){return A.call(qt,$r)>-1},Mt,!0),Or=[function($r,oi,Qr){var li=!jt&&(Qr||oi!=be)||((qt=oi).nodeType?yr($r,oi,Qr):Lr($r,oi,Qr));return qt=null,li}];ur<st;ur++)if(Ht=ie.relative[ut[ur].type])Or=[$n(ja(Or),Ht)];else{if(Ht=ie.filter[ut[ur].type].apply(null,ut[ur].matches),Ht[or]){for(Gt=++ur;Gt<st&&!ie.relative[ut[Gt].type];Gt++);return Cn(ur>1&&ja(Or),ur>1&&tn(ut.slice(0,ur-1).concat({value:ut[ur-2].type===" "?"*":""})).replace(b,"$1"),Ht,ur<Gt&&Li(ut.slice(ur,Gt)),Gt<st&&Li(ut=ut.slice(Gt)),Gt<st&&tn(ut))}Or.push(Ht)}return ja(Or)}function Ka(ut,qt){var Ht=qt.length>0,Gt=ut.length>0,st=function(jt,Mt,ur,yr,Lr){var Or,$r,oi,Qr=0,li="0",Ai=jt&&[],Ti=[],Ci=be,Oi=jt||Gt&&ie.find.TAG("*",Lr),wn=Wt+=Ci==null?1:Math.random()||.1,ei=Oi.length;for(Lr&&(be=Mt==Ke||Mt||Lr);li!==ei&&(Or=Oi[li])!=null;li++){if(Gt&&Or){for($r=0,!Mt&&Or.ownerDocument!=Ke&&(An(Or),ur=!vt);oi=ut[$r++];)if(oi(Or,Mt||Ke,ur)){De.call(yr,Or);break}Lr&&(Wt=wn)}Ht&&((Or=!oi&&Or)&&Qr--,jt&&Ai.push(Or))}if(Qr+=li,Ht&&li!==Qr){for($r=0;oi=qt[$r++];)oi(Ai,Ti,Mt,ur);if(jt){if(Qr>0)for(;li--;)Ai[li]||Ti[li]||(Ti[li]=ke.call(yr));Ti=ya(Ti)}De.apply(yr,Ti),Lr&&!jt&&Ti.length>0&&Qr+qt.length>1&&Q.uniqueSort(yr)}return Lr&&(Wt=wn,be=Ci),Ai};return Ht?en(st):st}function Ta(ut,qt){var Ht,Gt=[],st=[],jt=ri[ut+" "];if(!jt){for(qt||(qt=Gn(ut)),Ht=qt.length;Ht--;)jt=Li(qt[Ht]),jt[or]?Gt.push(jt):st.push(jt);jt=ri(ut,Ka(st,Gt)),jt.selector=ut}return jt}function Va(ut,qt,Ht,Gt){var st,jt,Mt,ur,yr,Lr=typeof ut=="function"&&ut,Or=!Gt&&Gn(ut=Lr.selector||ut);if(Ht=Ht||[],Or.length===1){if(jt=Or[0]=Or[0].slice(0),jt.length>2&&(Mt=jt[0]).type==="ID"&&qt.nodeType===9&&vt&&ie.relative[jt[1].type]){if(qt=(ie.find.ID(Mt.matches[0].replace(yn,ln),qt)||[])[0],qt)Lr&&(qt=qt.parentNode);else return Ht;ut=ut.slice(jt.shift().value.length)}for(st=Ki.needsContext.test(ut)?0:jt.length;st--&&(Mt=jt[st],!ie.relative[ur=Mt.type]);)if((yr=ie.find[ur])&&(Gt=yr(Mt.matches[0].replace(yn,ln),na.test(jt[0].type)&&Ca(qt.parentNode)||qt))){if(jt.splice(st,1),ut=Gt.length&&tn(jt),!ut)return De.apply(Ht,Gt),Ht;break}}return(Lr||Ta(ut,Or))(Gt,qt,!vt,Ht,!qt||na.test(ut)&&Ca(qt.parentNode)||qt),Ht}$.sortStable=or.split("").sort(xi).join("")===or,An(),$.sortDetached=Vn(function(ut){return ut.compareDocumentPosition(Ke.createElement("fieldset"))&1}),Q.find=gi,Q.expr[":"]=Q.expr.pseudos,Q.unique=Q.uniqueSort,gi.compile=Ta,gi.select=Va,gi.setDocument=An,gi.tokenize=Gn,gi.escape=Q.escapeSelector,gi.getText=Q.text,gi.isXML=Q.isXMLDoc,gi.selectors=Q.expr,gi.support=Q.support,gi.uniqueSort=Q.uniqueSort})();var v=function(V,ie,be){for(var Ee=[],Ie=be!==void 0;(V=V[ie])&&V.nodeType!==9;)if(V.nodeType===1){if(Ie&&Q(V).is(be))break;Ee.push(V)}return Ee},o=function(V,ie){for(var be=[];V;V=V.nextSibling)V.nodeType===1&&V!==ie&&be.push(V);return be},x=Q.expr.match.needsContext,E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(V,ie,be){return z(ie)?Q.grep(V,function(Ee,Ie){return!!ie.call(Ee,Ie,Ee)!==be}):ie.nodeType?Q.grep(V,function(Ee){return Ee===ie!==be}):typeof ie!="string"?Q.grep(V,function(Ee){return A.call(ie,Ee)>-1!==be}):Q.filter(ie,V,be)}Q.filter=function(V,ie,be){var Ee=ie[0];return be&&(V=":not("+V+")"),ie.length===1&&Ee.nodeType===1?Q.find.matchesSelector(Ee,V)?[Ee]:[]:Q.find.matches(V,Q.grep(ie,function(Ie){return Ie.nodeType===1}))},Q.fn.extend({find:function(V){var ie,be,Ee=this.length,Ie=this;if(typeof V!="string")return this.pushStack(Q(V).filter(function(){for(ie=0;ie<Ee;ie++)if(Q.contains(Ie[ie],this))return!0}));for(be=this.pushStack([]),ie=0;ie<Ee;ie++)Q.find(V,Ie[ie],be);return Ee>1?Q.uniqueSort(be):be},filter:function(V){return this.pushStack(R(this,V||[],!1))},not:function(V){return this.pushStack(R(this,V||[],!0))},is:function(V){return!!R(this,typeof V=="string"&&x.test(V)?Q(V):V||[],!1).length}});var H,Y=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Z=Q.fn.init=function(V,ie,be){var Ee,Ie;if(!V)return this;if(be=be||H,typeof V=="string")if(V[0]==="<"&&V[V.length-1]===">"&&V.length>=3?Ee=[null,V,null]:Ee=Y.exec(V),Ee&&(Ee[1]||!ie))if(Ee[1]){if(ie=ie instanceof Q?ie[0]:ie,Q.merge(this,Q.parseHTML(Ee[1],ie&&ie.nodeType?ie.ownerDocument||ie:F,!0)),E.test(Ee[1])&&Q.isPlainObject(ie))for(Ee in ie)z(this[Ee])?this[Ee](ie[Ee]):this.attr(Ee,ie[Ee]);return this}else return Ie=F.getElementById(Ee[2]),Ie&&(this[0]=Ie,this.length=1),this;else return!ie||ie.jquery?(ie||be).find(V):this.constructor(ie).find(V);else{if(V.nodeType)return this[0]=V,this.length=1,this;if(z(V))return be.ready!==void 0?be.ready(V):V(Q)}return Q.makeArray(V,this)};Z.prototype=Q.fn,H=Q(F);var L=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};Q.fn.extend({has:function(V){var ie=Q(V,this),be=ie.length;return this.filter(function(){for(var Ee=0;Ee<be;Ee++)if(Q.contains(this,ie[Ee]))return!0})},closest:function(V,ie){var be,Ee=0,Ie=this.length,De=[],Ke=typeof V!="string"&&Q(V);if(!x.test(V)){for(;Ee<Ie;Ee++)for(be=this[Ee];be&&be!==ie;be=be.parentNode)if(be.nodeType<11&&(Ke?Ke.index(be)>-1:be.nodeType===1&&Q.find.matchesSelector(be,V))){De.push(be);break}}return this.pushStack(De.length>1?Q.uniqueSort(De):De)},index:function(V){return V?typeof V=="string"?A.call(Q(V),this[0]):A.call(this,V.jquery?V[0]:V):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(V,ie){return this.pushStack(Q.uniqueSort(Q.merge(this.get(),Q(V,ie))))},addBack:function(V){return this.add(V==null?this.prevObject:this.prevObject.filter(V))}});function ee(V,ie){for(;(V=V[ie])&&V.nodeType!==1;);return V}Q.each({parent:function(V){var ie=V.parentNode;return ie&&ie.nodeType!==11?ie:null},parents:function(V){return v(V,"parentNode")},parentsUntil:function(V,ie,be){return v(V,"parentNode",be)},next:function(V){return ee(V,"nextSibling")},prev:function(V){return ee(V,"previousSibling")},nextAll:function(V){return v(V,"nextSibling")},prevAll:function(V){return v(V,"previousSibling")},nextUntil:function(V,ie,be){return v(V,"nextSibling",be)},prevUntil:function(V,ie,be){return v(V,"previousSibling",be)},siblings:function(V){return o((V.parentNode||{}).firstChild,V)},children:function(V){return o(V.firstChild)},contents:function(V){return V.contentDocument!=null&&m(V.contentDocument)?V.contentDocument:(he(V,"template")&&(V=V.content||V),Q.merge([],V.childNodes))}},function(V,ie){Q.fn[V]=function(be,Ee){var Ie=Q.map(this,ie,be);return V.slice(-5)!=="Until"&&(Ee=be),Ee&&typeof Ee=="string"&&(Ie=Q.filter(Ee,Ie)),this.length>1&&(D[V]||Q.uniqueSort(Ie),L.test(V)&&Ie.reverse()),this.pushStack(Ie)}});var oe=/[^\x20\t\r\n\f]+/g;function fe(V){var ie={};return Q.each(V.match(oe)||[],function(be,Ee){ie[Ee]=!0}),ie}Q.Callbacks=function(V){V=typeof V=="string"?fe(V):Q.extend({},V);var ie,be,Ee,Ie,De=[],Ke=[],St=-1,vt=function(){for(Ie=Ie||V.once,Ee=ie=!0;Ke.length;St=-1)for(be=Ke.shift();++St<De.length;)De[St].apply(be[0],be[1])===!1&&V.stopOnFalse&&(St=De.length,be=!1);V.memory||(be=!1),ie=!1,Ie&&(be?De=[]:De="")},Dt={add:function(){return De&&(be&&!ie&&(St=De.length-1,Ke.push(be)),function Jt(or){Q.each(or,function(Wt,jr){z(jr)?(!V.unique||!Dt.has(jr))&&De.push(jr):jr&&jr.length&&te(jr)!=="string"&&Jt(jr)})}(arguments),be&&!ie&&vt()),this},remove:function(){return Q.each(arguments,function(Jt,or){for(var Wt;(Wt=Q.inArray(or,De,Wt))>-1;)De.splice(Wt,1),Wt<=St&&St--}),this},has:function(Jt){return Jt?Q.inArray(Jt,De)>-1:De.length>0},empty:function(){return De&&(De=[]),this},disable:function(){return Ie=Ke=[],De=be="",this},disabled:function(){return!De},lock:function(){return Ie=Ke=[],!be&&!ie&&(De=be=""),this},locked:function(){return!!Ie},fireWith:function(Jt,or){return Ie||(or=or||[],or=[Jt,or.slice?or.slice():or],Ke.push(or),ie||vt()),this},fire:function(){return Dt.fireWith(this,arguments),this},fired:function(){return!!Ee}};return Dt};function ue(V){return V}function qe(V){throw V}function rt(V,ie,be,Ee){var Ie;try{V&&z(Ie=V.promise)?Ie.call(V).done(ie).fail(be):V&&z(Ie=V.then)?Ie.call(V,ie,be):ie.apply(void 0,[V].slice(Ee))}catch(De){be.apply(void 0,[De])}}Q.extend({Deferred:function(V){var ie=[["notify","progress",Q.Callbacks("memory"),Q.Callbacks("memory"),2],["resolve","done",Q.Callbacks("once memory"),Q.Callbacks("once memory"),0,"resolved"],["reject","fail",Q.Callbacks("once memory"),Q.Callbacks("once memory"),1,"rejected"]],be="pending",Ee={state:function(){return be},always:function(){return Ie.done(arguments).fail(arguments),this},catch:function(De){return Ee.then(null,De)},pipe:function(){var De=arguments;return Q.Deferred(function(Ke){Q.each(ie,function(St,vt){var Dt=z(De[vt[4]])&&De[vt[4]];Ie[vt[1]](function(){var Jt=Dt&&Dt.apply(this,arguments);Jt&&z(Jt.promise)?Jt.promise().progress(Ke.notify).done(Ke.resolve).fail(Ke.reject):Ke[vt[0]+"With"](this,Dt?[Jt]:arguments)})}),De=null}).promise()},then:function(De,Ke,St){var vt=0;function Dt(Jt,or,Wt,jr){return function(){var Dr=this,ni=arguments,ri=function(){var xi,un;if(!(Jt<vt)){if(xi=Wt.apply(Dr,ni),xi===or.promise())throw new TypeError("Thenable self-resolution");un=xi&&(typeof xi=="object"||typeof xi=="function")&&xi.then,z(un)?jr?un.call(xi,Dt(vt,or,ue,jr),Dt(vt,or,qe,jr)):(vt++,un.call(xi,Dt(vt,or,ue,jr),Dt(vt,or,qe,jr),Dt(vt,or,ue,or.notifyWith))):(Wt!==ue&&(Dr=void 0,ni=[xi]),(jr||or.resolveWith)(Dr,ni))}},Ei=jr?ri:function(){try{ri()}catch(xi){Q.Deferred.exceptionHook&&Q.Deferred.exceptionHook(xi,Ei.error),Jt+1>=vt&&(Wt!==qe&&(Dr=void 0,ni=[xi]),or.rejectWith(Dr,ni))}};Jt?Ei():(Q.Deferred.getErrorHook?Ei.error=Q.Deferred.getErrorHook():Q.Deferred.getStackHook&&(Ei.error=Q.Deferred.getStackHook()),n.setTimeout(Ei))}}return Q.Deferred(function(Jt){ie[0][3].add(Dt(0,Jt,z(St)?St:ue,Jt.notifyWith)),ie[1][3].add(Dt(0,Jt,z(De)?De:ue)),ie[2][3].add(Dt(0,Jt,z(Ke)?Ke:qe))}).promise()},promise:function(De){return De!=null?Q.extend(De,Ee):Ee}},Ie={};return Q.each(ie,function(De,Ke){var St=Ke[2],vt=Ke[5];Ee[Ke[1]]=St.add,vt&&St.add(function(){be=vt},ie[3-De][2].disable,ie[3-De][3].disable,ie[0][2].lock,ie[0][3].lock),St.add(Ke[3].fire),Ie[Ke[0]]=function(){return Ie[Ke[0]+"With"](this===Ie?void 0:this,arguments),this},Ie[Ke[0]+"With"]=St.fireWith}),Ee.promise(Ie),V&&V.call(Ie,Ie),Ie},when:function(V){var ie=arguments.length,be=ie,Ee=Array(be),Ie=h.call(arguments),De=Q.Deferred(),Ke=function(St){return function(vt){Ee[St]=this,Ie[St]=arguments.length>1?h.call(arguments):vt,--ie||De.resolveWith(Ee,Ie)}};if(ie<=1&&(rt(V,De.done(Ke(be)).resolve,De.reject,!ie),De.state()==="pending"||z(Ie[be]&&Ie[be].then)))return De.then();for(;be--;)rt(Ie[be],Ke(be),De.reject);return De.promise()}});var Ve=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Q.Deferred.exceptionHook=function(V,ie){n.console&&n.console.warn&&V&&Ve.test(V.name)&&n.console.warn("jQuery.Deferred exception: "+V.message,V.stack,ie)},Q.readyException=function(V){n.setTimeout(function(){throw V})};var et=Q.Deferred();Q.fn.ready=function(V){return et.then(V).catch(function(ie){Q.readyException(ie)}),this},Q.extend({isReady:!1,readyWait:1,ready:function(V){(V===!0?--Q.readyWait:Q.isReady)||(Q.isReady=!0,!(V!==!0&&--Q.readyWait>0)&&et.resolveWith(F,[Q]))}}),Q.ready.then=et.then;function mt(){F.removeEventListener("DOMContentLoaded",mt),n.removeEventListener("load",mt),Q.ready()}F.readyState==="complete"||F.readyState!=="loading"&&!F.documentElement.doScroll?n.setTimeout(Q.ready):(F.addEventListener("DOMContentLoaded",mt),n.addEventListener("load",mt));var Ye=function(V,ie,be,Ee,Ie,De,Ke){var St=0,vt=V.length,Dt=be==null;if(te(be)==="object"){Ie=!0;for(St in be)Ye(V,ie,St,be[St],!0,De,Ke)}else if(Ee!==void 0&&(Ie=!0,z(Ee)||(Ke=!0),Dt&&(Ke?(ie.call(V,Ee),ie=null):(Dt=ie,ie=function(Jt,or,Wt){return Dt.call(Q(Jt),Wt)})),ie))for(;St<vt;St++)ie(V[St],be,Ke?Ee:Ee.call(V[St],St,ie(V[St],be)));return Ie?V:Dt?ie.call(V):vt?ie(V[0],be):De},We=/^-ms-/,Xe=/-([a-z])/g;function Ge(V,ie){return ie.toUpperCase()}function nt(V){return V.replace(We,"ms-").replace(Xe,Ge)}var Et=function(V){return V.nodeType===1||V.nodeType===9||!+V.nodeType};function Le(){this.expando=Q.expando+Le.uid++}Le.uid=1,Le.prototype={cache:function(V){var ie=V[this.expando];return ie||(ie={},Et(V)&&(V.nodeType?V[this.expando]=ie:Object.defineProperty(V,this.expando,{value:ie,configurable:!0}))),ie},set:function(V,ie,be){var Ee,Ie=this.cache(V);if(typeof ie=="string")Ie[nt(ie)]=be;else for(Ee in ie)Ie[nt(Ee)]=ie[Ee];return Ie},get:function(V,ie){return ie===void 0?this.cache(V):V[this.expando]&&V[this.expando][nt(ie)]},access:function(V,ie,be){return ie===void 0||ie&&typeof ie=="string"&&be===void 0?this.get(V,ie):(this.set(V,ie,be),be!==void 0?be:ie)},remove:function(V,ie){var be,Ee=V[this.expando];if(Ee!==void 0){if(ie!==void 0)for(Array.isArray(ie)?ie=ie.map(nt):(ie=nt(ie),ie=ie in Ee?[ie]:ie.match(oe)||[]),be=ie.length;be--;)delete Ee[ie[be]];(ie===void 0||Q.isEmptyObject(Ee))&&(V.nodeType?V[this.expando]=void 0:delete V[this.expando])}},hasData:function(V){var ie=V[this.expando];return ie!==void 0&&!Q.isEmptyObject(ie)}};var Oe=new Le,$t=new Le,dt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,gt=/[A-Z]/g;function Lt(V){return V==="true"?!0:V==="false"?!1:V==="null"?null:V===+V+""?+V:dt.test(V)?JSON.parse(V):V}function xe(V,ie,be){var Ee;if(be===void 0&&V.nodeType===1)if(Ee="data-"+ie.replace(gt,"-$&").toLowerCase(),be=V.getAttribute(Ee),typeof be=="string"){try{be=Lt(be)}catch{}$t.set(V,ie,be)}else be=void 0;return be}Q.extend({hasData:function(V){return $t.hasData(V)||Oe.hasData(V)},data:function(V,ie,be){return $t.access(V,ie,be)},removeData:function(V,ie){$t.remove(V,ie)},_data:function(V,ie,be){return Oe.access(V,ie,be)},_removeData:function(V,ie){Oe.remove(V,ie)}}),Q.fn.extend({data:function(V,ie){var be,Ee,Ie,De=this[0],Ke=De&&De.attributes;if(V===void 0){if(this.length&&(Ie=$t.get(De),De.nodeType===1&&!Oe.get(De,"hasDataAttrs"))){for(be=Ke.length;be--;)Ke[be]&&(Ee=Ke[be].name,Ee.indexOf("data-")===0&&(Ee=nt(Ee.slice(5)),xe(De,Ee,Ie[Ee])));Oe.set(De,"hasDataAttrs",!0)}return Ie}return typeof V=="object"?this.each(function(){$t.set(this,V)}):Ye(this,function(St){var vt;if(De&&St===void 0)return vt=$t.get(De,V),vt!==void 0||(vt=xe(De,V),vt!==void 0)?vt:void 0;this.each(function(){$t.set(this,V,St)})},null,ie,arguments.length>1,null,!0)},removeData:function(V){return this.each(function(){$t.remove(this,V)})}}),Q.extend({queue:function(V,ie,be){var Ee;if(V)return ie=(ie||"fx")+"queue",Ee=Oe.get(V,ie),be&&(!Ee||Array.isArray(be)?Ee=Oe.access(V,ie,Q.makeArray(be)):Ee.push(be)),Ee||[]},dequeue:function(V,ie){ie=ie||"fx";var be=Q.queue(V,ie),Ee=be.length,Ie=be.shift(),De=Q._queueHooks(V,ie),Ke=function(){Q.dequeue(V,ie)};Ie==="inprogress"&&(Ie=be.shift(),Ee--),Ie&&(ie==="fx"&&be.unshift("inprogress"),delete De.stop,Ie.call(V,Ke,De)),!Ee&&De&&De.empty.fire()},_queueHooks:function(V,ie){var be=ie+"queueHooks";return Oe.get(V,be)||Oe.access(V,be,{empty:Q.Callbacks("once memory").add(function(){Oe.remove(V,[ie+"queue",be])})})}}),Q.fn.extend({queue:function(V,ie){var be=2;return typeof V!="string"&&(ie=V,V="fx",be--),arguments.length<be?Q.queue(this[0],V):ie===void 0?this:this.each(function(){var Ee=Q.queue(this,V,ie);Q._queueHooks(this,V),V==="fx"&&Ee[0]!=="inprogress"&&Q.dequeue(this,V)})},dequeue:function(V){return this.each(function(){Q.dequeue(this,V)})},clearQueue:function(V){return this.queue(V||"fx",[])},promise:function(V,ie){var be,Ee=1,Ie=Q.Deferred(),De=this,Ke=this.length,St=function(){--Ee||Ie.resolveWith(De,[De])};for(typeof V!="string"&&(ie=V,V=void 0),V=V||"fx";Ke--;)be=Oe.get(De[Ke],V+"queueHooks"),be&&be.empty&&(Ee++,be.empty.add(St));return St(),Ie.promise(ie)}});var X=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+X+")([a-z%]*)$","i"),je=["Top","Right","Bottom","Left"],$e=F.documentElement,He=function(V){return Q.contains(V.ownerDocument,V)},Fe={composed:!0};$e.getRootNode&&(He=function(V){return Q.contains(V.ownerDocument,V)||V.getRootNode(Fe)===V.ownerDocument});var Me=function(V,ie){return V=ie||V,V.style.display==="none"||V.style.display===""&&He(V)&&Q.css(V,"display")==="none"};function Rt(V,ie,be,Ee){var Ie,De,Ke=20,St=Ee?function(){return Ee.cur()}:function(){return Q.css(V,ie,"")},vt=St(),Dt=be&&be[3]||(Q.cssNumber[ie]?"":"px"),Jt=V.nodeType&&(Q.cssNumber[ie]||Dt!=="px"&&+vt)&&pe.exec(Q.css(V,ie));if(Jt&&Jt[3]!==Dt){for(vt=vt/2,Dt=Dt||Jt[3],Jt=+vt||1;Ke--;)Q.style(V,ie,Jt+Dt),(1-De)*(1-(De=St()/vt||.5))<=0&&(Ke=0),Jt=Jt/De;Jt=Jt*2,Q.style(V,ie,Jt+Dt),be=be||[]}return be&&(Jt=+Jt||+vt||0,Ie=be[1]?Jt+(be[1]+1)*be[2]:+be[2],Ee&&(Ee.unit=Dt,Ee.start=Jt,Ee.end=Ie)),Ie}var yt={};function le(V){var ie,be=V.ownerDocument,Ee=V.nodeName,Ie=yt[Ee];return Ie||(ie=be.body.appendChild(be.createElement(Ee)),Ie=Q.css(ie,"display"),ie.parentNode.removeChild(ie),Ie==="none"&&(Ie="block"),yt[Ee]=Ie,Ie)}function wt(V,ie){for(var be,Ee,Ie=[],De=0,Ke=V.length;De<Ke;De++)Ee=V[De],Ee.style&&(be=Ee.style.display,ie?(be==="none"&&(Ie[De]=Oe.get(Ee,"display")||null,Ie[De]||(Ee.style.display="")),Ee.style.display===""&&Me(Ee)&&(Ie[De]=le(Ee))):be!=="none"&&(Ie[De]="none",Oe.set(Ee,"display",be)));for(De=0;De<Ke;De++)Ie[De]!=null&&(V[De].style.display=Ie[De]);return V}Q.fn.extend({show:function(){return wt(this,!0)},hide:function(){return wt(this)},toggle:function(V){return typeof V=="boolean"?V?this.show():this.hide():this.each(function(){Me(this)?Q(this).show():Q(this).hide()})}});var at=/^(?:checkbox|radio)$/i,Be=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ot=/^$|^module$|\/(?:java|ecma)script/i;(function(){var V=F.createDocumentFragment(),ie=V.appendChild(F.createElement("div")),be=F.createElement("input");be.setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),ie.appendChild(be),$.checkClone=ie.cloneNode(!0).cloneNode(!0).lastChild.checked,ie.innerHTML="<textarea>x</textarea>",$.noCloneChecked=!!ie.cloneNode(!0).lastChild.defaultValue,ie.innerHTML="<option></option>",$.option=!!ie.lastChild})();var tt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead,tt.th=tt.td,$.option||(tt.optgroup=tt.option=[1,"<select multiple='multiple'>","</select>"]);function kt(V,ie){var be;return typeof V.getElementsByTagName<"u"?be=V.getElementsByTagName(ie||"*"):typeof V.querySelectorAll<"u"?be=V.querySelectorAll(ie||"*"):be=[],ie===void 0||ie&&he(V,ie)?Q.merge([V],be):be}function Yt(V,ie){for(var be=0,Ee=V.length;be<Ee;be++)Oe.set(V[be],"globalEval",!ie||Oe.get(ie[be],"globalEval"))}var pt=/<|&#?\w+;/;function It(V,ie,be,Ee,Ie){for(var De,Ke,St,vt,Dt,Jt,or=ie.createDocumentFragment(),Wt=[],jr=0,Dr=V.length;jr<Dr;jr++)if(De=V[jr],De||De===0)if(te(De)==="object")Q.merge(Wt,De.nodeType?[De]:De);else if(!pt.test(De))Wt.push(ie.createTextNode(De));else{for(Ke=Ke||or.appendChild(ie.createElement("div")),St=(Be.exec(De)||["",""])[1].toLowerCase(),vt=tt[St]||tt._default,Ke.innerHTML=vt[1]+Q.htmlPrefilter(De)+vt[2],Jt=vt[0];Jt--;)Ke=Ke.lastChild;Q.merge(Wt,Ke.childNodes),Ke=or.firstChild,Ke.textContent=""}for(or.textContent="",jr=0;De=Wt[jr++];){if(Ee&&Q.inArray(De,Ee)>-1){Ie&&Ie.push(De);continue}if(Dt=He(De),Ke=kt(or.appendChild(De),"script"),Dt&&Yt(Ke),be)for(Jt=0;De=Ke[Jt++];)ot.test(De.type||"")&&be.push(De)}return or}var Fr=/^([^.]*)(?:\.(.+)|)/;function Pt(){return!0}function Ot(){return!1}function Te(V,ie,be,Ee,Ie,De){var Ke,St;if(typeof ie=="object"){typeof be!="string"&&(Ee=Ee||be,be=void 0);for(St in ie)Te(V,St,be,Ee,ie[St],De);return V}if(Ee==null&&Ie==null?(Ie=be,Ee=be=void 0):Ie==null&&(typeof be=="string"?(Ie=Ee,Ee=void 0):(Ie=Ee,Ee=be,be=void 0)),Ie===!1)Ie=Ot;else if(!Ie)return V;return De===1&&(Ke=Ie,Ie=function(vt){return Q().off(vt),Ke.apply(this,arguments)},Ie.guid=Ke.guid||(Ke.guid=Q.guid++)),V.each(function(){Q.event.add(this,ie,Ie,Ee,be)})}Q.event={global:{},add:function(V,ie,be,Ee,Ie){var De,Ke,St,vt,Dt,Jt,or,Wt,jr,Dr,ni,ri=Oe.get(V);if(Et(V))for(be.handler&&(De=be,be=De.handler,Ie=De.selector),Ie&&Q.find.matchesSelector($e,Ie),be.guid||(be.guid=Q.guid++),(vt=ri.events)||(vt=ri.events=Object.create(null)),(Ke=ri.handle)||(Ke=ri.handle=function(Ei){return typeof Q<"u"&&Q.event.triggered!==Ei.type?Q.event.dispatch.apply(V,arguments):void 0}),ie=(ie||"").match(oe)||[""],Dt=ie.length;Dt--;)St=Fr.exec(ie[Dt])||[],jr=ni=St[1],Dr=(St[2]||"").split(".").sort(),jr&&(or=Q.event.special[jr]||{},jr=(Ie?or.delegateType:or.bindType)||jr,or=Q.event.special[jr]||{},Jt=Q.extend({type:jr,origType:ni,data:Ee,handler:be,guid:be.guid,selector:Ie,needsContext:Ie&&Q.expr.match.needsContext.test(Ie),namespace:Dr.join(".")},De),(Wt=vt[jr])||(Wt=vt[jr]=[],Wt.delegateCount=0,(!or.setup||or.setup.call(V,Ee,Dr,Ke)===!1)&&V.addEventListener&&V.addEventListener(jr,Ke)),or.add&&(or.add.call(V,Jt),Jt.handler.guid||(Jt.handler.guid=be.guid)),Ie?Wt.splice(Wt.delegateCount++,0,Jt):Wt.push(Jt),Q.event.global[jr]=!0)},remove:function(V,ie,be,Ee,Ie){var De,Ke,St,vt,Dt,Jt,or,Wt,jr,Dr,ni,ri=Oe.hasData(V)&&Oe.get(V);if(!(!ri||!(vt=ri.events))){for(ie=(ie||"").match(oe)||[""],Dt=ie.length;Dt--;){if(St=Fr.exec(ie[Dt])||[],jr=ni=St[1],Dr=(St[2]||"").split(".").sort(),!jr){for(jr in vt)Q.event.remove(V,jr+ie[Dt],be,Ee,!0);continue}for(or=Q.event.special[jr]||{},jr=(Ee?or.delegateType:or.bindType)||jr,Wt=vt[jr]||[],St=St[2]&&new RegExp("(^|\\.)"+Dr.join("\\.(?:.*\\.|)")+"(\\.|$)"),Ke=De=Wt.length;De--;)Jt=Wt[De],(Ie||ni===Jt.origType)&&(!be||be.guid===Jt.guid)&&(!St||St.test(Jt.namespace))&&(!Ee||Ee===Jt.selector||Ee==="**"&&Jt.selector)&&(Wt.splice(De,1),Jt.selector&&Wt.delegateCount--,or.remove&&or.remove.call(V,Jt));Ke&&!Wt.length&&((!or.teardown||or.teardown.call(V,Dr,ri.handle)===!1)&&Q.removeEvent(V,jr,ri.handle),delete vt[jr])}Q.isEmptyObject(vt)&&Oe.remove(V,"handle events")}},dispatch:function(V){var ie,be,Ee,Ie,De,Ke,St=new Array(arguments.length),vt=Q.event.fix(V),Dt=(Oe.get(this,"events")||Object.create(null))[vt.type]||[],Jt=Q.event.special[vt.type]||{};for(St[0]=vt,ie=1;ie<arguments.length;ie++)St[ie]=arguments[ie];if(vt.delegateTarget=this,!(Jt.preDispatch&&Jt.preDispatch.call(this,vt)===!1)){for(Ke=Q.event.handlers.call(this,vt,Dt),ie=0;(Ie=Ke[ie++])&&!vt.isPropagationStopped();)for(vt.currentTarget=Ie.elem,be=0;(De=Ie.handlers[be++])&&!vt.isImmediatePropagationStopped();)(!vt.rnamespace||De.namespace===!1||vt.rnamespace.test(De.namespace))&&(vt.handleObj=De,vt.data=De.data,Ee=((Q.event.special[De.origType]||{}).handle||De.handler).apply(Ie.elem,St),Ee!==void 0&&(vt.result=Ee)===!1&&(vt.preventDefault(),vt.stopPropagation()));return Jt.postDispatch&&Jt.postDispatch.call(this,vt),vt.result}},handlers:function(V,ie){var be,Ee,Ie,De,Ke,St=[],vt=ie.delegateCount,Dt=V.target;if(vt&&Dt.nodeType&&!(V.type==="click"&&V.button>=1)){for(;Dt!==this;Dt=Dt.parentNode||this)if(Dt.nodeType===1&&!(V.type==="click"&&Dt.disabled===!0)){for(De=[],Ke={},be=0;be<vt;be++)Ee=ie[be],Ie=Ee.selector+" ",Ke[Ie]===void 0&&(Ke[Ie]=Ee.needsContext?Q(Ie,this).index(Dt)>-1:Q.find(Ie,this,null,[Dt]).length),Ke[Ie]&&De.push(Ee);De.length&&St.push({elem:Dt,handlers:De})}}return Dt=this,vt<ie.length&&St.push({elem:Dt,handlers:ie.slice(vt)}),St},addProp:function(V,ie){Object.defineProperty(Q.Event.prototype,V,{enumerable:!0,configurable:!0,get:z(ie)?function(){if(this.originalEvent)return ie(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[V]},set:function(be){Object.defineProperty(this,V,{enumerable:!0,configurable:!0,writable:!0,value:be})}})},fix:function(V){return V[Q.expando]?V:new Q.Event(V)},special:{load:{noBubble:!0},click:{setup:function(V){var ie=this||V;return at.test(ie.type)&&ie.click&&he(ie,"input")&&me(ie,"click",!0),!1},trigger:function(V){var ie=this||V;return at.test(ie.type)&&ie.click&&he(ie,"input")&&me(ie,"click"),!0},_default:function(V){var ie=V.target;return at.test(ie.type)&&ie.click&&he(ie,"input")&&Oe.get(ie,"click")||he(ie,"a")}},beforeunload:{postDispatch:function(V){V.result!==void 0&&V.originalEvent&&(V.originalEvent.returnValue=V.result)}}}};function me(V,ie,be){if(!be){Oe.get(V,ie)===void 0&&Q.event.add(V,ie,Pt);return}Oe.set(V,ie,!1),Q.event.add(V,ie,{namespace:!1,handler:function(Ee){var Ie,De=Oe.get(this,ie);if(Ee.isTrigger&1&&this[ie]){if(De)(Q.event.special[ie]||{}).delegateType&&Ee.stopPropagation();else if(De=h.call(arguments),Oe.set(this,ie,De),this[ie](),Ie=Oe.get(this,ie),Oe.set(this,ie,!1),De!==Ie)return Ee.stopImmediatePropagation(),Ee.preventDefault(),Ie}else De&&(Oe.set(this,ie,Q.event.trigger(De[0],De.slice(1),this)),Ee.stopPropagation(),Ee.isImmediatePropagationStopped=Pt)}})}Q.removeEvent=function(V,ie,be){V.removeEventListener&&V.removeEventListener(ie,be)},Q.Event=function(V,ie){if(!(this instanceof Q.Event))return new Q.Event(V,ie);V&&V.type?(this.originalEvent=V,this.type=V.type,this.isDefaultPrevented=V.defaultPrevented||V.defaultPrevented===void 0&&V.returnValue===!1?Pt:Ot,this.target=V.target&&V.target.nodeType===3?V.target.parentNode:V.target,this.currentTarget=V.currentTarget,this.relatedTarget=V.relatedTarget):this.type=V,ie&&Q.extend(this,ie),this.timeStamp=V&&V.timeStamp||Date.now(),this[Q.expando]=!0},Q.Event.prototype={constructor:Q.Event,isDefaultPrevented:Ot,isPropagationStopped:Ot,isImmediatePropagationStopped:Ot,isSimulated:!1,preventDefault:function(){var V=this.originalEvent;this.isDefaultPrevented=Pt,V&&!this.isSimulated&&V.preventDefault()},stopPropagation:function(){var V=this.originalEvent;this.isPropagationStopped=Pt,V&&!this.isSimulated&&V.stopPropagation()},stopImmediatePropagation:function(){var V=this.originalEvent;this.isImmediatePropagationStopped=Pt,V&&!this.isSimulated&&V.stopImmediatePropagation(),this.stopPropagation()}},Q.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Q.event.addProp),Q.each({focus:"focusin",blur:"focusout"},function(V,ie){function be(Ee){if(F.documentMode){var Ie=Oe.get(this,"handle"),De=Q.event.fix(Ee);De.type=Ee.type==="focusin"?"focus":"blur",De.isSimulated=!0,Ie(Ee),De.target===De.currentTarget&&Ie(De)}else Q.event.simulate(ie,Ee.target,Q.event.fix(Ee))}Q.event.special[V]={setup:function(){var Ee;if(me(this,V,!0),F.documentMode)Ee=Oe.get(this,ie),Ee||this.addEventListener(ie,be),Oe.set(this,ie,(Ee||0)+1);else return!1},trigger:function(){return me(this,V),!0},teardown:function(){var Ee;if(F.documentMode)Ee=Oe.get(this,ie)-1,Ee?Oe.set(this,ie,Ee):(this.removeEventListener(ie,be),Oe.remove(this,ie));else return!1},_default:function(Ee){return Oe.get(Ee.target,V)},delegateType:ie},Q.event.special[ie]={setup:function(){var Ee=this.ownerDocument||this.document||this,Ie=F.documentMode?this:Ee,De=Oe.get(Ie,ie);De||(F.documentMode?this.addEventListener(ie,be):Ee.addEventListener(V,be,!0)),Oe.set(Ie,ie,(De||0)+1)},teardown:function(){var Ee=this.ownerDocument||this.document||this,Ie=F.documentMode?this:Ee,De=Oe.get(Ie,ie)-1;De?Oe.set(Ie,ie,De):(F.documentMode?this.removeEventListener(ie,be):Ee.removeEventListener(V,be,!0),Oe.remove(Ie,ie))}}}),Q.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(V,ie){Q.event.special[V]={delegateType:ie,bindType:ie,handle:function(be){var Ee,Ie=this,De=be.relatedTarget,Ke=be.handleObj;return(!De||De!==Ie&&!Q.contains(Ie,De))&&(be.type=Ke.origType,Ee=Ke.handler.apply(this,arguments),be.type=ie),Ee}}}),Q.fn.extend({on:function(V,ie,be,Ee){return Te(this,V,ie,be,Ee)},one:function(V,ie,be,Ee){return Te(this,V,ie,be,Ee,1)},off:function(V,ie,be){var Ee,Ie;if(V&&V.preventDefault&&V.handleObj)return Ee=V.handleObj,Q(V.delegateTarget).off(Ee.namespace?Ee.origType+"."+Ee.namespace:Ee.origType,Ee.selector,Ee.handler),this;if(typeof V=="object"){for(Ie in V)this.off(Ie,ie,V[Ie]);return this}return(ie===!1||typeof ie=="function")&&(be=ie,ie=void 0),be===!1&&(be=Ot),this.each(function(){Q.event.remove(this,V,be,ie)})}});var ce=/<script|<style|<link/i,ne=/checked\s*(?:[^=]|=\s*.checked.)/i,_e=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(V,ie){return he(V,"table")&&he(ie.nodeType!==11?ie:ie.firstChild,"tr")&&Q(V).children("tbody")[0]||V}function lt(V){return V.type=(V.getAttribute("type")!==null)+"/"+V.type,V}function Ze(V){return(V.type||"").slice(0,5)==="true/"?V.type=V.type.slice(5):V.removeAttribute("type"),V}function ct(V,ie){var be,Ee,Ie,De,Ke,St,vt;if(ie.nodeType===1){if(Oe.hasData(V)&&(De=Oe.get(V),vt=De.events,vt)){Oe.remove(ie,"handle events");for(Ie in vt)for(be=0,Ee=vt[Ie].length;be<Ee;be++)Q.event.add(ie,Ie,vt[Ie][be])}$t.hasData(V)&&(Ke=$t.access(V),St=Q.extend({},Ke),$t.set(ie,St))}}function Nt(V,ie){var be=ie.nodeName.toLowerCase();be==="input"&&at.test(V.type)?ie.checked=V.checked:(be==="input"||be==="textarea")&&(ie.defaultValue=V.defaultValue)}function Ut(V,ie,be,Ee){ie=S(ie);var Ie,De,Ke,St,vt,Dt,Jt=0,or=V.length,Wt=or-1,jr=ie[0],Dr=z(jr);if(Dr||or>1&&typeof jr=="string"&&!$.checkClone&&ne.test(jr))return V.each(function(ni){var ri=V.eq(ni);Dr&&(ie[0]=jr.call(this,ni,ri.html())),Ut(ri,ie,be,Ee)});if(or&&(Ie=It(ie,V[0].ownerDocument,!1,V,Ee),De=Ie.firstChild,Ie.childNodes.length===1&&(Ie=De),De||Ee)){for(Ke=Q.map(kt(Ie,"script"),lt),St=Ke.length;Jt<or;Jt++)vt=Ie,Jt!==Wt&&(vt=Q.clone(vt,!0,!0),St&&Q.merge(Ke,kt(vt,"script"))),be.call(V[Jt],vt,Jt);if(St)for(Dt=Ke[Ke.length-1].ownerDocument,Q.map(Ke,Ze),Jt=0;Jt<St;Jt++)vt=Ke[Jt],ot.test(vt.type||"")&&!Oe.access(vt,"globalEval")&&Q.contains(Dt,vt)&&(vt.src&&(vt.type||"").toLowerCase()!=="module"?Q._evalUrl&&!vt.noModule&&Q._evalUrl(vt.src,{nonce:vt.nonce||vt.getAttribute("nonce")},Dt):J(vt.textContent.replace(_e,""),vt,Dt))}return V}function Mr(V,ie,be){for(var Ee,Ie=ie?Q.filter(ie,V):V,De=0;(Ee=Ie[De])!=null;De++)!be&&Ee.nodeType===1&&Q.cleanData(kt(Ee)),Ee.parentNode&&(be&&He(Ee)&&Yt(kt(Ee,"script")),Ee.parentNode.removeChild(Ee));return V}Q.extend({htmlPrefilter:function(V){return V},clone:function(V,ie,be){var Ee,Ie,De,Ke,St=V.cloneNode(!0),vt=He(V);if(!$.noCloneChecked&&(V.nodeType===1||V.nodeType===11)&&!Q.isXMLDoc(V))for(Ke=kt(St),De=kt(V),Ee=0,Ie=De.length;Ee<Ie;Ee++)Nt(De[Ee],Ke[Ee]);if(ie)if(be)for(De=De||kt(V),Ke=Ke||kt(St),Ee=0,Ie=De.length;Ee<Ie;Ee++)ct(De[Ee],Ke[Ee]);else ct(V,St);return Ke=kt(St,"script"),Ke.length>0&&Yt(Ke,!vt&&kt(V,"script")),St},cleanData:function(V){for(var ie,be,Ee,Ie=Q.event.special,De=0;(be=V[De])!==void 0;De++)if(Et(be)){if(ie=be[Oe.expando]){if(ie.events)for(Ee in ie.events)Ie[Ee]?Q.event.remove(be,Ee):Q.removeEvent(be,Ee,ie.handle);be[Oe.expando]=void 0}be[$t.expando]&&(be[$t.expando]=void 0)}}}),Q.fn.extend({detach:function(V){return Mr(this,V,!0)},remove:function(V){return Mr(this,V)},text:function(V){return Ye(this,function(ie){return ie===void 0?Q.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=ie)})},null,V,arguments.length)},append:function(){return Ut(this,arguments,function(V){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ie=Re(this,V);ie.appendChild(V)}})},prepend:function(){return Ut(this,arguments,function(V){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var ie=Re(this,V);ie.insertBefore(V,ie.firstChild)}})},before:function(){return Ut(this,arguments,function(V){this.parentNode&&this.parentNode.insertBefore(V,this)})},after:function(){return Ut(this,arguments,function(V){this.parentNode&&this.parentNode.insertBefore(V,this.nextSibling)})},empty:function(){for(var V,ie=0;(V=this[ie])!=null;ie++)V.nodeType===1&&(Q.cleanData(kt(V,!1)),V.textContent="");return this},clone:function(V,ie){return V=V??!1,ie=ie??V,this.map(function(){return Q.clone(this,V,ie)})},html:function(V){return Ye(this,function(ie){var be=this[0]||{},Ee=0,Ie=this.length;if(ie===void 0&&be.nodeType===1)return be.innerHTML;if(typeof ie=="string"&&!ce.test(ie)&&!tt[(Be.exec(ie)||["",""])[1].toLowerCase()]){ie=Q.htmlPrefilter(ie);try{for(;Ee<Ie;Ee++)be=this[Ee]||{},be.nodeType===1&&(Q.cleanData(kt(be,!1)),be.innerHTML=ie);be=0}catch{}}be&&this.empty().append(ie)},null,V,arguments.length)},replaceWith:function(){var V=[];return Ut(this,arguments,function(ie){var be=this.parentNode;Q.inArray(this,V)<0&&(Q.cleanData(kt(this)),be&&be.replaceChild(ie,this))},V)}}),Q.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(V,ie){Q.fn[V]=function(be){for(var Ee,Ie=[],De=Q(be),Ke=De.length-1,St=0;St<=Ke;St++)Ee=St===Ke?this:this.clone(!0),Q(De[St])[ie](Ee),k.apply(Ie,Ee.get());return this.pushStack(Ie)}});var Xt=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Sr=/^--/,rr=function(V){var ie=V.ownerDocument.defaultView;return(!ie||!ie.opener)&&(ie=n),ie.getComputedStyle(V)},er=function(V,ie,be){var Ee,Ie,De={};for(Ie in ie)De[Ie]=V.style[Ie],V.style[Ie]=ie[Ie];Ee=be.call(V);for(Ie in ie)V.style[Ie]=De[Ie];return Ee},kr=new RegExp(je.join("|"),"i");(function(){function V(){if(Dt){vt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Dt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",$e.appendChild(vt).appendChild(Dt);var Jt=n.getComputedStyle(Dt);be=Jt.top!=="1%",St=ie(Jt.marginLeft)===12,Dt.style.right="60%",De=ie(Jt.right)===36,Ee=ie(Jt.width)===36,Dt.style.position="absolute",Ie=ie(Dt.offsetWidth/3)===12,$e.removeChild(vt),Dt=null}}function ie(Jt){return Math.round(parseFloat(Jt))}var be,Ee,Ie,De,Ke,St,vt=F.createElement("div"),Dt=F.createElement("div");Dt.style&&(Dt.style.backgroundClip="content-box",Dt.cloneNode(!0).style.backgroundClip="",$.clearCloneStyle=Dt.style.backgroundClip==="content-box",Q.extend($,{boxSizingReliable:function(){return V(),Ee},pixelBoxStyles:function(){return V(),De},pixelPosition:function(){return V(),be},reliableMarginLeft:function(){return V(),St},scrollboxSize:function(){return V(),Ie},reliableTrDimensions:function(){var Jt,or,Wt,jr;return Ke==null&&(Jt=F.createElement("table"),or=F.createElement("tr"),Wt=F.createElement("div"),Jt.style.cssText="position:absolute;left:-11111px;border-collapse:separate",or.style.cssText="box-sizing:content-box;border:1px solid",or.style.height="1px",Wt.style.height="9px",Wt.style.display="block",$e.appendChild(Jt).appendChild(or).appendChild(Wt),jr=n.getComputedStyle(or),Ke=parseInt(jr.height,10)+parseInt(jr.borderTopWidth,10)+parseInt(jr.borderBottomWidth,10)===or.offsetHeight,$e.removeChild(Jt)),Ke}}))})();function vr(V,ie,be){var Ee,Ie,De,Ke,St=Sr.test(ie),vt=V.style;return be=be||rr(V),be&&(Ke=be.getPropertyValue(ie)||be[ie],St&&Ke&&(Ke=Ke.replace(b,"$1")||void 0),Ke===""&&!He(V)&&(Ke=Q.style(V,ie)),!$.pixelBoxStyles()&&Xt.test(Ke)&&kr.test(ie)&&(Ee=vt.width,Ie=vt.minWidth,De=vt.maxWidth,vt.minWidth=vt.maxWidth=vt.width=Ke,Ke=be.width,vt.width=Ee,vt.minWidth=Ie,vt.maxWidth=De)),Ke!==void 0?Ke+"":Ke}function Pr(V,ie){return{get:function(){if(V()){delete this.get;return}return(this.get=ie).apply(this,arguments)}}}var Tr=["Webkit","Moz","ms"],br=F.createElement("div").style,Ar={};function gr(V){for(var ie=V[0].toUpperCase()+V.slice(1),be=Tr.length;be--;)if(V=Tr[be]+ie,V in br)return V}function dr(V){var ie=Q.cssProps[V]||Ar[V];return ie||(V in br?V:Ar[V]=gr(V)||V)}var lr=/^(none|table(?!-c[ea]).+)/,Kt={position:"absolute",visibility:"hidden",display:"block"},Bt={letterSpacing:"0",fontWeight:"400"};function Ft(V,ie,be){var Ee=pe.exec(ie);return Ee?Math.max(0,Ee[2]-(be||0))+(Ee[3]||"px"):ie}function cr(V,ie,be,Ee,Ie,De){var Ke=ie==="width"?1:0,St=0,vt=0,Dt=0;if(be===(Ee?"border":"content"))return 0;for(;Ke<4;Ke+=2)be==="margin"&&(Dt+=Q.css(V,be+je[Ke],!0,Ie)),Ee?(be==="content"&&(vt-=Q.css(V,"padding"+je[Ke],!0,Ie)),be!=="margin"&&(vt-=Q.css(V,"border"+je[Ke]+"Width",!0,Ie))):(vt+=Q.css(V,"padding"+je[Ke],!0,Ie),be!=="padding"?vt+=Q.css(V,"border"+je[Ke]+"Width",!0,Ie):St+=Q.css(V,"border"+je[Ke]+"Width",!0,Ie));return!Ee&&De>=0&&(vt+=Math.max(0,Math.ceil(V["offset"+ie[0].toUpperCase()+ie.slice(1)]-De-vt-St-.5))||0),vt+Dt}function nr(V,ie,be){var Ee=rr(V),Ie=!$.boxSizingReliable()||be,De=Ie&&Q.css(V,"boxSizing",!1,Ee)==="border-box",Ke=De,St=vr(V,ie,Ee),vt="offset"+ie[0].toUpperCase()+ie.slice(1);if(Xt.test(St)){if(!be)return St;St="auto"}return(!$.boxSizingReliable()&&De||!$.reliableTrDimensions()&&he(V,"tr")||St==="auto"||!parseFloat(St)&&Q.css(V,"display",!1,Ee)==="inline")&&V.getClientRects().length&&(De=Q.css(V,"boxSizing",!1,Ee)==="border-box",Ke=vt in V,Ke&&(St=V[vt])),St=parseFloat(St)||0,St+cr(V,ie,be||(De?"border":"content"),Ke,Ee,St)+"px"}Q.extend({cssHooks:{opacity:{get:function(V,ie){if(ie){var be=vr(V,"opacity");return be===""?"1":be}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(V,ie,be,Ee){if(!(!V||V.nodeType===3||V.nodeType===8||!V.style)){var Ie,De,Ke,St=nt(ie),vt=Sr.test(ie),Dt=V.style;if(vt||(ie=dr(St)),Ke=Q.cssHooks[ie]||Q.cssHooks[St],be!==void 0){if(De=typeof be,De==="string"&&(Ie=pe.exec(be))&&Ie[1]&&(be=Rt(V,ie,Ie),De="number"),be==null||be!==be)return;De==="number"&&!vt&&(be+=Ie&&Ie[3]||(Q.cssNumber[St]?"":"px")),!$.clearCloneStyle&&be===""&&ie.indexOf("background")===0&&(Dt[ie]="inherit"),(!Ke||!("set"in Ke)||(be=Ke.set(V,be,Ee))!==void 0)&&(vt?Dt.setProperty(ie,be):Dt[ie]=be)}else return Ke&&"get"in Ke&&(Ie=Ke.get(V,!1,Ee))!==void 0?Ie:Dt[ie]}},css:function(V,ie,be,Ee){var Ie,De,Ke,St=nt(ie),vt=Sr.test(ie);return vt||(ie=dr(St)),Ke=Q.cssHooks[ie]||Q.cssHooks[St],Ke&&"get"in Ke&&(Ie=Ke.get(V,!0,be)),Ie===void 0&&(Ie=vr(V,ie,Ee)),Ie==="normal"&&ie in Bt&&(Ie=Bt[ie]),be===""||be?(De=parseFloat(Ie),be===!0||isFinite(De)?De||0:Ie):Ie}}),Q.each(["height","width"],function(V,ie){Q.cssHooks[ie]={get:function(be,Ee,Ie){if(Ee)return lr.test(Q.css(be,"display"))&&(!be.getClientRects().length||!be.getBoundingClientRect().width)?er(be,Kt,function(){return nr(be,ie,Ie)}):nr(be,ie,Ie)},set:function(be,Ee,Ie){var De,Ke=rr(be),St=!$.scrollboxSize()&&Ke.position==="absolute",vt=St||Ie,Dt=vt&&Q.css(be,"boxSizing",!1,Ke)==="border-box",Jt=Ie?cr(be,ie,Ie,Dt,Ke):0;return Dt&&St&&(Jt-=Math.ceil(be["offset"+ie[0].toUpperCase()+ie.slice(1)]-parseFloat(Ke[ie])-cr(be,ie,"border",!1,Ke)-.5)),Jt&&(De=pe.exec(Ee))&&(De[3]||"px")!=="px"&&(be.style[ie]=Ee,Ee=Q.css(be,ie)),Ft(be,Ee,Jt)}}}),Q.cssHooks.marginLeft=Pr($.reliableMarginLeft,function(V,ie){if(ie)return(parseFloat(vr(V,"marginLeft"))||V.getBoundingClientRect().left-er(V,{marginLeft:0},function(){return V.getBoundingClientRect().left}))+"px"}),Q.each({margin:"",padding:"",border:"Width"},function(V,ie){Q.cssHooks[V+ie]={expand:function(be){for(var Ee=0,Ie={},De=typeof be=="string"?be.split(" "):[be];Ee<4;Ee++)Ie[V+je[Ee]+ie]=De[Ee]||De[Ee-2]||De[0];return Ie}},V!=="margin"&&(Q.cssHooks[V+ie].set=Ft)}),Q.fn.extend({css:function(V,ie){return Ye(this,function(be,Ee,Ie){var De,Ke,St={},vt=0;if(Array.isArray(Ee)){for(De=rr(be),Ke=Ee.length;vt<Ke;vt++)St[Ee[vt]]=Q.css(be,Ee[vt],!1,De);return St}return Ie!==void 0?Q.style(be,Ee,Ie):Q.css(be,Ee)},V,ie,arguments.length>1)}});function Vt(V,ie,be,Ee,Ie){return new Vt.prototype.init(V,ie,be,Ee,Ie)}Q.Tween=Vt,Vt.prototype={constructor:Vt,init:function(V,ie,be,Ee,Ie,De){this.elem=V,this.prop=be,this.easing=Ie||Q.easing._default,this.options=ie,this.start=this.now=this.cur(),this.end=Ee,this.unit=De||(Q.cssNumber[be]?"":"px")},cur:function(){var V=Vt.propHooks[this.prop];return V&&V.get?V.get(this):Vt.propHooks._default.get(this)},run:function(V){var ie,be=Vt.propHooks[this.prop];return this.options.duration?this.pos=ie=Q.easing[this.easing](V,this.options.duration*V,0,1,this.options.duration):this.pos=ie=V,this.now=(this.end-this.start)*ie+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),be&&be.set?be.set(this):Vt.propHooks._default.set(this),this}},Vt.prototype.init.prototype=Vt.prototype,Vt.propHooks={_default:{get:function(V){var ie;return V.elem.nodeType!==1||V.elem[V.prop]!=null&&V.elem.style[V.prop]==null?V.elem[V.prop]:(ie=Q.css(V.elem,V.prop,""),!ie||ie==="auto"?0:ie)},set:function(V){Q.fx.step[V.prop]?Q.fx.step[V.prop](V):V.elem.nodeType===1&&(Q.cssHooks[V.prop]||V.elem.style[dr(V.prop)]!=null)?Q.style(V.elem,V.prop,V.now+V.unit):V.elem[V.prop]=V.now}}},Vt.propHooks.scrollTop=Vt.propHooks.scrollLeft={set:function(V){V.elem.nodeType&&V.elem.parentNode&&(V.elem[V.prop]=V.now)}},Q.easing={linear:function(V){return V},swing:function(V){return .5-Math.cos(V*Math.PI)/2},_default:"swing"},Q.fx=Vt.prototype.init,Q.fx.step={};var ar,qr,Vr=/^(?:toggle|show|hide)$/,Wr=/queueHooks$/;function Rr(){qr&&(F.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(Rr):n.setTimeout(Rr,Q.fx.interval),Q.fx.tick())}function bt(){return n.setTimeout(function(){ar=void 0}),ar=Date.now()}function Kr(V,ie){var be,Ee=0,Ie={height:V};for(ie=ie?1:0;Ee<4;Ee+=2-ie)be=je[Ee],Ie["margin"+be]=Ie["padding"+be]=V;return ie&&(Ie.opacity=Ie.width=V),Ie}function Ur(V,ie,be){for(var Ee,Ie=(ye.tweeners[ie]||[]).concat(ye.tweeners["*"]),De=0,Ke=Ie.length;De<Ke;De++)if(Ee=Ie[De].call(be,ie,V))return Ee}function ti(V,ie,be){var Ee,Ie,De,Ke,St,vt,Dt,Jt,or="width"in ie||"height"in ie,Wt=this,jr={},Dr=V.style,ni=V.nodeType&&Me(V),ri=Oe.get(V,"fxshow");be.queue||(Ke=Q._queueHooks(V,"fx"),Ke.unqueued==null&&(Ke.unqueued=0,St=Ke.empty.fire,Ke.empty.fire=function(){Ke.unqueued||St()}),Ke.unqueued++,Wt.always(function(){Wt.always(function(){Ke.unqueued--,Q.queue(V,"fx").length||Ke.empty.fire()})}));for(Ee in ie)if(Ie=ie[Ee],Vr.test(Ie)){if(delete ie[Ee],De=De||Ie==="toggle",Ie===(ni?"hide":"show"))if(Ie==="show"&&ri&&ri[Ee]!==void 0)ni=!0;else continue;jr[Ee]=ri&&ri[Ee]||Q.style(V,Ee)}if(vt=!Q.isEmptyObject(ie),!(!vt&&Q.isEmptyObject(jr))){or&&V.nodeType===1&&(be.overflow=[Dr.overflow,Dr.overflowX,Dr.overflowY],Dt=ri&&ri.display,Dt==null&&(Dt=Oe.get(V,"display")),Jt=Q.css(V,"display"),Jt==="none"&&(Dt?Jt=Dt:(wt([V],!0),Dt=V.style.display||Dt,Jt=Q.css(V,"display"),wt([V]))),(Jt==="inline"||Jt==="inline-block"&&Dt!=null)&&Q.css(V,"float")==="none"&&(vt||(Wt.done(function(){Dr.display=Dt}),Dt==null&&(Jt=Dr.display,Dt=Jt==="none"?"":Jt)),Dr.display="inline-block")),be.overflow&&(Dr.overflow="hidden",Wt.always(function(){Dr.overflow=be.overflow[0],Dr.overflowX=be.overflow[1],Dr.overflowY=be.overflow[2]})),vt=!1;for(Ee in jr)vt||(ri?"hidden"in ri&&(ni=ri.hidden):ri=Oe.access(V,"fxshow",{display:Dt}),De&&(ri.hidden=!ni),ni&&wt([V],!0),Wt.done(function(){ni||wt([V]),Oe.remove(V,"fxshow");for(Ee in jr)Q.style(V,Ee,jr[Ee])})),vt=Ur(ni?ri[Ee]:0,Ee,Wt),Ee in ri||(ri[Ee]=vt.start,ni&&(vt.end=vt.start,vt.start=0))}}function ae(V,ie){var be,Ee,Ie,De,Ke;for(be in V)if(Ee=nt(be),Ie=ie[Ee],De=V[be],Array.isArray(De)&&(Ie=De[1],De=V[be]=De[0]),be!==Ee&&(V[Ee]=De,delete V[be]),Ke=Q.cssHooks[Ee],Ke&&"expand"in Ke){De=Ke.expand(De),delete V[Ee];for(be in De)be in V||(V[be]=De[be],ie[be]=Ie)}else ie[Ee]=Ie}function ye(V,ie,be){var Ee,Ie,De=0,Ke=ye.prefilters.length,St=Q.Deferred().always(function(){delete vt.elem}),vt=function(){if(Ie)return!1;for(var or=ar||bt(),Wt=Math.max(0,Dt.startTime+Dt.duration-or),jr=Wt/Dt.duration||0,Dr=1-jr,ni=0,ri=Dt.tweens.length;ni<ri;ni++)Dt.tweens[ni].run(Dr);return St.notifyWith(V,[Dt,Dr,Wt]),Dr<1&&ri?Wt:(ri||St.notifyWith(V,[Dt,1,0]),St.resolveWith(V,[Dt]),!1)},Dt=St.promise({elem:V,props:Q.extend({},ie),opts:Q.extend(!0,{specialEasing:{},easing:Q.easing._default},be),originalProperties:ie,originalOptions:be,startTime:ar||bt(),duration:be.duration,tweens:[],createTween:function(or,Wt){var jr=Q.Tween(V,Dt.opts,or,Wt,Dt.opts.specialEasing[or]||Dt.opts.easing);return Dt.tweens.push(jr),jr},stop:function(or){var Wt=0,jr=or?Dt.tweens.length:0;if(Ie)return this;for(Ie=!0;Wt<jr;Wt++)Dt.tweens[Wt].run(1);return or?(St.notifyWith(V,[Dt,1,0]),St.resolveWith(V,[Dt,or])):St.rejectWith(V,[Dt,or]),this}}),Jt=Dt.props;for(ae(Jt,Dt.opts.specialEasing);De<Ke;De++)if(Ee=ye.prefilters[De].call(Dt,V,Jt,Dt.opts),Ee)return z(Ee.stop)&&(Q._queueHooks(Dt.elem,Dt.opts.queue).stop=Ee.stop.bind(Ee)),Ee;return Q.map(Jt,Ur,Dt),z(Dt.opts.start)&&Dt.opts.start.call(V,Dt),Dt.progress(Dt.opts.progress).done(Dt.opts.done,Dt.opts.complete).fail(Dt.opts.fail).always(Dt.opts.always),Q.fx.timer(Q.extend(vt,{elem:V,anim:Dt,queue:Dt.opts.queue})),Dt}Q.Animation=Q.extend(ye,{tweeners:{"*":[function(V,ie){var be=this.createTween(V,ie);return Rt(be.elem,V,pe.exec(ie),be),be}]},tweener:function(V,ie){z(V)?(ie=V,V=["*"]):V=V.match(oe);for(var be,Ee=0,Ie=V.length;Ee<Ie;Ee++)be=V[Ee],ye.tweeners[be]=ye.tweeners[be]||[],ye.tweeners[be].unshift(ie)},prefilters:[ti],prefilter:function(V,ie){ie?ye.prefilters.unshift(V):ye.prefilters.push(V)}}),Q.speed=function(V,ie,be){var Ee=V&&typeof V=="object"?Q.extend({},V):{complete:be||!be&&ie||z(V)&&V,duration:V,easing:be&&ie||ie&&!z(ie)&&ie};return Q.fx.off?Ee.duration=0:typeof Ee.duration!="number"&&(Ee.duration in Q.fx.speeds?Ee.duration=Q.fx.speeds[Ee.duration]:Ee.duration=Q.fx.speeds._default),(Ee.queue==null||Ee.queue===!0)&&(Ee.queue="fx"),Ee.old=Ee.complete,Ee.complete=function(){z(Ee.old)&&Ee.old.call(this),Ee.queue&&Q.dequeue(this,Ee.queue)},Ee},Q.fn.extend({fadeTo:function(V,ie,be,Ee){return this.filter(Me).css("opacity",0).show().end().animate({opacity:ie},V,be,Ee)},animate:function(V,ie,be,Ee){var Ie=Q.isEmptyObject(V),De=Q.speed(ie,be,Ee),Ke=function(){var St=ye(this,Q.extend({},V),De);(Ie||Oe.get(this,"finish"))&&St.stop(!0)};return Ke.finish=Ke,Ie||De.queue===!1?this.each(Ke):this.queue(De.queue,Ke)},stop:function(V,ie,be){var Ee=function(Ie){var De=Ie.stop;delete Ie.stop,De(be)};return typeof V!="string"&&(be=ie,ie=V,V=void 0),ie&&this.queue(V||"fx",[]),this.each(function(){var Ie=!0,De=V!=null&&V+"queueHooks",Ke=Q.timers,St=Oe.get(this);if(De)St[De]&&St[De].stop&&Ee(St[De]);else for(De in St)St[De]&&St[De].stop&&Wr.test(De)&&Ee(St[De]);for(De=Ke.length;De--;)Ke[De].elem===this&&(V==null||Ke[De].queue===V)&&(Ke[De].anim.stop(be),Ie=!1,Ke.splice(De,1));(Ie||!be)&&Q.dequeue(this,V)})},finish:function(V){return V!==!1&&(V=V||"fx"),this.each(function(){var ie,be=Oe.get(this),Ee=be[V+"queue"],Ie=be[V+"queueHooks"],De=Q.timers,Ke=Ee?Ee.length:0;for(be.finish=!0,Q.queue(this,V,[]),Ie&&Ie.stop&&Ie.stop.call(this,!0),ie=De.length;ie--;)De[ie].elem===this&&De[ie].queue===V&&(De[ie].anim.stop(!0),De.splice(ie,1));for(ie=0;ie<Ke;ie++)Ee[ie]&&Ee[ie].finish&&Ee[ie].finish.call(this);delete be.finish})}}),Q.each(["toggle","show","hide"],function(V,ie){var be=Q.fn[ie];Q.fn[ie]=function(Ee,Ie,De){return Ee==null||typeof Ee=="boolean"?be.apply(this,arguments):this.animate(Kr(ie,!0),Ee,Ie,De)}}),Q.each({slideDown:Kr("show"),slideUp:Kr("hide"),slideToggle:Kr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(V,ie){Q.fn[V]=function(be,Ee,Ie){return this.animate(ie,be,Ee,Ie)}}),Q.timers=[],Q.fx.tick=function(){var V,ie=0,be=Q.timers;for(ar=Date.now();ie<be.length;ie++)V=be[ie],!V()&&be[ie]===V&&be.splice(ie--,1);be.length||Q.fx.stop(),ar=void 0},Q.fx.timer=function(V){Q.timers.push(V),Q.fx.start()},Q.fx.interval=13,Q.fx.start=function(){qr||(qr=!0,Rr())},Q.fx.stop=function(){qr=null},Q.fx.speeds={slow:600,fast:200,_default:400},Q.fn.delay=function(V,ie){return V=Q.fx&&Q.fx.speeds[V]||V,ie=ie||"fx",this.queue(ie,function(be,Ee){var Ie=n.setTimeout(be,V);Ee.stop=function(){n.clearTimeout(Ie)}})},function(){var V=F.createElement("input"),ie=F.createElement("select"),be=ie.appendChild(F.createElement("option"));V.type="checkbox",$.checkOn=V.value!=="",$.optSelected=be.selected,V=F.createElement("input"),V.value="t",V.type="radio",$.radioValue=V.value==="t"}();var Ce,Pe=Q.expr.attrHandle;Q.fn.extend({attr:function(V,ie){return Ye(this,Q.attr,V,ie,arguments.length>1)},removeAttr:function(V){return this.each(function(){Q.removeAttr(this,V)})}}),Q.extend({attr:function(V,ie,be){var Ee,Ie,De=V.nodeType;if(!(De===3||De===8||De===2)){if(typeof V.getAttribute>"u")return Q.prop(V,ie,be);if((De!==1||!Q.isXMLDoc(V))&&(Ie=Q.attrHooks[ie.toLowerCase()]||(Q.expr.match.bool.test(ie)?Ce:void 0)),be!==void 0){if(be===null){Q.removeAttr(V,ie);return}return Ie&&"set"in Ie&&(Ee=Ie.set(V,be,ie))!==void 0?Ee:(V.setAttribute(ie,be+""),be)}return Ie&&"get"in Ie&&(Ee=Ie.get(V,ie))!==null?Ee:(Ee=Q.find.attr(V,ie),Ee??void 0)}},attrHooks:{type:{set:function(V,ie){if(!$.radioValue&&ie==="radio"&&he(V,"input")){var be=V.value;return V.setAttribute("type",ie),be&&(V.value=be),ie}}}},removeAttr:function(V,ie){var be,Ee=0,Ie=ie&&ie.match(oe);if(Ie&&V.nodeType===1)for(;be=Ie[Ee++];)V.removeAttribute(be)}}),Ce={set:function(V,ie,be){return ie===!1?Q.removeAttr(V,be):V.setAttribute(be,be),be}},Q.each(Q.expr.match.bool.source.match(/\w+/g),function(V,ie){var be=Pe[ie]||Q.find.attr;Pe[ie]=function(Ee,Ie,De){var Ke,St,vt=Ie.toLowerCase();return De||(St=Pe[vt],Pe[vt]=Ke,Ke=be(Ee,Ie,De)!=null?vt:null,Pe[vt]=St),Ke}});var ze=/^(?:input|select|textarea|button)$/i,Je=/^(?:a|area)$/i;Q.fn.extend({prop:function(V,ie){return Ye(this,Q.prop,V,ie,arguments.length>1)},removeProp:function(V){return this.each(function(){delete this[Q.propFix[V]||V]})}}),Q.extend({prop:function(V,ie,be){var Ee,Ie,De=V.nodeType;if(!(De===3||De===8||De===2))return(De!==1||!Q.isXMLDoc(V))&&(ie=Q.propFix[ie]||ie,Ie=Q.propHooks[ie]),be!==void 0?Ie&&"set"in Ie&&(Ee=Ie.set(V,be,ie))!==void 0?Ee:V[ie]=be:Ie&&"get"in Ie&&(Ee=Ie.get(V,ie))!==null?Ee:V[ie]},propHooks:{tabIndex:{get:function(V){var ie=Q.find.attr(V,"tabindex");return ie?parseInt(ie,10):ze.test(V.nodeName)||Je.test(V.nodeName)&&V.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),$.optSelected||(Q.propHooks.selected={get:function(V){var ie=V.parentNode;return ie&&ie.parentNode&&ie.parentNode.selectedIndex,null},set:function(V){var ie=V.parentNode;ie&&(ie.selectedIndex,ie.parentNode&&ie.parentNode.selectedIndex)}}),Q.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Q.propFix[this.toLowerCase()]=this});function ge(V){var ie=V.match(oe)||[];return ie.join(" ")}function we(V){return V.getAttribute&&V.getAttribute("class")||""}function Ae(V){return Array.isArray(V)?V:typeof V=="string"?V.match(oe)||[]:[]}Q.fn.extend({addClass:function(V){var ie,be,Ee,Ie,De,Ke;return z(V)?this.each(function(St){Q(this).addClass(V.call(this,St,we(this)))}):(ie=Ae(V),ie.length?this.each(function(){if(Ee=we(this),be=this.nodeType===1&&" "+ge(Ee)+" ",be){for(De=0;De<ie.length;De++)Ie=ie[De],be.indexOf(" "+Ie+" ")<0&&(be+=Ie+" ");Ke=ge(be),Ee!==Ke&&this.setAttribute("class",Ke)}}):this)},removeClass:function(V){var ie,be,Ee,Ie,De,Ke;return z(V)?this.each(function(St){Q(this).removeClass(V.call(this,St,we(this)))}):arguments.length?(ie=Ae(V),ie.length?this.each(function(){if(Ee=we(this),be=this.nodeType===1&&" "+ge(Ee)+" ",be){for(De=0;De<ie.length;De++)for(Ie=ie[De];be.indexOf(" "+Ie+" ")>-1;)be=be.replace(" "+Ie+" "," ");Ke=ge(be),Ee!==Ke&&this.setAttribute("class",Ke)}}):this):this.attr("class","")},toggleClass:function(V,ie){var be,Ee,Ie,De,Ke=typeof V,St=Ke==="string"||Array.isArray(V);return z(V)?this.each(function(vt){Q(this).toggleClass(V.call(this,vt,we(this),ie),ie)}):typeof ie=="boolean"&&St?ie?this.addClass(V):this.removeClass(V):(be=Ae(V),this.each(function(){if(St)for(De=Q(this),Ie=0;Ie<be.length;Ie++)Ee=be[Ie],De.hasClass(Ee)?De.removeClass(Ee):De.addClass(Ee);else(V===void 0||Ke==="boolean")&&(Ee=we(this),Ee&&Oe.set(this,"__className__",Ee),this.setAttribute&&this.setAttribute("class",Ee||V===!1?"":Oe.get(this,"__className__")||""))}))},hasClass:function(V){var ie,be,Ee=0;for(ie=" "+V+" ";be=this[Ee++];)if(be.nodeType===1&&(" "+ge(we(be))+" ").indexOf(ie)>-1)return!0;return!1}});var Ue=/\r/g;Q.fn.extend({val:function(V){var ie,be,Ee,Ie=this[0];return arguments.length?(Ee=z(V),this.each(function(De){var Ke;this.nodeType===1&&(Ee?Ke=V.call(this,De,Q(this).val()):Ke=V,Ke==null?Ke="":typeof Ke=="number"?Ke+="":Array.isArray(Ke)&&(Ke=Q.map(Ke,function(St){return St==null?"":St+""})),ie=Q.valHooks[this.type]||Q.valHooks[this.nodeName.toLowerCase()],(!ie||!("set"in ie)||ie.set(this,Ke,"value")===void 0)&&(this.value=Ke))})):Ie?(ie=Q.valHooks[Ie.type]||Q.valHooks[Ie.nodeName.toLowerCase()],ie&&"get"in ie&&(be=ie.get(Ie,"value"))!==void 0?be:(be=Ie.value,typeof be=="string"?be.replace(Ue,""):be??"")):void 0}}),Q.extend({valHooks:{option:{get:function(V){var ie=Q.find.attr(V,"value");return ie??ge(Q.text(V))}},select:{get:function(V){var ie,be,Ee,Ie=V.options,De=V.selectedIndex,Ke=V.type==="select-one",St=Ke?null:[],vt=Ke?De+1:Ie.length;for(De<0?Ee=vt:Ee=Ke?De:0;Ee<vt;Ee++)if(be=Ie[Ee],(be.selected||Ee===De)&&!be.disabled&&(!be.parentNode.disabled||!he(be.parentNode,"optgroup"))){if(ie=Q(be).val(),Ke)return ie;St.push(ie)}return St},set:function(V,ie){for(var be,Ee,Ie=V.options,De=Q.makeArray(ie),Ke=Ie.length;Ke--;)Ee=Ie[Ke],(Ee.selected=Q.inArray(Q.valHooks.option.get(Ee),De)>-1)&&(be=!0);return be||(V.selectedIndex=-1),De}}}}),Q.each(["radio","checkbox"],function(){Q.valHooks[this]={set:function(V,ie){if(Array.isArray(ie))return V.checked=Q.inArray(Q(V).val(),ie)>-1}},$.checkOn||(Q.valHooks[this].get=function(V){return V.getAttribute("value")===null?"on":V.value})});var ht=n.location,_t={guid:Date.now()},Ct=/\?/;Q.parseXML=function(V){var ie,be;if(!V||typeof V!="string")return null;try{ie=new n.DOMParser().parseFromString(V,"text/xml")}catch{}return be=ie&&ie.getElementsByTagName("parsererror")[0],(!ie||be)&&Q.error("Invalid XML: "+(be?Q.map(be.childNodes,function(Ee){return Ee.textContent}).join(`
`):V)),ie};var At=/^(?:focusinfocus|focusoutblur)$/,Qt=function(V){V.stopPropagation()};Q.extend(Q.event,{trigger:function(V,ie,be,Ee){var Ie,De,Ke,St,vt,Dt,Jt,or,Wt=[be||F],jr=j.call(V,"type")?V.type:V,Dr=j.call(V,"namespace")?V.namespace.split("."):[];if(De=or=Ke=be=be||F,!(be.nodeType===3||be.nodeType===8)&&!At.test(jr+Q.event.triggered)&&(jr.indexOf(".")>-1&&(Dr=jr.split("."),jr=Dr.shift(),Dr.sort()),vt=jr.indexOf(":")<0&&"on"+jr,V=V[Q.expando]?V:new Q.Event(jr,typeof V=="object"&&V),V.isTrigger=Ee?2:3,V.namespace=Dr.join("."),V.rnamespace=V.namespace?new RegExp("(^|\\.)"+Dr.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,V.result=void 0,V.target||(V.target=be),ie=ie==null?[V]:Q.makeArray(ie,[V]),Jt=Q.event.special[jr]||{},!(!Ee&&Jt.trigger&&Jt.trigger.apply(be,ie)===!1))){if(!Ee&&!Jt.noBubble&&!N(be)){for(St=Jt.delegateType||jr,At.test(St+jr)||(De=De.parentNode);De;De=De.parentNode)Wt.push(De),Ke=De;Ke===(be.ownerDocument||F)&&Wt.push(Ke.defaultView||Ke.parentWindow||n)}for(Ie=0;(De=Wt[Ie++])&&!V.isPropagationStopped();)or=De,V.type=Ie>1?St:Jt.bindType||jr,Dt=(Oe.get(De,"events")||Object.create(null))[V.type]&&Oe.get(De,"handle"),Dt&&Dt.apply(De,ie),Dt=vt&&De[vt],Dt&&Dt.apply&&Et(De)&&(V.result=Dt.apply(De,ie),V.result===!1&&V.preventDefault());return V.type=jr,!Ee&&!V.isDefaultPrevented()&&(!Jt._default||Jt._default.apply(Wt.pop(),ie)===!1)&&Et(be)&&vt&&z(be[jr])&&!N(be)&&(Ke=be[vt],Ke&&(be[vt]=null),Q.event.triggered=jr,V.isPropagationStopped()&&or.addEventListener(jr,Qt),be[jr](),V.isPropagationStopped()&&or.removeEventListener(jr,Qt),Q.event.triggered=void 0,Ke&&(be[vt]=Ke)),V.result}},simulate:function(V,ie,be){var Ee=Q.extend(new Q.Event,be,{type:V,isSimulated:!0});Q.event.trigger(Ee,null,ie)}}),Q.fn.extend({trigger:function(V,ie){return this.each(function(){Q.event.trigger(V,ie,this)})},triggerHandler:function(V,ie){var be=this[0];if(be)return Q.event.trigger(V,ie,be,!0)}});var ir=/\[\]$/,tr=/\r?\n/g,Zt=/^(?:submit|button|image|reset|file)$/i,Br=/^(?:input|select|textarea|keygen)/i;function pr(V,ie,be,Ee){var Ie;if(Array.isArray(ie))Q.each(ie,function(De,Ke){be||ir.test(V)?Ee(V,Ke):pr(V+"["+(typeof Ke=="object"&&Ke!=null?De:"")+"]",Ke,be,Ee)});else if(!be&&te(ie)==="object")for(Ie in ie)pr(V+"["+Ie+"]",ie[Ie],be,Ee);else Ee(V,ie)}Q.param=function(V,ie){var be,Ee=[],Ie=function(De,Ke){var St=z(Ke)?Ke():Ke;Ee[Ee.length]=encodeURIComponent(De)+"="+encodeURIComponent(St??"")};if(V==null)return"";if(Array.isArray(V)||V.jquery&&!Q.isPlainObject(V))Q.each(V,function(){Ie(this.name,this.value)});else for(be in V)pr(be,V[be],ie,Ie);return Ee.join("&")},Q.fn.extend({serialize:function(){return Q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var V=Q.prop(this,"elements");return V?Q.makeArray(V):this}).filter(function(){var V=this.type;return this.name&&!Q(this).is(":disabled")&&Br.test(this.nodeName)&&!Zt.test(V)&&(this.checked||!at.test(V))}).map(function(V,ie){var be=Q(this).val();return be==null?null:Array.isArray(be)?Q.map(be,function(Ee){return{name:ie.name,value:Ee.replace(tr,`\r
`)}}):{name:ie.name,value:be.replace(tr,`\r
`)}}).get()}});var _r=/%20/g,fr=/#.*$/,Gr=/([?&])_=[^&]*/,Nr=/^(.*?):[ \t]*([^\r\n]*)$/mg,Zr=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Sn=/^(?:GET|HEAD)$/,qn=/^\/\//,ii={},si={},vn="*/".concat("*"),on=F.createElement("a");on.href=ht.href;function Bn(V){return function(ie,be){typeof ie!="string"&&(be=ie,ie="*");var Ee,Ie=0,De=ie.toLowerCase().match(oe)||[];if(z(be))for(;Ee=De[Ie++];)Ee[0]==="+"?(Ee=Ee.slice(1)||"*",(V[Ee]=V[Ee]||[]).unshift(be)):(V[Ee]=V[Ee]||[]).push(be)}}function Hi(V,ie,be,Ee){var Ie={},De=V===si;function Ke(St){var vt;return Ie[St]=!0,Q.each(V[St]||[],function(Dt,Jt){var or=Jt(ie,be,Ee);if(typeof or=="string"&&!De&&!Ie[or])return ie.dataTypes.unshift(or),Ke(or),!1;if(De)return!(vt=or)}),vt}return Ke(ie.dataTypes[0])||!Ie["*"]&&Ke("*")}function Xi(V,ie){var be,Ee,Ie=Q.ajaxSettings.flatOptions||{};for(be in ie)ie[be]!==void 0&&((Ie[be]?V:Ee||(Ee={}))[be]=ie[be]);return Ee&&Q.extend(!0,V,Ee),V}function Kn(V,ie,be){for(var Ee,Ie,De,Ke,St=V.contents,vt=V.dataTypes;vt[0]==="*";)vt.shift(),Ee===void 0&&(Ee=V.mimeType||ie.getResponseHeader("Content-Type"));if(Ee){for(Ie in St)if(St[Ie]&&St[Ie].test(Ee)){vt.unshift(Ie);break}}if(vt[0]in be)De=vt[0];else{for(Ie in be){if(!vt[0]||V.converters[Ie+" "+vt[0]]){De=Ie;break}Ke||(Ke=Ie)}De=De||Ke}if(De)return De!==vt[0]&&vt.unshift(De),be[De]}function ta(V,ie,be,Ee){var Ie,De,Ke,St,vt,Dt={},Jt=V.dataTypes.slice();if(Jt[1])for(Ke in V.converters)Dt[Ke.toLowerCase()]=V.converters[Ke];for(De=Jt.shift();De;)if(V.responseFields[De]&&(be[V.responseFields[De]]=ie),!vt&&Ee&&V.dataFilter&&(ie=V.dataFilter(ie,V.dataType)),vt=De,De=Jt.shift(),De){if(De==="*")De=vt;else if(vt!=="*"&&vt!==De){if(Ke=Dt[vt+" "+De]||Dt["* "+De],!Ke){for(Ie in Dt)if(St=Ie.split(" "),St[1]===De&&(Ke=Dt[vt+" "+St[0]]||Dt["* "+St[0]],Ke)){Ke===!0?Ke=Dt[Ie]:Dt[Ie]!==!0&&(De=St[0],Jt.unshift(St[1]));break}}if(Ke!==!0)if(Ke&&V.throws)ie=Ke(ie);else try{ie=Ke(ie)}catch(or){return{state:"parsererror",error:Ke?or:"No conversion from "+vt+" to "+De}}}}return{state:"success",data:ie}}Q.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ht.href,type:"GET",isLocal:Zr.test(ht.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Q.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(V,ie){return ie?Xi(Xi(V,Q.ajaxSettings),ie):Xi(Q.ajaxSettings,V)},ajaxPrefilter:Bn(ii),ajaxTransport:Bn(si),ajax:function(V,ie){typeof V=="object"&&(ie=V,V=void 0),ie=ie||{};var be,Ee,Ie,De,Ke,St,vt,Dt,Jt,or,Wt=Q.ajaxSetup({},ie),jr=Wt.context||Wt,Dr=Wt.context&&(jr.nodeType||jr.jquery)?Q(jr):Q.event,ni=Q.Deferred(),ri=Q.Callbacks("once memory"),Ei=Wt.statusCode||{},xi={},un={},fn="canceled",hi={readyState:0,getResponseHeader:function(di){var wi;if(vt){if(!De)for(De={};wi=Nr.exec(Ie);)De[wi[1].toLowerCase()+" "]=(De[wi[1].toLowerCase()+" "]||[]).concat(wi[2]);wi=De[di.toLowerCase()+" "]}return wi==null?null:wi.join(", ")},getAllResponseHeaders:function(){return vt?Ie:null},setRequestHeader:function(di,wi){return vt==null&&(di=un[di.toLowerCase()]=un[di.toLowerCase()]||di,xi[di]=wi),this},overrideMimeType:function(di){return vt==null&&(Wt.mimeType=di),this},statusCode:function(di){var wi;if(di)if(vt)hi.always(di[hi.status]);else for(wi in di)Ei[wi]=[Ei[wi],di[wi]];return this},abort:function(di){var wi=di||fn;return be&&be.abort(wi),Mn(0,wi),this}};if(ni.promise(hi),Wt.url=((V||Wt.url||ht.href)+"").replace(qn,ht.protocol+"//"),Wt.type=ie.method||ie.type||Wt.method||Wt.type,Wt.dataTypes=(Wt.dataType||"*").toLowerCase().match(oe)||[""],Wt.crossDomain==null){St=F.createElement("a");try{St.href=Wt.url,St.href=St.href,Wt.crossDomain=on.protocol+"//"+on.host!=St.protocol+"//"+St.host}catch{Wt.crossDomain=!0}}if(Wt.data&&Wt.processData&&typeof Wt.data!="string"&&(Wt.data=Q.param(Wt.data,Wt.traditional)),Hi(ii,Wt,ie,hi),vt)return hi;Dt=Q.event&&Wt.global,Dt&&Q.active++===0&&Q.event.trigger("ajaxStart"),Wt.type=Wt.type.toUpperCase(),Wt.hasContent=!Sn.test(Wt.type),Ee=Wt.url.replace(fr,""),Wt.hasContent?Wt.data&&Wt.processData&&(Wt.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Wt.data=Wt.data.replace(_r,"+")):(or=Wt.url.slice(Ee.length),Wt.data&&(Wt.processData||typeof Wt.data=="string")&&(Ee+=(Ct.test(Ee)?"&":"?")+Wt.data,delete Wt.data),Wt.cache===!1&&(Ee=Ee.replace(Gr,"$1"),or=(Ct.test(Ee)?"&":"?")+"_="+_t.guid+++or),Wt.url=Ee+or),Wt.ifModified&&(Q.lastModified[Ee]&&hi.setRequestHeader("If-Modified-Since",Q.lastModified[Ee]),Q.etag[Ee]&&hi.setRequestHeader("If-None-Match",Q.etag[Ee])),(Wt.data&&Wt.hasContent&&Wt.contentType!==!1||ie.contentType)&&hi.setRequestHeader("Content-Type",Wt.contentType),hi.setRequestHeader("Accept",Wt.dataTypes[0]&&Wt.accepts[Wt.dataTypes[0]]?Wt.accepts[Wt.dataTypes[0]]+(Wt.dataTypes[0]!=="*"?", "+vn+"; q=0.01":""):Wt.accepts["*"]);for(Jt in Wt.headers)hi.setRequestHeader(Jt,Wt.headers[Jt]);if(Wt.beforeSend&&(Wt.beforeSend.call(jr,hi,Wt)===!1||vt))return hi.abort();if(fn="abort",ri.add(Wt.complete),hi.done(Wt.success),hi.fail(Wt.error),be=Hi(si,Wt,ie,hi),!be)Mn(-1,"No Transport");else{if(hi.readyState=1,Dt&&Dr.trigger("ajaxSend",[hi,Wt]),vt)return hi;Wt.async&&Wt.timeout>0&&(Ke=n.setTimeout(function(){hi.abort("timeout")},Wt.timeout));try{vt=!1,be.send(xi,Mn)}catch(di){if(vt)throw di;Mn(-1,di)}}function Mn(di,wi,ia,va){var Ji,In,Ki,gn,En,Ri=wi;vt||(vt=!0,Ke&&n.clearTimeout(Ke),be=void 0,Ie=va||"",hi.readyState=di>0?4:0,Ji=di>=200&&di<300||di===304,ia&&(gn=Kn(Wt,hi,ia)),!Ji&&Q.inArray("script",Wt.dataTypes)>-1&&Q.inArray("json",Wt.dataTypes)<0&&(Wt.converters["text script"]=function(){}),gn=ta(Wt,gn,hi,Ji),Ji?(Wt.ifModified&&(En=hi.getResponseHeader("Last-Modified"),En&&(Q.lastModified[Ee]=En),En=hi.getResponseHeader("etag"),En&&(Q.etag[Ee]=En)),di===204||Wt.type==="HEAD"?Ri="nocontent":di===304?Ri="notmodified":(Ri=gn.state,In=gn.data,Ki=gn.error,Ji=!Ki)):(Ki=Ri,(di||!Ri)&&(Ri="error",di<0&&(di=0))),hi.status=di,hi.statusText=(wi||Ri)+"",Ji?ni.resolveWith(jr,[In,Ri,hi]):ni.rejectWith(jr,[hi,Ri,Ki]),hi.statusCode(Ei),Ei=void 0,Dt&&Dr.trigger(Ji?"ajaxSuccess":"ajaxError",[hi,Wt,Ji?In:Ki]),ri.fireWith(jr,[hi,Ri]),Dt&&(Dr.trigger("ajaxComplete",[hi,Wt]),--Q.active||Q.event.trigger("ajaxStop")))}return hi},getJSON:function(V,ie,be){return Q.get(V,ie,be,"json")},getScript:function(V,ie){return Q.get(V,void 0,ie,"script")}}),Q.each(["get","post"],function(V,ie){Q[ie]=function(be,Ee,Ie,De){return z(Ee)&&(De=De||Ie,Ie=Ee,Ee=void 0),Q.ajax(Q.extend({url:be,type:ie,dataType:De,data:Ee,success:Ie},Q.isPlainObject(be)&&be))}}),Q.ajaxPrefilter(function(V){var ie;for(ie in V.headers)ie.toLowerCase()==="content-type"&&(V.contentType=V.headers[ie]||"")}),Q._evalUrl=function(V,ie,be){return Q.ajax({url:V,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(Ee){Q.globalEval(Ee,ie,be)}})},Q.fn.extend({wrapAll:function(V){var ie;return this[0]&&(z(V)&&(V=V.call(this[0])),ie=Q(V,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&ie.insertBefore(this[0]),ie.map(function(){for(var be=this;be.firstElementChild;)be=be.firstElementChild;return be}).append(this)),this},wrapInner:function(V){return z(V)?this.each(function(ie){Q(this).wrapInner(V.call(this,ie))}):this.each(function(){var ie=Q(this),be=ie.contents();be.length?be.wrapAll(V):ie.append(V)})},wrap:function(V){var ie=z(V);return this.each(function(be){Q(this).wrapAll(ie?V.call(this,be):V)})},unwrap:function(V){return this.parent(V).not("body").each(function(){Q(this).replaceWith(this.childNodes)}),this}}),Q.expr.pseudos.hidden=function(V){return!Q.expr.pseudos.visible(V)},Q.expr.pseudos.visible=function(V){return!!(V.offsetWidth||V.offsetHeight||V.getClientRects().length)},Q.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch{}};var ma={0:200,1223:204},yi=Q.ajaxSettings.xhr();$.cors=!!yi&&"withCredentials"in yi,$.ajax=yi=!!yi,Q.ajaxTransport(function(V){var ie,be;if($.cors||yi&&!V.crossDomain)return{send:function(Ee,Ie){var De,Ke=V.xhr();if(Ke.open(V.type,V.url,V.async,V.username,V.password),V.xhrFields)for(De in V.xhrFields)Ke[De]=V.xhrFields[De];V.mimeType&&Ke.overrideMimeType&&Ke.overrideMimeType(V.mimeType),!V.crossDomain&&!Ee["X-Requested-With"]&&(Ee["X-Requested-With"]="XMLHttpRequest");for(De in Ee)Ke.setRequestHeader(De,Ee[De]);ie=function(St){return function(){ie&&(ie=be=Ke.onload=Ke.onerror=Ke.onabort=Ke.ontimeout=Ke.onreadystatechange=null,St==="abort"?Ke.abort():St==="error"?typeof Ke.status!="number"?Ie(0,"error"):Ie(Ke.status,Ke.statusText):Ie(ma[Ke.status]||Ke.status,Ke.statusText,(Ke.responseType||"text")!=="text"||typeof Ke.responseText!="string"?{binary:Ke.response}:{text:Ke.responseText},Ke.getAllResponseHeaders()))}},Ke.onload=ie(),be=Ke.onerror=Ke.ontimeout=ie("error"),Ke.onabort!==void 0?Ke.onabort=be:Ke.onreadystatechange=function(){Ke.readyState===4&&n.setTimeout(function(){ie&&be()})},ie=ie("abort");try{Ke.send(V.hasContent&&V.data||null)}catch(St){if(ie)throw St}},abort:function(){ie&&ie()}}}),Q.ajaxPrefilter(function(V){V.crossDomain&&(V.contents.script=!1)}),Q.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(V){return Q.globalEval(V),V}}}),Q.ajaxPrefilter("script",function(V){V.cache===void 0&&(V.cache=!1),V.crossDomain&&(V.type="GET")}),Q.ajaxTransport("script",function(V){if(V.crossDomain||V.scriptAttrs){var ie,be;return{send:function(Ee,Ie){ie=Q("<script>").attr(V.scriptAttrs||{}).prop({charset:V.scriptCharset,src:V.url}).on("load error",be=function(De){ie.remove(),be=null,De&&Ie(De.type==="error"?404:200,De.type)}),F.head.appendChild(ie[0])},abort:function(){be&&be()}}}});var Rn=[],Ui=/(=)\?(?=&|$)|\?\?/;Q.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var V=Rn.pop()||Q.expando+"_"+_t.guid++;return this[V]=!0,V}}),Q.ajaxPrefilter("json jsonp",function(V,ie,be){var Ee,Ie,De,Ke=V.jsonp!==!1&&(Ui.test(V.url)?"url":typeof V.data=="string"&&(V.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Ui.test(V.data)&&"data");if(Ke||V.dataTypes[0]==="jsonp")return Ee=V.jsonpCallback=z(V.jsonpCallback)?V.jsonpCallback():V.jsonpCallback,Ke?V[Ke]=V[Ke].replace(Ui,"$1"+Ee):V.jsonp!==!1&&(V.url+=(Ct.test(V.url)?"&":"?")+V.jsonp+"="+Ee),V.converters["script json"]=function(){return De||Q.error(Ee+" was not called"),De[0]},V.dataTypes[0]="json",Ie=n[Ee],n[Ee]=function(){De=arguments},be.always(function(){Ie===void 0?Q(n).removeProp(Ee):n[Ee]=Ie,V[Ee]&&(V.jsonpCallback=ie.jsonpCallback,Rn.push(Ee)),De&&z(Ie)&&Ie(De[0]),De=Ie=void 0}),"script"}),$.createHTMLDocument=function(){var V=F.implementation.createHTMLDocument("").body;return V.innerHTML="<form></form><form></form>",V.childNodes.length===2}(),Q.parseHTML=function(V,ie,be){if(typeof V!="string")return[];typeof ie=="boolean"&&(be=ie,ie=!1);var Ee,Ie,De;return ie||($.createHTMLDocument?(ie=F.implementation.createHTMLDocument(""),Ee=ie.createElement("base"),Ee.href=F.location.href,ie.head.appendChild(Ee)):ie=F),Ie=E.exec(V),De=!be&&[],Ie?[ie.createElement(Ie[1])]:(Ie=It([V],ie,De),De&&De.length&&Q(De).remove(),Q.merge([],Ie.childNodes))},Q.fn.load=function(V,ie,be){var Ee,Ie,De,Ke=this,St=V.indexOf(" ");return St>-1&&(Ee=ge(V.slice(St)),V=V.slice(0,St)),z(ie)?(be=ie,ie=void 0):ie&&typeof ie=="object"&&(Ie="POST"),Ke.length>0&&Q.ajax({url:V,type:Ie||"GET",dataType:"html",data:ie}).done(function(vt){De=arguments,Ke.html(Ee?Q("<div>").append(Q.parseHTML(vt)).find(Ee):vt)}).always(be&&function(vt,Dt){Ke.each(function(){be.apply(this,De||[vt.responseText,Dt,vt])})}),this},Q.expr.pseudos.animated=function(V){return Q.grep(Q.timers,function(ie){return V===ie.elem}).length},Q.offset={setOffset:function(V,ie,be){var Ee,Ie,De,Ke,St,vt,Dt,Jt=Q.css(V,"position"),or=Q(V),Wt={};Jt==="static"&&(V.style.position="relative"),St=or.offset(),De=Q.css(V,"top"),vt=Q.css(V,"left"),Dt=(Jt==="absolute"||Jt==="fixed")&&(De+vt).indexOf("auto")>-1,Dt?(Ee=or.position(),Ke=Ee.top,Ie=Ee.left):(Ke=parseFloat(De)||0,Ie=parseFloat(vt)||0),z(ie)&&(ie=ie.call(V,be,Q.extend({},St))),ie.top!=null&&(Wt.top=ie.top-St.top+Ke),ie.left!=null&&(Wt.left=ie.left-St.left+Ie),"using"in ie?ie.using.call(V,Wt):or.css(Wt)}},Q.fn.extend({offset:function(V){if(arguments.length)return V===void 0?this:this.each(function(Ie){Q.offset.setOffset(this,V,Ie)});var ie,be,Ee=this[0];if(Ee)return Ee.getClientRects().length?(ie=Ee.getBoundingClientRect(),be=Ee.ownerDocument.defaultView,{top:ie.top+be.pageYOffset,left:ie.left+be.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var V,ie,be,Ee=this[0],Ie={top:0,left:0};if(Q.css(Ee,"position")==="fixed")ie=Ee.getBoundingClientRect();else{for(ie=this.offset(),be=Ee.ownerDocument,V=Ee.offsetParent||be.documentElement;V&&(V===be.body||V===be.documentElement)&&Q.css(V,"position")==="static";)V=V.parentNode;V&&V!==Ee&&V.nodeType===1&&(Ie=Q(V).offset(),Ie.top+=Q.css(V,"borderTopWidth",!0),Ie.left+=Q.css(V,"borderLeftWidth",!0))}return{top:ie.top-Ie.top-Q.css(Ee,"marginTop",!0),left:ie.left-Ie.left-Q.css(Ee,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var V=this.offsetParent;V&&Q.css(V,"position")==="static";)V=V.offsetParent;return V||$e})}}),Q.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(V,ie){var be=ie==="pageYOffset";Q.fn[V]=function(Ee){return Ye(this,function(Ie,De,Ke){var St;if(N(Ie)?St=Ie:Ie.nodeType===9&&(St=Ie.defaultView),Ke===void 0)return St?St[ie]:Ie[De];St?St.scrollTo(be?St.pageXOffset:Ke,be?Ke:St.pageYOffset):Ie[De]=Ke},V,Ee,arguments.length)}}),Q.each(["top","left"],function(V,ie){Q.cssHooks[ie]=Pr($.pixelPosition,function(be,Ee){if(Ee)return Ee=vr(be,ie),Xt.test(Ee)?Q(be).position()[ie]+"px":Ee})}),Q.each({Height:"height",Width:"width"},function(V,ie){Q.each({padding:"inner"+V,content:ie,"":"outer"+V},function(be,Ee){Q.fn[Ee]=function(Ie,De){var Ke=arguments.length&&(be||typeof Ie!="boolean"),St=be||(Ie===!0||De===!0?"margin":"border");return Ye(this,function(vt,Dt,Jt){var or;return N(vt)?Ee.indexOf("outer")===0?vt["inner"+V]:vt.document.documentElement["client"+V]:vt.nodeType===9?(or=vt.documentElement,Math.max(vt.body["scroll"+V],or["scroll"+V],vt.body["offset"+V],or["offset"+V],or["client"+V])):Jt===void 0?Q.css(vt,Dt,St):Q.style(vt,Dt,Jt,St)},ie,Ke?Ie:void 0,Ke)}})}),Q.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(V,ie){Q.fn[ie]=function(be){return this.on(ie,be)}}),Q.fn.extend({bind:function(V,ie,be){return this.on(V,null,ie,be)},unbind:function(V,ie){return this.off(V,null,ie)},delegate:function(V,ie,be,Ee){return this.on(ie,V,be,Ee)},undelegate:function(V,ie,be){return arguments.length===1?this.off(V,"**"):this.off(ie,V||"**",be)},hover:function(V,ie){return this.on("mouseenter",V).on("mouseleave",ie||V)}}),Q.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(V,ie){Q.fn[ie]=function(be,Ee){return arguments.length>0?this.on(ie,null,be,Ee):this.trigger(ie)}});var ra=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;Q.proxy=function(V,ie){var be,Ee,Ie;if(typeof ie=="string"&&(be=V[ie],ie=V,V=be),!!z(V))return Ee=h.call(arguments,2),Ie=function(){return V.apply(ie||this,Ee.concat(h.call(arguments)))},Ie.guid=V.guid=V.guid||Q.guid++,Ie},Q.holdReady=function(V){V?Q.readyWait++:Q.ready(!0)},Q.isArray=Array.isArray,Q.parseJSON=JSON.parse,Q.nodeName=he,Q.isFunction=z,Q.isWindow=N,Q.camelCase=nt,Q.type=te,Q.now=Date.now,Q.isNumeric=function(V){var ie=Q.type(V);return(ie==="number"||ie==="string")&&!isNaN(V-parseFloat(V))},Q.trim=function(V){return V==null?"":(V+"").replace(ra,"$1")};var Wi=n.jQuery,Bi=n.$;return Q.noConflict=function(V){return n.$===Q&&(n.$=Bi),V&&n.jQuery===Q&&(n.jQuery=Wi),Q},typeof l>"u"&&(n.jQuery=n.$=Q),Q})})(jquery);var jqueryExports=jquery.exports;const jQuery=getDefaultExportFromCjs$1(jqueryExports);/*! jQuery UI - v1.14.0 - 2024-08-05
* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright OpenJS Foundation and other contributors; Licensed MIT */(function(t){typeof define=="function"&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.14.0";/*!
 * jQuery UI Widget 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */var n=0,l=Array.prototype.hasOwnProperty,d=Array.prototype.slice;t.cleanData=function(e){return function(c){var y,w,v;for(v=0;(w=c[v])!=null;v++)y=t._data(w,"events"),y&&y.remove&&t(w).triggerHandler("remove");e(c)}}(t.cleanData),t.widget=function(e,c,y){var w,v,o,x={},E=e.split(".")[0];e=e.split(".")[1];var R=E+"-"+e;return y||(y=c,c=t.Widget),Array.isArray(y)&&(y=t.extend.apply(null,[{}].concat(y))),t.expr.pseudos[R.toLowerCase()]=function(H){return!!t.data(H,R)},t[E]=t[E]||{},w=t[E][e],v=t[E][e]=function(H,Y){if(!this||!this._createWidget)return new v(H,Y);arguments.length&&this._createWidget(H,Y)},t.extend(v,w,{version:y.version,_proto:t.extend({},y),_childConstructors:[]}),o=new c,o.options=t.widget.extend({},o.options),t.each(y,function(H,Y){if(typeof Y!="function"){x[H]=Y;return}x[H]=function(){function Z(){return c.prototype[H].apply(this,arguments)}function L(D){return c.prototype[H].apply(this,D)}return function(){var D=this._super,ee=this._superApply,oe;return this._super=Z,this._superApply=L,oe=Y.apply(this,arguments),this._super=D,this._superApply=ee,oe}}()}),v.prototype=t.widget.extend(o,{widgetEventPrefix:w&&o.widgetEventPrefix||e},x,{constructor:v,namespace:E,widgetName:e,widgetFullName:R}),w?(t.each(w._childConstructors,function(H,Y){var Z=Y.prototype;t.widget(Z.namespace+"."+Z.widgetName,v,Y._proto)}),delete w._childConstructors):c._childConstructors.push(v),t.widget.bridge(e,v),v},t.widget.extend=function(e){for(var c=d.call(arguments,1),y=0,w=c.length,v,o;y<w;y++)for(v in c[y])o=c[y][v],l.call(c[y],v)&&o!==void 0&&(t.isPlainObject(o)?e[v]=t.isPlainObject(e[v])?t.widget.extend({},e[v],o):t.widget.extend({},o):e[v]=o);return e},t.widget.bridge=function(e,c){var y=c.prototype.widgetFullName||e;t.fn[e]=function(w){var v=typeof w=="string",o=d.call(arguments,1),x=this;return v?!this.length&&w==="instance"?x=void 0:this.each(function(){var E,R=t.data(this,y);if(w==="instance")return x=R,!1;if(!R)return t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+w+"'");if(typeof R[w]!="function"||w.charAt(0)==="_")return t.error("no such method '"+w+"' for "+e+" widget instance");if(E=R[w].apply(R,o),E!==R&&E!==void 0)return x=E&&E.jquery?x.pushStack(E.get()):E,!1}):(o.length&&(w=t.widget.extend.apply(null,[w].concat(o))),this.each(function(){var E=t.data(this,y);E?(E.option(w||{}),E._init&&E._init()):t.data(this,y,new c(w,this))})),x}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,c){c=t(c||this.defaultElement||this)[0],this.element=t(c),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},c!==this&&(t.data(c,this.widgetFullName,this),this._on(!0,this.element,{remove:function(y){y.target===c&&this.destroy()}}),this.document=t(c.style?c.ownerDocument:c.document||c),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(c,y){e._removeClass(y,c)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,c){var y=e,w,v,o;if(arguments.length===0)return t.widget.extend({},this.options);if(typeof e=="string")if(y={},w=e.split("."),e=w.shift(),w.length){for(v=y[e]=t.widget.extend({},this.options[e]),o=0;o<w.length-1;o++)v[w[o]]=v[w[o]]||{},v=v[w[o]];if(e=w.pop(),arguments.length===1)return v[e]===void 0?null:v[e];v[e]=c}else{if(arguments.length===1)return this.options[e]===void 0?null:this.options[e];y[e]=c}return this._setOptions(y),this},_setOptions:function(e){var c;for(c in e)this._setOption(c,e[c]);return this},_setOption:function(e,c){return e==="classes"&&this._setOptionClasses(c),this.options[e]=c,e==="disabled"&&this._setOptionDisabled(c),this},_setOptionClasses:function(e){var c,y,w;for(c in e)w=this.classesElementLookup[c],!(e[c]===this.options.classes[c]||!w||!w.length)&&(y=t(w.get()),this._removeClass(w,c),y.addClass(this._classes({element:y,keys:c,classes:e,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var c=[],y=this;e=t.extend({element:this.element,classes:this.options.classes||{}},e);function w(){var o=[];e.element.each(function(x,E){var R=t.map(y.classesElementLookup,function(H){return H}).some(function(H){return H.is(E)});R||o.push(E)}),y._on(t(o),{remove:"_untrackClassesElement"})}function v(o,x){var E,R;for(R=0;R<o.length;R++)E=y.classesElementLookup[o[R]]||t(),e.add?(w(),E=t(t.uniqueSort(E.get().concat(e.element.get())))):E=t(E.not(e.element).get()),y.classesElementLookup[o[R]]=E,c.push(o[R]),x&&e.classes[o[R]]&&c.push(e.classes[o[R]])}return e.keys&&v(e.keys.match(/\S+/g)||[],!0),e.extra&&v(e.extra.match(/\S+/g)||[]),c.join(" ")},_untrackClassesElement:function(e){var c=this;t.each(c.classesElementLookup,function(y,w){t.inArray(e.target,w)!==-1&&(c.classesElementLookup[y]=t(w.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(e,c,y){return this._toggleClass(e,c,y,!1)},_addClass:function(e,c,y){return this._toggleClass(e,c,y,!0)},_toggleClass:function(e,c,y,w){w=typeof w=="boolean"?w:y;var v=typeof e=="string"||e===null,o={extra:v?c:y,keys:v?e:c,element:v?this.element:e,add:w};return o.element.toggleClass(this._classes(o),w),this},_on:function(e,c,y){var w,v=this;typeof e!="boolean"&&(y=c,c=e,e=!1),y?(c=w=t(c),this.bindings=this.bindings.add(c)):(y=c,c=this.element,w=this.widget()),t.each(y,function(o,x){function E(){if(!(!e&&(v.options.disabled===!0||t(this).hasClass("ui-state-disabled"))))return(typeof x=="string"?v[x]:x).apply(v,arguments)}typeof x!="string"&&(E.guid=x.guid=x.guid||E.guid||t.guid++);var R=o.match(/^([\w:-]*)\s*(.*)$/),H=R[1]+v.eventNamespace,Y=R[2];Y?w.on(H,Y,E):c.on(H,E)})},_off:function(e,c){c=(c||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(c),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(e,c){function y(){return(typeof e=="string"?w[e]:e).apply(w,arguments)}var w=this;return setTimeout(y,c||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(c){this._addClass(t(c.currentTarget),null,"ui-state-hover")},mouseleave:function(c){this._removeClass(t(c.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(c){this._addClass(t(c.currentTarget),null,"ui-state-focus")},focusout:function(c){this._removeClass(t(c.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,c,y){var w,v,o=this.options[e];if(y=y||{},c=t.Event(c),c.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),c.target=this.element[0],v=c.originalEvent,v)for(w in v)w in c||(c[w]=v[w]);return this.element.trigger(c,y),!(typeof o=="function"&&o.apply(this.element[0],[c].concat(y))===!1||c.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,c){t.Widget.prototype["_"+e]=function(y,w,v){typeof w=="string"&&(w={effect:w});var o,x=w?w===!0||typeof w=="number"?c:w.effect||c:e;w=w||{},typeof w=="number"?w={duration:w}:w===!0&&(w={}),o=!t.isEmptyObject(w),w.complete=v,w.delay&&y.delay(w.delay),o&&t.effects&&t.effects.effect[x]?y[e](w):x!==e&&y[x]?y[x](w.duration,w.easing,v):y.queue(function(E){t(this)[e](),v&&v.call(y[0]),E()})}}),t.widget;/*!
 * jQuery UI Position 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */(function(){var e,c=Math.max,y=Math.abs,w=/left|center|right/,v=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,x=/^\w+/,E=/%$/,R=t.fn.position;function H(D,ee,oe){return[parseFloat(D[0])*(E.test(D[0])?ee/100:1),parseFloat(D[1])*(E.test(D[1])?oe/100:1)]}function Y(D,ee){return parseInt(t.css(D,ee),10)||0}function Z(D){return D!=null&&D===D.window}function L(D){var ee=D[0];return ee.nodeType===9?{width:D.width(),height:D.height(),offset:{top:0,left:0}}:Z(ee)?{width:D.width(),height:D.height(),offset:{top:D.scrollTop(),left:D.scrollLeft()}}:ee.preventDefault?{width:0,height:0,offset:{top:ee.pageY,left:ee.pageX}}:{width:D.outerWidth(),height:D.outerHeight(),offset:D.offset()}}t.position={scrollbarWidth:function(){if(e!==void 0)return e;var D,ee,oe=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),fe=oe.children()[0];return t("body").append(oe),D=fe.offsetWidth,oe.css("overflow","scroll"),ee=fe.offsetWidth,D===ee&&(ee=oe[0].clientWidth),oe.remove(),e=D-ee},getScrollInfo:function(D){var ee=D.isWindow||D.isDocument?"":D.element.css("overflow-x"),oe=D.isWindow||D.isDocument?"":D.element.css("overflow-y"),fe=ee==="scroll"||ee==="auto"&&D.width<D.element[0].scrollWidth,ue=oe==="scroll"||oe==="auto"&&D.height<D.element[0].scrollHeight;return{width:ue?t.position.scrollbarWidth():0,height:fe?t.position.scrollbarWidth():0}},getWithinInfo:function(D){var ee=t(D||window),oe=Z(ee[0]),fe=!!ee[0]&&ee[0].nodeType===9,ue=!oe&&!fe;return{element:ee,isWindow:oe,isDocument:fe,offset:ue?t(D).offset():{left:0,top:0},scrollLeft:ee.scrollLeft(),scrollTop:ee.scrollTop(),width:ee.outerWidth(),height:ee.outerHeight()}}},t.fn.position=function(D){if(!D||!D.of)return R.apply(this,arguments);D=t.extend({},D);var ee,oe,fe,ue,qe,rt,Ve=typeof D.of=="string"?t(document).find(D.of):t(D.of),et=t.position.getWithinInfo(D.within),mt=t.position.getScrollInfo(et),Ye=(D.collision||"flip").split(" "),We={};return rt=L(Ve),Ve[0].preventDefault&&(D.at="left top"),oe=rt.width,fe=rt.height,ue=rt.offset,qe=t.extend({},ue),t.each(["my","at"],function(){var Xe=(D[this]||"").split(" "),Ge,nt;Xe.length===1&&(Xe=w.test(Xe[0])?Xe.concat(["center"]):v.test(Xe[0])?["center"].concat(Xe):["center","center"]),Xe[0]=w.test(Xe[0])?Xe[0]:"center",Xe[1]=v.test(Xe[1])?Xe[1]:"center",Ge=o.exec(Xe[0]),nt=o.exec(Xe[1]),We[this]=[Ge?Ge[0]:0,nt?nt[0]:0],D[this]=[x.exec(Xe[0])[0],x.exec(Xe[1])[0]]}),Ye.length===1&&(Ye[1]=Ye[0]),D.at[0]==="right"?qe.left+=oe:D.at[0]==="center"&&(qe.left+=oe/2),D.at[1]==="bottom"?qe.top+=fe:D.at[1]==="center"&&(qe.top+=fe/2),ee=H(We.at,oe,fe),qe.left+=ee[0],qe.top+=ee[1],this.each(function(){var Xe,Ge,nt=t(this),Et=nt.outerWidth(),Le=nt.outerHeight(),Oe=Y(this,"marginLeft"),$t=Y(this,"marginTop"),dt=Et+Oe+Y(this,"marginRight")+mt.width,gt=Le+$t+Y(this,"marginBottom")+mt.height,Lt=t.extend({},qe),xe=H(We.my,nt.outerWidth(),nt.outerHeight());D.my[0]==="right"?Lt.left-=Et:D.my[0]==="center"&&(Lt.left-=Et/2),D.my[1]==="bottom"?Lt.top-=Le:D.my[1]==="center"&&(Lt.top-=Le/2),Lt.left+=xe[0],Lt.top+=xe[1],Xe={marginLeft:Oe,marginTop:$t},t.each(["left","top"],function(X,pe){t.ui.position[Ye[X]]&&t.ui.position[Ye[X]][pe](Lt,{targetWidth:oe,targetHeight:fe,elemWidth:Et,elemHeight:Le,collisionPosition:Xe,collisionWidth:dt,collisionHeight:gt,offset:[ee[0]+xe[0],ee[1]+xe[1]],my:D.my,at:D.at,within:et,elem:nt})}),D.using&&(Ge=function(X){var pe=ue.left-Lt.left,je=pe+oe-Et,$e=ue.top-Lt.top,He=$e+fe-Le,Fe={target:{element:Ve,left:ue.left,top:ue.top,width:oe,height:fe},element:{element:nt,left:Lt.left,top:Lt.top,width:Et,height:Le},horizontal:je<0?"left":pe>0?"right":"center",vertical:He<0?"top":$e>0?"bottom":"middle"};oe<Et&&y(pe+je)<oe&&(Fe.horizontal="center"),fe<Le&&y($e+He)<fe&&(Fe.vertical="middle"),c(y(pe),y(je))>c(y($e),y(He))?Fe.important="horizontal":Fe.important="vertical",D.using.call(this,X,Fe)}),nt.offset(t.extend(Lt,{using:Ge}))})},t.ui.position={fit:{left:function(D,ee){var oe=ee.within,fe=oe.isWindow?oe.scrollLeft:oe.offset.left,ue=oe.width,qe=D.left-ee.collisionPosition.marginLeft,rt=fe-qe,Ve=qe+ee.collisionWidth-ue-fe,et;ee.collisionWidth>ue?rt>0&&Ve<=0?(et=D.left+rt+ee.collisionWidth-ue-fe,D.left+=rt-et):Ve>0&&rt<=0?D.left=fe:rt>Ve?D.left=fe+ue-ee.collisionWidth:D.left=fe:rt>0?D.left+=rt:Ve>0?D.left-=Ve:D.left=c(D.left-qe,D.left)},top:function(D,ee){var oe=ee.within,fe=oe.isWindow?oe.scrollTop:oe.offset.top,ue=ee.within.height,qe=D.top-ee.collisionPosition.marginTop,rt=fe-qe,Ve=qe+ee.collisionHeight-ue-fe,et;ee.collisionHeight>ue?rt>0&&Ve<=0?(et=D.top+rt+ee.collisionHeight-ue-fe,D.top+=rt-et):Ve>0&&rt<=0?D.top=fe:rt>Ve?D.top=fe+ue-ee.collisionHeight:D.top=fe:rt>0?D.top+=rt:Ve>0?D.top-=Ve:D.top=c(D.top-qe,D.top)}},flip:{left:function(D,ee){var oe=ee.within,fe=oe.offset.left+oe.scrollLeft,ue=oe.width,qe=oe.isWindow?oe.scrollLeft:oe.offset.left,rt=D.left-ee.collisionPosition.marginLeft,Ve=rt-qe,et=rt+ee.collisionWidth-ue-qe,mt=ee.my[0]==="left"?-ee.elemWidth:ee.my[0]==="right"?ee.elemWidth:0,Ye=ee.at[0]==="left"?ee.targetWidth:ee.at[0]==="right"?-ee.targetWidth:0,We=-2*ee.offset[0],Xe,Ge;Ve<0?(Xe=D.left+mt+Ye+We+ee.collisionWidth-ue-fe,(Xe<0||Xe<y(Ve))&&(D.left+=mt+Ye+We)):et>0&&(Ge=D.left-ee.collisionPosition.marginLeft+mt+Ye+We-qe,(Ge>0||y(Ge)<et)&&(D.left+=mt+Ye+We))},top:function(D,ee){var oe=ee.within,fe=oe.offset.top+oe.scrollTop,ue=oe.height,qe=oe.isWindow?oe.scrollTop:oe.offset.top,rt=D.top-ee.collisionPosition.marginTop,Ve=rt-qe,et=rt+ee.collisionHeight-ue-qe,mt=ee.my[1]==="top",Ye=mt?-ee.elemHeight:ee.my[1]==="bottom"?ee.elemHeight:0,We=ee.at[1]==="top"?ee.targetHeight:ee.at[1]==="bottom"?-ee.targetHeight:0,Xe=-2*ee.offset[1],Ge,nt;Ve<0?(nt=D.top+Ye+We+Xe+ee.collisionHeight-ue-fe,(nt<0||nt<y(Ve))&&(D.top+=Ye+We+Xe)):et>0&&(Ge=D.top-ee.collisionPosition.marginTop+Ye+We+Xe-qe,(Ge>0||y(Ge)<et)&&(D.top+=Ye+We+Xe))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}})(),t.ui.position;/*!
 * jQuery UI :data 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.extend(t.expr.pseudos,{data:t.expr.createPseudo(function(e){return function(c){return!!t.data(c,e)}})});/*!
 * jQuery UI Disable Selection 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.fn.extend({disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(e+".ui-disableSelection",function(c){c.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});var m=t;/*!
 * jQuery Color Animations v3.0.0
 * https://github.com/jquery/jquery-color
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * Date: Wed May 15 16:49:44 2024 +0200
 */var h="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",S={},k=S.toString,A=/^([\-+])=\s*(\d+\.?\d*)/,B=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1]*2.55,e[2]*2.55,e[3]*2.55,e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),e[4]?(parseInt(e[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),e[4]?(parseInt(e[4]+e[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],M=m.Color=function(e,c,y,w){return new m.Color.fn.parse(e,c,y,w)},j={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},I={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},P,$=m.each;$(j,function(e,c){c.cache="_"+e,c.props.alpha={idx:3,type:"percent",def:1}}),m.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,c){S["[object "+c+"]"]=c.toLowerCase()});function z(e){return e==null?e+"":typeof e=="object"?S[k.call(e)]||"object":typeof e}function N(e,c,y){var w=I[c.type]||{};return e==null?y||!c.def?null:c.def:(e=w.floor?~~e:parseFloat(e),w.mod?(e+w.mod)%w.mod:Math.min(w.max,Math.max(0,e)))}function F(e){var c=M(),y=c._rgba=[];return e=e.toLowerCase(),$(B,function(w,v){var o,x=v.re.exec(e),E=x&&v.parse(x),R=v.space||"rgba";if(E)return o=c[R](E),c[j[R].cache]=o[j[R].cache],y=c._rgba=o._rgba,!1}),y.length?(y.join()==="0,0,0,0"&&m.extend(y,P.transparent),c):P[e]}M.fn=m.extend(M.prototype,{parse:function(e,c,y,w){if(e===void 0)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=m(e).css(c),c=void 0);var v=this,o=z(e),x=this._rgba=[];if(c!==void 0&&(e=[e,c,y,w],o="array"),o==="string")return this.parse(F(e)||P._default);if(o==="array")return $(j.rgba.props,function(E,R){x[R.idx]=N(e[R.idx],R)}),this;if(o==="object")return e instanceof M?$(j,function(E,R){e[R.cache]&&(v[R.cache]=e[R.cache].slice())}):$(j,function(E,R){var H=R.cache;$(R.props,function(Y,Z){if(!v[H]&&R.to){if(Y==="alpha"||e[Y]==null)return;v[H]=R.to(v._rgba)}v[H][Z.idx]=N(e[Y],Z,!0)}),v[H]&&m.inArray(null,v[H].slice(0,3))<0&&(v[H][3]==null&&(v[H][3]=1),R.from&&(v._rgba=R.from(v[H])))}),this},is:function(e){var c=M(e),y=!0,w=this;return $(j,function(v,o){var x,E=c[o.cache];return E&&(x=w[o.cache]||o.to&&o.to(w._rgba)||[],$(o.props,function(R,H){if(E[H.idx]!=null)return y=E[H.idx]===x[H.idx],y})),y}),y},_space:function(){var e=[],c=this;return $(j,function(y,w){c[w.cache]&&e.push(y)}),e.pop()},transition:function(e,c){var y=M(e),w=y._space(),v=j[w],o=this.alpha()===0?M("transparent"):this,x=o[v.cache]||v.to(o._rgba),E=x.slice();return y=y[v.cache],$(v.props,function(R,H){var Y=H.idx,Z=x[Y],L=y[Y],D=I[H.type]||{};L!==null&&(Z===null?E[Y]=L:(D.mod&&(L-Z>D.mod/2?Z+=D.mod:Z-L>D.mod/2&&(Z-=D.mod)),E[Y]=N((L-Z)*c+Z,H)))}),this[w](E)},blend:function(e){if(this._rgba[3]===1)return this;var c=this._rgba.slice(),y=c.pop(),w=M(e)._rgba;return M(m.map(c,function(v,o){return(1-y)*w[o]+y*v}))},toRgbaString:function(){var e="rgba(",c=m.map(this._rgba,function(y,w){return y??(w>2?1:0)});return c[3]===1&&(c.pop(),e="rgb("),e+c.join(", ")+")"},toHslaString:function(){var e="hsla(",c=m.map(this.hsla(),function(y,w){return y==null&&(y=w>2?1:0),w&&w<3&&(y=Math.round(y*100)+"%"),y});return c[3]===1&&(c.pop(),e="hsl("),e+c.join(", ")+")"},toHexString:function(e){var c=this._rgba.slice(),y=c.pop();return e&&c.push(~~(y*255)),"#"+m.map(c,function(w){return("0"+(w||0).toString(16)).substr(-2)}).join("")},toString:function(){return this.toRgbaString()}}),M.fn.parse.prototype=M.fn;function U(e,c,y){return y=(y+1)%1,y*6<1?e+(c-e)*y*6:y*2<1?c:y*3<2?e+(c-e)*(2/3-y)*6:e}j.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var c=e[0]/255,y=e[1]/255,w=e[2]/255,v=e[3],o=Math.max(c,y,w),x=Math.min(c,y,w),E=o-x,R=o+x,H=R*.5,Y,Z;return x===o?Y=0:c===o?Y=60*(y-w)/E+360:y===o?Y=60*(w-c)/E+120:Y=60*(c-y)/E+240,E===0?Z=0:H<=.5?Z=E/R:Z=E/(2-R),[Math.round(Y)%360,Z,H,v??1]},j.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var c=e[0]/360,y=e[1],w=e[2],v=e[3],o=w<=.5?w*(1+y):w+y-w*y,x=2*w-o;return[Math.round(U(x,o,c+1/3)*255),Math.round(U(x,o,c)*255),Math.round(U(x,o,c-1/3)*255),v]},$(j,function(e,c){var y=c.props,w=c.cache,v=c.to,o=c.from;M.fn[e]=function(x){if(v&&!this[w]&&(this[w]=v(this._rgba)),x===void 0)return this[w].slice();var E,R=z(x),H=R==="array"||R==="object"?x:arguments,Y=this[w].slice();return $(y,function(Z,L){var D=H[R==="object"?Z:L.idx];D==null&&(D=Y[L.idx]),Y[L.idx]=N(D,L)}),o?(E=M(o(Y)),E[w]=Y,E):M(Y)},$(y,function(x,E){M.fn[x]||(M.fn[x]=function(R){var H,Y,Z,L,D=z(R);return x==="alpha"?L=this._hsla?"hsla":"rgba":L=e,H=this[L](),Y=H[E.idx],D==="undefined"?Y:(D==="function"&&(R=R.call(this,Y),D=z(R)),R==null&&E.empty?this:(D==="string"&&(Z=A.exec(R),Z&&(R=Y+parseFloat(Z[2])*(Z[1]==="+"?1:-1))),H[E.idx]=R,this[L](H)))})})}),M.hook=function(e){var c=e.split(" ");$(c,function(y,w){m.cssHooks[w]={set:function(v,o){var x;o!=="transparent"&&(z(o)!=="string"||(x=F(o)))&&(o=M(x||o),o=o.toRgbaString()),v.style[w]=o}},m.fx.step[w]=function(v){v.colorInit||(v.start=M(v.elem,w),v.end=M(v.end),v.colorInit=!0),m.cssHooks[w].set(v.elem,v.start.transition(v.end,v.pos))}})},M.hook(h),m.cssHooks.borderColor={expand:function(e){var c={};return $(["Top","Right","Bottom","Left"],function(y,w){c["border"+w+"Color"]=e}),c}},P=m.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"};/*!
 * jQuery UI Effects 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */var J="ui-effects-",te="ui-effects-style",se="ui-effects-animated";t.effects={effect:{}},function(){var e=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(o,x){t.fx.step[x]=function(E){(E.end!=="none"&&!E.setAttr||E.pos===1&&!E.setAttr)&&(m.style(E.elem,x,E.end),E.setAttr=!0)}});function y(o){return o.replace(/-([\da-z])/gi,function(x,E){return E.toUpperCase()})}function w(o){var x,E,R=o.ownerDocument.defaultView.getComputedStyle(o),H={};for(E=R.length;E--;)x=R[E],typeof R[x]=="string"&&(H[y(x)]=R[x]);return H}function v(o,x){var E={},R,H;for(R in x)H=x[R],o[R]!==H&&(c[R]||(t.fx.step[R]||!isNaN(parseFloat(H)))&&(E[R]=H));return E}t.effects.animateClass=function(o,x,E,R){var H=t.speed(x,E,R);return this.queue(function(){var Y=t(this),Z=Y.attr("class")||"",L,D=H.children?Y.find("*").addBack():Y;D=D.map(function(){var ee=t(this);return{el:ee,start:w(this)}}),L=function(){t.each(e,function(ee,oe){o[oe]&&Y[oe+"Class"](o[oe])})},L(),D=D.map(function(){return this.end=w(this.el[0]),this.diff=v(this.start,this.end),this}),Y.attr("class",Z),D=D.map(function(){var ee=this,oe=t.Deferred(),fe=t.extend({},H,{queue:!1,complete:function(){oe.resolve(ee)}});return this.el.animate(this.diff,fe),oe.promise()}),t.when.apply(t,D.get()).done(function(){L(),t.each(arguments,function(){var ee=this.el;t.each(this.diff,function(oe){ee.css(oe,"")})}),H.complete.call(Y[0])})})},t.fn.extend({addClass:function(o){return function(x,E,R,H){return E?t.effects.animateClass.call(this,{add:x},E,R,H):o.apply(this,arguments)}}(t.fn.addClass),removeClass:function(o){return function(x,E,R,H){return arguments.length>1?t.effects.animateClass.call(this,{remove:x},E,R,H):o.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(o){return function(x,E,R,H,Y){return typeof E=="boolean"||E===void 0?R?t.effects.animateClass.call(this,E?{add:x}:{remove:x},R,H,Y):o.apply(this,arguments):t.effects.animateClass.call(this,{toggle:x},E,R,H)}}(t.fn.toggleClass),switchClass:function(o,x,E,R,H){return t.effects.animateClass.call(this,{add:x,remove:o},E,R,H)}})}(),function(){t.expr&&t.expr.pseudos&&t.expr.pseudos.animated&&(t.expr.pseudos.animated=function(w){return function(v){return!!t(v).data(se)||w(v)}}(t.expr.pseudos.animated)),t.uiBackCompat===!0&&t.extend(t.effects,{save:function(w,v){for(var o=0,x=v.length;o<x;o++)v[o]!==null&&w.data(J+v[o],w[0].style[v[o]])},restore:function(w,v){for(var o,x=0,E=v.length;x<E;x++)v[x]!==null&&(o=w.data(J+v[x]),w.css(v[x],o))},setMode:function(w,v){return v==="toggle"&&(v=w.is(":hidden")?"show":"hide"),v},createWrapper:function(w){if(w.parent().is(".ui-effects-wrapper"))return w.parent();var v={width:w.outerWidth(!0),height:w.outerHeight(!0),float:w.css("float")},o=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),x={width:w.width(),height:w.height()},E=document.activeElement;try{E.id}catch{E=document.body}return w.wrap(o),(w[0]===E||t.contains(w[0],E))&&t(E).trigger("focus"),o=w.parent(),w.css("position")==="static"?(o.css({position:"relative"}),w.css({position:"relative"})):(t.extend(v,{position:w.css("position"),zIndex:w.css("z-index")}),t.each(["top","left","bottom","right"],function(R,H){v[H]=w.css(H),isNaN(parseInt(v[H],10))&&(v[H]="auto")}),w.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),w.css(x),o.css(v).show()},removeWrapper:function(w){var v=document.activeElement;return w.parent().is(".ui-effects-wrapper")&&(w.parent().replaceWith(w),(w[0]===v||t.contains(w[0],v))&&t(v).trigger("focus")),w}}),t.extend(t.effects,{version:"1.14.0",define:function(w,v,o){return o||(o=v,v="effect"),t.effects.effect[w]=o,t.effects.effect[w].mode=v,o},scaledDimensions:function(w,v,o){if(v===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var x=o!=="horizontal"?(v||100)/100:1,E=o!=="vertical"?(v||100)/100:1;return{height:w.height()*E,width:w.width()*x,outerHeight:w.outerHeight()*E,outerWidth:w.outerWidth()*x}},clipToBox:function(w){return{width:w.clip.right-w.clip.left,height:w.clip.bottom-w.clip.top,left:w.clip.left,top:w.clip.top}},unshift:function(w,v,o){var x=w.queue();v>1&&x.splice.apply(x,[1,0].concat(x.splice(v,o))),w.dequeue()},saveStyle:function(w){w.data(te,w[0].style.cssText)},restoreStyle:function(w){w[0].style.cssText=w.data(te)||"",w.removeData(te)},mode:function(w,v){var o=w.is(":hidden");return v==="toggle"&&(v=o?"show":"hide"),(o?v==="hide":v==="show")&&(v="none"),v},getBaseline:function(w,v){var o,x;switch(w[0]){case"top":o=0;break;case"middle":o=.5;break;case"bottom":o=1;break;default:o=w[0]/v.height}switch(w[1]){case"left":x=0;break;case"center":x=.5;break;case"right":x=1;break;default:x=w[1]/v.width}return{x,y:o}},createPlaceholder:function(w){var v,o=w.css("position"),x=w.position();return w.css({marginTop:w.css("marginTop"),marginBottom:w.css("marginBottom"),marginLeft:w.css("marginLeft"),marginRight:w.css("marginRight")}).outerWidth(w.outerWidth()).outerHeight(w.outerHeight()),/^(static|relative)/.test(o)&&(o="absolute",v=t("<"+w[0].nodeName+">").insertAfter(w).css({display:/^(inline|ruby)/.test(w.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:w.css("marginTop"),marginBottom:w.css("marginBottom"),marginLeft:w.css("marginLeft"),marginRight:w.css("marginRight"),float:w.css("float")}).outerWidth(w.outerWidth()).outerHeight(w.outerHeight()).addClass("ui-effects-placeholder"),w.data(J+"placeholder",v)),w.css({position:o,left:x.left,top:x.top}),v},removePlaceholder:function(w){var v=J+"placeholder",o=w.data(v);o&&(o.remove(),w.removeData(v))},cleanUp:function(w){t.effects.restoreStyle(w),t.effects.removePlaceholder(w)},setTransition:function(w,v,o,x){return x=x||{},t.each(v,function(E,R){var H=w.cssUnit(R);H[0]>0&&(x[R]=H[0]*o+H[1])}),x}});function e(w,v,o,x){return t.isPlainObject(w)&&(v=w,w=w.effect),w={effect:w},v==null&&(v={}),typeof v=="function"&&(x=v,o=null,v={}),(typeof v=="number"||t.fx.speeds[v])&&(x=o,o=v,v={}),typeof o=="function"&&(x=o,o=null),v&&t.extend(w,v),o=o||v.duration,w.duration=t.fx.off?0:typeof o=="number"?o:o in t.fx.speeds?t.fx.speeds[o]:t.fx.speeds._default,w.complete=x||v.complete,w}function c(w){return!!(!w||typeof w=="number"||t.fx.speeds[w]||typeof w=="string"&&!t.effects.effect[w]||typeof w=="function"||typeof w=="object"&&!w.effect)}t.fn.extend({effect:function(){var w=e.apply(this,arguments),v=t.effects.effect[w.effect],o=v.mode,x=w.queue,E=x||"fx",R=w.complete,H=w.mode,Y=[],Z=function(D){var ee=t(this),oe=t.effects.mode(ee,H)||o;ee.data(se,!0),Y.push(oe),o&&(oe==="show"||oe===o&&oe==="hide")&&ee.show(),(!o||oe!=="none")&&t.effects.saveStyle(ee),typeof D=="function"&&D()};if(t.fx.off||!v)return H?this[H](w.duration,R):this.each(function(){R&&R.call(this)});function L(D){var ee=t(this);function oe(){ee.removeData(se),t.effects.cleanUp(ee),w.mode==="hide"&&ee.hide(),fe()}function fe(){typeof R=="function"&&R.call(ee[0]),typeof D=="function"&&D()}w.mode=Y.shift(),t.uiBackCompat===!0&&!o?(ee.is(":hidden")?H==="hide":H==="show")?(ee[H](),fe()):v.call(ee[0],w,fe):w.mode==="none"?(ee[H](),fe()):v.call(ee[0],w,oe)}return x===!1?this.each(Z).each(L):this.queue(E,Z).queue(E,L)},show:function(w){return function(v){if(c(v))return w.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="show",this.effect.call(this,o)}}(t.fn.show),hide:function(w){return function(v){if(c(v))return w.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="hide",this.effect.call(this,o)}}(t.fn.hide),toggle:function(w){return function(v){if(c(v)||typeof v=="boolean")return w.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="toggle",this.effect.call(this,o)}}(t.fn.toggle),cssUnit:function(w){var v=this.css(w),o=[];return t.each(["em","px","%","pt"],function(x,E){v.indexOf(E)>0&&(o=[parseFloat(v),E])}),o},cssClip:function(w){return w?this.css("clip","rect("+w.top+"px "+w.right+"px "+w.bottom+"px "+w.left+"px)"):y(this.css("clip"),this)},transfer:function(w,v){var o=t(this),x=t(w.to),E=x.css("position")==="fixed",R=t("body"),H=E?R.scrollTop():0,Y=E?R.scrollLeft():0,Z=x.offset(),L={top:Z.top-H,left:Z.left-Y,height:x.innerHeight(),width:x.innerWidth()},D=o.offset(),ee=t("<div class='ui-effects-transfer'></div>");ee.appendTo("body").addClass(w.className).css({top:D.top-H,left:D.left-Y,height:o.innerHeight(),width:o.innerWidth(),position:E?"fixed":"absolute"}).animate(L,w.duration,w.easing,function(){ee.remove(),typeof v=="function"&&v()})}});function y(w,v){var o=v.outerWidth(),x=v.outerHeight(),E=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,R=E.exec(w)||["",0,o,x,0];return{top:parseFloat(R[1])||0,right:R[2]==="auto"?o:parseFloat(R[2]),bottom:R[3]==="auto"?x:parseFloat(R[3]),left:parseFloat(R[4])||0}}t.fx.step.clip=function(w){w.clipInit||(w.start=t(w.elem).cssClip(),typeof w.end=="string"&&(w.end=y(w.end,w.elem)),w.clipInit=!0),t(w.elem).cssClip({top:w.pos*(w.end.top-w.start.top)+w.start.top,right:w.pos*(w.end.right-w.start.right)+w.start.right,bottom:w.pos*(w.end.bottom-w.start.bottom)+w.start.bottom,left:w.pos*(w.end.left-w.start.left)+w.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(c,y){e[y]=function(w){return Math.pow(w,c+2)}}),t.extend(e,{Sine:function(c){return 1-Math.cos(c*Math.PI/2)},Circ:function(c){return 1-Math.sqrt(1-c*c)},Elastic:function(c){return c===0||c===1?c:-Math.pow(2,8*(c-1))*Math.sin(((c-1)*80-7.5)*Math.PI/15)},Back:function(c){return c*c*(3*c-2)},Bounce:function(c){for(var y,w=4;c<((y=Math.pow(2,--w))-1)/11;);return 1/Math.pow(4,3-w)-7.5625*Math.pow((y*3-2)/22-c,2)}}),t.each(e,function(c,y){t.easing["easeIn"+c]=y,t.easing["easeOut"+c]=function(w){return 1-y(1-w)},t.easing["easeInOut"+c]=function(w){return w<.5?y(w*2)/2:1-y(w*-2+2)/2}})}(),t.effects;/*!
 * jQuery UI Effects Blind 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("blind","hide",function(e,c){var y={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},w=t(this),v=e.direction||"up",o=w.cssClip(),x={clip:t.extend({},o)},E=t.effects.createPlaceholder(w);x.clip[y[v][0]]=x.clip[y[v][1]],e.mode==="show"&&(w.cssClip(x.clip),E&&E.css(t.effects.clipToBox(x)),x.clip=o),E&&E.animate(t.effects.clipToBox(x),e.duration,e.easing),w.animate(x,{queue:!1,duration:e.duration,easing:e.easing,complete:c})});/*!
 * jQuery UI Effects Bounce 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("bounce",function(e,c){var y,w,v,o=t(this),x=e.mode,E=x==="hide",R=x==="show",H=e.direction||"up",Y=e.distance,Z=e.times||5,L=Z*2+(R||E?1:0),D=e.duration/L,ee=e.easing,oe=H==="up"||H==="down"?"top":"left",fe=H==="up"||H==="left",ue=0,qe=o.queue().length;for(t.effects.createPlaceholder(o),v=o.css(oe),Y||(Y=o[oe==="top"?"outerHeight":"outerWidth"]()/3),R&&(w={opacity:1},w[oe]=v,o.css("opacity",0).css(oe,fe?-Y*2:Y*2).animate(w,D,ee)),E&&(Y=Y/Math.pow(2,Z-1)),w={},w[oe]=v;ue<Z;ue++)y={},y[oe]=(fe?"-=":"+=")+Y,o.animate(y,D,ee).animate(w,D,ee),Y=E?Y*2:Y/2;E&&(y={opacity:0},y[oe]=(fe?"-=":"+=")+Y,o.animate(y,D,ee)),o.queue(c),t.effects.unshift(o,qe,L+1)});/*!
 * jQuery UI Effects Clip 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("clip","hide",function(e,c){var y,w={},v=t(this),o=e.direction||"vertical",x=o==="both",E=x||o==="horizontal",R=x||o==="vertical";y=v.cssClip(),w.clip={top:R?(y.bottom-y.top)/2:y.top,right:E?(y.right-y.left)/2:y.right,bottom:R?(y.bottom-y.top)/2:y.bottom,left:E?(y.right-y.left)/2:y.left},t.effects.createPlaceholder(v),e.mode==="show"&&(v.cssClip(w.clip),w.clip=y),v.animate(w,{queue:!1,duration:e.duration,easing:e.easing,complete:c})});/*!
 * jQuery UI Effects Drop 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("drop","hide",function(e,c){var y,w=t(this),v=e.mode,o=v==="show",x=e.direction||"left",E=x==="up"||x==="down"?"top":"left",R=x==="up"||x==="left"?"-=":"+=",H=R==="+="?"-=":"+=",Y={opacity:0};t.effects.createPlaceholder(w),y=e.distance||w[E==="top"?"outerHeight":"outerWidth"](!0)/2,Y[E]=R+y,o&&(w.css(Y),Y[E]=H+y,Y.opacity=1),w.animate(Y,{queue:!1,duration:e.duration,easing:e.easing,complete:c})});/*!
 * jQuery UI Effects Explode 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("explode","hide",function(e,c){var y,w,v,o,x,E,R=e.pieces?Math.round(Math.sqrt(e.pieces)):3,H=R,Y=t(this),Z=e.mode,L=Z==="show",D=Y.show().css("visibility","hidden").offset(),ee=Math.ceil(Y.outerWidth()/H),oe=Math.ceil(Y.outerHeight()/R),fe=[];function ue(){fe.push(this),fe.length===R*H&&qe()}for(y=0;y<R;y++)for(o=D.top+y*oe,E=y-(R-1)/2,w=0;w<H;w++)v=D.left+w*ee,x=w-(H-1)/2,Y.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-w*ee,top:-y*oe}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:ee,height:oe,left:v+(L?x*ee:0),top:o+(L?E*oe:0),opacity:L?0:1}).animate({left:v+(L?0:x*ee),top:o+(L?0:E*oe),opacity:L?1:0},e.duration||500,e.easing,ue);function qe(){Y.css({visibility:"visible"}),t(fe).remove(),c()}});/*!
 * jQuery UI Effects Fade 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("fade","toggle",function(e,c){var y=e.mode==="show";t(this).css("opacity",y?0:1).animate({opacity:y?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:c})});/*!
 * jQuery UI Effects Fold 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("fold","hide",function(e,c){var y=t(this),w=e.mode,v=w==="show",o=w==="hide",x=e.size||15,E=/([0-9]+)%/.exec(x),R=!!e.horizFirst,H=R?["right","bottom"]:["bottom","right"],Y=e.duration/2,Z=t.effects.createPlaceholder(y),L=y.cssClip(),D={clip:t.extend({},L)},ee={clip:t.extend({},L)},oe=[L[H[0]],L[H[1]]],fe=y.queue().length;E&&(x=parseInt(E[1],10)/100*oe[o?0:1]),D.clip[H[0]]=x,ee.clip[H[0]]=x,ee.clip[H[1]]=0,v&&(y.cssClip(ee.clip),Z&&Z.css(t.effects.clipToBox(ee)),ee.clip=L),y.queue(function(ue){Z&&Z.animate(t.effects.clipToBox(D),Y,e.easing).animate(t.effects.clipToBox(ee),Y,e.easing),ue()}).animate(D,Y,e.easing).animate(ee,Y,e.easing).queue(c),t.effects.unshift(y,fe,4)});/*!
 * jQuery UI Effects Highlight 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("highlight","show",function(e,c){var y=t(this),w={backgroundColor:y.css("backgroundColor")};e.mode==="hide"&&(w.opacity=0),t.effects.saveStyle(y),y.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(w,{queue:!1,duration:e.duration,easing:e.easing,complete:c})});/*!
 * jQuery UI Effects Size 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("size",function(e,c){var y,w,v,o=t(this),x=["fontSize"],E=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],R=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],H=e.mode,Y=H!=="effect",Z=e.scale||"both",L=e.origin||["middle","center"],D=o.css("position"),ee=o.position(),oe=t.effects.scaledDimensions(o),fe=e.from||oe,ue=e.to||t.effects.scaledDimensions(o,0);t.effects.createPlaceholder(o),H==="show"&&(v=fe,fe=ue,ue=v),w={from:{y:fe.height/oe.height,x:fe.width/oe.width},to:{y:ue.height/oe.height,x:ue.width/oe.width}},(Z==="box"||Z==="both")&&(w.from.y!==w.to.y&&(fe=t.effects.setTransition(o,E,w.from.y,fe),ue=t.effects.setTransition(o,E,w.to.y,ue)),w.from.x!==w.to.x&&(fe=t.effects.setTransition(o,R,w.from.x,fe),ue=t.effects.setTransition(o,R,w.to.x,ue))),(Z==="content"||Z==="both")&&w.from.y!==w.to.y&&(fe=t.effects.setTransition(o,x,w.from.y,fe),ue=t.effects.setTransition(o,x,w.to.y,ue)),L&&(y=t.effects.getBaseline(L,oe),fe.top=(oe.outerHeight-fe.outerHeight)*y.y+ee.top,fe.left=(oe.outerWidth-fe.outerWidth)*y.x+ee.left,ue.top=(oe.outerHeight-ue.outerHeight)*y.y+ee.top,ue.left=(oe.outerWidth-ue.outerWidth)*y.x+ee.left),delete fe.outerHeight,delete fe.outerWidth,o.css(fe),(Z==="content"||Z==="both")&&(E=E.concat(["marginTop","marginBottom"]).concat(x),R=R.concat(["marginLeft","marginRight"]),o.find("*[width]").each(function(){var qe=t(this),rt=t.effects.scaledDimensions(qe),Ve={height:rt.height*w.from.y,width:rt.width*w.from.x,outerHeight:rt.outerHeight*w.from.y,outerWidth:rt.outerWidth*w.from.x},et={height:rt.height*w.to.y,width:rt.width*w.to.x,outerHeight:rt.height*w.to.y,outerWidth:rt.width*w.to.x};w.from.y!==w.to.y&&(Ve=t.effects.setTransition(qe,E,w.from.y,Ve),et=t.effects.setTransition(qe,E,w.to.y,et)),w.from.x!==w.to.x&&(Ve=t.effects.setTransition(qe,R,w.from.x,Ve),et=t.effects.setTransition(qe,R,w.to.x,et)),Y&&t.effects.saveStyle(qe),qe.css(Ve),qe.animate(et,e.duration,e.easing,function(){Y&&t.effects.restoreStyle(qe)})})),o.animate(ue,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var qe=o.offset();ue.opacity===0&&o.css("opacity",fe.opacity),Y||(o.css("position",D==="static"?"relative":D).offset(qe),t.effects.saveStyle(o)),c()}})});/*!
 * jQuery UI Effects Scale 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("scale",function(e,c){var y=t(this),w=e.mode,v=parseInt(e.percent,10)||(parseInt(e.percent,10)===0||w!=="effect"?0:100),o=t.extend(!0,{from:t.effects.scaledDimensions(y),to:t.effects.scaledDimensions(y,v,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(o.from.opacity=1,o.to.opacity=0),t.effects.effect.size.call(this,o,c)});/*!
 * jQuery UI Effects Puff 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("puff","hide",function(e,c){var y=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,y,c)});/*!
 * jQuery UI Effects Pulsate 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("pulsate","show",function(e,c){var y=t(this),w=e.mode,v=w==="show",o=w==="hide",x=v||o,E=(e.times||5)*2+(x?1:0),R=e.duration/E,H=0,Y=1,Z=y.queue().length;for((v||!y.is(":visible"))&&(y.css("opacity",0).show(),H=1);Y<E;Y++)y.animate({opacity:H},R,e.easing),H=1-H;y.animate({opacity:H},R,e.easing),y.queue(c),t.effects.unshift(y,Z,E+1)});/*!
 * jQuery UI Effects Shake 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("shake",function(e,c){var y=1,w=t(this),v=e.direction||"left",o=e.distance||20,x=e.times||3,E=x*2+1,R=Math.round(e.duration/E),H=v==="up"||v==="down"?"top":"left",Y=v==="up"||v==="left",Z={},L={},D={},ee=w.queue().length;for(t.effects.createPlaceholder(w),Z[H]=(Y?"-=":"+=")+o,L[H]=(Y?"+=":"-=")+o*2,D[H]=(Y?"-=":"+=")+o*2,w.animate(Z,R,e.easing);y<x;y++)w.animate(L,R,e.easing).animate(D,R,e.easing);w.animate(L,R,e.easing).animate(Z,R/2,e.easing).queue(c),t.effects.unshift(w,ee,E+1)});/*!
 * jQuery UI Effects Slide 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.effects.define("slide","show",function(e,c){var y,w,v=t(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},x=e.mode,E=e.direction||"left",R=E==="up"||E==="down"?"top":"left",H=E==="up"||E==="left",Y=e.distance||v[R==="top"?"outerHeight":"outerWidth"](!0),Z={};t.effects.createPlaceholder(v),y=v.cssClip(),w=v.position()[R],Z[R]=(H?-1:1)*Y+w,Z.clip=v.cssClip(),Z.clip[o[E][1]]=Z.clip[o[E][0]],x==="show"&&(v.cssClip(Z.clip),v.css(R,Z[R]),Z.clip=y,Z[R]=w),v.animate(Z,{queue:!1,duration:e.duration,easing:e.easing,complete:c})}),t.uiBackCompat===!0&&t.effects.define("transfer",function(e,c){t(this).transfer(e,c)});/*!
 * jQuery UI Focusable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.ui.focusable=function(e,c){var y,w,v,o,x,E=e.nodeName.toLowerCase();return E==="area"?(y=e.parentNode,w=y.name,!e.href||!w||y.nodeName.toLowerCase()!=="map"?!1:(v=t("img[usemap='#"+w+"']"),v.length>0&&v.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(E)?(o=!e.disabled,o&&(x=t(e).closest("fieldset")[0],x&&(o=!x.disabled))):E==="a"?o=e.href||c:o=c,o&&t(e).is(":visible")&&t(e).css("visibility")==="visible")},t.extend(t.expr.pseudos,{focusable:function(e){return t.ui.focusable(e,t.attr(e,"tabindex")!=null)}}),t.ui.focusable;/*!
 * jQuery UI Form Reset Mixin 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var c=e.data("ui-form-reset-instances");t.each(c,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=t(this.element.prop("form")),!!this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};/*!
 * jQuery UI Legacy jQuery Core patches 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 */t.escapeSelector||(t.escapeSelector=function(e){return CSS.escape(e+"")}),(!t.fn.even||!t.fn.odd)&&t.fn.extend({even:function(){return this.filter(function(e){return e%2===0})},odd:function(){return this.filter(function(e){return e%2===1})}});/*!
 * jQuery UI Keycode 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};/*!
 * jQuery UI Labels 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.fn.labels=function(){var e,c,y,w,v;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(w=this.eq(0).parents("label"),y=this.attr("id"),y&&(e=this.eq(0).parents().last(),v=e.add(e.length?e.siblings():this.siblings()),c="label[for='"+CSS.escape(y)+"']",w=w.add(v.find(c).addBack(c))),this.pushStack(w)):this.pushStack([])};/*!
 * jQuery UI Scroll Parent 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.fn.scrollParent=function(e){var c=this.css("position"),y=c==="absolute",w=e?/(auto|scroll|hidden)/:/(auto|scroll)/,v=this.parents().filter(function(){var o=t(this);return y&&o.css("position")==="static"?!1:w.test(o.css("overflow")+o.css("overflow-y")+o.css("overflow-x"))}).eq(0);return c==="fixed"||!v.length?t(this[0].ownerDocument||document):v};/*!
 * jQuery UI Tabbable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.extend(t.expr.pseudos,{tabbable:function(e){var c=t.attr(e,"tabindex"),y=c!=null;return(!y||c>=0)&&t.ui.focusable(e,y)}});/*!
 * jQuery UI Unique ID 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.fn.extend({uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}});/*!
 * jQuery UI Accordion 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.accordion",{version:"1.14.0",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(e){return e.find("> li > :first-child").add(e.find("> :not(li)").filter(function(c){return c%2===0}))},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),!e.collapsible&&(e.active===!1||e.active==null)&&(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,c,y=this.options.icons;y&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+y.header),e.prependTo(this.headers),c=this.active.children(".ui-accordion-header-icon"),this._removeClass(c,y.header)._addClass(c,null,y.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),this.options.heightStyle!=="content"&&e.css("height","")},_setOption:function(e,c){if(e==="active"){this._activate(c);return}e==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(c)),this._super(e,c),e==="collapsible"&&!c&&this.options.active===!1&&this._activate(0),e==="icons"&&(this._destroyIcons(),c&&this._createIcons())},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_keydown:function(e){if(!(e.altKey||e.ctrlKey)){var c=t.ui.keyCode,y=this.headers.length,w=this.headers.index(e.target),v=!1;switch(e.keyCode){case c.RIGHT:case c.DOWN:v=this.headers[(w+1)%y];break;case c.LEFT:case c.UP:v=this.headers[(w-1+y)%y];break;case c.SPACE:case c.ENTER:this._eventHandler(e);break;case c.HOME:v=this.headers[0];break;case c.END:v=this.headers[y-1];break}v&&(t(e.target).attr("tabIndex",-1),t(v).attr("tabIndex",0),t(v).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,c=this.panels;typeof this.options.header=="function"?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),c&&(this._off(e.not(this.headers)),this._off(c.not(this.panels)))},_refresh:function(){var e,c=this.options,y=c.heightStyle,w=this.element.parent();this.active=this._findActive(c.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var v=t(this),o=v.uniqueId().attr("id"),x=v.next(),E=x.uniqueId().attr("id");v.attr("aria-controls",E),x.attr("aria-labelledby",o)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(c.event),y==="fill"?(e=w.height(),this.element.siblings(":visible").each(function(){var v=t(this),o=v.css("position");o==="absolute"||o==="fixed"||(e-=v.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):y==="auto"&&(e=0,this.headers.next().each(function(){var v=t(this).is(":visible");v||t(this).show(),e=Math.max(e,t(this).css("height","").height()),v||t(this).hide()}).height(e))},_activate:function(e){var c=this._findActive(e)[0];c!==this.active[0]&&(c=c||this.active[0],this._eventHandler({target:c,currentTarget:c,preventDefault:t.noop}))},_findActive:function(e){return typeof e=="number"?this.headers.eq(e):t()},_setupEvents:function(e){var c={keydown:"_keydown"};e&&t.each(e.split(" "),function(y,w){c[w]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,c),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var c,y,w=this.options,v=this.active,o=t(e.currentTarget),x=o[0]===v[0],E=x&&w.collapsible,R=E?t():o.next(),H=v.next(),Y={oldHeader:v,oldPanel:H,newHeader:E?t():o,newPanel:R};e.preventDefault(),!(x&&!w.collapsible||this._trigger("beforeActivate",e,Y)===!1)&&(w.active=E?!1:this.headers.index(o),this.active=x?t():o,this._toggle(Y),this._removeClass(v,"ui-accordion-header-active","ui-state-active"),w.icons&&(c=v.children(".ui-accordion-header-icon"),this._removeClass(c,null,w.icons.activeHeader)._addClass(c,null,w.icons.header)),x||(this._removeClass(o,"ui-accordion-header-collapsed")._addClass(o,"ui-accordion-header-active","ui-state-active"),w.icons&&(y=o.children(".ui-accordion-header-icon"),this._removeClass(y,null,w.icons.header)._addClass(y,null,w.icons.activeHeader)),this._addClass(o.next(),"ui-accordion-content-active")))},_toggle:function(e){var c=e.newPanel,y=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=c,this.prevHide=y,this.options.animate?this._animate(c,y,e):(y.hide(),c.show(),this._toggleComplete(e)),y.attr({"aria-hidden":"true"}),y.prev().attr({"aria-selected":"false","aria-expanded":"false"}),c.length&&y.length?y.prev().attr({tabIndex:-1,"aria-expanded":"false"}):c.length&&this.headers.filter(function(){return parseInt(t(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1),c.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,c,y){var w,v,o,x=this,E=0,R=e.css("box-sizing"),H=e.length&&(!c.length||e.index()<c.index()),Y=this.options.animate||{},Z=H&&Y.down||Y,L=function(){x._toggleComplete(y)};if(typeof Z=="number"&&(o=Z),typeof Z=="string"&&(v=Z),v=v||Z.easing||Y.easing,o=o||Z.duration||Y.duration,!c.length)return e.animate(this.showProps,o,v,L);if(!e.length)return c.animate(this.hideProps,o,v,L);w=e.show().outerHeight(),c.animate(this.hideProps,{duration:o,easing:v,step:function(D,ee){ee.now=Math.round(D)}}),e.hide().animate(this.showProps,{duration:o,easing:v,complete:L,step:function(D,ee){ee.now=Math.round(D),ee.prop!=="height"?R==="content-box"&&(E+=ee.now):x.options.heightStyle!=="content"&&(ee.now=Math.round(w-c.outerHeight()-E),E=0)}})},_toggleComplete:function(e){var c=e.oldPanel,y=c.prev();this._removeClass(c,"ui-accordion-content-active"),this._removeClass(y,"ui-accordion-header-active")._addClass(y,"ui-accordion-header-collapsed"),this._trigger("activate",null,e)}});/*!
 * jQuery UI Menu 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.menu",{version:"1.14.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var c=t(e.target),y=t(this.document[0].activeElement);!this.mouseHandled&&c.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),c.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&y.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,c){var y=this.active||this._menuItems().first();c||this.focus(e,y)},blur:function(e){this._delay(function(){var c=!t.contains(this.element[0],this.document[0].activeElement);c&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){if(!this.previousFilter&&!(e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y)){this.lastMousePosition={x:e.clientX,y:e.clientY};var c=t(e.target).closest(".ui-menu-item"),y=t(e.currentTarget);c[0]===y[0]&&(y.is(".ui-state-active")||(this._removeClass(y.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,y)))}},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),c=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),c.children().each(function(){var y=t(this);y.data("ui-menu-submenu-caret")&&y.remove()})},_keydown:function(e){var c,y,w,v,o=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:o=!1,y=this.previousFilter||"",v=!1,w=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),w===y?v=!0:w=y+w,c=this._filterMenuItems(w),c=v&&c.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):c,c.length||(w=String.fromCharCode(e.keyCode),c=this._filterMenuItems(w)),c.length?(this.focus(e,c),this.previousFilter=w,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,c,y,w,v,o=this,x=this.options.icons.submenu,E=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),y=E.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var R=t(this),H=R.prev(),Y=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(Y,"ui-menu-icon","ui-icon "+x),H.attr("aria-haspopup","true").prepend(Y),R.attr("aria-labelledby",H.attr("id"))}),this._addClass(y,"ui-menu","ui-widget ui-widget-content ui-front"),e=E.add(this.element),c=e.find(this.options.items),c.not(".ui-menu-item").each(function(){var R=t(this);o._isDivider(R)&&o._addClass(R,"ui-menu-divider","ui-widget-content")}),w=c.not(".ui-menu-item, .ui-menu-divider"),v=w.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(w,"ui-menu-item")._addClass(v,"ui-menu-item-wrapper"),c.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,c){if(e==="icons"){var y=this.element.find(".ui-menu-icon");this._removeClass(y,null,this.options.icons.submenu)._addClass(y,null,c.submenu)}this._super(e,c)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,c){var y,w,v;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(c),this.active=c.first(),w=this.active.children(".ui-menu-item-wrapper"),this._addClass(w,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",w.attr("id")),v=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(v,null,"ui-state-active"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),y=c.children(".ui-menu"),y.length&&e&&/^mouse/.test(e.type)&&this._startOpening(y),this.activeMenu=c.parent(),this._trigger("focus",e,{item:c})},_scrollIntoView:function(e){var c,y,w,v,o,x;this._hasScroll()&&(c=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,y=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,w=e.offset().top-this.activeMenu.offset().top-c-y,v=this.activeMenu.scrollTop(),o=this.activeMenu.height(),x=e.outerHeight(),w<0?this.activeMenu.scrollTop(v+w):w+x>o&&this.activeMenu.scrollTop(v+w-o+x))},blur:function(e,c){c||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),e.attr("aria-hidden")==="true"&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var c=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(c)},collapseAll:function(e,c){clearTimeout(this.timer),this.timer=this._delay(function(){var y=c?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));y.length||(y=this.element),this._close(y),this.blur(e),this._removeClass(y.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=y},c?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var c=this.active&&this.active.parent().closest(".ui-menu-item",this.element);c&&c.length&&(this._close(),this.focus(e,c))},expand:function(e){var c=this.active&&this._menuItems(this.active.children(".ui-menu")).first();c&&c.length&&(this._open(c.parent()),this._delay(function(){this.focus(e,c)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,c,y){var w;this.active&&(e==="first"||e==="last"?w=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").last():w=this.active[e+"All"](".ui-menu-item").first()),(!w||!w.length||!this.active)&&(w=this._menuItems(this.activeMenu)[c]()),this.focus(y,w)},nextPage:function(e){var c,y,w;if(!this.active){this.next(e);return}this.isLastItem()||(this._hasScroll()?(y=this.active.offset().top,w=this.element.innerHeight(),t.fn.jquery.indexOf("3.2.")===0&&(w+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return c=t(this),c.offset().top-y-w<0}),this.focus(e,c)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]()))},previousPage:function(e){var c,y,w;if(!this.active){this.next(e);return}this.isFirstItem()||(this._hasScroll()?(y=this.active.offset().top,w=this.element.innerHeight(),t.fn.jquery.indexOf("3.2.")===0&&(w+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return c=t(this),c.offset().top-y+w>0}),this.focus(e,c)):this.focus(e,this._menuItems(this.activeMenu).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var c={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,c)},_filterMenuItems:function(e){var c=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),y=new RegExp("^"+c,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return y.test(String.prototype.trim.call(t(this).children(".ui-menu-item-wrapper").text()))})}});/*!
 * jQuery UI Autocomplete 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.autocomplete",{version:"1.14.0",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var e,c,y,w=this.element[0].nodeName.toLowerCase(),v=w==="textarea",o=w==="input";this.isMultiLine=v||!o&&this.element.prop("contentEditable")==="true",this.valueMethod=this.element[v||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(x){if(this.element.prop("readOnly")){e=!0,y=!0,c=!0;return}e=!1,y=!1,c=!1;var E=t.ui.keyCode;switch(x.keyCode){case E.PAGE_UP:e=!0,this._move("previousPage",x);break;case E.PAGE_DOWN:e=!0,this._move("nextPage",x);break;case E.UP:e=!0,this._keyEvent("previous",x);break;case E.DOWN:e=!0,this._keyEvent("next",x);break;case E.ENTER:this.menu.active&&(e=!0,x.preventDefault(),this.menu.select(x));break;case E.TAB:this.menu.active&&this.menu.select(x);break;case E.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(x),x.preventDefault());break;default:c=!0,this._searchTimeout(x);break}},keypress:function(x){if(e){e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&x.preventDefault();return}if(!c){var E=t.ui.keyCode;switch(x.keyCode){case E.PAGE_UP:this._move("previousPage",x);break;case E.PAGE_DOWN:this._move("nextPage",x);break;case E.UP:this._keyEvent("previous",x);break;case E.DOWN:this._keyEvent("next",x);break}}},input:function(x){if(y){y=!1,x.preventDefault();return}this._searchTimeout(x)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(x){clearTimeout(this.searching),this.close(x),this._change(x)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(x){x.preventDefault()},menufocus:function(x,E){var R,H;if(this.isNewMenu&&(this.isNewMenu=!1,x.originalEvent&&/^mouse/.test(x.originalEvent.type))){this.menu.blur(),this.document.one("mousemove",function(){t(x.target).trigger(x.originalEvent)});return}H=E.item.data("ui-autocomplete-item"),this._trigger("focus",x,{item:H})!==!1&&x.originalEvent&&/^key/.test(x.originalEvent.type)&&this._value(H.value),R=E.item.attr("aria-label")||H.value,R&&String.prototype.trim.call(R).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(t("<div>").text(R))},100))},menuselect:function(x,E){var R=E.item.data("ui-autocomplete-item"),H=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=H),this._trigger("select",x,{item:R})!==!1&&this._value(R.value),this.term=this._value(),this.close(x),this.selectedItem=R}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,c){this._super(e,c),e==="source"&&this._initSource(),e==="appendTo"&&this.menu.element.appendTo(this._appendTo()),e==="disabled"&&c&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var c=this.menu.element[0];return e.target===this.element[0]||e.target===c||t.contains(c,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),(!e||!e[0])&&(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,c,y=this;Array.isArray(this.options.source)?(e=this.options.source,this.source=function(w,v){v(t.ui.autocomplete.filter(e,w.term))}):typeof this.options.source=="string"?(c=this.options.source,this.source=function(w,v){y.xhr&&y.xhr.abort(),y.xhr=t.ajax({url:c,data:w,dataType:"json",success:function(o){v(o)},error:function(){v([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var c=this.term===this._value(),y=this.menu.element.is(":visible"),w=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!c||c&&!y&&!w)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,c){if(e=e??this._value(),this.term=this._value(),e.length<this.options.minLength)return this.close(c);if(this._trigger("search",c)!==!1)return this._search(e)},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return(function(c){e===this.requestIndex&&this.__response(c),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}).bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(c){return typeof c=="string"?{label:c,value:c}:t.extend({},c,{label:c.label||c.value,value:c.value||c.label})})},_suggest:function(e){var c=this.menu.element.empty();this._renderMenu(c,e),this.isNewMenu=!0,this.menu.refresh(),c.show(),this._resizeMenu(),c.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,c){var y=this;t.each(c,function(w,v){y._renderItemData(e,v)})},_renderItemData:function(e,c){return this._renderItem(e,c).data("ui-autocomplete-item",c)},_renderItem:function(e,c){return t("<li>").append(t("<div>").text(c.label)).appendTo(e)},_move:function(e,c){if(!this.menu.element.is(":visible")){this.search(null,c);return}if(this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)){this.isMultiLine||this._value(this.term),this.menu.blur();return}this.menu[e](c)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,c){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,c),c.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,c){var y=new RegExp(t.ui.autocomplete.escapeRegex(c),"i");return t.grep(e,function(w){return y.test(w.label||w.value||w)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var c;this._superApply(arguments),!(this.options.disabled||this.cancelSearch)&&(e&&e.length?c=this.options.messages.results(e.length):c=this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(t("<div>").text(c))},100))}}),t.ui.autocomplete;/*!
 * jQuery UI Controlgroup 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */var de=/ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.14.0",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,c=[];t.each(this.options.items,function(y,w){var v,o={};if(w){if(y==="controlgroupLabel"){v=e.element.find(w),v.each(function(){var x=t(this);x.children(".ui-controlgroup-label-contents").length||x.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(v,null,"ui-widget ui-widget-content ui-state-default"),c=c.concat(v.get());return}t.fn[y]&&(e["_"+y+"Options"]?o=e["_"+y+"Options"]("middle"):o={classes:{}},e.element.find(w).each(function(){var x=t(this),E=x[y]("instance"),R=t.widget.extend({},o);if(!(y==="button"&&x.parent(".ui-spinner").length)){E||(E=x[y]()[y]("instance")),E&&(R.classes=e._resolveClassesValues(R.classes,E)),x[y](R);var H=x[y]("widget");t.data(H[0],"ui-controlgroup-data",E||x[y]("instance")),c.push(H[0])}}))}}),this.childWidgets=t(t.uniqueSort(c)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var c=t(this),y=c.data("ui-controlgroup-data");y&&y[e]&&y[e]()})},_updateCornerClass:function(e,c){var y="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",w=this._buildSimpleOptions(c,"label").classes.label;this._removeClass(e,null,y),this._addClass(e,null,w)},_buildSimpleOptions:function(e,c){var y=this.options.direction==="vertical",w={classes:{}};return w.classes[c]={middle:"",first:"ui-corner-"+(y?"top":"left"),last:"ui-corner-"+(y?"bottom":"right"),only:"ui-corner-all"}[e],w},_spinnerOptions:function(e){var c=this._buildSimpleOptions(e,"ui-spinner");return c.classes["ui-spinner-up"]="",c.classes["ui-spinner-down"]="",c},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var c=this.options.direction==="vertical";return{width:c?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(c?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(c?"top":"left")},last:{"ui-selectmenu-button-open":c?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(c?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(e,c){var y={};return t.each(e,function(w){var v=c.options.classes[w]||"";v=String.prototype.trim.call(v.replace(de,"")),y[w]=(v+" "+e[w]).replace(/\s+/g," ")}),y},_setOption:function(e,c){if(e==="direction"&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,c),e==="disabled"){this._callChildMethod(c?"disable":"enable");return}this.refresh()},refresh:function(){var e,c=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),this.options.direction==="horizontal"&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(y,w){var v=e[w]().data("ui-controlgroup-data");if(v&&c["_"+v.widgetName+"Options"]){var o=c["_"+v.widgetName+"Options"](e.length===1?"only":w);o.classes=c._resolveClassesValues(o.classes,v),v.element[v.widgetName](o)}else c._updateCornerClass(e[w](),w)}),this._callChildMethod("refresh"))}});/*!
 * jQuery UI Checkboxradio 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.14.0",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,c,y,w=this._super()||{};return this._readType(),c=this.element.labels(),this.label=t(c[c.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",y=this.label.contents().not(this.element[0]),y.length&&(this.originalLabel+=y.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(w.label=this.originalLabel),e=this.element[0].disabled,e!=null&&(w.disabled=e),w},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),this.options.disabled==null&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),this.type==="radio"&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,(e!=="input"||!/radio|checkbox/.test(this.type))&&t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e,c=this.element[0].name,y="input[name='"+CSS.escape(c)+"']";return c?(this.form.length?e=t(this.form[0].elements).filter(y):e=t(y).filter(function(){return t(t(this).prop("form")).length===0}),e.not(this.element)):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&this.type==="checkbox"&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),this.type==="radio"&&this._getRadioGroup().each(function(){var c=t(this).checkboxradio("instance");c&&c._removeClass(c.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,c){if(!(e==="label"&&!c)){if(this._super(e,c),e==="disabled"){this._toggleClass(this.label,null,"ui-state-disabled",c),this.element[0].disabled=c;return}this.refresh()}},_updateIcon:function(e){var c="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),this.type==="checkbox"?(c+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):c+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",c),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==void 0&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,c=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.label!==null&&this._updateLabel(),c!==this.options.disabled&&this._setOptions({disabled:c})}}]),t.ui.checkboxradio;/*!
 * jQuery UI Button 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.button",{version:"1.14.0",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,c=this._super()||{};return this.isInput=this.element.is("input"),e=this.element[0].disabled,e!=null&&(c.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(c.label=this.originalLabel),c},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),this.options.disabled==null&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),!this.options.showLabel&&!this.title&&this.element.attr("title",this.options.label)},_updateIcon:function(e,c){var y=e!=="iconPosition",w=y?this.options.iconPosition:c,v=w==="top"||w==="bottom";this.icon?y&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),y&&this._addClass(this.icon,null,c),this._attachIcon(w),v?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(w))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var c=e.showLabel===void 0?this.options.showLabel:e.showLabel,y=e.icon===void 0?this.options.icon:e.icon;!c&&!y&&(e.showLabel=!0),this._super(e)},_setOption:function(e,c){e==="icon"&&(c?this._updateIcon(e,c):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),e==="iconPosition"&&this._updateIcon(e,c),e==="showLabel"&&(this._toggleClass("ui-button-icon-only",null,!c),this._updateTooltip()),e==="label"&&(this.isInput?this.element.val(c):(this.element.html(c),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,c),e==="disabled"&&(this._toggleClass(null,"ui-state-disabled",c),this.element[0].disabled=c,c&&this.element.trigger("blur"))},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),t.uiBackCompat===!0&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon),this._super()},_setOption:function(e,c){if(e==="text"){this._super("showLabel",c);return}e==="showLabel"&&(this.options.text=c),e==="icon"&&(this.options.icons.primary=c),e==="icons"&&(c.primary?(this._super("icon",c.primary),this._super("iconPosition","beginning")):c.secondary&&(this._super("icon",c.secondary),this._super("iconPosition","end"))),this._superApply(arguments)}}),t.fn.button=function(e){return function(c){var y=typeof c=="string",w=Array.prototype.slice.call(arguments,1),v=this;return y?!this.length&&c==="instance"?v=void 0:this.each(function(){var o,x=t(this).attr("type"),E=x!=="checkbox"&&x!=="radio"?"button":"checkboxradio",R=t.data(this,"ui-"+E);if(c==="instance")return v=R,!1;if(!R)return t.error("cannot call methods on button prior to initialization; attempted to call method '"+c+"'");if(typeof R[c]!="function"||c.charAt(0)==="_")return t.error("no such method '"+c+"' for button widget instance");if(o=R[c].apply(R,w),o!==R&&o!==void 0)return v=o&&o.jquery?v.pushStack(o.get()):o,!1}):(w.length&&(c=t.widget.extend.apply(null,[c].concat(w))),this.each(function(){var o=t(this).attr("type"),x=o!=="checkbox"&&o!=="radio"?"button":"checkboxradio",E=t.data(this,"ui-"+x);if(E)E.option(c||{}),E._init&&E._init();else{if(x==="button"){e.call(t(this),c);return}t(this).checkboxradio(t.extend({icon:!1},c))}})),v}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),arguments[0]==="option"&&arguments[1]==="items"&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):arguments[0]==="option"&&arguments[1]==="items"?this.controlgroup.apply(this,[arguments[0],"items.button"]):(typeof arguments[0]=="object"&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button;/*!
 * jQuery UI Datepicker 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.extend(t.ui,{datepicker:{version:"1.14.0"}});var Q;function ve(e){for(var c,y;e.length&&e[0]!==document;){if(c=e.css("position"),(c==="absolute"||c==="relative"||c==="fixed")&&(y=parseInt(e.css("zIndex"),10),!isNaN(y)&&y!==0))return y;e=e.parent()}return 0}function he(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=ke(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}t.extend(he.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return u(this._defaults,e||{}),this},_attachDatepicker:function(e,c){var y,w,v;y=e.nodeName.toLowerCase(),w=y==="div"||y==="span",e.id||(this.uuid+=1,e.id="dp"+this.uuid),v=this._newInst(t(e),w),v.settings=t.extend({},c||{}),y==="input"?this._connectDatepicker(e,v):w&&this._inlineDatepicker(e,v)},_newInst:function(e,c){var y=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:y,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?ke(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,c){var y=t(e);c.append=t([]),c.trigger=t([]),!y.hasClass(this.markerClassName)&&(this._attachments(y,c),y.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(c),t.data(e,"datepicker",c),c.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,c){var y,w,v,o=this._get(c,"appendText"),x=this._get(c,"isRTL");c.append&&c.append.remove(),o&&(c.append=t("<span>").addClass(this._appendClass).text(o),e[x?"before":"after"](c.append)),e.off("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),y=this._get(c,"showOn"),(y==="focus"||y==="both")&&e.on("focus",this._showDatepicker),(y==="button"||y==="both")&&(w=this._get(c,"buttonText"),v=this._get(c,"buttonImage"),this._get(c,"buttonImageOnly")?c.trigger=t("<img>").addClass(this._triggerClass).attr({src:v,alt:w,title:w}):(c.trigger=t("<button type='button'>").addClass(this._triggerClass),v?c.trigger.html(t("<img>").attr({src:v,alt:w,title:w})):c.trigger.text(w)),e[x?"before":"after"](c.trigger),c.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():(t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]&&t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var c,y,w,v,o=new Date(2009,11,20),x=this._get(e,"dateFormat");x.match(/[DM]/)&&(c=function(E){for(y=0,w=0,v=0;v<E.length;v++)E[v].length>y&&(y=E[v].length,w=v);return w},o.setMonth(c(this._get(e,x.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(c(this._get(e,x.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(e,c){var y=t(e);y.hasClass(this.markerClassName)||(y.addClass(this.markerClassName).append(c.dpDiv),t.data(e,"datepicker",c),this._setDate(c,this._getDefaultDate(c),!0),this._updateDatepicker(c),this._updateAlternate(c),c.settings.disabled&&this._disableDatepicker(e),c.dpDiv.css("display","block"))},_dialogDatepicker:function(e,c,y,w,v){var o,x,E,R,H,Y=this._dialogInst;return Y||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),Y=this._dialogInst=this._newInst(this._dialogInput,!1),Y.settings={},t.data(this._dialogInput[0],"datepicker",Y)),u(Y.settings,w||{}),c=c&&c.constructor===Date?this._formatDate(Y,c):c,this._dialogInput.val(c),this._pos=v?v.length?v:[v.pageX,v.pageY]:null,this._pos||(x=document.documentElement.clientWidth,E=document.documentElement.clientHeight,R=document.documentElement.scrollLeft||document.body.scrollLeft,H=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[x/2-100+R,E/2-150+H]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),Y.settings.onSelect=y,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",Y),this},_destroyDatepicker:function(e){var c,y=t(e),w=t.data(e,"datepicker");y.hasClass(this.markerClassName)&&(c=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),c==="input"?(w.append.remove(),w.trigger.remove(),y.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(c==="div"||c==="span")&&y.removeClass(this.markerClassName).empty(),t.datepicker._hideDatepicker(),Q===w&&(Q=null,this._curInst=null))},_enableDatepicker:function(e){var c,y,w=t(e),v=t.data(e,"datepicker");w.hasClass(this.markerClassName)&&(c=e.nodeName.toLowerCase(),c==="input"?(e.disabled=!1,v.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(c==="div"||c==="span")&&(y=w.children("."+this._inlineClass),y.children().removeClass("ui-state-disabled"),y.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(o){return o===e?null:o}))},_disableDatepicker:function(e){var c,y,w=t(e),v=t.data(e,"datepicker");w.hasClass(this.markerClassName)&&(c=e.nodeName.toLowerCase(),c==="input"?(e.disabled=!0,v.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(c==="div"||c==="span")&&(y=w.children("."+this._inlineClass),y.children().addClass("ui-state-disabled"),y.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(o){return o===e?null:o}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var c=0;c<this._disabledInputs.length;c++)if(this._disabledInputs[c]===e)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch{throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,c,y){var w,v,o,x,E=this._getInst(e);if(arguments.length===2&&typeof c=="string")return c==="defaults"?t.extend({},t.datepicker._defaults):E?c==="all"?t.extend({},E.settings):this._get(E,c):null;w=c||{},typeof c=="string"&&(w={},w[c]=y),E&&(this._curInst===E&&this._hideDatepicker(),v=this._getDateDatepicker(e,!0),o=this._getMinMaxDate(E,"min"),x=this._getMinMaxDate(E,"max"),u(E.settings,w),o!==null&&w.dateFormat!==void 0&&w.minDate===void 0&&(E.settings.minDate=this._formatDate(E,o)),x!==null&&w.dateFormat!==void 0&&w.maxDate===void 0&&(E.settings.maxDate=this._formatDate(E,x)),"disabled"in w&&(w.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),E),this._autoSize(E),this._setDate(E,v),this._updateAlternate(E),this._updateDatepicker(E))},_changeDatepicker:function(e,c,y){this._optionDatepicker(e,c,y)},_refreshDatepicker:function(e){var c=this._getInst(e);c&&this._updateDatepicker(c)},_setDateDatepicker:function(e,c){var y=this._getInst(e);y&&(this._setDate(y,c),this._updateDatepicker(y),this._updateAlternate(y))},_getDateDatepicker:function(e,c){var y=this._getInst(e);return y&&!y.inline&&this._setDateFromField(y,c),y?this._getDate(y):null},_doKeyDown:function(e){var c,y,w,v=t.datepicker._getInst(e.target),o=!0,x=v.dpDiv.is(".ui-datepicker-rtl");if(v._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return w=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",v.dpDiv),w[0]&&t.datepicker._selectDay(e.target,v.selectedMonth,v.selectedYear,w[0]),c=t.datepicker._get(v,"onSelect"),c?(y=t.datepicker._formatDate(v),c.apply(v.input?v.input[0]:null,[y,v])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(v,"stepBigMonths"):-t.datepicker._get(v,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(v,"stepBigMonths"):+t.datepicker._get(v,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,x?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(v,"stepBigMonths"):-t.datepicker._get(v,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,x?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(v,"stepBigMonths"):+t.datepicker._get(v,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else e.keyCode===36&&e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var c,y,w=t.datepicker._getInst(e.target);if(t.datepicker._get(w,"constrainInput"))return c=t.datepicker._possibleChars(t.datepicker._get(w,"dateFormat")),y=String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||y<" "||!c||c.indexOf(y)>-1},_doKeyUp:function(e){var c,y=t.datepicker._getInst(e.target);if(y.input.val()!==y.lastVal)try{c=t.datepicker.parseDate(t.datepicker._get(y,"dateFormat"),y.input?y.input.val():null,t.datepicker._getFormatConfig(y)),c&&(t.datepicker._setDateFromField(y),t.datepicker._updateAlternate(y),t.datepicker._updateDatepicker(y))}catch{}return!0},_showDatepicker:function(e){if(e=e.target||e,e.nodeName.toLowerCase()!=="input"&&(e=t("input",e.parentNode)[0]),!(t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)){var c,y,w,v,o,x,E;c=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==c&&(t.datepicker._curInst.dpDiv.stop(!0,!0),c&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),y=t.datepicker._get(c,"beforeShow"),w=y?y.apply(e,[e,c]):{},w!==!1&&(u(c.settings,w),c.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(c),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),v=!1,t(e).parents().each(function(){return v|=t(this).css("position")==="fixed",!v}),o={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(c),o=t.datepicker._checkOffset(c,o,v),c.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":v?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),c.inline||(x=t.datepicker._get(c,"showAnim"),E=t.datepicker._get(c,"duration"),c.dpDiv.css("z-index",ve(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[x]?c.dpDiv.show(x,t.datepicker._get(c,"showOptions"),E):c.dpDiv[x||"show"](x?E:null),t.datepicker._shouldFocusInput(c)&&c.input.trigger("focus"),t.datepicker._curInst=c))}},_updateDatepicker:function(e){this.maxRows=4,Q=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var c,y=this._getNumberOfMonths(e),w=y[1],v=17,o=e.dpDiv.find("."+this._dayOverClass+" a"),x=t.datepicker._get(e,"onUpdateDatepicker");o.length>0&&T.apply(o.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),w>1&&e.dpDiv.addClass("ui-datepicker-multi-"+w).css("width",v*w+"em"),e.dpDiv[(y[0]!==1||y[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(c=e.yearshtml,setTimeout(function(){c===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),c=e.yearshtml=null},0)),x&&x.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")},_checkOffset:function(e,c,y){var w=e.dpDiv.outerWidth(),v=e.dpDiv.outerHeight(),o=e.input?e.input.outerWidth():0,x=e.input?e.input.outerHeight():0,E=document.documentElement.clientWidth+(y?0:t(document).scrollLeft()),R=document.documentElement.clientHeight+(y?0:t(document).scrollTop());return c.left-=this._get(e,"isRTL")?w-o:0,c.left-=y&&c.left===e.input.offset().left?t(document).scrollLeft():0,c.top-=y&&c.top===e.input.offset().top+x?t(document).scrollTop():0,c.left-=Math.min(c.left,c.left+w>E&&E>w?Math.abs(c.left+w-E):0),c.top-=Math.min(c.top,c.top+v>R&&R>v?Math.abs(v+x):0),c},_findPos:function(e){for(var c,y=this._getInst(e),w=this._get(y,"isRTL");e&&(e.type==="hidden"||e.nodeType!==1||t.expr.pseudos.hidden(e));)e=e[w?"previousSibling":"nextSibling"];return c=t(e).offset(),[c.left,c.top]},_hideDatepicker:function(e){var c,y,w,v,o=this._curInst;!o||e&&o!==t.data(e,"datepicker")||this._datepickerShowing&&(c=this._get(o,"showAnim"),y=this._get(o,"duration"),w=function(){t.datepicker._tidyDialog(o)},t.effects&&t.effects.effect[c]?o.dpDiv.hide(c,t.datepicker._get(o,"showOptions"),y,w):o.dpDiv[c==="slideDown"?"slideUp":c==="fadeIn"?"fadeOut":"hide"](c?y:null,w),c||w(),this._datepickerShowing=!1,v=this._get(o,"onClose"),v&&v.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var c=t(e.target),y=t.datepicker._getInst(c[0]);(c[0].id!==t.datepicker._mainDivId&&c.parents("#"+t.datepicker._mainDivId).length===0&&!c.hasClass(t.datepicker.markerClassName)&&!c.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&!(t.datepicker._inDialog&&t.blockUI)||c.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==y)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,c,y){var w=t(e),v=this._getInst(w[0]);this._isDisabledDatepicker(w[0])||(this._adjustInstDate(v,c,y),this._updateDatepicker(v))},_gotoToday:function(e){var c,y=t(e),w=this._getInst(y[0]);this._get(w,"gotoCurrent")&&w.currentDay?(w.selectedDay=w.currentDay,w.drawMonth=w.selectedMonth=w.currentMonth,w.drawYear=w.selectedYear=w.currentYear):(c=new Date,w.selectedDay=c.getDate(),w.drawMonth=w.selectedMonth=c.getMonth(),w.drawYear=w.selectedYear=c.getFullYear()),this._notifyChange(w),this._adjustDate(y)},_selectMonthYear:function(e,c,y){var w=t(e),v=this._getInst(w[0]);v["selected"+(y==="M"?"Month":"Year")]=v["draw"+(y==="M"?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(v),this._adjustDate(w)},_selectDay:function(e,c,y,w){var v,o=t(e);t(w).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(v=this._getInst(o[0]),v.selectedDay=v.currentDay=parseInt(t("a",w).attr("data-date")),v.selectedMonth=v.currentMonth=c,v.selectedYear=v.currentYear=y,this._selectDate(e,this._formatDate(v,v.currentDay,v.currentMonth,v.currentYear)))},_clearDate:function(e){var c=t(e);this._selectDate(c,"")},_selectDate:function(e,c){var y,w=t(e),v=this._getInst(w[0]);c=c??this._formatDate(v),v.input&&v.input.val(c),this._updateAlternate(v),y=this._get(v,"onSelect"),y?y.apply(v.input?v.input[0]:null,[c,v]):v.input&&v.input.trigger("change"),v.inline?this._updateDatepicker(v):(this._hideDatepicker(),this._lastInput=v.input[0],typeof v.input[0]!="object"&&v.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var c,y,w,v=this._get(e,"altField");v&&(c=this._get(e,"altFormat")||this._get(e,"dateFormat"),y=this._getDate(e),w=this.formatDate(c,y,this._getFormatConfig(e)),t(document).find(v).val(w))},noWeekends:function(e){var c=e.getDay();return[c>0&&c<6,""]},iso8601Week:function(e){var c,y=new Date(e.getTime());return y.setDate(y.getDate()+4-(y.getDay()||7)),c=y.getTime(),y.setMonth(0),y.setDate(1),Math.floor(Math.round((c-y)/864e5)/7)+1},parseDate:function(e,c,y){if(e==null||c==null)throw"Invalid arguments";if(c=typeof c=="object"?c.toString():c+"",c==="")return null;var w,v,o,x=0,E=(y?y.shortYearCutoff:null)||this._defaults.shortYearCutoff,R=typeof E!="string"?E:new Date().getFullYear()%100+parseInt(E,10),H=(y?y.dayNamesShort:null)||this._defaults.dayNamesShort,Y=(y?y.dayNames:null)||this._defaults.dayNames,Z=(y?y.monthNamesShort:null)||this._defaults.monthNamesShort,L=(y?y.monthNames:null)||this._defaults.monthNames,D=-1,ee=-1,oe=-1,fe=-1,ue=!1,qe,rt=function(Ye){var We=w+1<e.length&&e.charAt(w+1)===Ye;return We&&w++,We},Ve=function(Ye){var We=rt(Ye),Xe=Ye==="@"?14:Ye==="!"?20:Ye==="y"&&We?4:Ye==="o"?3:2,Ge=Ye==="y"?Xe:1,nt=new RegExp("^\\d{"+Ge+","+Xe+"}"),Et=c.substring(x).match(nt);if(!Et)throw"Missing number at position "+x;return x+=Et[0].length,parseInt(Et[0],10)},et=function(Ye,We,Xe){var Ge=-1,nt=t.map(rt(Ye)?Xe:We,function(Et,Le){return[[Le,Et]]}).sort(function(Et,Le){return-(Et[1].length-Le[1].length)});if(t.each(nt,function(Et,Le){var Oe=Le[1];if(c.substr(x,Oe.length).toLowerCase()===Oe.toLowerCase())return Ge=Le[0],x+=Oe.length,!1}),Ge!==-1)return Ge+1;throw"Unknown name at position "+x},mt=function(){if(c.charAt(x)!==e.charAt(w))throw"Unexpected literal at position "+x;x++};for(w=0;w<e.length;w++)if(ue)e.charAt(w)==="'"&&!rt("'")?ue=!1:mt();else switch(e.charAt(w)){case"d":oe=Ve("d");break;case"D":et("D",H,Y);break;case"o":fe=Ve("o");break;case"m":ee=Ve("m");break;case"M":ee=et("M",Z,L);break;case"y":D=Ve("y");break;case"@":qe=new Date(Ve("@")),D=qe.getFullYear(),ee=qe.getMonth()+1,oe=qe.getDate();break;case"!":qe=new Date((Ve("!")-this._ticksTo1970)/1e4),D=qe.getFullYear(),ee=qe.getMonth()+1,oe=qe.getDate();break;case"'":rt("'")?mt():ue=!0;break;default:mt()}if(x<c.length&&(o=c.substr(x),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(D===-1?D=new Date().getFullYear():D<100&&(D+=new Date().getFullYear()-new Date().getFullYear()%100+(D<=R?0:-100)),fe>-1){ee=1,oe=fe;do{if(v=this._getDaysInMonth(D,ee-1),oe<=v)break;ee++,oe-=v}while(!0)}if(qe=this._daylightSavingAdjust(new Date(D,ee-1,oe)),qe.getFullYear()!==D||qe.getMonth()+1!==ee||qe.getDate()!==oe)throw"Invalid date";return qe},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7,formatDate:function(e,c,y){if(!c)return"";var w,v=(y?y.dayNamesShort:null)||this._defaults.dayNamesShort,o=(y?y.dayNames:null)||this._defaults.dayNames,x=(y?y.monthNamesShort:null)||this._defaults.monthNamesShort,E=(y?y.monthNames:null)||this._defaults.monthNames,R=function(D){var ee=w+1<e.length&&e.charAt(w+1)===D;return ee&&w++,ee},H=function(D,ee,oe){var fe=""+ee;if(R(D))for(;fe.length<oe;)fe="0"+fe;return fe},Y=function(D,ee,oe,fe){return R(D)?fe[ee]:oe[ee]},Z="",L=!1;if(c)for(w=0;w<e.length;w++)if(L)e.charAt(w)==="'"&&!R("'")?L=!1:Z+=e.charAt(w);else switch(e.charAt(w)){case"d":Z+=H("d",c.getDate(),2);break;case"D":Z+=Y("D",c.getDay(),v,o);break;case"o":Z+=H("o",Math.round((new Date(c.getFullYear(),c.getMonth(),c.getDate()).getTime()-new Date(c.getFullYear(),0,0).getTime())/864e5),3);break;case"m":Z+=H("m",c.getMonth()+1,2);break;case"M":Z+=Y("M",c.getMonth(),x,E);break;case"y":Z+=R("y")?c.getFullYear():(c.getFullYear()%100<10?"0":"")+c.getFullYear()%100;break;case"@":Z+=c.getTime();break;case"!":Z+=c.getTime()*1e4+this._ticksTo1970;break;case"'":R("'")?Z+="'":L=!0;break;default:Z+=e.charAt(w)}return Z},_possibleChars:function(e){var c,y="",w=!1,v=function(o){var x=c+1<e.length&&e.charAt(c+1)===o;return x&&c++,x};for(c=0;c<e.length;c++)if(w)e.charAt(c)==="'"&&!v("'")?w=!1:y+=e.charAt(c);else switch(e.charAt(c)){case"d":case"m":case"y":case"@":y+="0123456789";break;case"D":case"M":return null;case"'":v("'")?y+="'":w=!0;break;default:y+=e.charAt(c)}return y},_get:function(e,c){return e.settings[c]!==void 0?e.settings[c]:this._defaults[c]},_setDateFromField:function(e,c){if(e.input.val()!==e.lastVal){var y=this._get(e,"dateFormat"),w=e.lastVal=e.input?e.input.val():null,v=this._getDefaultDate(e),o=v,x=this._getFormatConfig(e);try{o=this.parseDate(y,w,x)||v}catch{w=c?"":w}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=w?o.getDate():0,e.currentMonth=w?o.getMonth():0,e.currentYear=w?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(e,c,y){var w=function(x){var E=new Date;return E.setDate(E.getDate()+x),E},v=function(x){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),x,t.datepicker._getFormatConfig(e))}catch{}for(var E=(x.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,R=E.getFullYear(),H=E.getMonth(),Y=E.getDate(),Z=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,L=Z.exec(x);L;){switch(L[2]||"d"){case"d":case"D":Y+=parseInt(L[1],10);break;case"w":case"W":Y+=parseInt(L[1],10)*7;break;case"m":case"M":H+=parseInt(L[1],10),Y=Math.min(Y,t.datepicker._getDaysInMonth(R,H));break;case"y":case"Y":R+=parseInt(L[1],10),Y=Math.min(Y,t.datepicker._getDaysInMonth(R,H));break}L=Z.exec(x)}return new Date(R,H,Y)},o=c==null||c===""?y:typeof c=="string"?v(c):typeof c=="number"?isNaN(c)?y:w(c):new Date(c.getTime());return o=o&&o.toString()==="Invalid Date"?y:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,c,y){var w=!c,v=e.selectedMonth,o=e.selectedYear,x=this._restrictMinMax(e,this._determineDate(e,c,new Date));e.selectedDay=e.currentDay=x.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=x.getMonth(),e.drawYear=e.selectedYear=e.currentYear=x.getFullYear(),(v!==e.selectedMonth||o!==e.selectedYear)&&!y&&this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(w?"":this._formatDate(e))},_getDate:function(e){var c=!e.currentYear||e.input&&e.input.val()===""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return c},_attachHandlers:function(e){var c=this._get(e,"stepMonths"),y="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var w={prev:function(){t.datepicker._adjustDate(y,-c,"M")},next:function(){t.datepicker._adjustDate(y,+c,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(y)},selectDay:function(){return t.datepicker._selectDay(y,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(y,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(y,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),w[this.getAttribute("data-handler")])})},_generateHTML:function(e){var c,y,w,v,o,x,E,R,H,Y,Z,L,D,ee,oe,fe,ue,qe,rt,Ve,et,mt,Ye,We,Xe,Ge,nt,Et,Le,Oe,$t,dt,gt,Lt,xe,X,pe,je,$e,He=new Date,Fe=this._daylightSavingAdjust(new Date(He.getFullYear(),He.getMonth(),He.getDate())),Me=this._get(e,"isRTL"),Rt=this._get(e,"showButtonPanel"),yt=this._get(e,"hideIfNoPrevNext"),le=this._get(e,"navigationAsDateFormat"),wt=this._getNumberOfMonths(e),at=this._get(e,"showCurrentAtPos"),Be=this._get(e,"stepMonths"),ot=wt[0]!==1||wt[1]!==1,tt=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),kt=this._getMinMaxDate(e,"min"),Yt=this._getMinMaxDate(e,"max"),pt=e.drawMonth-at,It=e.drawYear;if(pt<0&&(pt+=12,It--),Yt)for(c=this._daylightSavingAdjust(new Date(Yt.getFullYear(),Yt.getMonth()-wt[0]*wt[1]+1,Yt.getDate())),c=kt&&c<kt?kt:c;this._daylightSavingAdjust(new Date(It,pt,1))>c;)pt--,pt<0&&(pt=11,It--);for(e.drawMonth=pt,e.drawYear=It,y=this._get(e,"prevText"),y=le?this.formatDate(y,this._daylightSavingAdjust(new Date(It,pt-Be,1)),this._getFormatConfig(e)):y,this._canAdjustMonth(e,-1,It,pt)?w=t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:y}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Me?"e":"w")).text(y))[0].outerHTML:yt?w="":w=t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:y}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Me?"e":"w")).text(y))[0].outerHTML,v=this._get(e,"nextText"),v=le?this.formatDate(v,this._daylightSavingAdjust(new Date(It,pt+Be,1)),this._getFormatConfig(e)):v,this._canAdjustMonth(e,1,It,pt)?o=t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:v}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Me?"w":"e")).text(v))[0].outerHTML:yt?o="":o=t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:v}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(Me?"w":"e")).text(v))[0].outerHTML,x=this._get(e,"currentText"),E=this._get(e,"gotoCurrent")&&e.currentDay?tt:Fe,x=le?this.formatDate(x,E,this._getFormatConfig(e)):x,R="",e.inline||(R=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),H="",Rt&&(H=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(Me?R:"").append(this._isInRange(e,E)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(x):"").append(Me?"":R)[0].outerHTML),Y=parseInt(this._get(e,"firstDay"),10),Y=isNaN(Y)?0:Y,Z=this._get(e,"showWeek"),L=this._get(e,"dayNames"),D=this._get(e,"dayNamesMin"),ee=this._get(e,"monthNames"),oe=this._get(e,"monthNamesShort"),fe=this._get(e,"beforeShowDay"),ue=this._get(e,"showOtherMonths"),qe=this._get(e,"selectOtherMonths"),rt=this._getDefaultDate(e),Ve="",mt=0;mt<wt[0];mt++){for(Ye="",this.maxRows=4,We=0;We<wt[1];We++){if(Xe=this._daylightSavingAdjust(new Date(It,pt,e.selectedDay)),Ge=" ui-corner-all",nt="",ot){if(nt+="<div class='ui-datepicker-group",wt[1]>1)switch(We){case 0:nt+=" ui-datepicker-group-first",Ge=" ui-corner-"+(Me?"right":"left");break;case wt[1]-1:nt+=" ui-datepicker-group-last",Ge=" ui-corner-"+(Me?"left":"right");break;default:nt+=" ui-datepicker-group-middle",Ge="";break}nt+="'>"}for(nt+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+Ge+"'>"+(/all|left/.test(Ge)&&mt===0?Me?o:w:"")+(/all|right/.test(Ge)&&mt===0?Me?w:o:"")+this._generateMonthYearHeader(e,pt,It,kt,Yt,mt>0||We>0,ee,oe)+"</div><table class='ui-datepicker-calendar'><thead><tr>",Et=Z?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",et=0;et<7;et++)Le=(et+Y)%7,Et+="<th scope='col'"+((et+Y+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+L[Le]+"'>"+D[Le]+"</span></th>";for(nt+=Et+"</tr></thead><tbody>",Oe=this._getDaysInMonth(It,pt),It===e.selectedYear&&pt===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,Oe)),$t=(this._getFirstDayOfMonth(It,pt)-Y+7)%7,dt=Math.ceil(($t+Oe)/7),gt=ot&&this.maxRows>dt?this.maxRows:dt,this.maxRows=gt,Lt=this._daylightSavingAdjust(new Date(It,pt,1-$t)),xe=0;xe<gt;xe++){for(nt+="<tr>",X=Z?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(Lt)+"</td>":"",et=0;et<7;et++)pe=fe?fe.apply(e.input?e.input[0]:null,[Lt]):[!0,""],je=Lt.getMonth()!==pt,$e=je&&!qe||!pe[0]||kt&&Lt<kt||Yt&&Lt>Yt,X+="<td class='"+((et+Y+6)%7>=5?" ui-datepicker-week-end":"")+(je?" ui-datepicker-other-month":"")+(Lt.getTime()===Xe.getTime()&&pt===e.selectedMonth&&e._keyEvent||rt.getTime()===Lt.getTime()&&rt.getTime()===Xe.getTime()?" "+this._dayOverClass:"")+($e?" "+this._unselectableClass+" ui-state-disabled":"")+(je&&!ue?"":" "+pe[1]+(Lt.getTime()===tt.getTime()?" "+this._currentClass:"")+(Lt.getTime()===Fe.getTime()?" ui-datepicker-today":""))+"'"+((!je||ue)&&pe[2]?" title='"+pe[2].replace(/'/g,"&#39;")+"'":"")+($e?"":" data-handler='selectDay' data-event='click' data-month='"+Lt.getMonth()+"' data-year='"+Lt.getFullYear()+"'")+">"+(je&&!ue?"&#xa0;":$e?"<span class='ui-state-default'>"+Lt.getDate()+"</span>":"<a class='ui-state-default"+(Lt.getTime()===Fe.getTime()?" ui-state-highlight":"")+(Lt.getTime()===tt.getTime()?" ui-state-active":"")+(je?" ui-priority-secondary":"")+"' href='#' aria-current='"+(Lt.getTime()===tt.getTime()?"true":"false")+"' data-date='"+Lt.getDate()+"'>"+Lt.getDate()+"</a>")+"</td>",Lt.setDate(Lt.getDate()+1),Lt=this._daylightSavingAdjust(Lt);nt+=X+"</tr>"}pt++,pt>11&&(pt=0,It++),nt+="</tbody></table>"+(ot?"</div>"+(wt[0]>0&&We===wt[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),Ye+=nt}Ve+=Ye}return Ve+=H,e._keyEvent=!1,Ve},_generateMonthYearHeader:function(e,c,y,w,v,o,x,E){var R,H,Y,Z,L,D,ee,oe,fe=this._get(e,"changeMonth"),ue=this._get(e,"changeYear"),qe=this._get(e,"showMonthAfterYear"),rt=this._get(e,"selectMonthLabel"),Ve=this._get(e,"selectYearLabel"),et="<div class='ui-datepicker-title'>",mt="";if(o||!fe)mt+="<span class='ui-datepicker-month'>"+x[c]+"</span>";else{for(R=w&&w.getFullYear()===y,H=v&&v.getFullYear()===y,mt+="<select class='ui-datepicker-month' aria-label='"+rt+"' data-handler='selectMonth' data-event='change'>",Y=0;Y<12;Y++)(!R||Y>=w.getMonth())&&(!H||Y<=v.getMonth())&&(mt+="<option value='"+Y+"'"+(Y===c?" selected='selected'":"")+">"+E[Y]+"</option>");mt+="</select>"}if(qe||(et+=mt+(o||!(fe&&ue)?"&#xa0;":"")),!e.yearshtml)if(e.yearshtml="",o||!ue)et+="<span class='ui-datepicker-year'>"+y+"</span>";else{for(Z=this._get(e,"yearRange").split(":"),L=new Date().getFullYear(),D=function(Ye){var We=Ye.match(/c[+\-].*/)?y+parseInt(Ye.substring(1),10):Ye.match(/[+\-].*/)?L+parseInt(Ye,10):parseInt(Ye,10);return isNaN(We)?L:We},ee=D(Z[0]),oe=Math.max(ee,D(Z[1]||"")),ee=w?Math.max(ee,w.getFullYear()):ee,oe=v?Math.min(oe,v.getFullYear()):oe,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+Ve+"' data-handler='selectYear' data-event='change'>";ee<=oe;ee++)e.yearshtml+="<option value='"+ee+"'"+(ee===y?" selected='selected'":"")+">"+ee+"</option>";e.yearshtml+="</select>",et+=e.yearshtml,e.yearshtml=null}return et+=this._get(e,"yearSuffix"),qe&&(et+=(o||!(fe&&ue)?"&#xa0;":"")+mt),et+="</div>",et},_adjustInstDate:function(e,c,y){var w=e.selectedYear+(y==="Y"?c:0),v=e.selectedMonth+(y==="M"?c:0),o=Math.min(e.selectedDay,this._getDaysInMonth(w,v))+(y==="D"?c:0),x=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(w,v,o)));e.selectedDay=x.getDate(),e.drawMonth=e.selectedMonth=x.getMonth(),e.drawYear=e.selectedYear=x.getFullYear(),(y==="M"||y==="Y")&&this._notifyChange(e)},_restrictMinMax:function(e,c){var y=this._getMinMaxDate(e,"min"),w=this._getMinMaxDate(e,"max"),v=y&&c<y?y:c;return w&&v>w?w:v},_notifyChange:function(e){var c=this._get(e,"onChangeMonthYear");c&&c.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var c=this._get(e,"numberOfMonths");return c==null?[1,1]:typeof c=="number"?[1,c]:c},_getMinMaxDate:function(e,c){return this._determineDate(e,this._get(e,c+"Date"),null)},_getDaysInMonth:function(e,c){return 32-this._daylightSavingAdjust(new Date(e,c,32)).getDate()},_getFirstDayOfMonth:function(e,c){return new Date(e,c,1).getDay()},_canAdjustMonth:function(e,c,y,w){var v=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(y,w+(c<0?c:v[0]*v[1]),1));return c<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,c){var y,w,v=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),x=null,E=null,R=this._get(e,"yearRange");return R&&(y=R.split(":"),w=new Date().getFullYear(),x=parseInt(y[0],10),E=parseInt(y[1],10),y[0].match(/[+\-].*/)&&(x+=w),y[1].match(/[+\-].*/)&&(E+=w)),(!v||c.getTime()>=v.getTime())&&(!o||c.getTime()<=o.getTime())&&(!x||c.getFullYear()>=x)&&(!E||c.getFullYear()<=E)},_getFormatConfig:function(e){var c=this._get(e,"shortYearCutoff");return c=typeof c!="string"?c:new Date().getFullYear()%100+parseInt(c,10),{shortYearCutoff:c,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,c,y,w){c||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var v=c?typeof c=="object"?c:this._daylightSavingAdjust(new Date(w,y,c)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),v,this._getFormatConfig(e))}});function ke(e){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",c,function(){t(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",c,T)}function T(){t.datepicker._isDisabledDatepicker(Q.inline?Q.dpDiv.parent()[0]:Q.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&t(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&t(this).addClass("ui-datepicker-next-hover"))}function u(e,c){t.extend(e,c);for(var y in c)c[y]==null&&(e[y]=c[y]);return e}t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),t("#"+t.datepicker._mainDivId).length===0&&t("body").append(t.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return typeof e=="string"&&(e==="isDisabled"||e==="getDate"||e==="widget")?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(c)):e==="option"&&arguments.length===2&&typeof arguments[1]=="string"?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(c)):this.each(function(){typeof e=="string"?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(c)):t.datepicker._attachDatepicker(this,e)})},t.datepicker=new he,t.datepicker.initialized=!1,t.datepicker.uuid=new Date().getTime(),t.datepicker.version="1.14.0",t.datepicker;/*!
 * jQuery UI Mouse 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */var p=!1;t(document).on("mouseup",function(){p=!1}),t.widget("ui.mouse",{version:"1.14.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(c){return e._mouseDown(c)}).on("click."+this.widgetName,function(c){if(t.data(c.target,e.widgetName+".preventClickEvent")===!0)return t.removeData(c.target,e.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!p){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var c=this,y=e.which===1,w=typeof this.options.cancel=="string"?t(e.target).closest(this.options.cancel).length:!1;return!y||w||!this._mouseCapture(e)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(t.data(e.target,this.widgetName+".preventClickEvent")===!0&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(v){return c._mouseMove(v)},this._mouseUpDelegate=function(v){return c._mouseUp(v)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),p=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,p=!1,e.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,c,y){var w,v=t.ui[e].prototype;for(w in y)v.plugins[w]=v.plugins[w]||[],v.plugins[w].push([c,y[w]])},call:function(e,c,y,w){var v,o=e.plugins[c];if(o&&!(!w&&(!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)))for(v=0;v<o.length;v++)e.options[o[v][0]]&&o[v][1].apply(e.element,y)}};/*!
 * jQuery UI Draggable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.draggable",t.ui.mouse,{version:"1.14.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper==="original"&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,c){this._super(e,c),e==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(e){var c=this.options;return this.helper||c.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle)?!1:(this._blurActiveElement(e),this._blockFrames(c.iframeFix===!0?"iframe":c.iframeFix),!0)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var c=t(this);return t("<div>").css("position","absolute").appendTo(c.parent()).outerWidth(c.outerWidth()).outerHeight(c.outerHeight()).offset(c.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var c=this.document[0].activeElement,y=t(e.target);y.closest(c).length||t(c).trigger("blur")},_mouseStart:function(e){var c=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return t(this).css("position")==="fixed"}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!c.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,c){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!c){var y=this._uiHash();if(this._trigger("drag",e,y)===!1)return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=y.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var c=this,y=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(y=t.ui.ddmanager.drop(this,e)),this.dropped&&(y=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!y||this.options.revert==="valid"&&y||this.options.revert===!0||typeof this.options.revert=="function"&&this.options.revert.call(this.element,y)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",e)!==!1&&c._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var c=this.options,y=typeof c.helper=="function",w=y?t(c.helper.apply(this.element[0],[e])):c.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return w.parents("body").length||w.appendTo(c.appendTo==="parent"?this.element[0].parentNode:c.appendTo),y&&w[0]===this.element[0]&&this._setPositionRelative(),w[0]!==this.element[0]&&!/(fixed|absolute)/.test(w.css("position"))&&w.css("position","absolute"),w},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),c=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==c&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative")return{top:0,left:0};var e=this.element.position(),c=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(c?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(c?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,c,y,w=this.options,v=this.document[0];if(this.relativeContainer=null,!w.containment){this.containment=null;return}if(w.containment==="window"){this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||v.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(w.containment==="document"){this.containment=[0,0,t(v).width()-this.helperProportions.width-this.margins.left,(t(v).height()||v.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(w.containment.constructor===Array){this.containment=w.containment;return}w.containment==="parent"&&(w.containment=this.helper[0].parentNode),c=t(w.containment),y=c[0],y&&(e=/(scroll|auto)/.test(c.css("overflow")),this.containment=[(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("paddingLeft"),10)||0),(parseInt(c.css("borderTopWidth"),10)||0)+(parseInt(c.css("paddingTop"),10)||0),(e?Math.max(y.scrollWidth,y.offsetWidth):y.offsetWidth)-(parseInt(c.css("borderRightWidth"),10)||0)-(parseInt(c.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(y.scrollHeight,y.offsetHeight):y.offsetHeight)-(parseInt(c.css("borderBottomWidth"),10)||0)-(parseInt(c.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=c)},_convertPositionTo:function(e,c){c||(c=this.position);var y=e==="absolute"?1:-1,w=this._isRootNode(this.scrollParent[0]);return{top:c.top+this.offset.relative.top*y+this.offset.parent.top*y-(this.cssPosition==="fixed"?-this.offset.scroll.top:w?0:this.offset.scroll.top)*y,left:c.left+this.offset.relative.left*y+this.offset.parent.left*y-(this.cssPosition==="fixed"?-this.offset.scroll.left:w?0:this.offset.scroll.left)*y}},_generatePosition:function(e,c){var y,w,v,o,x=this.options,E=this._isRootNode(this.scrollParent[0]),R=e.pageX,H=e.pageY;return(!E||!this.offset.scroll)&&(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),c&&(this.containment&&(this.relativeContainer?(w=this.relativeContainer.offset(),y=[this.containment[0]+w.left,this.containment[1]+w.top,this.containment[2]+w.left,this.containment[3]+w.top]):y=this.containment,e.pageX-this.offset.click.left<y[0]&&(R=y[0]+this.offset.click.left),e.pageY-this.offset.click.top<y[1]&&(H=y[1]+this.offset.click.top),e.pageX-this.offset.click.left>y[2]&&(R=y[2]+this.offset.click.left),e.pageY-this.offset.click.top>y[3]&&(H=y[3]+this.offset.click.top)),x.grid&&(v=x.grid[1]?this.originalPageY+Math.round((H-this.originalPageY)/x.grid[1])*x.grid[1]:this.originalPageY,H=y?v-this.offset.click.top>=y[1]||v-this.offset.click.top>y[3]?v:v-this.offset.click.top>=y[1]?v-x.grid[1]:v+x.grid[1]:v,o=x.grid[0]?this.originalPageX+Math.round((R-this.originalPageX)/x.grid[0])*x.grid[0]:this.originalPageX,R=y?o-this.offset.click.left>=y[0]||o-this.offset.click.left>y[2]?o:o-this.offset.click.left>=y[0]?o-x.grid[0]:o+x.grid[0]:o),x.axis==="y"&&(R=this.originalPageX),x.axis==="x"&&(H=this.originalPageY)),{top:H-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:E?0:this.offset.scroll.top),left:R-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:E?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,c,y){return y=y||this._uiHash(),t.ui.plugin.call(this,e,[c,y,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),y.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,c,y)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,c,y){var w=t.extend({},c,{item:y.element});y.sortables=[],t(y.options.connectToSortable).each(function(){var v=t(this).sortable("instance");v&&!v.options.disabled&&(y.sortables.push(v),v.refreshPositions(),v._trigger("activate",e,w))})},stop:function(e,c,y){var w=t.extend({},c,{item:y.element});y.cancelHelperRemoval=!1,t.each(y.sortables,function(){var v=this;v.isOver?(v.isOver=0,y.cancelHelperRemoval=!0,v.cancelHelperRemoval=!1,v._storedCSS={position:v.placeholder.css("position"),top:v.placeholder.css("top"),left:v.placeholder.css("left")},v._mouseStop(e),v.options.helper=v.options._helper):(v.cancelHelperRemoval=!0,v._trigger("deactivate",e,w))})},drag:function(e,c,y){t.each(y.sortables,function(){var w=!1,v=this;v.positionAbs=y.positionAbs,v.helperProportions=y.helperProportions,v.offset.click=y.offset.click,v._intersectsWith(v.containerCache)&&(w=!0,t.each(y.sortables,function(){return this.positionAbs=y.positionAbs,this.helperProportions=y.helperProportions,this.offset.click=y.offset.click,this!==v&&this._intersectsWith(this.containerCache)&&t.contains(v.element[0],this.element[0])&&(w=!1),w})),w?(v.isOver||(v.isOver=1,y._parent=c.helper.parent(),v.currentItem=c.helper.appendTo(v.element).data("ui-sortable-item",!0),v.options._helper=v.options.helper,v.options.helper=function(){return c.helper[0]},e.target=v.currentItem[0],v._mouseCapture(e,!0),v._mouseStart(e,!0,!0),v.offset.click.top=y.offset.click.top,v.offset.click.left=y.offset.click.left,v.offset.parent.left-=y.offset.parent.left-v.offset.parent.left,v.offset.parent.top-=y.offset.parent.top-v.offset.parent.top,y._trigger("toSortable",e),y.dropped=v.element,t.each(y.sortables,function(){this.refreshPositions()}),y.currentItem=y.element,v.fromOutside=y),v.currentItem&&(v._mouseDrag(e),c.position=v.position)):v.isOver&&(v.isOver=0,v.cancelHelperRemoval=!0,v.options._revert=v.options.revert,v.options.revert=!1,v._trigger("out",e,v._uiHash(v)),v._mouseStop(e,!0),v.options.revert=v.options._revert,v.options.helper=v.options._helper,v.placeholder&&v.placeholder.remove(),c.helper.appendTo(y._parent),y._refreshOffsets(e),c.position=y._generatePosition(e,!0),y._trigger("fromSortable",e),y.dropped=!1,t.each(y.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,c,y){var w=t("body"),v=y.options;w.css("cursor")&&(v._cursor=w.css("cursor")),w.css("cursor",v.cursor)},stop:function(e,c,y){var w=y.options;w._cursor&&t("body").css("cursor",w._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,c,y){var w=t(c.helper),v=y.options;w.css("opacity")&&(v._opacity=w.css("opacity")),w.css("opacity",v.opacity)},stop:function(e,c,y){var w=y.options;w._opacity&&t(c.helper).css("opacity",w._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(e,c,y){y.scrollParentNotHidden||(y.scrollParentNotHidden=y.helper.scrollParent(!1)),y.scrollParentNotHidden[0]!==y.document[0]&&y.scrollParentNotHidden[0].tagName!=="HTML"&&(y.overflowOffset=y.scrollParentNotHidden.offset())},drag:function(e,c,y){var w=y.options,v=!1,o=y.scrollParentNotHidden[0],x=y.document[0];o!==x&&o.tagName!=="HTML"?((!w.axis||w.axis!=="x")&&(y.overflowOffset.top+o.offsetHeight-e.pageY<w.scrollSensitivity?o.scrollTop=v=o.scrollTop+w.scrollSpeed:e.pageY-y.overflowOffset.top<w.scrollSensitivity&&(o.scrollTop=v=o.scrollTop-w.scrollSpeed)),(!w.axis||w.axis!=="y")&&(y.overflowOffset.left+o.offsetWidth-e.pageX<w.scrollSensitivity?o.scrollLeft=v=o.scrollLeft+w.scrollSpeed:e.pageX-y.overflowOffset.left<w.scrollSensitivity&&(o.scrollLeft=v=o.scrollLeft-w.scrollSpeed))):((!w.axis||w.axis!=="x")&&(e.pageY-t(x).scrollTop()<w.scrollSensitivity?v=t(x).scrollTop(t(x).scrollTop()-w.scrollSpeed):t(window).height()-(e.pageY-t(x).scrollTop())<w.scrollSensitivity&&(v=t(x).scrollTop(t(x).scrollTop()+w.scrollSpeed))),(!w.axis||w.axis!=="y")&&(e.pageX-t(x).scrollLeft()<w.scrollSensitivity?v=t(x).scrollLeft(t(x).scrollLeft()-w.scrollSpeed):t(window).width()-(e.pageX-t(x).scrollLeft())<w.scrollSensitivity&&(v=t(x).scrollLeft(t(x).scrollLeft()+w.scrollSpeed)))),v!==!1&&t.ui.ddmanager&&!w.dropBehaviour&&t.ui.ddmanager.prepareOffsets(y,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,c,y){var w=y.options;y.snapElements=[],t(w.snap.constructor!==String?w.snap.items||":data(ui-draggable)":w.snap).each(function(){var v=t(this),o=v.offset();this!==y.element[0]&&y.snapElements.push({item:this,width:v.outerWidth(),height:v.outerHeight(),top:o.top,left:o.left})})},drag:function(e,c,y){var w,v,o,x,E,R,H,Y,Z,L,D=y.options,ee=D.snapTolerance,oe=c.offset.left,fe=oe+y.helperProportions.width,ue=c.offset.top,qe=ue+y.helperProportions.height;for(Z=y.snapElements.length-1;Z>=0;Z--){if(E=y.snapElements[Z].left-y.margins.left,R=E+y.snapElements[Z].width,H=y.snapElements[Z].top-y.margins.top,Y=H+y.snapElements[Z].height,fe<E-ee||oe>R+ee||qe<H-ee||ue>Y+ee||!t.contains(y.snapElements[Z].item.ownerDocument,y.snapElements[Z].item)){y.snapElements[Z].snapping&&y.options.snap.release&&y.options.snap.release.call(y.element,e,t.extend(y._uiHash(),{snapItem:y.snapElements[Z].item})),y.snapElements[Z].snapping=!1;continue}D.snapMode!=="inner"&&(w=Math.abs(H-qe)<=ee,v=Math.abs(Y-ue)<=ee,o=Math.abs(E-fe)<=ee,x=Math.abs(R-oe)<=ee,w&&(c.position.top=y._convertPositionTo("relative",{top:H-y.helperProportions.height,left:0}).top),v&&(c.position.top=y._convertPositionTo("relative",{top:Y,left:0}).top),o&&(c.position.left=y._convertPositionTo("relative",{top:0,left:E-y.helperProportions.width}).left),x&&(c.position.left=y._convertPositionTo("relative",{top:0,left:R}).left)),L=w||v||o||x,D.snapMode!=="outer"&&(w=Math.abs(H-ue)<=ee,v=Math.abs(Y-qe)<=ee,o=Math.abs(E-oe)<=ee,x=Math.abs(R-fe)<=ee,w&&(c.position.top=y._convertPositionTo("relative",{top:H,left:0}).top),v&&(c.position.top=y._convertPositionTo("relative",{top:Y-y.helperProportions.height,left:0}).top),o&&(c.position.left=y._convertPositionTo("relative",{top:0,left:E}).left),x&&(c.position.left=y._convertPositionTo("relative",{top:0,left:R-y.helperProportions.width}).left)),!y.snapElements[Z].snapping&&(w||v||o||x||L)&&y.options.snap.snap&&y.options.snap.snap.call(y.element,e,t.extend(y._uiHash(),{snapItem:y.snapElements[Z].item})),y.snapElements[Z].snapping=w||v||o||x||L}}}),t.ui.plugin.add("draggable","stack",{start:function(e,c,y){var w,v=y.options,o=t.makeArray(t(v.stack)).sort(function(x,E){return(parseInt(t(x).css("zIndex"),10)||0)-(parseInt(t(E).css("zIndex"),10)||0)});o.length&&(w=parseInt(t(o[0]).css("zIndex"),10)||0,t(o).each(function(x){t(this).css("zIndex",w+x)}),this.css("zIndex",w+o.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,c,y){var w=t(c.helper),v=y.options;w.css("zIndex")&&(v._zIndex=w.css("zIndex")),w.css("zIndex",v.zIndex)},stop:function(e,c,y){var w=y.options;w._zIndex&&t(c.helper).css("zIndex",w._zIndex)}}),t.ui.draggable;/*!
 * jQuery UI Resizable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.resizable",t.ui.mouse,{version:"1.14.0",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(e,c){if(t(e).css("overflow")==="hidden")return!1;var y=c&&c==="left"?"scrollLeft":"scrollTop",w=!1;if(e[y]>0)return!0;try{e[y]=1,w=e[y]>0,e[y]=0}catch{}return w},_create:function(){var e,c=this.options,y=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),c.autoHide&&t(this.element).on("mouseenter",function(){c.disabled||(y._removeClass("ui-resizable-autohide"),y._handles.show())}).on("mouseleave",function(){c.disabled||y.resizing||(y._addClass("ui-resizable-autohide"),y._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,c=function(y){t(y).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(c(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),c(this.originalElement),this},_setOption:function(e,c){switch(this._super(e,c),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!c;break}},_setupHandles:function(){var e=this.options,c,y,w,v,o,x=this;if(this.handles=e.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),w=this.handles.split(","),this.handles={},y=0;y<w.length;y++)c=String.prototype.trim.call(w[y]),v="ui-resizable-"+c,o=t("<div>"),this._addClass(o,"ui-resizable-handle "+v),o.css({zIndex:e.zIndex}),this.handles[c]=".ui-resizable-"+c,this.element.children(this.handles[c]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(E){var R,H,Y,Z;E=E||this.element;for(R in this.handles)this.handles[R].constructor===String?this.handles[R]=this.element.children(this.handles[R]).first().show():(this.handles[R].jquery||this.handles[R].nodeType)&&(this.handles[R]=t(this.handles[R]),this._on(this.handles[R],{mousedown:x._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(H=t(this.handles[R],this.element),Z=/sw|ne|nw|se|n|s/.test(R)?H.outerHeight():H.outerWidth(),Y=["padding",/ne|nw|n/.test(R)?"Top":/se|sw|s/.test(R)?"Bottom":/^e$/.test(R)?"Right":"Left"].join(""),E.css(Y,Z),this._proportionallyResize()),this._handles=this._handles.add(this.handles[R])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){x.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),x.axis=o&&o[1]?o[1]:"se")}),e.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var c,y,w=!1;for(c in this.handles)y=t(this.handles[c])[0],(y===e.target||t.contains(y,e.target))&&(w=!0);return!this.options.disabled&&w},_mouseStart:function(e){var c,y,w,v=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),c=this._num(this.helper.css("left")),y=this._num(this.helper.css("top")),v.containment&&(c+=t(v.containment).scrollLeft()||0,y+=t(v.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:c,top:y},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:c,top:y},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio=typeof v.aspectRatio=="number"?v.aspectRatio:this.originalSize.width/this.originalSize.height||1,w=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor",w==="auto"?this.axis+"-resize":w),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var c,y,w=this.originalMousePosition,v=this.axis,o=e.pageX-w.left||0,x=e.pageY-w.top||0,E=this._change[v];return this._updatePrevProperties(),E&&(c=E.apply(this,[e,o,x]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(c=this._updateRatio(c,e)),c=this._respectSize(c,e),this._updateCache(c),this._propagate("resize",e),y=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(y)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var c,y,w,v,o,x,E,R=this.options,H=this;return this._helper&&(c=this._proportionallyResizeElements,y=c.length&&/textarea/i.test(c[0].nodeName),w=y&&this._hasScroll(c[0],"left")?0:H.sizeDiff.height,v=y?0:H.sizeDiff.width,o={width:H.helper.width()-v,height:H.helper.height()-w},x=parseFloat(H.element.css("left"))+(H.position.left-H.originalPosition.left)||null,E=parseFloat(H.element.css("top"))+(H.position.top-H.originalPosition.top)||null,R.animate||this.element.css(t.extend(o,{top:E,left:x})),H.helper.height(H.size.height),H.helper.width(H.size.width),this._helper&&!R.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.helper.css(e),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px",this.helper.width(e.width)),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px",this.helper.height(e.height)),e},_updateVirtualBoundaries:function(e){var c,y,w,v,o,x=this.options;o={minWidth:this._isNumber(x.minWidth)?x.minWidth:0,maxWidth:this._isNumber(x.maxWidth)?x.maxWidth:1/0,minHeight:this._isNumber(x.minHeight)?x.minHeight:0,maxHeight:this._isNumber(x.maxHeight)?x.maxHeight:1/0},(this._aspectRatio||e)&&(c=o.minHeight*this.aspectRatio,w=o.minWidth/this.aspectRatio,y=o.maxHeight*this.aspectRatio,v=o.maxWidth/this.aspectRatio,c>o.minWidth&&(o.minWidth=c),w>o.minHeight&&(o.minHeight=w),y<o.maxWidth&&(o.maxWidth=y),v<o.maxHeight&&(o.maxHeight=v)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var c=this.position,y=this.size,w=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),w==="sw"&&(e.left=c.left+(y.width-e.width),e.top=null),w==="nw"&&(e.top=c.top+(y.height-e.height),e.left=c.left+(y.width-e.width)),e},_respectSize:function(e){var c=this._vBoundaries,y=this.axis,w=this._isNumber(e.width)&&c.maxWidth&&c.maxWidth<e.width,v=this._isNumber(e.height)&&c.maxHeight&&c.maxHeight<e.height,o=this._isNumber(e.width)&&c.minWidth&&c.minWidth>e.width,x=this._isNumber(e.height)&&c.minHeight&&c.minHeight>e.height,E=this.originalPosition.left+this.originalSize.width,R=this.originalPosition.top+this.originalSize.height,H=/sw|nw|w/.test(y),Y=/nw|ne|n/.test(y);return o&&(e.width=c.minWidth),x&&(e.height=c.minHeight),w&&(e.width=c.maxWidth),v&&(e.height=c.maxHeight),o&&H&&(e.left=E-c.minWidth),w&&H&&(e.left=E-c.maxWidth),x&&Y&&(e.top=R-c.minHeight),v&&Y&&(e.top=R-c.maxHeight),!e.width&&!e.height&&!e.left&&e.top?e.top=null:!e.width&&!e.height&&!e.top&&e.left&&(e.left=null),e},_getPaddingPlusBorderDimensions:function(e){for(var c=0,y=[],w=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],v=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];c<4;c++)y[c]=parseFloat(w[c])||0,y[c]+=parseFloat(v[c])||0;return{height:y[0]+y[2],width:y[1]+y[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,c=0,y=this.helper||this.element;c<this._proportionallyResizeElements.length;c++)e=this._proportionallyResizeElements[c],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:y.height()-this.outerDimensions.height||0,width:y.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,c=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,c){return{width:this.originalSize.width+c}},w:function(e,c){var y=this.originalSize,w=this.originalPosition;return{left:w.left+c,width:y.width-c}},n:function(e,c,y){var w=this.originalSize,v=this.originalPosition;return{top:v.top+y,height:w.height-y}},s:function(e,c,y){return{height:this.originalSize.height+y}},se:function(e,c,y){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,c,y]))},sw:function(e,c,y){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,c,y]))},ne:function(e,c,y){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,c,y]))},nw:function(e,c,y){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,c,y]))}},_propagate:function(e,c){t.ui.plugin.call(this,e,[c,this.ui()]),e!=="resize"&&this._trigger(e,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var c=t(this).resizable("instance"),y=c.options,w=c._proportionallyResizeElements,v=w.length&&/textarea/i.test(w[0].nodeName),o=v&&c._hasScroll(w[0],"left")?0:c.sizeDiff.height,x=v?0:c.sizeDiff.width,E={width:c.size.width-x,height:c.size.height-o},R=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,H=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null;c.element.animate(t.extend(E,H&&R?{top:H,left:R}:{}),{duration:y.animateDuration,easing:y.animateEasing,step:function(){var Y={width:parseFloat(c.element.css("width")),height:parseFloat(c.element.css("height")),top:parseFloat(c.element.css("top")),left:parseFloat(c.element.css("left"))};w&&w.length&&t(w[0]).css({width:Y.width,height:Y.height}),c._updateCache(Y),c._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,c,y,w,v,o,x,E=t(this).resizable("instance"),R=E.options,H=E.element,Y=R.containment,Z=Y instanceof t?Y.get(0):/parent/.test(Y)?H.parent().get(0):Y;Z&&(E.containerElement=t(Z),/document/.test(Y)||Y===document?(E.containerOffset={left:0,top:0},E.containerPosition={left:0,top:0},E.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(Z),c=[],t(["Top","Right","Left","Bottom"]).each(function(L,D){c[L]=E._num(e.css("padding"+D))}),E.containerOffset=e.offset(),E.containerPosition=e.position(),E.containerSize={height:e.innerHeight()-c[3],width:e.innerWidth()-c[1]},y=E.containerOffset,w=E.containerSize.height,v=E.containerSize.width,o=E._hasScroll(Z,"left")?Z.scrollWidth:v,x=E._hasScroll(Z)?Z.scrollHeight:w,E.parentData={element:Z,left:y.left,top:y.top,width:o,height:x}))},resize:function(e){var c,y,w,v,o=t(this).resizable("instance"),x=o.options,E=o.containerOffset,R=o.position,H=o._aspectRatio||e.shiftKey,Y={top:0,left:0},Z=o.containerElement,L=!0;Z[0]!==document&&/static/.test(Z.css("position"))&&(Y=E),R.left<(o._helper?E.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-E.left:o.position.left-Y.left),H&&(o.size.height=o.size.width/o.aspectRatio,L=!1),o.position.left=x.helper?E.left:0),R.top<(o._helper?E.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-E.top:o.position.top),H&&(o.size.width=o.size.height*o.aspectRatio,L=!1),o.position.top=o._helper?E.top:0),w=o.containerElement.get(0)===o.element.parent().get(0),v=/relative|absolute/.test(o.containerElement.css("position")),w&&v?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),c=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-Y.left:o.offset.left-E.left)),y=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-Y.top:o.offset.top-E.top)),c+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-c,H&&(o.size.height=o.size.width/o.aspectRatio,L=!1)),y+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-y,H&&(o.size.width=o.size.height*o.aspectRatio,L=!1)),L||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),c=e.options,y=e.containerOffset,w=e.containerPosition,v=e.containerElement,o=t(e.helper),x=o.offset(),E=o.outerWidth()-e.sizeDiff.width,R=o.outerHeight()-e.sizeDiff.height;e._helper&&!c.animate&&/relative/.test(v.css("position"))&&t(this).css({left:x.left-w.left-y.left,width:E,height:R}),e._helper&&!c.animate&&/static/.test(v.css("position"))&&t(this).css({left:x.left-w.left-y.left,width:E,height:R})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),c=e.options;t(c.alsoResize).each(function(){var y=t(this);y.data("ui-resizable-alsoresize",{width:parseFloat(y.css("width")),height:parseFloat(y.css("height")),left:parseFloat(y.css("left")),top:parseFloat(y.css("top"))})})},resize:function(e,c){var y=t(this).resizable("instance"),w=y.options,v=y.originalSize,o=y.originalPosition,x={height:y.size.height-v.height||0,width:y.size.width-v.width||0,top:y.position.top-o.top||0,left:y.position.left-o.left||0};t(w.alsoResize).each(function(){var E=t(this),R=t(this).data("ui-resizable-alsoresize"),H={},Y=E.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(Y,function(Z,L){var D=(R[L]||0)+(x[L]||0);D&&D>=0&&(H[L]=D||null)}),E.css(H)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),c=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat===!0&&typeof e.options.ghost=="string"&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,c=t(this).resizable("instance"),y=c.options,w=c.size,v=c.originalSize,o=c.originalPosition,x=c.axis,E=typeof y.grid=="number"?[y.grid,y.grid]:y.grid,R=E[0]||1,H=E[1]||1,Y=Math.round((w.width-v.width)/R)*R,Z=Math.round((w.height-v.height)/H)*H,L=v.width+Y,D=v.height+Z,ee=y.maxWidth&&y.maxWidth<L,oe=y.maxHeight&&y.maxHeight<D,fe=y.minWidth&&y.minWidth>L,ue=y.minHeight&&y.minHeight>D;y.grid=E,fe&&(L+=R),ue&&(D+=H),ee&&(L-=R),oe&&(D-=H),/^(se|s|e)$/.test(x)?(c.size.width=L,c.size.height=D):/^(ne)$/.test(x)?(c.size.width=L,c.size.height=D,c.position.top=o.top-Z):/^(sw)$/.test(x)?(c.size.width=L,c.size.height=D,c.position.left=o.left-Y):((D-H<=0||L-R<=0)&&(e=c._getPaddingPlusBorderDimensions(this)),D-H>0?(c.size.height=D,c.position.top=o.top-Z):(D=H-e.height,c.size.height=D,c.position.top=o.top+v.height-D),L-R>0?(c.size.width=L,c.position.left=o.left-Y):(L=R-e.width,c.size.width=L,c.position.left=o.left+v.width-L))}}),t.ui.resizable;/*!
 * jQuery UI Dialog 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.dialog",{version:"1.14.0",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var c=t(this).css(e).offset().top;c<0&&t(this).css("top",e.top-c)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title==null&&this.originalTitle!=null&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var e,c=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=c.parent.children().eq(c.index),e.length&&e[0]!==this.element[0]?e.before(this.element):c.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var c=this;!this._isOpen||this._trigger("beforeClose",e)===!1||(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,function(){c._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,c){var y=!1,w=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),v=Math.max.apply(null,w);return v>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",v+1),y=!0),y&&!c&&this._trigger("focus",e),y},open:function(){var e=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open")},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var e=this.document[0].activeElement,c=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);c||this._focusTabbable()},_keepFocus:function(e){e.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE){e.preventDefault(),this.close(e);return}if(!(e.keyCode!==t.ui.keyCode.TAB||e.isDefaultPrevented())){var c=this.uiDialog.find(":tabbable"),y=c.first(),w=c.last();(e.target===w[0]||e.target===this.uiDialog[0])&&!e.shiftKey?(this._delay(function(){y.trigger("focus")}),e.preventDefault()):(e.target===y[0]||e.target===this.uiDialog[0])&&e.shiftKey&&(this._delay(function(){w.trigger("focus")}),e.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(c){t(c.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(c){c.preventDefault(),this.close(c)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,c=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(c)||Array.isArray(c)&&!c.length){this._removeClass(this.uiDialog,"ui-dialog-buttons");return}t.each(c,function(y,w){var v,o;w=typeof w=="function"?{click:w,text:y}:w,w=t.extend({type:"button"},w),v=w.click,o={icon:w.icon,iconPosition:w.iconPosition,showLabel:w.showLabel,icons:w.icons,text:w.text},delete w.click,delete w.icon,delete w.iconPosition,delete w.showLabel,delete w.icons,typeof w.text=="boolean"&&delete w.text,t("<button></button>",w).button(o).appendTo(e.uiButtonSet).on("click",function(){v.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var e=this,c=this.options;function y(w){return{position:w.position,offset:w.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(w,v){e._addClass(t(this),"ui-dialog-dragging"),e._blockFrames(),e._trigger("dragStart",w,y(v))},drag:function(w,v){e._trigger("drag",w,y(v))},stop:function(w,v){var o=v.offset.left-e.document.scrollLeft(),x=v.offset.top-e.document.scrollTop();c.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(x>=0?"+":"")+x,of:e.window},e._removeClass(t(this),"ui-dialog-dragging"),e._unblockFrames(),e._trigger("dragStop",w,y(v))}})},_makeResizable:function(){var e=this,c=this.options,y=c.resizable,w=this.uiDialog.css("position"),v=typeof y=="string"?y:"n,e,s,w,se,sw,ne,nw";function o(x){return{originalPosition:x.originalPosition,originalSize:x.originalSize,position:x.position,size:x.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:c.maxWidth,maxHeight:c.maxHeight,minWidth:c.minWidth,minHeight:this._minHeight(),handles:v,start:function(x,E){e._addClass(t(this),"ui-dialog-resizing"),e._blockFrames(),e._trigger("resizeStart",x,o(E))},resize:function(x,E){e._trigger("resize",x,o(E))},stop:function(x,E){var R=e.uiDialog.offset(),H=R.left-e.document.scrollLeft(),Y=R.top-e.document.scrollTop();c.height=e.uiDialog.height(),c.width=e.uiDialog.width(),c.position={my:"left top",at:"left"+(H>=0?"+":"")+H+" top"+(Y>=0?"+":"")+Y,of:e.window},e._removeClass(t(this),"ui-dialog-resizing"),e._unblockFrames(),e._trigger("resizeStop",x,o(E))}}).css("position",w)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),c=t.inArray(this,e);c!==-1&&e.splice(c,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(e){var c=this,y=!1,w={};t.each(e,function(v,o){c._setOption(v,o),v in c.sizeRelatedOptions&&(y=!0),v in c.resizableRelatedOptions&&(w[v]=o)}),y&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",w)},_setOption:function(e,c){var y,w,v=this.uiDialog;e!=="disabled"&&(this._super(e,c),e==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),e==="buttons"&&this._createButtons(),e==="closeText"&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),e==="draggable"&&(y=v.is(":data(ui-draggable)"),y&&!c&&v.draggable("destroy"),!y&&c&&this._makeDraggable()),e==="position"&&this._position(),e==="resizable"&&(w=v.is(":data(ui-resizable)"),w&&!c&&v.resizable("destroy"),w&&typeof c=="string"&&v.resizable("option","handles",c),!w&&c!==!1&&this._makeResizable()),e==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),e==="modal"&&v.attr("aria-modal",c?"true":null))},_size:function(){var e,c,y,w=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),w.minWidth>w.width&&(w.width=w.minWidth),e=this.uiDialog.css({height:"auto",width:w.width}).outerHeight(),c=Math.max(0,w.minHeight-e),y=typeof w.maxHeight=="number"?Math.max(0,w.maxHeight-e):"none",w.height==="auto"?this.element.css({minHeight:c,maxHeight:y,height:"auto"}):this.element.height(Math.max(0,w.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",(function(c){if(!e){var y=this._trackingInstances()[0];y._allowInteraction(c)||(c.preventDefault(),y._focusTabbable())}}).bind(this)),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),t.uiBackCompat===!0&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,c){e==="dialogClass"&&this.uiDialog.removeClass(this.options.dialogClass).addClass(c),this._superApply(arguments)}}),t.ui.dialog;/*!
 * jQuery UI Droppable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.droppable",{version:"1.14.0",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,c=this.options,y=c.accept;this.isover=!1,this.isout=!0,this.accept=typeof y=="function"?y:function(w){return w.is(y)},this.proportions=function(){if(arguments.length)e=arguments[0];else return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(c.scope),c.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var c=0;c<e.length;c++)e[c]===this&&e.splice(c,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,c){if(e==="accept")this.accept=typeof c=="function"?c:function(w){return w.is(c)};else if(e==="scope"){var y=t.ui.ddmanager.droppables[this.options.scope];this._splice(y),this._addToManager(c)}this._super(e,c)},_activate:function(e){var c=t.ui.ddmanager.current;this._addActiveClass(),c&&this._trigger("activate",e,this.ui(c))},_deactivate:function(e){var c=t.ui.ddmanager.current;this._removeActiveClass(),c&&this._trigger("deactivate",e,this.ui(c))},_over:function(e){var c=t.ui.ddmanager.current;!c||(c.currentItem||c.element)[0]===this.element[0]||this.accept.call(this.element[0],c.currentItem||c.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(c)))},_out:function(e){var c=t.ui.ddmanager.current;!c||(c.currentItem||c.element)[0]===this.element[0]||this.accept.call(this.element[0],c.currentItem||c.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(c)))},_drop:function(e,c){var y=c||t.ui.ddmanager.current,w=!1;return!y||(y.currentItem||y.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var v=t(this).droppable("instance");if(v.options.greedy&&!v.options.disabled&&v.options.scope===y.options.scope&&v.accept.call(v.element[0],y.currentItem||y.element)&&t.ui.intersect(y,t.extend(v,{offset:v.element.offset()}),v.options.tolerance,e))return w=!0,!1}),w)?!1:this.accept.call(this.element[0],y.currentItem||y.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(y)),this.element):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),t.ui.intersect=function(){function e(c,y,w){return c>=y&&c<y+w}return function(c,y,w,v){if(!y.offset)return!1;var o=(c.positionAbs||c.position.absolute).left+c.margins.left,x=(c.positionAbs||c.position.absolute).top+c.margins.top,E=o+c.helperProportions.width,R=x+c.helperProportions.height,H=y.offset.left,Y=y.offset.top,Z=H+y.proportions().width,L=Y+y.proportions().height;switch(w){case"fit":return H<=o&&E<=Z&&Y<=x&&R<=L;case"intersect":return H<o+c.helperProportions.width/2&&E-c.helperProportions.width/2<Z&&Y<x+c.helperProportions.height/2&&R-c.helperProportions.height/2<L;case"pointer":return e(v.pageY,Y,y.proportions().height)&&e(v.pageX,H,y.proportions().width);case"touch":return(x>=Y&&x<=L||R>=Y&&R<=L||x<Y&&R>L)&&(o>=H&&o<=Z||E>=H&&E<=Z||o<H&&E>Z);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,c){var y,w,v=t.ui.ddmanager.droppables[e.options.scope]||[],o=c?c.type:null,x=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(y=0;y<v.length;y++)if(!(v[y].options.disabled||e&&!v[y].accept.call(v[y].element[0],e.currentItem||e.element))){for(w=0;w<x.length;w++)if(x[w]===v[y].element[0]){v[y].proportions().height=0;continue e}v[y].visible=v[y].element.css("display")!=="none",v[y].visible&&(o==="mousedown"&&v[y]._activate.call(v[y],c),v[y].offset=v[y].element.offset(),v[y].proportions({width:v[y].element[0].offsetWidth,height:v[y].element[0].offsetHeight}))}},drop:function(e,c){var y=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,c)&&(y=this._drop.call(this,c)||y),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,c)))}),y},dragStart:function(e,c){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,c)})},drag:function(e,c){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,c),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var y,w,v,o=t.ui.intersect(e,this,this.options.tolerance,c),x=!o&&this.isover?"isout":o&&!this.isover?"isover":null;x&&(this.options.greedy&&(w=this.options.scope,v=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===w}),v.length&&(y=t(v[0]).droppable("instance"),y.greedyChild=x==="isover")),y&&x==="isover"&&(y.isover=!1,y.isout=!0,y._out.call(y,c)),this[x]=!0,this[x==="isout"?"isover":"isout"]=!1,this[x==="isover"?"_over":"_out"].call(this,c),y&&x==="isout"&&(y.isout=!1,y.isover=!0,y._over.call(y,c)))}})},dragStop:function(e,c){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,c)}},t.uiBackCompat===!0&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable;/*!
 * jQuery UI Progressbar 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.progressbar",{version:"1.14.0",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(e===void 0)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return e===void 0&&(e=this.options.value),this.indeterminate=e===!1,typeof e!="number"&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var c=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(c),this._refreshValue()},_setOption:function(e,c){e==="max"&&(c=Math.max(this.min,c)),this._super(e,c)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,c=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(c.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}});/*!
 * jQuery UI Selectable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.selectable",t.ui.mouse,{version:"1.14.0",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var c=t(this),y=c.offset(),w={left:y.left-e.elementPos.left,top:y.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:c,left:w.left,top:w.top,right:w.left+c.outerWidth(),bottom:w.top+c.outerHeight(),startselected:!1,selected:c.hasClass("ui-selected"),selecting:c.hasClass("ui-selecting"),unselecting:c.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var c=this,y=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),!this.options.disabled&&(this.selectees=t(y.filter,this.element[0]),this._trigger("start",e),t(y.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),y.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var w=t.data(this,"selectable-item");w.startselected=!0,!e.metaKey&&!e.ctrlKey&&(c._removeClass(w.$element,"ui-selected"),w.selected=!1,c._addClass(w.$element,"ui-unselecting"),w.unselecting=!0,c._trigger("unselecting",e,{unselecting:w.element}))}),t(e.target).parents().addBack().each(function(){var w,v=t.data(this,"selectable-item");if(v)return w=!e.metaKey&&!e.ctrlKey||!v.$element.hasClass("ui-selected"),c._removeClass(v.$element,w?"ui-unselecting":"ui-selected")._addClass(v.$element,w?"ui-selecting":"ui-unselecting"),v.unselecting=!w,v.selecting=w,v.selected=w,w?c._trigger("selecting",e,{selecting:v.element}):c._trigger("unselecting",e,{unselecting:v.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var c,y=this,w=this.options,v=this.opos[0],o=this.opos[1],x=e.pageX,E=e.pageY;return v>x&&(c=x,x=v,v=c),o>E&&(c=E,E=o,o=c),this.helper.css({left:v,top:o,width:x-v,height:E-o}),this.selectees.each(function(){var R=t.data(this,"selectable-item"),H=!1,Y={};!R||R.element===y.element[0]||(Y.left=R.left+y.elementPos.left,Y.right=R.right+y.elementPos.left,Y.top=R.top+y.elementPos.top,Y.bottom=R.bottom+y.elementPos.top,w.tolerance==="touch"?H=!(Y.left>x||Y.right<v||Y.top>E||Y.bottom<o):w.tolerance==="fit"&&(H=Y.left>v&&Y.right<x&&Y.top>o&&Y.bottom<E),H?(R.selected&&(y._removeClass(R.$element,"ui-selected"),R.selected=!1),R.unselecting&&(y._removeClass(R.$element,"ui-unselecting"),R.unselecting=!1),R.selecting||(y._addClass(R.$element,"ui-selecting"),R.selecting=!0,y._trigger("selecting",e,{selecting:R.element}))):(R.selecting&&((e.metaKey||e.ctrlKey)&&R.startselected?(y._removeClass(R.$element,"ui-selecting"),R.selecting=!1,y._addClass(R.$element,"ui-selected"),R.selected=!0):(y._removeClass(R.$element,"ui-selecting"),R.selecting=!1,R.startselected&&(y._addClass(R.$element,"ui-unselecting"),R.unselecting=!0),y._trigger("unselecting",e,{unselecting:R.element}))),R.selected&&!e.metaKey&&!e.ctrlKey&&!R.startselected&&(y._removeClass(R.$element,"ui-selected"),R.selected=!1,y._addClass(R.$element,"ui-unselecting"),R.unselecting=!0,y._trigger("unselecting",e,{unselecting:R.element}))))}),!1}},_mouseStop:function(e){var c=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var y=t.data(this,"selectable-item");c._removeClass(y.$element,"ui-unselecting"),y.unselecting=!1,y.startselected=!1,c._trigger("unselected",e,{unselected:y.element})}),t(".ui-selecting",this.element[0]).each(function(){var y=t.data(this,"selectable-item");c._removeClass(y.$element,"ui-selecting")._addClass(y.$element,"ui-selected"),y.selecting=!1,y.selected=!0,y.startselected=!0,c._trigger("selected",e,{selected:y.element})}),this._trigger("stop",e),this.helper.remove(),!1}});/*!
 * jQuery UI Selectmenu 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.14.0",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,c=this,y=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(w){this.button.trigger("focus"),w.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(y).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){c._rendered||c._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(c,y){c.preventDefault(),e._select(y.item.data("ui-selectmenu-item"),c)},focus:function(c,y){var w=y.item.data("ui-selectmenu-item");e.focusIndex!=null&&w.index!==e.focusIndex&&(e._trigger("focus",c,{item:w}),e.isOpen||e._select(w,c)),e.focusIndex=w.index,e.button.attr("aria-activedescendant",e.menuItems.eq(w.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),this.options.width===null&&this._resizeButton()},_refreshMenu:function(){var e,c=this.element.find("option");this.menu.empty(),this._parseOptions(c),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,c.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var c=t("<span>");return this._setText(c,e.label),this._addClass(c,"ui-selectmenu-text"),c},_renderMenu:function(e,c){var y=this,w="";t.each(c,function(v,o){var x;o.optgroup!==w&&(x=t("<li>",{text:o.optgroup}),y._addClass(x,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),x.appendTo(e),w=o.optgroup),y._renderItemData(e,o)})},_renderItemData:function(e,c){return this._renderItem(e,c).data("ui-selectmenu-item",c)},_renderItem:function(e,c){var y=t("<li>"),w=t("<div>",{title:c.element.attr("title")});return c.disabled&&this._addClass(y,null,"ui-state-disabled"),c.hidden?y.prop("hidden",!0):this._setText(w,c.label),y.append(w).appendTo(e)},_setText:function(e,c){c?e.text(c):e.html("&#160;")},_move:function(e,c){var y,w,v=".ui-menu-item";this.isOpen?y=this.menuItems.eq(this.focusIndex).parent("li"):(y=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),v+=":not(.ui-state-disabled)"),e==="first"||e==="last"?w=y[e==="first"?"prevAll":"nextAll"](v).eq(-1):w=y[e+"All"](v).eq(0),w.length&&this.menuInstance.focus(c,w)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(e=window.getSelection(),e.removeAllRanges(),e.addRange(this.range))},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+CSS.escape(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var e=window.getSelection();e.rangeCount&&(this.range=e.getRangeAt(0))},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(e){var c=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),c=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),c=!1}c&&e.preventDefault()}},_selectFocusedItem:function(e){var c=this.menuItems.eq(this.focusIndex).parent("li");c.hasClass("ui-state-disabled")||this._select(c.data("ui-selectmenu-item"),e)},_select:function(e,c){var y=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",c,{item:e}),e.index!==y&&this._trigger("change",c,{item:e}),this.close(c)},_setAria:function(e){var c=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":c,"aria-activedescendant":c}),this.menu.attr("aria-activedescendant",c)},_setOption:function(e,c){if(e==="icons"){var y=this.button.find("span.ui-icon");this._removeClass(y,null,this.options.icons.button)._addClass(y,null,c.button)}this._super(e,c),e==="appendTo"&&this.menuWrap.appendTo(this._appendTo()),e==="width"&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),(!e||!e[0])&&(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;if(e===!1){this.button.css("width","");return}e===null&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(e){var c=this,y=[];e.each(function(w,v){y.push(c._parseOption(t(v),w))}),this.items=y},_parseOption:function(e,c){var y=e.parent("optgroup");return{element:e,index:c,value:e.val(),label:e.text(),hidden:y.prop("hidden")||e.prop("hidden"),optgroup:y.attr("label")||"",disabled:y.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]);/*!
 * jQuery UI Slider 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.slider",t.ui.mouse,{version:"1.14.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,c,y=this.options,w=this.element.find(".ui-slider-handle"),v="<span tabindex='0'></span>",o=[];for(c=y.values&&y.values.length||1,w.length>c&&(w.slice(c).remove(),w=w.slice(0,c)),e=w.length;e<c;e++)o.push(v);this.handles=w.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(x){t(this).data("ui-slider-handle-index",x).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&e.values.length!==2?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),!this.range||!this.range.length?(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")):(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})),(e.range==="min"||e.range==="max")&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var c,y,w,v,o,x,E,R,H=this,Y=this.options;return Y.disabled||(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:e.pageX,y:e.pageY},y=this._normValueFromMouse(c),w=this._valueMax()-this._valueMin()+1,this.handles.each(function(Z){var L=Math.abs(y-H.values(Z));(w>L||w===L&&(Z===H._lastChangedValue||H.values(Z)===Y.min))&&(w=L,v=t(this),o=Z)}),x=this._start(e,o),x===!1)?!1:(this._mouseSliding=!0,this._handleIndex=o,this._addClass(v,null,"ui-state-active"),v.trigger("focus"),E=v.offset(),R=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=R?{left:0,top:0}:{left:e.pageX-E.left-v.width()/2,top:e.pageY-E.top-v.height()/2-(parseInt(v.css("borderTopWidth"),10)||0)-(parseInt(v.css("borderBottomWidth"),10)||0)+(parseInt(v.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,y),this._animateOff=!0,!0)},_mouseStart:function(){return!0},_mouseDrag:function(e){var c={x:e.pageX,y:e.pageY},y=this._normValueFromMouse(c);return this._slide(e,this._handleIndex,y),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var c,y,w,v,o;return this.orientation==="horizontal"?(c=this.elementSize.width,y=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(c=this.elementSize.height,y=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),w=y/c,w>1&&(w=1),w<0&&(w=0),this.orientation==="vertical"&&(w=1-w),v=this._valueMax()-this._valueMin(),o=this._valueMin()+w*v,this._trimAlignValue(o)},_uiHash:function(e,c,y){var w={handle:this.handles[e],handleIndex:e,value:c!==void 0?c:this.value()};return this._hasMultipleValues()&&(w.value=c!==void 0?c:this.values(e),w.values=y||this.values()),w},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,c){return this._trigger("start",e,this._uiHash(c))},_slide:function(e,c,y){var w,v,o=this.value(),x=this.values();this._hasMultipleValues()&&(v=this.values(c?0:1),o=this.values(c),this.options.values.length===2&&this.options.range===!0&&(y=c===0?Math.min(v,y):Math.max(v,y)),x[c]=y),y!==o&&(w=this._trigger("slide",e,this._uiHash(c,y,x)),w!==!1&&(this._hasMultipleValues()?this.values(c,y):this.value(y)))},_stop:function(e,c){this._trigger("stop",e,this._uiHash(c))},_change:function(e,c){!this._keySliding&&!this._mouseSliding&&(this._lastChangedValue=c,this._trigger("change",e,this._uiHash(c)))},value:function(e){if(arguments.length){this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0);return}return this._value()},values:function(e,c){var y,w,v;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(c),this._refreshValue(),this._change(null,e);return}if(arguments.length)if(Array.isArray(arguments[0])){for(y=this.options.values,w=arguments[0],v=0;v<y.length;v+=1)y[v]=this._trimAlignValue(w[v]),this._change(null,v);this._refreshValue()}else return this._hasMultipleValues()?this._values(e):this.value();else return this._values()},_setOption:function(e,c){var y,w=0;switch(e==="range"&&this.options.range===!0&&(c==="min"?(this.options.value=this._values(0),this.options.values=null):c==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(w=this.options.values.length),this._super(e,c),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(c),this.handles.css(c==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),y=w-1;y>=0;y--)this._change(null,y);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1;break}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e),e},_values:function(e){var c,y,w;if(arguments.length)return c=this.options.values[e],c=this._trimAlignValue(c),c;if(this._hasMultipleValues()){for(y=this.options.values.slice(),w=0;w<y.length;w+=1)y[w]=this._trimAlignValue(y[w]);return y}else return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var c=this.options.step>0?this.options.step:1,y=(e-this._valueMin())%c,w=e-y;return Math.abs(y)*2>=c&&(w+=y>0?c:-c),parseFloat(w.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,c=this._valueMin(),y=this.options.step,w=Math.round((e-c)/y)*y;e=w+c,e>this.options.max&&(e-=y),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return this.options.min!==null&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var c=e.toString(),y=c.indexOf(".");return y===-1?0:c.length-y-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){e==="vertical"&&this.range.css({width:"",left:""}),e==="horizontal"&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,c,y,w,v,o=this.options.range,x=this.options,E=this,R=this._animateOff?!1:x.animate,H={};this._hasMultipleValues()?this.handles.each(function(Y){c=(E.values(Y)-E._valueMin())/(E._valueMax()-E._valueMin())*100,H[E.orientation==="horizontal"?"left":"bottom"]=c+"%",t(this).stop(1,1)[R?"animate":"css"](H,x.animate),E.options.range===!0&&(E.orientation==="horizontal"?(Y===0&&E.range.stop(1,1)[R?"animate":"css"]({left:c+"%"},x.animate),Y===1&&E.range[R?"animate":"css"]({width:c-e+"%"},{queue:!1,duration:x.animate})):(Y===0&&E.range.stop(1,1)[R?"animate":"css"]({bottom:c+"%"},x.animate),Y===1&&E.range[R?"animate":"css"]({height:c-e+"%"},{queue:!1,duration:x.animate}))),e=c}):(y=this.value(),w=this._valueMin(),v=this._valueMax(),c=v!==w?(y-w)/(v-w)*100:0,H[this.orientation==="horizontal"?"left":"bottom"]=c+"%",this.handle.stop(1,1)[R?"animate":"css"](H,x.animate),o==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[R?"animate":"css"]({width:c+"%"},x.animate),o==="max"&&this.orientation==="horizontal"&&this.range.stop(1,1)[R?"animate":"css"]({width:100-c+"%"},x.animate),o==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[R?"animate":"css"]({height:c+"%"},x.animate),o==="max"&&this.orientation==="vertical"&&this.range.stop(1,1)[R?"animate":"css"]({height:100-c+"%"},x.animate))},_handleEvents:{keydown:function(e){var c,y,w,v,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),c=this._start(e,o),c===!1))return;break}switch(v=this.options.step,this._hasMultipleValues()?y=w=this.values(o):y=w=this.value(),e.keyCode){case t.ui.keyCode.HOME:w=this._valueMin();break;case t.ui.keyCode.END:w=this._valueMax();break;case t.ui.keyCode.PAGE_UP:w=this._trimAlignValue(y+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:w=this._trimAlignValue(y-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(y===this._valueMax())return;w=this._trimAlignValue(y+v);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(y===this._valueMin())return;w=this._trimAlignValue(y-v);break}this._slide(e,o,w)},keyup:function(e){var c=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,c),this._change(e,c),this._removeClass(t(e.target),null,"ui-state-active"))}}});/*!
 * jQuery UI Sortable 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.sortable",t.ui.mouse,{version:"1.14.0",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,c,y){return e>=c&&e<c+y},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,c){this._super(e,c),e==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,c){var y=null,w=!1,v=this;return this.reverting||this.options.disabled||this.options.type==="static"||(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,v.widgetName+"-item")===v)return y=t(this),!1}),t.data(e.target,v.widgetName+"-item")===v&&(y=t(e.target)),!y)||this.options.handle&&!c&&(t(this.options.handle,y).find("*").addBack().each(function(){this===e.target&&(w=!0)}),!w)?!1:(this.currentItem=y,this._removeCurrentsFromItems(),!0)},_mouseStart:function(e,c,y){var w,v,o=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t(o.appendTo!=="parent"?o.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),o.containment&&this._setContainment(),o.cursor&&o.cursor!=="auto"&&(v=this.document.find("body"),this._storedStylesheet=t("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(v)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!y)for(w=this.containers.length-1;w>=0;w--)this.containers[w]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(e){var c=this.options,y=!1;return this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<c.scrollSensitivity?this.scrollParent[0].scrollTop=y=this.scrollParent[0].scrollTop+c.scrollSpeed:e.pageY-this.overflowOffset.top<c.scrollSensitivity&&(this.scrollParent[0].scrollTop=y=this.scrollParent[0].scrollTop-c.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<c.scrollSensitivity?this.scrollParent[0].scrollLeft=y=this.scrollParent[0].scrollLeft+c.scrollSpeed:e.pageX-this.overflowOffset.left<c.scrollSensitivity&&(this.scrollParent[0].scrollLeft=y=this.scrollParent[0].scrollLeft-c.scrollSpeed)):(e.pageY-this.document.scrollTop()<c.scrollSensitivity?y=this.document.scrollTop(this.document.scrollTop()-c.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<c.scrollSensitivity&&(y=this.document.scrollTop(this.document.scrollTop()+c.scrollSpeed)),e.pageX-this.document.scrollLeft()<c.scrollSensitivity?y=this.document.scrollLeft(this.document.scrollLeft()-c.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<c.scrollSensitivity&&(y=this.document.scrollLeft(this.document.scrollLeft()+c.scrollSpeed))),y},_mouseDrag:function(e){var c,y,w,v,o=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),(!this.options.axis||this.options.axis!=="y")&&(this.helper[0].style.left=this.position.left+"px"),(!this.options.axis||this.options.axis!=="x")&&(this.helper[0].style.top=this.position.top+"px"),o.scroll&&this._scroll(e)!==!1&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},c=this.items.length-1;c>=0;c--)if(y=this.items[c],w=y.item[0],v=this._intersectsWithPointer(y),!!v&&y.instance===this.currentContainer&&w!==this.currentItem[0]&&this.placeholder[v===1?"next":"prev"]()[0]!==w&&!t.contains(this.placeholder[0],w)&&(this.options.type!=="semi-dynamic"||!t.contains(this.element[0],w))){if(this.direction=v===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(y))this._rearrange(e,y);else break;this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,c){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var y=this,w=this.placeholder.offset(),v=this.options.axis,o={};(!v||v==="x")&&(o.left=w.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),(!v||v==="y")&&(o.top=w.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){y._clear(e)})}else this._clear(e,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),this.options.helper==="original"?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var c=this._getItemsAsjQuery(e&&e.connected),y=[];return e=e||{},t(c).each(function(){var w=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);w&&y.push((e.key||w[1]+"[]")+"="+(e.key&&e.expression?w[1]:w[2]))}),!y.length&&e.key&&y.push(e.key+"="),y.join("&")},toArray:function(e){var c=this._getItemsAsjQuery(e&&e.connected),y=[];return e=e||{},c.each(function(){y.push(t(e.item||this).attr(e.attribute||"id")||"")}),y},_intersectsWith:function(e){var c=this.positionAbs.left,y=c+this.helperProportions.width,w=this.positionAbs.top,v=w+this.helperProportions.height,o=e.left,x=o+e.width,E=e.top,R=E+e.height,H=this.offset.click.top,Y=this.offset.click.left,Z=this.options.axis==="x"||w+H>E&&w+H<R,L=this.options.axis==="y"||c+Y>o&&c+Y<x,D=Z&&L;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?D:o<c+this.helperProportions.width/2&&y-this.helperProportions.width/2<x&&E<w+this.helperProportions.height/2&&v-this.helperProportions.height/2<R},_intersectsWithPointer:function(e){var c,y,w=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),v=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),o=w&&v;return o?(c=this.dragDirection.vertical,y=this.dragDirection.horizontal,this.floating?y==="right"||c==="down"?2:1:c&&(c==="down"?2:1)):!1},_intersectsWithSides:function(e){var c=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),y=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),w=this.dragDirection.vertical,v=this.dragDirection.horizontal;return this.floating&&v?v==="right"&&y||v==="left"&&!y:w&&(w==="down"&&c||w==="up"&&!c)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!==0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!==0&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){var c,y,w,v,o=[],x=[],E=this._connectWith();if(E&&e)for(c=E.length-1;c>=0;c--)for(w=t(E[c],this.document[0]),y=w.length-1;y>=0;y--)v=t.data(w[y],this.widgetFullName),v&&v!==this&&!v.options.disabled&&x.push([typeof v.options.items=="function"?v.options.items.call(v.element):t(v.options.items,v.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),v]);x.push([typeof this.options.items=="function"?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function R(){o.push(this)}for(c=x.length-1;c>=0;c--)x[c][0].each(R);return t(o)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(c){for(var y=0;y<e.length;y++)if(e[y]===c.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var c,y,w,v,o,x,E,R,H=this.items,Y=[[typeof this.options.items=="function"?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],Z=this._connectWith();if(Z&&this.ready)for(c=Z.length-1;c>=0;c--)for(w=t(Z[c],this.document[0]),y=w.length-1;y>=0;y--)v=t.data(w[y],this.widgetFullName),v&&v!==this&&!v.options.disabled&&(Y.push([typeof v.options.items=="function"?v.options.items.call(v.element[0],e,{item:this.currentItem}):t(v.options.items,v.element),v]),this.containers.push(v));for(c=Y.length-1;c>=0;c--)for(o=Y[c][1],x=Y[c][0],y=0,R=x.length;y<R;y++)E=t(x[y]),E.data(this.widgetName+"-item",o),H.push({item:E,instance:o,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var c,y,w,v;for(c=this.items.length-1;c>=0;c--)y=this.items[c],!(this.currentContainer&&y.instance!==this.currentContainer&&y.item[0]!==this.currentItem[0])&&(w=this.options.toleranceElement?t(this.options.toleranceElement,y.item):y.item,e||(y.width=w.outerWidth(),y.height=w.outerHeight()),v=w.offset(),y.left=v.left,y.top=v.top)},refreshPositions:function(e){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e);var c,y;if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)y=this.containers[c].element.offset(),this.containers[c].containerCache.left=y.left,this.containers[c].containerCache.top=y.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var c,y,w=e.options;(!w.placeholder||w.placeholder.constructor===String)&&(c=w.placeholder,y=e.currentItem[0].nodeName.toLowerCase(),w.placeholder={element:function(){var v=t("<"+y+">",e.document[0]);return e._addClass(v,"ui-sortable-placeholder",c||e.currentItem[0].className)._removeClass(v,"ui-sortable-helper"),y==="tbody"?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(v)):y==="tr"?e._createTrPlaceholder(e.currentItem,v):y==="img"&&v.attr("src",e.currentItem.attr("src")),c||v.css("visibility","hidden"),v},update:function(v,o){c&&!w.forcePlaceholderSize||((!o.height()||w.forcePlaceholderSize&&(y==="tbody"||y==="tr"))&&o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(w.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),w.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,c){var y=this;e.children().each(function(){t("<td>&#160;</td>",y.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(c)})},_contactContainers:function(e){var c,y,w,v,o,x,E,R,H,Y,Z=null,L=null;for(c=this.containers.length-1;c>=0;c--)if(!t.contains(this.currentItem[0],this.containers[c].element[0]))if(this._intersectsWith(this.containers[c].containerCache)){if(Z&&t.contains(this.containers[c].element[0],Z.element[0]))continue;Z=this.containers[c],L=c}else this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",e,this._uiHash(this)),this.containers[c].containerCache.over=0);if(Z)if(this.containers.length===1)this.containers[L].containerCache.over||(this.containers[L]._trigger("over",e,this._uiHash(this)),this.containers[L].containerCache.over=1);else{for(w=1e4,v=null,H=Z.floating||this._isFloating(this.currentItem),o=H?"left":"top",x=H?"width":"height",Y=H?"pageX":"pageY",y=this.items.length-1;y>=0;y--)t.contains(this.containers[L].element[0],this.items[y].item[0])&&this.items[y].item[0]!==this.currentItem[0]&&(E=this.items[y].item.offset()[o],R=!1,e[Y]-E>this.items[y][x]/2&&(R=!0),Math.abs(e[Y]-E)<w&&(w=Math.abs(e[Y]-E),v=this.items[y],this.direction=R?"up":"down"));if(!v&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[L]){this.currentContainer.containerCache.over||(this.containers[L]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1);return}v?this._rearrange(e,v,null,!0):this._rearrange(e,null,this.containers[L].element,!0),this._trigger("change",e,this._uiHash()),this.containers[L]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[L],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this.containers[L]._trigger("over",e,this._uiHash(this)),this.containers[L].containerCache.over=1}},_createHelper:function(e){var c=this.options,y=typeof c.helper=="function"?t(c.helper.apply(this.element[0],[e,this.currentItem])):c.helper==="clone"?this.currentItem.clone():this.currentItem;return y.parents("body").length||this.appendTo[0].appendChild(y[0]),y[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!y[0].style.width||c.forceHelperSize)&&y.width(this.currentItem.width()),(!y[0].style.height||c.forceHelperSize)&&y.height(this.currentItem.height()),y},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,c,y,w=this.options;w.containment==="parent"&&(w.containment=this.helper[0].parentNode),(w.containment==="document"||w.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,w.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(w.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(w.containment)||(e=t(w.containment)[0],c=t(w.containment).offset(),y=t(e).css("overflow")!=="hidden",this.containment=[c.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,c.left+(y?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(y?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,c){c||(c=this.position);var y=e==="absolute"?1:-1,w=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,v=/(html|body)/i.test(w[0].tagName);return{top:c.top+this.offset.relative.top*y+this.offset.parent.top*y-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():v?0:w.scrollTop())*y,left:c.left+this.offset.relative.left*y+this.offset.parent.left*y-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():v?0:w.scrollLeft())*y}},_generatePosition:function(e){var c,y,w=this.options,v=e.pageX,o=e.pageY,x=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,E=/(html|body)/i.test(x[0].tagName);return this.cssPosition==="relative"&&!(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(v=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(o=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(v=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),w.grid&&(c=this.originalPageY+Math.round((o-this.originalPageY)/w.grid[1])*w.grid[1],o=this.containment?c-this.offset.click.top>=this.containment[1]&&c-this.offset.click.top<=this.containment[3]?c:c-this.offset.click.top>=this.containment[1]?c-w.grid[1]:c+w.grid[1]:c,y=this.originalPageX+Math.round((v-this.originalPageX)/w.grid[0])*w.grid[0],v=this.containment?y-this.offset.click.left>=this.containment[0]&&y-this.offset.click.left<=this.containment[2]?y:y-this.offset.click.left>=this.containment[0]?y-w.grid[0]:y+w.grid[0]:y)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():E?0:x.scrollTop()),left:v-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():E?0:x.scrollLeft())}},_rearrange:function(e,c,y,w){y?y[0].appendChild(this.placeholder[0]):c.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?c.item[0]:c.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var v=this.counter;this._delay(function(){v===this.counter&&this.refreshPositions(!w)})},_clear:function(e,c){this.reverting=!1;var y,w=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(y in this._storedCSS)(this._storedCSS[y]==="auto"||this._storedCSS[y]==="static")&&(this._storedCSS[y]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!c&&w.push(function(o){this._trigger("receive",o,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!c&&w.push(function(o){this._trigger("update",o,this._uiHash())}),this!==this.currentContainer&&(c||(w.push(function(o){this._trigger("remove",o,this._uiHash())}),w.push((function(o){return function(x){o._trigger("receive",x,this._uiHash(this))}}).call(this,this.currentContainer)),w.push((function(o){return function(x){o._trigger("update",x,this._uiHash(this))}}).call(this,this.currentContainer))));function v(o,x,E){return function(R){E._trigger(o,R,x._uiHash(x))}}for(y=this.containers.length-1;y>=0;y--)c||w.push(v("deactivate",this,this.containers[y])),this.containers[y].containerCache.over&&(w.push(v("out",this,this.containers[y])),this.containers[y].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,c||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!c){for(y=0;y<w.length;y++)w[y].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var c=e||this;return{helper:c.helper,placeholder:c.placeholder||t([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:e?e.element:null}}});/*!
 * jQuery UI Spinner 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */function b(e){return function(){var c=this.element.val();e.apply(this,arguments),this._refresh(),c!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{version:"1.14.0",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this.value()!==""&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),c=this.element;return t.each(["min","max","step"],function(y,w){var v=c.attr(w);v!=null&&v.length&&(e[w]=v)}),e},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e)},mousewheel:function(e,c){var y=this.document[0].activeElement,w=this.element[0]===y;if(!(!w||!c)){if(!this.spinning&&!this._start(e))return!1;this._spin((c>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){var c;c=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();function y(){var w=this.element[0]===this.document[0].activeElement;w||(this.element.trigger("focus"),this.previous=c)}e.preventDefault(),y.call(this),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active")){if(this._start(e)===!1)return!1;this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)}},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(this.uiSpinner.height()*.5)&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var c=this.options,y=t.ui.keyCode;switch(e.keyCode){case y.UP:return this._repeat(null,1,e),!0;case y.DOWN:return this._repeat(null,-1,e),!0;case y.PAGE_UP:return this._repeat(null,c.page,e),!0;case y.PAGE_DOWN:return this._repeat(null,-c.page,e),!0}return!1},_start:function(e){return!this.spinning&&this._trigger("start",e)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,c,y){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,c,y)},e),this._spin(c*this.options.step,y)},_spin:function(e,c){var y=this.value()||0;this.counter||(this.counter=1),y=this._adjustValue(y+e*this._increment(this.counter)),(!this.spinning||this._trigger("spin",c,{value:y})!==!1)&&(this._value(y),this.counter++)},_increment:function(e){var c=this.options.incremental;return c?typeof c=="function"?c(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return this.options.min!==null&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var c=e.toString(),y=c.indexOf(".");return y===-1?0:c.length-y-1},_adjustValue:function(e){var c,y,w=this.options;return c=w.min!==null?w.min:0,y=e-c,y=Math.round(y/w.step)*w.step,e=c+y,e=parseFloat(e.toFixed(this._precision())),w.max!==null&&e>w.max?w.max:w.min!==null&&e<w.min?w.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,c){var y,w,v;if(e==="culture"||e==="numberFormat"){y=this._parse(this.element.val()),this.options[e]=c,this.element.val(this._format(y));return}(e==="max"||e==="min"||e==="step")&&typeof c=="string"&&(c=this._parse(c)),e==="icons"&&(w=this.buttons.first().find(".ui-icon"),this._removeClass(w,null,this.options.icons.up),this._addClass(w,null,c.up),v=this.buttons.last().find(".ui-icon"),this._removeClass(v,null,this.options.icons.down),this._addClass(v,null,c.down)),this._super(e,c)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:b(function(e){this._super(e)}),_parse:function(e){return typeof e=="string"&&e!==""&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),e===""||isNaN(e)?null:e},_format:function(e){return e===""?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return e===null?!1:e===this._adjustValue(e)},_value:function(e,c){var y;e!==""&&(y=this._parse(e),y!==null&&(c||(y=this._adjustValue(y)),e=this._format(y))),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:b(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:b(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:b(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:b(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){if(!arguments.length)return this._parse(this.element.val());b(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),t.uiBackCompat===!0&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner;/*!
 * jQuery UI Tabs 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.tabs",{version:"1.14.0",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(c){var y,w;y=c.href.replace(e,""),w=location.href.replace(e,"");try{y=decodeURIComponent(y)}catch{}try{w=decodeURIComponent(w)}catch{}return c.hash.length>1&&y===w}}(),_create:function(){var e=this,c=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,c.collapsible),this._processTabs(),c.active=this._initialActive(),Array.isArray(c.disabled)&&(c.disabled=t.uniqueSort(c.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(y){return e.tabs.index(y)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(c.active):this.active=t(),this._refresh(),this.active.length&&this.load(c.active)},_initialActive:function(){var e=this.options.active,c=this.options.collapsible,y=location.hash.substring(1);return e===null&&(y&&this.tabs.each(function(w,v){if(t(v).attr("aria-controls")===y)return e=w,!1}),e===null&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(e===null||e===-1)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),e===-1&&(e=c?!1:0)),!c&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var c=t(this.document[0].activeElement).closest("li"),y=this.tabs.index(c),w=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:y++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:w=!1,y--;break;case t.ui.keyCode.END:y=this.anchors.length-1;break;case t.ui.keyCode.HOME:y=0;break;case t.ui.keyCode.SPACE:e.preventDefault(),clearTimeout(this.activating),this._activate(y);return;case t.ui.keyCode.ENTER:e.preventDefault(),clearTimeout(this.activating),this._activate(y===this.options.active?!1:y);return;default:return}e.preventDefault(),clearTimeout(this.activating),y=this._focusNextTab(y,w),!e.ctrlKey&&!e.metaKey&&(c.attr("aria-selected","false"),this.tabs.eq(y).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",y)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){if(e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP)return this._activate(this._focusNextTab(this.options.active-1,!1)),!0;if(e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN)return this._activate(this._focusNextTab(this.options.active+1,!0)),!0},_findNextTab:function(e,c){var y=this.tabs.length-1;function w(){return e>y&&(e=0),e<0&&(e=y),e}for(;t.inArray(w(),this.options.disabled)!==-1;)e=c?e+1:e-1;return e},_focusNextTab:function(e,c){return e=this._findNextTab(e,c),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,c){if(e==="active"){this._activate(c);return}this._super(e,c),e==="collapsible"&&(this._toggleClass("ui-tabs-collapsible",null,c),!c&&this.options.active===!1&&this._activate(0)),e==="event"&&this._setupEvents(c),e==="heightStyle"&&this._setupHeightStyle(c)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,c=this.tablist.children(":has(a[href])");e.disabled=t.map(c.filter(".ui-state-disabled"),function(y){return c.index(y)}),this._processTabs(),e.active===!1||!this.anchors.length?(e.active=!1,this.active=t()):this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,c=this.tabs,y=this.anchors,w=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(v){t(this).is(".ui-state-disabled")&&v.preventDefault()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(v,o){var x,E,R,H=t(o).uniqueId().attr("id"),Y=t(o).closest("li"),Z=Y.attr("aria-controls");e._isLocal(o)?(x=o.hash,R=x.substring(1),E=e.element.find(e._sanitizeSelector(x))):(R=Y.attr("aria-controls")||t({}).uniqueId()[0].id,x="#"+R,E=e.element.find(x),E.length||(E=e._createPanel(R),E.insertAfter(e.panels[v-1]||e.tablist)),E.attr("aria-live","polite")),E.length&&(e.panels=e.panels.add(E)),Z&&Y.data("ui-tabs-aria-controls",Z),Y.attr({"aria-controls":R,"aria-labelledby":H}),E.attr("aria-labelledby",H)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),c&&(this._off(c.not(this.tabs)),this._off(y.not(this.anchors)),this._off(w.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var c,y,w;for(Array.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),w=0;y=this.tabs[w];w++)c=t(y),e===!0||t.inArray(w,e)!==-1?(c.attr("aria-disabled","true"),this._addClass(c,null,"ui-state-disabled")):(c.removeAttr("aria-disabled"),this._removeClass(c,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,e===!0)},_setupEvents:function(e){var c={};e&&t.each(e.split(" "),function(y,w){c[w]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(y){y.preventDefault()}}),this._on(this.anchors,c),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var c,y=this.element.parent();e==="fill"?(c=y.height(),c-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var w=t(this),v=w.css("position");v==="absolute"||v==="fixed"||(c-=w.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){c-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,c-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):e==="auto"&&(c=0,this.panels.each(function(){c=Math.max(c,t(this).height("").height())}).height(c))},_eventHandler:function(e){var c=this.options,y=this.active,w=t(e.currentTarget),v=w.closest("li"),o=v[0]===y[0],x=o&&c.collapsible,E=x?t():this._getPanelForTab(v),R=y.length?this._getPanelForTab(y):t(),H={oldTab:y,oldPanel:R,newTab:x?t():v,newPanel:E};e.preventDefault(),!(v.hasClass("ui-state-disabled")||v.hasClass("ui-tabs-loading")||this.running||o&&!c.collapsible||this._trigger("beforeActivate",e,H)===!1)&&(c.active=x?!1:this.tabs.index(v),this.active=o?t():v,this.xhr&&this.xhr.abort(),!R.length&&!E.length&&t.error("jQuery UI Tabs: Mismatching fragment identifier."),E.length&&this.load(this.tabs.index(v),e),this._toggle(e,H))},_toggle:function(e,c){var y=this,w=c.newPanel,v=c.oldPanel;this.running=!0;function o(){y.running=!1,y._trigger("activate",e,c)}function x(){y._addClass(c.newTab.closest("li"),"ui-tabs-active","ui-state-active"),w.length&&y.options.show?y._show(w,y.options.show,o):(w.show(),o())}v.length&&this.options.hide?this._hide(v,this.options.hide,function(){y._removeClass(c.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),x()}):(this._removeClass(c.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),v.hide(),x()),v.attr("aria-hidden","true"),c.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),w.length&&v.length?c.oldTab.attr("tabIndex",-1):w.length&&this.tabs.filter(function(){return t(this).attr("tabIndex")===0}).attr("tabIndex",-1),w.attr("aria-hidden","false"),c.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var c,y=this._findActive(e);y[0]!==this.active[0]&&(y.length||(y=this.active),c=y.find(".ui-tabs-anchor")[0],this._eventHandler({target:c,currentTarget:c,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(e){return typeof e=="string"&&(e=this.anchors.index(this.anchors.filter("[href$='"+CSS.escape(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),c=e.data("ui-tabs-aria-controls");c?e.attr("aria-controls",c).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(e){var c=this.options.disabled;c!==!1&&(e===void 0?c=!1:(e=this._getIndex(e),Array.isArray(c)?c=t.map(c,function(y){return y!==e?y:null}):c=t.map(this.tabs,function(y,w){return w!==e?w:null})),this._setOptionDisabled(c))},disable:function(e){var c=this.options.disabled;if(c!==!0){if(e===void 0)c=!0;else{if(e=this._getIndex(e),t.inArray(e,c)!==-1)return;Array.isArray(c)?c=t.merge([e],c).sort():c=[e]}this._setOptionDisabled(c)}},load:function(e,c){e=this._getIndex(e);var y=this,w=this.tabs.eq(e),v=w.find(".ui-tabs-anchor"),o=this._getPanelForTab(w),x={tab:w,panel:o},E=function(R,H){H==="abort"&&y.panels.stop(!1,!0),y._removeClass(w,"ui-tabs-loading"),o.removeAttr("aria-busy"),R===y.xhr&&delete y.xhr};this._isLocal(v[0])||(this.xhr=t.ajax(this._ajaxSettings(v,c,x)),this.xhr.statusText!=="canceled"&&(this._addClass(w,"ui-tabs-loading"),o.attr("aria-busy","true"),this.xhr.done(function(R,H,Y){o.html(R),y._trigger("load",c,x),E(Y,H)}).fail(function(R,H){E(R,H)})))},_ajaxSettings:function(e,c,y){var w=this;return{url:e.attr("href"),beforeSend:function(v,o){return w._trigger("beforeLoad",c,t.extend({jqXHR:v,ajaxSettings:o},y))}}},_getPanelForTab:function(e){var c=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+c))}}),t.uiBackCompat===!0&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs;/*!
 * jQuery UI Tooltip 1.14.0
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */t.widget("ui.tooltip",{version:"1.14.0",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title");return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,c){var y=(e.attr("aria-describedby")||"").split(/\s+/);y.push(c),e.data("ui-tooltip-id",c).attr("aria-describedby",String.prototype.trim.call(y.join(" ")))},_removeDescribedBy:function(e){var c=e.data("ui-tooltip-id"),y=(e.attr("aria-describedby")||"").split(/\s+/),w=t.inArray(c,y);w!==-1&&y.splice(w,1),e.removeData("ui-tooltip-id"),y=String.prototype.trim.call(y.join(" ")),y?e.attr("aria-describedby",y):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,c){var y=this;this._super(e,c),e==="content"&&t.each(this.tooltips,function(w,v){y._updateContent(v.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(c,y){var w=t.Event("blur");w.target=w.currentTarget=y.element[0],e.close(w,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var c=t(this);if(c.is("[title]"))return c.data("ui-tooltip-title",c.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var c=this,y=t(e?e.target:this.element).closest(this.options.items);!y.length||y.data("ui-tooltip-id")||(y.attr("title")&&y.data("ui-tooltip-title",y.attr("title")),y.data("ui-tooltip-open",!0),e&&e.type==="mouseover"&&y.parents().each(function(){var w=t(this),v;w.data("ui-tooltip-open")&&(v=t.Event("blur"),v.target=v.currentTarget=this,c.close(v,!0)),w.attr("title")&&(w.uniqueId(),c.parents[this.id]={element:this,title:w.attr("title")},w.attr("title",""))}),this._registerCloseHandlers(e,y),this._updateContent(y,e))},_updateContent:function(e,c){var y,w=this.options.content,v=this,o=c?c.type:null;if(typeof w=="string"||w.nodeType||w.jquery)return this._open(c,e,w);y=w.call(e[0],function(x){e.data("ui-tooltip-open")&&(c&&(c.type=o),v._open(c,e,x))}),y&&this._open(c,e,y)},_open:function(e,c,y){var w,v,o,x,E=t.extend({},this.options.position);if(!y)return;if(w=this._find(c),w){w.tooltip.find(".ui-tooltip-content").html(y);return}c.is("[title]")&&(e&&e.type==="mouseover"?c.attr("title",""):c.removeAttr("title")),w=this._tooltip(c),v=w.tooltip,this._addDescribedBy(c,v.attr("id")),v.find(".ui-tooltip-content").html(y),this.liveRegion.children().hide(),x=t("<div>").html(v.find(".ui-tooltip-content").html()),x.removeAttr("name").find("[name]").removeAttr("name"),x.removeAttr("id").find("[id]").removeAttr("id"),x.appendTo(this.liveRegion);function R(H){E.of=H,!v.is(":hidden")&&v.position(E)}this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:R}),R(e)):v.position(t.extend({of:c},this.options.position)),v.hide(),this._show(v,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){v.is(":visible")&&(R(E.of),clearInterval(o))},13)),this._trigger("open",e,{tooltip:v})},_registerCloseHandlers:function(e,c){var y={keyup:function(w){if(w.keyCode===t.ui.keyCode.ESCAPE){var v=t.Event(w);v.currentTarget=c[0],this.close(v,!0)}}};c[0]!==this.element[0]&&(y.remove=function(){var w=this._find(c);w&&this._removeTooltip(w.tooltip)}),(!e||e.type==="mouseover")&&(y.mouseleave="close"),(!e||e.type==="focusin")&&(y.focusout="close"),this._on(!0,c,y)},close:function(e){var c,y=this,w=t(e?e.currentTarget:this.element),v=this._find(w);if(!v){w.removeData("ui-tooltip-open");return}c=v.tooltip,!v.closing&&(clearInterval(this.delayedShow),w.data("ui-tooltip-title")&&!w.attr("title")&&w.attr("title",w.data("ui-tooltip-title")),this._removeDescribedBy(w),v.hiding=!0,c.stop(!0),this._hide(c,this.options.hide,function(){y._removeTooltip(t(this))}),w.removeData("ui-tooltip-open"),this._off(w,"mouseleave focusout keyup"),w[0]!==this.element[0]&&this._off(w,"remove"),this._off(this.document,"mousemove"),e&&e.type==="mouseleave"&&t.each(this.parents,function(o,x){t(x.element).attr("title",x.title),delete y.parents[o]}),v.closing=!0,this._trigger("close",e,{tooltip:c}),v.hiding||(v.closing=!1))},_tooltip:function(e){var c=t("<div>").attr("role","tooltip"),y=t("<div>").appendTo(c),w=c.uniqueId().attr("id");return this._addClass(y,"ui-tooltip-content"),this._addClass(c,"ui-tooltip","ui-widget ui-widget-content"),c.appendTo(this._appendTo(e)),this.tooltips[w]={element:e,tooltip:c}},_find:function(e){var c=e.data("ui-tooltip-id");return c?this.tooltips[c]:null},_removeTooltip:function(e){clearInterval(this.delayedShow),e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var c=e.closest(".ui-front, dialog");return c.length||(c=this.document[0].body),c},_destroy:function(){var e=this;t.each(this.tooltips,function(c,y){var w=t.Event("blur"),v=y.element;w.target=w.currentTarget=v[0],e.close(w,!0),t("#"+c).remove(),v.data("ui-tooltip-title")&&(v.attr("title")||v.attr("title",v.data("ui-tooltip-title")),v.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),t.uiBackCompat===!0&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),t.ui.tooltip});var lodash={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */lodash.exports,function(t,n){(function(){var l,d="4.17.21",m=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",k="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",B=500,M="__lodash_placeholder__",j=1,I=2,P=4,$=1,z=2,N=1,F=2,U=4,J=8,te=16,se=32,de=64,Q=128,ve=256,he=512,ke=30,T="...",u=800,p=16,b=1,e=2,c=3,y=1/0,w=9007199254740991,v=17976931348623157e292,o=NaN,x=4294967295,E=x-1,R=x>>>1,H=[["ary",Q],["bind",N],["bindKey",F],["curry",J],["curryRight",te],["flip",he],["partial",se],["partialRight",de],["rearg",ve]],Y="[object Arguments]",Z="[object Array]",L="[object AsyncFunction]",D="[object Boolean]",ee="[object Date]",oe="[object DOMException]",fe="[object Error]",ue="[object Function]",qe="[object GeneratorFunction]",rt="[object Map]",Ve="[object Number]",et="[object Null]",mt="[object Object]",Ye="[object Promise]",We="[object Proxy]",Xe="[object RegExp]",Ge="[object Set]",nt="[object String]",Et="[object Symbol]",Le="[object Undefined]",Oe="[object WeakMap]",$t="[object WeakSet]",dt="[object ArrayBuffer]",gt="[object DataView]",Lt="[object Float32Array]",xe="[object Float64Array]",X="[object Int8Array]",pe="[object Int16Array]",je="[object Int32Array]",$e="[object Uint8Array]",He="[object Uint8ClampedArray]",Fe="[object Uint16Array]",Me="[object Uint32Array]",Rt=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,le=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,at=/[&<>"']/g,Be=RegExp(wt.source),ot=RegExp(at.source),tt=/<%-([\s\S]+?)%>/g,kt=/<%([\s\S]+?)%>/g,Yt=/<%=([\s\S]+?)%>/g,pt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,It=/^\w*$/,Fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pt=/[\\^$.*+?()[\]{}|]/g,Ot=RegExp(Pt.source),Te=/^\s+/,me=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ne=/\{\n\/\* \[wrapped with (.+)\] \*/,_e=/,? & /,Re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,Ze=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nt=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,Mr=/^0b[01]+$/i,Xt=/^\[object .+?Constructor\]$/,Sr=/^0o[0-7]+$/i,rr=/^(?:0|[1-9]\d*)$/,er=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kr=/($^)/,vr=/['\n\r\u2028\u2029\\]/g,Pr="\\ud800-\\udfff",Tr="\\u0300-\\u036f",br="\\ufe20-\\ufe2f",Ar="\\u20d0-\\u20ff",gr=Tr+br+Ar,dr="\\u2700-\\u27bf",lr="a-z\\xdf-\\xf6\\xf8-\\xff",Kt="\\xac\\xb1\\xd7\\xf7",Bt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ft="\\u2000-\\u206f",cr=" \\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",nr="A-Z\\xc0-\\xd6\\xd8-\\xde",Vt="\\ufe0e\\ufe0f",ar=Kt+Bt+Ft+cr,qr="['’]",Vr="["+Pr+"]",Wr="["+ar+"]",Rr="["+gr+"]",bt="\\d+",Kr="["+dr+"]",Ur="["+lr+"]",ti="[^"+Pr+ar+bt+dr+lr+nr+"]",ae="\\ud83c[\\udffb-\\udfff]",ye="(?:"+Rr+"|"+ae+")",Ce="[^"+Pr+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Je="["+nr+"]",ge="\\u200d",we="(?:"+Ur+"|"+ti+")",Ae="(?:"+Je+"|"+ti+")",Ue="(?:"+qr+"(?:d|ll|m|re|s|t|ve))?",ht="(?:"+qr+"(?:D|LL|M|RE|S|T|VE))?",_t=ye+"?",Ct="["+Vt+"]?",At="(?:"+ge+"(?:"+[Ce,Pe,ze].join("|")+")"+Ct+_t+")*",Qt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ir="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tr=Ct+_t+At,Zt="(?:"+[Kr,Pe,ze].join("|")+")"+tr,Br="(?:"+[Ce+Rr+"?",Rr,Pe,ze,Vr].join("|")+")",pr=RegExp(qr,"g"),_r=RegExp(Rr,"g"),fr=RegExp(ae+"(?="+ae+")|"+Br+tr,"g"),Gr=RegExp([Je+"?"+Ur+"+"+Ue+"(?="+[Wr,Je,"$"].join("|")+")",Ae+"+"+ht+"(?="+[Wr,Je+we,"$"].join("|")+")",Je+"?"+we+"+"+Ue,Je+"+"+ht,ir,Qt,bt,Zt].join("|"),"g"),Nr=RegExp("["+ge+Pr+gr+Vt+"]"),Zr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Sn=["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"],qn=-1,ii={};ii[Lt]=ii[xe]=ii[X]=ii[pe]=ii[je]=ii[$e]=ii[He]=ii[Fe]=ii[Me]=!0,ii[Y]=ii[Z]=ii[dt]=ii[D]=ii[gt]=ii[ee]=ii[fe]=ii[ue]=ii[rt]=ii[Ve]=ii[mt]=ii[Xe]=ii[Ge]=ii[nt]=ii[Oe]=!1;var si={};si[Y]=si[Z]=si[dt]=si[gt]=si[D]=si[ee]=si[Lt]=si[xe]=si[X]=si[pe]=si[je]=si[rt]=si[Ve]=si[mt]=si[Xe]=si[Ge]=si[nt]=si[Et]=si[$e]=si[He]=si[Fe]=si[Me]=!0,si[fe]=si[ue]=si[Oe]=!1;var vn={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},on={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Hi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xi=parseFloat,Kn=parseInt,ta=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ma=typeof self=="object"&&self&&self.Object===Object&&self,yi=ta||ma||Function("return this")(),Rn=n&&!n.nodeType&&n,Ui=Rn&&!0&&t&&!t.nodeType&&t,ra=Ui&&Ui.exports===Rn,Wi=ra&&ta.process,Bi=function(){try{var st=Ui&&Ui.require&&Ui.require("util").types;return st||Wi&&Wi.binding&&Wi.binding("util")}catch{}}(),V=Bi&&Bi.isArrayBuffer,ie=Bi&&Bi.isDate,be=Bi&&Bi.isMap,Ee=Bi&&Bi.isRegExp,Ie=Bi&&Bi.isSet,De=Bi&&Bi.isTypedArray;function Ke(st,jt,Mt){switch(Mt.length){case 0:return st.call(jt);case 1:return st.call(jt,Mt[0]);case 2:return st.call(jt,Mt[0],Mt[1]);case 3:return st.call(jt,Mt[0],Mt[1],Mt[2])}return st.apply(jt,Mt)}function St(st,jt,Mt,ur){for(var yr=-1,Lr=st==null?0:st.length;++yr<Lr;){var Or=st[yr];jt(ur,Or,Mt(Or),st)}return ur}function vt(st,jt){for(var Mt=-1,ur=st==null?0:st.length;++Mt<ur&&jt(st[Mt],Mt,st)!==!1;);return st}function Dt(st,jt){for(var Mt=st==null?0:st.length;Mt--&&jt(st[Mt],Mt,st)!==!1;);return st}function Jt(st,jt){for(var Mt=-1,ur=st==null?0:st.length;++Mt<ur;)if(!jt(st[Mt],Mt,st))return!1;return!0}function or(st,jt){for(var Mt=-1,ur=st==null?0:st.length,yr=0,Lr=[];++Mt<ur;){var Or=st[Mt];jt(Or,Mt,st)&&(Lr[yr++]=Or)}return Lr}function Wt(st,jt){var Mt=st==null?0:st.length;return!!Mt&&wi(st,jt,0)>-1}function jr(st,jt,Mt){for(var ur=-1,yr=st==null?0:st.length;++ur<yr;)if(Mt(jt,st[ur]))return!0;return!1}function Dr(st,jt){for(var Mt=-1,ur=st==null?0:st.length,yr=Array(ur);++Mt<ur;)yr[Mt]=jt(st[Mt],Mt,st);return yr}function ni(st,jt){for(var Mt=-1,ur=jt.length,yr=st.length;++Mt<ur;)st[yr+Mt]=jt[Mt];return st}function ri(st,jt,Mt,ur){var yr=-1,Lr=st==null?0:st.length;for(ur&&Lr&&(Mt=st[++yr]);++yr<Lr;)Mt=jt(Mt,st[yr],yr,st);return Mt}function Ei(st,jt,Mt,ur){var yr=st==null?0:st.length;for(ur&&yr&&(Mt=st[--yr]);yr--;)Mt=jt(Mt,st[yr],yr,st);return Mt}function xi(st,jt){for(var Mt=-1,ur=st==null?0:st.length;++Mt<ur;)if(jt(st[Mt],Mt,st))return!0;return!1}var un=In("length");function fn(st){return st.split("")}function hi(st){return st.match(Re)||[]}function Mn(st,jt,Mt){var ur;return Mt(st,function(yr,Lr,Or){if(jt(yr,Lr,Or))return ur=Lr,!1}),ur}function di(st,jt,Mt,ur){for(var yr=st.length,Lr=Mt+(ur?1:-1);ur?Lr--:++Lr<yr;)if(jt(st[Lr],Lr,st))return Lr;return-1}function wi(st,jt,Mt){return jt===jt?js(st,jt,Mt):di(st,va,Mt)}function ia(st,jt,Mt,ur){for(var yr=Mt-1,Lr=st.length;++yr<Lr;)if(ur(st[yr],jt))return yr;return-1}function va(st){return st!==st}function Ji(st,jt){var Mt=st==null?0:st.length;return Mt?Ri(st,jt)/Mt:o}function In(st){return function(jt){return jt==null?l:jt[st]}}function Ki(st){return function(jt){return st==null?l:st[jt]}}function gn(st,jt,Mt,ur,yr){return yr(st,function(Lr,Or,$r){Mt=ur?(ur=!1,Lr):jt(Mt,Lr,Or,$r)}),Mt}function En(st,jt){var Mt=st.length;for(st.sort(jt);Mt--;)st[Mt]=st[Mt].value;return st}function Ri(st,jt){for(var Mt,ur=-1,yr=st.length;++ur<yr;){var Lr=jt(st[ur]);Lr!==l&&(Mt=Mt===l?Lr:Mt+Lr)}return Mt}function na(st,jt){for(var Mt=-1,ur=Array(st);++Mt<st;)ur[Mt]=jt(Mt);return ur}function yn(st,jt){return Dr(jt,function(Mt){return[Mt,st[Mt]]})}function ln(st){return st&&st.slice(0,Ka(st)+1).replace(Te,"")}function Di(st){return function(jt){return st(jt)}}function Aa(st,jt){return Dr(jt,function(Mt){return st[Mt]})}function aa(st,jt){return st.has(jt)}function gi(st,jt){for(var Mt=-1,ur=st.length;++Mt<ur&&wi(jt,st[Mt],0)>-1;);return Mt}function sa(st,jt){for(var Mt=st.length;Mt--&&wi(jt,st[Mt],0)>-1;);return Mt}function en(st,jt){for(var Mt=st.length,ur=0;Mt--;)st[Mt]===jt&&++ur;return ur}var Vn=Ki(vn),As=Ki(on);function Cs(st){return"\\"+Hi[st]}function Wa(st,jt){return st==null?l:st[jt]}function Vi(st){return Nr.test(st)}function Ca(st){return Zr.test(st)}function An(st){for(var jt,Mt=[];!(jt=st.next()).done;)Mt.push(jt.value);return Mt}function ga(st){var jt=-1,Mt=Array(st.size);return st.forEach(function(ur,yr){Mt[++jt]=[yr,ur]}),Mt}function Gn(st,jt){return function(Mt){return st(jt(Mt))}}function tn(st,jt){for(var Mt=-1,ur=st.length,yr=0,Lr=[];++Mt<ur;){var Or=st[Mt];(Or===jt||Or===M)&&(st[Mt]=M,Lr[yr++]=Mt)}return Lr}function $n(st){var jt=-1,Mt=Array(st.size);return st.forEach(function(ur){Mt[++jt]=ur}),Mt}function ja(st){var jt=-1,Mt=Array(st.size);return st.forEach(function(ur){Mt[++jt]=[ur,ur]}),Mt}function js(st,jt,Mt){for(var ur=Mt-1,yr=st.length;++ur<yr;)if(st[ur]===jt)return ur;return-1}function ya(st,jt,Mt){for(var ur=Mt+1;ur--;)if(st[ur]===jt)return ur;return ur}function Cn(st){return Vi(st)?Va(st):un(st)}function Li(st){return Vi(st)?ut(st):fn(st)}function Ka(st){for(var jt=st.length;jt--&&me.test(st.charAt(jt)););return jt}var Ta=Ki(Bn);function Va(st){for(var jt=fr.lastIndex=0;fr.test(st);)++jt;return jt}function ut(st){return st.match(fr)||[]}function qt(st){return st.match(Gr)||[]}var Ht=function st(jt){jt=jt==null?yi:Gt.defaults(yi.Object(),jt,Gt.pick(yi,Sn));var Mt=jt.Array,ur=jt.Date,yr=jt.Error,Lr=jt.Function,Or=jt.Math,$r=jt.Object,oi=jt.RegExp,Qr=jt.String,li=jt.TypeError,Ai=Mt.prototype,Ti=Lr.prototype,Ci=$r.prototype,Oi=jt["__core-js_shared__"],wn=Ti.toString,ei=Ci.hasOwnProperty,pf=0,So=function(){var C=/[^.]+$/.exec(Oi&&Oi.keys&&Oi.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),Ga=Ci.toString,mf=wn.call($r),vf=yi._,gf=oi("^"+wn.call(ei).replace(Pt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qa=ra?jt.Buffer:l,Qn=jt.Symbol,Za=jt.Uint8Array,Mo=Qa?Qa.allocUnsafe:l,Ya=Gn($r.getPrototypeOf,$r),Eo=$r.create,Ao=Ci.propertyIsEnumerable,Xa=Ai.splice,Co=Qn?Qn.isConcatSpreadable:l,Pa=Qn?Qn.iterator:l,oa=Qn?Qn.toStringTag:l,Ja=function(){try{var C=ha($r,"defineProperty");return C({},"",{}),C}catch{}}(),yf=jt.clearTimeout!==yi.clearTimeout&&jt.clearTimeout,bf=ur&&ur.now!==yi.Date.now&&ur.now,wf=jt.setTimeout!==yi.setTimeout&&jt.setTimeout,es=Or.ceil,ts=Or.floor,Ts=$r.getOwnPropertySymbols,xf=Qa?Qa.isBuffer:l,jo=jt.isFinite,_f=Ai.join,kf=Gn($r.keys,$r),ji=Or.max,Ii=Or.min,Sf=ur.now,Mf=jt.parseInt,To=Or.random,Ef=Ai.reverse,Ps=ha(jt,"DataView"),qa=ha(jt,"Map"),qs=ha(jt,"Promise"),ba=ha(jt,"Set"),Ba=ha(jt,"WeakMap"),Ra=ha($r,"create"),rs=Ba&&new Ba,wa={},Af=da(Ps),Cf=da(qa),jf=da(qs),Tf=da(ba),Pf=da(Ba),is=Qn?Qn.prototype:l,Ia=is?is.valueOf:l,Po=is?is.toString:l;function Qe(C){if(ki(C)&&!ai(C)&&!(C instanceof mi)){if(C instanceof cn)return C;if(ei.call(C,"__wrapped__"))return qu(C)}return new cn(C)}var xa=function(){function C(){}return function(O){if(!_i(O))return{};if(Eo)return Eo(O);C.prototype=O;var re=new C;return C.prototype=l,re}}();function ns(){}function cn(C,O){this.__wrapped__=C,this.__actions__=[],this.__chain__=!!O,this.__index__=0,this.__values__=l}Qe.templateSettings={escape:tt,evaluate:kt,interpolate:Yt,variable:"",imports:{_:Qe}},Qe.prototype=ns.prototype,Qe.prototype.constructor=Qe,cn.prototype=xa(ns.prototype),cn.prototype.constructor=cn;function mi(C){this.__wrapped__=C,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=x,this.__views__=[]}function qf(){var C=new mi(this.__wrapped__);return C.__actions__=Gi(this.__actions__),C.__dir__=this.__dir__,C.__filtered__=this.__filtered__,C.__iteratees__=Gi(this.__iteratees__),C.__takeCount__=this.__takeCount__,C.__views__=Gi(this.__views__),C}function Bf(){if(this.__filtered__){var C=new mi(this);C.__dir__=-1,C.__filtered__=!0}else C=this.clone(),C.__dir__*=-1;return C}function Rf(){var C=this.__wrapped__.value(),O=this.__dir__,re=ai(C),Se=O<0,Ne=re?C.length:0,it=Ql(0,Ne,this.__views__),xt=it.start,Tt=it.end,zt=Tt-xt,wr=Se?Tt:xt-1,xr=this.__iteratees__,Er=xr.length,Ir=0,Hr=Ii(zt,this.__takeCount__);if(!re||!Se&&Ne==zt&&Hr==zt)return tu(C,this.__actions__);var Xr=[];e:for(;zt--&&Ir<Hr;){wr+=O;for(var fi=-1,Jr=C[wr];++fi<Er;){var pi=xr[fi],vi=pi.iteratee,an=pi.type,Ni=vi(Jr);if(an==e)Jr=Ni;else if(!Ni){if(an==b)continue e;break e}}Xr[Ir++]=Jr}return Xr}mi.prototype=xa(ns.prototype),mi.prototype.constructor=mi;function ua(C){var O=-1,re=C==null?0:C.length;for(this.clear();++O<re;){var Se=C[O];this.set(Se[0],Se[1])}}function If(){this.__data__=Ra?Ra(null):{},this.size=0}function $f(C){var O=this.has(C)&&delete this.__data__[C];return this.size-=O?1:0,O}function Df(C){var O=this.__data__;if(Ra){var re=O[C];return re===A?l:re}return ei.call(O,C)?O[C]:l}function Lf(C){var O=this.__data__;return Ra?O[C]!==l:ei.call(O,C)}function Of(C,O){var re=this.__data__;return this.size+=this.has(C)?0:1,re[C]=Ra&&O===l?A:O,this}ua.prototype.clear=If,ua.prototype.delete=$f,ua.prototype.get=Df,ua.prototype.has=Lf,ua.prototype.set=Of;function Dn(C){var O=-1,re=C==null?0:C.length;for(this.clear();++O<re;){var Se=C[O];this.set(Se[0],Se[1])}}function Ff(){this.__data__=[],this.size=0}function zf(C){var O=this.__data__,re=as(O,C);if(re<0)return!1;var Se=O.length-1;return re==Se?O.pop():Xa.call(O,re,1),--this.size,!0}function Nf(C){var O=this.__data__,re=as(O,C);return re<0?l:O[re][1]}function Hf(C){return as(this.__data__,C)>-1}function Uf(C,O){var re=this.__data__,Se=as(re,C);return Se<0?(++this.size,re.push([C,O])):re[Se][1]=O,this}Dn.prototype.clear=Ff,Dn.prototype.delete=zf,Dn.prototype.get=Nf,Dn.prototype.has=Hf,Dn.prototype.set=Uf;function Ln(C){var O=-1,re=C==null?0:C.length;for(this.clear();++O<re;){var Se=C[O];this.set(Se[0],Se[1])}}function Wf(){this.size=0,this.__data__={hash:new ua,map:new(qa||Dn),string:new ua}}function Kf(C){var O=gs(this,C).delete(C);return this.size-=O?1:0,O}function Vf(C){return gs(this,C).get(C)}function Gf(C){return gs(this,C).has(C)}function Qf(C,O){var re=gs(this,C),Se=re.size;return re.set(C,O),this.size+=re.size==Se?0:1,this}Ln.prototype.clear=Wf,Ln.prototype.delete=Kf,Ln.prototype.get=Vf,Ln.prototype.has=Gf,Ln.prototype.set=Qf;function fa(C){var O=-1,re=C==null?0:C.length;for(this.__data__=new Ln;++O<re;)this.add(C[O])}function Zf(C){return this.__data__.set(C,A),this}function Yf(C){return this.__data__.has(C)}fa.prototype.add=fa.prototype.push=Zf,fa.prototype.has=Yf;function xn(C){var O=this.__data__=new Dn(C);this.size=O.size}function Xf(){this.__data__=new Dn,this.size=0}function Jf(C){var O=this.__data__,re=O.delete(C);return this.size=O.size,re}function el(C){return this.__data__.get(C)}function tl(C){return this.__data__.has(C)}function rl(C,O){var re=this.__data__;if(re instanceof Dn){var Se=re.__data__;if(!qa||Se.length<m-1)return Se.push([C,O]),this.size=++re.size,this;re=this.__data__=new Ln(Se)}return re.set(C,O),this.size=re.size,this}xn.prototype.clear=Xf,xn.prototype.delete=Jf,xn.prototype.get=el,xn.prototype.has=tl,xn.prototype.set=rl;function qo(C,O){var re=ai(C),Se=!re&&pa(C),Ne=!re&&!Se&&ea(C),it=!re&&!Se&&!Ne&&Ma(C),xt=re||Se||Ne||it,Tt=xt?na(C.length,Qr):[],zt=Tt.length;for(var wr in C)(O||ei.call(C,wr))&&!(xt&&(wr=="length"||Ne&&(wr=="offset"||wr=="parent")||it&&(wr=="buffer"||wr=="byteLength"||wr=="byteOffset")||Nn(wr,zt)))&&Tt.push(wr);return Tt}function Bo(C){var O=C.length;return O?C[Hs(0,O-1)]:l}function il(C,O){return ys(Gi(C),la(O,0,C.length))}function nl(C){return ys(Gi(C))}function Bs(C,O,re){(re!==l&&!_n(C[O],re)||re===l&&!(O in C))&&On(C,O,re)}function $a(C,O,re){var Se=C[O];(!(ei.call(C,O)&&_n(Se,re))||re===l&&!(O in C))&&On(C,O,re)}function as(C,O){for(var re=C.length;re--;)if(_n(C[re][0],O))return re;return-1}function al(C,O,re,Se){return Zn(C,function(Ne,it,xt){O(Se,Ne,re(Ne),xt)}),Se}function Ro(C,O){return C&&Tn(O,Pi(O),C)}function ol(C,O){return C&&Tn(O,Zi(O),C)}function On(C,O,re){O=="__proto__"&&Ja?Ja(C,O,{configurable:!0,enumerable:!0,value:re,writable:!0}):C[O]=re}function Rs(C,O){for(var re=-1,Se=O.length,Ne=Mt(Se),it=C==null;++re<Se;)Ne[re]=it?l:mo(C,O[re]);return Ne}function la(C,O,re){return C===C&&(re!==l&&(C=C<=re?C:re),O!==l&&(C=C>=O?C:O)),C}function hn(C,O,re,Se,Ne,it){var xt,Tt=O&j,zt=O&I,wr=O&P;if(re&&(xt=Ne?re(C,Se,Ne,it):re(C)),xt!==l)return xt;if(!_i(C))return C;var xr=ai(C);if(xr){if(xt=Yl(C),!Tt)return Gi(C,xt)}else{var Er=$i(C),Ir=Er==ue||Er==qe;if(ea(C))return nu(C,Tt);if(Er==mt||Er==Y||Ir&&!Ne){if(xt=zt||Ir?{}:ku(C),!Tt)return zt?Ol(C,ol(xt,C)):Ll(C,Ro(xt,C))}else{if(!si[Er])return Ne?C:{};xt=Xl(C,Er,Tt)}}it||(it=new xn);var Hr=it.get(C);if(Hr)return Hr;it.set(C,xt),Xu(C)?C.forEach(function(Jr){xt.add(hn(Jr,O,re,Jr,C,it))}):Zu(C)&&C.forEach(function(Jr,pi){xt.set(pi,hn(Jr,O,re,pi,C,it))});var Xr=wr?zt?eo:Js:zt?Zi:Pi,fi=xr?l:Xr(C);return vt(fi||C,function(Jr,pi){fi&&(pi=Jr,Jr=C[pi]),$a(xt,pi,hn(Jr,O,re,pi,C,it))}),xt}function ul(C){var O=Pi(C);return function(re){return Io(re,C,O)}}function Io(C,O,re){var Se=re.length;if(C==null)return!Se;for(C=$r(C);Se--;){var Ne=re[Se],it=O[Ne],xt=C[Ne];if(xt===l&&!(Ne in C)||!it(xt))return!1}return!0}function $o(C,O,re){if(typeof C!="function")throw new li(S);return Ha(function(){C.apply(l,re)},O)}function Da(C,O,re,Se){var Ne=-1,it=Wt,xt=!0,Tt=C.length,zt=[],wr=O.length;if(!Tt)return zt;re&&(O=Dr(O,Di(re))),Se?(it=jr,xt=!1):O.length>=m&&(it=aa,xt=!1,O=new fa(O));e:for(;++Ne<Tt;){var xr=C[Ne],Er=re==null?xr:re(xr);if(xr=Se||xr!==0?xr:0,xt&&Er===Er){for(var Ir=wr;Ir--;)if(O[Ir]===Er)continue e;zt.push(xr)}else it(O,Er,Se)||zt.push(xr)}return zt}var Zn=fu(jn),Do=fu($s,!0);function fl(C,O){var re=!0;return Zn(C,function(Se,Ne,it){return re=!!O(Se,Ne,it),re}),re}function ss(C,O,re){for(var Se=-1,Ne=C.length;++Se<Ne;){var it=C[Se],xt=O(it);if(xt!=null&&(Tt===l?xt===xt&&!nn(xt):re(xt,Tt)))var Tt=xt,zt=it}return zt}function ll(C,O,re,Se){var Ne=C.length;for(re=ui(re),re<0&&(re=-re>Ne?0:Ne+re),Se=Se===l||Se>Ne?Ne:ui(Se),Se<0&&(Se+=Ne),Se=re>Se?0:ef(Se);re<Se;)C[re++]=O;return C}function Lo(C,O){var re=[];return Zn(C,function(Se,Ne,it){O(Se,Ne,it)&&re.push(Se)}),re}function qi(C,O,re,Se,Ne){var it=-1,xt=C.length;for(re||(re=tc),Ne||(Ne=[]);++it<xt;){var Tt=C[it];O>0&&re(Tt)?O>1?qi(Tt,O-1,re,Se,Ne):ni(Ne,Tt):Se||(Ne[Ne.length]=Tt)}return Ne}var Is=lu(),Oo=lu(!0);function jn(C,O){return C&&Is(C,O,Pi)}function $s(C,O){return C&&Oo(C,O,Pi)}function os(C,O){return or(O,function(re){return Hn(C[re])})}function ca(C,O){O=Xn(O,C);for(var re=0,Se=O.length;C!=null&&re<Se;)C=C[Pn(O[re++])];return re&&re==Se?C:l}function Fo(C,O,re){var Se=O(C);return ai(C)?Se:ni(Se,re(C))}function Fi(C){return C==null?C===l?Le:et:oa&&oa in $r(C)?Gl(C):uc(C)}function Ds(C,O){return C>O}function cl(C,O){return C!=null&&ei.call(C,O)}function dl(C,O){return C!=null&&O in $r(C)}function pl(C,O,re){return C>=Ii(O,re)&&C<ji(O,re)}function Ls(C,O,re){for(var Se=re?jr:Wt,Ne=C[0].length,it=C.length,xt=it,Tt=Mt(it),zt=1/0,wr=[];xt--;){var xr=C[xt];xt&&O&&(xr=Dr(xr,Di(O))),zt=Ii(xr.length,zt),Tt[xt]=!re&&(O||Ne>=120&&xr.length>=120)?new fa(xt&&xr):l}xr=C[0];var Er=-1,Ir=Tt[0];e:for(;++Er<Ne&&wr.length<zt;){var Hr=xr[Er],Xr=O?O(Hr):Hr;if(Hr=re||Hr!==0?Hr:0,!(Ir?aa(Ir,Xr):Se(wr,Xr,re))){for(xt=it;--xt;){var fi=Tt[xt];if(!(fi?aa(fi,Xr):Se(C[xt],Xr,re)))continue e}Ir&&Ir.push(Xr),wr.push(Hr)}}return wr}function ml(C,O,re,Se){return jn(C,function(Ne,it,xt){O(Se,re(Ne),it,xt)}),Se}function La(C,O,re){O=Xn(O,C),C=Au(C,O);var Se=C==null?C:C[Pn(pn(O))];return Se==null?l:Ke(Se,C,re)}function zo(C){return ki(C)&&Fi(C)==Y}function vl(C){return ki(C)&&Fi(C)==dt}function gl(C){return ki(C)&&Fi(C)==ee}function Oa(C,O,re,Se,Ne){return C===O?!0:C==null||O==null||!ki(C)&&!ki(O)?C!==C&&O!==O:yl(C,O,re,Se,Oa,Ne)}function yl(C,O,re,Se,Ne,it){var xt=ai(C),Tt=ai(O),zt=xt?Z:$i(C),wr=Tt?Z:$i(O);zt=zt==Y?mt:zt,wr=wr==Y?mt:wr;var xr=zt==mt,Er=wr==mt,Ir=zt==wr;if(Ir&&ea(C)){if(!ea(O))return!1;xt=!0,xr=!1}if(Ir&&!xr)return it||(it=new xn),xt||Ma(C)?wu(C,O,re,Se,Ne,it):Kl(C,O,zt,re,Se,Ne,it);if(!(re&$)){var Hr=xr&&ei.call(C,"__wrapped__"),Xr=Er&&ei.call(O,"__wrapped__");if(Hr||Xr){var fi=Hr?C.value():C,Jr=Xr?O.value():O;return it||(it=new xn),Ne(fi,Jr,re,Se,it)}}return Ir?(it||(it=new xn),Vl(C,O,re,Se,Ne,it)):!1}function bl(C){return ki(C)&&$i(C)==rt}function Os(C,O,re,Se){var Ne=re.length,it=Ne,xt=!Se;if(C==null)return!it;for(C=$r(C);Ne--;){var Tt=re[Ne];if(xt&&Tt[2]?Tt[1]!==C[Tt[0]]:!(Tt[0]in C))return!1}for(;++Ne<it;){Tt=re[Ne];var zt=Tt[0],wr=C[zt],xr=Tt[1];if(xt&&Tt[2]){if(wr===l&&!(zt in C))return!1}else{var Er=new xn;if(Se)var Ir=Se(wr,xr,zt,C,O,Er);if(!(Ir===l?Oa(xr,wr,$|z,Se,Er):Ir))return!1}}return!0}function No(C){if(!_i(C)||ic(C))return!1;var O=Hn(C)?gf:Xt;return O.test(da(C))}function wl(C){return ki(C)&&Fi(C)==Xe}function xl(C){return ki(C)&&$i(C)==Ge}function _l(C){return ki(C)&&Ss(C.length)&&!!ii[Fi(C)]}function Ho(C){return typeof C=="function"?C:C==null?Yi:typeof C=="object"?ai(C)?Ko(C[0],C[1]):Wo(C):hf(C)}function Fs(C){if(!Na(C))return kf(C);var O=[];for(var re in $r(C))ei.call(C,re)&&re!="constructor"&&O.push(re);return O}function kl(C){if(!_i(C))return oc(C);var O=Na(C),re=[];for(var Se in C)Se=="constructor"&&(O||!ei.call(C,Se))||re.push(Se);return re}function zs(C,O){return C<O}function Uo(C,O){var re=-1,Se=Qi(C)?Mt(C.length):[];return Zn(C,function(Ne,it,xt){Se[++re]=O(Ne,it,xt)}),Se}function Wo(C){var O=ro(C);return O.length==1&&O[0][2]?Mu(O[0][0],O[0][1]):function(re){return re===C||Os(re,C,O)}}function Ko(C,O){return no(C)&&Su(O)?Mu(Pn(C),O):function(re){var Se=mo(re,C);return Se===l&&Se===O?vo(re,C):Oa(O,Se,$|z)}}function us(C,O,re,Se,Ne){C!==O&&Is(O,function(it,xt){if(Ne||(Ne=new xn),_i(it))Sl(C,O,xt,re,us,Se,Ne);else{var Tt=Se?Se(so(C,xt),it,xt+"",C,O,Ne):l;Tt===l&&(Tt=it),Bs(C,xt,Tt)}},Zi)}function Sl(C,O,re,Se,Ne,it,xt){var Tt=so(C,re),zt=so(O,re),wr=xt.get(zt);if(wr){Bs(C,re,wr);return}var xr=it?it(Tt,zt,re+"",C,O,xt):l,Er=xr===l;if(Er){var Ir=ai(zt),Hr=!Ir&&ea(zt),Xr=!Ir&&!Hr&&Ma(zt);xr=zt,Ir||Hr||Xr?ai(Tt)?xr=Tt:Si(Tt)?xr=Gi(Tt):Hr?(Er=!1,xr=nu(zt,!0)):Xr?(Er=!1,xr=au(zt,!0)):xr=[]:Ua(zt)||pa(zt)?(xr=Tt,pa(Tt)?xr=tf(Tt):(!_i(Tt)||Hn(Tt))&&(xr=ku(zt))):Er=!1}Er&&(xt.set(zt,xr),Ne(xr,zt,Se,it,xt),xt.delete(zt)),Bs(C,re,xr)}function Vo(C,O){var re=C.length;if(re)return O+=O<0?re:0,Nn(O,re)?C[O]:l}function Go(C,O,re){O.length?O=Dr(O,function(it){return ai(it)?function(xt){return ca(xt,it.length===1?it[0]:it)}:it}):O=[Yi];var Se=-1;O=Dr(O,Di(Yr()));var Ne=Uo(C,function(it,xt,Tt){var zt=Dr(O,function(wr){return wr(it)});return{criteria:zt,index:++Se,value:it}});return En(Ne,function(it,xt){return Dl(it,xt,re)})}function Ml(C,O){return Qo(C,O,function(re,Se){return vo(C,Se)})}function Qo(C,O,re){for(var Se=-1,Ne=O.length,it={};++Se<Ne;){var xt=O[Se],Tt=ca(C,xt);re(Tt,xt)&&Fa(it,Xn(xt,C),Tt)}return it}function El(C){return function(O){return ca(O,C)}}function Ns(C,O,re,Se){var Ne=Se?ia:wi,it=-1,xt=O.length,Tt=C;for(C===O&&(O=Gi(O)),re&&(Tt=Dr(C,Di(re)));++it<xt;)for(var zt=0,wr=O[it],xr=re?re(wr):wr;(zt=Ne(Tt,xr,zt,Se))>-1;)Tt!==C&&Xa.call(Tt,zt,1),Xa.call(C,zt,1);return C}function Zo(C,O){for(var re=C?O.length:0,Se=re-1;re--;){var Ne=O[re];if(re==Se||Ne!==it){var it=Ne;Nn(Ne)?Xa.call(C,Ne,1):Ks(C,Ne)}}return C}function Hs(C,O){return C+ts(To()*(O-C+1))}function Al(C,O,re,Se){for(var Ne=-1,it=ji(es((O-C)/(re||1)),0),xt=Mt(it);it--;)xt[Se?it:++Ne]=C,C+=re;return xt}function Us(C,O){var re="";if(!C||O<1||O>w)return re;do O%2&&(re+=C),O=ts(O/2),O&&(C+=C);while(O);return re}function ci(C,O){return oo(Eu(C,O,Yi),C+"")}function Cl(C){return Bo(Ea(C))}function jl(C,O){var re=Ea(C);return ys(re,la(O,0,re.length))}function Fa(C,O,re,Se){if(!_i(C))return C;O=Xn(O,C);for(var Ne=-1,it=O.length,xt=it-1,Tt=C;Tt!=null&&++Ne<it;){var zt=Pn(O[Ne]),wr=re;if(zt==="__proto__"||zt==="constructor"||zt==="prototype")return C;if(Ne!=xt){var xr=Tt[zt];wr=Se?Se(xr,zt,Tt):l,wr===l&&(wr=_i(xr)?xr:Nn(O[Ne+1])?[]:{})}$a(Tt,zt,wr),Tt=Tt[zt]}return C}var Yo=rs?function(C,O){return rs.set(C,O),C}:Yi,Tl=Ja?function(C,O){return Ja(C,"toString",{configurable:!0,enumerable:!1,value:yo(O),writable:!0})}:Yi;function Pl(C){return ys(Ea(C))}function dn(C,O,re){var Se=-1,Ne=C.length;O<0&&(O=-O>Ne?0:Ne+O),re=re>Ne?Ne:re,re<0&&(re+=Ne),Ne=O>re?0:re-O>>>0,O>>>=0;for(var it=Mt(Ne);++Se<Ne;)it[Se]=C[Se+O];return it}function ql(C,O){var re;return Zn(C,function(Se,Ne,it){return re=O(Se,Ne,it),!re}),!!re}function fs(C,O,re){var Se=0,Ne=C==null?Se:C.length;if(typeof O=="number"&&O===O&&Ne<=R){for(;Se<Ne;){var it=Se+Ne>>>1,xt=C[it];xt!==null&&!nn(xt)&&(re?xt<=O:xt<O)?Se=it+1:Ne=it}return Ne}return Ws(C,O,Yi,re)}function Ws(C,O,re,Se){var Ne=0,it=C==null?0:C.length;if(it===0)return 0;O=re(O);for(var xt=O!==O,Tt=O===null,zt=nn(O),wr=O===l;Ne<it;){var xr=ts((Ne+it)/2),Er=re(C[xr]),Ir=Er!==l,Hr=Er===null,Xr=Er===Er,fi=nn(Er);if(xt)var Jr=Se||Xr;else wr?Jr=Xr&&(Se||Ir):Tt?Jr=Xr&&Ir&&(Se||!Hr):zt?Jr=Xr&&Ir&&!Hr&&(Se||!fi):Hr||fi?Jr=!1:Jr=Se?Er<=O:Er<O;Jr?Ne=xr+1:it=xr}return Ii(it,E)}function Xo(C,O){for(var re=-1,Se=C.length,Ne=0,it=[];++re<Se;){var xt=C[re],Tt=O?O(xt):xt;if(!re||!_n(Tt,zt)){var zt=Tt;it[Ne++]=xt===0?0:xt}}return it}function Jo(C){return typeof C=="number"?C:nn(C)?o:+C}function rn(C){if(typeof C=="string")return C;if(ai(C))return Dr(C,rn)+"";if(nn(C))return Po?Po.call(C):"";var O=C+"";return O=="0"&&1/C==-y?"-0":O}function Yn(C,O,re){var Se=-1,Ne=Wt,it=C.length,xt=!0,Tt=[],zt=Tt;if(re)xt=!1,Ne=jr;else if(it>=m){var wr=O?null:Ul(C);if(wr)return $n(wr);xt=!1,Ne=aa,zt=new fa}else zt=O?[]:Tt;e:for(;++Se<it;){var xr=C[Se],Er=O?O(xr):xr;if(xr=re||xr!==0?xr:0,xt&&Er===Er){for(var Ir=zt.length;Ir--;)if(zt[Ir]===Er)continue e;O&&zt.push(Er),Tt.push(xr)}else Ne(zt,Er,re)||(zt!==Tt&&zt.push(Er),Tt.push(xr))}return Tt}function Ks(C,O){return O=Xn(O,C),C=Au(C,O),C==null||delete C[Pn(pn(O))]}function eu(C,O,re,Se){return Fa(C,O,re(ca(C,O)),Se)}function ls(C,O,re,Se){for(var Ne=C.length,it=Se?Ne:-1;(Se?it--:++it<Ne)&&O(C[it],it,C););return re?dn(C,Se?0:it,Se?it+1:Ne):dn(C,Se?it+1:0,Se?Ne:it)}function tu(C,O){var re=C;return re instanceof mi&&(re=re.value()),ri(O,function(Se,Ne){return Ne.func.apply(Ne.thisArg,ni([Se],Ne.args))},re)}function Vs(C,O,re){var Se=C.length;if(Se<2)return Se?Yn(C[0]):[];for(var Ne=-1,it=Mt(Se);++Ne<Se;)for(var xt=C[Ne],Tt=-1;++Tt<Se;)Tt!=Ne&&(it[Ne]=Da(it[Ne]||xt,C[Tt],O,re));return Yn(qi(it,1),O,re)}function ru(C,O,re){for(var Se=-1,Ne=C.length,it=O.length,xt={};++Se<Ne;){var Tt=Se<it?O[Se]:l;re(xt,C[Se],Tt)}return xt}function Gs(C){return Si(C)?C:[]}function Qs(C){return typeof C=="function"?C:Yi}function Xn(C,O){return ai(C)?C:no(C,O)?[C]:Pu(bi(C))}var Bl=ci;function Jn(C,O,re){var Se=C.length;return re=re===l?Se:re,!O&&re>=Se?C:dn(C,O,re)}var iu=yf||function(C){return yi.clearTimeout(C)};function nu(C,O){if(O)return C.slice();var re=C.length,Se=Mo?Mo(re):new C.constructor(re);return C.copy(Se),Se}function Zs(C){var O=new C.constructor(C.byteLength);return new Za(O).set(new Za(C)),O}function Rl(C,O){var re=O?Zs(C.buffer):C.buffer;return new C.constructor(re,C.byteOffset,C.byteLength)}function Il(C){var O=new C.constructor(C.source,Nt.exec(C));return O.lastIndex=C.lastIndex,O}function $l(C){return Ia?$r(Ia.call(C)):{}}function au(C,O){var re=O?Zs(C.buffer):C.buffer;return new C.constructor(re,C.byteOffset,C.length)}function su(C,O){if(C!==O){var re=C!==l,Se=C===null,Ne=C===C,it=nn(C),xt=O!==l,Tt=O===null,zt=O===O,wr=nn(O);if(!Tt&&!wr&&!it&&C>O||it&&xt&&zt&&!Tt&&!wr||Se&&xt&&zt||!re&&zt||!Ne)return 1;if(!Se&&!it&&!wr&&C<O||wr&&re&&Ne&&!Se&&!it||Tt&&re&&Ne||!xt&&Ne||!zt)return-1}return 0}function Dl(C,O,re){for(var Se=-1,Ne=C.criteria,it=O.criteria,xt=Ne.length,Tt=re.length;++Se<xt;){var zt=su(Ne[Se],it[Se]);if(zt){if(Se>=Tt)return zt;var wr=re[Se];return zt*(wr=="desc"?-1:1)}}return C.index-O.index}function ou(C,O,re,Se){for(var Ne=-1,it=C.length,xt=re.length,Tt=-1,zt=O.length,wr=ji(it-xt,0),xr=Mt(zt+wr),Er=!Se;++Tt<zt;)xr[Tt]=O[Tt];for(;++Ne<xt;)(Er||Ne<it)&&(xr[re[Ne]]=C[Ne]);for(;wr--;)xr[Tt++]=C[Ne++];return xr}function uu(C,O,re,Se){for(var Ne=-1,it=C.length,xt=-1,Tt=re.length,zt=-1,wr=O.length,xr=ji(it-Tt,0),Er=Mt(xr+wr),Ir=!Se;++Ne<xr;)Er[Ne]=C[Ne];for(var Hr=Ne;++zt<wr;)Er[Hr+zt]=O[zt];for(;++xt<Tt;)(Ir||Ne<it)&&(Er[Hr+re[xt]]=C[Ne++]);return Er}function Gi(C,O){var re=-1,Se=C.length;for(O||(O=Mt(Se));++re<Se;)O[re]=C[re];return O}function Tn(C,O,re,Se){var Ne=!re;re||(re={});for(var it=-1,xt=O.length;++it<xt;){var Tt=O[it],zt=Se?Se(re[Tt],C[Tt],Tt,re,C):l;zt===l&&(zt=C[Tt]),Ne?On(re,Tt,zt):$a(re,Tt,zt)}return re}function Ll(C,O){return Tn(C,io(C),O)}function Ol(C,O){return Tn(C,xu(C),O)}function cs(C,O){return function(re,Se){var Ne=ai(re)?St:al,it=O?O():{};return Ne(re,C,Yr(Se,2),it)}}function _a(C){return ci(function(O,re){var Se=-1,Ne=re.length,it=Ne>1?re[Ne-1]:l,xt=Ne>2?re[2]:l;for(it=C.length>3&&typeof it=="function"?(Ne--,it):l,xt&&zi(re[0],re[1],xt)&&(it=Ne<3?l:it,Ne=1),O=$r(O);++Se<Ne;){var Tt=re[Se];Tt&&C(O,Tt,Se,it)}return O})}function fu(C,O){return function(re,Se){if(re==null)return re;if(!Qi(re))return C(re,Se);for(var Ne=re.length,it=O?Ne:-1,xt=$r(re);(O?it--:++it<Ne)&&Se(xt[it],it,xt)!==!1;);return re}}function lu(C){return function(O,re,Se){for(var Ne=-1,it=$r(O),xt=Se(O),Tt=xt.length;Tt--;){var zt=xt[C?Tt:++Ne];if(re(it[zt],zt,it)===!1)break}return O}}function Fl(C,O,re){var Se=O&N,Ne=za(C);function it(){var xt=this&&this!==yi&&this instanceof it?Ne:C;return xt.apply(Se?re:this,arguments)}return it}function cu(C){return function(O){O=bi(O);var re=Vi(O)?Li(O):l,Se=re?re[0]:O.charAt(0),Ne=re?Jn(re,1).join(""):O.slice(1);return Se[C]()+Ne}}function ka(C){return function(O){return ri(lf(ff(O).replace(pr,"")),C,"")}}function za(C){return function(){var O=arguments;switch(O.length){case 0:return new C;case 1:return new C(O[0]);case 2:return new C(O[0],O[1]);case 3:return new C(O[0],O[1],O[2]);case 4:return new C(O[0],O[1],O[2],O[3]);case 5:return new C(O[0],O[1],O[2],O[3],O[4]);case 6:return new C(O[0],O[1],O[2],O[3],O[4],O[5]);case 7:return new C(O[0],O[1],O[2],O[3],O[4],O[5],O[6])}var re=xa(C.prototype),Se=C.apply(re,O);return _i(Se)?Se:re}}function Nl(C,O,re){var Se=za(C);function Ne(){for(var it=arguments.length,xt=Mt(it),Tt=it,zt=Sa(Ne);Tt--;)xt[Tt]=arguments[Tt];var wr=it<3&&xt[0]!==zt&&xt[it-1]!==zt?[]:tn(xt,zt);if(it-=wr.length,it<re)return vu(C,O,hs,Ne.placeholder,l,xt,wr,l,l,re-it);var xr=this&&this!==yi&&this instanceof Ne?Se:C;return Ke(xr,this,xt)}return Ne}function hu(C){return function(O,re,Se){var Ne=$r(O);if(!Qi(O)){var it=Yr(re,3);O=Pi(O),re=function(Tt){return it(Ne[Tt],Tt,Ne)}}var xt=C(O,re,Se);return xt>-1?Ne[it?O[xt]:xt]:l}}function du(C){return zn(function(O){var re=O.length,Se=re,Ne=cn.prototype.thru;for(C&&O.reverse();Se--;){var it=O[Se];if(typeof it!="function")throw new li(S);if(Ne&&!xt&&vs(it)=="wrapper")var xt=new cn([],!0)}for(Se=xt?Se:re;++Se<re;){it=O[Se];var Tt=vs(it),zt=Tt=="wrapper"?to(it):l;zt&&ao(zt[0])&&zt[1]==(Q|J|se|ve)&&!zt[4].length&&zt[9]==1?xt=xt[vs(zt[0])].apply(xt,zt[3]):xt=it.length==1&&ao(it)?xt[Tt]():xt.thru(it)}return function(){var wr=arguments,xr=wr[0];if(xt&&wr.length==1&&ai(xr))return xt.plant(xr).value();for(var Er=0,Ir=re?O[Er].apply(this,wr):xr;++Er<re;)Ir=O[Er].call(this,Ir);return Ir}})}function hs(C,O,re,Se,Ne,it,xt,Tt,zt,wr){var xr=O&Q,Er=O&N,Ir=O&F,Hr=O&(J|te),Xr=O&he,fi=Ir?l:za(C);function Jr(){for(var pi=arguments.length,vi=Mt(pi),an=pi;an--;)vi[an]=arguments[an];if(Hr)var Ni=Sa(Jr),sn=en(vi,Ni);if(Se&&(vi=ou(vi,Se,Ne,Hr)),it&&(vi=uu(vi,it,xt,Hr)),pi-=sn,Hr&&pi<wr){var Mi=tn(vi,Ni);return vu(C,O,hs,Jr.placeholder,re,vi,Mi,Tt,zt,wr-pi)}var kn=Er?re:this,Wn=Ir?kn[C]:C;return pi=vi.length,Tt?vi=fc(vi,Tt):Xr&&pi>1&&vi.reverse(),xr&&zt<pi&&(vi.length=zt),this&&this!==yi&&this instanceof Jr&&(Wn=fi||za(Wn)),Wn.apply(kn,vi)}return Jr}function pu(C,O){return function(re,Se){return ml(re,C,O(Se),{})}}function ds(C,O){return function(re,Se){var Ne;if(re===l&&Se===l)return O;if(re!==l&&(Ne=re),Se!==l){if(Ne===l)return Se;typeof re=="string"||typeof Se=="string"?(re=rn(re),Se=rn(Se)):(re=Jo(re),Se=Jo(Se)),Ne=C(re,Se)}return Ne}}function Ys(C){return zn(function(O){return O=Dr(O,Di(Yr())),ci(function(re){var Se=this;return C(O,function(Ne){return Ke(Ne,Se,re)})})})}function ps(C,O){O=O===l?" ":rn(O);var re=O.length;if(re<2)return re?Us(O,C):O;var Se=Us(O,es(C/Cn(O)));return Vi(O)?Jn(Li(Se),0,C).join(""):Se.slice(0,C)}function Hl(C,O,re,Se){var Ne=O&N,it=za(C);function xt(){for(var Tt=-1,zt=arguments.length,wr=-1,xr=Se.length,Er=Mt(xr+zt),Ir=this&&this!==yi&&this instanceof xt?it:C;++wr<xr;)Er[wr]=Se[wr];for(;zt--;)Er[wr++]=arguments[++Tt];return Ke(Ir,Ne?re:this,Er)}return xt}function mu(C){return function(O,re,Se){return Se&&typeof Se!="number"&&zi(O,re,Se)&&(re=Se=l),O=Un(O),re===l?(re=O,O=0):re=Un(re),Se=Se===l?O<re?1:-1:Un(Se),Al(O,re,Se,C)}}function ms(C){return function(O,re){return typeof O=="string"&&typeof re=="string"||(O=mn(O),re=mn(re)),C(O,re)}}function vu(C,O,re,Se,Ne,it,xt,Tt,zt,wr){var xr=O&J,Er=xr?xt:l,Ir=xr?l:xt,Hr=xr?it:l,Xr=xr?l:it;O|=xr?se:de,O&=~(xr?de:se),O&U||(O&=~(N|F));var fi=[C,O,Ne,Hr,Er,Xr,Ir,Tt,zt,wr],Jr=re.apply(l,fi);return ao(C)&&Cu(Jr,fi),Jr.placeholder=Se,ju(Jr,C,O)}function Xs(C){var O=Or[C];return function(re,Se){if(re=mn(re),Se=Se==null?0:Ii(ui(Se),292),Se&&jo(re)){var Ne=(bi(re)+"e").split("e"),it=O(Ne[0]+"e"+(+Ne[1]+Se));return Ne=(bi(it)+"e").split("e"),+(Ne[0]+"e"+(+Ne[1]-Se))}return O(re)}}var Ul=ba&&1/$n(new ba([,-0]))[1]==y?function(C){return new ba(C)}:xo;function gu(C){return function(O){var re=$i(O);return re==rt?ga(O):re==Ge?ja(O):yn(O,C(O))}}function Fn(C,O,re,Se,Ne,it,xt,Tt){var zt=O&F;if(!zt&&typeof C!="function")throw new li(S);var wr=Se?Se.length:0;if(wr||(O&=~(se|de),Se=Ne=l),xt=xt===l?xt:ji(ui(xt),0),Tt=Tt===l?Tt:ui(Tt),wr-=Ne?Ne.length:0,O&de){var xr=Se,Er=Ne;Se=Ne=l}var Ir=zt?l:to(C),Hr=[C,O,re,Se,Ne,xr,Er,it,xt,Tt];if(Ir&&sc(Hr,Ir),C=Hr[0],O=Hr[1],re=Hr[2],Se=Hr[3],Ne=Hr[4],Tt=Hr[9]=Hr[9]===l?zt?0:C.length:ji(Hr[9]-wr,0),!Tt&&O&(J|te)&&(O&=~(J|te)),!O||O==N)var Xr=Fl(C,O,re);else O==J||O==te?Xr=Nl(C,O,Tt):(O==se||O==(N|se))&&!Ne.length?Xr=Hl(C,O,re,Se):Xr=hs.apply(l,Hr);var fi=Ir?Yo:Cu;return ju(fi(Xr,Hr),C,O)}function yu(C,O,re,Se){return C===l||_n(C,Ci[re])&&!ei.call(Se,re)?O:C}function bu(C,O,re,Se,Ne,it){return _i(C)&&_i(O)&&(it.set(O,C),us(C,O,l,bu,it),it.delete(O)),C}function Wl(C){return Ua(C)?l:C}function wu(C,O,re,Se,Ne,it){var xt=re&$,Tt=C.length,zt=O.length;if(Tt!=zt&&!(xt&&zt>Tt))return!1;var wr=it.get(C),xr=it.get(O);if(wr&&xr)return wr==O&&xr==C;var Er=-1,Ir=!0,Hr=re&z?new fa:l;for(it.set(C,O),it.set(O,C);++Er<Tt;){var Xr=C[Er],fi=O[Er];if(Se)var Jr=xt?Se(fi,Xr,Er,O,C,it):Se(Xr,fi,Er,C,O,it);if(Jr!==l){if(Jr)continue;Ir=!1;break}if(Hr){if(!xi(O,function(pi,vi){if(!aa(Hr,vi)&&(Xr===pi||Ne(Xr,pi,re,Se,it)))return Hr.push(vi)})){Ir=!1;break}}else if(!(Xr===fi||Ne(Xr,fi,re,Se,it))){Ir=!1;break}}return it.delete(C),it.delete(O),Ir}function Kl(C,O,re,Se,Ne,it,xt){switch(re){case gt:if(C.byteLength!=O.byteLength||C.byteOffset!=O.byteOffset)return!1;C=C.buffer,O=O.buffer;case dt:return!(C.byteLength!=O.byteLength||!it(new Za(C),new Za(O)));case D:case ee:case Ve:return _n(+C,+O);case fe:return C.name==O.name&&C.message==O.message;case Xe:case nt:return C==O+"";case rt:var Tt=ga;case Ge:var zt=Se&$;if(Tt||(Tt=$n),C.size!=O.size&&!zt)return!1;var wr=xt.get(C);if(wr)return wr==O;Se|=z,xt.set(C,O);var xr=wu(Tt(C),Tt(O),Se,Ne,it,xt);return xt.delete(C),xr;case Et:if(Ia)return Ia.call(C)==Ia.call(O)}return!1}function Vl(C,O,re,Se,Ne,it){var xt=re&$,Tt=Js(C),zt=Tt.length,wr=Js(O),xr=wr.length;if(zt!=xr&&!xt)return!1;for(var Er=zt;Er--;){var Ir=Tt[Er];if(!(xt?Ir in O:ei.call(O,Ir)))return!1}var Hr=it.get(C),Xr=it.get(O);if(Hr&&Xr)return Hr==O&&Xr==C;var fi=!0;it.set(C,O),it.set(O,C);for(var Jr=xt;++Er<zt;){Ir=Tt[Er];var pi=C[Ir],vi=O[Ir];if(Se)var an=xt?Se(vi,pi,Ir,O,C,it):Se(pi,vi,Ir,C,O,it);if(!(an===l?pi===vi||Ne(pi,vi,re,Se,it):an)){fi=!1;break}Jr||(Jr=Ir=="constructor")}if(fi&&!Jr){var Ni=C.constructor,sn=O.constructor;Ni!=sn&&"constructor"in C&&"constructor"in O&&!(typeof Ni=="function"&&Ni instanceof Ni&&typeof sn=="function"&&sn instanceof sn)&&(fi=!1)}return it.delete(C),it.delete(O),fi}function zn(C){return oo(Eu(C,l,Iu),C+"")}function Js(C){return Fo(C,Pi,io)}function eo(C){return Fo(C,Zi,xu)}var to=rs?function(C){return rs.get(C)}:xo;function vs(C){for(var O=C.name+"",re=wa[O],Se=ei.call(wa,O)?re.length:0;Se--;){var Ne=re[Se],it=Ne.func;if(it==null||it==C)return Ne.name}return O}function Sa(C){var O=ei.call(Qe,"placeholder")?Qe:C;return O.placeholder}function Yr(){var C=Qe.iteratee||bo;return C=C===bo?Ho:C,arguments.length?C(arguments[0],arguments[1]):C}function gs(C,O){var re=C.__data__;return rc(O)?re[typeof O=="string"?"string":"hash"]:re.map}function ro(C){for(var O=Pi(C),re=O.length;re--;){var Se=O[re],Ne=C[Se];O[re]=[Se,Ne,Su(Ne)]}return O}function ha(C,O){var re=Wa(C,O);return No(re)?re:l}function Gl(C){var O=ei.call(C,oa),re=C[oa];try{C[oa]=l;var Se=!0}catch{}var Ne=Ga.call(C);return Se&&(O?C[oa]=re:delete C[oa]),Ne}var io=Ts?function(C){return C==null?[]:(C=$r(C),or(Ts(C),function(O){return Ao.call(C,O)}))}:_o,xu=Ts?function(C){for(var O=[];C;)ni(O,io(C)),C=Ya(C);return O}:_o,$i=Fi;(Ps&&$i(new Ps(new ArrayBuffer(1)))!=gt||qa&&$i(new qa)!=rt||qs&&$i(qs.resolve())!=Ye||ba&&$i(new ba)!=Ge||Ba&&$i(new Ba)!=Oe)&&($i=function(C){var O=Fi(C),re=O==mt?C.constructor:l,Se=re?da(re):"";if(Se)switch(Se){case Af:return gt;case Cf:return rt;case jf:return Ye;case Tf:return Ge;case Pf:return Oe}return O});function Ql(C,O,re){for(var Se=-1,Ne=re.length;++Se<Ne;){var it=re[Se],xt=it.size;switch(it.type){case"drop":C+=xt;break;case"dropRight":O-=xt;break;case"take":O=Ii(O,C+xt);break;case"takeRight":C=ji(C,O-xt);break}}return{start:C,end:O}}function Zl(C){var O=C.match(ne);return O?O[1].split(_e):[]}function _u(C,O,re){O=Xn(O,C);for(var Se=-1,Ne=O.length,it=!1;++Se<Ne;){var xt=Pn(O[Se]);if(!(it=C!=null&&re(C,xt)))break;C=C[xt]}return it||++Se!=Ne?it:(Ne=C==null?0:C.length,!!Ne&&Ss(Ne)&&Nn(xt,Ne)&&(ai(C)||pa(C)))}function Yl(C){var O=C.length,re=new C.constructor(O);return O&&typeof C[0]=="string"&&ei.call(C,"index")&&(re.index=C.index,re.input=C.input),re}function ku(C){return typeof C.constructor=="function"&&!Na(C)?xa(Ya(C)):{}}function Xl(C,O,re){var Se=C.constructor;switch(O){case dt:return Zs(C);case D:case ee:return new Se(+C);case gt:return Rl(C,re);case Lt:case xe:case X:case pe:case je:case $e:case He:case Fe:case Me:return au(C,re);case rt:return new Se;case Ve:case nt:return new Se(C);case Xe:return Il(C);case Ge:return new Se;case Et:return $l(C)}}function Jl(C,O){var re=O.length;if(!re)return C;var Se=re-1;return O[Se]=(re>1?"& ":"")+O[Se],O=O.join(re>2?", ":" "),C.replace(ce,`{
/* [wrapped with `+O+`] */
`)}function tc(C){return ai(C)||pa(C)||!!(Co&&C&&C[Co])}function Nn(C,O){var re=typeof C;return O=O??w,!!O&&(re=="number"||re!="symbol"&&rr.test(C))&&C>-1&&C%1==0&&C<O}function zi(C,O,re){if(!_i(re))return!1;var Se=typeof O;return(Se=="number"?Qi(re)&&Nn(O,re.length):Se=="string"&&O in re)?_n(re[O],C):!1}function no(C,O){if(ai(C))return!1;var re=typeof C;return re=="number"||re=="symbol"||re=="boolean"||C==null||nn(C)?!0:It.test(C)||!pt.test(C)||O!=null&&C in $r(O)}function rc(C){var O=typeof C;return O=="string"||O=="number"||O=="symbol"||O=="boolean"?C!=="__proto__":C===null}function ao(C){var O=vs(C),re=Qe[O];if(typeof re!="function"||!(O in mi.prototype))return!1;if(C===re)return!0;var Se=to(re);return!!Se&&C===Se[0]}function ic(C){return!!So&&So in C}var nc=Oi?Hn:ko;function Na(C){var O=C&&C.constructor,re=typeof O=="function"&&O.prototype||Ci;return C===re}function Su(C){return C===C&&!_i(C)}function Mu(C,O){return function(re){return re==null?!1:re[C]===O&&(O!==l||C in $r(re))}}function ac(C){var O=_s(C,function(Se){return re.size===B&&re.clear(),Se}),re=O.cache;return O}function sc(C,O){var re=C[1],Se=O[1],Ne=re|Se,it=Ne<(N|F|Q),xt=Se==Q&&re==J||Se==Q&&re==ve&&C[7].length<=O[8]||Se==(Q|ve)&&O[7].length<=O[8]&&re==J;if(!(it||xt))return C;Se&N&&(C[2]=O[2],Ne|=re&N?0:U);var Tt=O[3];if(Tt){var zt=C[3];C[3]=zt?ou(zt,Tt,O[4]):Tt,C[4]=zt?tn(C[3],M):O[4]}return Tt=O[5],Tt&&(zt=C[5],C[5]=zt?uu(zt,Tt,O[6]):Tt,C[6]=zt?tn(C[5],M):O[6]),Tt=O[7],Tt&&(C[7]=Tt),Se&Q&&(C[8]=C[8]==null?O[8]:Ii(C[8],O[8])),C[9]==null&&(C[9]=O[9]),C[0]=O[0],C[1]=Ne,C}function oc(C){var O=[];if(C!=null)for(var re in $r(C))O.push(re);return O}function uc(C){return Ga.call(C)}function Eu(C,O,re){return O=ji(O===l?C.length-1:O,0),function(){for(var Se=arguments,Ne=-1,it=ji(Se.length-O,0),xt=Mt(it);++Ne<it;)xt[Ne]=Se[O+Ne];Ne=-1;for(var Tt=Mt(O+1);++Ne<O;)Tt[Ne]=Se[Ne];return Tt[O]=re(xt),Ke(C,this,Tt)}}function Au(C,O){return O.length<2?C:ca(C,dn(O,0,-1))}function fc(C,O){for(var re=C.length,Se=Ii(O.length,re),Ne=Gi(C);Se--;){var it=O[Se];C[Se]=Nn(it,re)?Ne[it]:l}return C}function so(C,O){if(!(O==="constructor"&&typeof C[O]=="function")&&O!="__proto__")return C[O]}var Cu=Tu(Yo),Ha=wf||function(C,O){return yi.setTimeout(C,O)},oo=Tu(Tl);function ju(C,O,re){var Se=O+"";return oo(C,Jl(Se,lc(Zl(Se),re)))}function Tu(C){var O=0,re=0;return function(){var Se=Sf(),Ne=p-(Se-re);if(re=Se,Ne>0){if(++O>=u)return arguments[0]}else O=0;return C.apply(l,arguments)}}function ys(C,O){var re=-1,Se=C.length,Ne=Se-1;for(O=O===l?Se:O;++re<O;){var it=Hs(re,Ne),xt=C[it];C[it]=C[re],C[re]=xt}return C.length=O,C}var Pu=ac(function(C){var O=[];return C.charCodeAt(0)===46&&O.push(""),C.replace(Fr,function(re,Se,Ne,it){O.push(Ne?it.replace(Ze,"$1"):Se||re)}),O});function Pn(C){if(typeof C=="string"||nn(C))return C;var O=C+"";return O=="0"&&1/C==-y?"-0":O}function da(C){if(C!=null){try{return wn.call(C)}catch{}try{return C+""}catch{}}return""}function lc(C,O){return vt(H,function(re){var Se="_."+re[0];O&re[1]&&!Wt(C,Se)&&C.push(Se)}),C.sort()}function qu(C){if(C instanceof mi)return C.clone();var O=new cn(C.__wrapped__,C.__chain__);return O.__actions__=Gi(C.__actions__),O.__index__=C.__index__,O.__values__=C.__values__,O}function cc(C,O,re){(re?zi(C,O,re):O===l)?O=1:O=ji(ui(O),0);var Se=C==null?0:C.length;if(!Se||O<1)return[];for(var Ne=0,it=0,xt=Mt(es(Se/O));Ne<Se;)xt[it++]=dn(C,Ne,Ne+=O);return xt}function hc(C){for(var O=-1,re=C==null?0:C.length,Se=0,Ne=[];++O<re;){var it=C[O];it&&(Ne[Se++]=it)}return Ne}function dc(){var C=arguments.length;if(!C)return[];for(var O=Mt(C-1),re=arguments[0],Se=C;Se--;)O[Se-1]=arguments[Se];return ni(ai(re)?Gi(re):[re],qi(O,1))}var pc=ci(function(C,O){return Si(C)?Da(C,qi(O,1,Si,!0)):[]}),mc=ci(function(C,O){var re=pn(O);return Si(re)&&(re=l),Si(C)?Da(C,qi(O,1,Si,!0),Yr(re,2)):[]}),vc=ci(function(C,O){var re=pn(O);return Si(re)&&(re=l),Si(C)?Da(C,qi(O,1,Si,!0),l,re):[]});function gc(C,O,re){var Se=C==null?0:C.length;return Se?(O=re||O===l?1:ui(O),dn(C,O<0?0:O,Se)):[]}function yc(C,O,re){var Se=C==null?0:C.length;return Se?(O=re||O===l?1:ui(O),O=Se-O,dn(C,0,O<0?0:O)):[]}function bc(C,O){return C&&C.length?ls(C,Yr(O,3),!0,!0):[]}function wc(C,O){return C&&C.length?ls(C,Yr(O,3),!0):[]}function xc(C,O,re,Se){var Ne=C==null?0:C.length;return Ne?(re&&typeof re!="number"&&zi(C,O,re)&&(re=0,Se=Ne),ll(C,O,re,Se)):[]}function Bu(C,O,re){var Se=C==null?0:C.length;if(!Se)return-1;var Ne=re==null?0:ui(re);return Ne<0&&(Ne=ji(Se+Ne,0)),di(C,Yr(O,3),Ne)}function Ru(C,O,re){var Se=C==null?0:C.length;if(!Se)return-1;var Ne=Se-1;return re!==l&&(Ne=ui(re),Ne=re<0?ji(Se+Ne,0):Ii(Ne,Se-1)),di(C,Yr(O,3),Ne,!0)}function Iu(C){var O=C==null?0:C.length;return O?qi(C,1):[]}function _c(C){var O=C==null?0:C.length;return O?qi(C,y):[]}function kc(C,O){var re=C==null?0:C.length;return re?(O=O===l?1:ui(O),qi(C,O)):[]}function Sc(C){for(var O=-1,re=C==null?0:C.length,Se={};++O<re;){var Ne=C[O];Se[Ne[0]]=Ne[1]}return Se}function $u(C){return C&&C.length?C[0]:l}function Mc(C,O,re){var Se=C==null?0:C.length;if(!Se)return-1;var Ne=re==null?0:ui(re);return Ne<0&&(Ne=ji(Se+Ne,0)),wi(C,O,Ne)}function Ec(C){var O=C==null?0:C.length;return O?dn(C,0,-1):[]}var Ac=ci(function(C){var O=Dr(C,Gs);return O.length&&O[0]===C[0]?Ls(O):[]}),Cc=ci(function(C){var O=pn(C),re=Dr(C,Gs);return O===pn(re)?O=l:re.pop(),re.length&&re[0]===C[0]?Ls(re,Yr(O,2)):[]}),jc=ci(function(C){var O=pn(C),re=Dr(C,Gs);return O=typeof O=="function"?O:l,O&&re.pop(),re.length&&re[0]===C[0]?Ls(re,l,O):[]});function Tc(C,O){return C==null?"":_f.call(C,O)}function pn(C){var O=C==null?0:C.length;return O?C[O-1]:l}function Pc(C,O,re){var Se=C==null?0:C.length;if(!Se)return-1;var Ne=Se;return re!==l&&(Ne=ui(re),Ne=Ne<0?ji(Se+Ne,0):Ii(Ne,Se-1)),O===O?ya(C,O,Ne):di(C,va,Ne,!0)}function qc(C,O){return C&&C.length?Vo(C,ui(O)):l}var Bc=ci(Du);function Du(C,O){return C&&C.length&&O&&O.length?Ns(C,O):C}function Rc(C,O,re){return C&&C.length&&O&&O.length?Ns(C,O,Yr(re,2)):C}function Ic(C,O,re){return C&&C.length&&O&&O.length?Ns(C,O,l,re):C}var $c=zn(function(C,O){var re=C==null?0:C.length,Se=Rs(C,O);return Zo(C,Dr(O,function(Ne){return Nn(Ne,re)?+Ne:Ne}).sort(su)),Se});function Dc(C,O){var re=[];if(!(C&&C.length))return re;var Se=-1,Ne=[],it=C.length;for(O=Yr(O,3);++Se<it;){var xt=C[Se];O(xt,Se,C)&&(re.push(xt),Ne.push(Se))}return Zo(C,Ne),re}function uo(C){return C==null?C:Ef.call(C)}function Lc(C,O,re){var Se=C==null?0:C.length;return Se?(re&&typeof re!="number"&&zi(C,O,re)?(O=0,re=Se):(O=O==null?0:ui(O),re=re===l?Se:ui(re)),dn(C,O,re)):[]}function Oc(C,O){return fs(C,O)}function Fc(C,O,re){return Ws(C,O,Yr(re,2))}function zc(C,O){var re=C==null?0:C.length;if(re){var Se=fs(C,O);if(Se<re&&_n(C[Se],O))return Se}return-1}function Nc(C,O){return fs(C,O,!0)}function Hc(C,O,re){return Ws(C,O,Yr(re,2),!0)}function Uc(C,O){var re=C==null?0:C.length;if(re){var Se=fs(C,O,!0)-1;if(_n(C[Se],O))return Se}return-1}function Wc(C){return C&&C.length?Xo(C):[]}function Kc(C,O){return C&&C.length?Xo(C,Yr(O,2)):[]}function Vc(C){var O=C==null?0:C.length;return O?dn(C,1,O):[]}function Gc(C,O,re){return C&&C.length?(O=re||O===l?1:ui(O),dn(C,0,O<0?0:O)):[]}function Qc(C,O,re){var Se=C==null?0:C.length;return Se?(O=re||O===l?1:ui(O),O=Se-O,dn(C,O<0?0:O,Se)):[]}function Zc(C,O){return C&&C.length?ls(C,Yr(O,3),!1,!0):[]}function Yc(C,O){return C&&C.length?ls(C,Yr(O,3)):[]}var Xc=ci(function(C){return Yn(qi(C,1,Si,!0))}),Jc=ci(function(C){var O=pn(C);return Si(O)&&(O=l),Yn(qi(C,1,Si,!0),Yr(O,2))}),eh=ci(function(C){var O=pn(C);return O=typeof O=="function"?O:l,Yn(qi(C,1,Si,!0),l,O)});function th(C){return C&&C.length?Yn(C):[]}function ih(C,O){return C&&C.length?Yn(C,Yr(O,2)):[]}function nh(C,O){return O=typeof O=="function"?O:l,C&&C.length?Yn(C,l,O):[]}function fo(C){if(!(C&&C.length))return[];var O=0;return C=or(C,function(re){if(Si(re))return O=ji(re.length,O),!0}),na(O,function(re){return Dr(C,In(re))})}function Lu(C,O){if(!(C&&C.length))return[];var re=fo(C);return O==null?re:Dr(re,function(Se){return Ke(O,l,Se)})}var ah=ci(function(C,O){return Si(C)?Da(C,O):[]}),oh=ci(function(C){return Vs(or(C,Si))}),uh=ci(function(C){var O=pn(C);return Si(O)&&(O=l),Vs(or(C,Si),Yr(O,2))}),fh=ci(function(C){var O=pn(C);return O=typeof O=="function"?O:l,Vs(or(C,Si),l,O)}),lh=ci(fo);function hh(C,O){return ru(C||[],O||[],$a)}function ph(C,O){return ru(C||[],O||[],Fa)}var mh=ci(function(C){var O=C.length,re=O>1?C[O-1]:l;return re=typeof re=="function"?(C.pop(),re):l,Lu(C,re)});function Ou(C){var O=Qe(C);return O.__chain__=!0,O}function vh(C,O){return O(C),C}function bs(C,O){return O(C)}var gh=zn(function(C){var O=C.length,re=O?C[0]:0,Se=this.__wrapped__,Ne=function(it){return Rs(it,C)};return O>1||this.__actions__.length||!(Se instanceof mi)||!Nn(re)?this.thru(Ne):(Se=Se.slice(re,+re+(O?1:0)),Se.__actions__.push({func:bs,args:[Ne],thisArg:l}),new cn(Se,this.__chain__).thru(function(it){return O&&!it.length&&it.push(l),it}))});function yh(){return Ou(this)}function bh(){return new cn(this.value(),this.__chain__)}function wh(){this.__values__===l&&(this.__values__=Ju(this.value()));var C=this.__index__>=this.__values__.length,O=C?l:this.__values__[this.__index__++];return{done:C,value:O}}function xh(){return this}function _h(C){for(var O,re=this;re instanceof ns;){var Se=qu(re);Se.__index__=0,Se.__values__=l,O?Ne.__wrapped__=Se:O=Se;var Ne=Se;re=re.__wrapped__}return Ne.__wrapped__=C,O}function kh(){var C=this.__wrapped__;if(C instanceof mi){var O=C;return this.__actions__.length&&(O=new mi(this)),O=O.reverse(),O.__actions__.push({func:bs,args:[uo],thisArg:l}),new cn(O,this.__chain__)}return this.thru(uo)}function Sh(){return tu(this.__wrapped__,this.__actions__)}var Mh=cs(function(C,O,re){ei.call(C,re)?++C[re]:On(C,re,1)});function Eh(C,O,re){var Se=ai(C)?Jt:fl;return re&&zi(C,O,re)&&(O=l),Se(C,Yr(O,3))}function Ah(C,O){var re=ai(C)?or:Lo;return re(C,Yr(O,3))}var jh=hu(Bu),Th=hu(Ru);function Ph(C,O){return qi(ws(C,O),1)}function qh(C,O){return qi(ws(C,O),y)}function Bh(C,O,re){return re=re===l?1:ui(re),qi(ws(C,O),re)}function Fu(C,O){var re=ai(C)?vt:Zn;return re(C,Yr(O,3))}function zu(C,O){var re=ai(C)?Dt:Do;return re(C,Yr(O,3))}var Rh=cs(function(C,O,re){ei.call(C,re)?C[re].push(O):On(C,re,[O])});function Ih(C,O,re,Se){C=Qi(C)?C:Ea(C),re=re&&!Se?ui(re):0;var Ne=C.length;return re<0&&(re=ji(Ne+re,0)),Ms(C)?re<=Ne&&C.indexOf(O,re)>-1:!!Ne&&wi(C,O,re)>-1}var $h=ci(function(C,O,re){var Se=-1,Ne=typeof O=="function",it=Qi(C)?Mt(C.length):[];return Zn(C,function(xt){it[++Se]=Ne?Ke(O,xt,re):La(xt,O,re)}),it}),Dh=cs(function(C,O,re){On(C,re,O)});function ws(C,O){var re=ai(C)?Dr:Uo;return re(C,Yr(O,3))}function Lh(C,O,re,Se){return C==null?[]:(ai(O)||(O=O==null?[]:[O]),re=Se?l:re,ai(re)||(re=re==null?[]:[re]),Go(C,O,re))}var Oh=cs(function(C,O,re){C[re?0:1].push(O)},function(){return[[],[]]});function Fh(C,O,re){var Se=ai(C)?ri:gn,Ne=arguments.length<3;return Se(C,Yr(O,4),re,Ne,Zn)}function zh(C,O,re){var Se=ai(C)?Ei:gn,Ne=arguments.length<3;return Se(C,Yr(O,4),re,Ne,Do)}function Nh(C,O){var re=ai(C)?or:Lo;return re(C,ks(Yr(O,3)))}function Hh(C){var O=ai(C)?Bo:Cl;return O(C)}function Uh(C,O,re){(re?zi(C,O,re):O===l)?O=1:O=ui(O);var Se=ai(C)?il:jl;return Se(C,O)}function Wh(C){var O=ai(C)?nl:Pl;return O(C)}function Vh(C){if(C==null)return 0;if(Qi(C))return Ms(C)?Cn(C):C.length;var O=$i(C);return O==rt||O==Ge?C.size:Fs(C).length}function Gh(C,O,re){var Se=ai(C)?xi:ql;return re&&zi(C,O,re)&&(O=l),Se(C,Yr(O,3))}var Qh=ci(function(C,O){if(C==null)return[];var re=O.length;return re>1&&zi(C,O[0],O[1])?O=[]:re>2&&zi(O[0],O[1],O[2])&&(O=[O[0]]),Go(C,qi(O,1),[])}),xs=bf||function(){return yi.Date.now()};function Zh(C,O){if(typeof O!="function")throw new li(S);return C=ui(C),function(){if(--C<1)return O.apply(this,arguments)}}function Nu(C,O,re){return O=re?l:O,O=C&&O==null?C.length:O,Fn(C,Q,l,l,l,l,O)}function Hu(C,O){var re;if(typeof O!="function")throw new li(S);return C=ui(C),function(){return--C>0&&(re=O.apply(this,arguments)),C<=1&&(O=l),re}}var lo=ci(function(C,O,re){var Se=N;if(re.length){var Ne=tn(re,Sa(lo));Se|=se}return Fn(C,Se,O,re,Ne)}),Uu=ci(function(C,O,re){var Se=N|F;if(re.length){var Ne=tn(re,Sa(Uu));Se|=se}return Fn(O,Se,C,re,Ne)});function Wu(C,O,re){O=re?l:O;var Se=Fn(C,J,l,l,l,l,l,O);return Se.placeholder=Wu.placeholder,Se}function Ku(C,O,re){O=re?l:O;var Se=Fn(C,te,l,l,l,l,l,O);return Se.placeholder=Ku.placeholder,Se}function Vu(C,O,re){var Se,Ne,it,xt,Tt,zt,wr=0,xr=!1,Er=!1,Ir=!0;if(typeof C!="function")throw new li(S);O=mn(O)||0,_i(re)&&(xr=!!re.leading,Er="maxWait"in re,it=Er?ji(mn(re.maxWait)||0,O):it,Ir="trailing"in re?!!re.trailing:Ir);function Hr(Mi){var kn=Se,Wn=Ne;return Se=Ne=l,wr=Mi,xt=C.apply(Wn,kn),xt}function Xr(Mi){return wr=Mi,Tt=Ha(pi,O),xr?Hr(Mi):xt}function fi(Mi){var kn=Mi-zt,Wn=Mi-wr,df=O-kn;return Er?Ii(df,it-Wn):df}function Jr(Mi){var kn=Mi-zt,Wn=Mi-wr;return zt===l||kn>=O||kn<0||Er&&Wn>=it}function pi(){var Mi=xs();if(Jr(Mi))return vi(Mi);Tt=Ha(pi,fi(Mi))}function vi(Mi){return Tt=l,Ir&&Se?Hr(Mi):(Se=Ne=l,xt)}function an(){Tt!==l&&iu(Tt),wr=0,Se=zt=Ne=Tt=l}function Ni(){return Tt===l?xt:vi(xs())}function sn(){var Mi=xs(),kn=Jr(Mi);if(Se=arguments,Ne=this,zt=Mi,kn){if(Tt===l)return Xr(zt);if(Er)return iu(Tt),Tt=Ha(pi,O),Hr(zt)}return Tt===l&&(Tt=Ha(pi,O)),xt}return sn.cancel=an,sn.flush=Ni,sn}var Yh=ci(function(C,O){return $o(C,1,O)}),Xh=ci(function(C,O,re){return $o(C,mn(O)||0,re)});function Jh(C){return Fn(C,he)}function _s(C,O){if(typeof C!="function"||O!=null&&typeof O!="function")throw new li(S);var re=function(){var Se=arguments,Ne=O?O.apply(this,Se):Se[0],it=re.cache;if(it.has(Ne))return it.get(Ne);var xt=C.apply(this,Se);return re.cache=it.set(Ne,xt)||it,xt};return re.cache=new(_s.Cache||Ln),re}_s.Cache=Ln;function ks(C){if(typeof C!="function")throw new li(S);return function(){var O=arguments;switch(O.length){case 0:return!C.call(this);case 1:return!C.call(this,O[0]);case 2:return!C.call(this,O[0],O[1]);case 3:return!C.call(this,O[0],O[1],O[2])}return!C.apply(this,O)}}function ed(C){return Hu(2,C)}var td=Bl(function(C,O){O=O.length==1&&ai(O[0])?Dr(O[0],Di(Yr())):Dr(qi(O,1),Di(Yr()));var re=O.length;return ci(function(Se){for(var Ne=-1,it=Ii(Se.length,re);++Ne<it;)Se[Ne]=O[Ne].call(this,Se[Ne]);return Ke(C,this,Se)})}),co=ci(function(C,O){var re=tn(O,Sa(co));return Fn(C,se,l,O,re)}),Gu=ci(function(C,O){var re=tn(O,Sa(Gu));return Fn(C,de,l,O,re)}),rd=zn(function(C,O){return Fn(C,ve,l,l,l,O)});function id(C,O){if(typeof C!="function")throw new li(S);return O=O===l?O:ui(O),ci(C,O)}function nd(C,O){if(typeof C!="function")throw new li(S);return O=O==null?0:ji(ui(O),0),ci(function(re){var Se=re[O],Ne=Jn(re,0,O);return Se&&ni(Ne,Se),Ke(C,this,Ne)})}function ad(C,O,re){var Se=!0,Ne=!0;if(typeof C!="function")throw new li(S);return _i(re)&&(Se="leading"in re?!!re.leading:Se,Ne="trailing"in re?!!re.trailing:Ne),Vu(C,O,{leading:Se,maxWait:O,trailing:Ne})}function sd(C){return Nu(C,1)}function od(C,O){return co(Qs(O),C)}function ud(){if(!arguments.length)return[];var C=arguments[0];return ai(C)?C:[C]}function fd(C){return hn(C,P)}function ld(C,O){return O=typeof O=="function"?O:l,hn(C,P,O)}function cd(C){return hn(C,j|P)}function hd(C,O){return O=typeof O=="function"?O:l,hn(C,j|P,O)}function dd(C,O){return O==null||Io(C,O,Pi(O))}function _n(C,O){return C===O||C!==C&&O!==O}var pd=ms(Ds),md=ms(function(C,O){return C>=O}),pa=zo(function(){return arguments}())?zo:function(C){return ki(C)&&ei.call(C,"callee")&&!Ao.call(C,"callee")},ai=Mt.isArray,vd=V?Di(V):vl;function Qi(C){return C!=null&&Ss(C.length)&&!Hn(C)}function Si(C){return ki(C)&&Qi(C)}function gd(C){return C===!0||C===!1||ki(C)&&Fi(C)==D}var ea=xf||ko,yd=ie?Di(ie):gl;function bd(C){return ki(C)&&C.nodeType===1&&!Ua(C)}function wd(C){if(C==null)return!0;if(Qi(C)&&(ai(C)||typeof C=="string"||typeof C.splice=="function"||ea(C)||Ma(C)||pa(C)))return!C.length;var O=$i(C);if(O==rt||O==Ge)return!C.size;if(Na(C))return!Fs(C).length;for(var re in C)if(ei.call(C,re))return!1;return!0}function xd(C,O){return Oa(C,O)}function _d(C,O,re){re=typeof re=="function"?re:l;var Se=re?re(C,O):l;return Se===l?Oa(C,O,l,re):!!Se}function ho(C){if(!ki(C))return!1;var O=Fi(C);return O==fe||O==oe||typeof C.message=="string"&&typeof C.name=="string"&&!Ua(C)}function kd(C){return typeof C=="number"&&jo(C)}function Hn(C){if(!_i(C))return!1;var O=Fi(C);return O==ue||O==qe||O==L||O==We}function Qu(C){return typeof C=="number"&&C==ui(C)}function Ss(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=w}function _i(C){var O=typeof C;return C!=null&&(O=="object"||O=="function")}function ki(C){return C!=null&&typeof C=="object"}var Zu=be?Di(be):bl;function Sd(C,O){return C===O||Os(C,O,ro(O))}function Md(C,O,re){return re=typeof re=="function"?re:l,Os(C,O,ro(O),re)}function Ed(C){return Yu(C)&&C!=+C}function Ad(C){if(nc(C))throw new yr(h);return No(C)}function Cd(C){return C===null}function jd(C){return C==null}function Yu(C){return typeof C=="number"||ki(C)&&Fi(C)==Ve}function Ua(C){if(!ki(C)||Fi(C)!=mt)return!1;var O=Ya(C);if(O===null)return!0;var re=ei.call(O,"constructor")&&O.constructor;return typeof re=="function"&&re instanceof re&&wn.call(re)==mf}var po=Ee?Di(Ee):wl;function Td(C){return Qu(C)&&C>=-w&&C<=w}var Xu=Ie?Di(Ie):xl;function Ms(C){return typeof C=="string"||!ai(C)&&ki(C)&&Fi(C)==nt}function nn(C){return typeof C=="symbol"||ki(C)&&Fi(C)==Et}var Ma=De?Di(De):_l;function Pd(C){return C===l}function qd(C){return ki(C)&&$i(C)==Oe}function Bd(C){return ki(C)&&Fi(C)==$t}var Rd=ms(zs),Id=ms(function(C,O){return C<=O});function Ju(C){if(!C)return[];if(Qi(C))return Ms(C)?Li(C):Gi(C);if(Pa&&C[Pa])return An(C[Pa]());var O=$i(C),re=O==rt?ga:O==Ge?$n:Ea;return re(C)}function Un(C){if(!C)return C===0?C:0;if(C=mn(C),C===y||C===-y){var O=C<0?-1:1;return O*v}return C===C?C:0}function ui(C){var O=Un(C),re=O%1;return O===O?re?O-re:O:0}function ef(C){return C?la(ui(C),0,x):0}function mn(C){if(typeof C=="number")return C;if(nn(C))return o;if(_i(C)){var O=typeof C.valueOf=="function"?C.valueOf():C;C=_i(O)?O+"":O}if(typeof C!="string")return C===0?C:+C;C=ln(C);var re=Mr.test(C);return re||Sr.test(C)?Kn(C.slice(2),re?2:8):Ut.test(C)?o:+C}function tf(C){return Tn(C,Zi(C))}function $d(C){return C?la(ui(C),-w,w):C===0?C:0}function bi(C){return C==null?"":rn(C)}var Dd=_a(function(C,O){if(Na(O)||Qi(O)){Tn(O,Pi(O),C);return}for(var re in O)ei.call(O,re)&&$a(C,re,O[re])}),rf=_a(function(C,O){Tn(O,Zi(O),C)}),Es=_a(function(C,O,re,Se){Tn(O,Zi(O),C,Se)}),Ld=_a(function(C,O,re,Se){Tn(O,Pi(O),C,Se)}),Od=zn(Rs);function Fd(C,O){var re=xa(C);return O==null?re:Ro(re,O)}var zd=ci(function(C,O){C=$r(C);var re=-1,Se=O.length,Ne=Se>2?O[2]:l;for(Ne&&zi(O[0],O[1],Ne)&&(Se=1);++re<Se;)for(var it=O[re],xt=Zi(it),Tt=-1,zt=xt.length;++Tt<zt;){var wr=xt[Tt],xr=C[wr];(xr===l||_n(xr,Ci[wr])&&!ei.call(C,wr))&&(C[wr]=it[wr])}return C}),Nd=ci(function(C){return C.push(l,bu),Ke(nf,l,C)});function Hd(C,O){return Mn(C,Yr(O,3),jn)}function Ud(C,O){return Mn(C,Yr(O,3),$s)}function Wd(C,O){return C==null?C:Is(C,Yr(O,3),Zi)}function Kd(C,O){return C==null?C:Oo(C,Yr(O,3),Zi)}function Vd(C,O){return C&&jn(C,Yr(O,3))}function Gd(C,O){return C&&$s(C,Yr(O,3))}function Qd(C){return C==null?[]:os(C,Pi(C))}function Zd(C){return C==null?[]:os(C,Zi(C))}function mo(C,O,re){var Se=C==null?l:ca(C,O);return Se===l?re:Se}function Yd(C,O){return C!=null&&_u(C,O,cl)}function vo(C,O){return C!=null&&_u(C,O,dl)}var Xd=pu(function(C,O,re){O!=null&&typeof O.toString!="function"&&(O=Ga.call(O)),C[O]=re},yo(Yi)),Jd=pu(function(C,O,re){O!=null&&typeof O.toString!="function"&&(O=Ga.call(O)),ei.call(C,O)?C[O].push(re):C[O]=[re]},Yr),ep=ci(La);function Pi(C){return Qi(C)?qo(C):Fs(C)}function Zi(C){return Qi(C)?qo(C,!0):kl(C)}function tp(C,O){var re={};return O=Yr(O,3),jn(C,function(Se,Ne,it){On(re,O(Se,Ne,it),Se)}),re}function rp(C,O){var re={};return O=Yr(O,3),jn(C,function(Se,Ne,it){On(re,Ne,O(Se,Ne,it))}),re}var ip=_a(function(C,O,re){us(C,O,re)}),nf=_a(function(C,O,re,Se){us(C,O,re,Se)}),np=zn(function(C,O){var re={};if(C==null)return re;var Se=!1;O=Dr(O,function(it){return it=Xn(it,C),Se||(Se=it.length>1),it}),Tn(C,eo(C),re),Se&&(re=hn(re,j|I|P,Wl));for(var Ne=O.length;Ne--;)Ks(re,O[Ne]);return re});function ap(C,O){return af(C,ks(Yr(O)))}var sp=zn(function(C,O){return C==null?{}:Ml(C,O)});function af(C,O){if(C==null)return{};var re=Dr(eo(C),function(Se){return[Se]});return O=Yr(O),Qo(C,re,function(Se,Ne){return O(Se,Ne[0])})}function op(C,O,re){O=Xn(O,C);var Se=-1,Ne=O.length;for(Ne||(Ne=1,C=l);++Se<Ne;){var it=C==null?l:C[Pn(O[Se])];it===l&&(Se=Ne,it=re),C=Hn(it)?it.call(C):it}return C}function up(C,O,re){return C==null?C:Fa(C,O,re)}function fp(C,O,re,Se){return Se=typeof Se=="function"?Se:l,C==null?C:Fa(C,O,re,Se)}var sf=gu(Pi),of=gu(Zi);function lp(C,O,re){var Se=ai(C),Ne=Se||ea(C)||Ma(C);if(O=Yr(O,4),re==null){var it=C&&C.constructor;Ne?re=Se?new it:[]:_i(C)?re=Hn(it)?xa(Ya(C)):{}:re={}}return(Ne?vt:jn)(C,function(xt,Tt,zt){return O(re,xt,Tt,zt)}),re}function cp(C,O){return C==null?!0:Ks(C,O)}function hp(C,O,re){return C==null?C:eu(C,O,Qs(re))}function dp(C,O,re,Se){return Se=typeof Se=="function"?Se:l,C==null?C:eu(C,O,Qs(re),Se)}function Ea(C){return C==null?[]:Aa(C,Pi(C))}function pp(C){return C==null?[]:Aa(C,Zi(C))}function mp(C,O,re){return re===l&&(re=O,O=l),re!==l&&(re=mn(re),re=re===re?re:0),O!==l&&(O=mn(O),O=O===O?O:0),la(mn(C),O,re)}function vp(C,O,re){return O=Un(O),re===l?(re=O,O=0):re=Un(re),C=mn(C),pl(C,O,re)}function gp(C,O,re){if(re&&typeof re!="boolean"&&zi(C,O,re)&&(O=re=l),re===l&&(typeof O=="boolean"?(re=O,O=l):typeof C=="boolean"&&(re=C,C=l)),C===l&&O===l?(C=0,O=1):(C=Un(C),O===l?(O=C,C=0):O=Un(O)),C>O){var Se=C;C=O,O=Se}if(re||C%1||O%1){var Ne=To();return Ii(C+Ne*(O-C+Xi("1e-"+((Ne+"").length-1))),O)}return Hs(C,O)}var yp=ka(function(C,O,re){return O=O.toLowerCase(),C+(re?uf(O):O)});function uf(C){return go(bi(C).toLowerCase())}function ff(C){return C=bi(C),C&&C.replace(er,Vn).replace(_r,"")}function bp(C,O,re){C=bi(C),O=rn(O);var Se=C.length;re=re===l?Se:la(ui(re),0,Se);var Ne=re;return re-=O.length,re>=0&&C.slice(re,Ne)==O}function wp(C){return C=bi(C),C&&ot.test(C)?C.replace(at,As):C}function xp(C){return C=bi(C),C&&Ot.test(C)?C.replace(Pt,"\\$&"):C}var _p=ka(function(C,O,re){return C+(re?"-":"")+O.toLowerCase()}),kp=ka(function(C,O,re){return C+(re?" ":"")+O.toLowerCase()}),Sp=cu("toLowerCase");function Mp(C,O,re){C=bi(C),O=ui(O);var Se=O?Cn(C):0;if(!O||Se>=O)return C;var Ne=(O-Se)/2;return ps(ts(Ne),re)+C+ps(es(Ne),re)}function Ep(C,O,re){C=bi(C),O=ui(O);var Se=O?Cn(C):0;return O&&Se<O?C+ps(O-Se,re):C}function Ap(C,O,re){C=bi(C),O=ui(O);var Se=O?Cn(C):0;return O&&Se<O?ps(O-Se,re)+C:C}function Cp(C,O,re){return re||O==null?O=0:O&&(O=+O),Mf(bi(C).replace(Te,""),O||0)}function jp(C,O,re){return(re?zi(C,O,re):O===l)?O=1:O=ui(O),Us(bi(C),O)}function Tp(){var C=arguments,O=bi(C[0]);return C.length<3?O:O.replace(C[1],C[2])}var Pp=ka(function(C,O,re){return C+(re?"_":"")+O.toLowerCase()});function qp(C,O,re){return re&&typeof re!="number"&&zi(C,O,re)&&(O=re=l),re=re===l?x:re>>>0,re?(C=bi(C),C&&(typeof O=="string"||O!=null&&!po(O))&&(O=rn(O),!O&&Vi(C))?Jn(Li(C),0,re):C.split(O,re)):[]}var Bp=ka(function(C,O,re){return C+(re?" ":"")+go(O)});function Rp(C,O,re){return C=bi(C),re=re==null?0:la(ui(re),0,C.length),O=rn(O),C.slice(re,re+O.length)==O}function Ip(C,O,re){var Se=Qe.templateSettings;re&&zi(C,O,re)&&(O=l),C=bi(C),O=Es({},O,Se,yu);var Ne=Es({},O.imports,Se.imports,yu),it=Pi(Ne),xt=Aa(Ne,it),Tt,zt,wr=0,xr=O.interpolate||kr,Er="__p += '",Ir=oi((O.escape||kr).source+"|"+xr.source+"|"+(xr===Yt?ct:kr).source+"|"+(O.evaluate||kr).source+"|$","g"),Hr="//# sourceURL="+(ei.call(O,"sourceURL")?(O.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qn+"]")+`
`;C.replace(Ir,function(Jr,pi,vi,an,Ni,sn){return vi||(vi=an),Er+=C.slice(wr,sn).replace(vr,Cs),pi&&(Tt=!0,Er+=`' +
__e(`+pi+`) +
'`),Ni&&(zt=!0,Er+=`';
`+Ni+`;
__p += '`),vi&&(Er+=`' +
((__t = (`+vi+`)) == null ? '' : __t) +
'`),wr=sn+Jr.length,Jr}),Er+=`';
`;var Xr=ei.call(O,"variable")&&O.variable;if(!Xr)Er=`with (obj) {
`+Er+`
}
`;else if(lt.test(Xr))throw new yr(k);Er=(zt?Er.replace(Rt,""):Er).replace(yt,"$1").replace(le,"$1;"),Er="function("+(Xr||"obj")+`) {
`+(Xr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Tt?", __e = _.escape":"")+(zt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Er+`return __p
}`;var fi=cf(function(){return Lr(it,Hr+"return "+Er).apply(l,xt)});if(fi.source=Er,ho(fi))throw fi;return fi}function $p(C){return bi(C).toLowerCase()}function Dp(C){return bi(C).toUpperCase()}function Lp(C,O,re){if(C=bi(C),C&&(re||O===l))return ln(C);if(!C||!(O=rn(O)))return C;var Se=Li(C),Ne=Li(O),it=gi(Se,Ne),xt=sa(Se,Ne)+1;return Jn(Se,it,xt).join("")}function Op(C,O,re){if(C=bi(C),C&&(re||O===l))return C.slice(0,Ka(C)+1);if(!C||!(O=rn(O)))return C;var Se=Li(C),Ne=sa(Se,Li(O))+1;return Jn(Se,0,Ne).join("")}function Fp(C,O,re){if(C=bi(C),C&&(re||O===l))return C.replace(Te,"");if(!C||!(O=rn(O)))return C;var Se=Li(C),Ne=gi(Se,Li(O));return Jn(Se,Ne).join("")}function zp(C,O){var re=ke,Se=T;if(_i(O)){var Ne="separator"in O?O.separator:Ne;re="length"in O?ui(O.length):re,Se="omission"in O?rn(O.omission):Se}C=bi(C);var it=C.length;if(Vi(C)){var xt=Li(C);it=xt.length}if(re>=it)return C;var Tt=re-Cn(Se);if(Tt<1)return Se;var zt=xt?Jn(xt,0,Tt).join(""):C.slice(0,Tt);if(Ne===l)return zt+Se;if(xt&&(Tt+=zt.length-Tt),po(Ne)){if(C.slice(Tt).search(Ne)){var wr,xr=zt;for(Ne.global||(Ne=oi(Ne.source,bi(Nt.exec(Ne))+"g")),Ne.lastIndex=0;wr=Ne.exec(xr);)var Er=wr.index;zt=zt.slice(0,Er===l?Tt:Er)}}else if(C.indexOf(rn(Ne),Tt)!=Tt){var Ir=zt.lastIndexOf(Ne);Ir>-1&&(zt=zt.slice(0,Ir))}return zt+Se}function Np(C){return C=bi(C),C&&Be.test(C)?C.replace(wt,Ta):C}var Hp=ka(function(C,O,re){return C+(re?" ":"")+O.toUpperCase()}),go=cu("toUpperCase");function lf(C,O,re){return C=bi(C),O=re?l:O,O===l?Ca(C)?qt(C):hi(C):C.match(O)||[]}var cf=ci(function(C,O){try{return Ke(C,l,O)}catch(re){return ho(re)?re:new yr(re)}}),Up=zn(function(C,O){return vt(O,function(re){re=Pn(re),On(C,re,lo(C[re],C))}),C});function Wp(C){var O=C==null?0:C.length,re=Yr();return C=O?Dr(C,function(Se){if(typeof Se[1]!="function")throw new li(S);return[re(Se[0]),Se[1]]}):[],ci(function(Se){for(var Ne=-1;++Ne<O;){var it=C[Ne];if(Ke(it[0],this,Se))return Ke(it[1],this,Se)}})}function Kp(C){return ul(hn(C,j))}function yo(C){return function(){return C}}function Vp(C,O){return C==null||C!==C?O:C}var Gp=du(),Qp=du(!0);function Yi(C){return C}function bo(C){return Ho(typeof C=="function"?C:hn(C,j))}function Zp(C){return Wo(hn(C,j))}function Yp(C,O){return Ko(C,hn(O,j))}var Xp=ci(function(C,O){return function(re){return La(re,C,O)}}),Jp=ci(function(C,O){return function(re){return La(C,re,O)}});function wo(C,O,re){var Se=Pi(O),Ne=os(O,Se);re==null&&!(_i(O)&&(Ne.length||!Se.length))&&(re=O,O=C,C=this,Ne=os(O,Pi(O)));var it=!(_i(re)&&"chain"in re)||!!re.chain,xt=Hn(C);return vt(Ne,function(Tt){var zt=O[Tt];C[Tt]=zt,xt&&(C.prototype[Tt]=function(){var wr=this.__chain__;if(it||wr){var xr=C(this.__wrapped__),Er=xr.__actions__=Gi(this.__actions__);return Er.push({func:zt,args:arguments,thisArg:C}),xr.__chain__=wr,xr}return zt.apply(C,ni([this.value()],arguments))})}),C}function e0(){return yi._===this&&(yi._=vf),this}function xo(){}function t0(C){return C=ui(C),ci(function(O){return Vo(O,C)})}var r0=Ys(Dr),i0=Ys(Jt),n0=Ys(xi);function hf(C){return no(C)?In(Pn(C)):El(C)}function a0(C){return function(O){return C==null?l:ca(C,O)}}var s0=mu(),o0=mu(!0);function _o(){return[]}function ko(){return!1}function u0(){return{}}function f0(){return""}function l0(){return!0}function c0(C,O){if(C=ui(C),C<1||C>w)return[];var re=x,Se=Ii(C,x);O=Yr(O),C-=x;for(var Ne=na(Se,O);++re<C;)O(re);return Ne}function h0(C){return ai(C)?Dr(C,Pn):nn(C)?[C]:Gi(Pu(bi(C)))}function d0(C){var O=++pf;return bi(C)+O}var p0=ds(function(C,O){return C+O},0),m0=Xs("ceil"),v0=ds(function(C,O){return C/O},1),g0=Xs("floor");function y0(C){return C&&C.length?ss(C,Yi,Ds):l}function b0(C,O){return C&&C.length?ss(C,Yr(O,2),Ds):l}function w0(C){return Ji(C,Yi)}function x0(C,O){return Ji(C,Yr(O,2))}function _0(C){return C&&C.length?ss(C,Yi,zs):l}function k0(C,O){return C&&C.length?ss(C,Yr(O,2),zs):l}var S0=ds(function(C,O){return C*O},1),M0=Xs("round"),E0=ds(function(C,O){return C-O},0);function A0(C){return C&&C.length?Ri(C,Yi):0}function C0(C,O){return C&&C.length?Ri(C,Yr(O,2)):0}return Qe.after=Zh,Qe.ary=Nu,Qe.assign=Dd,Qe.assignIn=rf,Qe.assignInWith=Es,Qe.assignWith=Ld,Qe.at=Od,Qe.before=Hu,Qe.bind=lo,Qe.bindAll=Up,Qe.bindKey=Uu,Qe.castArray=ud,Qe.chain=Ou,Qe.chunk=cc,Qe.compact=hc,Qe.concat=dc,Qe.cond=Wp,Qe.conforms=Kp,Qe.constant=yo,Qe.countBy=Mh,Qe.create=Fd,Qe.curry=Wu,Qe.curryRight=Ku,Qe.debounce=Vu,Qe.defaults=zd,Qe.defaultsDeep=Nd,Qe.defer=Yh,Qe.delay=Xh,Qe.difference=pc,Qe.differenceBy=mc,Qe.differenceWith=vc,Qe.drop=gc,Qe.dropRight=yc,Qe.dropRightWhile=bc,Qe.dropWhile=wc,Qe.fill=xc,Qe.filter=Ah,Qe.flatMap=Ph,Qe.flatMapDeep=qh,Qe.flatMapDepth=Bh,Qe.flatten=Iu,Qe.flattenDeep=_c,Qe.flattenDepth=kc,Qe.flip=Jh,Qe.flow=Gp,Qe.flowRight=Qp,Qe.fromPairs=Sc,Qe.functions=Qd,Qe.functionsIn=Zd,Qe.groupBy=Rh,Qe.initial=Ec,Qe.intersection=Ac,Qe.intersectionBy=Cc,Qe.intersectionWith=jc,Qe.invert=Xd,Qe.invertBy=Jd,Qe.invokeMap=$h,Qe.iteratee=bo,Qe.keyBy=Dh,Qe.keys=Pi,Qe.keysIn=Zi,Qe.map=ws,Qe.mapKeys=tp,Qe.mapValues=rp,Qe.matches=Zp,Qe.matchesProperty=Yp,Qe.memoize=_s,Qe.merge=ip,Qe.mergeWith=nf,Qe.method=Xp,Qe.methodOf=Jp,Qe.mixin=wo,Qe.negate=ks,Qe.nthArg=t0,Qe.omit=np,Qe.omitBy=ap,Qe.once=ed,Qe.orderBy=Lh,Qe.over=r0,Qe.overArgs=td,Qe.overEvery=i0,Qe.overSome=n0,Qe.partial=co,Qe.partialRight=Gu,Qe.partition=Oh,Qe.pick=sp,Qe.pickBy=af,Qe.property=hf,Qe.propertyOf=a0,Qe.pull=Bc,Qe.pullAll=Du,Qe.pullAllBy=Rc,Qe.pullAllWith=Ic,Qe.pullAt=$c,Qe.range=s0,Qe.rangeRight=o0,Qe.rearg=rd,Qe.reject=Nh,Qe.remove=Dc,Qe.rest=id,Qe.reverse=uo,Qe.sampleSize=Uh,Qe.set=up,Qe.setWith=fp,Qe.shuffle=Wh,Qe.slice=Lc,Qe.sortBy=Qh,Qe.sortedUniq=Wc,Qe.sortedUniqBy=Kc,Qe.split=qp,Qe.spread=nd,Qe.tail=Vc,Qe.take=Gc,Qe.takeRight=Qc,Qe.takeRightWhile=Zc,Qe.takeWhile=Yc,Qe.tap=vh,Qe.throttle=ad,Qe.thru=bs,Qe.toArray=Ju,Qe.toPairs=sf,Qe.toPairsIn=of,Qe.toPath=h0,Qe.toPlainObject=tf,Qe.transform=lp,Qe.unary=sd,Qe.union=Xc,Qe.unionBy=Jc,Qe.unionWith=eh,Qe.uniq=th,Qe.uniqBy=ih,Qe.uniqWith=nh,Qe.unset=cp,Qe.unzip=fo,Qe.unzipWith=Lu,Qe.update=hp,Qe.updateWith=dp,Qe.values=Ea,Qe.valuesIn=pp,Qe.without=ah,Qe.words=lf,Qe.wrap=od,Qe.xor=oh,Qe.xorBy=uh,Qe.xorWith=fh,Qe.zip=lh,Qe.zipObject=hh,Qe.zipObjectDeep=ph,Qe.zipWith=mh,Qe.entries=sf,Qe.entriesIn=of,Qe.extend=rf,Qe.extendWith=Es,wo(Qe,Qe),Qe.add=p0,Qe.attempt=cf,Qe.camelCase=yp,Qe.capitalize=uf,Qe.ceil=m0,Qe.clamp=mp,Qe.clone=fd,Qe.cloneDeep=cd,Qe.cloneDeepWith=hd,Qe.cloneWith=ld,Qe.conformsTo=dd,Qe.deburr=ff,Qe.defaultTo=Vp,Qe.divide=v0,Qe.endsWith=bp,Qe.eq=_n,Qe.escape=wp,Qe.escapeRegExp=xp,Qe.every=Eh,Qe.find=jh,Qe.findIndex=Bu,Qe.findKey=Hd,Qe.findLast=Th,Qe.findLastIndex=Ru,Qe.findLastKey=Ud,Qe.floor=g0,Qe.forEach=Fu,Qe.forEachRight=zu,Qe.forIn=Wd,Qe.forInRight=Kd,Qe.forOwn=Vd,Qe.forOwnRight=Gd,Qe.get=mo,Qe.gt=pd,Qe.gte=md,Qe.has=Yd,Qe.hasIn=vo,Qe.head=$u,Qe.identity=Yi,Qe.includes=Ih,Qe.indexOf=Mc,Qe.inRange=vp,Qe.invoke=ep,Qe.isArguments=pa,Qe.isArray=ai,Qe.isArrayBuffer=vd,Qe.isArrayLike=Qi,Qe.isArrayLikeObject=Si,Qe.isBoolean=gd,Qe.isBuffer=ea,Qe.isDate=yd,Qe.isElement=bd,Qe.isEmpty=wd,Qe.isEqual=xd,Qe.isEqualWith=_d,Qe.isError=ho,Qe.isFinite=kd,Qe.isFunction=Hn,Qe.isInteger=Qu,Qe.isLength=Ss,Qe.isMap=Zu,Qe.isMatch=Sd,Qe.isMatchWith=Md,Qe.isNaN=Ed,Qe.isNative=Ad,Qe.isNil=jd,Qe.isNull=Cd,Qe.isNumber=Yu,Qe.isObject=_i,Qe.isObjectLike=ki,Qe.isPlainObject=Ua,Qe.isRegExp=po,Qe.isSafeInteger=Td,Qe.isSet=Xu,Qe.isString=Ms,Qe.isSymbol=nn,Qe.isTypedArray=Ma,Qe.isUndefined=Pd,Qe.isWeakMap=qd,Qe.isWeakSet=Bd,Qe.join=Tc,Qe.kebabCase=_p,Qe.last=pn,Qe.lastIndexOf=Pc,Qe.lowerCase=kp,Qe.lowerFirst=Sp,Qe.lt=Rd,Qe.lte=Id,Qe.max=y0,Qe.maxBy=b0,Qe.mean=w0,Qe.meanBy=x0,Qe.min=_0,Qe.minBy=k0,Qe.stubArray=_o,Qe.stubFalse=ko,Qe.stubObject=u0,Qe.stubString=f0,Qe.stubTrue=l0,Qe.multiply=S0,Qe.nth=qc,Qe.noConflict=e0,Qe.noop=xo,Qe.now=xs,Qe.pad=Mp,Qe.padEnd=Ep,Qe.padStart=Ap,Qe.parseInt=Cp,Qe.random=gp,Qe.reduce=Fh,Qe.reduceRight=zh,Qe.repeat=jp,Qe.replace=Tp,Qe.result=op,Qe.round=M0,Qe.runInContext=st,Qe.sample=Hh,Qe.size=Vh,Qe.snakeCase=Pp,Qe.some=Gh,Qe.sortedIndex=Oc,Qe.sortedIndexBy=Fc,Qe.sortedIndexOf=zc,Qe.sortedLastIndex=Nc,Qe.sortedLastIndexBy=Hc,Qe.sortedLastIndexOf=Uc,Qe.startCase=Bp,Qe.startsWith=Rp,Qe.subtract=E0,Qe.sum=A0,Qe.sumBy=C0,Qe.template=Ip,Qe.times=c0,Qe.toFinite=Un,Qe.toInteger=ui,Qe.toLength=ef,Qe.toLower=$p,Qe.toNumber=mn,Qe.toSafeInteger=$d,Qe.toString=bi,Qe.toUpper=Dp,Qe.trim=Lp,Qe.trimEnd=Op,Qe.trimStart=Fp,Qe.truncate=zp,Qe.unescape=Np,Qe.uniqueId=d0,Qe.upperCase=Hp,Qe.upperFirst=go,Qe.each=Fu,Qe.eachRight=zu,Qe.first=$u,wo(Qe,function(){var C={};return jn(Qe,function(O,re){ei.call(Qe.prototype,re)||(C[re]=O)}),C}(),{chain:!1}),Qe.VERSION=d,vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(C){Qe[C].placeholder=Qe}),vt(["drop","take"],function(C,O){mi.prototype[C]=function(re){re=re===l?1:ji(ui(re),0);var Se=this.__filtered__&&!O?new mi(this):this.clone();return Se.__filtered__?Se.__takeCount__=Ii(re,Se.__takeCount__):Se.__views__.push({size:Ii(re,x),type:C+(Se.__dir__<0?"Right":"")}),Se},mi.prototype[C+"Right"]=function(re){return this.reverse()[C](re).reverse()}}),vt(["filter","map","takeWhile"],function(C,O){var re=O+1,Se=re==b||re==c;mi.prototype[C]=function(Ne){var it=this.clone();return it.__iteratees__.push({iteratee:Yr(Ne,3),type:re}),it.__filtered__=it.__filtered__||Se,it}}),vt(["head","last"],function(C,O){var re="take"+(O?"Right":"");mi.prototype[C]=function(){return this[re](1).value()[0]}}),vt(["initial","tail"],function(C,O){var re="drop"+(O?"":"Right");mi.prototype[C]=function(){return this.__filtered__?new mi(this):this[re](1)}}),mi.prototype.compact=function(){return this.filter(Yi)},mi.prototype.find=function(C){return this.filter(C).head()},mi.prototype.findLast=function(C){return this.reverse().find(C)},mi.prototype.invokeMap=ci(function(C,O){return typeof C=="function"?new mi(this):this.map(function(re){return La(re,C,O)})}),mi.prototype.reject=function(C){return this.filter(ks(Yr(C)))},mi.prototype.slice=function(C,O){C=ui(C);var re=this;return re.__filtered__&&(C>0||O<0)?new mi(re):(C<0?re=re.takeRight(-C):C&&(re=re.drop(C)),O!==l&&(O=ui(O),re=O<0?re.dropRight(-O):re.take(O-C)),re)},mi.prototype.takeRightWhile=function(C){return this.reverse().takeWhile(C).reverse()},mi.prototype.toArray=function(){return this.take(x)},jn(mi.prototype,function(C,O){var re=/^(?:filter|find|map|reject)|While$/.test(O),Se=/^(?:head|last)$/.test(O),Ne=Qe[Se?"take"+(O=="last"?"Right":""):O],it=Se||/^find/.test(O);Ne&&(Qe.prototype[O]=function(){var xt=this.__wrapped__,Tt=Se?[1]:arguments,zt=xt instanceof mi,wr=Tt[0],xr=zt||ai(xt),Er=function(pi){var vi=Ne.apply(Qe,ni([pi],Tt));return Se&&Ir?vi[0]:vi};xr&&re&&typeof wr=="function"&&wr.length!=1&&(zt=xr=!1);var Ir=this.__chain__,Hr=!!this.__actions__.length,Xr=it&&!Ir,fi=zt&&!Hr;if(!it&&xr){xt=fi?xt:new mi(this);var Jr=C.apply(xt,Tt);return Jr.__actions__.push({func:bs,args:[Er],thisArg:l}),new cn(Jr,Ir)}return Xr&&fi?C.apply(this,Tt):(Jr=this.thru(Er),Xr?Se?Jr.value()[0]:Jr.value():Jr)})}),vt(["pop","push","shift","sort","splice","unshift"],function(C){var O=Ai[C],re=/^(?:push|sort|unshift)$/.test(C)?"tap":"thru",Se=/^(?:pop|shift)$/.test(C);Qe.prototype[C]=function(){var Ne=arguments;if(Se&&!this.__chain__){var it=this.value();return O.apply(ai(it)?it:[],Ne)}return this[re](function(xt){return O.apply(ai(xt)?xt:[],Ne)})}}),jn(mi.prototype,function(C,O){var re=Qe[O];if(re){var Se=re.name+"";ei.call(wa,Se)||(wa[Se]=[]),wa[Se].push({name:O,func:re})}}),wa[hs(l,F).name]=[{name:"wrapper",func:l}],mi.prototype.clone=qf,mi.prototype.reverse=Bf,mi.prototype.value=Rf,Qe.prototype.at=gh,Qe.prototype.chain=yh,Qe.prototype.commit=bh,Qe.prototype.next=wh,Qe.prototype.plant=_h,Qe.prototype.reverse=kh,Qe.prototype.toJSON=Qe.prototype.valueOf=Qe.prototype.value=Sh,Qe.prototype.first=Qe.prototype.head,Pa&&(Qe.prototype[Pa]=xh),Qe},Gt=Ht();Ui?((Ui.exports=Gt)._=Gt,Rn._=Gt):yi._=Gt}).call(commonjsGlobal)}(lodash,lodash.exports);var lodashExports=lodash.exports;const _$1=getDefaultExportFromCjs$1(lodashExports);window.$=jqueryExports.$,window.jQuery=jqueryExports.jQuery,global$1.$=jqueryExports.$,global$1.jQuery=jqueryExports.jQuery;const __APP_VERSION__="",APP_VERSION=__APP_VERSION__,IriSP$1={VERSION:APP_VERSION,jQuery:jqueryExports.jQuery,libFiles:{locations:{}}};window.IriSP=IriSP$1;const Model=function(t){function n(p,b,e){e=e||10;for(var c=b.toString(e);c.length<p;)c="0"+c;return c}function l(p){return n(p,Math.floor(Math.random()*Math.pow(16,p)),16)}var d=l(8)+"-"+l(4)+"-",m=Math.floor(Math.random()*65536),h=["[aáàâä]","[cç]","[eéèêë]","[iíìîï]","[oóòôö]","[uùûü]"],S=["̀","́","̂","̃","̧","｛","｝","（","）","［","］","【","】","、","・","‥","。","「","」","『","』","〜","：","！","？","　",","," ",";","(",")",".","*","+","\\","?","|","{","}","[","]","^","#","/"],k={},A=k._SOURCE_STATUS_EMPTY=0,B=k._SOURCE_STATUS_WAITING=1,M=k._SOURCE_STATUS_READY=2,j=k.extendPrototype=function(p,b){var e=b.prototype,c=p.prototype;for(var y in e)e.hasOwnProperty(y)&&(c[y]=e[y])},I=k.getUID=function(){return d+n(4,++m%65536,16)+"-"+l(4)+"-"+l(6)+l(6)};k.isLocalURL=function(p){var b=p.match(/^(\w+:)\/\/([^/]+)/);return b?b[1]===document.location.protocol&&b[2]===document.location.host:!0};var P=k.regexpFromTextOrArray=function(p,c,y){var c=c||!1,y=y||!1;function w(x){return x.replace(/([\\\*\+\?\|\{\[\}\]\(\)\^\$\.\#\/])/gm,"\\$1")}var v=typeof p=="string"?w(p):_$1(p).map(w).join("|"),o="im";return c||(v="("+v+")",o+="g"),y&&(v="^"+v+"$"),new RegExp(v,o)},$=k.fullTextRegexps=function(p){for(var b="[\\"+S.join("\\")+"]",e=new RegExp(b,"gm"),c=p.toLowerCase().replace(e,""),y=_$1(h).map(function(x){return new RegExp(x)}),w="",v=0;v<c.length;v++){v&&(w+=b+"*");var o=c[v];_$1(h).each(function(x,E){o=o.replace(y[E],x)}),w+=o}return"("+w+")"};k.isoToDate=function(p){var b="([0-9]{4})(-([0-9]{2})(-([0-9]{2})(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?",e=p.match(new RegExp(b)),c=0,y=new Date(e[1],0,1);e[3]&&y.setMonth(e[3]-1),e[5]&&y.setDate(e[5]),e[7]&&y.setHours(e[7]),e[8]&&y.setMinutes(e[8]),e[10]&&y.setSeconds(e[10]),e[12]&&y.setMilliseconds(+("0."+e[12])*1e3),e[14]&&(c=Number(e[16])*60+Number(e[17]),c*=e[15]=="-"?1:-1),c-=y.getTimezoneOffset();const w=Number(y)+c*60*1e3;var v=new Date;return v.setTime(Number(w)),v},k.dateToIso=function(p){var b=p?new Date(p):new Date;return b.getUTCFullYear()+"-"+n(2,b.getUTCMonth()+1)+"-"+n(2,b.getUTCDate())+"T"+n(2,b.getUTCHours())+":"+n(2,b.getUTCMinutes())+":"+n(2,b.getUTCSeconds())+"Z"};var z=k.List=function(p){if(Array.call(this),this.directory=p,this.idIndex=[],this.__events={},typeof p>"u")throw console.trace(),"Error : new List(directory): directory is undefined";var b=this;this.on("clear-search",function(){b.searching=!1,b.regexp=void 0,b.forEach(function(e){e.found=void 0}),b.trigger("search-cleared")})};z.prototype=new Array,z.prototype.hasId=function(p){return _$1(this.idIndex).includes(p)},typeof Array.prototype.forEach>"u"&&(z.prototype.forEach=function(p){var b=this;_$1(this).forEach(function(e,c){p(e,c,b)})}),typeof Array.prototype.map>"u"&&(z.prototype.map=function(p){var b=this;return _$1(this).map(function(e,c){return p(e,c,b)})}),z.prototype.pluck=function(p){return this.map(function(b){return b[p]})},z.prototype.filter=function(p){var b=this,e=new z(this.directory);return e.addElements(_$1(this).filter(function(c,y){return p(c,y,b)})),e},z.prototype.slice=function(p,b){var e=new z(this.directory);return e.addElements(Array.prototype.slice.call(this,p,b)),e},z.prototype.splice=function(p,b){var e=new z(this.directory);return e.addElements(Array.prototype.splice.call(this,p,b)),this.idIndex.splice(p,b),e},z.prototype.sortBy=function(p){var b=this,e=new z(this.directory);return e.addElements(_$1(this).sortBy(function(c,y){return p(c,y,b)})),e},z.prototype.searchByTitle=function(p,e){var e=e||!1,c=P(p,!0,e);return this.filter(function(y){return c.test(y.title)})},z.prototype.searchByDescription=function(p,e){var e=e||!1,c=P(p,!0,e);return this.filter(function(y){return c.test(y.description)})},z.prototype.searchByTextFields=function(p,e){var e=e||!1,c=P(p,!0,e);return this.filter(function(y){var w=(y.keywords||y.getTagTexts()||[]).join(", ");return c.test(y.description)||c.test(y.title)||c.test(w)})},z.prototype.search=function(p){if(!p)return this.trigger("clear-search"),this;this.searching=!0,this.trigger("search",p);var b=$(p),e=new RegExp(b,"im");this.regexp=new RegExp(b,"gim");var c=this.filter(function(y,w){var v=e.test(y.title),o=e.test(y.description),x=!!(v||o);return y.found=x,y.trigger(x?"found":"not-found"),x});return this.trigger(c.length?"found":"not-found",c),c},z.prototype.searchByTags=function(p){if(!p)return this.trigger("clear-search"),this;this.searching=!0,this.trigger("search",p);var b=$(p),e=new RegExp(b,"im");this.regexp=new RegExp(b,"gim");var c=this.filter(function(y,w){var v=e.test(y.getTagTexts());return y.found=v,y.trigger(v?"found":"not-found"),v});return this.trigger(c.length?"found":"not-found",c),c},z.prototype.getTitles=function(){return this.map(function(p){return p.title})},z.prototype.addId=function(p){var b=this.directory.getElement(p);!this.hasId(p)&&typeof b<"u"&&(this.idIndex.push(p),Array.prototype.push.call(this,b))},z.prototype.push=function(p){if(!(typeof p>"u")){var b=_$1(this.idIndex).indexOf(p.id);b===-1?(this.idIndex.push(p.id),Array.prototype.push.call(this,p)):this[b]=p}},z.prototype.addIds=function(p){p.length;var b=this;_$1(p).forEach(function(e){b.addId(e)})},z.prototype.addElements=function(p){var b=this;_$1(p).forEach(function(e){b.push(e)})},z.prototype.removeId=function(p,e){var e=e||!1,c=_$1(this.idIndex).indexOf(p);c!==-1&&this.splice(c,1),e&&delete this.directory.elements[p]},z.prototype.removeElement=function(p,b){this.removeId(p.id)},z.prototype.removeIds=function(p,b){var e=this;_$1(p).forEach(function(c){e.removeId(c)})},z.prototype.removeElements=function(p,b){var e=this;_$1(p).forEach(function(c){e.removeElement(c)})},z.prototype.on=function(p,b){typeof this.__events[p]>"u"&&(this.__events[p]=[]),this.__events[p].push(b)},z.prototype.off=function(p,b){typeof this.__events[p]<"u"&&(this.__events[p]=t._(this.__events[p]).reject(function(e){return e===b}))},z.prototype.trigger=function(p,b){var e=this;_$1(this.__events[p]).each(function(c){c.call(e,b)})};var N=k.Time=function(p){this.milliseconds=0,this.setMilliseconds(p)};N.prototype.setMilliseconds=function(p){var b=this.milliseconds;switch(typeof p){case"string":this.milliseconds=parseInt(p);break;case"number":this.milliseconds=Math.floor(p);break;case"object":this.milliseconds=parseInt(p.valueOf());break;default:this.milliseconds=0}this.milliseconds===NaN&&(this.milliseconds=b)},N.prototype.setSeconds=function(p){this.milliseconds=1e3*p},N.prototype.getSeconds=function(){return this.milliseconds/1e3},N.prototype.getHMS=function(){var p=Math.abs(Math.floor(this.getSeconds()));return{hours:Math.floor(p/3600),minutes:Math.floor(p/60)%60,seconds:p%60,milliseconds:this.milliseconds%1e3}},N.prototype.add=function(p){this.milliseconds+=new N(p).milliseconds},N.prototype.valueOf=function(){return this.milliseconds},N.prototype.toString=function(p){var b=this.getHMS(),e="";return b.hours&&(e+=b.hours+":"),e+=n(2,b.minutes)+":"+n(2,b.seconds),p&&(e+="."+Math.floor(b.milliseconds/100)),e};var F=k.Reference=function(p,b){this.source=p,this.id=b,typeof b=="object"?this.isList=!0:this.isList=!1,this.refresh()};F.prototype.refresh=function(){this.isList?(this.contents=new z(this.source.directory),this.contents.addIds(this.id)):this.contents=this.source.getElement(this.id)},F.prototype.getContents=function(){return(typeof this.contents>"u"||this.isList&&this.contents.length!=this.id.length)&&this.refresh(),this.contents},F.prototype.isOrHasId=function(p){return this.isList?_$1(this.id).indexOf(p)!==-1:this.id==p};var U=k.Element=function(p,b){this.elementType="element",this.title="",this.description="",this.__events={},!(typeof b>"u")&&((typeof p>"u"||!p)&&(p=I()),this.id=p,this.source=b,b!==this&&this.source.directory.addElement(this))};U.prototype.toString=function(){return this.elementType+(this.elementType!=="element"?", id="+this.id+', title="'+this.title+'"':"")},U.prototype.setReference=function(p,b){this[p]=new F(this.source,b)},U.prototype.getReference=function(p){if(typeof this[p]<"u")return this[p].getContents()},U.prototype.getRelated=function(p,b){b=typeof b<"u"&&b;var e=this;return this.source.getList(p,b).filter(function(c){var y=c[e.elementType];return y&&y.isOrHasId(e.id)})},U.prototype.on=function(p,b){typeof this.__events[p]>"u"&&(this.__events[p]=[]),this.__events[p].push(b)},U.prototype.off=function(p,b){typeof this.__events[p]<"u"&&(this.__events[p]=_$1(this.__events[p]).reject(function(e){return e===b}))},U.prototype.trigger=function(p,b){var e=this;_$1(this.__events[p]).each(function(c){c.call(e,b)})};var J=k.Playable=function(p,b){if(U.call(this,p,b),!(typeof b>"u")){this.elementType="playable",this.currentTime=new N,this.volume=.5,this.paused=!0,this.muted=!1,this.timeRange=!1,this.loadedMetadata=!1;var e=this;this.on("play",function(){e.paused=!1}),this.on("pause",function(){e.paused=!0}),this.on("timeupdate",function(c){e.currentTime=c,e.getAnnotations().filter(function(y){return(y.end<=c||y.begin>c)&&y.playing}).forEach(function(y){y.playing=!1,y.trigger("leave"),e.trigger("leave-annotation",y)}),e.getAnnotations().filter(function(y){return y.begin<=c&&y.end>c&&!y.playing}).forEach(function(y){y.playing=!0,y.trigger("enter"),e.trigger("enter-annotation",y)}),e.getTimeRange()&&(e.getTimeRange()[0]>c&&(e.pause(),e.setCurrentTime(e.getTimeRange()[0])),e.getTimeRange()[1]<c&&(e.pause(),e.setCurrentTime(e.getTimeRange()[1])))}),this.on("loadedmetadata",function(){e.loadedMetadata=!0})}};j(J,U),J.prototype.getCurrentTime=function(){return this.currentTime},J.prototype.getVolume=function(){return this.volume},J.prototype.getPaused=function(){return this.paused},J.prototype.getMuted=function(){return this.muted},J.prototype.getTimeRange=function(){return this.timeRange},J.prototype.setCurrentTime=function(p){this.trigger("setcurrenttime",p)},J.prototype.setVolume=function(p){this.trigger("setvolume",p)},J.prototype.setMuted=function(p){this.trigger("setmuted",p)},J.prototype.setTimeRange=function(p,b){if(p<b&&p>=0&&b>0)return this.trigger("settimerange",[p,b])},J.prototype.resetTimeRange=function(){return this.trigger("resettimerange")},J.prototype.play=function(){this.trigger("setplay")},J.prototype.pause=function(){this.trigger("setpause")},J.prototype.show=function(){},J.prototype.hide=function(){};var te=k.Media=function(p,b){J.call(this,p,b),this.elementType="media",this.duration=new N,this.video=""};j(te,J);var te=k.Media=function(p,b){J.call(this,p,b),this.elementType="media",this.duration=new N,this.video=""};j(te,J),te.prototype.setDuration=function(p){this.duration.setMilliseconds(p)},te.prototype.getAnnotations=function(){return this.getRelated("annotation")},te.prototype.getAnnotationsByTypeTitle=function(p){var b=this.source.getAnnotationTypes().searchByTitle(p).pluck("id");return b.length?this.getAnnotations().filter(function(e){return _$1(b).indexOf(e.getAnnotationType().id)!==-1}):new z(this.source.directory)};var se=k.Tag=function(p,b){U.call(this,p,b),this.elementType="tag"};j(se,U),se.prototype.getAnnotations=function(){return this.getRelated("annotation")};var de=k.AnnotationType=function(p,b){U.call(this,p,b),this.elementType="annotationType"};j(de,U),de.prototype.getAnnotations=function(){return this.getRelated("annotation")};var Q=k.Annotation=function(p,b){U.call(this,p,b),this.elementType="annotation",this.begin=new N,this.end=new N,this.tag=new F(b,[]),this.playing=!1;var e=this;this.on("click",function(){e.getMedia().setCurrentTime(e.begin)})};j(Q,U),Q.prototype.setBeginEnd=function(p,b){p=Math.max(0,p),b=Math.max(0,b),b<p&&(b=p),this.begin.setMilliseconds(p),this.end.setMilliseconds(b),this.trigger("change-begin"),this.trigger("change-end")},Q.prototype.setBegin=function(p){this.begin.setMilliseconds(Math.max(0,p)),this.trigger("change-begin"),this.end<this.begin&&this.setEnd(this.begin)},Q.prototype.setEnd=function(p){this.end.setMilliseconds(Math.min(p,this.getMedia().duration.milliseconds)),this.trigger("change-end"),this.end<this.begin&&this.setBegin(this.end)},Q.prototype.setDuration=function(p){this.setEnd(p+this.begin.milliseconds)},Q.prototype.setMedia=function(p){this.setReference("media",p)},Q.prototype.getMedia=function(){return this.getReference("media")},Q.prototype.setAnnotationType=function(p){this.setReference("annotationType",p)},Q.prototype.getAnnotationType=function(){return this.getReference("annotationType")},Q.prototype.setTags=function(p){this.setReference("tag",p)},Q.prototype.getTags=function(){return this.getReference("tag")},Q.prototype.getTagTexts=function(){return this.getTags().getTitles()},Q.prototype.getDuration=function(){return new N(this.end.milliseconds-this.begin.milliseconds)};var ve=k.MashedAnnotation=function(p,b){U.call(this,p.id+"_"+b.id,b.source),this.elementType="mashedAnnotation",this.annotation=b,this.begin=new N,this.end=new N,this.duration=new N,this.title=this.annotation.title,this.description=this.annotation.description,this.color=this.annotation.color;var e=this;this.on("click",function(){p.setCurrentTime(e.begin)}),this.on("enter",function(){e.annotation.trigger("enter")}),this.on("leave",function(){e.annotation.trigger("leave")})};j(ve,U),ve.prototype.getMedia=function(){return this.annotation.getReference("media")},ve.prototype.getAnnotationType=function(){return this.annotation.getReference("annotationType")},ve.prototype.getTags=function(){return this.annotation.getReference("tag")},ve.prototype.getTagTexts=function(){return this.annotation.getTags().getTitles()},ve.prototype.getDuration=function(){return this.annotation.getDuration()},ve.prototype.setBegin=function(p){this.begin.setMilliseconds(p),this.duration.setMilliseconds(this.annotation.getDuration()),this.end.setMilliseconds(p+this.duration)};var he=k.Mashup=function(p,b){J.call(this,p,b),this.elementType="mashup",this.duration=new N,this.segments=new z(b.directory),this.loaded=!1;var e=this;this._updateTimes=function(){e.updateTimes(),e.trigger("change")},this.on("add",this._updateTimes),this.on("remove",this._updateTimes)};j(he,J),he.prototype.updateTimes=function(){var p=0;this.segments.forEach(function(b){b.setBegin(p),p=b.end}),this.duration.setMilliseconds(p)},he.prototype.addAnnotation=function(p,c){var e=new ve(this,p),c=c||!1;this.segments.push(e),p.on("change-begin",this._updateTimes),p.on("change-end",this._updateTimes),c||this.trigger("add")},he.prototype.addAnnotationById=function(p,c){var e=this.source.getElement(p),c=c||!1;typeof e<"u"&&this.addAnnotation(e,c)},he.prototype.addAnnotations=function(p){var b=this;_$1(p).forEach(function(e){b.addAnnotation(e,!0)}),this.trigger("add")},he.prototype.addAnnotationsById=function(p){var b=this;_$1(p).forEach(function(e){b.addAnnotationById(e,!0)}),this.trigger("add")},he.prototype.removeAnnotation=function(p,e){var e=e||!1;p.off("change-begin",this._updateTimes),p.off("change-end",this._updateTimes),this.segments.removeId(this.id+"_"+p.id),e||this.trigger("remove")},he.prototype.removeAnnotationById=function(p,e){var e=e||!1,c=this.source.getElement(p);c&&this.removeAnnotation(c,e),e||this.trigger("remove")},he.prototype.setAnnotations=function(p){for(;this.segments.length;)this.removeAnnotation(this.segments[0].annotation,!0);this.addAnnotations(p)},he.prototype.setAnnotationsById=function(p){for(;this.segments.length;)this.removeAnnotation(this.segments[0].annotation,!0);this.addAnnotationsById(p)},he.prototype.hasAnnotation=function(p){return!!_$1(this.segments).find(function(b){return b.annotation===p})},he.prototype.getAnnotation=function(p){return _$1(this.segments).find(function(b){return b.annotation===p})},he.prototype.getAnnotationById=function(p){return _$1(this.segments).find(function(b){return b.annotation.id===p})},he.prototype.getAnnotations=function(){return this.segments},he.prototype.getOriginalAnnotations=function(){var p=new z(this.source.directory);return this.segments.forEach(function(b){p.push(b.annotation)}),p},he.prototype.getMedias=function(){var p=new z(this.source.directory);return this.segments.forEach(function(b){p.push(b.getMedia())}),p},he.prototype.getAnnotationsByTypeTitle=function(p){var b=this.source.getAnnotationTypes().searchByTitle(p).pluck("id");return b.length?this.getAnnotations().filter(function(e){return _$1(b).indexOf(e.getAnnotationType().id)!==-1}):new z(this.source.directory)},he.prototype.getAnnotationAtTime=function(p){var b=this.segments.filter(function(e){return e.begin<=p&&e.end>p});if(b.length)return b[0]},he.prototype.getMediaAtTime=function(p){var b=this.getAnnotationAtTime(p);if(typeof b<"u")return b.getMedia()};var ke=k.Source=function(p){if(U.call(this,!1,this),this.status=A,this.elementType="source",typeof p<"u"){var b=this;_$1(p).forEach(function(e,c){b[c]=e}),this.callbackQueue=[],this.contents={},this.get()}};j(ke,U),ke.prototype.addList=function(p,b){typeof this.contents[p]>"u"&&(this.contents[p]=new z(this.directory)),this.contents[p].addElements(b)},ke.prototype.getList=function(p,b){return b=typeof b<"u"&&b,b?this.directory.getGlobalList().filter(function(e){return e.elementType===p}):(typeof this.contents[p]>"u"&&(this.contents[p]=new z(this.directory)),this.contents[p])},ke.prototype.forEach=function(p){var b=this;_$1(this.contents).forEach(function(e,c){p.call(b,e,c)})},ke.prototype.getElement=function(p){return this.directory.getElement(p)},ke.prototype.get=function(){this.status=B,this.handleCallbacks()},ke.prototype.deferCallback=function(p){var b=this;_$1.defer(function(){p.call(b)})},ke.prototype.handleCallbacks=function(){for(this.status=M;this.callbackQueue.length;)this.deferCallback(this.callbackQueue.splice(0,1)[0])},ke.prototype.onLoad=function(p){this.status===M?this.deferCallback(p):this.callbackQueue.push(p)},ke.prototype.serialize=function(){return this.serializer.serialize(this)},ke.prototype.deSerialize=function(p){this.serializer.deSerialize(p,this)},ke.prototype.getAnnotations=function(p){return p=typeof p<"u"&&p,this.getList("annotation",p)},ke.prototype.getMedias=function(p){return p=typeof p<"u"&&p,this.getList("media",p)},ke.prototype.getTags=function(p){return p=typeof p<"u"&&p,this.getList("tag",p)},ke.prototype.getMashups=function(p){return p=typeof p<"u"&&p,this.getList("mashup",p)},ke.prototype.getAnnotationTypes=function(p){return p=typeof p<"u"&&p,this.getList("annotationType",p)},ke.prototype.getAnnotationsByTypeTitle=function(p,b){b=typeof b<"u"&&b;var e=new z(this.directory),c=this.getAnnotationTypes(b).searchByTitle(p);return c.forEach(function(y){e.addElements(y.getAnnotations(b))}),e},ke.prototype.getDuration=function(){var p=this.currentMedia;if(typeof p<"u")return this.currentMedia.duration},ke.prototype.getCurrentMedia=function(p){if(typeof this.currentMedia>"u")if(p.is_mashup){var b=this.getMashups();b.length&&(this.currentMedia=b[0])}else{var e=this.getMedias();e.length&&(this.currentMedia=e[0])}return this.currentMedia},ke.prototype.merge=function(p){var b=this;p.forEach(function(e,c){b.getList(c).addElements(e)})};var T=k.RemoteSource=function(p){ke.call(this,p)};j(T,ke),T.prototype.get=function(){this.status=B;var p=this,b=this.url_params||{},e=this.dataType||"json";b.format=e,jQuery.ajax({url:this.url,dataType:e,data:b,traditional:!0,success:function(c){p.deSerialize(c),p.handleCallbacks()}})};var u=k.Directory=function(){this.remoteSources={},this.elements={}};return u.prototype.remoteSource=function(p){if(typeof p!="object"||typeof p.url>"u")throw"Error : Directory.remoteSource(configuration): configuration.url is undefined";var b=_$1({directory:this}).extend(p);b.url_params=b.url_params||{};var e=b.url+"?"+jQuery.param(b.url_params);return typeof this.remoteSources[e]>"u"&&(this.remoteSources[e]=new T(b)),this.remoteSources[e]},u.prototype.newLocalSource=function(p){var b=_$1({directory:this}).extend(p),e=new ke(b);return e},u.prototype.getElement=function(p){return this.elements[p]},u.prototype.addElement=function(p){this.elements[p.id]=p},u.prototype.getGlobalList=function(){var p=new z(this);return p.addIds(_$1(this.elements).keys()),p},k},htmlPlayer=function(t,n,l){var d=l||{},m=d.video||t.video;typeof d.url_transform=="function"&&(m=d.url_transform(m));var h=jQuery("<video>");if(h.attr({width:d.width||void 0,height:d.height||void 0,controls:d.controls||void 0,autoplay:d.autostart||d.autoplay||void 0}),typeof m=="string")h.attr("src",m);else for(var S=0;S<m.length;S++){var k=jQuery("<source>");k.attr({src:m[S].src,type:m[S].type}),h.append(k)}if(d.subtitle){var A=jQuery("<track>");A.attr({label:"Subtitles",kind:"subtitles",srclang:"fr",src:d.subtitle,default:""}),h.append(A)}n.html(h);var B=h[0];t.on("setcurrenttime",function(j){try{B.currentTime=j/1e3}catch{}}),t.on("setvolume",function(j){t.volume=j;try{B.volume=j}catch{}}),t.on("setmuted",function(j){t.muted=j;try{B.muted=j}catch{}}),t.on("settimerange",function(j){t.timeRange=j;try{(t.getCurrentTime()>j[0]||t.getCurrentTime()<j)&&(B.currentTime=j[0]/1e3)}catch{}}),t.on("resettimerange",function(){t.timeRange=!1}),t.on("setplay",function(){try{B.play()}catch{}}),t.on("setpause",function(){try{B.pause()}catch{}});function M(){t.muted=B.muted,t.volume=B.volume}h.on("loadedmetadata",function(){M(),t.trigger("loadedmetadata"),t.trigger("volumechange")}),h.on("timeupdate",function(){t.trigger("timeupdate",new IriSP.Model.Time(1e3*B.currentTime))}),h.on("volumechange",function(){M(),t.trigger("volumechange")}),h.on("play",function(){t.trigger("play")}),h.on("pause",function(){t.trigger("pause")}),h.on("seeking",function(){t.trigger("seeking")}),h.on("seeked",function(){t.trigger("seeked")}),h.on("click",function(){B.paused?t.play():t.pause()})};function utils$r(t){return{jqEscape:function(n){return n.replace(/(:|\.)/g,"\\$1")},textFieldHtml:function(n,l,d){var m=[],h=[],S=n.replace(/(^\s+|\s+$)/g,"");function k($,z,N){for(;;){var F=$.exec(S);if(!F)break;var U=$.lastIndex,J=F.index;m.push({start:J,end:U,startHtml:typeof z=="function"?z(F):z,endHtml:typeof N=="function"?N(F):N}),h.push(J),h.push(U)}}l&&k(l,'<span class="Ldt-Highlight">',"</span>"),k(/(https?:\/\/)?[\w\d\-]+\.[\w\d\-]+\S+/gm,function($){return'<a href="'+($[1]?"":"http://")+$[0]+'" target="_blank">'},"</a>"),k(/@([\d\w]{1,15})/gm,function($){return'<a href="http://twitter.com/'+$[1]+'" target="_blank">'},"</a>"),k(/\*[^*]+\*/gm,"<b>","</b>"),k(/[\n\r]+/gm,"","<br />"),_$1(d).each(function($){k.apply(null,$)}),h=_$1(h).chain().uniq().sortBy(function($){return parseInt($)}).value();for(var A="",B=0,M=0;M<h.length;M++){var j=h[M];A+=S.substring(B,j);for(var I=m.length-1;I>=0;I--){var P=m[I];P.start<j&&P.end>=j&&(A+=P.endHtml)}for(var I=0;I<m.length;I++){var P=m[I];P.start<=j&&P.end>j&&(A+=P.startHtml)}B=j}return A+=S.substring(B),A},log:function(){typeof console<"u"&&typeof t.logging<"u"&&t.logging&&console.log.apply(console,arguments)},attachDndData:function(n,l){n.attr("draggable","true").on("dragstart",function(d){var m=typeof l=="function"?l.call(this):l;try{m.html===void 0&&m.uri&&m.text&&(m.html='<a href="'+m.uri+'">'+m.text+"</a>"),_$1(m).each(function(h,S){h&&S!="text"&&S!="html"&&d.originalEvent.dataTransfer.setData("text/x-iri-"+S,h)}),m.uri&&m.text&&(d.originalEvent.dataTransfer.setData("text/x-moz-url",m.uri+`
`+m.text.replace(`
`," ")),d.originalEvent.dataTransfer.setData("text/plain",m.text+" "+m.uri)),m.html!==void 0&&d.originalEvent.dataTransfer.setData("text/html",m.html),m.text!==void 0&&!m.uri&&d.originalEvent.dataTransfer.setData("text/plain",m.text)}catch{d.originalEvent.dataTransfer.setData("Text",JSON.stringify(m))}})},FakeClass:function(n){var l=this,d=function(){};_$1(n).each(function(m){l[m]=d})},timestamp2ms:function(n){for(var l=n.split(":").reverse();l.length<3;)l.push("0");return 1e3*(3600*parseInt(l[2],10)+60*parseInt(l[1],10)+parseInt(l[0],10))},setFullScreen:function(n,l){l?n.requestFullscreen?n.requestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.msRequestFullscreen&&n.msRequestFullscreen():document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},isFullscreen:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},getFullscreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||void 0},getFullscreenEventname:function(){return document.exitFullscreen&&"fullscreenchange"||document.webkitExitFullscreen&&"webkitfullscreenchange"||document.mozExitFullScreen&&"mozfullscreenchange"||document.msExitFullscreen&&"msfullscreenchange"||""}}}const iFrameUpdater=function(t){var n=document.getElementById(t),l=!1,d=function(){l=!0,window.setTimeout(function(){l=!1},1e3),n.contentWindow.postMessage(document.location.hash,"*")};window.onhashchange=d,window.addEventListener("message",function(m){/^#/.test(m.data)&&!l&&(typeof window.history<"u"&&typeof window.history.replaceState<"u"?window.history.replaceState({},"",m.data):document.location.hash=m.data)}),window.setTimeout(d,2e3)},content=function(t){return{deSerialize:function(n,l){var d=new t.Model.List(l.directory);function m(h,S){var k=new t.Model.Media(h.iri_id,l);k.video=h.media_url,k.title=h.title,k.description=h.description,k.setDuration(h.duration),k.thumbnail=h.image,k.color=t.vizcolors[S%t.vizcolors.length],k.keywords=h.tags,d.push(k)}typeof n.objects<"u"?_$1(n.objects).each(m):m(n,0),l.addList("media",d)}}},ldt_annotate=function(t){return{serializeAnnotation:function(n,l){var d=n.getAnnotationType();return{id:n.id,begin:n.begin.milliseconds,end:n.end.milliseconds,content:{data:n.content?n.content.data||{}:{},description:n.description,title:n.title,audio:n.audio},id:n.id?n.id:"",tags:n.getTagTexts(),media:n.getMedia().id,project:n.project_id,type_title:d.title,type:typeof d.dont_send_id<"u"&&d.dont_send_id?"":d.id,meta:{created:n.created,creator:n.creator,modified:n.modified,contributor:n.contributor}}},deserializeAnnotation:function(n,l){var d=new t.Model.Annotation(n.id,l);d.description=n.content.description||"",d.title=n.content.title||"",d.creator=n.meta.creator||"",d.created=new Date(n.meta.created),d.setMedia(n.media,l);var m=l.getElement(n.type);m||(m=new t.Model.AnnotationType(n.type,l),m.title=n.type_title,l.getAnnotationTypes().push(m)),d.setAnnotationType(m.id);var h=_$1(n.tags).map(function(S){var k=l.getTags(!0).searchByTitle(S,!0);if(k.length)var A=k[0];else A=new t.Model.Tag(S.replace(/\W/g,"_"),l),A.title=S,l.getTags().push(A);return A.id});d.setTags(h),d.setBeginEnd(n.begin,n.end),typeof n.content.audio<"u"&&n.content.audio.href&&(d.audio=n.content.audio),n.content.data&&(d.content={data:n.content.data}),l.getAnnotations().push(d)},serialize:function(n){return JSON.stringify(this.serializeAnnotation(n.getAnnotations()[0],n))},deSerialize:function(n,l){typeof n=="string"&&(n=JSON.parse(n)),l.addList("tag",new t.Model.List(l.directory)),l.addList("annotationType",new t.Model.List(l.directory)),l.addList("annotation",new t.Model.List(l.directory)),this.deserializeAnnotation(n,l)}}},ldt_localstorage=function(t){return{serializeAnnotation:function(n,l){var d=n.getAnnotationType();return{id:n.id,begin:n.begin.milliseconds,end:n.end.milliseconds,content:{data:n.content?n.content.data||{}:{},description:n.description,title:n.title,audio:n.audio},tags:n.getTagTexts(),media:n.getMedia().id,type_title:d.title,type:typeof d.dont_send_id<"u"&&d.dont_send_id?"":d.id,meta:{created:n.created,creator:n.creator,modified:n.modified,contributor:n.contributor}}},deserializeAnnotation:function(n,l){var d=new t.Model.Annotation(n.id,l);d.description=n.content.description||"",d.title=n.content.title||"",d.creator=n.meta.creator||"",d.created=new Date(n.meta.created),d.contributor=n.meta.contributor||"",d.modified=new Date(n.meta.modified),d.setMedia(n.media,l);var m=l.getElement(n.type);m||(m=new t.Model.AnnotationType(n.type,l),m.title=n.type_title,l.getAnnotationTypes().push(m)),d.setAnnotationType(m.id);var h=_$1(n.tags).map(function(S){var k=l.getTags(!0).searchByTitle(S,!0);if(k.length)var A=k[0];else A=new t.Model.Tag(S.replace(/\W/g,"_"),l),A.title=S,l.getTags().push(A);return A.id});d.setTags(h),d.setBeginEnd(n.begin,n.end),typeof n.content.audio<"u"&&n.content.audio.href&&(d.audio=n.content.audio),n.content.data&&(d.content={data:n.content.data}),l.getAnnotations().push(d)},serialize:function(n){var l=this;return JSON.stringify(n.getAnnotations().map(function(d){return l.serializeAnnotation(d,n)}))},deSerialize:function(n,l){var d=this;typeof n=="string"&&(n=JSON.parse(n)),l.addList("tag",new t.Model.List(l.directory)),l.addList("annotationType",new t.Model.List(l.directory)),l.addList("annotation",new t.Model.List(l.directory)),n.map(function(m){d.deserializeAnnotation(m,l)})}}},ldt=function(t){return{types:{media:{serialized_name:"medias",deserializer:function(n,l){var d=new t.Model.Media(n.id,l);return d.video=typeof n.url<"u"?n.url:typeof n.href<"u"?n.href:null,typeof n.meta.item<"u"&&n.meta.item.name==="streamer"&&(d.streamer=n.meta.item.value),d.title=n.meta["dc:title"],d.description=n.meta["dc:description"],d.setDuration(n.meta["dc:duration"]),d.url=n.meta.url,typeof n.meta.img<"u"&&n.meta.img.src!=="undefined"&&(d.thumbnail=n.meta.img.src),d},serializer:function(n,l,d){var m={id:n.id,url:n.video,meta:{"dc:title":n.title||"","dc:description":n.description||"","dc:created":t.Model.dateToIso(n.created||l.created),"dc:modified":t.Model.dateToIso(n.modified||l.modified),"dc:creator":n.creator||l.creator,"dc:contributor":n.contributor||l.contributor||n.creator||l.creator,"dc:duration":n.duration.milliseconds}};d.medias.push(m);var h={id:t.Model.getUID(),meta:{"dc:title":n.title||"","dc:description":n.description||"","dc:created":t.Model.dateToIso(n.created||l.created),"dc:modified":t.Model.dateToIso(n.modified||l.modified),"dc:creator":n.creator||l.creator,"dc:contributor":n.contributor||l.contributor||n.creator||l.creator,"id-ref":n.id},items:l.getAnnotationTypes().filter(function(S){switch(typeof S.media){case"object":return S.media===n;case"string":return S.media===n.id;default:var k=S.getAnnotations();if(k){for(var A=0;A<k.length;A++)if(k[A].getMedia()===n)return!0}}return!1}).map(function(S){return{"id-ref":S.id}})};d.lists.push(h),d.views[0].contents.push(n.id)}},tag:{serialized_name:"tags",deserializer:function(n,l){var d=new t.Model.Tag(n.id,l);return d.title=n.meta["dc:title"],d},serializer:function(n,l,d){if(!(l.regenerateTags&&!n.regenerated)){var m={id:n.id,meta:{"dc:title":n.title||"","dc:description":n.description||"","dc:created":t.Model.dateToIso(n.created||l.created),"dc:modified":t.Model.dateToIso(n.modified||l.modified),"dc:creator":n.creator||l.creator,"dc:contributor":n.contributor||l.contributor||n.creator||l.creator}};d.tags.push(m)}}},annotationType:{serialized_name:"annotation-types",deserializer:function(n,l){var d=new t.Model.AnnotationType(n.id,l);return d.title=n["dc:title"],d.description=n["dc:description"],d},serializer:function(n,l,d){var m={id:n.id,"dc:title":n.title||"","dc:description":n.description||"","dc:created":t.Model.dateToIso(n.created||l.created),"dc:modified":t.Model.dateToIso(n.modified||l.modified),"dc:creator":n.creator||l.creator,"dc:contributor":n.contributor||l.contributor||n.creator||l.creator};d["annotation-types"].push(m),d.views[0].annotation_types.push(n.id)}},annotation:{serialized_name:"annotations",deserializer:function(n,l){var d=new t.Model.Annotation(n.id,l);if(d.title=n.content.title||"",d.description=n.content.description||"",typeof n.content.img<"u"&&n.content.img.src!=="undefined"&&(d.thumbnail=n.content.img.src),d.created=t.Model.isoToDate(n.created?n.created:n.meta?n.meta["dc:created"]:""),typeof n.color<"u"){for(var m=parseInt(n.color).toString(16);m.length<6;)m="0"+m;d.color="#"+m}return d.content=n.content,d.setMedia(n.media),d.setAnnotationType(n.meta["id-ref"]),d.setTags(_$1(n.tags).map("id-ref")),d.keywords=d.getTagTexts(),d.setBegin(n.begin),d.setEnd(n.end),d.creator=n.meta["dc:creator"]||"",d.project=n.meta.project||"",typeof n.meta["dc:source"]<"u"&&typeof n.meta["dc:source"].content<"u"&&(d.source=JSON.parse(n.meta["dc:source"].content)),typeof n.content.audio<"u"&&n.content.audio.href&&(d.audio=n.content.audio),d},serializer:function(n,l,d){var m=parseInt(n.color.replace(/^#/,""),16).toString(),h={id:n.id,begin:n.begin.milliseconds,end:n.end.milliseconds,content:_$1.defaults({},{title:n.title,description:n.description,audio:n.audio,img:{src:n.thumbnail}},n.content,{title:"",description:""}),color:m,media:n.media.id,meta:{"id-ref":n.getAnnotationType().id,"dc:created":t.Model.dateToIso(n.created||l.created),"dc:modified":t.Model.dateToIso(n.modified||l.modified),"dc:creator":n.creator||l.creator,"dc:contributor":n.contributor||l.contributor||n.creator||l.creator}};l.regenerateTags?h.tags=_$1(n.keywords).map(function(S){return{"id-ref":l.__keywords[S.toLowerCase()].id}}):h.tags=_$1(n.tag.id).map(function(S){return{"id-ref":S}}),h.content.title=n.title||h.content.title||"",d.annotations.push(h)}},mashup:{serialized_name:"lists",deserializer:function(n,l){if(!(typeof n.meta!="object"||typeof n.meta.listtype!="string"||n.meta.listtype!=="mashup")){var d=new t.Model.Mashup(n.id,l);return d.title=n.meta["dc:title"],d.description=n.meta["dc:description"],d.creator=n.meta["dc:creator"],d.setAnnotationsById(n.items),d}},serializer:function(n,l,d){var m={meta:{"dc:title":n.title||"","dc:description":n.description||"","dc:created":t.Model.dateToIso(n.created||l.created),"dc:modified":t.Model.dateToIso(n.modified||l.modified),"dc:creator":n.creator||l.creator,"dc:contributor":n.contributor||l.contributor||n.creator||l.creator,listtype:"mashup"},items:n.segments.map(function(h){return h.annotation.id}),id:n.id};d.lists.push(m)}}},serialize:function(n){var l={meta:{"dc:creator":n.creator,"dc:contributor":n.contributor||n.creator,"dc:created":t.Model.dateToIso(n.created),"dc:modified":t.Model.dateToIso(n.modified),"dc:title":n.title||"","dc:description":n.description||"",id:n.projectId||n.id},views:[{id:t.Model.getUID(),contents:[],annotation_types:[]}],lists:[],"annotation-types":[],medias:[],tags:[],annotations:[]},d=this;return n.regenerateTags&&(n.__keywords={},n.getAnnotations().forEach(function(m){_$1(m.keywords).each(function(h){var S=h.toLowerCase();typeof n.__keywords[S]>"u"&&(n.__keywords[S]={id:t.Model.getUID(),title:h,regenerated:!0})})}),_$1(n.__keywords).each(function(m){d.types.tag.serializer(m,n,l)})),n.forEach(function(m,h){typeof d.types[h]<"u"&&m.forEach(function(S){d.types[h].serializer(S,n,l)})}),JSON.stringify(l)},deSerialize:function(n,l){typeof n!="object"||n===null||(_$1(this.types).forEach(function(d,m){var h=n[d.serialized_name],S=new t.Model.List(l.directory);if(typeof h<"u"&&h!==null)if(h.hasOwnProperty("length"))for(var k=h.length,A=0;A<k;A++){var B=d.deserializer(h[A],l);typeof B<"u"&&B&&S.push(B)}else{var B=d.deserializer(h,l);typeof B<"u"&&B&&S.push(B)}l.addList(m,S)}),typeof n.meta<"u"&&(l.projectId=n.meta.id,l.title=n.meta["dc:title"]||n.meta.title||"",l.description=n.meta["dc:description"]||n.meta.description||"",l.creator=n.meta["dc:creator"]||n.meta.creator||"",l.contributor=n.meta["dc:contributor"]||n.meta.contributor||l.creator,l.created=t.Model.isoToDate(n.meta["dc:created"]||n.meta.created)),typeof n.meta<"u"&&typeof n.meta.main_media<"u"&&typeof n.meta.main_media["id-ref"]<"u"&&(l.currentMedia=l.getElement(n.meta.main_media["id-ref"])))}}},segmentapi=function(t){return{deSerialize:function(n,l){var d=new t.Model.List(l.directory),m=new t.Model.List(l.directory);l.addList("media",m);function h(S){var k=new t.Model.Annotation(S.element_id,l),A=l.getElement(S.iri_id);A||(A=new t.Model.Media(S.iri_id,l),l.getMedias().push(A)),k.setMedia(S.iri_id),k.title=S.title,k.description=S.abstract,k.begin=new t.Model.Time(S.start_ts),k.end=new t.Model.Time(S.start_ts+S.duration),k.keywords=S.tags?S.tags.split(","):[],k.project_id=S.project_id,d.push(k)}typeof n.objects<"u"?_$1(n.objects).each(h):h(n),l.addList("annotation",d)}}},serializers=function(t){return{content:content(t),ldt_annotate:ldt_annotate(t),ldt_localstorage:ldt_localstorage(t),ldt:ldt(t),segmentapi:segmentapi(t)}};function defaults(t){const n={};return n.language="en",n.widgetsDir="widgets",n.widgetsRequirements={PopcornPlayer:{noCss:!0,requires:["popcorn"]},HtmlPlayer:{noCss:!0},JwpPlayer:{noCss:!0,requires:["jwplayer"]},DailymotionPlayer:{noCss:!0,requires:["swfObject"]},AdaptivePlayer:{noCss:!0},AutoPlayer:{noCss:!0},AnnotationsList:{requires:["jwplayer"]},Sparkline:{noCss:!0,requires:["raphael"]},Arrow:{noCss:!0,requires:["raphael"]},Mediafragment:{noCss:!0},Trace:{noCss:!0,requires:["tracemanager"]},Slideshare:{requires:["swfObject"]},Social:{requires:["zeroClipboardJs"]},Renkan:{requires:["backbone","backboneRelational","paper","jqueryMousewheel","renkanPublish"]},KnowledgeConcierge:{requires:["processing"]},MultiSegments:{noCss:!0},SlideVideoPlayer:{requires:["jQuery","jQueryUI","splitter"]},Shortcuts:{requires:["mousetrap","mousetrapGlobal"]}},n.guiDefaults={width:640,container:"LdtPlayer",spacer_div_height:0,widgets:[]},n}function metadataplayer(t){var n=t.Metadataplayer=function(l){t.log("IriSP.Metadataplayer constructor");for(var d in t.guiDefaults)t.guiDefaults.hasOwnProperty(d)&&!l.hasOwnProperty(d)&&(l[d]=t.guiDefaults[d]);var m=document.getElementById(l.container);m.innerHTML='<h3 class="Ldt-Loader">Loading... Chargement...</h3>',this.sourceManager=new t.Model.Directory,this.config=l,this.__events={},this.onLibsLoaded()};n.prototype.toString=function(){return"Metadataplayer in #"+this.config.container},n.prototype.on=function(l,d){typeof this.__events[l]>"u"&&(this.__events[l]=[]),this.__events[l].push(d)},n.prototype.trigger=function(l,d){var m=this;_$1(this.__events[l]).each(function(h){h.call(m,d)})},n.prototype.onLibsLoaded=function(){t.log("IriSP.Metadataplayer.prototype.onLibsLoaded"),this.$=jQuery("#"+this.config.container),this.$.css({width:this.config.width,clear:"both"}),typeof this.config.height<"u"&&this.$.css("height",this.config.height),this.widgets=[];var l=this;_$1(this.config.widgets).each(function(d,m){l.widgets.push(null),l.loadWidget(d,function(h){l.widgets[m]=h,h.isLoaded()&&l.trigger("widget-loaded")})}),this.$.find(".Ldt-Loader").detach(),this.widgetsLoaded=!1,this.on("widget-loaded",function(){if(!l.widgetsLoaded){var d=!_$1(l.widgets).some(function(m){return!(m&&m.isLoaded())});d&&(l.widgetsLoaded=!0,l.trigger("widgets-loaded"))}})},n.prototype.loadLocalAnnotations=function(l){return this.localSource===void 0&&(this.localSource=this.sourceManager.newLocalSource({serializer:IriSP.serializers.ldt_localstorage})),l&&(this.localSource.identifier=l),this.localSource.deSerialize(window.localStorage[this.localSource.identifier]||"[]"),this.localSource},n.prototype.saveLocalAnnotations=function(){window.localStorage[this.localSource.identifier]=this.localSource.serialize()},n.prototype.addLocalAnnotation=function(l){this.loadLocalAnnotations(),this.localSource.getAnnotations().push(l),this.saveLocalAnnotations()},n.prototype.deleteLocalAnnotation=function(l){this.localSource.getAnnotations().removeId(l,!0),this.saveLocalAnnotations()},n.prototype.getLocalAnnotation=function(l){return this.loadLocalAnnotations(),_$1.first(_$1.filter(this.localSource.getAnnotations(),function(d){return d.id==l}))},n.prototype.loadMetadata=function(l){return l.elementType==="source"?l:(typeof l.serializer>"u"&&typeof l.format<"u"&&(l.serializer=t.serializers[l.format]),typeof l.url<"u"&&typeof l.serializer<"u"?this.sourceManager.remoteSource(l):this.sourceManager.newLocalSource(l))},n.prototype.loadWidget=function(l,d){if(typeof l.container>"u"){var m=this.layoutDivs(l.type);l.container=m[0]}var h=this;typeof t.Widgets[l.type]<"u"?_$1.defer(function(){d(new t.Widgets[l.type](h,l))}):t.log("Widget type "+l.type+" Unkown !")},n.prototype.layoutDivs=function(l,d){typeof l>"u"&&(l="");var m=_$1.uniqueId(this.config.container+"_widget_"+l+"_"),h=_$1.uniqueId("LdtPlayer_spacer_"),S=jQuery("<div>").attr("id",m).css({width:this.config.width+"px",position:"relative",clear:"both"}),k=jQuery("<div>").attr("id",h).css({width:this.config.width+"px",height:this.config.spacer_div_height+"px",position:"relative",clear:"both"});return typeof d<"u"&&S.css("height",d),this.$.append(S),this.$.append(k),[m,h]}}/*!
 * mustache.js - Logic-less {{mustache}} templates with JavaScript
 * http://github.com/janl/mustache.js
 */var objectToString$1=Object.prototype.toString,isArray$4=Array.isArray||function(n){return objectToString$1.call(n)==="[object Array]"};function isFunction$1(t){return typeof t=="function"}function typeStr(t){return isArray$4(t)?"array":typeof t}function escapeRegExp(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hasProperty(t,n){return t!=null&&typeof t=="object"&&n in t}function primitiveHasOwnProperty(t,n){return t!=null&&typeof t!="object"&&t.hasOwnProperty&&t.hasOwnProperty(n)}var regExpTest=RegExp.prototype.test;function testRegExp(t,n){return regExpTest.call(t,n)}var nonSpaceRe=/\S/;function isWhitespace(t){return!testRegExp(nonSpaceRe,t)}var entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function escapeHtml(t){return String(t).replace(/[&<>"'`=\/]/g,function(l){return entityMap[l]})}var whiteRe=/\s*/,spaceRe=/\s+/,equalsRe=/\s*=/,curlyRe=/\s*\}/,tagRe=/#|\^|\/|>|\{|&|=|!/;function parseTemplate(t,n){if(!t)return[];var l=!1,d=[],m=[],h=[],S=!1,k=!1,A="",B=0;function M(){if(S&&!k)for(;h.length;)delete m[h.pop()];else h=[];S=!1,k=!1}var j,I,P;function $(ve){if(typeof ve=="string"&&(ve=ve.split(spaceRe,2)),!isArray$4(ve)||ve.length!==2)throw new Error("Invalid tags: "+ve);j=new RegExp(escapeRegExp(ve[0])+"\\s*"),I=new RegExp("\\s*"+escapeRegExp(ve[1])),P=new RegExp("\\s*"+escapeRegExp("}"+ve[1]))}$(n||mustache.tags);for(var z=new Scanner(t),N,F,U,J,te,se;!z.eos();){if(N=z.pos,U=z.scanUntil(j),U)for(var de=0,Q=U.length;de<Q;++de)J=U.charAt(de),isWhitespace(J)?(h.push(m.length),A+=J):(k=!0,l=!0,A+=" "),m.push(["text",J,N,N+1]),N+=1,J===`
`&&(M(),A="",B=0,l=!1);if(!z.scan(j))break;if(S=!0,F=z.scan(tagRe)||"name",z.scan(whiteRe),F==="="?(U=z.scanUntil(equalsRe),z.scan(equalsRe),z.scanUntil(I)):F==="{"?(U=z.scanUntil(P),z.scan(curlyRe),z.scanUntil(I),F="&"):U=z.scanUntil(I),!z.scan(I))throw new Error("Unclosed tag at "+z.pos);if(F==">"?te=[F,U,N,z.pos,A,B,l]:te=[F,U,N,z.pos],B++,m.push(te),F==="#"||F==="^")d.push(te);else if(F==="/"){if(se=d.pop(),!se)throw new Error('Unopened section "'+U+'" at '+N);if(se[1]!==U)throw new Error('Unclosed section "'+se[1]+'" at '+N)}else F==="name"||F==="{"||F==="&"?k=!0:F==="="&&$(U)}if(M(),se=d.pop(),se)throw new Error('Unclosed section "'+se[1]+'" at '+z.pos);return nestTokens(squashTokens(m))}function squashTokens(t){for(var n=[],l,d,m=0,h=t.length;m<h;++m)l=t[m],l&&(l[0]==="text"&&d&&d[0]==="text"?(d[1]+=l[1],d[3]=l[3]):(n.push(l),d=l));return n}function nestTokens(t){for(var n=[],l=n,d=[],m,h,S=0,k=t.length;S<k;++S)switch(m=t[S],m[0]){case"#":case"^":l.push(m),d.push(m),l=m[4]=[];break;case"/":h=d.pop(),h[5]=m[2],l=d.length>0?d[d.length-1][4]:n;break;default:l.push(m)}return n}function Scanner(t){this.string=t,this.tail=t,this.pos=0}Scanner.prototype.eos=function(){return this.tail===""},Scanner.prototype.scan=function(n){var l=this.tail.match(n);if(!l||l.index!==0)return"";var d=l[0];return this.tail=this.tail.substring(d.length),this.pos+=d.length,d},Scanner.prototype.scanUntil=function(n){var l=this.tail.search(n),d;switch(l){case-1:d=this.tail,this.tail="";break;case 0:d="";break;default:d=this.tail.substring(0,l),this.tail=this.tail.substring(l)}return this.pos+=d.length,d};function Context(t,n){this.view=t,this.cache={".":this.view},this.parent=n}Context.prototype.push=function(n){return new Context(n,this)},Context.prototype.lookup=function(n){var l=this.cache,d;if(l.hasOwnProperty(n))d=l[n];else{for(var m=this,h,S,k,A=!1;m;){if(n.indexOf(".")>0)for(h=m.view,S=n.split("."),k=0;h!=null&&k<S.length;)k===S.length-1&&(A=hasProperty(h,S[k])||primitiveHasOwnProperty(h,S[k])),h=h[S[k++]];else h=m.view[n],A=hasProperty(m.view,n);if(A){d=h;break}m=m.parent}l[n]=d}return isFunction$1(d)&&(d=d.call(this.view)),d};function Writer(){this.templateCache={_cache:{},set:function(n,l){this._cache[n]=l},get:function(n){return this._cache[n]},clear:function(){this._cache={}}}}Writer.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Writer.prototype.parse=function(n,l){var d=this.templateCache,m=n+":"+(l||mustache.tags).join(":"),h=typeof d<"u",S=h?d.get(m):void 0;return S==null&&(S=parseTemplate(n,l),h&&d.set(m,S)),S},Writer.prototype.render=function(n,l,d,m){var h=this.getConfigTags(m),S=this.parse(n,h),k=l instanceof Context?l:new Context(l,void 0);return this.renderTokens(S,k,d,n,m)},Writer.prototype.renderTokens=function(n,l,d,m,h){for(var S="",k,A,B,M=0,j=n.length;M<j;++M)B=void 0,k=n[M],A=k[0],A==="#"?B=this.renderSection(k,l,d,m,h):A==="^"?B=this.renderInverted(k,l,d,m,h):A===">"?B=this.renderPartial(k,l,d,h):A==="&"?B=this.unescapedValue(k,l):A==="name"?B=this.escapedValue(k,l,h):A==="text"&&(B=this.rawValue(k)),B!==void 0&&(S+=B);return S},Writer.prototype.renderSection=function(n,l,d,m,h){var S=this,k="",A=l.lookup(n[1]);function B(I){return S.render(I,l,d,h)}if(A){if(isArray$4(A))for(var M=0,j=A.length;M<j;++M)k+=this.renderTokens(n[4],l.push(A[M]),d,m,h);else if(typeof A=="object"||typeof A=="string"||typeof A=="number")k+=this.renderTokens(n[4],l.push(A),d,m,h);else if(isFunction$1(A)){if(typeof m!="string")throw new Error("Cannot use higher-order sections without the original template");A=A.call(l.view,m.slice(n[3],n[5]),B),A!=null&&(k+=A)}else k+=this.renderTokens(n[4],l,d,m,h);return k}},Writer.prototype.renderInverted=function(n,l,d,m,h){var S=l.lookup(n[1]);if(!S||isArray$4(S)&&S.length===0)return this.renderTokens(n[4],l,d,m,h)},Writer.prototype.indentPartial=function(n,l,d){for(var m=l.replace(/[^ \t]/g,""),h=n.split(`
`),S=0;S<h.length;S++)h[S].length&&(S>0||!d)&&(h[S]=m+h[S]);return h.join(`
`)},Writer.prototype.renderPartial=function(n,l,d,m){if(d){var h=this.getConfigTags(m),S=isFunction$1(d)?d(n[1]):d[n[1]];if(S!=null){var k=n[6],A=n[5],B=n[4],M=S;A==0&&B&&(M=this.indentPartial(S,B,k));var j=this.parse(M,h);return this.renderTokens(j,l,d,M,m)}}},Writer.prototype.unescapedValue=function(n,l){var d=l.lookup(n[1]);if(d!=null)return d},Writer.prototype.escapedValue=function(n,l,d){var m=this.getConfigEscape(d)||mustache.escape,h=l.lookup(n[1]);if(h!=null)return typeof h=="number"&&m===mustache.escape?String(h):m(h)},Writer.prototype.rawValue=function(n){return n[1]},Writer.prototype.getConfigTags=function(n){return isArray$4(n)?n:n&&typeof n=="object"?n.tags:void 0},Writer.prototype.getConfigEscape=function(n){if(n&&typeof n=="object"&&!isArray$4(n))return n.escape};var mustache={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){defaultWriter.templateCache=t},get templateCache(){return defaultWriter.templateCache}},defaultWriter=new Writer;mustache.clearCache=function(){return defaultWriter.clearCache()},mustache.parse=function(n,l){return defaultWriter.parse(n,l)},mustache.render=function(n,l,d,m){if(typeof n!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+typeStr(n)+'" was given as the first argument for mustache#render(template, view, partials)');return defaultWriter.render(n,l,d,m)},mustache.escape=escapeHtml,mustache.Scanner=Scanner,mustache.Context=Context,mustache.Writer=Writer;function widgetsBase(t){var l;const n={};return n.Widget=(l=class{constructor(d,m){if(typeof d>"u")return;this.__subwidgets=[];var h=m.type||"(unknown)",S=_$1.defaults({},m,d&&d.config?d.config.default_options:{},this.constructor.defaults),k=this;_$1(S).forEach(function(B,M){k[M]=B}),this.$=jQuery("#"+this.container),typeof this.width>"u"?this.width=this.$.width():this.$.css("width",this.width),typeof this.height<"u"&&this.$.css("height",this.height),this.player=d||new t.FakeClass(["on","trigger","off","loadWidget","loadMetadata"]),this.$.addClass("Ldt-TraceMe Ldt-Widget").attr("widget-type",h),this.l10n=typeof this.constructor.messages[t.language]<"u"?this.constructor.messages[t.language]:t.language.length>2&&typeof this.constructor.messages[t.language.substr(0,2)]<"u"?this.constructor.messages[t.language.substr(0,2)]:this.constructor.messages.en;function A(){if(k.localannotations&&(k.localsource=d.loadLocalAnnotations(k.localannotations),k.source.merge(k.localsource)),k.media_id)k.media=this.getElement(k.media_id);else{var B={is_mashup:k.is_mashup||!1};k.media=k.source.getCurrentMedia(B)}k.pre_draw_callback?jQuery.when(k.pre_draw_callback()).done(k.draw()):k.draw(),k.player.trigger("widget-loaded")}this.metadata?(this.source=d.loadMetadata(this.metadata),this.source.onLoad(A)):this.source&&A()}toString(){return"Widget "+this.type}templateToHtml(d){return mustache.render(d,this)}renderTemplate(){this.$.append(this.templateToHtml(this.constructor.template))}functionWrapper(d){var m=this,h=this[d];if(typeof h<"u")return function(){return h.apply(m,Array.prototype.slice.call(arguments,0))};console.log("Error, Unknown function IriSP.Widgets."+this.type+"."+d)}getFunctionOrName(d){switch(typeof d){case"function":return d;case"string":return this.functionWrapper(d);default:return}}onMdpEvent(d,m){this.player.on(d,this.getFunctionOrName(m))}onMediaEvent(d,m){this.media.on(d,this.getFunctionOrName(m))}getWidgetAnnotations(){var d=null;return typeof this.annotation_type>"u"?d=this.media.getAnnotations():this.annotation_type.elementType==="annotationType"?d=this.annotation_type.getAnnotations():d=this.media.getAnnotationsByTypeTitle(this.annotation_type),typeof this.annotation_filter<"u"?this.annotation_filter(d):d}getWidgetAnnotationsAtTime(){var d=this.media.getCurrentTime();return this.getWidgetAnnotations().filter(function(m){return m.begin<=d&&m.end>d})}isLoaded(){var d=!_$1(this.__subwidgets).some(function(m){return!(m&&m.isLoaded())});return d}insertSubwidget(d,m,h){var S=d.attr("id"),k=this,A=this.__subwidgets.length;this.__subwidgets.push(null),typeof S>"u"&&(S=_$1.uniqueId(this.container+"_sub_widget_"+m.type),d.attr("id",S)),m.container=S,k.player.loadWidget(m,function(B){h&&(k[h]=B),k.__subwidgets[A]=B})}navigate(d){for(var m=this,h=m.media.getCurrentTime(),S=m.getWidgetAnnotations().sortBy(function(A){return A.begin}),k=0;k<S.length;k++)if(S[k].begin<=h&&h<S[k].end){k=Math.min(S.length-1,Math.max(0,k+d)),m.media.setCurrentTime(S[k].begin);break}}exportAnnotations(d){var m=this;d===void 0&&(d=this.getWidgetAnnotations());var h=jQuery,S=mustache.render(`[video:{{url}}]
`,{url:m.media.url})+d.map(function(k){return mustache.render("[{{ a.begin }}]{{ a.title }} {{ a.description }}[{{ a.end }}]",{a:k})}).join(`
`);h("<pre>").addClass("exportContainer").text(S).dialog({title:"Annotation export",open:function(k,A){var B;document.selection?(B=document.body.createTextRange(),B.moveToElementText(this[0]),B.select()):window.getSelection&&(B=document.createRange(),B.selectNode(this[0]),window.getSelection().addRange(B))},autoOpen:!0,width:"80%",minHeight:"400",height:400,buttons:[{text:"Close",click:function(){h(this).dialog("close")}},{text:"Download",click:function(){a=document.createElement("a"),a.setAttribute("href","data:text/plain;base64,"+btoa(S)),a.setAttribute("download","Annotations - "+m.media.title.replace(/[^ \w]/g,"")+".txt"),a.click()}}]})}draw(){}generateUid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var m=Math.random()*16|0,h=d==="x"?m:m&3|8;return h.toString(16)})}},Cr(l,"defaults",{}),Cr(l,"template",""),Cr(l,"messages",{en:{}}),l),n}const AdaptivePlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){typeof this.video>"u"&&(this.video=this.media.video);var l=["autostart","video","height","width","url_transform"],d={},m=document.createElement("video").canPlayType(this.mime_type);d.type=m!=="no"?this.normal_player:this.fallback_player;for(var h=0;h<l.length;h++)typeof this[l[h]]<"u"&&(d[l[h]]=this[l[h]]);this.insertSubwidget(this.$,d)}},Cr(n,"defaults",{mime_type:'video/mp4; codecs="avc1.42E01E"',normal_player:"HtmlPlayer",fallback_player:"HtmlPlayer"}),n},helloWorldStyles={},HelloWorld=function(t){var n;return n=class extends t.Widgets.Widget{constructor(d,m){super(d,m);Cr(this,"draw",function(){this.renderTemplate(),console.log("HelloWorldWidget was drawn")});console.log("Calling IriSP.Widget's constructor from IriSP.HelloWorldWidget")}},Cr(n,"defaults",{text:"world"}),Cr(n,"template",'<div class="Ldt-HelloWorld"><p>{{l10n.Hello}} {{text}}</p><p>Looks like we have <span class="Ldt-HelloWorld-annotations">{{source.contents.annotation.length}} annotations</span> in this feed</p></div>'),Cr(n,"messages",{fr:{Hello:"Bonjour,"},en:{Hello:"Hello,"}}),n},annotationStyles={},Annotation=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.lastAnnotation=!1,this.minimized=this.start_minimized||!1,this.bounds=[0,0]}draw(){var l=this,d;function m(k){var A=l.getWidgetAnnotationsAtTime();A.length||(l.$.find(".Ldt-Annotation-Inner").addClass("Ldt-Annotation-Empty"),l.arrow&&l.arrow.moveToTime(k),l.bounds=[k,k],l.sendBounds())}function h(){if(d){var k=d.title,A=d.description.replace(/(^\s+|\s+$)/g,""),B=d.found&&l.source.getAnnotations().regexp||!1;l.$.find(".Ldt-Annotation-Title").html(IriSP.textFieldHtml(k,B)||"("+l.l10n.untitled+")"),A?(l.$.find(".Ldt-Annotation-Description-Block").removeClass("Ldt-Annotation-EmptyBlock"),l.$.find(".Ldt-Annotation-Description").html(IriSP.textFieldHtml(A,B))):l.$.find(".Ldt-Annotation-Description-Block").addClass("Ldt-Annotation-EmptyBlock")}}function S(k){d=k;var A=typeof k.url<"u"?k.url:document.location.href.replace(/#.*$/,"")+"#id="+k.id,B=l.l10n.watching+k.title+(l.site_name?l.l10n.on_site+l.site_name:""),M=k.getTags(),j=l.$.find(".Ldt-Annotation-Tags");j.empty(),M.length?(l.$.find(".Ldt-Annotation-Tags-Block").removeClass("Ldt-Annotation-EmptyBlock"),M.forEach(function(I){var P=I.title.replace(/(^\s+|\s+$)/g,"");if(P){var $=IriSP.jQuery('<li class="Ldt-Annotation-TagLabel"></li>').append(IriSP.jQuery("<span>").text(P));$.click(function(){l.search_on_tag_click&&l.source.getAnnotations().search(P),I.trigger("click")}),j.append($)}})):l.$.find(".Ldt-Annotation-Tags-Block").addClass("Ldt-Annotation-EmptyBlock"),h(),l.show_creator&&l.$.find(".Ldt-Annotation-Creator").text(k.creator),l.show_annotation_type&&(l.$.find(".Ldt-Annotation-Type").text(k.getAnnotationType().title),l.$.find(".Ldt-Annotation-Type").attr("title",k.getAnnotationType().description)),l.$.find(".Ldt-Annotation-Begin").text(k.begin.toString()),l.$.find(".Ldt-Annotation-End").text(k.end.toString()),k.elementType==="mashedAnnotation"?(l.$.find(".Ldt-Annotation-Inner").addClass("Ldt-Annotation-isMashup"),l.$.find(".Ldt-Annotation-MashupMedia").text(k.getMedia().title),l.$.find(".Ldt-Annotation-MashupBegin").text(k.annotation.begin.toString()),l.$.find(".Ldt-Annotation-MashupEnd").text(k.annotation.end.toString())):l.$.find(".Ldt-Annotation-Inner").removeClass("Ldt-Annotation-isMashup"),typeof l.socialWidget<"u"?l.socialWidget.updateUrls(A,B):setTimeout(function(){typeof l.socialWidget<"u"&&l.socialWidget.updateUrls(A,B)},800),l.$.find(".Ldt-Annotation-Inner").removeClass("Ldt-Annotation-Empty"),l.bounds=[k.begin,k.end],l.arrow&&l.arrow.moveToTime((1-l.arrow_position)*k.begin+l.arrow_position*k.end),l.sendBounds()}this.renderTemplate(),this.$.find(".Ldt-Annotation-Title").click(function(){return d&&l.media.setCurrentTime(d.begin),!1}),this.show_social&&this.insertSubwidget(this.$.find(".Ldt-Annotation-Social"),{type:"Social"},"socialWidget"),this.show_arrow&&this.insertSubwidget(this.$.find(".Ldt-Annotation-Arrow"),{type:"Arrow",width:this.width},"arrow"),this.onMediaEvent("timeupdate",m),this.onMdpEvent("Annotation.hide","hide"),this.onMdpEvent("Annotation.show","show"),this.onMdpEvent("Annotation.minimize","minimize"),this.onMdpEvent("Annotation.maximize","maximize"),this.onMdpEvent("Annotation.getBounds","sendBounds"),this.$.find(".Ldt-Annotation-MaxMinButton").click(this.functionWrapper("toggleSize")),this.$.on("resize",function(){l.width=l.$.parent().width(),l.$.css({width:l.width})}),this.getWidgetAnnotations().forEach(function(k){k.on("enter",function(){S(k)})}),this.source.getAnnotations().on("found",h),this.source.getAnnotations().on("not-found",h),this.source.getAnnotations().on("search-cleared",h),IriSP.attachDndData(this.$.find("h3"),function(){return{title:d.title,description:d.description,image:d.thumbnail,uri:typeof d.url<"u"?d.url:document.location.href.replace(/#.*$/,"")+"#id="+d.id,text:"["+d.begin.toString()+"] "+d.title}})}sendBounds(){this.player.trigger("Annotation.boundsChanged",this.bounds)}drawAnnotation(l){this.lastAnnotation=l.id}hide(){this.$.slideUp()}show(){this.$.slideDown()}toggleSize(){this.minimized?this.maximize():this.minimize()}minimize(){this.minimized=!0,this.$.find(".Ldt-Annotation-Inner").addClass("Ldt-Annotation-Minimized")}maximize(){this.minimized=!1,this.$.find(".Ldt-Annotation-Inner").removeClass("Ldt-Annotation-Minimized")}},Cr(n,"messages",{fr:{watching:"Je regarde ",on_site:" sur ",tags_:"Mots-clés :",description_:"Description :",creator_:"Créé par :",excerpt_from:"Extrait de :",untitled:"Segment sans titre"},en:{watching:"I'm watching ",on_site:" on ",tags_:"Keywords:",description_:"Description:",creator_:"Created by :",excerpt_from:"Excerpt from:",untitled:"Untitled segment"}}),Cr(n,"template",'{{#show_arrow}}<div class="Ldt-Annotation-Arrow"></div>{{/show_arrow}}<div class="Ldt-Annotation-Widget {{^show_arrow}}Ldt-Annotation-ShowTop{{/show_arrow}}"><div class="Ldt-Annotation-Inner Ldt-Annotation-Empty{{#start_minimized}} Ldt-Annotation-Minimized{{/start_minimized}}"><div class="Ldt-Annotation-HiddenWhenEmpty Ldt-Annotation-MaxMinButton"></div>{{#show_social}}<div class="Ldt-Annotation-Social Ldt-Annotation-HiddenWhenMinimized Ldt-Annotation-HiddenWhenEmpty"></div>{{/show_social}}<h3 class="Ldt-Annotation-HiddenWhenEmpty">{{#show_annotation_type}}<span class="Ldt-Annotation-Type"></span> » {{/show_annotation_type}}<a class="Ldt-Annotation-Title" href="#"></a> <span class="Ldt-Annotation-Time Ldt-Annotation-HiddenWhenMinimized">(<span class="Ldt-Annotation-Begin"></span> - <span class="Ldt-Annotation-End"></span>)</span></h3><h3 class="Ldt-Annotation-MashupOrigin Ldt-Annotation-HiddenWhenEmpty">{{l10n.excerpt_from}} <span class="Ldt-Annotation-MashupMedia"></span> <span class="Ldt-Annotation-Time Ldt-Annotation-HiddenWhenMinimized">(<span class="Ldt-Annotation-MashupBegin"></span> - <span class="Ldt-Annotation-MashupEnd"></span>)</span></h3><div class="Ldt-Annotation-Cleared Ldt-Annotation-HiddenWhenMinimized Ldt-Annotation-HiddenWhenEmpty Ldt-Annotation-Creator-Block"><div class="Ldt-Annotation-Label">{{l10n.creator_}}</div>{{#show_creator}}<p class="Ldt-Annotation-Labelled Ldt-Annotation-Creator"></p></div>{{/show_creator}}{{#show_description}}<div class="Ldt-Annotation-Cleared Ldt-Annotation-HiddenWhenMinimized Ldt-Annotation-HiddenWhenEmpty Ldt-Annotation-Description-Block"><div class="Ldt-Annotation-Label">{{l10n.description_}}</div><p class="Ldt-Annotation-Labelled Ldt-Annotation-Description"></p></div>{{/show_description}}<div class="Ldt-Annotation-Tags-Block Ldt-Annotation-HiddenWhenMinimized Ldt-Annotation-HiddenWhenEmpty Ldt-Annotation-Cleared"><div class="Ldt-Annotation-Label">{{l10n.tags_}}</div><ul class="Ldt-Annotation-Labelled Ldt-Annotation-Tags"></ul></div></div></div></div>'),Cr(n,"defaults",{annotation_type:"chap",start_minimized:!1,show_arrow:!0,show_creator:!0,show_description:!0,arrow_position:.5,site_name:"Lignes de Temps",search_on_tag_click:!0,show_social:!0,show_annotation_type:!1}),n},annotationsControllerStyles={},AnnotationsController=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){this.renderTemplate();var l=this;this.element_$=this.$.find(".Ldt-AnnotationsController"),this.displayButton_$=this.$.find(".Ldt-AnnotationsController-ShowAnnotationsListButton"),this.writeButton_$=this.$.find(".Ldt-AnnotationsController-ShowCreateAnnotationButton"),this.writeButton_$.click(function(){l.writeButton_$.hasClass("selected")?(l.player.trigger("CreateAnnotation.hide"),l.toggle_widgets?l.player.trigger("AnnotationsList.show"):l.display_or_write&&l.player.trigger("AnnotationsList.hide")):(l.player.trigger("CreateAnnotation.show"),l.display_or_write&&l.player.trigger("AnnotationsList.hide"))}),this.displayButton_$.click(function(){l.displayButton_$.hasClass("selected")?(l.player.trigger("AnnotationsList.hide"),l.toggle_widgets?l.player.trigger("CreateAnnotation.show"):l.display_or_write&&l.player.trigger("CreateAnnotation.hide")):(l.player.trigger("AnnotationsList.show"),l.display_or_write&&l.player.trigger("CreateAnnotation.hide"))}),this.hide_without_segment&&(this.onMediaEvent("timeupdate",function(){l.refresh()}),this.onMediaEvent("settimerange",function(d){l.refresh(d)}),this.segments=this.source.getAnnotationsByTypeTitle(this.segments_annotation_type),this.currentSegment=!1),this.createAnnotationEnabled=!1,this.onMdpEvent("CreateAnnotation.hide",function(){l.hide_when_writing&&l.show(),l.createAnnotationEnabled=!1,l.writeButton_$.toggleClass("selected",!1)}),this.onMdpEvent("CreateAnnotation.show",function(){l.hide_when_writing&&l.hide(),l.createAnnotationEnabled=!0,l.writeButton_$.toggleClass("selected",!0)}),this.onMdpEvent("AnnotationsList.hide",function(){l.displayButton_$.toggleClass("selected",!1)}),this.onMdpEvent("AnnotationsList.show",function(){l.displayButton_$.toggleClass("selected",!0)}),this.starts_hidden?(this.visible=!0,this.hide()):(this.visible=!1,this.show()),this.starting_widget&&this.visible&&(this.starting_widget=="AnnotationsList"?this.player.trigger("AnnotationsList.show"):this.starting_widget=="CreateAnnotation"&&this.player.trigger("CreateAnnotation.show"))}refresh(l){if(l=typeof l<"u"?l:!1,l||this.media.getTimeRange()&&(l=this.media.getTimeRange()),this.hide_without_segment){if(!l&&!this.media.getTimeRange())_currentTime=this.media.getCurrentTime(),_currentSegments=this.segments.filter(function(h){return _currentTime>=h.begin&&_currentTime<=h.end}),_currentSegments.length>0?currentSegment=!0:currentSegment=!1;else{var d=l[0],m=l[1];_currentSegments=this.segments.filter(function(h){return d==h.begin&&m==h.end}),_currentSegments.length>0?currentSegment=!0:currentSegment=!1}!currentSegment&&_currentSegments.length==0?(this.visible||this.hide_when_writing)&&(this.writeButton_$.toggleClass("selected",!1),this.displayButton_$.toggleClass("selected",!1),this.player.trigger("CreateAnnotation.hide"),this.player.trigger("AnnotationsList.hide"),this.hide()):this.visible||(this.createAnnotationEnabled||this.show(),this.writeButton_$.toggleClass("selected",!1),this.displayButton_$.toggleClass("selected",!1),this.starting_widget=="AnnotationsList"&&this.player.trigger("AnnotationsList.show"),this.starting_widget=="CreateAnnotation"&&this.player.trigger("CreateAnnotation.show"))}}hide(){this.visible&&(this.visible=!1,this.element_$.hide())}show(){this.visible||(this.visible=!0,this.element_$.show())}},Cr(n,"defaults",{display_or_write:!1,toggle_widgets:!1,starts_hidden:!1,hide_without_segment:!1,hide_when_writing:!0,starting_widget:!1,always_show_widget:!1,segments_annotation_type:"chap",custom_write_text:!1,custom_display_text:!1}),Cr(n,"template","<div class='Ldt-AnnotationsController'><div class='Ldt-AnnotationsController-ButtonsContainer'>    <div class='Ldt-AnnotationsController-Button Ldt-AnnotationsController-ShowCreateAnnotationButton'>{{#custom_write_text}}{{/custom_write_text}}{{custom_write_text}}{{^custom_write_text}}{{l10n.write}}{{/custom_write_text}}</div>    <div class='Ldt-AnnotationsController-Button Ldt-AnnotationsController-ShowAnnotationsListButton'>{{#custom_display_text}}{{/custom_display_text}}{{custom_display_text}}{{^custom_display_text}}{{l10n.display}}{{/custom_display_text}}</div></div></div>"),Cr(n,"messages",{en:{write:"Write",display:"Display"},fr:{write:"Ecrire",display:"Voir"}}),n},annotationsListStyles={},AnnotationsList=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.lastIds=[];var m=this;this.throttledRefresh=_$1.throttle(function(h){m.refresh(h)},800),this.searchString=!1,this.lastSearch=!1,this.localSource=void 0}importUsers(){if(!this.source.users_data&&this.api_users_endpoint){this.usernames=Array();var l=this,d=this.getWidgetAnnotations(),m="";return d.forEach(function(h){l.usernames.indexOf(h.creator)==-1&&l.usernames.push(h.creator)}),this.usernames.forEach(function(h){m+=h+","}),m=m.substring(0,m.length-1),_url=mustache.render(this.api_users_endpoint,{usernames_list_string:encodeURIComponent(m),usernames_list_length:this.usernames.length}),jQuery.ajax({async:!1,url:_url,type:"GET",success:function(h){l.source.users_data=h.objects},error:function(h,S,k){console.log(h),console.log(S),console.log(k)}})}}ajaxSource(){var l=this.media.getCurrentTime(),d=this.media.duration;this.lastAjaxQuery=l;var m=mustache.render(this.ajax_url,{media:this.source.currentMedia.id,begin:Math.max(0,l-this.ajax_granularity),end:Math.min(d.milliseconds,l+this.ajax_granularity)});this.currentSource=this.player.loadMetadata(_$1.defaults({url:m},this.metadata))}showScreen(l){this.$.find(".Ldt-AnnotationsList-Screen"+l).show().siblings().hide()}ajaxMashup(){var l=this.media.getCurrentTime(),d=this.source.currentMedia.getAnnotationAtTime(l);if(typeof d<"u"&&d.id!==this.lastMashupAnnotation){this.lastMashupAnnotation=d.id;var m=d.getMedia(),h=mustache.render(this.ajax_url,{media:m.id,begin:Math.max(0,d.annotation.begin.milliseconds-this.ajax_granularity),end:Math.min(m.duration.milliseconds,d.annotation.end.milliseconds+this.ajax_granularity)});this.currentSource=this.player.loadMetadata(_$1.defaults({url:h},this.metadata))}}importAnnotations(){var l=this,d=jQuery,m=d("<textarea>");d("<div>").append(d("<span>").addClass("importAnnotationsLabel").text(l.messages.import_annotations)).addClass("importContainer").dialog({title:"Annotation import",autoOpen:!0,width:"80%",minHeight:"400",height:400,buttons:[{text:"Close",click:function(){d(this).dialog("close")}},{text:"Import",click:function(){for(var h=/(\[[\d:]+\])/,S=m[0].value.split(h).filter(function(P){return!P.match(/^\s*$/)}),k=null,A=null,B=null,M=null,j=0;j<S.length;j++){var I=S[j];I.match(h)?(M=="text"?(A=t.timestamp2ms(I.slice(1,-1)),TODO.createAnnotation(k,A,B),k=A,A=null,B=null):(B=null,k=t.timestamp2ms(I.slice(1,-1)),A=null),M="timestamp"):(B=I,M="text"),M=="text"&&k!==null&&TODO.createAnnotation(k,k,B)}}}]})}refresh(l){if(l=typeof l<"u"&&l,this.currentSource.status!==t.Model._SOURCE_STATUS_READY)return 0;var d=this,m=this.media.getCurrentTime(),h=this.annotation_type?this.currentSource.getAnnotationsByTypeTitle(this.annotation_type):this.currentSource.getAnnotations();if(this.mashupMode){var S=this.source.currentMedia.getAnnotationAtTime(m);if(typeof S<"u"){m=m-S.begin+S.annotation.begin;var k=S.getMedia().id;h=h.filter(function(N){return N.getMedia().id===k})}}h=h.filter(function(N){return N.found!==!1}),this.filter_by_segments&&!(this.show_filters&&this.segment_filter&&this.ignoresegmentcheckbox_$[0].checked)&&(_segmentsAnnotation=this.currentSource.getAnnotationsByTypeTitle(this.segments_annotation_type),this.media.getTimeRange()?_currentSegments=_segmentsAnnotation.filter(function(N){return d.media.getTimeRange()[0]==N.begin&&d.media.getTimeRange()[1]==N.end}):_currentSegments=_segmentsAnnotation.filter(function(N){return m>=N.begin&&m<=N.end}),_currentSegments.length==0?h=h.filter(function(N){return!1}):h=h.filter(function(N){return _annotation_time=(N.begin+N.end)/2,_currentSegments[0].begin<=_annotation_time&&_currentSegments[0].end>=_annotation_time}),this.annotations_count_header&&this.annotations_count!=h.length&&(this.annotations_count=h.length,this.refreshHeader())),this.show_only_annotation_from_user&&(h=h.filter(function(N){return N.creator==d.show_only_annotation_from_user})),this.limit_count&&(h=h.sortBy(function(N){return Math.abs((N.begin+N.end)/2-m)}).slice(0,this.limit_count)),this.newest_first?h=h.sortBy(function(N){return-N.created.valueOf()}):h=h.sortBy(function(N){return N.begin}),this.show_filters&&(this.user_filter&&(_username=this.userselect_$[0].options[this.userselect_$[0].selectedIndex].value,_username!="false"&&(h=h.filter(function(N){return N.creator==_username}))),this.keyword_filter&&(_keyword=this.keywordinput_$[0].value,_keyword!=""&&(h=h.filter(function(N){return N.description.toLowerCase().match(_keyword.toLowerCase())}))),this.date_filter&&this.datefilterinput_$[0].value!=""&&(_date=this.datefilterinput_$.datepicker("getDate"),h=h.filter(function(N){return N.created.getDate()==_date.getDate()&&N.created.getMonth()==_date.getMonth()&&N.created.getFullYear()==_date.getFullYear()})),this.latest_contributions_filter&&this.latestcontributionscheckbox_$[0].checked&&(h=h.sortBy(function(N){return-N.created.valueOf()}),this.usernames.forEach(function(N){latest_ann=h.filter(function(F){return F.creator==N})[0],h=h.filter(function(F){return F.id==(latest_ann?latest_ann.id:!1)||F.creator!=N})})));var A=h.idIndex;if(l||!_$1.isEqual(A,this.lastIds)||this.searchString!==this.lastSearch){if(this.lastSearch=this.searchString,this.lastIds=A,this.list_$.html(""),h.forEach(function(N){var F=typeof N.url<"u"&&N.url?N.url:typeof d.source.projectId<"u"&&typeof N.project<"u"&&N.project&&d.source.projectId!==N.project?mustache.render(d.foreign_url,{project:N.project,media:N.media.id,annotation:N.id,annotationType:N.annotationType.id}):document.location.href.replace(/#.*$/,"")+"#id="+N.id+"&t="+N.begin/1e3,U=N.project!=d.source.projectId,J="",te=N.description,se=typeof N.thumbnail<"u"&&N.thumbnail?N.thumbnail:d.default_thumbnail;if(d.show_creator&&N.creator){var de=[],Q={},ve="";d.source.users_data&&(de=d.source.users_data.filter(function(y){return y.username==N.creator})),de.length==0?Q.username=N.creator:Q=de[0],ve=d.make_name_string_function(Q)}if(d.show_title&&N.title)var J=N.title;var he;_$1(d.polemics).each(function(y){var w=t.Model.regexpFromTextOrArray(y.keyword,!0);w.test(J+" "+te)&&(he=y.background_color)});var ke=!1;if(d.show_creation_date&&(ke=N.created.toLocaleDateString()+", "+N.created.toLocaleTimeString().replace(/\u200E/g,"").replace(/^([^\d]*\d{1,2}:\d{1,2}):\d{1,2}([^\d]*)$/,"$1$2")),d.tags==!0)var T=N.getTagTexts();else var T=!1;var u={id:N.id,media_id:N.getMedia().id,htitle:t.textFieldHtml(J),title:J,creator:ve,hdescription:t.textFieldHtml(te),description:te,begin:N.begin.toString(),end:N.end.toString(),created:ke,show_timecode:d.show_timecode,show_end_time:d.show_end_time,show_title:d.show_title&&J,thumbnail:se,url:F,tags:T,specific_style:typeof he<"u"?"background-color: "+he:"",l10n:d.l10n,editable:d.editable,external:U,show_publish:d.show_publish,show_creator:d.show_creator,show_twitter:d.show_twitter,twitter_param:jQuery.param({url:F,text:t.textFieldHtml(J)+(d.twitter_hashtag?" #"+d.twitter_hashtag:"")}),allow_annotations_deletion:d.allow_annotations_deletion},p=mustache.render(d.constructor.annotationTemplate,u),b=jQuery(p),e=function(){d.$.find(".Ldt-AnnotationsList-li").removeClass("selected"),b.addClass("selected")},c=function(){d.$.find(".Ldt-AnnotationsList-li").removeClass("selected")};b.mouseover(function(){N.trigger("select")}).mouseout(function(){N.trigger("unselect")}).click(function(){d.filter_by_segments&&d.media.getTimeRange()&&(_ann_time=(N.begin+N.end)/2,(_ann_time<=d.media.getTimeRange()[0]||_ann_time>=d.media.getTimeRange()[1])&&d.media.resetTimeRange()),N.trigger("click")}).appendTo(d.list_$),t.attachDndData(b.find("[draggable]"),{title:J,description:te,uri:F,image:N.thumbnail,text:"["+N.begin.toString()+"] "+J}),b.on("remove",function(){N.off("select",e),N.off("unselect",c)}),N.on("select",e),N.on("unselect",c)}),this.$.find(".Ldt-AnnotationsList-Tag-Li").each(function(){var N=jQuery(this);N.text().replace(/(^\s+|\s+$)/g,"")||N.remove()}),this.editable){var B=d,M=jQuery,j=function(N,F){var U="#FF9999",J="#99FF99";F===void 0&&(F=N);var te=M(N.dataset.editable_type==="multiline"?"<textarea>":"<input>").addClass("editableInput").insertBefore(M(F));te[0].value=N.dataset.editable_value,M(te).show().focus(),M(N).addClass("editing");function se(ve){M(N).removeClass("editing"),te.remove();var he=M(N).css("background-color");M(N).stop().css("background-color",ve).animate({backgroundColor:he},1e3)}function de(ve){se(U)}function Q(){var ve=te[0].value;if(ve==N.dataset.editable_value){se(J);return}if(ve==""){$(N.dataset.editable_id),B.player.trigger("Annotation.delete",N.dataset.editable_id);return}else{var he=ve;if(N.dataset.editable_type=="timestamp"&&(he=t.timestamp2ms(ve),Number.isNaN(he))){de();return}N.dataset.editable_value=ve,ve=he,M(N).text(he)}var ke=I(N.dataset.editable_id);ke===void 0?(console.log("Strange error: cannot find edited annotation"),se(U)):(N.dataset.editable_value=ve,N.dataset.editable_field=="begin"?ke.setBegin(ve):N.dataset.editable_field=="end"?ke.setEnd(ve):ke[N.dataset.editable_field]=ve,ke.modified=new Date,ke.contributor=B.player.config.username||"COCo User",B.player.addLocalAnnotation(ke),B.player.trigger("Annotation.update",ke),se(J))}M(te).bind("keydown",function(ve){ve.which==13?(ve.preventDefault(),Q()):ve.which==27&&(ve.preventDefault(),de())}).bind("blur",function(ve){Q()})},I=function(N){return B.player.getLocalAnnotation(N)},P=function(){B.player.saveLocalAnnotations(),B.source.merge(B.player.localSource)},$=function(N){B.source.getAnnotations().removeId(N,!0),B.player.deleteLocalAnnotation(N),B.refresh(!0)};this.$.find(".Ldt-AnnotationsList-Delete").click(function(N){var F=I(this.dataset.editable_id);confirm(mustache.render(B.l10n.confirm_delete_message,{annotation:F}))&&$(this.dataset.editable_id),B.refresh(!0)}),this.$.find(".Ldt-AnnotationsList-Edit").click(function(N){if(B.on_edit){var F=I(this.dataset.editable_id);B.on_edit(F)}else{var U=M(this).parents(".Ldt-AnnotationsList-li").find(".Ldt-AnnotationsList-TitleContent.Ldt-live-editable");j(U[0])}}),this.$.find(".Ldt-AnnotationsList-PublishAnnotation").click(function(N){var F=I(this.dataset.editable_id);if(confirm(mustache.render(B.l10n.confirm_publish_message,{annotation:F}))){var U=mustache.render(B.api_endpoint_template,{id:B.source.projectId});if(U!==""){var J=B.player.sourceManager.newLocalSource({serializer:t.serializers[B.api_serializer]});if(B.publish_type){var te=B.source.getAnnotationTypes().filter(function(de){return de.title==B.publish_type});te.length==1&&F.setAnnotationType(te[0].id)}var se=new t.Model.List(B.player.sourceManager);se.push(F),J.addList("annotation",se),jQuery.ajax({url:U,type:B.api_method,contentType:"application/json",data:J.serialize(),success:function(de){M(this).addClass("published");var Q=I(F.id);Q.setTags(["published"]),P(),B.player.trigger("Annotation.publish",F)},error:function(de,Q,ve){t.log("Error when sending annotation",ve)}})}}}),this.$.find(".Ldt-AnnotationsList-TimeEdit").dblclick(function(N){var F=this,U=I(F.dataset.editable_id);U!==void 0&&(U.setBegin(B.media.getCurrentTime().milliseconds),P(),B.player.trigger("Annotation.update",U),B.refresh(!0))})}if(this.$.find(".Ldt-AnnotationsList-Tag-Li").click(function(){d.source.getAnnotations().search(jQuery(this).text().replace(/(^\s+|\s+$)/g,""))}),this.$.find(".Ldt-Annotation-Timecode").click(function(){d.media.setCurrentTime(Number(this.dataset.timecode))}),this.$.find(".Ldt-AnnotationsList-Play").click(function(){var N=jQuery(this),F=N.attr("data-annotation-id");d.jwplayers[F]&&jwplayer(d.jwplayers[F]).play(),d.media.pause()}),this.source.getAnnotations().searching){var z=d.source.getAnnotations().regexp||!1;this.$.find(".Ldt-AnnotationsList-Title a, .Ldt-AnnotationsList-Description").each(function(){var N=jQuery(this);N.html(t.textFieldHtml(N.text(),z))})}this.$.find(".Ldt-AnnotationsList-DeleteButton").click(d.functionWrapper("onDeleteClick"))}return this.ajax_url&&(this.mashupMode?this.ajaxMashup():Math.abs(m-this.lastAjaxQuery)>this.ajax_granularity&&this.ajaxSource()),h.length}onDeleteClick(l){_list=this.getWidgetAnnotations(),ann_id=l.target.dataset.annotation,delete_preview_$=this.$.find(".Ldt-AnnotationsList-ul-ToDelete"),delete_preview_$.html(""),_list=_list.filter(function(I){return I.id==ann_id});var d=_list[0],m="",h="",S=this;if(d.creator){var k=[],A={};S.source.users_data&&(k=S.source.users_data.filter(function(I){return I.username==d.creator})),k.length==0?A.username=d.creator:A=k[0],h=S.make_name_string_function(A)}if(d.title){var B=d.title;B.substr(0,m.length+1)==m+":"&&(m=""),m=m+(m==""?"":": ")+d.title}var M=!1;this.show_creation_date&&(M=d.created.toLocaleDateString()+", "+d.created.toLocaleTimeString());var j={id:d.id,media_id:d.getMedia().id,htitle:t.textFieldHtml(m),hdescription:t.textFieldHtml(d.description),begin:d.begin.toString(),end:d.end.toString(),created:M,show_timecode:this.show_timecode,show_creator:this.show_creator,creator:h,tags:!1,l10n:this.l10n,allow_annotations_deletion:!1};_html=mustache.render(this.constructor.annotationTemplate,j),delete_preview_$.html(_html),this.$.find(".Ldt-AnnotationsList-ConfirmDelete").click(function(){S.sendDelete(ann_id)}),this.showScreen("Delete")}refreshHeader(){var l=" ("+this.annotations_count+" "+this.annotations_count_header_string+")";this.$.find(".Ldt-AnnotationsList-header").html(""),this.$.find(".Ldt-AnnotationsList-header").html(this.custom_header&&typeof this.custom_header=="string"?this.custom_header+l:this.l10n.header+l)}hide(){var l=this;this.visible&&(this.visible=!1,this.widget_$.slideUp(function(){l.$.find(".Ldt-AnnotationsList-header").hide()}),this.showScreen("Main"))}show(){this.visible||(this.visible=!0,this.$.find(".Ldt-AnnotationsList-header").show(),this.widget_$.slideDown(),this.showScreen("Main"))}toggle(){this.always_visible||(this.visible?this.hide():this.show())}revertToMainScreen(){this.$.find(".Ldt-AnnotationsList-ScreenMain").is(":hidden")&&this.showScreen("Main")}sendDelete(l){var d=this,m=mustache.render(this.api_delete_endpoint,{annotation_id:l,project_id:this.project_id});jQuery.ajax({url:m,type:this.api_delete_method,contentType:"application/json",success:function(h){d.showScreen("Success"),window.setTimeout(d.functionWrapper("revertToMainScreen"),d.after_send_timeout||2e3),d.currentSource.getAnnotations().removeId(l),d.player.trigger("AnnotationsList.refresh")},error:function(h,S,k){t.log("Error when sending annotation",k),d.showScreen("Error"),window.setTimeout(d.functionWrapper("revertToMainScreen"),d.after_send_timeout||2e3)}}),this.showScreen("Sending")}draw(){this.jwplayers={},this.mashupMode=this.media.elementType==="mashup",this.renderTemplate();var l=this;this.list_$=this.$.find(".Ldt-AnnotationsList-ul"),this.widget_$=this.$.find(".Ldt-AnnotationsListWidget"),this.widget_max_height&&this.widget_$.css("max-height",this.widget_max_height),this.show_filters&&(this.user_filter&&(this.userselect_$=this.$.find("#Ldt-AnnotationsList-userFilter"),this.userselect_$.change(function(){l.player.trigger("AnnotationsList.refresh")}),this.userselect_$.html("<option selected value='false'>"+this.l10n.everyone+"</option>"),this.usernames.forEach(function(h){var S=l.source.users_data.filter(function(A){return A.username==h}),k={};S.length==0?k.username=h:k=S[0],l.userselect_$.append("<option value='"+h+"'>"+l.make_name_string_function(k)+"</option>")})),this.keyword_filter&&(this.keywordinput_$=this.$.find("#Ldt-AnnotationsList-keywordsFilter"),this.keywordinput_$.keyup(function(){l.player.trigger("AnnotationsList.refresh")})),this.segment_filter&&(this.ignoresegmentcheckbox_$=this.$.find("#Ldt-AnnotationsList-ignoreSegmentsFilter"),this.ignoresegmentcheckbox_$.click(function(){l.player.trigger("AnnotationsList.refresh")})),this.date_filter&&(this.datefilterinput_$=this.$.find("#Ldt-AnnotationsList-dateFilter"),this.datefilterinput_$.datepicker({dateFormat:"dd/mm/yy"}),this.datefilterinput_$.change(function(){l.player.trigger("AnnotationsList.refresh")}),this.current_day_filter&&(currentDate=new Date,this.datefilterinput_$.datepicker("setDate",currentDate))),this.latest_contributions_filter&&(this.latestcontributionscheckbox_$=this.$.find("#Ldt-AnnotationsList-latestContributionsFilter"),this.latestcontributionscheckbox_$.click(function(){l.player.trigger("AnnotationsList.refresh")}))),this.source.getAnnotations().on("search",function(h){l.searchString=h,l.source!==l.currentSource&&(l.currentSource.getAnnotations().search(h),l.throttledRefresh())}),this.source.getAnnotations().on("found",function(){l.throttledRefresh()}),this.source.getAnnotations().on("not-found",function(){l.throttledRefresh()}),this.source.getAnnotations().on("clear-search",function(){l.searchString=!1,l.source!==l.currentSource&&l.currentSource.getAnnotations().trigger("clear-search")}),this.$.find(".Ldt-AnnotationsList-Close").click(function(){l.showScreen("Main")}),this.source.getAnnotations().on("search-cleared",function(){l.throttledRefresh()}),this.onMdpEvent("AnnotationsList.refresh",function(){l.ajax_url&&(l.mashupMode?l.ajaxMashup():l.ajaxSource()),l.throttledRefresh(!1)}),this.onMdpEvent("AnnotationsList.update",function(){l.ajax_url&&(l.mashupMode?l.ajaxMashup():l.ajaxSource()),l.throttledRefresh(!0)}),this.ajax_url?this.mashupMode?this.ajaxMashup():this.ajaxSource():this.currentSource=this.source,this.refresh_interval&&window.setInterval(function(){l.currentSource.get()},this.refresh_interval),this.annotations_count_header&&(this.annotations_count=!1),this.onMdpEvent("AnnotationsList.toggle","toggle"),this.onMdpEvent("AnnotationsList.hide","hide"),this.onMdpEvent("AnnotationsList.show","show"),this.onMdpEvent("createAnnotationWidget.addedAnnotation",this.throttledRefresh);for(var d=["timeupdate","seeked","loadedmetadata","settimerange"],m=0;m<d.length;m++)this.onMediaEvent(d[m],this.throttledRefresh);this.throttledRefresh(),this.showScreen("Main"),this.$.find(".Ldt-AnnotationsList-CancelDelete").click(function(){l.showScreen("Main")}),this.visible=!0,this.start_visible||this.hide()}},Cr(n,"defaults",{pre_draw_callback:function(){return this.importUsers()},ajax_url:!1,ajax_granularity:6e5,default_thumbnail:"",custom_external_icon:"",foreign_url:"",annotation_type:!1,refresh_interval:0,limit_count:20,newest_first:!1,show_title:!0,show_audio:!0,show_creator:!0,show_controls:!1,show_end_time:!0,show_publish:!1,show_twitter:!1,twitter_hashtag:"",on_edit:void 0,publish_type:"PublicContribution",api_endpoint_template:"",api_serializer:"ldt_annotate",api_method:"POST",editable:!1,editable_storage:"",widget_max_height:680,always_visible:!1,start_visible:!0,show_audio:!0,show_filters:!1,keyword_filter:!0,date_filter:!0,user_filter:!0,segment_filter:!0,latest_contributions_filter:!1,current_day_filter:!0,show_header:!1,custom_header:!1,annotations_count_header:!0,annotations_count_header_string:"annotations",show_creation_date:!1,show_timecode:!0,show_end_time:!0,project_id:"",allow_annotations_deletion:!1,api_delete_endpoint:"",api_delete_method:"DELETE",api_users_endpoint:"",api_users_method:"GET",make_name_string_function:function(l){return l.username?l.username:"Anonymous"},filter_by_segments:!1,segment_filter:!0,segments_annotation_type:"chap",show_only_annotation_from_user:!1,tags:!0,polemics:[{keyword:"++",background_color:"#c9ecc6"},{keyword:"--",background_color:"#f9c5c6"},{keyword:"??",background_color:"#cec5f9"},{keyword:"==",background_color:"#f9f4c6"}]}),Cr(n,"messages",{en:{voice_annotation:"Voice Annotation",now_playing:"Now playing...",previous:"Previous",next:"Next",set_time:"Double-click to update to current player time",edit_annotation:"Edit note",delete_annotation:"Delete note",publish_annotation:"Make note public",import_annotations:"Paste or load notes in this field and press Import.",confirm_delete_message:"You are about to delete {{ annotation.title }}. Are you sure you want to delete it?",confirm_publish_message:"You are about to publish {{ annotation.title }}. Are you sure you want to make it public?",tweet_annotation:"Tweet annotation",external_annotation:"This annotation was submitted to another project",everyone:"Everyone",header:"Annotations for this content",segment_filter:"All cuttings",latest_contributions:"Latest contributions",close_widget:"Close",confirm:"Confirm",cancel:"Cancel",annotation_deletion_delete:"You will delete this annotation",annotation_deletion_sending:"Your deletion request is being sent ... ",annotation_deletion_success:"The annotation has been deleted.",annotation_deletion_error:"There was an error contacting the server. The annotation has not been deleted."},fr:{voice_annotation:"Annotation Vocale",now_playing:"Lecture en cours...",previous:"Précédent",next:"Suivant",set_time:"Double-cliquer pour fixer au temps du lecteur",edit_annotation:"Éditer la note",delete_annotation:"Supprimer la note",publish_annotation:"Rendre la note publique",import_annotations:"Copiez ou chargez des notes dans ce champ et appuyez sur Import",confirm_delete_message:"Vous allez supprimer {{ annotation.title }}. Êtes-vous certain(e) ?",confirm_publish_message:"Vous allez publier {{ annotation.title }}. Êtes-vous certain(e) ?",tweet_annotation:"Tweeter l'annotation",external_annotation:"Cette annotation a été postée sur un autre projet",everyone:"Tous",header:"Annotations sur ce contenu",segment_filter:"Tous les segments",latest_contributions:"Dernières contributions",close_widget:"Fermer",confirm:"Confirmer",cancel:"Annuler",annotation_deletion_delete:"Vous allez supprimer cette annotation",annotation_deletion_sending:"Votre demande de suppression est en cours d'envoi ... ",annotation_deletion_success:"L'annotation a été supprimée.",annotation_deletion_error:"Une erreur s'est produite en contactant le serveur. L'annotation n'a pas été supprimée."}}),Cr(n,"template",'{{#show_header}}<p class="Ldt-AnnotationsList-header">{{#custom_header}}{{custom_header}}{{/custom_header}}{{^custom_header}}{{l10n.header}}{{/custom_header}}</p>{{/show_header}}<div class="Ldt-AnnotationsListWidget"><div class="Ldt-AnnotationsList-ScreenMain">{{#show_filters}}<div class="Ldt-AnnotationsList-Filters">{{#keyword_filter}}<input class="Ldt-AnnotationsList-filter-text" id="Ldt-AnnotationsList-keywordsFilter" type="text" value=""></input>{{/keyword_filter}}{{#user_filter}}<select class="Ldt-AnnotationsList-filter-dropdown" id="Ldt-AnnotationsList-userFilter"><option selected value="">{{l10n.everyone}}</option></select>{{/user_filter}}{{#date_filter}}<label class="Ldt-AnnotationsList-filter-date">Date: <input id="Ldt-AnnotationsList-dateFilter" type="text"></input></label>{{/date_filter}}{{#segment_filter}}<label class="Ldt-AnnotationsList-filter-checkbox"><input type="checkbox" id="Ldt-AnnotationsList-ignoreSegmentsFilter">{{l10n.segment_filter}}</label>{{/segment_filter}}{{#latest_contributions_filter}}<label class="Ldt-AnnotationsList-filter-checkbox"><input type="checkbox" id="Ldt-AnnotationsList-latestContributionsFilter">{{l10n.latest_contributions}}</label>{{/latest_contributions_filter}}</div>{{/show_filters}}{{#show_controls}}<div class="Ldt-AnnotationsList-Controls"><span class="Ldt-AnnotationsList-Control-Prev">{{ l10n.previous }}</span> | <span class="Ldt-AnnotationsList-Control-Next">{{ l10n.next }}</span></div>{{/show_controls}}{{#show_audio}}<div class="Ldt-AnnotationsList-Audio"></div>{{/show_audio}}<ul class="Ldt-AnnotationsList-ul"></ul></div>{{#allow_annotations_deletion}}<div data-annotation="{{id}}" class="Ldt-AnnotationsList-Screen Ldt-AnnotationsList-ScreenDelete"><a title="{{l10n.close_widget}}" class="Ldt-AnnotationsList-Close" href="#"></a>{{l10n.annotation_deletion_delete}}<ul class="Ldt-AnnotationsList-ul-ToDelete"></ul><a class="Ldt-AnnotationsList-ConfirmDelete">{{l10n.confirm}}</a> <a class="Ldt-AnnotationsList-CancelDelete">{{l10n.cancel}}</a></div><div data-annotation="{{id}}" class="Ldt-AnnotationsList-Screen Ldt-AnnotationsList-ScreenSending"><a title="{{l10n.close_widget}}" class="Ldt-AnnotationsList-Close" href="#"></a>{{l10n.annotation_deletion_sending}}</div><div data-annotation="{{id}}" class="Ldt-AnnotationsList-Screen Ldt-AnnotationsList-ScreenSuccess"><a title="{{l10n.close_widget}}" class="Ldt-AnnotationsList-Close" href="#"></a>{{l10n.annotation_deletion_success}}</div><div data.annotation="{{id}}" class="Ldt-AnnotationsList-Screen Ldt-AnnotationsList-ScreenError"><a title="{{l10n.close_widget}}" class="Ldt-AnnotationsList-Close" href="#"></a>{{l10n.annotation_deletion_error}}</div>{{/allow_annotations_deletion}}</div>'),Cr(n,"annotationTemplate",'<li class="Ldt-AnnotationsList-li Ldt-Highlighter-Annotation Ldt-TraceMe" data-annotation="{{ id }}" data-begin="{{ begin_ms }}" data-end="{{ end_ms }}" trace-info="annotation-id:{{id}}, media-id:{{media_id}}" style="{{specific_style}}"><div data-annotation="{{ id }}" class="Ldt-AnnotationsList-ThumbContainer Ldt-AnnotationsList-Annotation-Screen Ldt-AnnotationsList-Annotation-ScreenMain"><a {{#url}}href="{{url}}"{{/url}} draggable="true"><img title="{{^external}}{{ begin }} - {{ end }}{{/external}}{{#external}}{{l10n.external_annotation}}{{/external}}" class="Ldt-AnnotationsList-Thumbnail" src="{{thumbnail}}" />{{#external}}<div title="{{l10n.external_annotation}}" class="Ldt-AnnotationsList-External-Icon"></div>{{/external}}</a></div>{{#allow_annotations_deletion}}<div data-annotation="{{ id }}" class="Ldt-AnnotationsList-DeleteButton">&#10006;</div>{{/allow_annotations_deletion}}{{#show_timecode}}<div title="{{l10n.set_time}}" class="Ldt-AnnotationsList-Duration"><span class="Ldt-AnnotationsList-Begin Ldt-live-editable Ldt-AnnotationsList-TimeEdit" data-editable_value="{{begin}}" data-editable_id="{{id}}" data-editable_field="begin" data-editable_type="timestamp">{{begin}}</span>{{#show_end_time}} - <span class="Ldt-AnnotationsList-End Ldt-live-editable" data-editable_value="{{end}}" data-editable_id="{{id}}" data-editable_field="end" data-editable_type="timestamp">{{end}}</span>{{/show_end_time}}</div>{{/show_timecode}}<h3 class="Ldt-AnnotationsList-Title Ldt-Annotation-Timecode" data-timecode="{{ begin_ms }}" draggable="true">{{#show_title}}<span class="Ldt-AnnotationsList-TitleContent Ldt-live-editable" data-editable_value="{{title}}" data-editable_type="multiline" data-editable_id="{{id}}" data-editable_field="title">{{{htitle}}}</span>{{/show_title}}{{#show_creator}}<span class="Ldt-AnnotationsList-Creator">{{ creator }}</span>{{/show_creator}}</h3><p class="Ldt-AnnotationsList-Description Ldt-live-editable" data-editable_type="multiline" data-editable_value="{{description}}" data-editable_id="{{id}}" data-editable_field="description">{{{hdescription}}}</p>{{#created}}<div class="Ldt-AnnotationsList-CreationDate">{{{created}}}</div>{{/created}}{{#tags.length}}<ul class="Ldt-AnnotationsList-Tags">{{#tags}}{{#.}}<li class="Ldt-AnnotationsList-Tag-Li"><span>{{.}}</span></li>{{/.}}{{/tags}}</ul>{{/tags.length}}{{#audio}}<div class="Ldt-AnnotationsList-Play" data-annotation-id="{{id}}">{{l10n.voice_annotation}}</div>{{/audio}}<div class="Ldt-AnnotationsList-EditControls">{{#show_twitter}}<a title="{{l10n.tweet_annotation}}" target="_blank" href="https://twitter.com/intent/tweet?{{twitter_param}}"><img width="16" height="16" src="metadataplayer/img/twitter.svg"></a>{{/show_twitter}}{{#show_publish}}<div title="{{l10n.publish_annotation}}" class="Ldt-AnnotationsList-PublishAnnotation" data-editable_id="{{id}}"></div>{{/show_publish}}{{#editable}}<div title="{{l10n.edit_annotation}}" class="Ldt-AnnotationsList-Edit" data-editable_id="{{id}}"></div><div title="{{l10n.delete_annotation}}" class="Ldt-AnnotationsList-Delete" data-editable_id="{{id}}"></div>{{/editable}}</div></li>'),n};var raphael_min={exports:{}};(function(t,n){(function(l,d){t.exports=d()})(window,function(){return function(l){var d={};function m(h){if(d[h])return d[h].exports;var S=d[h]={i:h,l:!1,exports:{}};return l[h].call(S.exports,S,S.exports,m),S.l=!0,S.exports}return m.m=l,m.c=d,m.d=function(h,S,k){m.o(h,S)||Object.defineProperty(h,S,{enumerable:!0,get:k})},m.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},m.t=function(h,S){if(1&S&&(h=m(h)),8&S||4&S&&typeof h=="object"&&h&&h.__esModule)return h;var k=Object.create(null);if(m.r(k),Object.defineProperty(k,"default",{enumerable:!0,value:h}),2&S&&typeof h!="string")for(var A in h)m.d(k,A,(function(B){return h[B]}).bind(null,A));return k},m.n=function(h){var S=h&&h.__esModule?function(){return h.default}:function(){return h};return m.d(S,"a",S),S},m.o=function(h,S){return Object.prototype.hasOwnProperty.call(h,S)},m.p="",m(m.s=1)}([function(l,d,m){var h,S;h=[m(2)],(S=(function(k){function A(ae){if(A.is(ae,"function"))return B?ae():k.on("raphael.DOMload",ae);if(A.is(ae,v))return A._engine.create[U](A,ae.splice(0,3+A.is(ae[0],w))).add(ae);var ye=Array.prototype.slice.call(arguments,0);if(A.is(ye[ye.length-1],"function")){var Ce=ye.pop();return B?Ce.call(A._engine.create[U](A,ye)):k.on("raphael.DOMload",function(){Ce.call(A._engine.create[U](A,ye))})}return A._engine.create[U](A,arguments)}A.version="2.3.0",A.eve=k;var B,M,j=/[, ]+/,I={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},P=/\{(\d+)\}/g,$="hasOwnProperty",z={doc:document,win:window},N={was:Object.prototype[$].call(z.win,"Raphael"),is:z.win.Raphael},F=function(){this.ca=this.customAttributes={}},U="apply",J="concat",te="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,se="",de=" ",Q=String,ve="split",he="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[ve](de),ke={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},T=Q.prototype.toLowerCase,u=Math,p=u.max,b=u.min,e=u.abs,c=u.pow,y=u.PI,w="number",v="array",o=Object.prototype.toString,x=(A._ISURL=/^url\(['"]?(.+?)['"]?\)$/i,/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i),E={NaN:1,Infinity:1,"-Infinity":1},R=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,H=u.round,Y=parseFloat,Z=parseInt,L=Q.prototype.toUpperCase,D=A._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0,class:""},ee=A._availableAnimAttrs={blur:w,"clip-rect":"csv",cx:w,cy:w,fill:"colour","fill-opacity":w,"font-size":w,height:w,opacity:w,path:"path",r:w,rx:w,ry:w,stroke:"colour","stroke-opacity":w,"stroke-width":w,transform:"transform",width:w,x:w,y:w},oe=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,fe={hs:1,rg:1},ue=/,?([achlmqrstvxz]),?/gi,qe=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,rt=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/gi,Ve=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/gi,et=(A._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,{}),mt=function(ae,ye){return Y(ae)-Y(ye)},Ye=function(ae){return ae},We=A._rectPath=function(ae,ye,Ce,Pe,ze){return ze?[["M",ae+ze,ye],["l",Ce-2*ze,0],["a",ze,ze,0,0,1,ze,ze],["l",0,Pe-2*ze],["a",ze,ze,0,0,1,-ze,ze],["l",2*ze-Ce,0],["a",ze,ze,0,0,1,-ze,-ze],["l",0,2*ze-Pe],["a",ze,ze,0,0,1,ze,-ze],["z"]]:[["M",ae,ye],["l",Ce,0],["l",0,Pe],["l",-Ce,0],["z"]]},Xe=function(ae,ye,Ce,Pe){return Pe==null&&(Pe=Ce),[["M",ae,ye],["m",0,-Pe],["a",Ce,Pe,0,1,1,0,2*Pe],["a",Ce,Pe,0,1,1,0,-2*Pe],["z"]]},Ge=A._getPath={path:function(ae){return ae.attr("path")},circle:function(ae){var ye=ae.attrs;return Xe(ye.cx,ye.cy,ye.r)},ellipse:function(ae){var ye=ae.attrs;return Xe(ye.cx,ye.cy,ye.rx,ye.ry)},rect:function(ae){var ye=ae.attrs;return We(ye.x,ye.y,ye.width,ye.height,ye.r)},image:function(ae){var ye=ae.attrs;return We(ye.x,ye.y,ye.width,ye.height)},text:function(ae){var ye=ae._getBBox();return We(ye.x,ye.y,ye.width,ye.height)},set:function(ae){var ye=ae._getBBox();return We(ye.x,ye.y,ye.width,ye.height)}},nt=A.mapPath=function(ae,ye){if(!ye)return ae;var Ce,Pe,ze,Je,ge,we,Ae;for(ze=0,ge=(ae=Ot(ae)).length;ze<ge;ze++)for(Je=1,we=(Ae=ae[ze]).length;Je<we;Je+=2)Ce=ye.x(Ae[Je],Ae[Je+1]),Pe=ye.y(Ae[Je],Ae[Je+1]),Ae[Je]=Ce,Ae[Je+1]=Pe;return ae};if(A._g=z,A.type=z.win.SVGAngle||z.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",A.type=="VML"){var Et,Le=z.doc.createElement("div");if(Le.innerHTML='<v:shape adj="1"/>',(Et=Le.firstChild).style.behavior="url(#default#VML)",!Et||typeof Et.adj!="object")return A.type=se;Le=null}function Oe(ae){if(typeof ae=="function"||Object(ae)!==ae)return ae;var ye=new ae.constructor;for(var Ce in ae)ae[$](Ce)&&(ye[Ce]=Oe(ae[Ce]));return ye}A.svg=!(A.vml=A.type=="VML"),A._Paper=F,A.fn=M=F.prototype=A.prototype,A._id=0,A.is=function(ae,ye){return(ye=T.call(ye))=="finite"?!E[$](+ae):ye=="array"?ae instanceof Array:ye=="null"&&ae===null||ye==typeof ae&&ae!==null||ye=="object"&&ae===Object(ae)||ye=="array"&&Array.isArray&&Array.isArray(ae)||o.call(ae).slice(8,-1).toLowerCase()==ye},A.angle=function(ae,ye,Ce,Pe,ze,Je){if(ze==null){var ge=ae-Ce,we=ye-Pe;return ge||we?(180+180*u.atan2(-we,-ge)/y+360)%360:0}return A.angle(ae,ye,ze,Je)-A.angle(Ce,Pe,ze,Je)},A.rad=function(ae){return ae%360*y/180},A.deg=function(ae){return Math.round(180*ae/y%360*1e3)/1e3},A.snapTo=function(ae,ye,Ce){if(Ce=A.is(Ce,"finite")?Ce:10,A.is(ae,v)){for(var Pe=ae.length;Pe--;)if(e(ae[Pe]-ye)<=Ce)return ae[Pe]}else{var ze=ye%(ae=+ae);if(ze<Ce)return ye-ze;if(ze>ae-Ce)return ye-ze+ae}return ye};var $t,dt;A.createUUID=($t=/[xy]/g,dt=function(ae){var ye=16*u.random()|0;return(ae=="x"?ye:3&ye|8).toString(16)},function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace($t,dt).toUpperCase()}),A.setWindow=function(ae){k("raphael.setWindow",A,z.win,ae),z.win=ae,z.doc=z.win.document,A._engine.initWin&&A._engine.initWin(z.win)};var gt=function(ae){if(A.vml){var ye,Ce=/^\s+|\s+$/g;try{var Pe=new ActiveXObject("htmlfile");Pe.write("<body>"),Pe.close(),ye=Pe.body}catch{ye=createPopup().document.body}var ze=ye.createTextRange();gt=$e(function(ge){try{ye.style.color=Q(ge).replace(Ce,se);var we=ze.queryCommandValue("ForeColor");return"#"+("000000"+(we=(255&we)<<16|65280&we|(16711680&we)>>>16).toString(16)).slice(-6)}catch{return"none"}})}else{var Je=z.doc.createElement("i");Je.title="Raphaël Colour Picker",Je.style.display="none",z.doc.body.appendChild(Je),gt=$e(function(ge){return Je.style.color=ge,z.doc.defaultView.getComputedStyle(Je,se).getPropertyValue("color")})}return gt(ae)},Lt=function(){return"hsb("+[this.h,this.s,this.b]+")"},xe=function(){return"hsl("+[this.h,this.s,this.l]+")"},X=function(){return this.hex},pe=function(ae,ye,Ce){if(ye==null&&A.is(ae,"object")&&"r"in ae&&"g"in ae&&"b"in ae&&(Ce=ae.b,ye=ae.g,ae=ae.r),ye==null&&A.is(ae,"string")){var Pe=A.getRGB(ae);ae=Pe.r,ye=Pe.g,Ce=Pe.b}return(ae>1||ye>1||Ce>1)&&(ae/=255,ye/=255,Ce/=255),[ae,ye,Ce]},je=function(ae,ye,Ce,Pe){var ze={r:ae*=255,g:ye*=255,b:Ce*=255,hex:A.rgb(ae,ye,Ce),toString:X};return A.is(Pe,"finite")&&(ze.opacity=Pe),ze};function $e(ae,ye,Ce){return function Pe(){var ze=Array.prototype.slice.call(arguments,0),Je=ze.join("␀"),ge=Pe.cache=Pe.cache||{},we=Pe.count=Pe.count||[];return ge[$](Je)?(function(Ae,Ue){for(var ht=0,_t=Ae.length;ht<_t;ht++)if(Ae[ht]===Ue)return Ae.push(Ae.splice(ht,1)[0])}(we,Je),Ce?Ce(ge[Je]):ge[Je]):(we.length>=1e3&&delete ge[we.shift()],we.push(Je),ge[Je]=ae[U](ye,ze),Ce?Ce(ge[Je]):ge[Je])}}A.color=function(ae){var ye;return A.is(ae,"object")&&"h"in ae&&"s"in ae&&"b"in ae?(ye=A.hsb2rgb(ae),ae.r=ye.r,ae.g=ye.g,ae.b=ye.b,ae.hex=ye.hex):A.is(ae,"object")&&"h"in ae&&"s"in ae&&"l"in ae?(ye=A.hsl2rgb(ae),ae.r=ye.r,ae.g=ye.g,ae.b=ye.b,ae.hex=ye.hex):(A.is(ae,"string")&&(ae=A.getRGB(ae)),A.is(ae,"object")&&"r"in ae&&"g"in ae&&"b"in ae?(ye=A.rgb2hsl(ae),ae.h=ye.h,ae.s=ye.s,ae.l=ye.l,ye=A.rgb2hsb(ae),ae.v=ye.b):(ae={hex:"none"}).r=ae.g=ae.b=ae.h=ae.s=ae.v=ae.l=-1),ae.toString=X,ae},A.hsb2rgb=function(ae,ye,Ce,Pe){var ze,Je,ge,we,Ae;return this.is(ae,"object")&&"h"in ae&&"s"in ae&&"b"in ae&&(Ce=ae.b,ye=ae.s,Pe=ae.o,ae=ae.h),we=(Ae=Ce*ye)*(1-e((ae=(ae*=360)%360/60)%2-1)),ze=Je=ge=Ce-Ae,je(ze+=[Ae,we,0,0,we,Ae][ae=~~ae],Je+=[we,Ae,Ae,we,0,0][ae],ge+=[0,0,we,Ae,Ae,we][ae],Pe)},A.hsl2rgb=function(ae,ye,Ce,Pe){var ze,Je,ge,we,Ae;return this.is(ae,"object")&&"h"in ae&&"s"in ae&&"l"in ae&&(Ce=ae.l,ye=ae.s,ae=ae.h),(ae>1||ye>1||Ce>1)&&(ae/=360,ye/=100,Ce/=100),we=(Ae=2*ye*(Ce<.5?Ce:1-Ce))*(1-e((ae=(ae*=360)%360/60)%2-1)),ze=Je=ge=Ce-Ae/2,je(ze+=[Ae,we,0,0,we,Ae][ae=~~ae],Je+=[we,Ae,Ae,we,0,0][ae],ge+=[0,0,we,Ae,Ae,we][ae],Pe)},A.rgb2hsb=function(ae,ye,Ce){var Pe,ze;return ae=(Ce=pe(ae,ye,Ce))[0],ye=Ce[1],Ce=Ce[2],{h:(((ze=(Pe=p(ae,ye,Ce))-b(ae,ye,Ce))==0?null:Pe==ae?(ye-Ce)/ze:Pe==ye?(Ce-ae)/ze+2:(ae-ye)/ze+4)+360)%6*60/360,s:ze==0?0:ze/Pe,b:Pe,toString:Lt}},A.rgb2hsl=function(ae,ye,Ce){var Pe,ze,Je,ge;return ae=(Ce=pe(ae,ye,Ce))[0],ye=Ce[1],Ce=Ce[2],Pe=((ze=p(ae,ye,Ce))+(Je=b(ae,ye,Ce)))/2,{h:(((ge=ze-Je)==0?null:ze==ae?(ye-Ce)/ge:ze==ye?(Ce-ae)/ge+2:(ae-ye)/ge+4)+360)%6*60/360,s:ge==0?0:Pe<.5?ge/(2*Pe):ge/(2-2*Pe),l:Pe,toString:xe}},A._path2string=function(){return this.join(",").replace(ue,"$1")},A._preload=function(ae,ye){var Ce=z.doc.createElement("img");Ce.style.cssText="position:absolute;left:-9999em;top:-9999em",Ce.onload=function(){ye.call(this),this.onload=null,z.doc.body.removeChild(this)},Ce.onerror=function(){z.doc.body.removeChild(this)},z.doc.body.appendChild(Ce),Ce.src=ae};function He(){return this.hex}function Fe(ae,ye){for(var Ce=[],Pe=0,ze=ae.length;ze-2*!ye>Pe;Pe+=2){var Je=[{x:+ae[Pe-2],y:+ae[Pe-1]},{x:+ae[Pe],y:+ae[Pe+1]},{x:+ae[Pe+2],y:+ae[Pe+3]},{x:+ae[Pe+4],y:+ae[Pe+5]}];ye?Pe?ze-4==Pe?Je[3]={x:+ae[0],y:+ae[1]}:ze-2==Pe&&(Je[2]={x:+ae[0],y:+ae[1]},Je[3]={x:+ae[2],y:+ae[3]}):Je[0]={x:+ae[ze-2],y:+ae[ze-1]}:ze-4==Pe?Je[3]=Je[2]:Pe||(Je[0]={x:+ae[Pe],y:+ae[Pe+1]}),Ce.push(["C",(-Je[0].x+6*Je[1].x+Je[2].x)/6,(-Je[0].y+6*Je[1].y+Je[2].y)/6,(Je[1].x+6*Je[2].x-Je[3].x)/6,(Je[1].y+6*Je[2].y-Je[3].y)/6,Je[2].x,Je[2].y])}return Ce}A.getRGB=$e(function(ae){if(!ae||(ae=Q(ae)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:He};if(ae=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:He};!fe[$](ae.toLowerCase().substring(0,2))&&ae.charAt()!="#"&&(ae=gt(ae));var ye,Ce,Pe,ze,Je,ge,we=ae.match(x);return we?(we[2]&&(Pe=Z(we[2].substring(5),16),Ce=Z(we[2].substring(3,5),16),ye=Z(we[2].substring(1,3),16)),we[3]&&(Pe=Z((Je=we[3].charAt(3))+Je,16),Ce=Z((Je=we[3].charAt(2))+Je,16),ye=Z((Je=we[3].charAt(1))+Je,16)),we[4]&&(ge=we[4][ve](oe),ye=Y(ge[0]),ge[0].slice(-1)=="%"&&(ye*=2.55),Ce=Y(ge[1]),ge[1].slice(-1)=="%"&&(Ce*=2.55),Pe=Y(ge[2]),ge[2].slice(-1)=="%"&&(Pe*=2.55),we[1].toLowerCase().slice(0,4)=="rgba"&&(ze=Y(ge[3])),ge[3]&&ge[3].slice(-1)=="%"&&(ze/=100)),we[5]?(ge=we[5][ve](oe),ye=Y(ge[0]),ge[0].slice(-1)=="%"&&(ye*=2.55),Ce=Y(ge[1]),ge[1].slice(-1)=="%"&&(Ce*=2.55),Pe=Y(ge[2]),ge[2].slice(-1)=="%"&&(Pe*=2.55),(ge[0].slice(-3)=="deg"||ge[0].slice(-1)=="°")&&(ye/=360),we[1].toLowerCase().slice(0,4)=="hsba"&&(ze=Y(ge[3])),ge[3]&&ge[3].slice(-1)=="%"&&(ze/=100),A.hsb2rgb(ye,Ce,Pe,ze)):we[6]?(ge=we[6][ve](oe),ye=Y(ge[0]),ge[0].slice(-1)=="%"&&(ye*=2.55),Ce=Y(ge[1]),ge[1].slice(-1)=="%"&&(Ce*=2.55),Pe=Y(ge[2]),ge[2].slice(-1)=="%"&&(Pe*=2.55),(ge[0].slice(-3)=="deg"||ge[0].slice(-1)=="°")&&(ye/=360),we[1].toLowerCase().slice(0,4)=="hsla"&&(ze=Y(ge[3])),ge[3]&&ge[3].slice(-1)=="%"&&(ze/=100),A.hsl2rgb(ye,Ce,Pe,ze)):((we={r:ye,g:Ce,b:Pe,toString:He}).hex="#"+(16777216|Pe|Ce<<8|ye<<16).toString(16).slice(1),A.is(ze,"finite")&&(we.opacity=ze),we)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:He}},A),A.hsb=$e(function(ae,ye,Ce){return A.hsb2rgb(ae,ye,Ce).hex}),A.hsl=$e(function(ae,ye,Ce){return A.hsl2rgb(ae,ye,Ce).hex}),A.rgb=$e(function(ae,ye,Ce){function Pe(ze){return ze+.5|0}return"#"+(16777216|Pe(Ce)|Pe(ye)<<8|Pe(ae)<<16).toString(16).slice(1)}),A.getColor=function(ae){var ye=this.getColor.start=this.getColor.start||{h:0,s:1,b:ae||.75},Ce=this.hsb2rgb(ye.h,ye.s,ye.b);return ye.h+=.075,ye.h>1&&(ye.h=0,ye.s-=.2,ye.s<=0&&(this.getColor.start={h:0,s:1,b:ye.b})),Ce.hex},A.getColor.reset=function(){delete this.start},A.parsePathString=function(ae){if(!ae)return null;var ye=Me(ae);if(ye.arr)return ot(ye.arr);var Ce={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},Pe=[];return A.is(ae,v)&&A.is(ae[0],v)&&(Pe=ot(ae)),Pe.length||Q(ae).replace(qe,function(ze,Je,ge){var we=[],Ae=Je.toLowerCase();if(ge.replace(Ve,function(Ue,ht){ht&&we.push(+ht)}),Ae=="m"&&we.length>2&&(Pe.push([Je][J](we.splice(0,2))),Ae="l",Je=Je=="m"?"l":"L"),Ae=="r")Pe.push([Je][J](we));else for(;we.length>=Ce[Ae]&&(Pe.push([Je][J](we.splice(0,Ce[Ae]))),Ce[Ae]););}),Pe.toString=A._path2string,ye.arr=ot(Pe),Pe},A.parseTransformString=$e(function(ae){if(!ae)return null;var ye=[];return A.is(ae,v)&&A.is(ae[0],v)&&(ye=ot(ae)),ye.length||Q(ae).replace(rt,function(Ce,Pe,ze){var Je=[];T.call(Pe),ze.replace(Ve,function(ge,we){we&&Je.push(+we)}),ye.push([Pe][J](Je))}),ye.toString=A._path2string,ye},this,function(ae){if(!ae)return ae;for(var ye=[],Ce=0;Ce<ae.length;Ce++){for(var Pe=[],ze=0;ze<ae[Ce].length;ze++)Pe.push(ae[Ce][ze]);ye.push(Pe)}return ye});var Me=function(ae){var ye=Me.ps=Me.ps||{};return ye[ae]?ye[ae].sleep=100:ye[ae]={sleep:100},setTimeout(function(){for(var Ce in ye)ye[$](Ce)&&Ce!=ae&&(ye[Ce].sleep--,!ye[Ce].sleep&&delete ye[Ce])}),ye[ae]};function Rt(ae,ye,Ce,Pe,ze){return ae*(ae*(-3*ye+9*Ce-9*Pe+3*ze)+6*ye-12*Ce+6*Pe)-3*ye+3*Ce}function yt(ae,ye,Ce,Pe,ze,Je,ge,we,Ae){Ae==null&&(Ae=1);for(var Ue=(Ae=Ae>1?1:Ae<0?0:Ae)/2,ht=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],_t=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Ct=0,At=0;At<12;At++){var Qt=Ue*ht[At]+Ue,ir=Rt(Qt,ae,Ce,ze,ge),tr=Rt(Qt,ye,Pe,Je,we),Zt=ir*ir+tr*tr;Ct+=_t[At]*u.sqrt(Zt)}return Ue*Ct}function le(ae,ye,Ce,Pe,ze,Je,ge,we){if(!(p(ae,Ce)<b(ze,ge)||b(ae,Ce)>p(ze,ge)||p(ye,Pe)<b(Je,we)||b(ye,Pe)>p(Je,we))){var Ae=(ae-Ce)*(Je-we)-(ye-Pe)*(ze-ge);if(Ae){var Ue=((ae*Pe-ye*Ce)*(ze-ge)-(ae-Ce)*(ze*we-Je*ge))/Ae,ht=((ae*Pe-ye*Ce)*(Je-we)-(ye-Pe)*(ze*we-Je*ge))/Ae,_t=+Ue.toFixed(2),Ct=+ht.toFixed(2);if(!(_t<+b(ae,Ce).toFixed(2)||_t>+p(ae,Ce).toFixed(2)||_t<+b(ze,ge).toFixed(2)||_t>+p(ze,ge).toFixed(2)||Ct<+b(ye,Pe).toFixed(2)||Ct>+p(ye,Pe).toFixed(2)||Ct<+b(Je,we).toFixed(2)||Ct>+p(Je,we).toFixed(2)))return{x:Ue,y:ht}}}}function wt(ae,ye,Ce){var Pe=A.bezierBBox(ae),ze=A.bezierBBox(ye);if(!A.isBBoxIntersect(Pe,ze))return Ce?0:[];for(var Je=yt.apply(0,ae),ge=yt.apply(0,ye),we=p(~~(Je/5),1),Ae=p(~~(ge/5),1),Ue=[],ht=[],_t={},Ct=Ce?0:[],At=0;At<we+1;At++){var Qt=A.findDotsAtSegment.apply(A,ae.concat(At/we));Ue.push({x:Qt.x,y:Qt.y,t:At/we})}for(At=0;At<Ae+1;At++)Qt=A.findDotsAtSegment.apply(A,ye.concat(At/Ae)),ht.push({x:Qt.x,y:Qt.y,t:At/Ae});for(At=0;At<we;At++)for(var ir=0;ir<Ae;ir++){var tr=Ue[At],Zt=Ue[At+1],Br=ht[ir],pr=ht[ir+1],_r=e(Zt.x-tr.x)<.001?"y":"x",fr=e(pr.x-Br.x)<.001?"y":"x",Gr=le(tr.x,tr.y,Zt.x,Zt.y,Br.x,Br.y,pr.x,pr.y);if(Gr){if(_t[Gr.x.toFixed(4)]==Gr.y.toFixed(4))continue;_t[Gr.x.toFixed(4)]=Gr.y.toFixed(4);var Nr=tr.t+e((Gr[_r]-tr[_r])/(Zt[_r]-tr[_r]))*(Zt.t-tr.t),Zr=Br.t+e((Gr[fr]-Br[fr])/(pr[fr]-Br[fr]))*(pr.t-Br.t);Nr>=0&&Nr<=1.001&&Zr>=0&&Zr<=1.001&&(Ce?Ct++:Ct.push({x:Gr.x,y:Gr.y,t1:b(Nr,1),t2:b(Zr,1)}))}}return Ct}function at(ae,ye,Ce){ae=A._path2curve(ae),ye=A._path2curve(ye);for(var Pe,ze,Je,ge,we,Ae,Ue,ht,_t,Ct,At=Ce?0:[],Qt=0,ir=ae.length;Qt<ir;Qt++){var tr=ae[Qt];if(tr[0]=="M")Pe=we=tr[1],ze=Ae=tr[2];else{tr[0]=="C"?(_t=[Pe,ze].concat(tr.slice(1)),Pe=_t[6],ze=_t[7]):(_t=[Pe,ze,Pe,ze,we,Ae,we,Ae],Pe=we,ze=Ae);for(var Zt=0,Br=ye.length;Zt<Br;Zt++){var pr=ye[Zt];if(pr[0]=="M")Je=Ue=pr[1],ge=ht=pr[2];else{pr[0]=="C"?(Ct=[Je,ge].concat(pr.slice(1)),Je=Ct[6],ge=Ct[7]):(Ct=[Je,ge,Je,ge,Ue,ht,Ue,ht],Je=Ue,ge=ht);var _r=wt(_t,Ct,Ce);if(Ce)At+=_r;else{for(var fr=0,Gr=_r.length;fr<Gr;fr++)_r[fr].segment1=Qt,_r[fr].segment2=Zt,_r[fr].bez1=_t,_r[fr].bez2=Ct;At=At.concat(_r)}}}}}return At}A.findDotsAtSegment=function(ae,ye,Ce,Pe,ze,Je,ge,we,Ae){var Ue=1-Ae,ht=c(Ue,3),_t=c(Ue,2),Ct=Ae*Ae,At=Ct*Ae,Qt=ht*ae+3*_t*Ae*Ce+3*Ue*Ae*Ae*ze+At*ge,ir=ht*ye+3*_t*Ae*Pe+3*Ue*Ae*Ae*Je+At*we,tr=ae+2*Ae*(Ce-ae)+Ct*(ze-2*Ce+ae),Zt=ye+2*Ae*(Pe-ye)+Ct*(Je-2*Pe+ye),Br=Ce+2*Ae*(ze-Ce)+Ct*(ge-2*ze+Ce),pr=Pe+2*Ae*(Je-Pe)+Ct*(we-2*Je+Pe),_r=Ue*ae+Ae*Ce,fr=Ue*ye+Ae*Pe,Gr=Ue*ze+Ae*ge,Nr=Ue*Je+Ae*we,Zr=90-180*u.atan2(tr-Br,Zt-pr)/y;return(tr>Br||Zt<pr)&&(Zr+=180),{x:Qt,y:ir,m:{x:tr,y:Zt},n:{x:Br,y:pr},start:{x:_r,y:fr},end:{x:Gr,y:Nr},alpha:Zr}},A.bezierBBox=function(ae,ye,Ce,Pe,ze,Je,ge,we){A.is(ae,"array")||(ae=[ae,ye,Ce,Pe,ze,Je,ge,we]);var Ae=Pt.apply(null,ae);return{x:Ae.min.x,y:Ae.min.y,x2:Ae.max.x,y2:Ae.max.y,width:Ae.max.x-Ae.min.x,height:Ae.max.y-Ae.min.y}},A.isPointInsideBBox=function(ae,ye,Ce){return ye>=ae.x&&ye<=ae.x2&&Ce>=ae.y&&Ce<=ae.y2},A.isBBoxIntersect=function(ae,ye){var Ce=A.isPointInsideBBox;return Ce(ye,ae.x,ae.y)||Ce(ye,ae.x2,ae.y)||Ce(ye,ae.x,ae.y2)||Ce(ye,ae.x2,ae.y2)||Ce(ae,ye.x,ye.y)||Ce(ae,ye.x2,ye.y)||Ce(ae,ye.x,ye.y2)||Ce(ae,ye.x2,ye.y2)||(ae.x<ye.x2&&ae.x>ye.x||ye.x<ae.x2&&ye.x>ae.x)&&(ae.y<ye.y2&&ae.y>ye.y||ye.y<ae.y2&&ye.y>ae.y)},A.pathIntersection=function(ae,ye){return at(ae,ye)},A.pathIntersectionNumber=function(ae,ye){return at(ae,ye,1)},A.isPointInsidePath=function(ae,ye,Ce){var Pe=A.pathBBox(ae);return A.isPointInsideBBox(Pe,ye,Ce)&&at(ae,[["M",ye,Ce],["H",Pe.x2+10]],1)%2==1},A._removedFactory=function(ae){return function(){k("raphael.log",null,"Raphaël: you are calling to method “"+ae+"” of removed object",ae)}};var Be=A.pathBBox=function(ae){var ye=Me(ae);if(ye.bbox)return Oe(ye.bbox);if(!ae)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var Ce,Pe=0,ze=0,Je=[],ge=[],we=0,Ae=(ae=Ot(ae)).length;we<Ae;we++)if((Ce=ae[we])[0]=="M")Pe=Ce[1],ze=Ce[2],Je.push(Pe),ge.push(ze);else{var Ue=Pt(Pe,ze,Ce[1],Ce[2],Ce[3],Ce[4],Ce[5],Ce[6]);Je=Je[J](Ue.min.x,Ue.max.x),ge=ge[J](Ue.min.y,Ue.max.y),Pe=Ce[5],ze=Ce[6]}var ht=b[U](0,Je),_t=b[U](0,ge),Ct=p[U](0,Je),At=p[U](0,ge),Qt=Ct-ht,ir=At-_t,tr={x:ht,y:_t,x2:Ct,y2:At,width:Qt,height:ir,cx:ht+Qt/2,cy:_t+ir/2};return ye.bbox=Oe(tr),tr},ot=function(ae){var ye=Oe(ae);return ye.toString=A._path2string,ye},tt=A._pathToRelative=function(ae){var ye=Me(ae);if(ye.rel)return ot(ye.rel);A.is(ae,v)&&A.is(ae&&ae[0],v)||(ae=A.parsePathString(ae));var Ce=[],Pe=0,ze=0,Je=0,ge=0,we=0;ae[0][0]=="M"&&(Je=Pe=ae[0][1],ge=ze=ae[0][2],we++,Ce.push(["M",Pe,ze]));for(var Ae=we,Ue=ae.length;Ae<Ue;Ae++){var ht=Ce[Ae]=[],_t=ae[Ae];if(_t[0]!=T.call(_t[0]))switch(ht[0]=T.call(_t[0]),ht[0]){case"a":ht[1]=_t[1],ht[2]=_t[2],ht[3]=_t[3],ht[4]=_t[4],ht[5]=_t[5],ht[6]=+(_t[6]-Pe).toFixed(3),ht[7]=+(_t[7]-ze).toFixed(3);break;case"v":ht[1]=+(_t[1]-ze).toFixed(3);break;case"m":Je=_t[1],ge=_t[2];default:for(var Ct=1,At=_t.length;Ct<At;Ct++)ht[Ct]=+(_t[Ct]-(Ct%2?Pe:ze)).toFixed(3)}else{ht=Ce[Ae]=[],_t[0]=="m"&&(Je=_t[1]+Pe,ge=_t[2]+ze);for(var Qt=0,ir=_t.length;Qt<ir;Qt++)Ce[Ae][Qt]=_t[Qt]}var tr=Ce[Ae].length;switch(Ce[Ae][0]){case"z":Pe=Je,ze=ge;break;case"h":Pe+=+Ce[Ae][tr-1];break;case"v":ze+=+Ce[Ae][tr-1];break;default:Pe+=+Ce[Ae][tr-2],ze+=+Ce[Ae][tr-1]}}return Ce.toString=A._path2string,ye.rel=ot(Ce),Ce},kt=A._pathToAbsolute=function(ae){var ye=Me(ae);if(ye.abs)return ot(ye.abs);if(A.is(ae,v)&&A.is(ae&&ae[0],v)||(ae=A.parsePathString(ae)),!ae||!ae.length)return[["M",0,0]];var Ce=[],Pe=0,ze=0,Je=0,ge=0,we=0;ae[0][0]=="M"&&(Je=Pe=+ae[0][1],ge=ze=+ae[0][2],we++,Ce[0]=["M",Pe,ze]);for(var Ae,Ue,ht=ae.length==3&&ae[0][0]=="M"&&ae[1][0].toUpperCase()=="R"&&ae[2][0].toUpperCase()=="Z",_t=we,Ct=ae.length;_t<Ct;_t++){if(Ce.push(Ae=[]),(Ue=ae[_t])[0]!=L.call(Ue[0]))switch(Ae[0]=L.call(Ue[0]),Ae[0]){case"A":Ae[1]=Ue[1],Ae[2]=Ue[2],Ae[3]=Ue[3],Ae[4]=Ue[4],Ae[5]=Ue[5],Ae[6]=+(Ue[6]+Pe),Ae[7]=+(Ue[7]+ze);break;case"V":Ae[1]=+Ue[1]+ze;break;case"H":Ae[1]=+Ue[1]+Pe;break;case"R":for(var At=[Pe,ze][J](Ue.slice(1)),Qt=2,ir=At.length;Qt<ir;Qt++)At[Qt]=+At[Qt]+Pe,At[++Qt]=+At[Qt]+ze;Ce.pop(),Ce=Ce[J](Fe(At,ht));break;case"M":Je=+Ue[1]+Pe,ge=+Ue[2]+ze;default:for(Qt=1,ir=Ue.length;Qt<ir;Qt++)Ae[Qt]=+Ue[Qt]+(Qt%2?Pe:ze)}else if(Ue[0]=="R")At=[Pe,ze][J](Ue.slice(1)),Ce.pop(),Ce=Ce[J](Fe(At,ht)),Ae=["R"][J](Ue.slice(-2));else for(var tr=0,Zt=Ue.length;tr<Zt;tr++)Ae[tr]=Ue[tr];switch(Ae[0]){case"Z":Pe=Je,ze=ge;break;case"H":Pe=Ae[1];break;case"V":ze=Ae[1];break;case"M":Je=Ae[Ae.length-2],ge=Ae[Ae.length-1];default:Pe=Ae[Ae.length-2],ze=Ae[Ae.length-1]}}return Ce.toString=A._path2string,ye.abs=ot(Ce),Ce},Yt=function(ae,ye,Ce,Pe){return[ae,ye,Ce,Pe,Ce,Pe]},pt=function(ae,ye,Ce,Pe,ze,Je){return[1/3*ae+2/3*Ce,1/3*ye+2/3*Pe,1/3*ze+2/3*Ce,1/3*Je+2/3*Pe,ze,Je]},It=function(ae,ye,Ce,Pe,ze,Je,ge,we,Ae,Ue){var ht,_t=120*y/180,Ct=y/180*(+ze||0),At=[],Qt=$e(function(V,ie,be){return{x:V*u.cos(be)-ie*u.sin(be),y:V*u.sin(be)+ie*u.cos(be)}});if(Ue)Nr=Ue[0],Zr=Ue[1],fr=Ue[2],Gr=Ue[3];else{ae=(ht=Qt(ae,ye,-Ct)).x,ye=ht.y,we=(ht=Qt(we,Ae,-Ct)).x,Ae=ht.y;var ir=(ae-we)/2,tr=(ye-Ae)/2,Zt=ir*ir/(Ce*Ce)+tr*tr/(Pe*Pe);Zt>1&&(Ce*=Zt=u.sqrt(Zt),Pe*=Zt);var Br=Ce*Ce,pr=Pe*Pe,_r=(Je==ge?-1:1)*u.sqrt(e((Br*pr-Br*tr*tr-pr*ir*ir)/(Br*tr*tr+pr*ir*ir))),fr=_r*Ce*tr/Pe+(ae+we)/2,Gr=_r*-Pe*ir/Ce+(ye+Ae)/2,Nr=u.asin(((ye-Gr)/Pe).toFixed(9)),Zr=u.asin(((Ae-Gr)/Pe).toFixed(9));(Nr=ae<fr?y-Nr:Nr)<0&&(Nr=2*y+Nr),(Zr=we<fr?y-Zr:Zr)<0&&(Zr=2*y+Zr),ge&&Nr>Zr&&(Nr-=2*y),!ge&&Zr>Nr&&(Zr-=2*y)}var Sn=Zr-Nr;if(e(Sn)>_t){var qn=Zr,ii=we,si=Ae;Zr=Nr+_t*(ge&&Zr>Nr?1:-1),we=fr+Ce*u.cos(Zr),Ae=Gr+Pe*u.sin(Zr),At=It(we,Ae,Ce,Pe,ze,0,ge,ii,si,[Zr,qn,fr,Gr])}Sn=Zr-Nr;var vn=u.cos(Nr),on=u.sin(Nr),Bn=u.cos(Zr),Hi=u.sin(Zr),Xi=u.tan(Sn/4),Kn=4/3*Ce*Xi,ta=4/3*Pe*Xi,ma=[ae,ye],yi=[ae+Kn*on,ye-ta*vn],Rn=[we+Kn*Hi,Ae-ta*Bn],Ui=[we,Ae];if(yi[0]=2*ma[0]-yi[0],yi[1]=2*ma[1]-yi[1],Ue)return[yi,Rn,Ui][J](At);for(var ra=[],Wi=0,Bi=(At=[yi,Rn,Ui][J](At).join()[ve](",")).length;Wi<Bi;Wi++)ra[Wi]=Wi%2?Qt(At[Wi-1],At[Wi],Ct).y:Qt(At[Wi],At[Wi+1],Ct).x;return ra},Fr=function(ae,ye,Ce,Pe,ze,Je,ge,we,Ae){var Ue=1-Ae;return{x:c(Ue,3)*ae+3*c(Ue,2)*Ae*Ce+3*Ue*Ae*Ae*ze+c(Ae,3)*ge,y:c(Ue,3)*ye+3*c(Ue,2)*Ae*Pe+3*Ue*Ae*Ae*Je+c(Ae,3)*we}},Pt=$e(function(ae,ye,Ce,Pe,ze,Je,ge,we){var Ae,Ue=ze-2*Ce+ae-(ge-2*ze+Ce),ht=2*(Ce-ae)-2*(ze-Ce),_t=ae-Ce,Ct=(-ht+u.sqrt(ht*ht-4*Ue*_t))/2/Ue,At=(-ht-u.sqrt(ht*ht-4*Ue*_t))/2/Ue,Qt=[ye,we],ir=[ae,ge];return e(Ct)>"1e12"&&(Ct=.5),e(At)>"1e12"&&(At=.5),Ct>0&&Ct<1&&(Ae=Fr(ae,ye,Ce,Pe,ze,Je,ge,we,Ct),ir.push(Ae.x),Qt.push(Ae.y)),At>0&&At<1&&(Ae=Fr(ae,ye,Ce,Pe,ze,Je,ge,we,At),ir.push(Ae.x),Qt.push(Ae.y)),Ue=Je-2*Pe+ye-(we-2*Je+Pe),_t=ye-Pe,Ct=(-(ht=2*(Pe-ye)-2*(Je-Pe))+u.sqrt(ht*ht-4*Ue*_t))/2/Ue,At=(-ht-u.sqrt(ht*ht-4*Ue*_t))/2/Ue,e(Ct)>"1e12"&&(Ct=.5),e(At)>"1e12"&&(At=.5),Ct>0&&Ct<1&&(Ae=Fr(ae,ye,Ce,Pe,ze,Je,ge,we,Ct),ir.push(Ae.x),Qt.push(Ae.y)),At>0&&At<1&&(Ae=Fr(ae,ye,Ce,Pe,ze,Je,ge,we,At),ir.push(Ae.x),Qt.push(Ae.y)),{min:{x:b[U](0,ir),y:b[U](0,Qt)},max:{x:p[U](0,ir),y:p[U](0,Qt)}}}),Ot=A._path2curve=$e(function(ae,ye){var Ce=!ye&&Me(ae);if(!ye&&Ce.curve)return ot(Ce.curve);for(var Pe=kt(ae),ze=ye&&kt(ye),Je={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},ge={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},we=function(_r,fr,Gr){var Nr,Zr;if(!_r)return["C",fr.x,fr.y,fr.x,fr.y,fr.x,fr.y];switch(!(_r[0]in{T:1,Q:1})&&(fr.qx=fr.qy=null),_r[0]){case"M":fr.X=_r[1],fr.Y=_r[2];break;case"A":_r=["C"][J](It[U](0,[fr.x,fr.y][J](_r.slice(1))));break;case"S":Gr=="C"||Gr=="S"?(Nr=2*fr.x-fr.bx,Zr=2*fr.y-fr.by):(Nr=fr.x,Zr=fr.y),_r=["C",Nr,Zr][J](_r.slice(1));break;case"T":Gr=="Q"||Gr=="T"?(fr.qx=2*fr.x-fr.qx,fr.qy=2*fr.y-fr.qy):(fr.qx=fr.x,fr.qy=fr.y),_r=["C"][J](pt(fr.x,fr.y,fr.qx,fr.qy,_r[1],_r[2]));break;case"Q":fr.qx=_r[1],fr.qy=_r[2],_r=["C"][J](pt(fr.x,fr.y,_r[1],_r[2],_r[3],_r[4]));break;case"L":_r=["C"][J](Yt(fr.x,fr.y,_r[1],_r[2]));break;case"H":_r=["C"][J](Yt(fr.x,fr.y,_r[1],fr.y));break;case"V":_r=["C"][J](Yt(fr.x,fr.y,fr.x,_r[1]));break;case"Z":_r=["C"][J](Yt(fr.x,fr.y,fr.X,fr.Y))}return _r},Ae=function(_r,fr){if(_r[fr].length>7){_r[fr].shift();for(var Gr=_r[fr];Gr.length;)ht[fr]="A",ze&&(_t[fr]="A"),_r.splice(fr++,0,["C"][J](Gr.splice(0,6)));_r.splice(fr,1),ir=p(Pe.length,ze&&ze.length||0)}},Ue=function(_r,fr,Gr,Nr,Zr){_r&&fr&&_r[Zr][0]=="M"&&fr[Zr][0]!="M"&&(fr.splice(Zr,0,["M",Nr.x,Nr.y]),Gr.bx=0,Gr.by=0,Gr.x=_r[Zr][1],Gr.y=_r[Zr][2],ir=p(Pe.length,ze&&ze.length||0))},ht=[],_t=[],Ct="",At="",Qt=0,ir=p(Pe.length,ze&&ze.length||0);Qt<ir;Qt++){Pe[Qt]&&(Ct=Pe[Qt][0]),Ct!="C"&&(ht[Qt]=Ct,Qt&&(At=ht[Qt-1])),Pe[Qt]=we(Pe[Qt],Je,At),ht[Qt]!="A"&&Ct=="C"&&(ht[Qt]="C"),Ae(Pe,Qt),ze&&(ze[Qt]&&(Ct=ze[Qt][0]),Ct!="C"&&(_t[Qt]=Ct,Qt&&(At=_t[Qt-1])),ze[Qt]=we(ze[Qt],ge,At),_t[Qt]!="A"&&Ct=="C"&&(_t[Qt]="C"),Ae(ze,Qt)),Ue(Pe,ze,Je,ge,Qt),Ue(ze,Pe,ge,Je,Qt);var tr=Pe[Qt],Zt=ze&&ze[Qt],Br=tr.length,pr=ze&&Zt.length;Je.x=tr[Br-2],Je.y=tr[Br-1],Je.bx=Y(tr[Br-4])||Je.x,Je.by=Y(tr[Br-3])||Je.y,ge.bx=ze&&(Y(Zt[pr-4])||ge.x),ge.by=ze&&(Y(Zt[pr-3])||ge.y),ge.x=ze&&Zt[pr-2],ge.y=ze&&Zt[pr-1]}return ze||(Ce.curve=ot(Pe)),ze?[Pe,ze]:Pe},null,ot),Te=(A._parseDots=$e(function(ae){for(var ye=[],Ce=0,Pe=ae.length;Ce<Pe;Ce++){var ze={},Je=ae[Ce].match(/^([^:]*):?([\d\.]*)/);if(ze.color=A.getRGB(Je[1]),ze.color.error)return null;ze.opacity=ze.color.opacity,ze.color=ze.color.hex,Je[2]&&(ze.offset=Je[2]+"%"),ye.push(ze)}for(Ce=1,Pe=ye.length-1;Ce<Pe;Ce++)if(!ye[Ce].offset){for(var ge=Y(ye[Ce-1].offset||0),we=0,Ae=Ce+1;Ae<Pe;Ae++)if(ye[Ae].offset){we=ye[Ae].offset;break}we||(we=100,Ae=Pe);for(var Ue=((we=Y(we))-ge)/(Ae-Ce+1);Ce<Ae;Ce++)ge+=Ue,ye[Ce].offset=ge+"%"}return ye}),A._tear=function(ae,ye){ae==ye.top&&(ye.top=ae.prev),ae==ye.bottom&&(ye.bottom=ae.next),ae.next&&(ae.next.prev=ae.prev),ae.prev&&(ae.prev.next=ae.next)}),me=(A._tofront=function(ae,ye){ye.top!==ae&&(Te(ae,ye),ae.next=null,ae.prev=ye.top,ye.top.next=ae,ye.top=ae)},A._toback=function(ae,ye){ye.bottom!==ae&&(Te(ae,ye),ae.next=ye.bottom,ae.prev=null,ye.bottom.prev=ae,ye.bottom=ae)},A._insertafter=function(ae,ye,Ce){Te(ae,Ce),ye==Ce.top&&(Ce.top=ae),ye.next&&(ye.next.prev=ae),ae.next=ye.next,ae.prev=ye,ye.next=ae},A._insertbefore=function(ae,ye,Ce){Te(ae,Ce),ye==Ce.bottom&&(Ce.bottom=ae),ye.prev&&(ye.prev.next=ae),ae.prev=ye.prev,ye.prev=ae,ae.next=ye},A.toMatrix=function(ae,ye){var Ce=Be(ae),Pe={_:{transform:se},getBBox:function(){return Ce}};return ce(Pe,ye),Pe.matrix}),ce=(A.transformPath=function(ae,ye){return nt(ae,me(ae,ye))},A._extractTransform=function(ae,ye){if(ye==null)return ae._.transform;ye=Q(ye).replace(/\.{3}|\u2026/g,ae._.transform||se);var Ce,Pe,ze=A.parseTransformString(ye),Je=0,ge=1,we=1,Ae=ae._,Ue=new Re;if(Ae.transform=ze||[],ze)for(var ht=0,_t=ze.length;ht<_t;ht++){var Ct,At,Qt,ir,tr,Zt=ze[ht],Br=Zt.length,pr=Q(Zt[0]).toLowerCase(),_r=Zt[0]!=pr,fr=_r?Ue.invert():0;pr=="t"&&Br==3?_r?(Ct=fr.x(0,0),At=fr.y(0,0),Qt=fr.x(Zt[1],Zt[2]),ir=fr.y(Zt[1],Zt[2]),Ue.translate(Qt-Ct,ir-At)):Ue.translate(Zt[1],Zt[2]):pr=="r"?Br==2?(tr=tr||ae.getBBox(1),Ue.rotate(Zt[1],tr.x+tr.width/2,tr.y+tr.height/2),Je+=Zt[1]):Br==4&&(_r?(Qt=fr.x(Zt[2],Zt[3]),ir=fr.y(Zt[2],Zt[3]),Ue.rotate(Zt[1],Qt,ir)):Ue.rotate(Zt[1],Zt[2],Zt[3]),Je+=Zt[1]):pr=="s"?Br==2||Br==3?(tr=tr||ae.getBBox(1),Ue.scale(Zt[1],Zt[Br-1],tr.x+tr.width/2,tr.y+tr.height/2),ge*=Zt[1],we*=Zt[Br-1]):Br==5&&(_r?(Qt=fr.x(Zt[3],Zt[4]),ir=fr.y(Zt[3],Zt[4]),Ue.scale(Zt[1],Zt[2],Qt,ir)):Ue.scale(Zt[1],Zt[2],Zt[3],Zt[4]),ge*=Zt[1],we*=Zt[2]):pr=="m"&&Br==7&&Ue.add(Zt[1],Zt[2],Zt[3],Zt[4],Zt[5],Zt[6]),Ae.dirtyT=1,ae.matrix=Ue}ae.matrix=Ue,Ae.sx=ge,Ae.sy=we,Ae.deg=Je,Ae.dx=Ce=Ue.e,Ae.dy=Pe=Ue.f,ge==1&&we==1&&!Je&&Ae.bbox?(Ae.bbox.x+=+Ce,Ae.bbox.y+=+Pe):Ae.dirtyT=1}),ne=function(ae){var ye=ae[0];switch(ye.toLowerCase()){case"t":return[ye,0,0];case"m":return[ye,1,0,0,1,0,0];case"r":return ae.length==4?[ye,0,ae[2],ae[3]]:[ye,0];case"s":return ae.length==5?[ye,1,1,ae[3],ae[4]]:ae.length==3?[ye,1,1]:[ye,1]}},_e=A._equaliseTransform=function(ae,ye){ye=Q(ye).replace(/\.{3}|\u2026/g,ae),ae=A.parseTransformString(ae)||[],ye=A.parseTransformString(ye)||[];for(var Ce,Pe,ze,Je,ge=p(ae.length,ye.length),we=[],Ae=[],Ue=0;Ue<ge;Ue++){if(ze=ae[Ue]||ne(ye[Ue]),Je=ye[Ue]||ne(ze),ze[0]!=Je[0]||ze[0].toLowerCase()=="r"&&(ze[2]!=Je[2]||ze[3]!=Je[3])||ze[0].toLowerCase()=="s"&&(ze[3]!=Je[3]||ze[4]!=Je[4]))return;for(we[Ue]=[],Ae[Ue]=[],Ce=0,Pe=p(ze.length,Je.length);Ce<Pe;Ce++)Ce in ze&&(we[Ue][Ce]=ze[Ce]),Ce in Je&&(Ae[Ue][Ce]=Je[Ce])}return{from:we,to:Ae}};function Re(ae,ye,Ce,Pe,ze,Je){ae!=null?(this.a=+ae,this.b=+ye,this.c=+Ce,this.d=+Pe,this.e=+ze,this.f=+Je):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}A._getContainer=function(ae,ye,Ce,Pe){var ze;if((ze=Pe!=null||A.is(ae,"object")?ae:z.doc.getElementById(ae))!=null)return ze.tagName?ye==null?{container:ze,width:ze.style.pixelWidth||ze.offsetWidth,height:ze.style.pixelHeight||ze.offsetHeight}:{container:ze,width:ye,height:Ce}:{container:1,x:ae,y:ye,width:Ce,height:Pe}},A.pathToRelative=tt,A._engine={},A.path2curve=Ot,A.matrix=function(ae,ye,Ce,Pe,ze,Je){return new Re(ae,ye,Ce,Pe,ze,Je)},function(ae){function ye(Pe){return Pe[0]*Pe[0]+Pe[1]*Pe[1]}function Ce(Pe){var ze=u.sqrt(ye(Pe));Pe[0]&&(Pe[0]/=ze),Pe[1]&&(Pe[1]/=ze)}ae.add=function(Pe,ze,Je,ge,we,Ae){var Ue,ht,_t,Ct,At=[[],[],[]],Qt=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],ir=[[Pe,Je,we],[ze,ge,Ae],[0,0,1]];for(Pe&&Pe instanceof Re&&(ir=[[Pe.a,Pe.c,Pe.e],[Pe.b,Pe.d,Pe.f],[0,0,1]]),Ue=0;Ue<3;Ue++)for(ht=0;ht<3;ht++){for(Ct=0,_t=0;_t<3;_t++)Ct+=Qt[Ue][_t]*ir[_t][ht];At[Ue][ht]=Ct}this.a=At[0][0],this.b=At[1][0],this.c=At[0][1],this.d=At[1][1],this.e=At[0][2],this.f=At[1][2]},ae.invert=function(){var Pe=this,ze=Pe.a*Pe.d-Pe.b*Pe.c;return new Re(Pe.d/ze,-Pe.b/ze,-Pe.c/ze,Pe.a/ze,(Pe.c*Pe.f-Pe.d*Pe.e)/ze,(Pe.b*Pe.e-Pe.a*Pe.f)/ze)},ae.clone=function(){return new Re(this.a,this.b,this.c,this.d,this.e,this.f)},ae.translate=function(Pe,ze){this.add(1,0,0,1,Pe,ze)},ae.scale=function(Pe,ze,Je,ge){ze==null&&(ze=Pe),(Je||ge)&&this.add(1,0,0,1,Je,ge),this.add(Pe,0,0,ze,0,0),(Je||ge)&&this.add(1,0,0,1,-Je,-ge)},ae.rotate=function(Pe,ze,Je){Pe=A.rad(Pe),ze=ze||0,Je=Je||0;var ge=+u.cos(Pe).toFixed(9),we=+u.sin(Pe).toFixed(9);this.add(ge,we,-we,ge,ze,Je),this.add(1,0,0,1,-ze,-Je)},ae.x=function(Pe,ze){return Pe*this.a+ze*this.c+this.e},ae.y=function(Pe,ze){return Pe*this.b+ze*this.d+this.f},ae.get=function(Pe){return+this[Q.fromCharCode(97+Pe)].toFixed(4)},ae.toString=function(){return A.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},ae.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},ae.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},ae.split=function(){var Pe={};Pe.dx=this.e,Pe.dy=this.f;var ze=[[this.a,this.c],[this.b,this.d]];Pe.scalex=u.sqrt(ye(ze[0])),Ce(ze[0]),Pe.shear=ze[0][0]*ze[1][0]+ze[0][1]*ze[1][1],ze[1]=[ze[1][0]-ze[0][0]*Pe.shear,ze[1][1]-ze[0][1]*Pe.shear],Pe.scaley=u.sqrt(ye(ze[1])),Ce(ze[1]),Pe.shear/=Pe.scaley;var Je=-ze[0][1],ge=ze[1][1];return ge<0?(Pe.rotate=A.deg(u.acos(ge)),Je<0&&(Pe.rotate=360-Pe.rotate)):Pe.rotate=A.deg(u.asin(Je)),Pe.isSimple=!(+Pe.shear.toFixed(9)||Pe.scalex.toFixed(9)!=Pe.scaley.toFixed(9)&&Pe.rotate),Pe.isSuperSimple=!+Pe.shear.toFixed(9)&&Pe.scalex.toFixed(9)==Pe.scaley.toFixed(9)&&!Pe.rotate,Pe.noRotation=!+Pe.shear.toFixed(9)&&!Pe.rotate,Pe},ae.toTransformString=function(Pe){var ze=Pe||this[ve]();return ze.isSimple?(ze.scalex=+ze.scalex.toFixed(4),ze.scaley=+ze.scaley.toFixed(4),ze.rotate=+ze.rotate.toFixed(4),(ze.dx||ze.dy?"t"+[ze.dx,ze.dy]:se)+(ze.scalex!=1||ze.scaley!=1?"s"+[ze.scalex,ze.scaley,0,0]:se)+(ze.rotate?"r"+[ze.rotate,0,0]:se)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(Re.prototype);for(var lt=function(){this.returnValue=!1},Ze=function(){return this.originalEvent.preventDefault()},ct=function(){this.cancelBubble=!0},Nt=function(){return this.originalEvent.stopPropagation()},Ut=function(ae){var ye=z.doc.documentElement.scrollTop||z.doc.body.scrollTop,Ce=z.doc.documentElement.scrollLeft||z.doc.body.scrollLeft;return{x:ae.clientX+Ce,y:ae.clientY+ye}},Mr=z.doc.addEventListener?function(ae,ye,Ce,Pe){var ze=function(ge){var we=Ut(ge);return Ce.call(Pe,ge,we.x,we.y)};if(ae.addEventListener(ye,ze,!1),te&&ke[ye]){var Je=function(ge){for(var we=Ut(ge),Ae=ge,Ue=0,ht=ge.targetTouches&&ge.targetTouches.length;Ue<ht;Ue++)if(ge.targetTouches[Ue].target==ae){(ge=ge.targetTouches[Ue]).originalEvent=Ae,ge.preventDefault=Ze,ge.stopPropagation=Nt;break}return Ce.call(Pe,ge,we.x,we.y)};ae.addEventListener(ke[ye],Je,!1)}return function(){return ae.removeEventListener(ye,ze,!1),te&&ke[ye]&&ae.removeEventListener(ke[ye],Je,!1),!0}}:z.doc.attachEvent?function(ae,ye,Ce,Pe){var ze=function(Je){Je=Je||z.win.event;var ge=z.doc.documentElement.scrollTop||z.doc.body.scrollTop,we=z.doc.documentElement.scrollLeft||z.doc.body.scrollLeft,Ae=Je.clientX+we,Ue=Je.clientY+ge;return Je.preventDefault=Je.preventDefault||lt,Je.stopPropagation=Je.stopPropagation||ct,Ce.call(Pe,Je,Ae,Ue)};return ae.attachEvent("on"+ye,ze),function(){return ae.detachEvent("on"+ye,ze),!0}}:void 0,Xt=[],Sr=function(ae){for(var ye,Ce=ae.clientX,Pe=ae.clientY,ze=z.doc.documentElement.scrollTop||z.doc.body.scrollTop,Je=z.doc.documentElement.scrollLeft||z.doc.body.scrollLeft,ge=Xt.length;ge--;){if(ye=Xt[ge],te&&ae.touches){for(var we,Ae=ae.touches.length;Ae--;)if((we=ae.touches[Ae]).identifier==ye.el._drag.id){Ce=we.clientX,Pe=we.clientY,(ae.originalEvent?ae.originalEvent:ae).preventDefault();break}}else ae.preventDefault();var Ue,ht=ye.el.node,_t=ht.nextSibling,Ct=ht.parentNode,At=ht.style.display;z.win.opera&&Ct.removeChild(ht),ht.style.display="none",Ue=ye.el.paper.getElementByPoint(Ce,Pe),ht.style.display=At,z.win.opera&&(_t?Ct.insertBefore(ht,_t):Ct.appendChild(ht)),Ue&&k("raphael.drag.over."+ye.el.id,ye.el,Ue),Ce+=Je,Pe+=ze,k("raphael.drag.move."+ye.el.id,ye.move_scope||ye.el,Ce-ye.el._drag.x,Pe-ye.el._drag.y,Ce,Pe,ae)}},rr=function(ae){A.unmousemove(Sr).unmouseup(rr);for(var ye,Ce=Xt.length;Ce--;)(ye=Xt[Ce]).el._drag={},k("raphael.drag.end."+ye.el.id,ye.end_scope||ye.start_scope||ye.move_scope||ye.el,ae);Xt=[]},er=A.el={},kr=he.length;kr--;)(function(ae){A[ae]=er[ae]=function(ye,Ce){return A.is(ye,"function")&&(this.events=this.events||[],this.events.push({name:ae,f:ye,unbind:Mr(this.shape||this.node||z.doc,ae,ye,Ce||this)})),this},A["un"+ae]=er["un"+ae]=function(ye){for(var Ce=this.events||[],Pe=Ce.length;Pe--;)Ce[Pe].name!=ae||!A.is(ye,"undefined")&&Ce[Pe].f!=ye||(Ce[Pe].unbind(),Ce.splice(Pe,1),!Ce.length&&delete this.events);return this}})(he[kr]);er.data=function(ae,ye){var Ce=et[this.id]=et[this.id]||{};if(arguments.length==0)return Ce;if(arguments.length==1){if(A.is(ae,"object")){for(var Pe in ae)ae[$](Pe)&&this.data(Pe,ae[Pe]);return this}return k("raphael.data.get."+this.id,this,Ce[ae],ae),Ce[ae]}return Ce[ae]=ye,k("raphael.data.set."+this.id,this,ye,ae),this},er.removeData=function(ae){return ae==null?delete et[this.id]:et[this.id]&&delete et[this.id][ae],this},er.getData=function(){return Oe(et[this.id]||{})},er.hover=function(ae,ye,Ce,Pe){return this.mouseover(ae,Ce).mouseout(ye,Pe||Ce)},er.unhover=function(ae,ye){return this.unmouseover(ae).unmouseout(ye)};var vr=[];er.drag=function(ae,ye,Ce,Pe,ze,Je){function ge(we){(we.originalEvent||we).preventDefault();var Ae=we.clientX,Ue=we.clientY,ht=z.doc.documentElement.scrollTop||z.doc.body.scrollTop,_t=z.doc.documentElement.scrollLeft||z.doc.body.scrollLeft;if(this._drag.id=we.identifier,te&&we.touches){for(var Ct,At=we.touches.length;At--;)if(Ct=we.touches[At],this._drag.id=Ct.identifier,Ct.identifier==this._drag.id){Ae=Ct.clientX,Ue=Ct.clientY;break}}this._drag.x=Ae+_t,this._drag.y=Ue+ht,!Xt.length&&A.mousemove(Sr).mouseup(rr),Xt.push({el:this,move_scope:Pe,start_scope:ze,end_scope:Je}),ye&&k.on("raphael.drag.start."+this.id,ye),ae&&k.on("raphael.drag.move."+this.id,ae),Ce&&k.on("raphael.drag.end."+this.id,Ce),k("raphael.drag.start."+this.id,ze||Pe||this,this._drag.x,this._drag.y,we)}return this._drag={},vr.push({el:this,start:ge}),this.mousedown(ge),this},er.onDragOver=function(ae){ae?k.on("raphael.drag.over."+this.id,ae):k.unbind("raphael.drag.over."+this.id)},er.undrag=function(){for(var ae=vr.length;ae--;)vr[ae].el==this&&(this.unmousedown(vr[ae].start),vr.splice(ae,1),k.unbind("raphael.drag.*."+this.id));!vr.length&&A.unmousemove(Sr).unmouseup(rr),Xt=[]},M.circle=function(ae,ye,Ce){var Pe=A._engine.circle(this,ae||0,ye||0,Ce||0);return this.__set__&&this.__set__.push(Pe),Pe},M.rect=function(ae,ye,Ce,Pe,ze){var Je=A._engine.rect(this,ae||0,ye||0,Ce||0,Pe||0,ze||0);return this.__set__&&this.__set__.push(Je),Je},M.ellipse=function(ae,ye,Ce,Pe){var ze=A._engine.ellipse(this,ae||0,ye||0,Ce||0,Pe||0);return this.__set__&&this.__set__.push(ze),ze},M.path=function(ae){ae&&!A.is(ae,"string")&&!A.is(ae[0],v)&&(ae+=se);var ye=A._engine.path(A.format[U](A,arguments),this);return this.__set__&&this.__set__.push(ye),ye},M.image=function(ae,ye,Ce,Pe,ze){var Je=A._engine.image(this,ae||"about:blank",ye||0,Ce||0,Pe||0,ze||0);return this.__set__&&this.__set__.push(Je),Je},M.text=function(ae,ye,Ce){var Pe=A._engine.text(this,ae||0,ye||0,Q(Ce));return this.__set__&&this.__set__.push(Pe),Pe},M.set=function(ae){!A.is(ae,"array")&&(ae=Array.prototype.splice.call(arguments,0,arguments.length));var ye=new Kr(ae);return this.__set__&&this.__set__.push(ye),ye.paper=this,ye.type="set",ye},M.setStart=function(ae){this.__set__=ae||this.set()},M.setFinish=function(ae){var ye=this.__set__;return delete this.__set__,ye},M.getSize=function(){var ae=this.canvas.parentNode;return{width:ae.offsetWidth,height:ae.offsetHeight}},M.setSize=function(ae,ye){return A._engine.setSize.call(this,ae,ye)},M.setViewBox=function(ae,ye,Ce,Pe,ze){return A._engine.setViewBox.call(this,ae,ye,Ce,Pe,ze)},M.top=M.bottom=null,M.raphael=A;function Pr(){return this.x+de+this.y+de+this.width+" × "+this.height}M.getElementByPoint=function(ae,ye){var Ce,Pe,ze,Je,ge,we,Ae,Ue=this.canvas,ht=z.doc.elementFromPoint(ae,ye);if(z.win.opera&&ht.tagName=="svg"){var _t=(Pe=(Ce=Ue).getBoundingClientRect(),ze=Ce.ownerDocument,Je=ze.body,ge=ze.documentElement,we=ge.clientTop||Je.clientTop||0,Ae=ge.clientLeft||Je.clientLeft||0,{y:Pe.top+(z.win.pageYOffset||ge.scrollTop||Je.scrollTop)-we,x:Pe.left+(z.win.pageXOffset||ge.scrollLeft||Je.scrollLeft)-Ae}),Ct=Ue.createSVGRect();Ct.x=ae-_t.x,Ct.y=ye-_t.y,Ct.width=Ct.height=1;var At=Ue.getIntersectionList(Ct,null);At.length&&(ht=At[At.length-1])}if(!ht)return null;for(;ht.parentNode&&ht!=Ue.parentNode&&!ht.raphael;)ht=ht.parentNode;return ht==this.canvas.parentNode&&(ht=Ue),ht=ht&&ht.raphael?this.getById(ht.raphaelid):null},M.getElementsByBBox=function(ae){var ye=this.set();return this.forEach(function(Ce){A.isBBoxIntersect(Ce.getBBox(),ae)&&ye.push(Ce)}),ye},M.getById=function(ae){for(var ye=this.bottom;ye;){if(ye.id==ae)return ye;ye=ye.next}return null},M.forEach=function(ae,ye){for(var Ce=this.bottom;Ce;){if(ae.call(ye,Ce)===!1)return this;Ce=Ce.next}return this},M.getElementsByPoint=function(ae,ye){var Ce=this.set();return this.forEach(function(Pe){Pe.isPointInside(ae,ye)&&Ce.push(Pe)}),Ce},er.isPointInside=function(ae,ye){var Ce=this.realPath=Ge[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(Ce=A.transformPath(Ce,this.attr("transform"))),A.isPointInsidePath(Ce,ae,ye)},er.getBBox=function(ae){if(this.removed)return{};var ye=this._;return ae?(!ye.dirty&&ye.bboxwt||(this.realPath=Ge[this.type](this),ye.bboxwt=Be(this.realPath),ye.bboxwt.toString=Pr,ye.dirty=0),ye.bboxwt):((ye.dirty||ye.dirtyT||!ye.bbox)&&(!ye.dirty&&this.realPath||(ye.bboxwt=0,this.realPath=Ge[this.type](this)),ye.bbox=Be(nt(this.realPath,this.matrix)),ye.bbox.toString=Pr,ye.dirty=ye.dirtyT=0),ye.bbox)},er.clone=function(){if(this.removed)return null;var ae=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(ae),ae},er.glow=function(ae){if(this.type=="text")return null;var ye={width:((ae=ae||{}).width||10)+(+this.attr("stroke-width")||1),fill:ae.fill||!1,opacity:ae.opacity==null?.5:ae.opacity,offsetx:ae.offsetx||0,offsety:ae.offsety||0,color:ae.color||"#000"},Ce=ye.width/2,Pe=this.paper,ze=Pe.set(),Je=this.realPath||Ge[this.type](this);Je=this.matrix?nt(Je,this.matrix):Je;for(var ge=1;ge<Ce+1;ge++)ze.push(Pe.path(Je).attr({stroke:ye.color,fill:ye.fill?ye.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(ye.width/Ce*ge).toFixed(3),opacity:+(ye.opacity/Ce).toFixed(3)}));return ze.insertBefore(this).translate(ye.offsetx,ye.offsety)};var Tr=function(ae,ye,Ce,Pe,ze,Je,ge,we,Ae){return Ae==null?yt(ae,ye,Ce,Pe,ze,Je,ge,we):A.findDotsAtSegment(ae,ye,Ce,Pe,ze,Je,ge,we,function(Ue,ht,_t,Ct,At,Qt,ir,tr,Zt){if(!(Zt<0||yt(Ue,ht,_t,Ct,At,Qt,ir,tr)<Zt)){var Br,pr=.5,_r=1-pr;for(Br=yt(Ue,ht,_t,Ct,At,Qt,ir,tr,_r);e(Br-Zt)>.01;)Br=yt(Ue,ht,_t,Ct,At,Qt,ir,tr,_r+=(Br<Zt?1:-1)*(pr/=2));return _r}}(ae,ye,Ce,Pe,ze,Je,ge,we,Ae))},br=function(ae,ye){return function(Ce,Pe,ze){for(var Je,ge,we,Ae,Ue,ht="",_t={},Ct=0,At=0,Qt=(Ce=Ot(Ce)).length;At<Qt;At++){if((we=Ce[At])[0]=="M")Je=+we[1],ge=+we[2];else{if(Ct+(Ae=Tr(Je,ge,we[1],we[2],we[3],we[4],we[5],we[6]))>Pe){if(ye&&!_t.start){if(ht+=["C"+(Ue=Tr(Je,ge,we[1],we[2],we[3],we[4],we[5],we[6],Pe-Ct)).start.x,Ue.start.y,Ue.m.x,Ue.m.y,Ue.x,Ue.y],ze)return ht;_t.start=ht,ht=["M"+Ue.x,Ue.y+"C"+Ue.n.x,Ue.n.y,Ue.end.x,Ue.end.y,we[5],we[6]].join(),Ct+=Ae,Je=+we[5],ge=+we[6];continue}if(!ae&&!ye)return{x:(Ue=Tr(Je,ge,we[1],we[2],we[3],we[4],we[5],we[6],Pe-Ct)).x,y:Ue.y,alpha:Ue.alpha}}Ct+=Ae,Je=+we[5],ge=+we[6]}ht+=we.shift()+we}return _t.end=ht,(Ue=ae?Ct:ye?_t:A.findDotsAtSegment(Je,ge,we[0],we[1],we[2],we[3],we[4],we[5],1)).alpha&&(Ue={x:Ue.x,y:Ue.y,alpha:Ue.alpha}),Ue}},Ar=br(1),gr=br(),dr=br(0,1);A.getTotalLength=Ar,A.getPointAtLength=gr,A.getSubpath=function(ae,ye,Ce){if(this.getTotalLength(ae)-Ce<1e-6)return dr(ae,ye).end;var Pe=dr(ae,Ce,1);return ye?dr(Pe,ye).end:Pe},er.getTotalLength=function(){var ae=this.getPath();if(ae)return this.node.getTotalLength?this.node.getTotalLength():Ar(ae)},er.getPointAtLength=function(ae){var ye=this.getPath();if(ye)return gr(ye,ae)},er.getPath=function(){var ae,ye=A._getPath[this.type];if(this.type!="text"&&this.type!="set")return ye&&(ae=ye(this)),ae},er.getSubpath=function(ae,ye){var Ce=this.getPath();if(Ce)return A.getSubpath(Ce,ae,ye)};var lr=A.easing_formulas={linear:function(ae){return ae},"<":function(ae){return c(ae,1.7)},">":function(ae){return c(ae,.48)},"<>":function(ae){var ye=.48-ae/1.04,Ce=u.sqrt(.1734+ye*ye),Pe=Ce-ye,ze=-Ce-ye,Je=c(e(Pe),1/3)*(Pe<0?-1:1)+c(e(ze),1/3)*(ze<0?-1:1)+.5;return 3*(1-Je)*Je*Je+Je*Je*Je},backIn:function(ae){var ye=1.70158;return ae*ae*((ye+1)*ae-ye)},backOut:function(ae){var ye=1.70158;return(ae-=1)*ae*((ye+1)*ae+ye)+1},elastic:function(ae){return ae==!!ae?ae:c(2,-10*ae)*u.sin(2*y*(ae-.075)/.3)+1},bounce:function(ae){var ye=7.5625,Ce=2.75;return ae<1/Ce?ye*ae*ae:ae<2/Ce?ye*(ae-=1.5/Ce)*ae+.75:ae<2.5/Ce?ye*(ae-=2.25/Ce)*ae+.9375:ye*(ae-=2.625/Ce)*ae+.984375}};lr.easeIn=lr["ease-in"]=lr["<"],lr.easeOut=lr["ease-out"]=lr[">"],lr.easeInOut=lr["ease-in-out"]=lr["<>"],lr["back-in"]=lr.backIn,lr["back-out"]=lr.backOut;var Kt=[],Bt=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(ae){setTimeout(ae,16)},Ft=function(){for(var ae=+new Date,ye=0;ye<Kt.length;ye++){var Ce=Kt[ye];if(!Ce.el.removed&&!Ce.paused){var Pe,ze,Je=ae-Ce.start,ge=Ce.ms,we=Ce.easing,Ae=Ce.from,Ue=Ce.diff,ht=Ce.to,_t=(Ce.t,Ce.el),Ct={},At={};if(Ce.initstatus?(Je=(Ce.initstatus*Ce.anim.top-Ce.prev)/(Ce.percent-Ce.prev)*ge,Ce.status=Ce.initstatus,delete Ce.initstatus,Ce.stop&&Kt.splice(ye--,1)):Ce.status=(Ce.prev+(Ce.percent-Ce.prev)*(Je/ge))/Ce.anim.top,!(Je<0))if(Je<ge){var Qt=we(Je/ge);for(var ir in Ae)if(Ae[$](ir)){switch(ee[ir]){case w:Pe=+Ae[ir]+Qt*ge*Ue[ir];break;case"colour":Pe="rgb("+[cr(H(Ae[ir].r+Qt*ge*Ue[ir].r)),cr(H(Ae[ir].g+Qt*ge*Ue[ir].g)),cr(H(Ae[ir].b+Qt*ge*Ue[ir].b))].join(",")+")";break;case"path":Pe=[];for(var tr=0,Zt=Ae[ir].length;tr<Zt;tr++){Pe[tr]=[Ae[ir][tr][0]];for(var Br=1,pr=Ae[ir][tr].length;Br<pr;Br++)Pe[tr][Br]=+Ae[ir][tr][Br]+Qt*ge*Ue[ir][tr][Br];Pe[tr]=Pe[tr].join(de)}Pe=Pe.join(de);break;case"transform":if(Ue[ir].real)for(Pe=[],tr=0,Zt=Ae[ir].length;tr<Zt;tr++)for(Pe[tr]=[Ae[ir][tr][0]],Br=1,pr=Ae[ir][tr].length;Br<pr;Br++)Pe[tr][Br]=Ae[ir][tr][Br]+Qt*ge*Ue[ir][tr][Br];else{var _r=function(Gr){return+Ae[ir][Gr]+Qt*ge*Ue[ir][Gr]};Pe=[["m",_r(0),_r(1),_r(2),_r(3),_r(4),_r(5)]]}break;case"csv":if(ir=="clip-rect")for(Pe=[],tr=4;tr--;)Pe[tr]=+Ae[ir][tr]+Qt*ge*Ue[ir][tr];break;default:var fr=[][J](Ae[ir]);for(Pe=[],tr=_t.paper.customAttributes[ir].length;tr--;)Pe[tr]=+fr[tr]+Qt*ge*Ue[ir][tr]}Ct[ir]=Pe}_t.attr(Ct),function(Gr,Nr,Zr){setTimeout(function(){k("raphael.anim.frame."+Gr,Nr,Zr)})}(_t.id,_t,Ce.anim)}else{if(function(Gr,Nr,Zr){setTimeout(function(){k("raphael.anim.frame."+Nr.id,Nr,Zr),k("raphael.anim.finish."+Nr.id,Nr,Zr),A.is(Gr,"function")&&Gr.call(Nr)})}(Ce.callback,_t,Ce.anim),_t.attr(ht),Kt.splice(ye--,1),Ce.repeat>1&&!Ce.next){for(ze in ht)ht[$](ze)&&(At[ze]=Ce.totalOrigin[ze]);Ce.el.attr(At),ar(Ce.anim,Ce.el,Ce.anim.percents[0],null,Ce.totalOrigin,Ce.repeat-1)}Ce.next&&!Ce.stop&&ar(Ce.anim,Ce.el,Ce.next,null,Ce.totalOrigin,Ce.repeat)}}}Kt.length&&Bt(Ft)},cr=function(ae){return ae>255?255:ae<0?0:ae};function nr(ae,ye,Ce,Pe,ze,Je){var ge=3*ye,we=3*(Pe-ye)-ge,Ae=1-ge-we,Ue=3*Ce,ht=3*(ze-Ce)-Ue,_t=1-Ue-ht;function Ct(At){return((Ae*At+we)*At+ge)*At}return function(At,Qt){var ir=function(tr,Zt){var Br,pr,_r,fr,Gr,Nr;for(_r=tr,Nr=0;Nr<8;Nr++){if(fr=Ct(_r)-tr,e(fr)<Zt)return _r;if(e(Gr=(3*Ae*_r+2*we)*_r+ge)<1e-6)break;_r-=fr/Gr}if(pr=1,(_r=tr)<(Br=0))return Br;if(_r>pr)return pr;for(;Br<pr;){if(fr=Ct(_r),e(fr-tr)<Zt)return _r;tr>fr?Br=_r:pr=_r,_r=(pr-Br)/2+Br}return _r}(At,Qt);return((_t*ir+ht)*ir+Ue)*ir}(ae,1/(200*Je))}function Vt(ae,ye){var Ce=[],Pe={};if(this.ms=ye,this.times=1,ae){for(var ze in ae)ae[$](ze)&&(Pe[Y(ze)]=ae[ze],Ce.push(Y(ze)));Ce.sort(mt)}this.anim=Pe,this.top=Ce[Ce.length-1],this.percents=Ce}function ar(ae,ye,Ce,Pe,ze,Je){Ce=Y(Ce);var ge,we,Ae,Ue,ht,_t,Ct=ae.ms,At={},Qt={},ir={};if(Pe)for(Zt=0,Br=Kt.length;Zt<Br;Zt++){var tr=Kt[Zt];if(tr.el.id==ye.id&&tr.anim==ae){tr.percent!=Ce?(Kt.splice(Zt,1),Ae=1):we=tr,ye.attr(tr.totalOrigin);break}}else Pe=+Qt;for(var Zt=0,Br=ae.percents.length;Zt<Br;Zt++){if(ae.percents[Zt]==Ce||ae.percents[Zt]>Pe*ae.top){Ce=ae.percents[Zt],ht=ae.percents[Zt-1]||0,Ct=Ct/ae.top*(Ce-ht),Ue=ae.percents[Zt+1],ge=ae.anim[Ce];break}Pe&&ye.attr(ae.anim[ae.percents[Zt]])}if(ge){if(we)we.initstatus=Pe,we.start=new Date-we.ms*Pe;else{for(var pr in ge)if(ge[$](pr)&&(ee[$](pr)||ye.paper.customAttributes[$](pr)))switch(At[pr]=ye.attr(pr),At[pr]==null&&(At[pr]=D[pr]),Qt[pr]=ge[pr],ee[pr]){case w:ir[pr]=(Qt[pr]-At[pr])/Ct;break;case"colour":At[pr]=A.getRGB(At[pr]);var _r=A.getRGB(Qt[pr]);ir[pr]={r:(_r.r-At[pr].r)/Ct,g:(_r.g-At[pr].g)/Ct,b:(_r.b-At[pr].b)/Ct};break;case"path":var fr=Ot(At[pr],Qt[pr]),Gr=fr[1];for(At[pr]=fr[0],ir[pr]=[],Zt=0,Br=At[pr].length;Zt<Br;Zt++){ir[pr][Zt]=[0];for(var Nr=1,Zr=At[pr][Zt].length;Nr<Zr;Nr++)ir[pr][Zt][Nr]=(Gr[Zt][Nr]-At[pr][Zt][Nr])/Ct}break;case"transform":var Sn=ye._,qn=_e(Sn[pr],Qt[pr]);if(qn)for(At[pr]=qn.from,Qt[pr]=qn.to,ir[pr]=[],ir[pr].real=!0,Zt=0,Br=At[pr].length;Zt<Br;Zt++)for(ir[pr][Zt]=[At[pr][Zt][0]],Nr=1,Zr=At[pr][Zt].length;Nr<Zr;Nr++)ir[pr][Zt][Nr]=(Qt[pr][Zt][Nr]-At[pr][Zt][Nr])/Ct;else{var ii=ye.matrix||new Re,si={_:{transform:Sn.transform},getBBox:function(){return ye.getBBox(1)}};At[pr]=[ii.a,ii.b,ii.c,ii.d,ii.e,ii.f],ce(si,Qt[pr]),Qt[pr]=si._.transform,ir[pr]=[(si.matrix.a-ii.a)/Ct,(si.matrix.b-ii.b)/Ct,(si.matrix.c-ii.c)/Ct,(si.matrix.d-ii.d)/Ct,(si.matrix.e-ii.e)/Ct,(si.matrix.f-ii.f)/Ct]}break;case"csv":var vn=Q(ge[pr])[ve](j),on=Q(At[pr])[ve](j);if(pr=="clip-rect")for(At[pr]=on,ir[pr]=[],Zt=on.length;Zt--;)ir[pr][Zt]=(vn[Zt]-At[pr][Zt])/Ct;Qt[pr]=vn;break;default:for(vn=[][J](ge[pr]),on=[][J](At[pr]),ir[pr]=[],Zt=ye.paper.customAttributes[pr].length;Zt--;)ir[pr][Zt]=((vn[Zt]||0)-(on[Zt]||0))/Ct}var Bn=ge.easing,Hi=A.easing_formulas[Bn];if(!Hi)if((Hi=Q(Bn).match(R))&&Hi.length==5){var Xi=Hi;Hi=function(Kn){return nr(Kn,+Xi[1],+Xi[2],+Xi[3],+Xi[4],Ct)}}else Hi=Ye;if(tr={anim:ae,percent:Ce,timestamp:_t=ge.start||ae.start||+new Date,start:_t+(ae.del||0),status:0,initstatus:Pe||0,stop:!1,ms:Ct,easing:Hi,from:At,diff:ir,to:Qt,el:ye,callback:ge.callback,prev:ht,next:Ue,repeat:Je||ae.times,origin:ye.attr(),totalOrigin:ze},Kt.push(tr),Pe&&!we&&!Ae&&(tr.stop=!0,tr.start=new Date-Ct*Pe,Kt.length==1))return Ft();Ae&&(tr.start=new Date-tr.ms*Pe),Kt.length==1&&Bt(Ft)}k("raphael.anim.start."+ye.id,ye,ae)}}function qr(ae){for(var ye=0;ye<Kt.length;ye++)Kt[ye].el.paper==ae&&Kt.splice(ye--,1)}er.animateWith=function(ae,ye,Ce,Pe,ze,Je){if(this.removed)return Je&&Je.call(this),this;var ge=Ce instanceof Vt?Ce:A.animation(Ce,Pe,ze,Je);ar(ge,this,ge.percents[0],null,this.attr());for(var we=0,Ae=Kt.length;we<Ae;we++)if(Kt[we].anim==ye&&Kt[we].el==ae){Kt[Ae-1].start=Kt[we].start;break}return this},er.onAnimation=function(ae){return ae?k.on("raphael.anim.frame."+this.id,ae):k.unbind("raphael.anim.frame."+this.id),this},Vt.prototype.delay=function(ae){var ye=new Vt(this.anim,this.ms);return ye.times=this.times,ye.del=+ae||0,ye},Vt.prototype.repeat=function(ae){var ye=new Vt(this.anim,this.ms);return ye.del=this.del,ye.times=u.floor(p(ae,0))||1,ye},A.animation=function(ae,ye,Ce,Pe){if(ae instanceof Vt)return ae;!A.is(Ce,"function")&&Ce||(Pe=Pe||Ce||null,Ce=null),ae=Object(ae),ye=+ye||0;var ze,Je,ge={};for(Je in ae)ae[$](Je)&&Y(Je)!=Je&&Y(Je)+"%"!=Je&&(ze=!0,ge[Je]=ae[Je]);if(ze)return Ce&&(ge.easing=Ce),Pe&&(ge.callback=Pe),new Vt({100:ge},ye);if(Pe){var we=0;for(var Ae in ae){var Ue=Z(Ae);ae[$](Ae)&&Ue>we&&(we=Ue)}!ae[we+="%"].callback&&(ae[we].callback=Pe)}return new Vt(ae,ye)},er.animate=function(ae,ye,Ce,Pe){if(this.removed)return Pe&&Pe.call(this),this;var ze=ae instanceof Vt?ae:A.animation(ae,ye,Ce,Pe);return ar(ze,this,ze.percents[0],null,this.attr()),this},er.setTime=function(ae,ye){return ae&&ye!=null&&this.status(ae,b(ye,ae.ms)/ae.ms),this},er.status=function(ae,ye){var Ce,Pe,ze=[],Je=0;if(ye!=null)return ar(ae,this,-1,b(ye,1)),this;for(Ce=Kt.length;Je<Ce;Je++)if((Pe=Kt[Je]).el.id==this.id&&(!ae||Pe.anim==ae)){if(ae)return Pe.status;ze.push({anim:Pe.anim,status:Pe.status})}return ae?0:ze},er.pause=function(ae){for(var ye=0;ye<Kt.length;ye++)Kt[ye].el.id!=this.id||ae&&Kt[ye].anim!=ae||k("raphael.anim.pause."+this.id,this,Kt[ye].anim)!==!1&&(Kt[ye].paused=!0);return this},er.resume=function(ae){for(var ye=0;ye<Kt.length;ye++)if(Kt[ye].el.id==this.id&&(!ae||Kt[ye].anim==ae)){var Ce=Kt[ye];k("raphael.anim.resume."+this.id,this,Ce.anim)!==!1&&(delete Ce.paused,this.status(Ce.anim,Ce.status))}return this},er.stop=function(ae){for(var ye=0;ye<Kt.length;ye++)Kt[ye].el.id!=this.id||ae&&Kt[ye].anim!=ae||k("raphael.anim.stop."+this.id,this,Kt[ye].anim)!==!1&&Kt.splice(ye--,1);return this},k.on("raphael.remove",qr),k.on("raphael.clear",qr),er.toString=function(){return"Raphaël’s object"};var Vr,Wr,Rr,bt,Kr=function(ae){if(this.items=[],this.length=0,this.type="set",ae)for(var ye=0,Ce=ae.length;ye<Ce;ye++)!ae[ye]||ae[ye].constructor!=er.constructor&&ae[ye].constructor!=Kr||(this[this.items.length]=this.items[this.items.length]=ae[ye],this.length++)},Ur=Kr.prototype;for(var ti in Ur.push=function(){for(var ae,ye,Ce=0,Pe=arguments.length;Ce<Pe;Ce++)!(ae=arguments[Ce])||ae.constructor!=er.constructor&&ae.constructor!=Kr||(this[ye=this.items.length]=this.items[ye]=ae,this.length++);return this},Ur.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},Ur.forEach=function(ae,ye){for(var Ce=0,Pe=this.items.length;Ce<Pe;Ce++)if(ae.call(ye,this.items[Ce],Ce)===!1)return this;return this},er)er[$](ti)&&(Ur[ti]=function(ae){return function(){var ye=arguments;return this.forEach(function(Ce){Ce[ae][U](Ce,ye)})}}(ti));return Ur.attr=function(ae,ye){if(ae&&A.is(ae,v)&&A.is(ae[0],"object"))for(var Ce=0,Pe=ae.length;Ce<Pe;Ce++)this.items[Ce].attr(ae[Ce]);else for(var ze=0,Je=this.items.length;ze<Je;ze++)this.items[ze].attr(ae,ye);return this},Ur.clear=function(){for(;this.length;)this.pop()},Ur.splice=function(ae,ye,Ce){ae=ae<0?p(this.length+ae,0):ae,ye=p(0,b(this.length-ae,ye));var Pe,ze=[],Je=[],ge=[];for(Pe=2;Pe<arguments.length;Pe++)ge.push(arguments[Pe]);for(Pe=0;Pe<ye;Pe++)Je.push(this[ae+Pe]);for(;Pe<this.length-ae;Pe++)ze.push(this[ae+Pe]);var we=ge.length;for(Pe=0;Pe<we+ze.length;Pe++)this.items[ae+Pe]=this[ae+Pe]=Pe<we?ge[Pe]:ze[Pe-we];for(Pe=this.items.length=this.length-=ye-we;this[Pe];)delete this[Pe++];return new Kr(Je)},Ur.exclude=function(ae){for(var ye=0,Ce=this.length;ye<Ce;ye++)if(this[ye]==ae)return this.splice(ye,1),!0},Ur.animate=function(ae,ye,Ce,Pe){(A.is(Ce,"function")||!Ce)&&(Pe=Ce||null);var ze,Je,ge=this.items.length,we=ge,Ae=this;if(!ge)return this;Pe&&(Je=function(){!--ge&&Pe.call(Ae)}),Ce=A.is(Ce,"string")?Ce:Je;var Ue=A.animation(ae,ye,Ce,Je);for(ze=this.items[--we].animate(Ue);we--;)this.items[we]&&!this.items[we].removed&&this.items[we].animateWith(ze,Ue,Ue),this.items[we]&&!this.items[we].removed||ge--;return this},Ur.insertAfter=function(ae){for(var ye=this.items.length;ye--;)this.items[ye].insertAfter(ae);return this},Ur.getBBox=function(){for(var ae=[],ye=[],Ce=[],Pe=[],ze=this.items.length;ze--;)if(!this.items[ze].removed){var Je=this.items[ze].getBBox();ae.push(Je.x),ye.push(Je.y),Ce.push(Je.x+Je.width),Pe.push(Je.y+Je.height)}return{x:ae=b[U](0,ae),y:ye=b[U](0,ye),x2:Ce=p[U](0,Ce),y2:Pe=p[U](0,Pe),width:Ce-ae,height:Pe-ye}},Ur.clone=function(ae){ae=this.paper.set();for(var ye=0,Ce=this.items.length;ye<Ce;ye++)ae.push(this.items[ye].clone());return ae},Ur.toString=function(){return"Raphaël‘s set"},Ur.glow=function(ae){var ye=this.paper.set();return this.forEach(function(Ce,Pe){var ze=Ce.glow(ae);ze!=null&&ze.forEach(function(Je,ge){ye.push(Je)})}),ye},Ur.isPointInside=function(ae,ye){var Ce=!1;return this.forEach(function(Pe){if(Pe.isPointInside(ae,ye))return Ce=!0,!1}),Ce},A.registerFont=function(ae){if(!ae.face)return ae;this.fonts=this.fonts||{};var ye={w:ae.w,face:{},glyphs:{}},Ce=ae.face["font-family"];for(var Pe in ae.face)ae.face[$](Pe)&&(ye.face[Pe]=ae.face[Pe]);if(this.fonts[Ce]?this.fonts[Ce].push(ye):this.fonts[Ce]=[ye],!ae.svg){for(var ze in ye.face["units-per-em"]=Z(ae.face["units-per-em"],10),ae.glyphs)if(ae.glyphs[$](ze)){var Je=ae.glyphs[ze];if(ye.glyphs[ze]={w:Je.w,k:{},d:Je.d&&"M"+Je.d.replace(/[mlcxtrv]/g,function(we){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[we]||"M"})+"z"},Je.k)for(var ge in Je.k)Je[$](ge)&&(ye.glyphs[ze].k[ge]=Je.k[ge])}}return ae},M.getFont=function(ae,ye,Ce,Pe){if(Pe=Pe||"normal",Ce=Ce||"normal",ye=+ye||{normal:400,bold:700,lighter:300,bolder:800}[ye]||400,A.fonts){var ze,Je=A.fonts[ae];if(!Je){var ge=new RegExp("(^|\\s)"+ae.replace(/[^\w\d\s+!~.:_-]/g,se)+"(\\s|$)","i");for(var we in A.fonts)if(A.fonts[$](we)&&ge.test(we)){Je=A.fonts[we];break}}if(Je)for(var Ae=0,Ue=Je.length;Ae<Ue&&((ze=Je[Ae]).face["font-weight"]!=ye||ze.face["font-style"]!=Ce&&ze.face["font-style"]||ze.face["font-stretch"]!=Pe);Ae++);return ze}},M.print=function(ae,ye,Ce,Pe,ze,Je,ge,we){Je=Je||"middle",ge=p(b(ge||0,1),-1),we=p(b(we||1,3),1);var Ae,Ue=Q(Ce)[ve](se),ht=0,_t=0,Ct=se;if(A.is(Pe,"string")&&(Pe=this.getFont(Pe)),Pe){Ae=(ze||16)/Pe.face["units-per-em"];for(var At=Pe.face.bbox[ve](j),Qt=+At[0],ir=At[3]-At[1],tr=0,Zt=+At[1]+(Je=="baseline"?ir+ +Pe.face.descent:ir/2),Br=0,pr=Ue.length;Br<pr;Br++){if(Ue[Br]==`
`)ht=0,fr=0,_t=0,tr+=ir*we;else{var _r=_t&&Pe.glyphs[Ue[Br-1]]||{},fr=Pe.glyphs[Ue[Br]];ht+=_t?(_r.w||Pe.w)+(_r.k&&_r.k[Ue[Br]]||0)+Pe.w*ge:0,_t=1}fr&&fr.d&&(Ct+=A.transformPath(fr.d,["t",ht*Ae,tr*Ae,"s",Ae,Ae,Qt,Zt,"t",(ae-Qt)/Ae,(ye-Zt)/Ae]))}}return this.path(Ct).attr({fill:"#000",stroke:"none"})},M.add=function(ae){if(A.is(ae,"array"))for(var ye,Ce=this.set(),Pe=0,ze=ae.length;Pe<ze;Pe++)ye=ae[Pe]||{},I[$](ye.type)&&Ce.push(this[ye.type]().attr(ye));return Ce},A.format=function(ae,ye){var Ce=A.is(ye,v)?[0][J](ye):arguments;return ae&&A.is(ae,"string")&&Ce.length-1&&(ae=ae.replace(P,function(Pe,ze){return Ce[++ze]==null?se:Ce[ze]})),ae||se},A.fullfill=(Vr=/\{([^\}]+)\}/g,Wr=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(ae,ye){return String(ae).replace(Vr,function(Ce,Pe){return function(ze,Je,ge){var we=ge;return Je.replace(Wr,function(Ae,Ue,ht,_t,Ct){Ue=Ue||_t,we&&(Ue in we&&(we=we[Ue]),typeof we=="function"&&Ct&&(we=we()))}),we=(we==null||we==ge?ze:we)+""}(Ce,Pe,ye)})}),A.ninja=function(){if(N.was)z.win.Raphael=N.is;else{window.Raphael=void 0;try{delete window.Raphael}catch{}}return A},A.st=Ur,k.on("raphael.DOMload",function(){B=!0}),(Rr=document).readyState==null&&Rr.addEventListener&&(Rr.addEventListener("DOMContentLoaded",bt=function(){Rr.removeEventListener("DOMContentLoaded",bt,!1),Rr.readyState="complete"},!1),Rr.readyState="loading"),function ae(){/in/.test(Rr.readyState)?setTimeout(ae,9):A.eve("raphael.DOMload")}(),A}).apply(d,h))===void 0||(l.exports=S)},function(l,d,m){var h,S;h=[m(0),m(3),m(4)],(S=(function(k){return k}).apply(d,h))===void 0||(l.exports=S)},function(l,d,m){var h,S,k,A,B,M,j,I,P,$,z,N,F,U;A="hasOwnProperty",B=/[\.\/]/,M=/\s*,\s*/,j=function(J,te){return J-te},I={n:{}},P=function(){for(var J=0,te=this.length;J<te;J++)if(this[J]!==void 0)return this[J]},$=function(){for(var J=this.length;--J;)if(this[J]!==void 0)return this[J]},z=Object.prototype.toString,N=String,F=Array.isArray||function(J){return J instanceof Array||z.call(J)=="[object Array]"},(U=function(J,te){var se,de=k,Q=Array.prototype.slice.call(arguments,2),ve=U.listeners(J),he=0,ke=[],T={},u=[],p=S;u.firstDefined=P,u.lastDefined=$,S=J,k=0;for(var b=0,e=ve.length;b<e;b++)"zIndex"in ve[b]&&(ke.push(ve[b].zIndex),ve[b].zIndex<0&&(T[ve[b].zIndex]=ve[b]));for(ke.sort(j);ke[he]<0;)if(se=T[ke[he++]],u.push(se.apply(te,Q)),k)return k=de,u;for(b=0;b<e;b++)if("zIndex"in(se=ve[b]))if(se.zIndex==ke[he]){if(u.push(se.apply(te,Q)),k)break;do if((se=T[ke[++he]])&&u.push(se.apply(te,Q)),k)break;while(se)}else T[se.zIndex]=se;else if(u.push(se.apply(te,Q)),k)break;return k=de,S=p,u})._events=I,U.listeners=function(J){var te,se,de,Q,ve,he,ke,T,u=F(J)?J:J.split(B),p=I,b=[p],e=[];for(Q=0,ve=u.length;Q<ve;Q++){for(T=[],he=0,ke=b.length;he<ke;he++)for(se=[(p=b[he].n)[u[Q]],p["*"]],de=2;de--;)(te=se[de])&&(T.push(te),e=e.concat(te.f||[]));b=T}return e},U.separator=function(J){J?(J="["+(J=N(J).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",B=new RegExp(J)):B=/[\.\/]/},U.on=function(J,te){if(typeof te!="function")return function(){};for(var se=F(J)?F(J[0])?J:[J]:N(J).split(M),de=0,Q=se.length;de<Q;de++)(function(ve){for(var he,ke=F(ve)?ve:N(ve).split(B),T=I,u=0,p=ke.length;u<p;u++)T=(T=T.n).hasOwnProperty(ke[u])&&T[ke[u]]||(T[ke[u]]={n:{}});for(T.f=T.f||[],u=0,p=T.f.length;u<p;u++)if(T.f[u]==te){he=!0;break}!he&&T.f.push(te)})(se[de]);return function(ve){+ve==+ve&&(te.zIndex=+ve)}},U.f=function(J){var te=[].slice.call(arguments,1);return function(){U.apply(null,[J,null].concat(te).concat([].slice.call(arguments,0)))}},U.stop=function(){k=1},U.nt=function(J){var te=F(S)?S.join("."):S;return J?new RegExp("(?:\\.|\\/|^)"+J+"(?:\\.|\\/|$)").test(te):te},U.nts=function(){return F(S)?S:S.split(B)},U.off=U.unbind=function(J,te){if(J){var se=F(J)?F(J[0])?J:[J]:N(J).split(M);if(se.length>1)for(var de=0,Q=se.length;de<Q;de++)U.off(se[de],te);else{se=F(J)?J:N(J).split(B);var ve,he,ke,T,u,p=[I];for(de=0,Q=se.length;de<Q;de++)for(T=0;T<p.length;T+=ke.length-2){if(ke=[T,1],ve=p[T].n,se[de]!="*")ve[se[de]]&&ke.push(ve[se[de]]);else for(he in ve)ve[A](he)&&ke.push(ve[he]);p.splice.apply(p,ke)}for(de=0,Q=p.length;de<Q;de++)for(ve=p[de];ve.n;){if(te){if(ve.f){for(T=0,u=ve.f.length;T<u;T++)if(ve.f[T]==te){ve.f.splice(T,1);break}!ve.f.length&&delete ve.f}for(he in ve.n)if(ve.n[A](he)&&ve.n[he].f){var b=ve.n[he].f;for(T=0,u=b.length;T<u;T++)if(b[T]==te){b.splice(T,1);break}!b.length&&delete ve.n[he].f}}else for(he in delete ve.f,ve.n)ve.n[A](he)&&ve.n[he].f&&delete ve.n[he].f;ve=ve.n}}}else U._events=I={n:{}}},U.once=function(J,te){var se=function(){return U.off(J,se),te.apply(this,arguments)};return U.on(J,se)},U.version="0.5.0",U.toString=function(){return"You are running Eve 0.5.0"},l.exports?l.exports=U:(h=(function(){return U}).apply(d,[]))===void 0||(l.exports=h)},function(l,d,m){var h,S;h=[m(0)],(S=(function(k){if(!k||k.svg){var A="hasOwnProperty",B=String,M=parseFloat,j=parseInt,I=Math,P=I.max,$=I.abs,z=I.pow,N=/[, ]+/,F=k.eve,U="",J=" ",te="http://www.w3.org/1999/xlink",se={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},de={};k.toString=function(){return`Your browser supports SVG.
You are running Raphaël `+this.version};var Q=function(x,E){if(E)for(var R in typeof x=="string"&&(x=Q(x)),E)E[A](R)&&(R.substring(0,6)=="xlink:"?x.setAttributeNS(te,R.substring(6),B(E[R])):x.setAttribute(R,B(E[R])));else(x=k._g.doc.createElementNS("http://www.w3.org/2000/svg",x)).style&&(x.style.webkitTapHighlightColor="rgba(0,0,0,0)");return x},ve=function(x,E){var R="linear",H=x.id+E,Y=.5,Z=.5,L=x.node,D=x.paper,ee=L.style,oe=k._g.doc.getElementById(H);if(!oe){if(E=(E=B(E).replace(k._radial_gradient,function(mt,Ye,We){if(R="radial",Ye&&We){Y=M(Ye);var Xe=2*((Z=M(We))>.5)-1;z(Y-.5,2)+z(Z-.5,2)>.25&&(Z=I.sqrt(.25-z(Y-.5,2))*Xe+.5)&&Z!=.5&&(Z=Z.toFixed(5)-1e-5*Xe)}return U})).split(/\s*\-\s*/),R=="linear"){var fe=E.shift();if(fe=-M(fe),isNaN(fe))return null;var ue=[0,0,I.cos(k.rad(fe)),I.sin(k.rad(fe))],qe=1/(P($(ue[2]),$(ue[3]))||1);ue[2]*=qe,ue[3]*=qe,ue[2]<0&&(ue[0]=-ue[2],ue[2]=0),ue[3]<0&&(ue[1]=-ue[3],ue[3]=0)}var rt=k._parseDots(E);if(!rt)return null;if(H=H.replace(/[\(\)\s,\xb0#]/g,"_"),x.gradient&&H!=x.gradient.id&&(D.defs.removeChild(x.gradient),delete x.gradient),!x.gradient){oe=Q(R+"Gradient",{id:H}),x.gradient=oe,Q(oe,R=="radial"?{fx:Y,fy:Z}:{x1:ue[0],y1:ue[1],x2:ue[2],y2:ue[3],gradientTransform:x.matrix.invert()}),D.defs.appendChild(oe);for(var Ve=0,et=rt.length;Ve<et;Ve++)oe.appendChild(Q("stop",{offset:rt[Ve].offset?rt[Ve].offset:Ve?"100%":"0%","stop-color":rt[Ve].color||"#fff","stop-opacity":isFinite(rt[Ve].opacity)?rt[Ve].opacity:1}))}}return Q(L,{fill:he(H),opacity:1,"fill-opacity":1}),ee.fill=U,ee.opacity=1,ee.fillOpacity=1,1},he=function(x){if((E=document.documentMode)&&(E===9||E===10))return"url('#"+x+"')";var E,R=document.location;return"url('"+(R.protocol+"//"+R.host+R.pathname+R.search)+"#"+x+"')"},ke=function(x){var E=x.getBBox(1);Q(x.pattern,{patternTransform:x.matrix.invert()+" translate("+E.x+","+E.y+")"})},T=function(x,E,R){if(x.type=="path"){for(var H,Y,Z,L,D,ee=B(E).toLowerCase().split("-"),oe=x.paper,fe=R?"end":"start",ue=x.node,qe=x.attrs,rt=qe["stroke-width"],Ve=ee.length,et="classic",mt=3,Ye=3,We=5;Ve--;)switch(ee[Ve]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":et=ee[Ve];break;case"wide":Ye=5;break;case"narrow":Ye=2;break;case"long":mt=5;break;case"short":mt=2}if(et=="open"?(mt+=2,Ye+=2,We+=2,Z=1,L=R?4:1,D={fill:"none",stroke:qe.stroke}):(L=Z=mt/2,D={fill:qe.stroke,stroke:"none"}),x._.arrows?R?(x._.arrows.endPath&&de[x._.arrows.endPath]--,x._.arrows.endMarker&&de[x._.arrows.endMarker]--):(x._.arrows.startPath&&de[x._.arrows.startPath]--,x._.arrows.startMarker&&de[x._.arrows.startMarker]--):x._.arrows={},et!="none"){var Xe="raphael-marker-"+et,Ge="raphael-marker-"+fe+et+mt+Ye+"-obj"+x.id;k._g.doc.getElementById(Xe)?de[Xe]++:(oe.defs.appendChild(Q(Q("path"),{"stroke-linecap":"round",d:se[et],id:Xe})),de[Xe]=1);var nt,Et=k._g.doc.getElementById(Ge);Et?(de[Ge]++,nt=Et.getElementsByTagName("use")[0]):(Et=Q(Q("marker"),{id:Ge,markerHeight:Ye,markerWidth:mt,orient:"auto",refX:L,refY:Ye/2}),nt=Q(Q("use"),{"xlink:href":"#"+Xe,transform:(R?"rotate(180 "+mt/2+" "+Ye/2+") ":U)+"scale("+mt/We+","+Ye/We+")","stroke-width":(1/((mt/We+Ye/We)/2)).toFixed(4)}),Et.appendChild(nt),oe.defs.appendChild(Et),de[Ge]=1),Q(nt,D);var Le=Z*(et!="diamond"&&et!="oval");R?(H=x._.arrows.startdx*rt||0,Y=k.getTotalLength(qe.path)-Le*rt):(H=Le*rt,Y=k.getTotalLength(qe.path)-(x._.arrows.enddx*rt||0)),(D={})["marker-"+fe]="url(#"+Ge+")",(Y||H)&&(D.d=k.getSubpath(qe.path,H,Y)),Q(ue,D),x._.arrows[fe+"Path"]=Xe,x._.arrows[fe+"Marker"]=Ge,x._.arrows[fe+"dx"]=Le,x._.arrows[fe+"Type"]=et,x._.arrows[fe+"String"]=E}else R?(H=x._.arrows.startdx*rt||0,Y=k.getTotalLength(qe.path)-H):(H=0,Y=k.getTotalLength(qe.path)-(x._.arrows.enddx*rt||0)),x._.arrows[fe+"Path"]&&Q(ue,{d:k.getSubpath(qe.path,H,Y)}),delete x._.arrows[fe+"Path"],delete x._.arrows[fe+"Marker"],delete x._.arrows[fe+"dx"],delete x._.arrows[fe+"Type"],delete x._.arrows[fe+"String"];for(D in de)if(de[A](D)&&!de[D]){var Oe=k._g.doc.getElementById(D);Oe&&Oe.parentNode.removeChild(Oe)}}},u={"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},p=function(x,E,R){if(E=u[B(E).toLowerCase()]){for(var H=x.attrs["stroke-width"]||"1",Y={round:H,square:H,butt:0}[x.attrs["stroke-linecap"]||R["stroke-linecap"]]||0,Z=[],L=E.length;L--;)Z[L]=E[L]*H+(L%2?1:-1)*Y;Q(x.node,{"stroke-dasharray":Z.join(",")})}else Q(x.node,{"stroke-dasharray":"none"})},b=function(x,E){var R=x.node,H=x.attrs,Y=R.style.visibility;for(var Z in R.style.visibility="hidden",E)if(E[A](Z)){if(!k._availableAttrs[A](Z))continue;var L=E[Z];switch(H[Z]=L,Z){case"blur":x.blur(L);break;case"title":var D=R.getElementsByTagName("title");if(D.length&&(D=D[0]))D.firstChild.nodeValue=L;else{D=Q("title");var ee=k._g.doc.createTextNode(L);D.appendChild(ee),R.appendChild(D)}break;case"href":case"target":var oe=R.parentNode;if(oe.tagName.toLowerCase()!="a"){var fe=Q("a");oe.insertBefore(fe,R),fe.appendChild(R),oe=fe}Z=="target"?oe.setAttributeNS(te,"show",L=="blank"?"new":L):oe.setAttributeNS(te,Z,L);break;case"cursor":R.style.cursor=L;break;case"transform":x.transform(L);break;case"arrow-start":T(x,L);break;case"arrow-end":T(x,L,1);break;case"clip-rect":var ue=B(L).split(N);if(ue.length==4){x.clip&&x.clip.parentNode.parentNode.removeChild(x.clip.parentNode);var qe=Q("clipPath"),rt=Q("rect");qe.id=k.createUUID(),Q(rt,{x:ue[0],y:ue[1],width:ue[2],height:ue[3]}),qe.appendChild(rt),x.paper.defs.appendChild(qe),Q(R,{"clip-path":"url(#"+qe.id+")"}),x.clip=rt}if(!L){var Ve=R.getAttribute("clip-path");if(Ve){var et=k._g.doc.getElementById(Ve.replace(/(^url\(#|\)$)/g,U));et&&et.parentNode.removeChild(et),Q(R,{"clip-path":U}),delete x.clip}}break;case"path":x.type=="path"&&(Q(R,{d:L?H.path=k._pathToAbsolute(L):"M0,0"}),x._.dirty=1,x._.arrows&&("startString"in x._.arrows&&T(x,x._.arrows.startString),"endString"in x._.arrows&&T(x,x._.arrows.endString,1)));break;case"width":if(R.setAttribute(Z,L),x._.dirty=1,!H.fx)break;Z="x",L=H.x;case"x":H.fx&&(L=-H.x-(H.width||0));case"rx":if(Z=="rx"&&x.type=="rect")break;case"cx":R.setAttribute(Z,L),x.pattern&&ke(x),x._.dirty=1;break;case"height":if(R.setAttribute(Z,L),x._.dirty=1,!H.fy)break;Z="y",L=H.y;case"y":H.fy&&(L=-H.y-(H.height||0));case"ry":if(Z=="ry"&&x.type=="rect")break;case"cy":R.setAttribute(Z,L),x.pattern&&ke(x),x._.dirty=1;break;case"r":x.type=="rect"?Q(R,{rx:L,ry:L}):R.setAttribute(Z,L),x._.dirty=1;break;case"src":x.type=="image"&&R.setAttributeNS(te,"href",L);break;case"stroke-width":x._.sx==1&&x._.sy==1||(L/=P($(x._.sx),$(x._.sy))||1),R.setAttribute(Z,L),H["stroke-dasharray"]&&p(x,H["stroke-dasharray"],E),x._.arrows&&("startString"in x._.arrows&&T(x,x._.arrows.startString),"endString"in x._.arrows&&T(x,x._.arrows.endString,1));break;case"stroke-dasharray":p(x,L,E);break;case"fill":var mt=B(L).match(k._ISURL);if(mt){qe=Q("pattern");var Ye=Q("image");qe.id=k.createUUID(),Q(qe,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),Q(Ye,{x:0,y:0,"xlink:href":mt[1]}),qe.appendChild(Ye),function(Et){k._preload(mt[1],function(){var Le=this.offsetWidth,Oe=this.offsetHeight;Q(Et,{width:Le,height:Oe}),Q(Ye,{width:Le,height:Oe})})}(qe),x.paper.defs.appendChild(qe),Q(R,{fill:"url(#"+qe.id+")"}),x.pattern=qe,x.pattern&&ke(x);break}var We=k.getRGB(L);if(We.error){if((x.type=="circle"||x.type=="ellipse"||B(L).charAt()!="r")&&ve(x,L)){if("opacity"in H||"fill-opacity"in H){var Xe=k._g.doc.getElementById(R.getAttribute("fill").replace(/^url\(#|\)$/g,U));if(Xe){var Ge=Xe.getElementsByTagName("stop");Q(Ge[Ge.length-1],{"stop-opacity":("opacity"in H?H.opacity:1)*("fill-opacity"in H?H["fill-opacity"]:1)})}}H.gradient=L,H.fill="none";break}}else delete E.gradient,delete H.gradient,!k.is(H.opacity,"undefined")&&k.is(E.opacity,"undefined")&&Q(R,{opacity:H.opacity}),!k.is(H["fill-opacity"],"undefined")&&k.is(E["fill-opacity"],"undefined")&&Q(R,{"fill-opacity":H["fill-opacity"]});We[A]("opacity")&&Q(R,{"fill-opacity":We.opacity>1?We.opacity/100:We.opacity});case"stroke":We=k.getRGB(L),R.setAttribute(Z,We.hex),Z=="stroke"&&We[A]("opacity")&&Q(R,{"stroke-opacity":We.opacity>1?We.opacity/100:We.opacity}),Z=="stroke"&&x._.arrows&&("startString"in x._.arrows&&T(x,x._.arrows.startString),"endString"in x._.arrows&&T(x,x._.arrows.endString,1));break;case"gradient":(x.type=="circle"||x.type=="ellipse"||B(L).charAt()!="r")&&ve(x,L);break;case"opacity":H.gradient&&!H[A]("stroke-opacity")&&Q(R,{"stroke-opacity":L>1?L/100:L});case"fill-opacity":if(H.gradient){(Xe=k._g.doc.getElementById(R.getAttribute("fill").replace(/^url\(#|\)$/g,U)))&&(Ge=Xe.getElementsByTagName("stop"),Q(Ge[Ge.length-1],{"stop-opacity":L}));break}default:Z=="font-size"&&(L=j(L,10)+"px");var nt=Z.replace(/(\-.)/g,function(Et){return Et.substring(1).toUpperCase()});R.style[nt]=L,x._.dirty=1,R.setAttribute(Z,L)}}e(x,E),R.style.visibility=Y},e=function(x,E){if(x.type=="text"&&(E[A]("text")||E[A]("font")||E[A]("font-size")||E[A]("x")||E[A]("y"))){var R=x.attrs,H=x.node,Y=H.firstChild?j(k._g.doc.defaultView.getComputedStyle(H.firstChild,U).getPropertyValue("font-size"),10):10;if(E[A]("text")){for(R.text=E.text;H.firstChild;)H.removeChild(H.firstChild);for(var Z,L=B(E.text).split(`
`),D=[],ee=0,oe=L.length;ee<oe;ee++)Z=Q("tspan"),ee&&Q(Z,{dy:1.2*Y,x:R.x}),Z.appendChild(k._g.doc.createTextNode(L[ee])),H.appendChild(Z),D[ee]=Z}else for(ee=0,oe=(D=H.getElementsByTagName("tspan")).length;ee<oe;ee++)ee?Q(D[ee],{dy:1.2*Y,x:R.x}):Q(D[0],{dy:0});Q(H,{x:R.x,y:R.y}),x._.dirty=1;var fe=x._getBBox(),ue=R.y-(fe.y+fe.height/2);ue&&k.is(ue,"finite")&&Q(D[0],{dy:ue})}},c=function(x){return x.parentNode&&x.parentNode.tagName.toLowerCase()==="a"?x.parentNode:x},y=function(x,E){this[0]=this.node=x,x.raphael=!0,this.id=("0000"+(Math.random()*Math.pow(36,5)<<0).toString(36)).slice(-5),x.raphaelid=this.id,this.matrix=k.matrix(),this.realPath=null,this.paper=E,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!E.bottom&&(E.bottom=this),this.prev=E.top,E.top&&(E.top.next=this),E.top=this,this.next=null},w=k.el;y.prototype=w,w.constructor=y,k._engine.path=function(x,E){var R=Q("path");E.canvas&&E.canvas.appendChild(R);var H=new y(R,E);return H.type="path",b(H,{fill:"none",stroke:"#000",path:x}),H},w.rotate=function(x,E,R){if(this.removed)return this;if((x=B(x).split(N)).length-1&&(E=M(x[1]),R=M(x[2])),x=M(x[0]),R==null&&(E=R),E==null||R==null){var H=this.getBBox(1);E=H.x+H.width/2,R=H.y+H.height/2}return this.transform(this._.transform.concat([["r",x,E,R]])),this},w.scale=function(x,E,R,H){if(this.removed)return this;if((x=B(x).split(N)).length-1&&(E=M(x[1]),R=M(x[2]),H=M(x[3])),x=M(x[0]),E==null&&(E=x),H==null&&(R=H),R==null||H==null)var Y=this.getBBox(1);return R=R??Y.x+Y.width/2,H=H??Y.y+Y.height/2,this.transform(this._.transform.concat([["s",x,E,R,H]])),this},w.translate=function(x,E){return this.removed?this:((x=B(x).split(N)).length-1&&(E=M(x[1])),x=M(x[0])||0,E=+E||0,this.transform(this._.transform.concat([["t",x,E]])),this)},w.transform=function(x){var E=this._;if(x==null)return E.transform;if(k._extractTransform(this,x),this.clip&&Q(this.clip,{transform:this.matrix.invert()}),this.pattern&&ke(this),this.node&&Q(this.node,{transform:this.matrix}),E.sx!=1||E.sy!=1){var R=this.attrs[A]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":R})}return this},w.hide=function(){return this.removed||(this.node.style.display="none"),this},w.show=function(){return this.removed||(this.node.style.display=""),this},w.remove=function(){var x=c(this.node);if(!this.removed&&x.parentNode){var E=this.paper;for(var R in E.__set__&&E.__set__.exclude(this),F.unbind("raphael.*.*."+this.id),this.gradient&&E.defs.removeChild(this.gradient),k._tear(this,E),x.parentNode.removeChild(x),this.removeData(),this)this[R]=typeof this[R]=="function"?k._removedFactory(R):null;this.removed=!0}},w._getBBox=function(){if(this.node.style.display=="none"){this.show();var x=!0}var E,R=!1;this.paper.canvas.parentElement?E=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(E=this.paper.canvas.parentNode.style),E&&E.display=="none"&&(R=!0,E.display="");var H={};try{H=this.node.getBBox()}catch{H={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{H=H||{},R&&(E.display="none")}return x&&this.hide(),H},w.attr=function(x,E){if(this.removed)return this;if(x==null){var R={};for(var H in this.attrs)this.attrs[A](H)&&(R[H]=this.attrs[H]);return R.gradient&&R.fill=="none"&&(R.fill=R.gradient)&&delete R.gradient,R.transform=this._.transform,R}if(E==null&&k.is(x,"string")){if(x=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(x=="transform")return this._.transform;for(var Y=x.split(N),Z={},L=0,D=Y.length;L<D;L++)(x=Y[L])in this.attrs?Z[x]=this.attrs[x]:k.is(this.paper.customAttributes[x],"function")?Z[x]=this.paper.customAttributes[x].def:Z[x]=k._availableAttrs[x];return D-1?Z:Z[Y[0]]}if(E==null&&k.is(x,"array")){for(Z={},L=0,D=x.length;L<D;L++)Z[x[L]]=this.attr(x[L]);return Z}if(E!=null){var ee={};ee[x]=E}else x!=null&&k.is(x,"object")&&(ee=x);for(var oe in ee)F("raphael.attr."+oe+"."+this.id,this,ee[oe]);for(oe in this.paper.customAttributes)if(this.paper.customAttributes[A](oe)&&ee[A](oe)&&k.is(this.paper.customAttributes[oe],"function")){var fe=this.paper.customAttributes[oe].apply(this,[].concat(ee[oe]));for(var ue in this.attrs[oe]=ee[oe],fe)fe[A](ue)&&(ee[ue]=fe[ue])}return b(this,ee),this},w.toFront=function(){if(this.removed)return this;var x=c(this.node);x.parentNode.appendChild(x);var E=this.paper;return E.top!=this&&k._tofront(this,E),this},w.toBack=function(){if(this.removed)return this;var x=c(this.node),E=x.parentNode;return E.insertBefore(x,E.firstChild),k._toback(this,this.paper),this.paper,this},w.insertAfter=function(x){if(this.removed||!x)return this;var E=c(this.node),R=c(x.node||x[x.length-1].node);return R.nextSibling?R.parentNode.insertBefore(E,R.nextSibling):R.parentNode.appendChild(E),k._insertafter(this,x,this.paper),this},w.insertBefore=function(x){if(this.removed||!x)return this;var E=c(this.node),R=c(x.node||x[0].node);return R.parentNode.insertBefore(E,R),k._insertbefore(this,x,this.paper),this},w.blur=function(x){var E=this;if(+x!=0){var R=Q("filter"),H=Q("feGaussianBlur");E.attrs.blur=x,R.id=k.createUUID(),Q(H,{stdDeviation:+x||1.5}),R.appendChild(H),E.paper.defs.appendChild(R),E._blur=R,Q(E.node,{filter:"url(#"+R.id+")"})}else E._blur&&(E._blur.parentNode.removeChild(E._blur),delete E._blur,delete E.attrs.blur),E.node.removeAttribute("filter");return E},k._engine.circle=function(x,E,R,H){var Y=Q("circle");x.canvas&&x.canvas.appendChild(Y);var Z=new y(Y,x);return Z.attrs={cx:E,cy:R,r:H,fill:"none",stroke:"#000"},Z.type="circle",Q(Y,Z.attrs),Z},k._engine.rect=function(x,E,R,H,Y,Z){var L=Q("rect");x.canvas&&x.canvas.appendChild(L);var D=new y(L,x);return D.attrs={x:E,y:R,width:H,height:Y,rx:Z||0,ry:Z||0,fill:"none",stroke:"#000"},D.type="rect",Q(L,D.attrs),D},k._engine.ellipse=function(x,E,R,H,Y){var Z=Q("ellipse");x.canvas&&x.canvas.appendChild(Z);var L=new y(Z,x);return L.attrs={cx:E,cy:R,rx:H,ry:Y,fill:"none",stroke:"#000"},L.type="ellipse",Q(Z,L.attrs),L},k._engine.image=function(x,E,R,H,Y,Z){var L=Q("image");Q(L,{x:R,y:H,width:Y,height:Z,preserveAspectRatio:"none"}),L.setAttributeNS(te,"href",E),x.canvas&&x.canvas.appendChild(L);var D=new y(L,x);return D.attrs={x:R,y:H,width:Y,height:Z,src:E},D.type="image",D},k._engine.text=function(x,E,R,H){var Y=Q("text");x.canvas&&x.canvas.appendChild(Y);var Z=new y(Y,x);return Z.attrs={x:E,y:R,"text-anchor":"middle",text:H,"font-family":k._availableAttrs["font-family"],"font-size":k._availableAttrs["font-size"],stroke:"none",fill:"#000"},Z.type="text",b(Z,Z.attrs),Z},k._engine.setSize=function(x,E){return this.width=x||this.width,this.height=E||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},k._engine.create=function(){var x=k._getContainer.apply(0,arguments),E=x&&x.container;if(!E)throw new Error("SVG container not found.");var R,H=x.x,Y=x.y,Z=x.width,L=x.height,D=Q("svg"),ee="overflow:hidden;";return H=H||0,Y=Y||0,Q(D,{height:L=L||342,version:1.1,width:Z=Z||512,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),E==1?(D.style.cssText=ee+"position:absolute;left:"+H+"px;top:"+Y+"px",k._g.doc.body.appendChild(D),R=1):(D.style.cssText=ee+"position:relative",E.firstChild?E.insertBefore(D,E.firstChild):E.appendChild(D)),(E=new k._Paper).width=Z,E.height=L,E.canvas=D,E.clear(),E._left=E._top=0,R&&(E.renderfix=function(){}),E.renderfix(),E},k._engine.setViewBox=function(x,E,R,H,Y){F("raphael.setViewBox",this,this._viewBox,[x,E,R,H,Y]);var Z,L,D=this.getSize(),ee=P(R/D.width,H/D.height),oe=this.top,fe=Y?"xMidYMid meet":"xMinYMin";for(x==null?(this._vbSize&&(ee=1),delete this._vbSize,Z="0 0 "+this.width+J+this.height):(this._vbSize=ee,Z=x+J+E+J+R+J+H),Q(this.canvas,{viewBox:Z,preserveAspectRatio:fe});ee&&oe;)L="stroke-width"in oe.attrs?oe.attrs["stroke-width"]:1,oe.attr({"stroke-width":L}),oe._.dirty=1,oe._.dirtyT=1,oe=oe.prev;return this._viewBox=[x,E,R,H,!!Y],this},k.prototype.renderfix=function(){var x,E=this.canvas,R=E.style;try{x=E.getScreenCTM()||E.createSVGMatrix()}catch{x=E.createSVGMatrix()}var H=-x.e%1,Y=-x.f%1;(H||Y)&&(H&&(this._left=(this._left+H)%1,R.left=this._left+"px"),Y&&(this._top=(this._top+Y)%1,R.top=this._top+"px"))},k.prototype.clear=function(){k.eve("raphael.clear",this);for(var x=this.canvas;x.firstChild;)x.removeChild(x.firstChild);this.bottom=this.top=null,(this.desc=Q("desc")).appendChild(k._g.doc.createTextNode("Created with Raphaël "+k.version)),x.appendChild(this.desc),x.appendChild(this.defs=Q("defs"))},k.prototype.remove=function(){for(var x in F("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this)this[x]=typeof this[x]=="function"?k._removedFactory(x):null};var v=k.st;for(var o in w)w[A](o)&&!v[A](o)&&(v[o]=function(x){return function(){var E=arguments;return this.forEach(function(R){R[x].apply(R,E)})}}(o))}}).apply(d,h))===void 0||(l.exports=S)},function(l,d,m){var h,S;h=[m(0)],(S=(function(k){if(!k||k.vml){var A="hasOwnProperty",B=String,M=parseFloat,j=Math,I=j.round,P=j.max,$=j.min,z=j.abs,N=/[, ]+/,F=k.eve,U=" ",J="",te={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},se=/([clmz]),?([^clmz]*)/gi,de=/ progid:\S+Blur\([^\)]+\)/g,Q=/-?[^,\s-]+/g,ve="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",he=21600,ke={path:1,rect:1,image:1},T={circle:1,ellipse:1},u=function(E,R,H){var Y=k.matrix();return Y.rotate(-E,.5,.5),{dx:Y.x(R,H),dy:Y.y(R,H)}},p=function(E,R,H,Y,Z,L){var D=E._,ee=E.matrix,oe=D.fillpos,fe=E.node,ue=fe.style,qe=1,rt="",Ve=he/R,et=he/H;if(ue.visibility="hidden",R&&H){if(fe.coordsize=z(Ve)+U+z(et),ue.rotation=L*(R*H<0?-1:1),L){var mt=u(L,Y,Z);Y=mt.dx,Z=mt.dy}if(R<0&&(rt+="x"),H<0&&(rt+=" y")&&(qe=-1),ue.flip=rt,fe.coordorigin=Y*-Ve+U+Z*-et,oe||D.fillsize){var Ye=fe.getElementsByTagName("fill");Ye=Ye&&Ye[0],fe.removeChild(Ye),oe&&(mt=u(L,ee.x(oe[0],oe[1]),ee.y(oe[0],oe[1])),Ye.position=mt.dx*qe+U+mt.dy*qe),D.fillsize&&(Ye.size=D.fillsize[0]*z(R)+U+D.fillsize[1]*z(H)),fe.appendChild(Ye)}ue.visibility="visible"}};k.toString=function(){return`Your browser doesn’t support SVG. Falling down to VML.
You are running Raphaël `+this.version};var b,e=function(E,R,H){for(var Y=B(R).toLowerCase().split("-"),Z=H?"end":"start",L=Y.length,D="classic",ee="medium",oe="medium";L--;)switch(Y[L]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":D=Y[L];break;case"wide":case"narrow":oe=Y[L];break;case"long":case"short":ee=Y[L]}var fe=E.node.getElementsByTagName("stroke")[0];fe[Z+"arrow"]=D,fe[Z+"arrowlength"]=ee,fe[Z+"arrowwidth"]=oe},c=function(E,R){E.attrs=E.attrs||{};var H=E.node,Y=E.attrs,Z=H.style,L=ke[E.type]&&(R.x!=Y.x||R.y!=Y.y||R.width!=Y.width||R.height!=Y.height||R.cx!=Y.cx||R.cy!=Y.cy||R.rx!=Y.rx||R.ry!=Y.ry||R.r!=Y.r),D=T[E.type]&&(Y.cx!=R.cx||Y.cy!=R.cy||Y.r!=R.r||Y.rx!=R.rx||Y.ry!=R.ry),ee=E;for(var oe in R)R[A](oe)&&(Y[oe]=R[oe]);if(L&&(Y.path=k._getPath[E.type](E),E._.dirty=1),R.href&&(H.href=R.href),R.title&&(H.title=R.title),R.target&&(H.target=R.target),R.cursor&&(Z.cursor=R.cursor),"blur"in R&&E.blur(R.blur),(R.path&&E.type=="path"||L)&&(H.path=function($e){var He=/[ahqstv]/gi,Fe=k._pathToAbsolute;if(B($e).match(He)&&(Fe=k._path2curve),He=/[clmz]/g,Fe==k._pathToAbsolute&&!B($e).match(He)){var Me=B($e).replace(se,function(tt,kt,Yt){var pt=[],It=kt.toLowerCase()=="m",Fr=te[kt];return Yt.replace(Q,function(Pt){It&&pt.length==2&&(Fr+=pt+te[kt=="m"?"l":"L"],pt=[]),pt.push(I(Pt*he))}),Fr+pt});return Me}var Rt,yt,le=Fe($e);Me=[];for(var wt=0,at=le.length;wt<at;wt++){Rt=le[wt],(yt=le[wt][0].toLowerCase())=="z"&&(yt="x");for(var Be=1,ot=Rt.length;Be<ot;Be++)yt+=I(Rt[Be]*he)+(Be!=ot-1?",":J);Me.push(yt)}return Me.join(U)}(~B(Y.path).toLowerCase().indexOf("r")?k._pathToAbsolute(Y.path):Y.path),E._.dirty=1,E.type=="image"&&(E._.fillpos=[Y.x,Y.y],E._.fillsize=[Y.width,Y.height],p(E,1,1,0,0,0))),"transform"in R&&E.transform(R.transform),D){var fe=+Y.cx,ue=+Y.cy,qe=+Y.rx||+Y.r||0,rt=+Y.ry||+Y.r||0;H.path=k.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",I((fe-qe)*he),I((ue-rt)*he),I((fe+qe)*he),I((ue+rt)*he),I(fe*he)),E._.dirty=1}if("clip-rect"in R){var Ve=B(R["clip-rect"]).split(N);if(Ve.length==4){Ve[2]=+Ve[2]+ +Ve[0],Ve[3]=+Ve[3]+ +Ve[1];var et=H.clipRect||k._g.doc.createElement("div"),mt=et.style;mt.clip=k.format("rect({1}px {2}px {3}px {0}px)",Ve),H.clipRect||(mt.position="absolute",mt.top=0,mt.left=0,mt.width=E.paper.width+"px",mt.height=E.paper.height+"px",H.parentNode.insertBefore(et,H),et.appendChild(H),H.clipRect=et)}R["clip-rect"]||H.clipRect&&(H.clipRect.style.clip="auto")}if(E.textpath){var Ye=E.textpath.style;R.font&&(Ye.font=R.font),R["font-family"]&&(Ye.fontFamily='"'+R["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,J)+'"'),R["font-size"]&&(Ye.fontSize=R["font-size"]),R["font-weight"]&&(Ye.fontWeight=R["font-weight"]),R["font-style"]&&(Ye.fontStyle=R["font-style"])}if("arrow-start"in R&&e(ee,R["arrow-start"]),"arrow-end"in R&&e(ee,R["arrow-end"],1),R.opacity!=null||R.fill!=null||R.src!=null||R.stroke!=null||R["stroke-width"]!=null||R["stroke-opacity"]!=null||R["fill-opacity"]!=null||R["stroke-dasharray"]!=null||R["stroke-miterlimit"]!=null||R["stroke-linejoin"]!=null||R["stroke-linecap"]!=null){var We=H.getElementsByTagName("fill");if(!(We=We&&We[0])&&(We=b("fill")),E.type=="image"&&R.src&&(We.src=R.src),R.fill&&(We.on=!0),We.on!=null&&R.fill!="none"&&R.fill!==null||(We.on=!1),We.on&&R.fill){var Xe=B(R.fill).match(k._ISURL);if(Xe){We.parentNode==H&&H.removeChild(We),We.rotate=!0,We.src=Xe[1],We.type="tile";var Ge=E.getBBox(1);We.position=Ge.x+U+Ge.y,E._.fillpos=[Ge.x,Ge.y],k._preload(Xe[1],function(){E._.fillsize=[this.offsetWidth,this.offsetHeight]})}else We.color=k.getRGB(R.fill).hex,We.src=J,We.type="solid",k.getRGB(R.fill).error&&(ee.type in{circle:1,ellipse:1}||B(R.fill).charAt()!="r")&&y(ee,R.fill,We)&&(Y.fill="none",Y.gradient=R.fill,We.rotate=!1)}if("fill-opacity"in R||"opacity"in R){var nt=((+Y["fill-opacity"]+1||2)-1)*((+Y.opacity+1||2)-1)*((+k.getRGB(R.fill).o+1||2)-1);nt=$(P(nt,0),1),We.opacity=nt,We.src&&(We.color="none")}H.appendChild(We);var Et=H.getElementsByTagName("stroke")&&H.getElementsByTagName("stroke")[0],Le=!1;!Et&&(Le=Et=b("stroke")),(R.stroke&&R.stroke!="none"||R["stroke-width"]||R["stroke-opacity"]!=null||R["stroke-dasharray"]||R["stroke-miterlimit"]||R["stroke-linejoin"]||R["stroke-linecap"])&&(Et.on=!0),(R.stroke=="none"||R.stroke===null||Et.on==null||R.stroke==0||R["stroke-width"]==0)&&(Et.on=!1);var Oe=k.getRGB(R.stroke);Et.on&&R.stroke&&(Et.color=Oe.hex),nt=((+Y["stroke-opacity"]+1||2)-1)*((+Y.opacity+1||2)-1)*((+Oe.o+1||2)-1);var $t=.75*(M(R["stroke-width"])||1);if(nt=$(P(nt,0),1),R["stroke-width"]==null&&($t=Y["stroke-width"]),R["stroke-width"]&&(Et.weight=$t),$t&&$t<1&&(nt*=$t)&&(Et.weight=1),Et.opacity=nt,R["stroke-linejoin"]&&(Et.joinstyle=R["stroke-linejoin"]||"miter"),Et.miterlimit=R["stroke-miterlimit"]||8,R["stroke-linecap"]&&(Et.endcap=R["stroke-linecap"]=="butt"?"flat":R["stroke-linecap"]=="square"?"square":"round"),"stroke-dasharray"in R){var dt={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};Et.dashstyle=dt[A](R["stroke-dasharray"])?dt[R["stroke-dasharray"]]:J}Le&&H.appendChild(Et)}if(ee.type=="text"){ee.paper.canvas.style.display=J;var gt=ee.paper.span,Lt=Y.font&&Y.font.match(/\d+(?:\.\d*)?(?=px)/);Z=gt.style,Y.font&&(Z.font=Y.font),Y["font-family"]&&(Z.fontFamily=Y["font-family"]),Y["font-weight"]&&(Z.fontWeight=Y["font-weight"]),Y["font-style"]&&(Z.fontStyle=Y["font-style"]),Lt=M(Y["font-size"]||Lt&&Lt[0])||10,Z.fontSize=100*Lt+"px",ee.textpath.string&&(gt.innerHTML=B(ee.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var xe=gt.getBoundingClientRect();ee.W=Y.w=(xe.right-xe.left)/100,ee.H=Y.h=(xe.bottom-xe.top)/100,ee.X=Y.x,ee.Y=Y.y+ee.H/2,("x"in R||"y"in R)&&(ee.path.v=k.format("m{0},{1}l{2},{1}",I(Y.x*he),I(Y.y*he),I(Y.x*he)+1));for(var X=["x","y","text","font","font-family","font-weight","font-style","font-size"],pe=0,je=X.length;pe<je;pe++)if(X[pe]in R){ee._.dirty=1;break}switch(Y["text-anchor"]){case"start":ee.textpath.style["v-text-align"]="left",ee.bbx=ee.W/2;break;case"end":ee.textpath.style["v-text-align"]="right",ee.bbx=-ee.W/2;break;default:ee.textpath.style["v-text-align"]="center",ee.bbx=0}ee.textpath.style["v-text-kern"]=!0}},y=function(E,R,H){E.attrs=E.attrs||{},E.attrs;var Y=Math.pow,Z="linear",L=".5 .5";if(E.attrs.gradient=R,R=(R=B(R).replace(k._radial_gradient,function(qe,rt,Ve){return Z="radial",rt&&Ve&&(rt=M(rt),Ve=M(Ve),Y(rt-.5,2)+Y(Ve-.5,2)>.25&&(Ve=j.sqrt(.25-Y(rt-.5,2))*(2*(Ve>.5)-1)+.5),L=rt+U+Ve),J})).split(/\s*\-\s*/),Z=="linear"){var D=R.shift();if(D=-M(D),isNaN(D))return null}var ee=k._parseDots(R);if(!ee)return null;if(E=E.shape||E.node,ee.length){E.removeChild(H),H.on=!0,H.method="none",H.color=ee[0].color,H.color2=ee[ee.length-1].color;for(var oe=[],fe=0,ue=ee.length;fe<ue;fe++)ee[fe].offset&&oe.push(ee[fe].offset+U+ee[fe].color);H.colors=oe.length?oe.join():"0% "+H.color,Z=="radial"?(H.type="gradientTitle",H.focus="100%",H.focussize="0 0",H.focusposition=L,H.angle=0):(H.type="gradient",H.angle=(270-D)%360),E.appendChild(H)}return 1},w=function(E,R){this[0]=this.node=E,E.raphael=!0,this.id=k._oid++,E.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=R,this.matrix=k.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!R.bottom&&(R.bottom=this),this.prev=R.top,R.top&&(R.top.next=this),R.top=this,this.next=null},v=k.el;w.prototype=v,v.constructor=w,v.transform=function(E){if(E==null)return this._.transform;var R,H=this.paper._viewBoxShift,Y=H?"s"+[H.scale,H.scale]+"-1-1t"+[H.dx,H.dy]:J;H&&(R=E=B(E).replace(/\.{3}|\u2026/g,this._.transform||J)),k._extractTransform(this,Y+E);var Z,L=this.matrix.clone(),D=this.skew,ee=this.node,oe=~B(this.attrs.fill).indexOf("-"),fe=!B(this.attrs.fill).indexOf("url(");if(L.translate(1,1),fe||oe||this.type=="image")if(D.matrix="1 0 0 1",D.offset="0 0",Z=L.split(),oe&&Z.noRotation||!Z.isSimple){ee.style.filter=L.toFilter();var ue=this.getBBox(),qe=this.getBBox(1),rt=ue.x-qe.x,Ve=ue.y-qe.y;ee.coordorigin=rt*-he+U+Ve*-he,p(this,1,1,rt,Ve,0)}else ee.style.filter=J,p(this,Z.scalex,Z.scaley,Z.dx,Z.dy,Z.rotate);else ee.style.filter=J,D.matrix=B(L),D.offset=L.offset();return R!==null&&(this._.transform=R,k._extractTransform(this,R)),this},v.rotate=function(E,R,H){if(this.removed)return this;if(E!=null){if((E=B(E).split(N)).length-1&&(R=M(E[1]),H=M(E[2])),E=M(E[0]),H==null&&(R=H),R==null||H==null){var Y=this.getBBox(1);R=Y.x+Y.width/2,H=Y.y+Y.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",E,R,H]])),this}},v.translate=function(E,R){return this.removed?this:((E=B(E).split(N)).length-1&&(R=M(E[1])),E=M(E[0])||0,R=+R||0,this._.bbox&&(this._.bbox.x+=E,this._.bbox.y+=R),this.transform(this._.transform.concat([["t",E,R]])),this)},v.scale=function(E,R,H,Y){if(this.removed)return this;if((E=B(E).split(N)).length-1&&(R=M(E[1]),H=M(E[2]),Y=M(E[3]),isNaN(H)&&(H=null),isNaN(Y)&&(Y=null)),E=M(E[0]),R==null&&(R=E),Y==null&&(H=Y),H==null||Y==null)var Z=this.getBBox(1);return H=H??Z.x+Z.width/2,Y=Y??Z.y+Z.height/2,this.transform(this._.transform.concat([["s",E,R,H,Y]])),this._.dirtyT=1,this},v.hide=function(){return!this.removed&&(this.node.style.display="none"),this},v.show=function(){return!this.removed&&(this.node.style.display=J),this},v.auxGetBBox=k.el.getBBox,v.getBBox=function(){var E=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var R={},H=1/this.paper._viewBoxShift.scale;return R.x=E.x-this.paper._viewBoxShift.dx,R.x*=H,R.y=E.y-this.paper._viewBoxShift.dy,R.y*=H,R.width=E.width*H,R.height=E.height*H,R.x2=R.x+R.width,R.y2=R.y+R.height,R}return E},v._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},v.remove=function(){if(!this.removed&&this.node.parentNode){for(var E in this.paper.__set__&&this.paper.__set__.exclude(this),k.eve.unbind("raphael.*.*."+this.id),k._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape),this)this[E]=typeof this[E]=="function"?k._removedFactory(E):null;this.removed=!0}},v.attr=function(E,R){if(this.removed)return this;if(E==null){var H={};for(var Y in this.attrs)this.attrs[A](Y)&&(H[Y]=this.attrs[Y]);return H.gradient&&H.fill=="none"&&(H.fill=H.gradient)&&delete H.gradient,H.transform=this._.transform,H}if(R==null&&k.is(E,"string")){if(E=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(var Z=E.split(N),L={},D=0,ee=Z.length;D<ee;D++)(E=Z[D])in this.attrs?L[E]=this.attrs[E]:k.is(this.paper.customAttributes[E],"function")?L[E]=this.paper.customAttributes[E].def:L[E]=k._availableAttrs[E];return ee-1?L:L[Z[0]]}if(this.attrs&&R==null&&k.is(E,"array")){for(L={},D=0,ee=E.length;D<ee;D++)L[E[D]]=this.attr(E[D]);return L}var oe;for(var fe in R!=null&&((oe={})[E]=R),R==null&&k.is(E,"object")&&(oe=E),oe)F("raphael.attr."+fe+"."+this.id,this,oe[fe]);if(oe){for(fe in this.paper.customAttributes)if(this.paper.customAttributes[A](fe)&&oe[A](fe)&&k.is(this.paper.customAttributes[fe],"function")){var ue=this.paper.customAttributes[fe].apply(this,[].concat(oe[fe]));for(var qe in this.attrs[fe]=oe[fe],ue)ue[A](qe)&&(oe[qe]=ue[qe])}oe.text&&this.type=="text"&&(this.textpath.string=oe.text),c(this,oe)}return this},v.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&k._tofront(this,this.paper),this},v.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),k._toback(this,this.paper)),this)},v.insertAfter=function(E){return this.removed?this:(E.constructor==k.st.constructor&&(E=E[E.length-1]),E.node.nextSibling?E.node.parentNode.insertBefore(this.node,E.node.nextSibling):E.node.parentNode.appendChild(this.node),k._insertafter(this,E,this.paper),this)},v.insertBefore=function(E){return this.removed?this:(E.constructor==k.st.constructor&&(E=E[0]),E.node.parentNode.insertBefore(this.node,E.node),k._insertbefore(this,E,this.paper),this)},v.blur=function(E){var R=this.node.runtimeStyle,H=R.filter;return H=H.replace(de,J),+E!=0?(this.attrs.blur=E,R.filter=H+U+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+E||1.5)+")",R.margin=k.format("-{0}px 0 0 -{0}px",I(+E||1.5))):(R.filter=H,R.margin=0,delete this.attrs.blur),this},k._engine.path=function(E,R){var H=b("shape");H.style.cssText=ve,H.coordsize=he+U+he,H.coordorigin=R.coordorigin;var Y=new w(H,R),Z={fill:"none",stroke:"#000"};E&&(Z.path=E),Y.type="path",Y.path=[],Y.Path=J,c(Y,Z),R.canvas&&R.canvas.appendChild(H);var L=b("skew");return L.on=!0,H.appendChild(L),Y.skew=L,Y.transform(J),Y},k._engine.rect=function(E,R,H,Y,Z,L){var D=k._rectPath(R,H,Y,Z,L),ee=E.path(D),oe=ee.attrs;return ee.X=oe.x=R,ee.Y=oe.y=H,ee.W=oe.width=Y,ee.H=oe.height=Z,oe.r=L,oe.path=D,ee.type="rect",ee},k._engine.ellipse=function(E,R,H,Y,Z){var L=E.path();return L.attrs,L.X=R-Y,L.Y=H-Z,L.W=2*Y,L.H=2*Z,L.type="ellipse",c(L,{cx:R,cy:H,rx:Y,ry:Z}),L},k._engine.circle=function(E,R,H,Y){var Z=E.path();return Z.attrs,Z.X=R-Y,Z.Y=H-Y,Z.W=Z.H=2*Y,Z.type="circle",c(Z,{cx:R,cy:H,r:Y}),Z},k._engine.image=function(E,R,H,Y,Z,L){var D=k._rectPath(H,Y,Z,L),ee=E.path(D).attr({stroke:"none"}),oe=ee.attrs,fe=ee.node,ue=fe.getElementsByTagName("fill")[0];return oe.src=R,ee.X=oe.x=H,ee.Y=oe.y=Y,ee.W=oe.width=Z,ee.H=oe.height=L,oe.path=D,ee.type="image",ue.parentNode==fe&&fe.removeChild(ue),ue.rotate=!0,ue.src=R,ue.type="tile",ee._.fillpos=[H,Y],ee._.fillsize=[Z,L],fe.appendChild(ue),p(ee,1,1,0,0,0),ee},k._engine.text=function(E,R,H,Y){var Z=b("shape"),L=b("path"),D=b("textpath");R=R||0,H=H||0,Y=Y||"",L.v=k.format("m{0},{1}l{2},{1}",I(R*he),I(H*he),I(R*he)+1),L.textpathok=!0,D.string=B(Y),D.on=!0,Z.style.cssText=ve,Z.coordsize=he+U+he,Z.coordorigin="0 0";var ee=new w(Z,E),oe={fill:"#000",stroke:"none",font:k._availableAttrs.font,text:Y};ee.shape=Z,ee.path=L,ee.textpath=D,ee.type="text",ee.attrs.text=B(Y),ee.attrs.x=R,ee.attrs.y=H,ee.attrs.w=1,ee.attrs.h=1,c(ee,oe),Z.appendChild(D),Z.appendChild(L),E.canvas.appendChild(Z);var fe=b("skew");return fe.on=!0,Z.appendChild(fe),ee.skew=fe,ee.transform(J),ee},k._engine.setSize=function(E,R){var H=this.canvas.style;return this.width=E,this.height=R,E==+E&&(E+="px"),R==+R&&(R+="px"),H.width=E,H.height=R,H.clip="rect(0 "+E+" "+R+" 0)",this._viewBox&&k._engine.setViewBox.apply(this,this._viewBox),this},k._engine.setViewBox=function(E,R,H,Y,Z){k.eve("raphael.setViewBox",this,this._viewBox,[E,R,H,Y,Z]);var L,D,ee=this.getSize(),oe=ee.width,fe=ee.height;return Z&&(H*(L=fe/Y)<oe&&(E-=(oe-H*L)/2/L),Y*(D=oe/H)<fe&&(R-=(fe-Y*D)/2/D)),this._viewBox=[E,R,H,Y,!!Z],this._viewBoxShift={dx:-E,dy:-R,scale:ee},this.forEach(function(ue){ue.transform("...")}),this},k._engine.initWin=function(E){var R=E.document;R.styleSheets.length<31?R.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):R.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!R.namespaces.rvml&&R.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),b=function(H){return R.createElement("<rvml:"+H+' class="rvml">')}}catch{b=function(Y){return R.createElement("<"+Y+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},k._engine.initWin(k._g.win),k._engine.create=function(){var E=k._getContainer.apply(0,arguments),R=E.container,H=E.height,Y=E.width,Z=E.x,L=E.y;if(!R)throw new Error("VML container not found.");var D=new k._Paper,ee=D.canvas=k._g.doc.createElement("div"),oe=ee.style;return Z=Z||0,L=L||0,Y=Y||512,H=H||342,D.width=Y,D.height=H,Y==+Y&&(Y+="px"),H==+H&&(H+="px"),D.coordsize=216e5+U+216e5,D.coordorigin="0 0",D.span=k._g.doc.createElement("span"),D.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",ee.appendChild(D.span),oe.cssText=k.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",Y,H),R==1?(k._g.doc.body.appendChild(ee),oe.left=Z+"px",oe.top=L+"px",oe.position="absolute"):R.firstChild?R.insertBefore(ee,R.firstChild):R.appendChild(ee),D.renderfix=function(){},D},k.prototype.clear=function(){k.eve("raphael.clear",this),this.canvas.innerHTML=J,this.span=k._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},k.prototype.remove=function(){for(var E in k.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[E]=typeof this[E]=="function"?k._removedFactory(E):null;return!0};var o=k.st;for(var x in v)v[A](x)&&!o[A](x)&&(o[x]=function(E){return function(){var R=arguments;return this.forEach(function(H){H[E].apply(H,R)})}}(x))}}).apply(d,h))===void 0||(l.exports=S)}])})})(raphael_min);var raphael_minExports=raphael_min.exports;const Raphael=getDefaultExportFromCjs$1(raphael_minExports),Arrow=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.current_pilot_widget=this.pilot_widget}draw(){this.height=this.arrow_height+this.base_height,this.$.addClass("Ldt-Arrow").css({height:1+this.height+"px","margin-top":"1px",overflow:"hidden"}),this.paper=new Raphael(this.container,this.width,1+this.height),window.myArrow=this,this.svgArrow=this.paper.path("M0,"+this.height+"L"+this.width+","+this.height),this.svgArrow.attr({stroke:this.stroke_color,"stroke-width":this.stroke_width,fill:this.fill_url?"url("+this.fill_url+")":this.fill_color}),this.moveToX(0)}drawAt(l){l=Math.max(0,Math.min(l,this.width));var d="M0,"+this.height+"L0,"+Math.min(this.height,this.arrow_height+this.base_curve)+"Q0,"+this.arrow_height+" "+Math.max(0,Math.min(this.base_curve,l-this.arrow_width/2))+","+this.arrow_height+"L"+Math.max(0,l-this.arrow_width/2)+","+this.arrow_height+"L"+Math.max(0,l-this.arrow_width/2)+","+Math.min(this.arrow_height,2*this.arrow_height*l/this.arrow_width)+"L"+l+",0L"+Math.min(this.width,l+this.arrow_width/2)+","+Math.min(this.arrow_height,2*this.arrow_height*(this.width-l)/this.arrow_width)+"L"+Math.min(this.width,l+this.arrow_width/2)+","+this.arrow_height+"L"+Math.min(this.width,Math.max(this.width-this.base_curve,l+this.arrow_width/2))+","+this.arrow_height+"Q"+this.width+","+this.arrow_height+" "+this.width+","+Math.min(this.height,this.arrow_height+this.base_curve)+"L"+this.width+","+this.height;this.svgArrow.attr({path:d})}moveToX(l){this.targetX=Math.max(0,Math.min(l,this.width)),typeof this.animInterval>"u"&&(this.animInterval=window.setInterval(this.functionWrapper("increment"),40)),this.increment()}moveToTime(l){this.moveToX(this.width*l/this.media.duration)}increment(){typeof this.currentX>"u"&&(this.currentX=this.targetX),this.currentX<this.targetX&&(this.currentX=Math.min(this.targetX,this.currentX+this.animation_speed)),this.currentX>this.targetX&&(this.currentX=Math.max(this.targetX,this.currentX-this.animation_speed)),this.currentX===this.targetX&&(window.clearInterval(this.animInterval),this.animInterval=void 0),this.drawAt(this.currentX)}},Cr(n,"defaults",{arrow_height:12,arrow_width:20,base_height:0,base_curve:0,fill_url:t.widgetsDir+"/img/pinstripe.png",fill_color:"#ffffff",stroke_color:"#b7b7b7",stroke_width:1.5,animation_speed:20}),n},controllerStyles={},Controller=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.lastSearchValue=""}draw(){var l=this;this.renderTemplate(),this.$playButton=this.$.find(".Ldt-Ctrl-Play"),this.$searchBlock=this.$.find(".Ldt-Ctrl-Search"),this.$searchInput=this.$.find(".Ldt-Ctrl-SearchInput"),this.$volumeBar=this.$.find(".Ldt-Ctrl-Volume-Bar"),this.onMediaEvent("play","playButtonUpdater"),this.onMediaEvent("pause","playButtonUpdater"),this.onMediaEvent("volumechange","volumeUpdater"),this.onMediaEvent("timeupdate","timeDisplayUpdater"),this.onMediaEvent("loadedmetadata","volumeUpdater"),this.$playButton.click(this.functionWrapper("playHandler")),this.enable_quiz_toggle!==void 0?this.enable_quiz_toggle?(this.$.find(".Ldt-Ctrl-Quiz-Enable").addClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.$.find(".Ldt-Ctrl-Quiz-Create").addClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.$.find("#QuizEditContainer").show()):(this.$.find(".Ldt-Ctrl-Quiz-Enable").removeClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.$.find(".Ldt-Ctrl-Quiz-Create").removeClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.player.trigger("QuizCreator.hide"),this.$.find("#QuizEditContainer").hide()):this.$.find(".Ldt-Ctrl-Quiz-Enable").hide(),this.$.find(".Ldt-Ctrl-Annotate").click(function(){l.player.trigger("CreateAnnotation.toggle")}),this.$.find(".Ldt-Ctrl-SearchBtn").click(this.functionWrapper("searchButtonHandler")),this.$searchInput.keyup(this.functionWrapper("searchHandler")),this.$searchInput.on("search",this.functionWrapper("searchHandler")),this.$.find(".Ldt-Ctrl-Fullscreen-Button").click(this.functionWrapper("toggleFullscreen"));var d=t.getFullscreenEventname();d&&document.addEventListener(d,function(){t.isFullscreen()&&t.getFullscreenElement()==l.$[0]?l.$.addClass("Ldt-Fullscreen-Element"):l.$.removeClass("Ldt-Fullscreen-Element")}),this.$.find(".Ldt-Ctrl-Quiz-Enable").click(this.functionWrapper("toggleQuiz")),this.$.find(".Ldt-Ctrl-Quiz-Create").click(this.functionWrapper("createQuiz"));var m=this.$.find(".Ldt-Ctrl-Volume-Control");if(this.$.find(".Ldt-Ctrl-Sound").click(this.functionWrapper("muteHandler")).mouseover(function(){m.show()}).mouseout(function(){m.hide()}),m.mouseover(function(){m.show()}).mouseout(function(){m.hide()}),!this.disable_ctrl_f){var h=70,S=0;jQuery(document).keydown(function(A){if(A.keyCode===h&&(A.ctrlKey||A.metaKey)){var B=jQuery.now();return B-S>2e3&&l.searchButtonHandler(),S=B,!1}})}this.$volumeBar.slider({slide:function(A,B){l.$volumeBar.attr("title",l.l10n.volume+": "+B.value+"%"),l.media.setVolume(B.value/100)},stop:this.functionWrapper("volumeUpdater")}),this.$.hover(function(){l.player.trigger("Player.MouseOver")},function(){l.player.trigger("Player.MouseOut")}),this.timeDisplayUpdater(new t.Model.Time(0));var k=this.source.getAnnotations();k.on("search",function(A){l.$searchInput.val(A),l.showSearchBlock()}),k.on("found",function(A){l.$searchInput.css("background-color","#e1ffe1")}),k.on("not-found",function(A){l.$searchInput.css("background-color","#d62e3a")}),k.on("search-cleared",function(){l.hideSearchBlock()}),l.always_show_search&&l.showSearchBlock()}timeDisplayUpdater(l){var d=this.media.duration;this.$.find(".Ldt-Ctrl-Time-Elapsed").html(l.toString()),this.$.find(".Ldt-Ctrl-Time-Total").html(d.toString())}playButtonUpdater(){this.media.getPaused()?this.$playButton.attr("title",this.l10n.play).removeClass("Ldt-Ctrl-Play-PauseState").addClass("Ldt-Ctrl-Play-PlayState"):this.$playButton.attr("title",this.l10n.pause).removeClass("Ldt-Ctrl-Play-PlayState").addClass("Ldt-Ctrl-Play-PauseState")}toggleFullscreen(){t.isFullscreen()?t.setFullScreen(this.$[0],!1):t.setFullScreen(this.$[0],!0)}createQuiz(){this.player.trigger("Quiz.hide"),this.media.pause(),this.player.trigger("QuizCreator.create")}toggleQuiz(){this.enable_quiz_toggle=!this.enable_quiz_toggle,this.enable_quiz_toggle?(jQuery(".Ldt-Ctrl-Quiz-Enable").addClass("Ldt-Ctrl-Quiz-Toggle-Active"),jQuery(".Ldt-Ctrl-Quiz-Create").addClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.player.trigger("Quiz.activate")):(jQuery(".Ldt-Ctrl-Quiz-Enable").removeClass("Ldt-Ctrl-Quiz-Toggle-Active"),jQuery(".Ldt-Ctrl-Quiz-Create").removeClass("Ldt-Ctrl-Quiz-Toggle-Active"),this.player.trigger("Quiz.deactivate"),this.player.trigger("QuizCreator.hide"))}playHandler(){this.media.getPaused()?this.media.play():this.media.pause()}muteHandler(){this.media.setMuted(!this.media.getMuted())}volumeUpdater(){var l=this.media.getMuted(),d=this.media.getVolume();d===!1&&(d=.5);var m=this.$.find(".Ldt-Ctrl-Sound");m.removeClass("Ldt-Ctrl-Sound-Mute Ldt-Ctrl-Sound-Half Ldt-Ctrl-Sound-Full"),l?m.attr("title",this.l10n.unmute).addClass("Ldt-Ctrl-Sound-Mute"):m.attr("title",this.l10n.mute).addClass(d<.5?"Ldt-Ctrl-Sound-Half":"Ldt-Ctrl-Sound-Full"),this.$volumeBar.slider("value",l?0:100*d)}showSearchBlock(){this.$searchBlock.animate({width:"160px"},200),this.$searchInput.css("background-color","#fff"),this.$searchInput.focus()}hideSearchBlock(){this.always_show_search||this.$searchBlock.animate({width:0},200)}searchButtonHandler(){if(this.$searchBlock.width())this.hideSearchBlock();else{this.showSearchBlock();var l=this.$searchInput.val();l&&this.source.getAnnotations().search(l)}}searchHandler(){this.$searchBlock.width()||(this.$searchBlock.css({width:"160px"}),this.$searchInput.css("background-color","#fff"));var l=this.$searchInput.val();this._positiveMatch=!1,l!==this.lastSearchValue&&(l?this.source.getAnnotations().search(l):(this.source.getAnnotations().trigger("clear-search"),this.$searchInput.css("background-color",""))),this.lastSearchValue=l}},Cr(n,"defaults",{disable_annotate_btn:!1,disable_search_btn:!1,disable_ctrl_f:!1,disable_fullscreen:!0,always_show_search:!1,enable_quiz_toggle:void 0}),Cr(n,"template",'<div class="Ldt-Ctrl"><div class="Ldt-Ctrl-Left"><div class="Ldt-Ctrl-button Ldt-Ctrl-Play Ldt-Ctrl-Play-PlayState Ldt-TraceMe" title="{{l10n.play_pause}}"></div><div class="Ldt-Ctrl-spacer"></div>{{^disable_annotate_btn}}<div class="Ldt-Ctrl-button Ldt-Ctrl-Annotate Ldt-TraceMe" title="{{l10n.annotate}}"></div><div class="Ldt-Ctrl-spacer"></div>{{/disable_annotate_btn}}{{^disable_search_btn}}<div class="Ldt-Ctrl-button Ldt-Ctrl-SearchBtn Ldt-TraceMe" title="{{l10n.search}}"></div>{{/disable_search_btn}}<div class="Ldt-Ctrl-Search"><input placeholder="{{ l10n.search }}" type="search" class="Ldt-Ctrl-SearchInput Ldt-TraceMe"></input></div><div class="Ldt-Ctrl-Quiz-Enable Ldt-TraceMe" title="Activer/Désactiver le quiz"></div><div class="Ldt-Ctrl-Quiz-Create Ldt-TraceMe" ></div></div><div class="Ldt-Ctrl-Right">{{^disable_fullscreen}}<div class="Ldt-Ctrl-Fullscreen-Button Ldt-TraceMe" title="Passer le lecteur en plein-écran"></div{{/disable_fullscreen}}<div class="Ldt-Ctrl-spacer"></div><div class="Ldt-Ctrl-Time"><div class="Ldt-Ctrl-Time-Elapsed" title="{{l10n.elapsed_time}}">00:00</div><div class="Ldt-Ctrl-Time-Separator">/</div><div class="Ldt-Ctrl-Time-Total" title="{{l10n.total_time}}">00:00</div></div><div class="Ldt-Ctrl-spacer"></div><div class="Ldt-Ctrl-button Ldt-Ctrl-Sound Ldt-Ctrl-Sound-Full Ldt-TraceMe" title="{{l10n.mute_unmute}}"></div></div><div class="Ldt-Ctrl-Volume-Control" title="{{l10n.volume_control}}"><div class="Ldt-Ctrl-Volume-Bar"></div></div></div>'),Cr(n,"messages",{en:{play_pause:"Play/Pause",mute_unmute:"Mute/Unmute",play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",annotate:"Annotate",search:"Search",elapsed_time:"Elapsed time",total_time:"Total duration",volume:"Volume",volume_control:"Volume control",enable_quiz:"Enable quiz"},fr:{play_pause:"Lecture/Pause",mute_unmute:"Couper/Activer le son",play:"Lecture",pause:"Pause",mute:"Couper le son",unmute:"Activer le son",annotate:"Annoter",search:"Rechercher",elapsed_time:"Temps écoulé",total_time:"Durée totale",volume:"Niveau sonore",volume_control:"Réglage du niveau sonore",enable_quiz:"Activer le quiz"}}),n},createAnnotationStyles={},CreateAnnotation=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.editable_storage!=""&&window.localStorage[this.editable_storage]&&this.source.onLoad(function(){var m=this.player.sourceManager.newLocalSource({serializer:t.serializers.ldt_localstorage});m.deSerialize(window.localStorage[this.editable_storage]),_this.source.merge(m)})}draw(){var l=this;this.begin=new t.Model.Time,this.end=this.source.getDuration(),this.tag_prefix=this.tag_prefix||"",this.tag_titles&&!this.tags&&(this.tag_titles.length==1&&this.tag_titles[0]==""?this.tags=!0:this.tags=_$1(this.tag_titles).map(function(d){var m,h=l.source.getTags().searchByTitle(d,!0);return h.length?m=h[0]:(m=new t.Model.Tag(!1,l.source),l.source.getTags().push(m),m.title=d),m}).value()),this.tags||(this.tags=this.source.getTags().sortBy(function(d){return-d.getAnnotations().length}).slice(0,this.max_tags).map(function(d){return d})),this.renderTemplate(),this.show_slice?this.insertSubwidget(this.$.find(".Ldt-CreateAnnotation-Slice"),{type:"Slice",show_arrow:this.show_arrow,annotation_type:this.slice_annotation_type,onBoundsChanged:function(d,m){l.setBeginEnd(d,m)}},"slice"):(this.show_arrow&&this.insertSubwidget(this.$.find(".Ldt-CreateAnnotation-Arrow"),{type:"Arrow"},"arrow"),this.onMediaEvent("timeupdate",function(d){l.$.find(".Ldt-CreateAnnotation-Description").val().trim()==""&&(l.setBeginEnd(d,d),l.arrow&&l.arrow.moveToTime(d))})),this.$.find(".Ldt-CreateAnnotation-Cancel").click(function(){l.player.trigger("CreateAnnotation.hide")}),this.$.find(".Ldt-CreateAnnotation-Close").click(function(){return l.close_after_send?l.player.trigger("CreateAnnotation.hide"):l.showScreen("Main"),!1}),this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").click(function(){return l.addKeyword(jQuery(this).attr("data-text")),!1}),this.$.find(".Ldt-CreateAnnotation-PolemicLi").each(function(){var d=jQuery(this),m=d.attr("data-text"),h=l.l10n["polemic"+m];h&&d.attr("title",h)}),this.$.find(".Ldt-CreateAnnotation-Description").bind("change keyup input paste",this.functionWrapper("onDescriptionChange")),this.show_title_field&&this.$.find(".Ldt-CreateAnnotation-Title").bind("change keyup input paste",this.functionWrapper("onTitleChange")),this.show_creator_field&&this.$.find(".Ldt-CreateAnnotation-Creator").bind("change keyup input paste",this.functionWrapper("onCreatorChange")),this.$.find("[class^='Ldt-CreateAnnotation-Control-']").click(function(){var d=this.className.replace("Ldt-CreateAnnotation-Control-","");switch(d){case"In":this.setBegin(l.media.getCurrentTime());break;case"Out":this.setEnd(l.media.getCurrentTime()||l.media.duration);break;case"Play":this.media.setCurrentTime(l.begin),this.media.play();break}return!1}),this.start_visible?this.show():(this.$.hide(),this.hide()),this.onMdpEvent("CreateAnnotation.toggle","toggle"),this.onMdpEvent("CreateAnnotation.hide","hide"),this.onMdpEvent("CreateAnnotation.show","show"),this.$.find("form").submit(this.functionWrapper("onSubmit"))}setBegin(l){this.begin=new t.Model.Time(l||0),this.$.find(".Ldt-CreateAnnotation-Begin").html(this.begin.toString())}setEnd(l){this.end=new t.Model.Time(l||0),this.$.find(".Ldt-CreateAnnotation-End").html(this.end.toString())}setBeginEnd(l,d){this.setBegin(l),this.setEnd(d)}showScreen(l){this.$.find(".Ldt-CreateAnnotation-"+l).show().siblings().hide()}show(){this.visible||(this.visible=!0,this.pause_when_displaying&&this.media.pause(),this.showScreen("Main"),this.$.find(".Ldt-CreateAnnotation-Description").val("").css("border-color","#666666").addClass("empty"),this.show_title_field&&this.$.find(".Ldt-CreateAnnotation-Title").val("").css("border-color","#666666").addClass("empty"),this.show_creator_field&&(this.$.find(".Ldt-CreateAnnotation-Creator").val(this.creator_name).css("border-color","#666666"),this.creator_name||this.$.find(".Ldt-CreateAnnotation-Creator").addClass("empty")),this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").removeClass("selected"),this.$.slideDown(),this.minimize_annotation_widget&&this.player.trigger("Annotation.minimize"))}hide(){this.visible&&(this.always_visible||(this.visible=!1,this.$.slideUp(),this.minimize_annotation_widget&&this.player.trigger("Annotation.maximize")))}toggle(){if(!this.always_visible)if(this.visible)this.hide();else{var l=this.media.getCurrentTime()||0;this.setBeginEnd(l,l),this.slice_widget&&this.slice_widget.setBounds(this.begin,this.end),this.show(),this.$.find(".Ldt-CreateAnnotation-Description").focus()}}addKeyword(l){var d=this.$.find(".Ldt-CreateAnnotation-Description"),m=t.Model.regexpFromTextOrArray(l),h=d.val();h=h.match(m)?h.replace(m,""):h+" "+l,d.val(h.replace(/\s{2,}/g," ").replace(/(^\s+|\s+$)/g,"")),this.onDescriptionChange()}pauseOnWrite(){this.pause_on_write&&!this.media.getPaused()&&this.media.pause()}onDescriptionChange(l){if(l!==void 0&&l.keyCode==13&&!l.shiftKey)return this.onSubmit(),!0;var d=this.$.find(".Ldt-CreateAnnotation-Description"),m=d.val();return d.css("border-color",m?"#666666":"#ff0000"),m?d.removeClass("empty"):d.addClass("empty"),this.$.find(".Ldt-CreateAnnotation-TagLi, .Ldt-CreateAnnotation-PolemicLi").each(function(){var h=t.Model.regexpFromTextOrArray(jQuery(this).attr("data-text"));m.match(h)?jQuery(this).addClass("selected"):jQuery(this).removeClass("selected")}),this.pauseOnWrite(),!!m}onTitleChange(){var l=this.$.find(".Ldt-CreateAnnotation-Title"),d=l.val();return l.css("border-color",d?"#666666":"#ff0000"),d?l.removeClass("empty"):l.addClass("empty"),this.pauseOnWrite(),!!d}onCreatorChange(){var l=this.$.find(".Ldt-CreateAnnotation-Creator"),d=l.val();return l.css("border-color",d?"#666666":"#ff0000"),d?l.removeClass("empty"):l.addClass("empty"),this.pauseOnWrite(),!!d}onSubmit(){if(!this.onDescriptionChange()||this.show_title_field&&!this.onTitleChange()||this.show_creator_field&&!this.onCreatorChange())return!1;var l=this,d=new t.Model.List(this.player.sourceManager),m=this.player.sourceManager.newLocalSource({serializer:t.serializers[this.api_serializer]}),h=this.player.sourceManager.newLocalSource({serializer:t.serializers.ldt_localstorage}),S=new t.Model.Annotation(!1,m),k=this.source.getAnnotationTypes().searchByTitle(this.annotation_type,!0),A=k.length?k[0]:new t.Model.AnnotationType(!1,m),B=mustache.render(this.api_endpoint_template,{id:this.source.projectId});if(k.length||(A.dont_send_id=!0,A.title=this.annotation_type),S.setMedia(this.source.currentMedia.id),this.post_at_segment_time){var M=this.media.getCurrentTime(),j=this.source.getAnnotationsByTypeTitle(this.segments_annotation_type),I=j.filter(function($){return M>=$.begin&&M<=$.end});I.length==0?(S.setBegin(this.begin),S.setEnd(this.end)):(S.setBegin(I[0].begin),S.setEnd(I[0].end))}else S.setBeginEnd(this.begin,this.end);S.setAnnotationType(A.id),this.show_title_field&&(S.title=this.$.find(".Ldt-CreateAnnotation-Title").val()),this.project_id!=""&&(S.project_id=this.project_id),S.created=new Date,S.description=this.$.find(".Ldt-CreateAnnotation-Description").val();var P=Array.prototype.map.call(this.$.find(".Ldt-CreateAnnotation-TagLi.selected"),function($){return jQuery($).attr("tag-id")});if(_$1(S.description.match(/#[^\s#.,;]+/g)).each(function($){var z,N=$.replace(/^#/,""),F=l.source.getTags().searchByTitle(N,!0);F.length?z=F[0]:(z=new t.Model.Tag(!1,l.source),l.source.getTags().push(z),z.title=N),P.indexOf(z.id)===-1&&P.push(z.id)}),S.setTags(_$1(P).uniq()),this.audio_url&&(S.audio={src:"mic",mimetype:"audio/mp3",href:this.audio_url}),this.show_creator_field?S.creator=this.$.find(".Ldt-CreateAnnotation-Creator").val():S.creator=this.creator_name,d.push(S),this.editable_storage!=""&&(h.addList("annotation",d),l.source.merge(h),window.localStorage[this.editable_storage]&&h.deSerialize(window.localStorage[this.editable_storage]),window.localStorage[l.editable_storage]=h.serialize(),l.player.trigger("AnnotationsList.refresh"),l.player.trigger("Annotation.create",S),l.$.find(".Ldt-CreateAnnotation-Description").val("")),B!==""){d.push(S),m.addList("annotation",d);var l=this;jQuery.ajax({url:B,type:this.api_method,contentType:"application/json",data:m.serialize(),success:function(z){l.showScreen("Saved"),l.after_send_timeout&&window.setTimeout(function(){l.close_after_send?l.player.trigger("CreateAnnotation.hide"):l.player.trigger("CreateAnnotation.show")},l.after_send_timeout),m.getAnnotations().removeElement(S,!0),m.deSerialize(z),l.source.merge(m),l.pause_on_write&&l.media.getPaused()&&l.media.play(),l.player.trigger("AnnotationsList.refresh")},error:function(z,N,F){t.log("Error when sending annotation",F),m.getAnnotations().removeElement(S,!0),l.showScreen("Error"),window.setTimeout(function(){l.showScreen("Main")},l.after_send_timeout||5e3)}}),this.showScreen("Wait")}return!1}},Cr(n,"defaults",{show_title_field:!0,show_creator_field:!0,creator_field_readonly:!1,start_visible:!0,always_visible:!1,show_slice:!0,show_arrow:!0,show_time:!0,minimize_annotation_widget:!0,creator_name:"",creator_avatar:"",tags:!1,tag_titles:!1,pause_on_write:!0,max_tags:8,polemics:[{keyword:"++",background_color:"#00a000",text_color:"#ffffff"},{keyword:"--",background_color:"#c00000",text_color:"#ffffff"},{keyword:"??",background_color:"#0000e0",text_color:"#ffffff"},{keyword:"==",background_color:"#f0e000",text_color:"#000000"}],slice_annotation_type:"chap",annotation_type:"Contributions",post_at_segment_time:!1,segment_annotation_type:"chap",api_serializer:"ldt_annotate",api_endpoint_template:"",api_method:"POST",editable_storage:"",project_id:"",after_send_timeout:0,close_after_send:!1,tag_prefix:"#",pause_when_displaying:!1,custom_send_button:!1,custom_cancel_button:!1,custom_description_placeholder:!1,preview_mode:!1}),Cr(n,"messages",{en:{from_time:"from",to_time:"to",at_time:"at",submit:"Submit",preview_submit:"You cannot submit annotations in preview mode",cancel:"Cancel",add_keywords_:"Add keywords:",add_polemic_keywords_:"Add polemic attributes :",your_name_:"Your name:",annotate_video:"New note",type_title:"Annotation title",type_description:"Enter a new note...",wait_while_processing:"Please wait while your annotation is being processed...",error_while_contacting:"An error happened while contacting the server. Your annotation has not been saved.",annotation_saved:"Thank you, your annotation has been saved.",share_annotation:"Would you like to share it on social networks ?",close_widget:"Hide the annotation form","polemic++":"Agree","polemic--":"Disagree","polemic??":"Question","polemic==":"Reference",in_tooltip:"Set begin time to current player time",out_tooltip:"Set begin time to current player time",play_tooltip:"Play the fragment"},fr:{from_time:"de",to_time:"à",at_time:"à",submit:"Envoyer",preview_submit:"Vous ne pouvez pas envoyer d'annotation en mode aperçu",cancel:"Annuler",add_keywords_:"Ajouter des mots-clés :",add_polemic_keywords_:"Ajouter des attributs polémiques :",your_name_:"Votre nom :",annotate_video:"Entrez une nouvelle note...",type_title:"Titre de l'annotation",type_description:"Prenez vos notes...",wait_while_processing:"Veuillez patienter pendant le traitement de votre annotation...",error_while_contacting:"Une erreur s'est produite en contactant le serveur. Votre annotation n'a pas été enregistrée.",annotation_saved:"Merci, votre annotation a été enregistrée.",share_annotation:"Souhaitez-vous la partager sur les réseaux sociaux ?",close_widget:"Cacher le formulaire de création d'annotations","polemic++":"Accord","polemic--":"Désaccord","polemic??":"Question","polemic==":"Référence",in_tooltip:"Utiliser le temps courant comme début",out_tooltip:"Utiliser le temps courant comme fin",play_tooltip:"Jouer le fragment"}}),Cr(n,"template",'{{#show_slice}}<div class="Ldt-CreateAnnotation-Slice Ldt-TraceMe"></div>{{/show_slice}}{{^show_slice}}{{#show_arrow}}<div class="Ldt-CreateAnnotation-Arrow"></div>{{/show_arrow}}{{/show_slice}}<div class="Ldt-CreateAnnotation"><div class="Ldt-CreateAnnotation-Inner"><form class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Main"><h3><span class="Ldt-CreateAnnotation-h3Left">{{l10n.annotate_video}}{{#show_title_field}}</span></h3><h3><span class="Ldt-CreateAnnotation-h3Left"><input class="Ldt-CreateAnnotation-Title empty" placeholder="{{l10n.type_title}}" />{{/show_title_field}}{{#show_time}}<span class="Ldt-CreateAnnotation-Times"> {{#show_slice}}{{l10n.from_time}} {{/show_slice}}{{^show_slice}}{{l10n.at_time}} {{/show_slice}} <span class="Ldt-CreateAnnotation-Begin">00:00</span>{{/show_time}}{{#show_slice}} {{l10n.to_time}} <span class="Ldt-CreateAnnotation-End">{{end}}</span>{{/show_slice}}</span></span>{{#show_creator_field}}{{l10n.your_name_}} <input class="Ldt-CreateAnnotation-Creator empty" value="{{creator_name}}" {{#creator_field_readonly}}readonly{{/creator_field_readonly}}/>{{/show_creator_field}}</h3>{{#show_controls}}<div class="Ldt-CreateAnnotation-Controls"><span title="{{l10n.in_tooltip}}" class="Ldt-CreateAnnotation-Control-In">In</span><span title="{{l10n.out_tooltip}}" class="Ldt-CreateAnnotation-Control-Out">Out</span><span title="{{l10n.play_tooltip}}" class="Ldt-CreateAnnotation-Control-Play">Play</span></div>{{/show_controls}}<textarea class="Ldt-CreateAnnotation-Description Ldt-TraceMe empty" placeholder="{{#custom_description_placeholder}}{{custom_description_placeholder}}{{/custom_description_placeholder}}{{^custom_description_placeholder}}{{l10n.type_description}}{{/custom_description_placeholder}}"></textarea>{{#show_creator_field}}<div class="Ldt-CreateAnnotation-Avatar"><img src="{{creator_avatar}}" title="{{creator_name}}"></img></div>{{/show_creator_field}}<div class="Ldt-CreateAnnotation-SubmitArea Ldt-TraceMe">{{#preview_mode}}<input type="button" class="Ldt-CreateAnnotation-PreviewSubmit" title="{{l10n.preview_submit}}" value="{{#custom_send_button}}{{custom_send_button}}{{/custom_send_button}}{{^custom_send_button}}{{l10n.submit}}{{/custom_send_button}}" />{{/preview_mode}}{{^preview_mode}}<input type="submit" class="Ldt-CreateAnnotation-Submit" value="{{#custom_send_button}}{{custom_send_button}}{{/custom_send_button}}{{^custom_send_button}}{{l10n.submit}}{{/custom_send_button}}" />{{/preview_mode}}<input type="button" class="Ldt-CreateAnnotation-Cancel" value="{{#custom_cancel_button}}{{custom_cancel_button}}{{/custom_cancel_button}}{{^custom_cancel_button}}{{l10n.cancel}}{{/custom_cancel_button}}" /><div class="Ldt-CreateAnnotation-Begin Ldt-CreateAnnotation-Times">00:00</div></div>{{#tags.length}}<div class="Ldt-CreateAnnotation-Tags"><div class="Ldt-CreateAnnotation-TagTitle">{{l10n.add_keywords_}}</div><ul class="Ldt-CreateAnnotation-TagList">{{#tags}}<li class="Ldt-CreateAnnotation-TagLi" tag-id="{{id}}" data-text="{{tag_prefix}}{{title}}"><span class="Ldt-CreateAnnotation-TagButton">{{title}}</span></li>{{/tags}}</ul></div>{{/tags.length}}{{#polemics.length}}<div class="Ldt-CreateAnnotation-Polemics"><div class="Ldt-CreateAnnotation-PolemicTitle">{{l10n.add_polemic_keywords_}}</div><ul class="Ldt-CreateAnnotation-PolemicList">{{#polemics}}<li class="Ldt-CreateAnnotation-PolemicLi" style="background-color: {{background_color}}; color: {{text_color}}" data-text="{{keyword}}">{{keyword}}</li>{{/polemics}}</ul></div>{{/polemics.length}}<div style="clear: both;"></div></form><div class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Wait"><div class="Ldt-CreateAnnotation-InnerBox">{{l10n.wait_while_processing}}</div></div><div class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Error">{{^always_visible}}<a title="{{l10n.close_widget}}" class="Ldt-CreateAnnotation-Close" href="#"></a>{{/always_visible}}<div class="Ldt-CreateAnnotation-InnerBox">{{l10n.error_while_contacting}}</div></div><div class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Saved">{{^always_visible}}<a title="{{l10n.close_widget}}" class="Ldt-CreateAnnotation-Close" href="#"></a>{{/always_visible}}<div class="Ldt-CreateAnnotation-InnerBox">{{l10n.annotation_saved}}</div></div></div></div>'),n},currentSegmentInfoboxStyles={},CurrentSegmentInfobox=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){var l=this;this.segments=this.getWidgetAnnotations(),this.renderTemplate(),this.currentSegment=!1,this.clearBox(),this.refresh(),this.onMediaEvent("timeupdate","refresh"),this.onMediaEvent("settimerange",function(d){var m=d[0],h=d[1],S=l.segments.filter(function(k){return k.begin.milliseconds==m.milliseconds&&k.end.milliseconds==h.milliseconds});S.length>0&&(l.$.toggleClass("editing",!1),l.currentSegment.id!=S[0].id&&(l.currentSegment=S[0],_data={editable_segments:l.editable_segments,edit:l.custom_edit_text?l.custom_edit_text:l.l10n.edit,title:l.currentSegment.title,description:l.currentSegment.description,description_placeholder:l.empty_description_placeholder,tags:l.currentSegment.getTagTexts()},l.$.html(mustache.render(l.template,_data)),l.editable_segments&&l.currentSegment&&l.$.find(".Ldt-CurrentSegmentInfobox").click(l.functionWrapper("enableEditMode"))))}),this.editable_segments&&this.currentSegment&&this.$.find(".Ldt-CurrentSegmentInfobox").click(l.functionWrapper("enableEditMode"))}enableEditMode(){this.currentSegment&&(_data={title:this.currentSegment.title,description:this.currentSegment.description,tags:this.currentSegment.getTagTexts(),submit:this.l10n.submit,cancel:this.l10n.cancel,headers:this.show_headers,tags_header:this.custom_tags_header?this.custom_tags_header:this.l10n.tags_header,fields_header:this.custom_fields_header?this.custom_fields_header:this.l10n.fields_header,new_tag:this.l10n.new_tag,delete_tag:this.l10n.delete_tag,new_tag_button:this.new_tag_button},this.$.toggleClass("editing",!0),this.$.html(mustache.render(this.editTemplate,_data)),this.$.find(".Ldt-CurrentSegmentInfobox-CancelButton").click(this.functionWrapper("disableEditMode")),this.new_tag_button?this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagButton").click(this.functionWrapper("insertTagInput")):(this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagInput").keypress(this.functionWrapper("insertTagInputKeypress")),this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagInput-Add").click(this.functionWrapper("insertTagInputKeypress"))),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton").click(this.functionWrapper("deleteTagInput")),this.$.find(".Ldt-CurrentSegmentInfobox-SubmitButton").click(this.functionWrapper("onSubmit")))}disableEditMode(){this.currentSegment&&(_data={editable_segments:this.editable_segments,edit:this.custom_edit_text?this.custom_edit_text:this.l10n.edit,title:this.currentSegment.title,description:this.currentSegment.description,description_placeholder:this.empty_description_placeholder,tags:this.currentSegment.getTagTexts()},this.$.toggleClass("editing",!1),this.$.html(mustache.render(this.template,_data)),this.$.find(".Ldt-CurrentSegmentInfobox").click(this.functionWrapper("enableEditMode")))}insertTagInput(){!this.currentSegment.getTagTexts().length&&!this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Ul").length&&this.$.find(".Ldt-CurrentSegmentInfobox-Tags").prepend('<ul class="Ldt-CurrentSegmentInfobox-Tags-Ul"></ul>'),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Ul").append('<li class="Ldt-CurrentSegmentInfobox-Tags-Li"><input type="text" class="Ldt-CurrentSegmentInfobox-Tags-Li-Input" value=""></input><div class="Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton">'+this.l10n.delete_tag+"</div></li>"),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton").click(this.functionWrapper("deleteTagInput"))}insertTagInputKeypress(l){var d=l.keyCode?l.keyCode:l.which;if(d=="13"||l.type=="click")return!this.currentSegment.getTagTexts().length&&!this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Ul").length&&this.$.find(".Ldt-CurrentSegmentInfobox-Tags").prepend('<ul class="Ldt-CurrentSegmentInfobox-Tags-Ul"></ul>'),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Ul").append('<li class="Ldt-CurrentSegmentInfobox-Tags-Li"><input type="text" class="Ldt-CurrentSegmentInfobox-Tags-Li-Input" value="'+this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagInput").val()+'"></input><div class="Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton">'+this.l10n.delete_tag+"</div></li>"),this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton").click(this.functionWrapper("deleteTagInput")),this.$.find(".Ldt-CurrentSegmentInfobox-CreateTagInput").val(""),!1}deleteTagInput(l){jQuery(l.currentTarget).parent().remove()}onSubmit(){new_tags_titles=this.$.find(".Ldt-CurrentSegmentInfobox-Tags-Li-Input").map(function(){if(jQuery(this).val())return jQuery(this).val()}),new_title=this.$.find(".Ldt-CurrentSegmentInfobox-TitleInput").val(),new_description=this.$.find(".Ldt-CurrentSegmentInfobox-DescriptionInput").val();var l=this,d=new t.Model.List(this.player.sourceManager),m=this.player.sourceManager.newLocalSource({serializer:t.serializers[this.api_serializer]}),h=new t.Model.Annotation(this.currentSegment.id,m);h.setAnnotationType(this.currentSegment.getAnnotationType().id),h.setMedia(this.currentSegment.getMedia().id),h.setBegin(this.currentSegment.begin),h.setEnd(this.currentSegment.end),h.created=this.currentSegment.created,h.creator=this.currentSegment.creator,h.title=new_title,h.description=new_description;var S=_$1(new_tags_titles).map(function(k){var A=l.source.getTags(!0).searchByTitle(k,!0);if(A.length)var B=A[0];else B=new t.Model.Tag(k.replace(/\W/g,"_"),l.source),B.title=k,l.source.getTags().push(B);return B.id}).value();h.setTags(S),h.project_id=this.project_id,d.push(h),m.addList("annotation",d),_url=mustache.render(this.api_endpoint_template,{annotation_id:this.currentSegment.id}),t.jQuery.ajax({url:_url,type:this.api_method,contentType:"application/json",data:m.serialize(),success:function(k){m.getAnnotations().removeElement(h,!0),m.deSerialize(k),l.source.merge(m),l.segments.forEach(function(A){A.id==h.id&&l.segments.removeElement(A)}),l.segments.push(h),l.currentSegment=h,k={editable_segments:l.editable_segments,edit:l.custom_edit_text?l.custom_edit_text:l.l10n.edit,title:l.currentSegment.title,description:l.currentSegment.description,description_placeholder:l.empty_description_placeholder,tags:l.currentSegment.getTagTexts()},l.$.html(mustache.render(l.template,k)),l.editable_segments&&l.currentSegment&&l.$.find(".Ldt-CurrentSegmentInfobox").click(l.functionWrapper("enableEditMode")),l.$.toggleClass("editing",!1)},error:function(k,A,B){t.log("Error when sending annotation",B),m.getAnnotations().removeElement(h,!0)}})}refresh(){if(!this.media.getTimeRange()){var l=this.media.getCurrentTime(),d=this.segments.filter(function(m){return m.begin<=l&&m.end>=l});d.length>0?this.currentSegment.id!=d[0].id&&(this.currentSegment=d[0],_data={editable_segments:this.editable_segments,edit:this.custom_edit_text?this.custom_edit_text:this.l10n.edit,title:this.currentSegment.title,description:this.currentSegment.description,description_placeholder:this.empty_description_placeholder,tags:this.currentSegment.getTagTexts()},this.$.html(mustache.render(this.template,_data)),this.editable_segments&&this.currentSegment&&this.$.find(".Ldt-CurrentSegmentInfobox").click(this.functionWrapper("enableEditMode"))):(this.currentSegment=!1,this.clearBox())}}clearBox(){var l=this.l10n.empty;this.empty_message&&(l=this.empty_message),this.$.find(".Ldt-CurrentSegmentInfobox").html("<div class='Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-NoSegment'>"+l+"</div>")}},Cr(n,"defaults",{annotation_type:"chap",editable_segments:!1,empty_message:!1,project_id:!1,api_serializer:"ldt_annotate",api_method:"PUT",api_endpoint_template:"",new_tag_button:!0,show_headers:!1,custom_edit_text:!1,empty_description_placeholder:!1}),Cr(n,"template",'<div class="Ldt-CurrentSegmentInfobox"><div class="Ldt-CurrentSegmentInfobox-SelectedSegment">{{#editable_segments}}<div class="Ldt-CurrentSegmentInfobox-EditButton">{{edit}}</div>{{/editable_segments}}<div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Title">{{title}}</div><div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Description">{{description}}</div>{{^description}}{{^tags.length}}{{#description_placeholder}}<div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Description-placeholder">{{description_placeholder}}</div>{{/description_placeholder}}{{/tags.length}}{{/description}}<div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Tags">{{#tags.length}}<ul class="Ldt-CurrentSegmentInfobox-Tags-Ul">{{#tags}}{{#.}}<li class="Ldt-CurrentSegmentInfobox-Tags-Li"><span>{{.}}</span></li>{{/.}}{{/tags}}</ul>{{/tags.length}}</div></div></div>'),Cr(n,"editTemplate",'<div class="Ldt-CurrentSegmentInfobox"><div class="Ldt-CurrentSegmentInfobox-SelectedSegment">{{#headers}}<div class="Ldt-CurrentSegmentInfobox-FieldsHeader">{{fields_header}}</div>{{/headers}}<input type="text" class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-TitleInput Ldt-CurrentSegmentInfobox-Title" value="{{title}}"></input><textarea class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-DescriptionInput Ldt-CurrentSegmentInfobox-Description">{{description}}</textarea><div class="Ldt-CurrentSegmentInfobox-Element Ldt-CurrentSegmentInfobox-Tags">{{#headers}}<div class="Ldt-CurrentSegmentInfobox-TagsHeader">{{tags_header}}</div>{{/headers}}{{#new_tag_button}}<div class="Ldt-CurrentSegmentInfobox-CreateTagButton">{{new_tag}}</div>{{/new_tag_button}}{{^new_tag_button}}<input class="Ldt-CurrentSegmentInfobox-CreateTagInput" placeholder="{{new_tag}}"></input><div class="Ldt-CurrentSegmentInfobox-CreateTagInput-Add">+</div>{{/new_tag_button}}<ul class="Ldt-CurrentSegmentInfobox-Tags-Ul">{{#tags}}{{#.}}<li class="Ldt-CurrentSegmentInfobox-Tags-Li"><input type="text" class="Ldt-CurrentSegmentInfobox-Tags-Li-Input" value="{{.}}"></input><div class="Ldt-CurrentSegmentInfobox-Tags-Li-DeleteTagButton">{{delete_tag}}</div></li>{{/.}}{{/tags}}</ul></div><div class="Ldt-CurrentSegmentInfobox-SubmitButton">{{submit}}</div><div class="Ldt-CurrentSegmentInfobox-CancelButton">{{cancel}}</div></div></div>'),Cr(n,"messages",{fr:{submit:"Soumettre",cancel:"Annuler",edit:"Editer",new_tag:"Nouveau tag",delete_tag:"Supprimer",fields_header:"Commentaire associé à ce segment",tags_header:"Mots-clés associés à ce segment",empty:"Le player vidéo ne lit actuellement aucun segment"},en:{submit:"Submit",cancel:"Cancel",edit:"Edit",new_tag:"New tag",delete_tag:"Delete tag",fields_header:"Current segment content",tags_header:"Current segment tags",empty:"The player currently doesn't read any segment"}}),n},DailymotionPlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(d,m){super(d,m);Cr(this,"draw",function(){typeof this.video>"u"&&(this.video=this.media.video),this.height=this.height||Math.floor(this.width/this.aspect_ratio);var d=this.media,m=null,h=this,S={pause:!0,apiready:!1,volume:0,time:0,duration:0},k=this.video.match(/www.dailymotion.com\/video\/(.+)/);k&&(m=k[1]);var A=mustache.render("{{ protocol }}//www.dailymotion.com/embed/video/{{ videoid }}",{protocol:document.location.protocol.search("http")==0?document.location.protocol:"http:",videoid:m}),B={api:"postMessage",chromeless:1,id:"dm_player",related:0,autoplay:1};h.$.html(mustache.render('<iframe id="{{ id }}" src="{{ player_url }}?{{ params }}" width="{{ width }}" height="{{ height }}" frameborder="0"></iframe>',{player_url:A,params:Object.keys(B).reduce(function(j,I){return j.push(I+"="+encodeURIComponent(B[I])),j},[]).join("&"),width:this.width,height:this.height,id:B.id}));function M(){var j=h.$.find("#"+B.id)[0].contentWindow,I=function(P,$){$!==void 0&&(P=P+"="+$),j.postMessage(P,"*")};d.getCurrentTime=function(){return S.time},d.getVolume=function(){return S.volume},d.getPaused=function(){return S.pause},d.getMuted=function(){return S.muted},d.setCurrentTime=function(P){I("seek",P/1e3)},d.setVolume=function(P){I("volume",P*100)},d.mute=function(){I("muted",1)},d.unmute=function(){I("muted",0)},d.play=function(){I("play")},d.pause=function(){I("pause")}}window.addEventListener("message",function(j){if(j.data.split!==void 0){var I=j.data.split("&").map(function(P){return P.split("=")}).reduce(function(P,$){return P[$[0]]=decodeURIComponent($[1]),P},{});switch(I.event){case"apiready":S.apiready=!0,M();break;case"durationchange":I.duration.slice(-2)=="sc"&&(S.duration=1e3*Number(I.duration.slice(0,-2)),d.setDuration(S.duration));break;case"ended":S.pause=!0;break;case"loadedmetadata":d.trigger("loadedmetadata");break;case"pause":S.pause=!0,d.trigger("pause");break;case"play":S.pause=!1,d.trigger("play");break;case"seeked":S.time=new t.Model.Time(1e3*Number(I.time)),d.trigger("seeked");break;case"timeupdate":S.time=new t.Model.Time(1e3*Number(I.time)),d.trigger("timeupdate",S.time);break;case"volumechange":S.muted=I.muted=="true",S.volume=Number(I.volume)/100;break}}},!1)})}},Cr(n,"defaults",{aspect_ratio:14/9}),n},enrichedPlanStyles={},EnrichedPlan=function(t){var n;return n=class extends t.Widgets.Widget{constructor(d,m){super(d,m);Cr(this,"annotationTemplate",'<div title="{{ begin }} - {{ atitle }}" data-id="{{ id }}" data-timecode="{{begintc}}" class="Ldt-EnrichedPlan-SlideItem Ldt-EnrichedPlan-Note {{category}} {{filtered}}"><span class="Ldt-EnrichedPlan-Note-Text">{{{ text }}}</span> <span class="Ldt-EnrichedPlan-Note-Author">{{ author }}</span></div>')}draw(){var d=this;d.prefix="TODO";var m=this.getWidgetAnnotations().sortBy(function(B){return B.begin}),h=this.media.getAnnotations().filter(function(B){return B.getAnnotationType().title!=d.annotation_type}).sortBy(function(B){return B.begin});m.forEach(function(B){B.annotations=h.filter(function(M){return M.begin>=B.begin&&M.begin<=B.end})}),d.renderTemplate();var S=d.$.find(".Ldt-EnrichedPlan-Container"),k=d.$.find(".Ldt-EnrichedPlan-Content");function A(B){return B.title.indexOf("Anonyme")<0?"Own":"Other"}m.forEach(function(B){var M=mustache.render(d.slideTemplate,{id:B.id,atitle:t.textFieldHtml(B.title),level:B.content.level||1,begin:B.begin.toString(),begintc:B.begin.milliseconds,thumbnail:B.thumbnail,show_slides:d.show_slides,notes:B.annotations.map(function(I){return mustache.render(d.annotationTemplate,{id:I.id,text:t.textFieldHtml(I.description||I.title),author:I.creator,begin:I.begin.toString(),begintc:I.begin.milliseconds,atitle:I.title.slice(0,20),category:"Ldt-EnrichedPlan-Note-"+A(I),filtered:A(I)=="Own"&&!d.show_own_notes||A(I)=="Other"&&!d.show_other_notes||A(I)=="Teacher"&&!d.show_teacher_notes?"filtered_out":""})}).join(`
`)}),j=t.jQuery(M);k.append(j)}),S.on("click","[data-timecode]",function(){d.media.setCurrentTime(Number(this.dataset.timecode))}),S.on("click",".Ldt-EnrichedPlan-Control-Checkbox",function(){var B=_.first(_.filter(this.classList,function(M){return M!="Ldt-EnrichedPlan-Control-Checkbox"}));B!==void 0&&(jQuery(this).is(":checked")?k.find(".Ldt-EnrichedPlan-Slide ."+B).removeClass("filtered_out"):k.find(".Ldt-EnrichedPlan-Slide ."+B).addClass("filtered_out"))}),S.find(".Ldt-EnrichedPlan-Search-Input").on("search",function(){var B=jQuery(this).val().toLocaleLowerCase();B===""?k.find(".Ldt-EnrichedPlan-Note").removeClass("non_matching"):jQuery(".Ldt-EnrichedPlan-Note").each(function(){var M=jQuery(this);M.text().toLocaleLowerCase().indexOf(B)>-1?M.removeClass("non_matching"):M.addClass("non_matching")})})}},Cr(n,"defaults",{annotation_type:"Slides",annotation_types:[],show_controls:!0,show_slides:!0,show_teacher_notes:!0,show_other_notes:!0,show_own_notes:!0}),Cr(n,"template",'<div class="Ldt-EnrichedPlan-Container">{{#show_controls}}<form class="Ldt-EnrichedPlan-Controls"> <input id="{{prefix}}teacher_note_checkbox" class="Ldt-EnrichedPlan-Control-Checkbox Ldt-EnrichedPlan-Note-Teacher" {{#show_teacher_notes}}checked{{/show_teacher_notes}} type="checkbox"> <label for="{{prefix}}teacher_note_checkbox" class="Ldt-EnrichedPlan-Control-Label Ldt-EnrichedPlan-Note-Teacher">Notes Enseignant</label> <input id="{{prefix}}other_note_checkbox" class="Ldt-EnrichedPlan-Control-Checkbox Ldt-EnrichedPlan-Note-Other" {{#show_other_notes}}checked{{/show_other_notes}} type="checkbox"> <label for="{{prefix}}other_note_checkbox" class="Ldt-EnrichedPlan-Control-Label Ldt-EnrichedPlan-Note-Other">Notes Autres</label> <input id="{{prefix}}simplified_plan_checkbox" class="Ldt-EnrichedPlan-Control-Checkbox Ldt-EnrichedPlan-Note-Own" {{#show_own_notes}}checked{{/show_own_notes}} type="checkbox"> <label for="{{prefix}}simplified_plan_checkbox" class="Ldt-EnrichedPlan-Control-Label Ldt-EnrichedPlan-Note-Own">Notes perso.</label> <input id="{{prefix}}slide_display_checkbox" class="Ldt-EnrichedPlan-Control-Checkbox Ldt-EnrichedPlan-Slide-Display" {{#show_slides}}checked{{/show_slides}} type="checkbox"> <label for="{{prefix}}slide_display_checkbox" class="Ldt-EnrichedPlan-Control-Label Ldt-EnrichedPlan-Slide-Display">Diapo<br/>&nbsp;</label> <input class="Ldt-EnrichedPlan-Search-Input" type="search" incremental placeholder="Recherchez"/></form>{{/show_controls}}<div class="Ldt-EnrichedPlan-Content"></div></div>'),Cr(n,"slideTemplate",'<div data-id="{{ id }}" class="Ldt-EnrichedPlan-Slide">  <div class="Ldt-EnrichedPlan-SlideItem Ldt-EnrichedPlan-SlideTimecode">{{ begin }}</div>  <div data-timecode="{{begintc}}" class="Ldt-EnrichedPlan-SlideItem {{^show_slides}}filtered_out{{/show_slides}} Ldt-EnrichedPlan-SlideThumbnail Ldt-EnrichedPlan-Slide-Display"><img title="{{ begin }} - {{ atitle }}" src="{{ thumbnail }}"></div>  <div class="Ldt-EnrichedPlan-SlideContent">     <div data-timecode="{{begintc}}" class="Ldt-EnrichedPlan-SlideTitle Ldt-EnrichedPlan-SlideTitle{{ level }}">{{ atitle }}</div>     <div class="Ldt-EnrichedPlan-SlideNotes">{{{ notes }}}</div>  </div></div>'),n},highlighterStyles={},Highlighter=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d);var m=this;this.throttledRefresh=_$1.throttle(function(){console.log("highlighter Refresh"),m.update()},800)}update(){var l=this,d=l.media.getCurrentTime();return l.$.find(".Ldt-Highlighter-Annotation",document).toggleClass("currentAnnotation",function(){return this.dataset.media===l.media.id&&this.dataset.begin<=d&&d<this.dataset.end}),console.log(l.$.find(".currentAnnotation")),!1}draw(){for(var l=this,d=["timeupdate","seeked","loadedmetadata"],m=0;m<d.length;m++)l.onMediaEvent(d[m],l.throttledRefresh);l.throttledRefresh()}},Cr(n,"defaults",{}),n},HtmlMashupPlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){!this.height&&this.aspect_ratio&&(this.height=this.width/this.aspect_ratio,this.$.css("height",this.height)),this.background&&this.$.css("background",this.background);var l=this.media,d=this.$,m=this.width,h=this.height,S=this.url_transform;l.currentMedia=null,l.currentAnnotation=null,l.seeking=!1;var k,A,B=0,M;function j(){B>=l.duration&&(l.paused||(l.paused=!0,l.trigger("pause")),B=0);var P=l.getAnnotationAtTime(B);if(typeof P>"u"){l.currentMedia&&(l.currentMedia.pause(),l.paused||(l.paused=!0,l.trigger("pause")));return}l.currentAnnotation=P,k=l.currentAnnotation.annotation.begin.milliseconds,A=l.currentAnnotation.annotation.end.milliseconds,M=k-l.currentAnnotation.begin.milliseconds,l.currentMedia=l.currentAnnotation.getMedia(),l.getMedias().forEach(function($){$!==l.currentMedia?($.hide(),$.pause()):$.show()}),l.currentMedia.setCurrentTime(B+M),l.currentMedia.seeking=!0,l.paused||(l.currentMedia.play(),l.seeking=!0),l.trigger("timeupdate",new t.Model.Time(B))}l.getMedias().forEach(I),j(),l.trigger("loadedmetadata");function I(P){if(!P.has_player){P.has_player=!0;var $=P.video;typeof S=="function"&&($=S(P.video));var z="video_"+P.id,N;P.show=function(){if(document.getElementById(z))return;P.loaded=!1,P.paused=!0;var J=jQuery("<video>");if(J.attr({id:z,width:m,height:h}).css({width:m,height:h}),typeof $=="string")J.attr("src",$);else for(var te=0;te<$.length;te++){var se=t.jQuery("<source>");se.attr({src:$[te].src,type:$[te].type}),J.append(se)}d.append(J),N=J[0];function de(){P.muted=N.muted,P.volume=N.volume}J.on("loadedmetadata",function(){de(),P.loaded=!0,P.trigger("loadedmetadata"),P.trigger("volumechange")}),J.on("timeupdate",function(){P.trigger("timeupdate",new t.Model.Time(1e3*N.currentTime))}),J.on("volumechange",function(){de(),P.trigger("volumechange")}),J.on("play",function(){P.trigger("play")}),J.on("pause",function(){P.trigger("pause")}),J.on("seeking",function(){P.trigger("seeking")}),J.on("seeked",function(){P.trigger("seeked")})},P.hide=function(){N=void 0,d.find("#"+z).remove()};var F=void 0,U=void 0;P.on("setcurrenttime",function(J){if(N&&N.readyState>=N.HAVE_METADATA)try{N.currentTime=J/1e3,F=void 0}catch{F=J}else F=J}),P.on("setvolume",function(J){N&&N.readyState>=N.HAVE_METADATA&&(P.volume=J,N.volume=J)}),P.on("setmuted",function(J){N&&N.readyState>=N.HAVE_METADATA&&(P.muted=J,N.muted=J)}),P.on("setplay",function(){if(N&&N.readyState>=N.HAVE_METADATA)try{N.play(),U=void 0}catch{U=!0}else U=!0}),P.on("setpause",function(){if(N&&N.readyState>=N.HAVE_METADATA)try{N.pause(),U=void 0}catch{U=!1}else U=!1}),P.on("loadedmetadata",function(){typeof F<"u"&&P.setCurrentTime(F),typeof U<"u"&&(U?P.play():P.pause())}),P.on("play",function(){P===l.currentMedia&&l.trigger("play")}),P.on("pause",function(){P===l.currentMedia&&l.trigger("pause")}),P.on("timeupdate",function(J){!l.paused&&P===l.currentMedia&&!P.seeking&&(J<A?J>=k?B=J-M:(B=k-M,P.setCurrentTime(k)):(B=A-M,P.pause(),j()),l.trigger("timeupdate",new t.Model.Time(B)))}),P.on("seeked",function(){P.seeking=!1,P===l.currentMedia&&l.seeking&&(l.seeking=!1)}),P.on("volumechange",function(){l.muted=P.muted,l.volume=P.volume,l.trigger("volumechange")})}}l.on("setcurrenttime",function(P){B=P,j()}),l.on("setvolume",function(P){l.getMedias().forEach(function($){$.setVolume(P)}),l.volume=P}),l.on("setmuted",function(P){l.getMedias().forEach(function($){$.setMuted(P)}),l.muted=P}),l.on("setplay",function(){l.paused=!1,j()}),l.on("setpause",function(){l.paused=!0,l.currentMedia&&l.currentMedia.pause()}),l.on("loadedmetadata",function(){j()})}},Cr(n,"defaults",{aspect_ratio:14/9,background:"#333333"}),n},HtmlPlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){t.htmlPlayer(this.media,this.$,this)}},Cr(n,"defaults",{}),n},imageDisplayStyles={},ImageDisplay=function(t){var n;return n=class extends t.Widgets.Widget{constructor(d,m){super(d,m);Cr(this,"annotationTemplate","")}update(d){this.image.css("background-image","url("+d.thumbnail+")"),this.image.attr("title",t.textFieldHtml(d.title)+" - "+d.begin.toString())}draw(){var d=this.getWidgetAnnotations().sortBy(function(h){return h.begin}),m=this;m.renderTemplate(),m.image=m.$.find(".Ldt-ImageDisplay-Container"),m.$.find(".Ldt-ImageDisplay-Overlay-Left").on("click",function(){m.navigate(-1)}),m.$.find(".Ldt-ImageDisplay-Overlay-Right").on("click",function(){m.navigate(1)}),d.forEach(function(h){h.on("enter",function(){m.update(h)})}),d.length&&m.update(d[0])}},Cr(n,"defaults",{annotation_type:"Slides"}),Cr(n,"template",'<div class="Ldt-ImageDisplay-Container"><div class="Ldt-ImageDisplay-Overlay Ldt-ImageDisplay-Overlay-Left"></div><div class="Ldt-ImageDisplay-Overlay Ldt-ImageDisplay-Overlay-Right"></div></div>'),n};var hasOwn$1=Object.prototype.hasOwnProperty,toStr$4=Object.prototype.toString,defineProperty=Object.defineProperty,gOPD$2=Object.getOwnPropertyDescriptor,isArray$3=function(n){return typeof Array.isArray=="function"?Array.isArray(n):toStr$4.call(n)==="[object Array]"},isPlainObject=function(n){if(!n||toStr$4.call(n)!=="[object Object]")return!1;var l=hasOwn$1.call(n,"constructor"),d=n.constructor&&n.constructor.prototype&&hasOwn$1.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!l&&!d)return!1;var m;for(m in n);return typeof m>"u"||hasOwn$1.call(n,m)},setProperty=function(n,l){defineProperty&&l.name==="__proto__"?defineProperty(n,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):n[l.name]=l.newValue},getProperty=function(n,l){if(l==="__proto__")if(hasOwn$1.call(n,l)){if(gOPD$2)return gOPD$2(n,l).value}else return;return n[l]},extend$1=function t(){var n,l,d,m,h,S,k=arguments[0],A=1,B=arguments.length,M=!1;for(typeof k=="boolean"&&(M=k,k=arguments[1]||{},A=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});A<B;++A)if(n=arguments[A],n!=null)for(l in n)d=getProperty(k,l),m=getProperty(n,l),k!==m&&(M&&m&&(isPlainObject(m)||(h=isArray$3(m)))?(h?(h=!1,S=d&&isArray$3(d)?d:[]):S=d&&isPlainObject(d)?d:{},setProperty(k,{name:l,newValue:t(M,S,m)})):typeof m<"u"&&setProperty(k,{name:l,newValue:m}));return k},cookies$1={},cookie={},empty=null;const empty$1=Object.freeze(Object.defineProperty({__proto__:null,default:empty},Symbol.toStringTag,{value:"Module"})),require$$1$5=getAugmentedNamespace(empty$1);var punycode$2={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$2.exports;var hasRequiredPunycode;function requirePunycode(){return hasRequiredPunycode||(hasRequiredPunycode=1,function(t,n){(function(l){var d=n&&!n.nodeType&&n,m=t&&!t.nodeType&&t,h=typeof commonjsGlobal=="object"&&commonjsGlobal;(h.global===h||h.window===h||h.self===h)&&(l=h);var S,k=2147483647,A=36,B=1,M=26,j=38,I=700,P=72,$=128,z="-",N=/^xn--/,F=/[^\x20-\x7E]/,U=/[\x2E\u3002\uFF0E\uFF61]/g,J={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},te=A-B,se=Math.floor,de=String.fromCharCode,Q;function ve(o){throw new RangeError(J[o])}function he(o,x){for(var E=o.length,R=[];E--;)R[E]=x(o[E]);return R}function ke(o,x){var E=o.split("@"),R="";E.length>1&&(R=E[0]+"@",o=E[1]),o=o.replace(U,".");var H=o.split("."),Y=he(H,x).join(".");return R+Y}function T(o){for(var x=[],E=0,R=o.length,H,Y;E<R;)H=o.charCodeAt(E++),H>=55296&&H<=56319&&E<R?(Y=o.charCodeAt(E++),(Y&64512)==56320?x.push(((H&1023)<<10)+(Y&1023)+65536):(x.push(H),E--)):x.push(H);return x}function u(o){return he(o,function(x){var E="";return x>65535&&(x-=65536,E+=de(x>>>10&1023|55296),x=56320|x&1023),E+=de(x),E}).join("")}function p(o){return o-48<10?o-22:o-65<26?o-65:o-97<26?o-97:A}function b(o,x){return o+22+75*(o<26)-((x!=0)<<5)}function e(o,x,E){var R=0;for(o=E?se(o/I):o>>1,o+=se(o/x);o>te*M>>1;R+=A)o=se(o/te);return se(R+(te+1)*o/(o+j))}function c(o){var x=[],E=o.length,R,H=0,Y=$,Z=P,L,D,ee,oe,fe,ue,qe,rt,Ve;for(L=o.lastIndexOf(z),L<0&&(L=0),D=0;D<L;++D)o.charCodeAt(D)>=128&&ve("not-basic"),x.push(o.charCodeAt(D));for(ee=L>0?L+1:0;ee<E;){for(oe=H,fe=1,ue=A;ee>=E&&ve("invalid-input"),qe=p(o.charCodeAt(ee++)),(qe>=A||qe>se((k-H)/fe))&&ve("overflow"),H+=qe*fe,rt=ue<=Z?B:ue>=Z+M?M:ue-Z,!(qe<rt);ue+=A)Ve=A-rt,fe>se(k/Ve)&&ve("overflow"),fe*=Ve;R=x.length+1,Z=e(H-oe,R,oe==0),se(H/R)>k-Y&&ve("overflow"),Y+=se(H/R),H%=R,x.splice(H++,0,Y)}return u(x)}function y(o){var x,E,R,H,Y,Z,L,D,ee,oe,fe,ue=[],qe,rt,Ve,et;for(o=T(o),qe=o.length,x=$,E=0,Y=P,Z=0;Z<qe;++Z)fe=o[Z],fe<128&&ue.push(de(fe));for(R=H=ue.length,H&&ue.push(z);R<qe;){for(L=k,Z=0;Z<qe;++Z)fe=o[Z],fe>=x&&fe<L&&(L=fe);for(rt=R+1,L-x>se((k-E)/rt)&&ve("overflow"),E+=(L-x)*rt,x=L,Z=0;Z<qe;++Z)if(fe=o[Z],fe<x&&++E>k&&ve("overflow"),fe==x){for(D=E,ee=A;oe=ee<=Y?B:ee>=Y+M?M:ee-Y,!(D<oe);ee+=A)et=D-oe,Ve=A-oe,ue.push(de(b(oe+et%Ve,0))),D=se(et/Ve);ue.push(de(b(D,0))),Y=e(E,rt,R==H),E=0,++R}++E,++x}return ue.join("")}function w(o){return ke(o,function(x){return N.test(x)?c(x.slice(4).toLowerCase()):x})}function v(o){return ke(o,function(x){return F.test(x)?"xn--"+y(x):x})}if(S={version:"1.4.1",ucs2:{decode:T,encode:u},decode:c,encode:y,toASCII:v,toUnicode:w},d&&m)if(t.exports==d)m.exports=S;else for(Q in S)S.hasOwnProperty(Q)&&(d[Q]=S[Q]);else l.punycode=S})(commonjsGlobal)}(punycode$2,punycode$2.exports)),punycode$2.exports}var punycodeExports=requirePunycode();const require$$0$4=getDefaultExportFromCjs$1(punycodeExports);function hasOwnProperty$1(t,n){return Object.prototype.hasOwnProperty.call(t,n)}var decode$1=function(t,n,l,d){n=n||"&",l=l||"=";var m={};if(typeof t!="string"||t.length===0)return m;var h=/\+/g;t=t.split(n);var S=1e3;d&&typeof d.maxKeys=="number"&&(S=d.maxKeys);var k=t.length;S>0&&k>S&&(k=S);for(var A=0;A<k;++A){var B=t[A].replace(h,"%20"),M=B.indexOf(l),j,I,P,$;M>=0?(j=B.substr(0,M),I=B.substr(M+1)):(j=B,I=""),P=decodeURIComponent(j),$=decodeURIComponent(I),hasOwnProperty$1(m,P)?isArray$2(m[P])?m[P].push($):m[P]=[m[P],$]:m[P]=$}return m},isArray$2=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"},stringifyPrimitive=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}},encode$1=function(t,n,l,d){return n=n||"&",l=l||"=",t===null&&(t=void 0),typeof t=="object"?map(objectKeys$1(t),function(m){var h=encodeURIComponent(stringifyPrimitive(m))+l;return isArray$1(t[m])?map(t[m],function(S){return h+encodeURIComponent(stringifyPrimitive(S))}).join(n):h+encodeURIComponent(stringifyPrimitive(t[m]))}).join(n):d?encodeURIComponent(stringifyPrimitive(d))+l+encodeURIComponent(stringifyPrimitive(t)):""},isArray$1=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function map(t,n){if(t.map)return t.map(n);for(var l=[],d=0;d<t.length;d++)l.push(n(t[d],d));return l}var objectKeys$1=Object.keys||function(t){var n=[];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.push(l);return n},stringify$1,parse$3,decode=parse$3=decode$1,encode=stringify$1=encode$1;function qsEscape(t){return encodeURIComponent(t)}function qsUnescape(t){return decodeURIComponent(t)}var api$2={decode,encode,parse:parse$3,stringify:stringify$1,escape:qsEscape,unescape:qsUnescape};const querystring$2=Object.freeze(Object.defineProperty({__proto__:null,decode,default:api$2,encode,escape:qsEscape,get parse(){return parse$3},get stringify(){return stringify$1},unescape:qsUnescape},Symbol.toStringTag,{value:"Module"}));var util$1$1={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}},punycode$1=require$$0$4,util$7=util$1$1,parse$2=urlParse$1,resolve$1=urlResolve,resolveObject=urlResolveObject,format$1=urlFormat,Url_1=Url;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
`,"	"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring$1=api$2;function urlParse$1(t,n,l){if(t&&util$7.isObject(t)&&t instanceof Url)return t;var d=new Url;return d.parse(t,n,l),d}Url.prototype.parse=function(t,n,l){if(!util$7.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var d=t.indexOf("?"),m=d!==-1&&d<t.indexOf("#")?"?":"#",h=t.split(m),S=/\\/g;h[0]=h[0].replace(S,"/"),t=h.join(m);var k=t;if(k=k.trim(),!l&&t.split("#").length===1){var A=simplePathPattern.exec(k);if(A)return this.path=k,this.href=k,this.pathname=A[1],A[2]?(this.search=A[2],n?this.query=querystring$1.parse(this.search.substr(1)):this.query=this.search.substr(1)):n&&(this.search="",this.query={}),this}var B=protocolPattern.exec(k);if(B){B=B[0];var M=B.toLowerCase();this.protocol=M,k=k.substr(B.length)}if(l||B||k.match(/^\/\/[^@\/]+@[^@\/]+/)){var j=k.substr(0,2)==="//";j&&!(B&&hostlessProtocol[B])&&(k=k.substr(2),this.slashes=!0)}if(!hostlessProtocol[B]&&(j||B&&!slashedProtocol[B])){for(var I=-1,P=0;P<hostEndingChars.length;P++){var $=k.indexOf(hostEndingChars[P]);$!==-1&&(I===-1||$<I)&&(I=$)}var z,N;I===-1?N=k.lastIndexOf("@"):N=k.lastIndexOf("@",I),N!==-1&&(z=k.slice(0,N),k=k.slice(N+1),this.auth=decodeURIComponent(z)),I=-1;for(var P=0;P<nonHostChars.length;P++){var $=k.indexOf(nonHostChars[P]);$!==-1&&(I===-1||$<I)&&(I=$)}I===-1&&(I=k.length),this.host=k.slice(0,I),k=k.slice(I),this.parseHost(),this.hostname=this.hostname||"";var F=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!F)for(var U=this.hostname.split(/\./),P=0,J=U.length;P<J;P++){var te=U[P];if(te&&!te.match(hostnamePartPattern)){for(var se="",de=0,Q=te.length;de<Q;de++)te.charCodeAt(de)>127?se+="x":se+=te[de];if(!se.match(hostnamePartPattern)){var ve=U.slice(0,P),he=U.slice(P+1),ke=te.match(hostnamePartStart);ke&&(ve.push(ke[1]),he.unshift(ke[2])),he.length&&(k="/"+he.join(".")+k),this.hostname=ve.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=punycode$1.toASCII(this.hostname));var T=this.port?":"+this.port:"",u=this.hostname||"";this.host=u+T,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),k[0]!=="/"&&(k="/"+k))}if(!unsafeProtocol[M])for(var P=0,J=autoEscape.length;P<J;P++){var p=autoEscape[P];if(k.indexOf(p)!==-1){var b=encodeURIComponent(p);b===p&&(b=escape(p)),k=k.split(p).join(b)}}var e=k.indexOf("#");e!==-1&&(this.hash=k.substr(e),k=k.slice(0,e));var c=k.indexOf("?");if(c!==-1?(this.search=k.substr(c),this.query=k.substr(c+1),n&&(this.query=querystring$1.parse(this.query)),k=k.slice(0,c)):n&&(this.search="",this.query={}),k&&(this.pathname=k),slashedProtocol[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var T=this.pathname||"",y=this.search||"";this.path=T+y}return this.href=this.format(),this};function urlFormat(t){return util$7.isString(t)&&(t=urlParse$1(t)),t instanceof Url?t.format():Url.prototype.format.call(t)}Url.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var n=this.protocol||"",l=this.pathname||"",d=this.hash||"",m=!1,h="";this.host?m=t+this.host:this.hostname&&(m=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(m+=":"+this.port)),this.query&&util$7.isObject(this.query)&&Object.keys(this.query).length&&(h=querystring$1.stringify(this.query));var S=this.search||h&&"?"+h||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||slashedProtocol[n])&&m!==!1?(m="//"+(m||""),l&&l.charAt(0)!=="/"&&(l="/"+l)):m||(m=""),d&&d.charAt(0)!=="#"&&(d="#"+d),S&&S.charAt(0)!=="?"&&(S="?"+S),l=l.replace(/[?#]/g,function(k){return encodeURIComponent(k)}),S=S.replace("#","%23"),n+m+l+S+d};function urlResolve(t,n){return urlParse$1(t,!1,!0).resolve(n)}Url.prototype.resolve=function(t){return this.resolveObject(urlParse$1(t,!1,!0)).format()};function urlResolveObject(t,n){return t?urlParse$1(t,!1,!0).resolveObject(n):n}Url.prototype.resolveObject=function(t){if(util$7.isString(t)){var n=new Url;n.parse(t,!1,!0),t=n}for(var l=new Url,d=Object.keys(this),m=0;m<d.length;m++){var h=d[m];l[h]=this[h]}if(l.hash=t.hash,t.href==="")return l.href=l.format(),l;if(t.slashes&&!t.protocol){for(var S=Object.keys(t),k=0;k<S.length;k++){var A=S[k];A!=="protocol"&&(l[A]=t[A])}return slashedProtocol[l.protocol]&&l.hostname&&!l.pathname&&(l.path=l.pathname="/"),l.href=l.format(),l}if(t.protocol&&t.protocol!==l.protocol){if(!slashedProtocol[t.protocol]){for(var B=Object.keys(t),M=0;M<B.length;M++){var j=B[M];l[j]=t[j]}return l.href=l.format(),l}if(l.protocol=t.protocol,!t.host&&!hostlessProtocol[t.protocol]){for(var J=(t.pathname||"").split("/");J.length&&!(t.host=J.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),J[0]!==""&&J.unshift(""),J.length<2&&J.unshift(""),l.pathname=J.join("/")}else l.pathname=t.pathname;if(l.search=t.search,l.query=t.query,l.host=t.host||"",l.auth=t.auth,l.hostname=t.hostname||t.host,l.port=t.port,l.pathname||l.search){var I=l.pathname||"",P=l.search||"";l.path=I+P}return l.slashes=l.slashes||t.slashes,l.href=l.format(),l}var $=l.pathname&&l.pathname.charAt(0)==="/",z=t.host||t.pathname&&t.pathname.charAt(0)==="/",N=z||$||l.host&&t.pathname,F=N,U=l.pathname&&l.pathname.split("/")||[],J=t.pathname&&t.pathname.split("/")||[],te=l.protocol&&!slashedProtocol[l.protocol];if(te&&(l.hostname="",l.port=null,l.host&&(U[0]===""?U[0]=l.host:U.unshift(l.host)),l.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(J[0]===""?J[0]=t.host:J.unshift(t.host)),t.host=null),N=N&&(J[0]===""||U[0]==="")),z)l.host=t.host||t.host===""?t.host:l.host,l.hostname=t.hostname||t.hostname===""?t.hostname:l.hostname,l.search=t.search,l.query=t.query,U=J;else if(J.length)U||(U=[]),U.pop(),U=U.concat(J),l.search=t.search,l.query=t.query;else if(!util$7.isNullOrUndefined(t.search)){if(te){l.hostname=l.host=U.shift();var se=l.host&&l.host.indexOf("@")>0?l.host.split("@"):!1;se&&(l.auth=se.shift(),l.host=l.hostname=se.shift())}return l.search=t.search,l.query=t.query,(!util$7.isNull(l.pathname)||!util$7.isNull(l.search))&&(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.href=l.format(),l}if(!U.length)return l.pathname=null,l.search?l.path="/"+l.search:l.path=null,l.href=l.format(),l;for(var de=U.slice(-1)[0],Q=(l.host||t.host||U.length>1)&&(de==="."||de==="..")||de==="",ve=0,he=U.length;he>=0;he--)de=U[he],de==="."?U.splice(he,1):de===".."?(U.splice(he,1),ve++):ve&&(U.splice(he,1),ve--);if(!N&&!F)for(;ve--;ve)U.unshift("..");N&&U[0]!==""&&(!U[0]||U[0].charAt(0)!=="/")&&U.unshift(""),Q&&U.join("/").substr(-1)!=="/"&&U.push("");var ke=U[0]===""||U[0]&&U[0].charAt(0)==="/";if(te){l.hostname=l.host=ke?"":U.length?U.shift():"";var se=l.host&&l.host.indexOf("@")>0?l.host.split("@"):!1;se&&(l.auth=se.shift(),l.host=l.hostname=se.shift())}return N=N||l.host&&U.length,N&&!ke&&U.unshift(""),U.length?l.pathname=U.join("/"):(l.pathname=null,l.path=null),(!util$7.isNull(l.pathname)||!util$7.isNull(l.search))&&(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.auth=t.auth||l.auth,l.slashes=l.slashes||t.slashes,l.href=l.format(),l},Url.prototype.parseHost=function(){var t=this.host,n=portPattern.exec(t);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(this.hostname=t)};function normalizeArray(t,n){for(var l=0,d=t.length-1;d>=0;d--){var m=t[d];m==="."?t.splice(d,1):m===".."?(t.splice(d,1),l++):l&&(t.splice(d,1),l--)}if(n)for(;l--;l)t.unshift("..");return t}function resolve(){for(var t="",n=!1,l=arguments.length-1;l>=-1&&!n;l--){var d=l>=0?arguments[l]:"/";if(typeof d!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!d)continue;t=d+"/"+t,n=d.charAt(0)==="/"}return t=normalizeArray(filter(t.split("/"),function(m){return!!m}),!n).join("/"),(n?"/":"")+t||"."}function filter(t,n){if(t.filter)return t.filter(n);for(var l=[],d=0;d<t.length;d++)n(t[d],d,t)&&l.push(t[d]);return l}var _globalThis=function(t){function n(){var d=this||self;return delete t.prototype.__magic__,d}if(typeof globalThis=="object")return globalThis;if(this)return n();t.defineProperty(t.prototype,"__magic__",{configurable:!0,get:n});var l=__magic__;return l}(Object),formatImport=format$1,parseImport=parse$2,resolveImport=resolve$1,UrlImport=Url_1,URL=_globalThis.URL,URLSearchParams=_globalThis.URLSearchParams,percentRegEx=/%/g,backslashRegEx=/\\/g,newlineRegEx=/\n/g,carriageReturnRegEx=/\r/g,tabRegEx=/\t/g,CHAR_FORWARD_SLASH=47;function isURLInstance(t){var n=t??null;return!!(n!==null&&(n!=null&&n.href)&&(n!=null&&n.origin))}function getPathFromURLPosix(t){if(t.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var n=t.pathname,l=0;l<n.length;l++)if(n[l]==="%"){var d=n.codePointAt(l+2)|32;if(n[l+1]==="2"&&d===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(n)}function encodePathChars(t){return t.includes("%")&&(t=t.replace(percentRegEx,"%25")),t.includes("\\")&&(t=t.replace(backslashRegEx,"%5C")),t.includes(`
`)&&(t=t.replace(newlineRegEx,"%0A")),t.includes("\r")&&(t=t.replace(carriageReturnRegEx,"%0D")),t.includes("	")&&(t=t.replace(tabRegEx,"%09")),t}var domainToASCII=function(n){if(typeof n>"u")throw new TypeError('The "domain" argument must be specified');return new URL("http://"+n).hostname},domainToUnicode=function(n){if(typeof n>"u")throw new TypeError('The "domain" argument must be specified');return new URL("http://"+n).hostname},pathToFileURL=function(n){var l=new URL("file://"),d=resolve(n),m=n.charCodeAt(n.length-1);return m===CHAR_FORWARD_SLASH&&d[d.length-1]!=="/"&&(d+="/"),l.pathname=encodePathChars(d),l},fileURLToPath=function(n){if(!isURLInstance(n)&&typeof n!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof n+" ("+n+")");var l=new URL(n);if(l.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return getPathFromURLPosix(l)},formatImportWithOverloads=function(n,l){var d,m,h;if(l===void 0&&(l={}),!(n instanceof URL))return formatImport(n);if(typeof l!="object"||l===null)throw new TypeError('The "options" argument must be of type object.');var S=(d=l.auth)!=null?d:!0,k=(m=l.fragment)!=null?m:!0,A=(h=l.search)!=null?h:!0,B=new URL(n.toString());return S||(B.username="",B.password=""),k||(B.hash=""),A||(B.search=""),B.toString()},api$1={format:formatImportWithOverloads,parse:parseImport,resolve:resolveImport,resolveObject,Url:UrlImport,URL,URLSearchParams,domainToASCII,domainToUnicode,pathToFileURL,fileURLToPath};const url=Object.freeze(Object.defineProperty({__proto__:null,URL,URLSearchParams,Url:UrlImport,default:api$1,domainToASCII,domainToUnicode,fileURLToPath,format:formatImportWithOverloads,parse:parseImport,pathToFileURL,resolve:resolveImport,resolveObject},Symbol.toStringTag,{value:"Module"})),require$$2$2=getAugmentedNamespace(url);function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var browser$e={exports:{}},process=browser$e.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(t){if(cachedSetTimeout===setTimeout)return setTimeout(t,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(t,0);try{return cachedSetTimeout(t,0)}catch{try{return cachedSetTimeout.call(null,t,0)}catch{return cachedSetTimeout.call(this,t,0)}}}function runClearTimeout(t){if(cachedClearTimeout===clearTimeout)return clearTimeout(t);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(t);try{return cachedClearTimeout(t)}catch{try{return cachedClearTimeout.call(null,t)}catch{return cachedClearTimeout.call(this,t)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var t=runTimeout(cleanUpNextTick);draining=!0;for(var n=queue.length;n;){for(currentQueue=queue,queue=[];++queueIndex<n;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,n=queue.length}currentQueue=null,draining=!1,runClearTimeout(t)}}process.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var l=1;l<arguments.length;l++)n[l-1]=arguments[l];queue.push(new Item(t,n)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(t,n){this.fun=t,this.array=n}Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={};function noop(){}process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(t){return[]},process.binding=function(t){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(t){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browserExports$1=browser$e.exports;const process$1=getDefaultExportFromCjs(browserExports$1);var util$6={},types$1={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},l=Symbol("test"),d=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(d)!=="[object Symbol]")return!1;var m=42;n[l]=m;for(l in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var h=Object.getOwnPropertySymbols(n);if(h.length!==1||h[0]!==l||!Object.prototype.propertyIsEnumerable.call(n,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(n,l);if(S.value!==m||S.enumerable!==!0)return!1}return!0},hasSymbols$2=shams$1,shams=function(){return hasSymbols$2()&&!!Symbol.toStringTag},esErrors=Error,_eval=EvalError,range=RangeError,ref$1=ReferenceError,syntax=SyntaxError,type$j=TypeError,uri=URIError,origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={__proto__:null,foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!(test instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$3=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(n,l){for(var d=[],m=0;m<n.length;m+=1)d[m]=n[m];for(var h=0;h<l.length;h+=1)d[h+n.length]=l[h];return d},slicy=function(n,l){for(var d=[],m=l,h=0;m<n.length;m+=1,h+=1)d[h]=n[m];return d},joiny=function(t,n){for(var l="",d=0;d<t.length;d+=1)l+=t[d],d+1<t.length&&(l+=n);return l},implementation$5=function(n){var l=this;if(typeof l!="function"||toStr$3.apply(l)!==funcType)throw new TypeError(ERROR_MESSAGE+l);for(var d=slicy(arguments,1),m,h=function(){if(this instanceof m){var M=l.apply(this,concatty(d,arguments));return Object(M)===M?M:this}return l.apply(n,concatty(d,arguments))},S=max(0,l.length-d.length),k=[],A=0;A<S;A++)k[A]="$"+A;if(m=Function("binder","return function ("+joiny(k,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var B=function(){};B.prototype=l.prototype,m.prototype=new B,B.prototype=null}return m},implementation$4=implementation$5,functionBind=Function.prototype.bind||implementation$4,call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind$1=functionBind,hasown=bind$1.call(call,$hasOwn),undefined$1,$Error=esErrors,$EvalError=_eval,$RangeError=range,$ReferenceError=ref$1,$SyntaxError$1=syntax,$TypeError$2=type$j,$URIError=uri,$Function=Function,getEvalledConstructor=function(t){try{return $Function('"use strict"; return ('+t+").constructor;")()}catch{}},$gOPD$1=Object.getOwnPropertyDescriptor;if($gOPD$1)try{$gOPD$1({},"")}catch{$gOPD$1=null}var throwTypeError=function(){throw new $TypeError$2},ThrowTypeError=$gOPD$1?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD$1(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),hasProto=hasProto$1(),getProto$1=Object.getPrototypeOf||(hasProto?function(t){return t.__proto__}:null),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(t){var errorProto=getProto$1(getProto$1(t));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function t(n){var l;if(n==="%AsyncFunction%")l=getEvalledConstructor("async function () {}");else if(n==="%GeneratorFunction%")l=getEvalledConstructor("function* () {}");else if(n==="%AsyncGeneratorFunction%")l=getEvalledConstructor("async function* () {}");else if(n==="%AsyncGenerator%"){var d=t("%AsyncGeneratorFunction%");d&&(l=d.prototype)}else if(n==="%AsyncIteratorPrototype%"){var m=t("%AsyncGenerator%");m&&getProto$1&&(l=getProto$1(m.prototype))}return INTRINSICS[n]=l,l},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(n){var l=$strSlice(n,0,1),d=$strSlice(n,-1);if(l==="%"&&d!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(d==="%"&&l!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var m=[];return $replace(n,rePropName,function(h,S,k,A){m[m.length]=k?$replace(A,reEscapeChar,"$1"):S||h}),m},getBaseIntrinsic=function(n,l){var d=n,m;if(hasOwn(LEGACY_ALIASES,d)&&(m=LEGACY_ALIASES[d],d="%"+m[0]+"%"),hasOwn(INTRINSICS,d)){var h=INTRINSICS[d];if(h===needsEval&&(h=doEval(d)),typeof h>"u"&&!l)throw new $TypeError$2("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:m,name:d,value:h}}throw new $SyntaxError$1("intrinsic "+n+" does not exist!")},getIntrinsic=function(n,l){if(typeof n!="string"||n.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof l!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,n)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var d=stringToPath(n),m=d.length>0?d[0]:"",h=getBaseIntrinsic("%"+m+"%",l),S=h.name,k=h.value,A=!1,B=h.alias;B&&(m=B[0],$spliceApply(d,$concat([0,1],B)));for(var M=1,j=!0;M<d.length;M+=1){var I=d[M],P=$strSlice(I,0,1),$=$strSlice(I,-1);if((P==='"'||P==="'"||P==="`"||$==='"'||$==="'"||$==="`")&&P!==$)throw new $SyntaxError$1("property names with quotes must have matching quotes");if((I==="constructor"||!j)&&(A=!0),m+="."+I,S="%"+m+"%",hasOwn(INTRINSICS,S))k=INTRINSICS[S];else if(k!=null){if(!(I in k)){if(!l)throw new $TypeError$2("base intrinsic for "+n+" exists, but the property is not available.");return}if($gOPD$1&&M+1>=d.length){var z=$gOPD$1(k,I);j=!!z,j&&"get"in z&&!("originalValue"in z.get)?k=z.get:k=k[I]}else j=hasOwn(k,I),k=k[I];j&&!A&&(INTRINSICS[S]=k)}}return k},callBind$2={exports:{}},esDefineProperty,hasRequiredEsDefineProperty;function requireEsDefineProperty(){if(hasRequiredEsDefineProperty)return esDefineProperty;hasRequiredEsDefineProperty=1;var t=getIntrinsic,n=t("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return esDefineProperty=n,esDefineProperty}var GetIntrinsic$2=getIntrinsic,$gOPD=GetIntrinsic$2("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,$defineProperty$1=requireEsDefineProperty(),$SyntaxError=syntax,$TypeError$1=type$j,gopd=gopd$1,defineDataProperty=function(n,l,d){if(!n||typeof n!="object"&&typeof n!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof l!="string"&&typeof l!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var m=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,S=arguments.length>5?arguments[5]:null,k=arguments.length>6?arguments[6]:!1,A=!!gopd&&gopd(n,l);if($defineProperty$1)$defineProperty$1(n,l,{configurable:S===null&&A?A.configurable:!S,enumerable:m===null&&A?A.enumerable:!m,value:d,writable:h===null&&A?A.writable:!h});else if(k||!m&&!h&&!S)n[l]=d;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$defineProperty=requireEsDefineProperty(),hasPropertyDescriptors=function(){return!!$defineProperty};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!$defineProperty)return null;try{return $defineProperty([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors,GetIntrinsic$1=getIntrinsic,define$1=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=type$j,$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(n,l){if(typeof n!="function")throw new $TypeError("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||$floor(l)!==l)throw new $TypeError("`length` must be a positive 32-bit integer");var d=arguments.length>2&&!!arguments[2],m=!0,h=!0;if("length"in n&&gOPD$1){var S=gOPD$1(n,"length");S&&!S.configurable&&(m=!1),S&&!S.writable&&(h=!1)}return(m||h||!d)&&(hasDescriptors?define$1(n,"length",l,!0,!0):define$1(n,"length",l)),n};(function(t){var n=functionBind,l=getIntrinsic,d=setFunctionLength,m=type$j,h=l("%Function.prototype.apply%"),S=l("%Function.prototype.call%"),k=l("%Reflect.apply%",!0)||n.call(S,h),A=requireEsDefineProperty(),B=l("%Math.max%");t.exports=function(I){if(typeof I!="function")throw new m("a function is required");var P=k(n,S,arguments);return d(P,1+B(0,I.length-(arguments.length-1)),!0)};var M=function(){return k(n,h,arguments)};A?A(t.exports,"apply",{value:M}):t.exports.apply=M})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$2=function(n,l){var d=GetIntrinsic(n,!!l);return typeof d=="function"&&$indexOf$1(n,".prototype.")>-1?callBind$1(d):d},hasToStringTag$3=shams(),callBound$1=callBound$2,$toString$1=callBound$1("Object.prototype.toString"),isStandardArguments=function(n){return hasToStringTag$3&&n&&typeof n=="object"&&Symbol.toStringTag in n?!1:$toString$1(n)==="[object Arguments]"},isLegacyArguments=function(n){return isStandardArguments(n)?!0:n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&$toString$1(n)!=="[object Array]"&&$toString$1(n.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$1=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$2=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(n){if(typeof n!="function")return!1;if(isFnRegex.test(fnToStr$1.call(n)))return!0;if(!hasToStringTag$2){var l=toStr$2.call(n);return l==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var d=getGeneratorFunc();GeneratorFunction=d?getProto(d):!1}return getProto(n)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(t){t!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(n){try{var l=fnToStr.call(n);return constructorRegex.test(l)}catch{return!1}},tryFunctionObject=function(n){try{return isES6ClassFn(n)?!1:(fnToStr.call(n),!0)}catch{return!1}},toStr$1=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$1.call(all)===toStr$1.call(document.all)&&(isDDA=function(n){if((isIE68||!n)&&(typeof n>"u"||typeof n=="object"))try{var l=toStr$1.call(n);return(l===ddaClass||l===ddaClass2||l===ddaClass3||l===objectClass)&&n("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(n){if(isDDA(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;try{reflectApply(n,null,badArrayLike)}catch(l){if(l!==isCallableMarker)return!1}return!isES6ClassFn(n)&&tryFunctionObject(n)}:function(n){if(isDDA(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(n);if(isES6ClassFn(n))return!1;var l=toStr$1.call(n);return l!==fnClass&&l!==genClass&&!/^\[object HTML/.test(l)?!1:tryFunctionObject(n)},isCallable=isCallable$1,toStr=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,forEachArray=function(n,l,d){for(var m=0,h=n.length;m<h;m++)hasOwnProperty.call(n,m)&&(d==null?l(n[m],m,n):l.call(d,n[m],m,n))},forEachString=function(n,l,d){for(var m=0,h=n.length;m<h;m++)d==null?l(n.charAt(m),m,n):l.call(d,n.charAt(m),m,n)},forEachObject=function(n,l,d){for(var m in n)hasOwnProperty.call(n,m)&&(d==null?l(n[m],m,n):l.call(d,n[m],m,n))},forEach$1=function(n,l,d){if(!isCallable(l))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=d),toStr.call(n)==="[object Array]"?forEachArray(n,l,m):typeof n=="string"?forEachString(n,l,m):forEachObject(n,l,m)},forEach_1=forEach$1,possibleTypedArrayNames=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],possibleNames=possibleTypedArrayNames,g$1=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var n=[],l=0;l<possibleNames.length;l++)typeof g$1[possibleNames[l]]=="function"&&(n[n.length]=possibleNames[l]);return n},forEach=forEach_1,availableTypedArrays=availableTypedArrays$1,callBind=callBindExports,callBound=callBound$2,gOPD=gopd$1,$toString=callBound("Object.prototype.toString"),hasToStringTag=shams(),g=typeof globalThis>"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound("Array.prototype.indexOf",!0)||function(n,l){for(var d=0;d<n.length;d+=1)if(n[d]===l)return d;return-1},cache$1={__proto__:null};hasToStringTag&&gOPD&&getPrototypeOf?forEach(typedArrays,function(t){var n=new g[t];if(Symbol.toStringTag in n){var l=getPrototypeOf(n),d=gOPD(l,Symbol.toStringTag);if(!d){var m=getPrototypeOf(l);d=gOPD(m,Symbol.toStringTag)}cache$1["$"+t]=callBind(d.get)}}):forEach(typedArrays,function(t){var n=new g[t],l=n.slice||n.set;l&&(cache$1["$"+t]=callBind(l))});var tryTypedArrays=function(n){var l=!1;return forEach(cache$1,function(d,m){if(!l)try{"$"+d(n)===m&&(l=$slice(m,1))}catch{}}),l},trySlices=function(n){var l=!1;return forEach(cache$1,function(d,m){if(!l)try{d(n),l=$slice(m,1)}catch{}}),l},whichTypedArray$1=function(n){if(!n||typeof n!="object")return!1;if(!hasToStringTag){var l=$slice($toString(n),8,-1);return $indexOf(typedArrays,l)>-1?l:l!=="Object"?!1:trySlices(n)}return gOPD?tryTypedArrays(n):null},whichTypedArray=whichTypedArray$1,isTypedArray=function(n){return!!whichTypedArray(n)};(function(t){var n=isArguments$1,l=isGeneratorFunction,d=whichTypedArray$1,m=isTypedArray;function h(We){return We.call.bind(We)}var S=typeof BigInt<"u",k=typeof Symbol<"u",A=h(Object.prototype.toString),B=h(Number.prototype.valueOf),M=h(String.prototype.valueOf),j=h(Boolean.prototype.valueOf);if(S)var I=h(BigInt.prototype.valueOf);if(k)var P=h(Symbol.prototype.valueOf);function $(We,Xe){if(typeof We!="object")return!1;try{return Xe(We),!0}catch{return!1}}t.isArgumentsObject=n,t.isGeneratorFunction=l,t.isTypedArray=m;function z(We){return typeof Promise<"u"&&We instanceof Promise||We!==null&&typeof We=="object"&&typeof We.then=="function"&&typeof We.catch=="function"}t.isPromise=z;function N(We){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(We):m(We)||R(We)}t.isArrayBufferView=N;function F(We){return d(We)==="Uint8Array"}t.isUint8Array=F;function U(We){return d(We)==="Uint8ClampedArray"}t.isUint8ClampedArray=U;function J(We){return d(We)==="Uint16Array"}t.isUint16Array=J;function te(We){return d(We)==="Uint32Array"}t.isUint32Array=te;function se(We){return d(We)==="Int8Array"}t.isInt8Array=se;function de(We){return d(We)==="Int16Array"}t.isInt16Array=de;function Q(We){return d(We)==="Int32Array"}t.isInt32Array=Q;function ve(We){return d(We)==="Float32Array"}t.isFloat32Array=ve;function he(We){return d(We)==="Float64Array"}t.isFloat64Array=he;function ke(We){return d(We)==="BigInt64Array"}t.isBigInt64Array=ke;function T(We){return d(We)==="BigUint64Array"}t.isBigUint64Array=T;function u(We){return A(We)==="[object Map]"}u.working=typeof Map<"u"&&u(new Map);function p(We){return typeof Map>"u"?!1:u.working?u(We):We instanceof Map}t.isMap=p;function b(We){return A(We)==="[object Set]"}b.working=typeof Set<"u"&&b(new Set);function e(We){return typeof Set>"u"?!1:b.working?b(We):We instanceof Set}t.isSet=e;function c(We){return A(We)==="[object WeakMap]"}c.working=typeof WeakMap<"u"&&c(new WeakMap);function y(We){return typeof WeakMap>"u"?!1:c.working?c(We):We instanceof WeakMap}t.isWeakMap=y;function w(We){return A(We)==="[object WeakSet]"}w.working=typeof WeakSet<"u"&&w(new WeakSet);function v(We){return w(We)}t.isWeakSet=v;function o(We){return A(We)==="[object ArrayBuffer]"}o.working=typeof ArrayBuffer<"u"&&o(new ArrayBuffer);function x(We){return typeof ArrayBuffer>"u"?!1:o.working?o(We):We instanceof ArrayBuffer}t.isArrayBuffer=x;function E(We){return A(We)==="[object DataView]"}E.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&E(new DataView(new ArrayBuffer(1),0,1));function R(We){return typeof DataView>"u"?!1:E.working?E(We):We instanceof DataView}t.isDataView=R;var H=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Y(We){return A(We)==="[object SharedArrayBuffer]"}function Z(We){return typeof H>"u"?!1:(typeof Y.working>"u"&&(Y.working=Y(new H)),Y.working?Y(We):We instanceof H)}t.isSharedArrayBuffer=Z;function L(We){return A(We)==="[object AsyncFunction]"}t.isAsyncFunction=L;function D(We){return A(We)==="[object Map Iterator]"}t.isMapIterator=D;function ee(We){return A(We)==="[object Set Iterator]"}t.isSetIterator=ee;function oe(We){return A(We)==="[object Generator]"}t.isGeneratorObject=oe;function fe(We){return A(We)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=fe;function ue(We){return $(We,B)}t.isNumberObject=ue;function qe(We){return $(We,M)}t.isStringObject=qe;function rt(We){return $(We,j)}t.isBooleanObject=rt;function Ve(We){return S&&$(We,I)}t.isBigIntObject=Ve;function et(We){return k&&$(We,P)}t.isSymbolObject=et;function mt(We){return ue(We)||qe(We)||rt(We)||Ve(We)||et(We)}t.isBoxedPrimitive=mt;function Ye(We){return typeof Uint8Array<"u"&&(x(We)||Z(We))}t.isAnyArrayBuffer=Ye,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(We){Object.defineProperty(t,We,{enumerable:!1,value:function(){throw new Error(We+" is not supported in userland")}})})})(types$1);var isBufferBrowser=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(n,l){l&&(n.super_=l,n.prototype=Object.create(l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(n,l){if(l){n.super_=l;var d=function(){};d.prototype=l.prototype,n.prototype=new d,n.prototype.constructor=n}};var inherits_browserExports=inherits_browser.exports;(function(t){var n=Object.getOwnPropertyDescriptors||function(R){for(var H=Object.keys(R),Y={},Z=0;Z<H.length;Z++)Y[H[Z]]=Object.getOwnPropertyDescriptor(R,H[Z]);return Y},l=/%[sdj%]/g;t.format=function(E){if(!se(E)){for(var R=[],H=0;H<arguments.length;H++)R.push(S(arguments[H]));return R.join(" ")}for(var H=1,Y=arguments,Z=Y.length,L=String(E).replace(l,function(ee){if(ee==="%%")return"%";if(H>=Z)return ee;switch(ee){case"%s":return String(Y[H++]);case"%d":return Number(Y[H++]);case"%j":try{return JSON.stringify(Y[H++])}catch{return"[Circular]"}default:return ee}}),D=Y[H];H<Z;D=Y[++H])U(D)||!he(D)?L+=" "+D:L+=" "+S(D);return L},t.deprecate=function(E,R){if(typeof process$1<"u"&&process$1.noDeprecation===!0)return E;if(typeof process$1>"u")return function(){return t.deprecate(E,R).apply(this,arguments)};var H=!1;function Y(){if(!H){if(process$1.throwDeprecation)throw new Error(R);process$1.traceDeprecation?console.trace(R):console.error(R),H=!0}return E.apply(this,arguments)}return Y};var d={},m=/^$/;if(process$1.env.NODE_DEBUG){var h=process$1.env.NODE_DEBUG;h=h.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),m=new RegExp("^"+h+"$","i")}t.debuglog=function(E){if(E=E.toUpperCase(),!d[E])if(m.test(E)){var R=process$1.pid;d[E]=function(){var H=t.format.apply(t,arguments);console.error("%s %d: %s",E,R,H)}}else d[E]=function(){};return d[E]};function S(E,R){var H={seen:[],stylize:A};return arguments.length>=3&&(H.depth=arguments[2]),arguments.length>=4&&(H.colors=arguments[3]),F(R)?H.showHidden=R:R&&t._extend(H,R),Q(H.showHidden)&&(H.showHidden=!1),Q(H.depth)&&(H.depth=2),Q(H.colors)&&(H.colors=!1),Q(H.customInspect)&&(H.customInspect=!0),H.colors&&(H.stylize=k),M(H,E,H.depth)}t.inspect=S,S.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},S.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function k(E,R){var H=S.styles[R];return H?"\x1B["+S.colors[H][0]+"m"+E+"\x1B["+S.colors[H][1]+"m":E}function A(E,R){return E}function B(E){var R={};return E.forEach(function(H,Y){R[H]=!0}),R}function M(E,R,H){if(E.customInspect&&R&&u(R.inspect)&&R.inspect!==t.inspect&&!(R.constructor&&R.constructor.prototype===R)){var Y=R.inspect(H,E);return se(Y)||(Y=M(E,Y,H)),Y}var Z=j(E,R);if(Z)return Z;var L=Object.keys(R),D=B(L);if(E.showHidden&&(L=Object.getOwnPropertyNames(R)),T(R)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return I(R);if(L.length===0){if(u(R)){var ee=R.name?": "+R.name:"";return E.stylize("[Function"+ee+"]","special")}if(ve(R))return E.stylize(RegExp.prototype.toString.call(R),"regexp");if(ke(R))return E.stylize(Date.prototype.toString.call(R),"date");if(T(R))return I(R)}var oe="",fe=!1,ue=["{","}"];if(N(R)&&(fe=!0,ue=["[","]"]),u(R)){var qe=R.name?": "+R.name:"";oe=" [Function"+qe+"]"}if(ve(R)&&(oe=" "+RegExp.prototype.toString.call(R)),ke(R)&&(oe=" "+Date.prototype.toUTCString.call(R)),T(R)&&(oe=" "+I(R)),L.length===0&&(!fe||R.length==0))return ue[0]+oe+ue[1];if(H<0)return ve(R)?E.stylize(RegExp.prototype.toString.call(R),"regexp"):E.stylize("[Object]","special");E.seen.push(R);var rt;return fe?rt=P(E,R,H,D,L):rt=L.map(function(Ve){return $(E,R,H,D,Ve,fe)}),E.seen.pop(),z(rt,oe,ue)}function j(E,R){if(Q(R))return E.stylize("undefined","undefined");if(se(R)){var H="'"+JSON.stringify(R).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(H,"string")}if(te(R))return E.stylize(""+R,"number");if(F(R))return E.stylize(""+R,"boolean");if(U(R))return E.stylize("null","null")}function I(E){return"["+Error.prototype.toString.call(E)+"]"}function P(E,R,H,Y,Z){for(var L=[],D=0,ee=R.length;D<ee;++D)w(R,String(D))?L.push($(E,R,H,Y,String(D),!0)):L.push("");return Z.forEach(function(oe){oe.match(/^\d+$/)||L.push($(E,R,H,Y,oe,!0))}),L}function $(E,R,H,Y,Z,L){var D,ee,oe;if(oe=Object.getOwnPropertyDescriptor(R,Z)||{value:R[Z]},oe.get?oe.set?ee=E.stylize("[Getter/Setter]","special"):ee=E.stylize("[Getter]","special"):oe.set&&(ee=E.stylize("[Setter]","special")),w(Y,Z)||(D="["+Z+"]"),ee||(E.seen.indexOf(oe.value)<0?(U(H)?ee=M(E,oe.value,null):ee=M(E,oe.value,H-1),ee.indexOf(`
`)>-1&&(L?ee=ee.split(`
`).map(function(fe){return"  "+fe}).join(`
`).slice(2):ee=`
`+ee.split(`
`).map(function(fe){return"   "+fe}).join(`
`))):ee=E.stylize("[Circular]","special")),Q(D)){if(L&&Z.match(/^\d+$/))return ee;D=JSON.stringify(""+Z),D.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(D=D.slice(1,-1),D=E.stylize(D,"name")):(D=D.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),D=E.stylize(D,"string"))}return D+": "+ee}function z(E,R,H){var Y=E.reduce(function(Z,L){return L.indexOf(`
`)>=0,Z+L.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Y>60?H[0]+(R===""?"":R+`
 `)+" "+E.join(`,
  `)+" "+H[1]:H[0]+R+" "+E.join(", ")+" "+H[1]}t.types=types$1;function N(E){return Array.isArray(E)}t.isArray=N;function F(E){return typeof E=="boolean"}t.isBoolean=F;function U(E){return E===null}t.isNull=U;function J(E){return E==null}t.isNullOrUndefined=J;function te(E){return typeof E=="number"}t.isNumber=te;function se(E){return typeof E=="string"}t.isString=se;function de(E){return typeof E=="symbol"}t.isSymbol=de;function Q(E){return E===void 0}t.isUndefined=Q;function ve(E){return he(E)&&b(E)==="[object RegExp]"}t.isRegExp=ve,t.types.isRegExp=ve;function he(E){return typeof E=="object"&&E!==null}t.isObject=he;function ke(E){return he(E)&&b(E)==="[object Date]"}t.isDate=ke,t.types.isDate=ke;function T(E){return he(E)&&(b(E)==="[object Error]"||E instanceof Error)}t.isError=T,t.types.isNativeError=T;function u(E){return typeof E=="function"}t.isFunction=u;function p(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}t.isPrimitive=p,t.isBuffer=isBufferBrowser;function b(E){return Object.prototype.toString.call(E)}function e(E){return E<10?"0"+E.toString(10):E.toString(10)}var c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function y(){var E=new Date,R=[e(E.getHours()),e(E.getMinutes()),e(E.getSeconds())].join(":");return[E.getDate(),c[E.getMonth()],R].join(" ")}t.log=function(){console.log("%s - %s",y(),t.format.apply(t,arguments))},t.inherits=inherits_browserExports,t._extend=function(E,R){if(!R||!he(R))return E;for(var H=Object.keys(R),Y=H.length;Y--;)E[H[Y]]=R[H[Y]];return E};function w(E,R){return Object.prototype.hasOwnProperty.call(E,R)}var v=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');if(v&&R[v]){var H=R[v];if(typeof H!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(H,v,{value:H,enumerable:!1,writable:!1,configurable:!0}),H}function H(){for(var Y,Z,L=new Promise(function(oe,fe){Y=oe,Z=fe}),D=[],ee=0;ee<arguments.length;ee++)D.push(arguments[ee]);D.push(function(oe,fe){oe?Z(oe):Y(fe)});try{R.apply(this,D)}catch(oe){Z(oe)}return L}return Object.setPrototypeOf(H,Object.getPrototypeOf(R)),v&&Object.defineProperty(H,v,{value:H,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(H,n(R))},t.promisify.custom=v;function o(E,R){if(!E){var H=new Error("Promise was rejected with a falsy value");H.reason=E,E=H}return R(E)}function x(E){if(typeof E!="function")throw new TypeError('The "original" argument must be of type Function');function R(){for(var H=[],Y=0;Y<arguments.length;Y++)H.push(arguments[Y]);var Z=H.pop();if(typeof Z!="function")throw new TypeError("The last argument must be of type Function");var L=this,D=function(){return Z.apply(L,arguments)};E.apply(this,H).then(function(ee){process$1.nextTick(D.bind(null,null,ee))},function(ee){process$1.nextTick(o.bind(null,ee,D))})}return Object.setPrototypeOf(R,Object.getPrototypeOf(E)),Object.defineProperties(R,n(E)),R}t.callbackify=x})(util$6);var pubsuffixPsl={},psl$1={};const require$$1$4=["ac","com.ac","edu.ac","gov.ac","net.ac","mil.ac","org.ac","ad","nom.ad","ae","co.ae","net.ae","org.ae","sch.ae","ac.ae","gov.ae","mil.ae","aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","aircraft.aero","airline.aero","airport.aero","air-surveillance.aero","airtraffic.aero","air-traffic-control.aero","ambulance.aero","amusement.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggroup.aero","works.aero","af","gov.af","com.af","org.af","net.af","edu.af","ag","com.ag","org.ag","net.ag","co.ag","nom.ag","ai","off.ai","com.ai","net.ai","org.ai","al","com.al","edu.al","gov.al","mil.al","net.al","org.al","am","co.am","com.am","commune.am","net.am","org.am","ao","ed.ao","gv.ao","og.ao","co.ao","pb.ao","it.ao","aq","ar","bet.ar","com.ar","coop.ar","edu.ar","gob.ar","gov.ar","int.ar","mil.ar","musica.ar","mutual.ar","net.ar","org.ar","senasa.ar","tur.ar","arpa","e164.arpa","in-addr.arpa","ip6.arpa","iris.arpa","uri.arpa","urn.arpa","as","gov.as","asia","at","ac.at","co.at","gv.at","or.at","sth.ac.at","au","com.au","net.au","org.au","edu.au","gov.au","asn.au","id.au","info.au","conf.au","oz.au","act.au","nsw.au","nt.au","qld.au","sa.au","tas.au","vic.au","wa.au","act.edu.au","catholic.edu.au","nsw.edu.au","nt.edu.au","qld.edu.au","sa.edu.au","tas.edu.au","vic.edu.au","wa.edu.au","qld.gov.au","sa.gov.au","tas.gov.au","vic.gov.au","wa.gov.au","schools.nsw.edu.au","aw","com.aw","ax","az","com.az","net.az","int.az","gov.az","org.az","edu.az","info.az","pp.az","mil.az","name.az","pro.az","biz.az","ba","com.ba","edu.ba","gov.ba","mil.ba","net.ba","org.ba","bb","biz.bb","co.bb","com.bb","edu.bb","gov.bb","info.bb","net.bb","org.bb","store.bb","tv.bb","*.bd","be","ac.be","bf","gov.bf","bg","a.bg","b.bg","c.bg","d.bg","e.bg","f.bg","g.bg","h.bg","i.bg","j.bg","k.bg","l.bg","m.bg","n.bg","o.bg","p.bg","q.bg","r.bg","s.bg","t.bg","u.bg","v.bg","w.bg","x.bg","y.bg","z.bg","0.bg","1.bg","2.bg","3.bg","4.bg","5.bg","6.bg","7.bg","8.bg","9.bg","bh","com.bh","edu.bh","net.bh","org.bh","gov.bh","bi","co.bi","com.bi","edu.bi","or.bi","org.bi","biz","bj","asso.bj","barreau.bj","gouv.bj","bm","com.bm","edu.bm","gov.bm","net.bm","org.bm","bn","com.bn","edu.bn","gov.bn","net.bn","org.bn","bo","com.bo","edu.bo","gob.bo","int.bo","org.bo","net.bo","mil.bo","tv.bo","web.bo","academia.bo","agro.bo","arte.bo","blog.bo","bolivia.bo","ciencia.bo","cooperativa.bo","democracia.bo","deporte.bo","ecologia.bo","economia.bo","empresa.bo","indigena.bo","industria.bo","info.bo","medicina.bo","movimiento.bo","musica.bo","natural.bo","nombre.bo","noticias.bo","patria.bo","politica.bo","profesional.bo","plurinacional.bo","pueblo.bo","revista.bo","salud.bo","tecnologia.bo","tksat.bo","transporte.bo","wiki.bo","br","9guacu.br","abc.br","adm.br","adv.br","agr.br","aju.br","am.br","anani.br","aparecida.br","app.br","arq.br","art.br","ato.br","b.br","barueri.br","belem.br","bhz.br","bib.br","bio.br","blog.br","bmd.br","boavista.br","bsb.br","campinagrande.br","campinas.br","caxias.br","cim.br","cng.br","cnt.br","com.br","contagem.br","coop.br","coz.br","cri.br","cuiaba.br","curitiba.br","def.br","des.br","det.br","dev.br","ecn.br","eco.br","edu.br","emp.br","enf.br","eng.br","esp.br","etc.br","eti.br","far.br","feira.br","flog.br","floripa.br","fm.br","fnd.br","fortal.br","fot.br","foz.br","fst.br","g12.br","geo.br","ggf.br","goiania.br","gov.br","ac.gov.br","al.gov.br","am.gov.br","ap.gov.br","ba.gov.br","ce.gov.br","df.gov.br","es.gov.br","go.gov.br","ma.gov.br","mg.gov.br","ms.gov.br","mt.gov.br","pa.gov.br","pb.gov.br","pe.gov.br","pi.gov.br","pr.gov.br","rj.gov.br","rn.gov.br","ro.gov.br","rr.gov.br","rs.gov.br","sc.gov.br","se.gov.br","sp.gov.br","to.gov.br","gru.br","imb.br","ind.br","inf.br","jab.br","jampa.br","jdf.br","joinville.br","jor.br","jus.br","leg.br","lel.br","log.br","londrina.br","macapa.br","maceio.br","manaus.br","maringa.br","mat.br","med.br","mil.br","morena.br","mp.br","mus.br","natal.br","net.br","niteroi.br","*.nom.br","not.br","ntr.br","odo.br","ong.br","org.br","osasco.br","palmas.br","poa.br","ppg.br","pro.br","psc.br","psi.br","pvh.br","qsl.br","radio.br","rec.br","recife.br","rep.br","ribeirao.br","rio.br","riobranco.br","riopreto.br","salvador.br","sampa.br","santamaria.br","santoandre.br","saobernardo.br","saogonca.br","seg.br","sjc.br","slg.br","slz.br","sorocaba.br","srv.br","taxi.br","tc.br","tec.br","teo.br","the.br","tmp.br","trd.br","tur.br","tv.br","udi.br","vet.br","vix.br","vlog.br","wiki.br","zlg.br","bs","com.bs","net.bs","org.bs","edu.bs","gov.bs","bt","com.bt","edu.bt","gov.bt","net.bt","org.bt","bv","bw","co.bw","org.bw","by","gov.by","mil.by","com.by","of.by","bz","com.bz","net.bz","org.bz","edu.bz","gov.bz","ca","ab.ca","bc.ca","mb.ca","nb.ca","nf.ca","nl.ca","ns.ca","nt.ca","nu.ca","on.ca","pe.ca","qc.ca","sk.ca","yk.ca","gc.ca","cat","cc","cd","gov.cd","cf","cg","ch","ci","org.ci","or.ci","com.ci","co.ci","edu.ci","ed.ci","ac.ci","net.ci","go.ci","asso.ci","aéroport.ci","int.ci","presse.ci","md.ci","gouv.ci","*.ck","!www.ck","cl","co.cl","gob.cl","gov.cl","mil.cl","cm","co.cm","com.cm","gov.cm","net.cm","cn","ac.cn","com.cn","edu.cn","gov.cn","net.cn","org.cn","mil.cn","公司.cn","网络.cn","網絡.cn","ah.cn","bj.cn","cq.cn","fj.cn","gd.cn","gs.cn","gz.cn","gx.cn","ha.cn","hb.cn","he.cn","hi.cn","hl.cn","hn.cn","jl.cn","js.cn","jx.cn","ln.cn","nm.cn","nx.cn","qh.cn","sc.cn","sd.cn","sh.cn","sn.cn","sx.cn","tj.cn","xj.cn","xz.cn","yn.cn","zj.cn","hk.cn","mo.cn","tw.cn","co","arts.co","com.co","edu.co","firm.co","gov.co","info.co","int.co","mil.co","net.co","nom.co","org.co","rec.co","web.co","com","coop","cr","ac.cr","co.cr","ed.cr","fi.cr","go.cr","or.cr","sa.cr","cu","com.cu","edu.cu","org.cu","net.cu","gov.cu","inf.cu","cv","com.cv","edu.cv","int.cv","nome.cv","org.cv","cw","com.cw","edu.cw","net.cw","org.cw","cx","gov.cx","cy","ac.cy","biz.cy","com.cy","ekloges.cy","gov.cy","ltd.cy","mil.cy","net.cy","org.cy","press.cy","pro.cy","tm.cy","cz","de","dj","dk","dm","com.dm","net.dm","org.dm","edu.dm","gov.dm","do","art.do","com.do","edu.do","gob.do","gov.do","mil.do","net.do","org.do","sld.do","web.do","dz","art.dz","asso.dz","com.dz","edu.dz","gov.dz","org.dz","net.dz","pol.dz","soc.dz","tm.dz","ec","com.ec","info.ec","net.ec","fin.ec","k12.ec","med.ec","pro.ec","org.ec","edu.ec","gov.ec","gob.ec","mil.ec","edu","ee","edu.ee","gov.ee","riik.ee","lib.ee","med.ee","com.ee","pri.ee","aip.ee","org.ee","fie.ee","eg","com.eg","edu.eg","eun.eg","gov.eg","mil.eg","name.eg","net.eg","org.eg","sci.eg","*.er","es","com.es","nom.es","org.es","gob.es","edu.es","et","com.et","gov.et","org.et","edu.et","biz.et","name.et","info.et","net.et","eu","fi","aland.fi","fj","ac.fj","biz.fj","com.fj","gov.fj","info.fj","mil.fj","name.fj","net.fj","org.fj","pro.fj","*.fk","com.fm","edu.fm","net.fm","org.fm","fm","fo","fr","asso.fr","com.fr","gouv.fr","nom.fr","prd.fr","tm.fr","aeroport.fr","avocat.fr","avoues.fr","cci.fr","chambagri.fr","chirurgiens-dentistes.fr","experts-comptables.fr","geometre-expert.fr","greta.fr","huissier-justice.fr","medecin.fr","notaires.fr","pharmacien.fr","port.fr","veterinaire.fr","ga","gb","edu.gd","gov.gd","gd","ge","com.ge","edu.ge","gov.ge","org.ge","mil.ge","net.ge","pvt.ge","gf","gg","co.gg","net.gg","org.gg","gh","com.gh","edu.gh","gov.gh","org.gh","mil.gh","gi","com.gi","ltd.gi","gov.gi","mod.gi","edu.gi","org.gi","gl","co.gl","com.gl","edu.gl","net.gl","org.gl","gm","gn","ac.gn","com.gn","edu.gn","gov.gn","org.gn","net.gn","gov","gp","com.gp","net.gp","mobi.gp","edu.gp","org.gp","asso.gp","gq","gr","com.gr","edu.gr","net.gr","org.gr","gov.gr","gs","gt","com.gt","edu.gt","gob.gt","ind.gt","mil.gt","net.gt","org.gt","gu","com.gu","edu.gu","gov.gu","guam.gu","info.gu","net.gu","org.gu","web.gu","gw","gy","co.gy","com.gy","edu.gy","gov.gy","net.gy","org.gy","hk","com.hk","edu.hk","gov.hk","idv.hk","net.hk","org.hk","公司.hk","教育.hk","敎育.hk","政府.hk","個人.hk","个��.hk","箇人.hk","網络.hk","网络.hk","组織.hk","網絡.hk","网絡.hk","组织.hk","組織.hk","組织.hk","hm","hn","com.hn","edu.hn","org.hn","net.hn","mil.hn","gob.hn","hr","iz.hr","from.hr","name.hr","com.hr","ht","com.ht","shop.ht","firm.ht","info.ht","adult.ht","net.ht","pro.ht","org.ht","med.ht","art.ht","coop.ht","pol.ht","asso.ht","edu.ht","rel.ht","gouv.ht","perso.ht","hu","co.hu","info.hu","org.hu","priv.hu","sport.hu","tm.hu","2000.hu","agrar.hu","bolt.hu","casino.hu","city.hu","erotica.hu","erotika.hu","film.hu","forum.hu","games.hu","hotel.hu","ingatlan.hu","jogasz.hu","konyvelo.hu","lakas.hu","media.hu","news.hu","reklam.hu","sex.hu","shop.hu","suli.hu","szex.hu","tozsde.hu","utazas.hu","video.hu","id","ac.id","biz.id","co.id","desa.id","go.id","mil.id","my.id","net.id","or.id","ponpes.id","sch.id","web.id","ie","gov.ie","il","ac.il","co.il","gov.il","idf.il","k12.il","muni.il","net.il","org.il","im","ac.im","co.im","com.im","ltd.co.im","net.im","org.im","plc.co.im","tt.im","tv.im","in","co.in","firm.in","net.in","org.in","gen.in","ind.in","nic.in","ac.in","edu.in","res.in","gov.in","mil.in","info","int","eu.int","io","com.io","iq","gov.iq","edu.iq","mil.iq","com.iq","org.iq","net.iq","ir","ac.ir","co.ir","gov.ir","id.ir","net.ir","org.ir","sch.ir","ایران.ir","ايران.ir","is","net.is","com.is","edu.is","gov.is","org.is","int.is","it","gov.it","edu.it","abr.it","abruzzo.it","aosta-valley.it","aostavalley.it","bas.it","basilicata.it","cal.it","calabria.it","cam.it","campania.it","emilia-romagna.it","emiliaromagna.it","emr.it","friuli-v-giulia.it","friuli-ve-giulia.it","friuli-vegiulia.it","friuli-venezia-giulia.it","friuli-veneziagiulia.it","friuli-vgiulia.it","friuliv-giulia.it","friulive-giulia.it","friulivegiulia.it","friulivenezia-giulia.it","friuliveneziagiulia.it","friulivgiulia.it","fvg.it","laz.it","lazio.it","lig.it","liguria.it","lom.it","lombardia.it","lombardy.it","lucania.it","mar.it","marche.it","mol.it","molise.it","piedmont.it","piemonte.it","pmn.it","pug.it","puglia.it","sar.it","sardegna.it","sardinia.it","sic.it","sicilia.it","sicily.it","taa.it","tos.it","toscana.it","trentin-sud-tirol.it","trentin-süd-tirol.it","trentin-sudtirol.it","trentin-südtirol.it","trentin-sued-tirol.it","trentin-suedtirol.it","trentino-a-adige.it","trentino-aadige.it","trentino-alto-adige.it","trentino-altoadige.it","trentino-s-tirol.it","trentino-stirol.it","trentino-sud-tirol.it","trentino-süd-tirol.it","trentino-sudtirol.it","trentino-südtirol.it","trentino-sued-tirol.it","trentino-suedtirol.it","trentino.it","trentinoa-adige.it","trentinoaadige.it","trentinoalto-adige.it","trentinoaltoadige.it","trentinos-tirol.it","trentinostirol.it","trentinosud-tirol.it","trentinosüd-tirol.it","trentinosudtirol.it","trentinosüdtirol.it","trentinosued-tirol.it","trentinosuedtirol.it","trentinsud-tirol.it","trentinsüd-tirol.it","trentinsudtirol.it","trentinsüdtirol.it","trentinsued-tirol.it","trentinsuedtirol.it","tuscany.it","umb.it","umbria.it","val-d-aosta.it","val-daosta.it","vald-aosta.it","valdaosta.it","valle-aosta.it","valle-d-aosta.it","valle-daosta.it","valleaosta.it","valled-aosta.it","valledaosta.it","vallee-aoste.it","vallée-aoste.it","vallee-d-aoste.it","vallée-d-aoste.it","valleeaoste.it","valléeaoste.it","valleedaoste.it","valléedaoste.it","vao.it","vda.it","ven.it","veneto.it","ag.it","agrigento.it","al.it","alessandria.it","alto-adige.it","altoadige.it","an.it","ancona.it","andria-barletta-trani.it","andria-trani-barletta.it","andriabarlettatrani.it","andriatranibarletta.it","ao.it","aosta.it","aoste.it","ap.it","aq.it","aquila.it","ar.it","arezzo.it","ascoli-piceno.it","ascolipiceno.it","asti.it","at.it","av.it","avellino.it","ba.it","balsan-sudtirol.it","balsan-südtirol.it","balsan-suedtirol.it","balsan.it","bari.it","barletta-trani-andria.it","barlettatraniandria.it","belluno.it","benevento.it","bergamo.it","bg.it","bi.it","biella.it","bl.it","bn.it","bo.it","bologna.it","bolzano-altoadige.it","bolzano.it","bozen-sudtirol.it","bozen-südtirol.it","bozen-suedtirol.it","bozen.it","br.it","brescia.it","brindisi.it","bs.it","bt.it","bulsan-sudtirol.it","bulsan-südtirol.it","bulsan-suedtirol.it","bulsan.it","bz.it","ca.it","cagliari.it","caltanissetta.it","campidano-medio.it","campidanomedio.it","campobasso.it","carbonia-iglesias.it","carboniaiglesias.it","carrara-massa.it","carraramassa.it","caserta.it","catania.it","catanzaro.it","cb.it","ce.it","cesena-forli.it","cesena-forlì.it","cesenaforli.it","cesenaforlì.it","ch.it","chieti.it","ci.it","cl.it","cn.it","co.it","como.it","cosenza.it","cr.it","cremona.it","crotone.it","cs.it","ct.it","cuneo.it","cz.it","dell-ogliastra.it","dellogliastra.it","en.it","enna.it","fc.it","fe.it","fermo.it","ferrara.it","fg.it","fi.it","firenze.it","florence.it","fm.it","foggia.it","forli-cesena.it","forlì-cesena.it","forlicesena.it","forlìcesena.it","fr.it","frosinone.it","ge.it","genoa.it","genova.it","go.it","gorizia.it","gr.it","grosseto.it","iglesias-carbonia.it","iglesiascarbonia.it","im.it","imperia.it","is.it","isernia.it","kr.it","la-spezia.it","laquila.it","laspezia.it","latina.it","lc.it","le.it","lecce.it","lecco.it","li.it","livorno.it","lo.it","lodi.it","lt.it","lu.it","lucca.it","macerata.it","mantova.it","massa-carrara.it","massacarrara.it","matera.it","mb.it","mc.it","me.it","medio-campidano.it","mediocampidano.it","messina.it","mi.it","milan.it","milano.it","mn.it","mo.it","modena.it","monza-brianza.it","monza-e-della-brianza.it","monza.it","monzabrianza.it","monzaebrianza.it","monzaedellabrianza.it","ms.it","mt.it","na.it","naples.it","napoli.it","no.it","novara.it","nu.it","nuoro.it","og.it","ogliastra.it","olbia-tempio.it","olbiatempio.it","or.it","oristano.it","ot.it","pa.it","padova.it","padua.it","palermo.it","parma.it","pavia.it","pc.it","pd.it","pe.it","perugia.it","pesaro-urbino.it","pesarourbino.it","pescara.it","pg.it","pi.it","piacenza.it","pisa.it","pistoia.it","pn.it","po.it","pordenone.it","potenza.it","pr.it","prato.it","pt.it","pu.it","pv.it","pz.it","ra.it","ragusa.it","ravenna.it","rc.it","re.it","reggio-calabria.it","reggio-emilia.it","reggiocalabria.it","reggioemilia.it","rg.it","ri.it","rieti.it","rimini.it","rm.it","rn.it","ro.it","roma.it","rome.it","rovigo.it","sa.it","salerno.it","sassari.it","savona.it","si.it","siena.it","siracusa.it","so.it","sondrio.it","sp.it","sr.it","ss.it","suedtirol.it","südtirol.it","sv.it","ta.it","taranto.it","te.it","tempio-olbia.it","tempioolbia.it","teramo.it","terni.it","tn.it","to.it","torino.it","tp.it","tr.it","trani-andria-barletta.it","trani-barletta-andria.it","traniandriabarletta.it","tranibarlettaandria.it","trapani.it","trento.it","treviso.it","trieste.it","ts.it","turin.it","tv.it","ud.it","udine.it","urbino-pesaro.it","urbinopesaro.it","va.it","varese.it","vb.it","vc.it","ve.it","venezia.it","venice.it","verbania.it","vercelli.it","verona.it","vi.it","vibo-valentia.it","vibovalentia.it","vicenza.it","viterbo.it","vr.it","vs.it","vt.it","vv.it","je","co.je","net.je","org.je","*.jm","jo","com.jo","org.jo","net.jo","edu.jo","sch.jo","gov.jo","mil.jo","name.jo","jobs","jp","ac.jp","ad.jp","co.jp","ed.jp","go.jp","gr.jp","lg.jp","ne.jp","or.jp","aichi.jp","akita.jp","aomori.jp","chiba.jp","ehime.jp","fukui.jp","fukuoka.jp","fukushima.jp","gifu.jp","gunma.jp","hiroshima.jp","hokkaido.jp","hyogo.jp","ibaraki.jp","ishikawa.jp","iwate.jp","kagawa.jp","kagoshima.jp","kanagawa.jp","kochi.jp","kumamoto.jp","kyoto.jp","mie.jp","miyagi.jp","miyazaki.jp","nagano.jp","nagasaki.jp","nara.jp","niigata.jp","oita.jp","okayama.jp","okinawa.jp","osaka.jp","saga.jp","saitama.jp","shiga.jp","shimane.jp","shizuoka.jp","tochigi.jp","tokushima.jp","tokyo.jp","tottori.jp","toyama.jp","wakayama.jp","yamagata.jp","yamaguchi.jp","yamanashi.jp","栃木.jp","愛知.jp","愛媛.jp","兵庫.jp","熊本.jp","茨城.jp","北海道.jp","千葉.jp","和歌山.jp","長崎.jp","長野.jp","新潟.jp","青森.jp","静岡.jp","東京.jp","石川.jp","埼玉.jp","三重.jp","京都.jp","佐賀.jp","大分.jp","大阪.jp","奈良.jp","宮城.jp","宮崎.jp","富山.jp","山口.jp","山形.jp","山梨.jp","岩手.jp","岐阜.jp","岡山.jp","島根.jp","広島.jp","徳島.jp","沖縄.jp","滋賀.jp","神奈川.jp","福井.jp","福岡.jp","福島.jp","秋田.jp","群馬.jp","香川.jp","高知.jp","鳥取.jp","鹿児島.jp","*.kawasaki.jp","*.kitakyushu.jp","*.kobe.jp","*.nagoya.jp","*.sapporo.jp","*.sendai.jp","*.yokohama.jp","!city.kawasaki.jp","!city.kitakyushu.jp","!city.kobe.jp","!city.nagoya.jp","!city.sapporo.jp","!city.sendai.jp","!city.yokohama.jp","aisai.aichi.jp","ama.aichi.jp","anjo.aichi.jp","asuke.aichi.jp","chiryu.aichi.jp","chita.aichi.jp","fuso.aichi.jp","gamagori.aichi.jp","handa.aichi.jp","hazu.aichi.jp","hekinan.aichi.jp","higashiura.aichi.jp","ichinomiya.aichi.jp","inazawa.aichi.jp","inuyama.aichi.jp","isshiki.aichi.jp","iwakura.aichi.jp","kanie.aichi.jp","kariya.aichi.jp","kasugai.aichi.jp","kira.aichi.jp","kiyosu.aichi.jp","komaki.aichi.jp","konan.aichi.jp","kota.aichi.jp","mihama.aichi.jp","miyoshi.aichi.jp","nishio.aichi.jp","nisshin.aichi.jp","obu.aichi.jp","oguchi.aichi.jp","oharu.aichi.jp","okazaki.aichi.jp","owariasahi.aichi.jp","seto.aichi.jp","shikatsu.aichi.jp","shinshiro.aichi.jp","shitara.aichi.jp","tahara.aichi.jp","takahama.aichi.jp","tobishima.aichi.jp","toei.aichi.jp","togo.aichi.jp","tokai.aichi.jp","tokoname.aichi.jp","toyoake.aichi.jp","toyohashi.aichi.jp","toyokawa.aichi.jp","toyone.aichi.jp","toyota.aichi.jp","tsushima.aichi.jp","yatomi.aichi.jp","akita.akita.jp","daisen.akita.jp","fujisato.akita.jp","gojome.akita.jp","hachirogata.akita.jp","happou.akita.jp","higashinaruse.akita.jp","honjo.akita.jp","honjyo.akita.jp","ikawa.akita.jp","kamikoani.akita.jp","kamioka.akita.jp","katagami.akita.jp","kazuno.akita.jp","kitaakita.akita.jp","kosaka.akita.jp","kyowa.akita.jp","misato.akita.jp","mitane.akita.jp","moriyoshi.akita.jp","nikaho.akita.jp","noshiro.akita.jp","odate.akita.jp","oga.akita.jp","ogata.akita.jp","semboku.akita.jp","yokote.akita.jp","yurihonjo.akita.jp","aomori.aomori.jp","gonohe.aomori.jp","hachinohe.aomori.jp","hashikami.aomori.jp","hiranai.aomori.jp","hirosaki.aomori.jp","itayanagi.aomori.jp","kuroishi.aomori.jp","misawa.aomori.jp","mutsu.aomori.jp","nakadomari.aomori.jp","noheji.aomori.jp","oirase.aomori.jp","owani.aomori.jp","rokunohe.aomori.jp","sannohe.aomori.jp","shichinohe.aomori.jp","shingo.aomori.jp","takko.aomori.jp","towada.aomori.jp","tsugaru.aomori.jp","tsuruta.aomori.jp","abiko.chiba.jp","asahi.chiba.jp","chonan.chiba.jp","chosei.chiba.jp","choshi.chiba.jp","chuo.chiba.jp","funabashi.chiba.jp","futtsu.chiba.jp","hanamigawa.chiba.jp","ichihara.chiba.jp","ichikawa.chiba.jp","ichinomiya.chiba.jp","inzai.chiba.jp","isumi.chiba.jp","kamagaya.chiba.jp","kamogawa.chiba.jp","kashiwa.chiba.jp","katori.chiba.jp","katsuura.chiba.jp","kimitsu.chiba.jp","kisarazu.chiba.jp","kozaki.chiba.jp","kujukuri.chiba.jp","kyonan.chiba.jp","matsudo.chiba.jp","midori.chiba.jp","mihama.chiba.jp","minamiboso.chiba.jp","mobara.chiba.jp","mutsuzawa.chiba.jp","nagara.chiba.jp","nagareyama.chiba.jp","narashino.chiba.jp","narita.chiba.jp","noda.chiba.jp","oamishirasato.chiba.jp","omigawa.chiba.jp","onjuku.chiba.jp","otaki.chiba.jp","sakae.chiba.jp","sakura.chiba.jp","shimofusa.chiba.jp","shirako.chiba.jp","shiroi.chiba.jp","shisui.chiba.jp","sodegaura.chiba.jp","sosa.chiba.jp","tako.chiba.jp","tateyama.chiba.jp","togane.chiba.jp","tohnosho.chiba.jp","tomisato.chiba.jp","urayasu.chiba.jp","yachimata.chiba.jp","yachiyo.chiba.jp","yokaichiba.chiba.jp","yokoshibahikari.chiba.jp","yotsukaido.chiba.jp","ainan.ehime.jp","honai.ehime.jp","ikata.ehime.jp","imabari.ehime.jp","iyo.ehime.jp","kamijima.ehime.jp","kihoku.ehime.jp","kumakogen.ehime.jp","masaki.ehime.jp","matsuno.ehime.jp","matsuyama.ehime.jp","namikata.ehime.jp","niihama.ehime.jp","ozu.ehime.jp","saijo.ehime.jp","seiyo.ehime.jp","shikokuchuo.ehime.jp","tobe.ehime.jp","toon.ehime.jp","uchiko.ehime.jp","uwajima.ehime.jp","yawatahama.ehime.jp","echizen.fukui.jp","eiheiji.fukui.jp","fukui.fukui.jp","ikeda.fukui.jp","katsuyama.fukui.jp","mihama.fukui.jp","minamiechizen.fukui.jp","obama.fukui.jp","ohi.fukui.jp","ono.fukui.jp","sabae.fukui.jp","sakai.fukui.jp","takahama.fukui.jp","tsuruga.fukui.jp","wakasa.fukui.jp","ashiya.fukuoka.jp","buzen.fukuoka.jp","chikugo.fukuoka.jp","chikuho.fukuoka.jp","chikujo.fukuoka.jp","chikushino.fukuoka.jp","chikuzen.fukuoka.jp","chuo.fukuoka.jp","dazaifu.fukuoka.jp","fukuchi.fukuoka.jp","hakata.fukuoka.jp","higashi.fukuoka.jp","hirokawa.fukuoka.jp","hisayama.fukuoka.jp","iizuka.fukuoka.jp","inatsuki.fukuoka.jp","kaho.fukuoka.jp","kasuga.fukuoka.jp","kasuya.fukuoka.jp","kawara.fukuoka.jp","keisen.fukuoka.jp","koga.fukuoka.jp","kurate.fukuoka.jp","kurogi.fukuoka.jp","kurume.fukuoka.jp","minami.fukuoka.jp","miyako.fukuoka.jp","miyama.fukuoka.jp","miyawaka.fukuoka.jp","mizumaki.fukuoka.jp","munakata.fukuoka.jp","nakagawa.fukuoka.jp","nakama.fukuoka.jp","nishi.fukuoka.jp","nogata.fukuoka.jp","ogori.fukuoka.jp","okagaki.fukuoka.jp","okawa.fukuoka.jp","oki.fukuoka.jp","omuta.fukuoka.jp","onga.fukuoka.jp","onojo.fukuoka.jp","oto.fukuoka.jp","saigawa.fukuoka.jp","sasaguri.fukuoka.jp","shingu.fukuoka.jp","shinyoshitomi.fukuoka.jp","shonai.fukuoka.jp","soeda.fukuoka.jp","sue.fukuoka.jp","tachiarai.fukuoka.jp","tagawa.fukuoka.jp","takata.fukuoka.jp","toho.fukuoka.jp","toyotsu.fukuoka.jp","tsuiki.fukuoka.jp","ukiha.fukuoka.jp","umi.fukuoka.jp","usui.fukuoka.jp","yamada.fukuoka.jp","yame.fukuoka.jp","yanagawa.fukuoka.jp","yukuhashi.fukuoka.jp","aizubange.fukushima.jp","aizumisato.fukushima.jp","aizuwakamatsu.fukushima.jp","asakawa.fukushima.jp","bandai.fukushima.jp","date.fukushima.jp","fukushima.fukushima.jp","furudono.fukushima.jp","futaba.fukushima.jp","hanawa.fukushima.jp","higashi.fukushima.jp","hirata.fukushima.jp","hirono.fukushima.jp","iitate.fukushima.jp","inawashiro.fukushima.jp","ishikawa.fukushima.jp","iwaki.fukushima.jp","izumizaki.fukushima.jp","kagamiishi.fukushima.jp","kaneyama.fukushima.jp","kawamata.fukushima.jp","kitakata.fukushima.jp","kitashiobara.fukushima.jp","koori.fukushima.jp","koriyama.fukushima.jp","kunimi.fukushima.jp","miharu.fukushima.jp","mishima.fukushima.jp","namie.fukushima.jp","nango.fukushima.jp","nishiaizu.fukushima.jp","nishigo.fukushima.jp","okuma.fukushima.jp","omotego.fukushima.jp","ono.fukushima.jp","otama.fukushima.jp","samegawa.fukushima.jp","shimogo.fukushima.jp","shirakawa.fukushima.jp","showa.fukushima.jp","soma.fukushima.jp","sukagawa.fukushima.jp","taishin.fukushima.jp","tamakawa.fukushima.jp","tanagura.fukushima.jp","tenei.fukushima.jp","yabuki.fukushima.jp","yamato.fukushima.jp","yamatsuri.fukushima.jp","yanaizu.fukushima.jp","yugawa.fukushima.jp","anpachi.gifu.jp","ena.gifu.jp","gifu.gifu.jp","ginan.gifu.jp","godo.gifu.jp","gujo.gifu.jp","hashima.gifu.jp","hichiso.gifu.jp","hida.gifu.jp","higashishirakawa.gifu.jp","ibigawa.gifu.jp","ikeda.gifu.jp","kakamigahara.gifu.jp","kani.gifu.jp","kasahara.gifu.jp","kasamatsu.gifu.jp","kawaue.gifu.jp","kitagata.gifu.jp","mino.gifu.jp","minokamo.gifu.jp","mitake.gifu.jp","mizunami.gifu.jp","motosu.gifu.jp","nakatsugawa.gifu.jp","ogaki.gifu.jp","sakahogi.gifu.jp","seki.gifu.jp","sekigahara.gifu.jp","shirakawa.gifu.jp","tajimi.gifu.jp","takayama.gifu.jp","tarui.gifu.jp","toki.gifu.jp","tomika.gifu.jp","wanouchi.gifu.jp","yamagata.gifu.jp","yaotsu.gifu.jp","yoro.gifu.jp","annaka.gunma.jp","chiyoda.gunma.jp","fujioka.gunma.jp","higashiagatsuma.gunma.jp","isesaki.gunma.jp","itakura.gunma.jp","kanna.gunma.jp","kanra.gunma.jp","katashina.gunma.jp","kawaba.gunma.jp","kiryu.gunma.jp","kusatsu.gunma.jp","maebashi.gunma.jp","meiwa.gunma.jp","midori.gunma.jp","minakami.gunma.jp","naganohara.gunma.jp","nakanojo.gunma.jp","nanmoku.gunma.jp","numata.gunma.jp","oizumi.gunma.jp","ora.gunma.jp","ota.gunma.jp","shibukawa.gunma.jp","shimonita.gunma.jp","shinto.gunma.jp","showa.gunma.jp","takasaki.gunma.jp","takayama.gunma.jp","tamamura.gunma.jp","tatebayashi.gunma.jp","tomioka.gunma.jp","tsukiyono.gunma.jp","tsumagoi.gunma.jp","ueno.gunma.jp","yoshioka.gunma.jp","asaminami.hiroshima.jp","daiwa.hiroshima.jp","etajima.hiroshima.jp","fuchu.hiroshima.jp","fukuyama.hiroshima.jp","hatsukaichi.hiroshima.jp","higashihiroshima.hiroshima.jp","hongo.hiroshima.jp","jinsekikogen.hiroshima.jp","kaita.hiroshima.jp","kui.hiroshima.jp","kumano.hiroshima.jp","kure.hiroshima.jp","mihara.hiroshima.jp","miyoshi.hiroshima.jp","naka.hiroshima.jp","onomichi.hiroshima.jp","osakikamijima.hiroshima.jp","otake.hiroshima.jp","saka.hiroshima.jp","sera.hiroshima.jp","seranishi.hiroshima.jp","shinichi.hiroshima.jp","shobara.hiroshima.jp","takehara.hiroshima.jp","abashiri.hokkaido.jp","abira.hokkaido.jp","aibetsu.hokkaido.jp","akabira.hokkaido.jp","akkeshi.hokkaido.jp","asahikawa.hokkaido.jp","ashibetsu.hokkaido.jp","ashoro.hokkaido.jp","assabu.hokkaido.jp","atsuma.hokkaido.jp","bibai.hokkaido.jp","biei.hokkaido.jp","bifuka.hokkaido.jp","bihoro.hokkaido.jp","biratori.hokkaido.jp","chippubetsu.hokkaido.jp","chitose.hokkaido.jp","date.hokkaido.jp","ebetsu.hokkaido.jp","embetsu.hokkaido.jp","eniwa.hokkaido.jp","erimo.hokkaido.jp","esan.hokkaido.jp","esashi.hokkaido.jp","fukagawa.hokkaido.jp","fukushima.hokkaido.jp","furano.hokkaido.jp","furubira.hokkaido.jp","haboro.hokkaido.jp","hakodate.hokkaido.jp","hamatonbetsu.hokkaido.jp","hidaka.hokkaido.jp","higashikagura.hokkaido.jp","higashikawa.hokkaido.jp","hiroo.hokkaido.jp","hokuryu.hokkaido.jp","hokuto.hokkaido.jp","honbetsu.hokkaido.jp","horokanai.hokkaido.jp","horonobe.hokkaido.jp","ikeda.hokkaido.jp","imakane.hokkaido.jp","ishikari.hokkaido.jp","iwamizawa.hokkaido.jp","iwanai.hokkaido.jp","kamifurano.hokkaido.jp","kamikawa.hokkaido.jp","kamishihoro.hokkaido.jp","kamisunagawa.hokkaido.jp","kamoenai.hokkaido.jp","kayabe.hokkaido.jp","kembuchi.hokkaido.jp","kikonai.hokkaido.jp","kimobetsu.hokkaido.jp","kitahiroshima.hokkaido.jp","kitami.hokkaido.jp","kiyosato.hokkaido.jp","koshimizu.hokkaido.jp","kunneppu.hokkaido.jp","kuriyama.hokkaido.jp","kuromatsunai.hokkaido.jp","kushiro.hokkaido.jp","kutchan.hokkaido.jp","kyowa.hokkaido.jp","mashike.hokkaido.jp","matsumae.hokkaido.jp","mikasa.hokkaido.jp","minamifurano.hokkaido.jp","mombetsu.hokkaido.jp","moseushi.hokkaido.jp","mukawa.hokkaido.jp","muroran.hokkaido.jp","naie.hokkaido.jp","nakagawa.hokkaido.jp","nakasatsunai.hokkaido.jp","nakatombetsu.hokkaido.jp","nanae.hokkaido.jp","nanporo.hokkaido.jp","nayoro.hokkaido.jp","nemuro.hokkaido.jp","niikappu.hokkaido.jp","niki.hokkaido.jp","nishiokoppe.hokkaido.jp","noboribetsu.hokkaido.jp","numata.hokkaido.jp","obihiro.hokkaido.jp","obira.hokkaido.jp","oketo.hokkaido.jp","okoppe.hokkaido.jp","otaru.hokkaido.jp","otobe.hokkaido.jp","otofuke.hokkaido.jp","otoineppu.hokkaido.jp","oumu.hokkaido.jp","ozora.hokkaido.jp","pippu.hokkaido.jp","rankoshi.hokkaido.jp","rebun.hokkaido.jp","rikubetsu.hokkaido.jp","rishiri.hokkaido.jp","rishirifuji.hokkaido.jp","saroma.hokkaido.jp","sarufutsu.hokkaido.jp","shakotan.hokkaido.jp","shari.hokkaido.jp","shibecha.hokkaido.jp","shibetsu.hokkaido.jp","shikabe.hokkaido.jp","shikaoi.hokkaido.jp","shimamaki.hokkaido.jp","shimizu.hokkaido.jp","shimokawa.hokkaido.jp","shinshinotsu.hokkaido.jp","shintoku.hokkaido.jp","shiranuka.hokkaido.jp","shiraoi.hokkaido.jp","shiriuchi.hokkaido.jp","sobetsu.hokkaido.jp","sunagawa.hokkaido.jp","taiki.hokkaido.jp","takasu.hokkaido.jp","takikawa.hokkaido.jp","takinoue.hokkaido.jp","teshikaga.hokkaido.jp","tobetsu.hokkaido.jp","tohma.hokkaido.jp","tomakomai.hokkaido.jp","tomari.hokkaido.jp","toya.hokkaido.jp","toyako.hokkaido.jp","toyotomi.hokkaido.jp","toyoura.hokkaido.jp","tsubetsu.hokkaido.jp","tsukigata.hokkaido.jp","urakawa.hokkaido.jp","urausu.hokkaido.jp","uryu.hokkaido.jp","utashinai.hokkaido.jp","wakkanai.hokkaido.jp","wassamu.hokkaido.jp","yakumo.hokkaido.jp","yoichi.hokkaido.jp","aioi.hyogo.jp","akashi.hyogo.jp","ako.hyogo.jp","amagasaki.hyogo.jp","aogaki.hyogo.jp","asago.hyogo.jp","ashiya.hyogo.jp","awaji.hyogo.jp","fukusaki.hyogo.jp","goshiki.hyogo.jp","harima.hyogo.jp","himeji.hyogo.jp","ichikawa.hyogo.jp","inagawa.hyogo.jp","itami.hyogo.jp","kakogawa.hyogo.jp","kamigori.hyogo.jp","kamikawa.hyogo.jp","kasai.hyogo.jp","kasuga.hyogo.jp","kawanishi.hyogo.jp","miki.hyogo.jp","minamiawaji.hyogo.jp","nishinomiya.hyogo.jp","nishiwaki.hyogo.jp","ono.hyogo.jp","sanda.hyogo.jp","sannan.hyogo.jp","sasayama.hyogo.jp","sayo.hyogo.jp","shingu.hyogo.jp","shinonsen.hyogo.jp","shiso.hyogo.jp","sumoto.hyogo.jp","taishi.hyogo.jp","taka.hyogo.jp","takarazuka.hyogo.jp","takasago.hyogo.jp","takino.hyogo.jp","tamba.hyogo.jp","tatsuno.hyogo.jp","toyooka.hyogo.jp","yabu.hyogo.jp","yashiro.hyogo.jp","yoka.hyogo.jp","yokawa.hyogo.jp","ami.ibaraki.jp","asahi.ibaraki.jp","bando.ibaraki.jp","chikusei.ibaraki.jp","daigo.ibaraki.jp","fujishiro.ibaraki.jp","hitachi.ibaraki.jp","hitachinaka.ibaraki.jp","hitachiomiya.ibaraki.jp","hitachiota.ibaraki.jp","ibaraki.ibaraki.jp","ina.ibaraki.jp","inashiki.ibaraki.jp","itako.ibaraki.jp","iwama.ibaraki.jp","joso.ibaraki.jp","kamisu.ibaraki.jp","kasama.ibaraki.jp","kashima.ibaraki.jp","kasumigaura.ibaraki.jp","koga.ibaraki.jp","miho.ibaraki.jp","mito.ibaraki.jp","moriya.ibaraki.jp","naka.ibaraki.jp","namegata.ibaraki.jp","oarai.ibaraki.jp","ogawa.ibaraki.jp","omitama.ibaraki.jp","ryugasaki.ibaraki.jp","sakai.ibaraki.jp","sakuragawa.ibaraki.jp","shimodate.ibaraki.jp","shimotsuma.ibaraki.jp","shirosato.ibaraki.jp","sowa.ibaraki.jp","suifu.ibaraki.jp","takahagi.ibaraki.jp","tamatsukuri.ibaraki.jp","tokai.ibaraki.jp","tomobe.ibaraki.jp","tone.ibaraki.jp","toride.ibaraki.jp","tsuchiura.ibaraki.jp","tsukuba.ibaraki.jp","uchihara.ibaraki.jp","ushiku.ibaraki.jp","yachiyo.ibaraki.jp","yamagata.ibaraki.jp","yawara.ibaraki.jp","yuki.ibaraki.jp","anamizu.ishikawa.jp","hakui.ishikawa.jp","hakusan.ishikawa.jp","kaga.ishikawa.jp","kahoku.ishikawa.jp","kanazawa.ishikawa.jp","kawakita.ishikawa.jp","komatsu.ishikawa.jp","nakanoto.ishikawa.jp","nanao.ishikawa.jp","nomi.ishikawa.jp","nonoichi.ishikawa.jp","noto.ishikawa.jp","shika.ishikawa.jp","suzu.ishikawa.jp","tsubata.ishikawa.jp","tsurugi.ishikawa.jp","uchinada.ishikawa.jp","wajima.ishikawa.jp","fudai.iwate.jp","fujisawa.iwate.jp","hanamaki.iwate.jp","hiraizumi.iwate.jp","hirono.iwate.jp","ichinohe.iwate.jp","ichinoseki.iwate.jp","iwaizumi.iwate.jp","iwate.iwate.jp","joboji.iwate.jp","kamaishi.iwate.jp","kanegasaki.iwate.jp","karumai.iwate.jp","kawai.iwate.jp","kitakami.iwate.jp","kuji.iwate.jp","kunohe.iwate.jp","kuzumaki.iwate.jp","miyako.iwate.jp","mizusawa.iwate.jp","morioka.iwate.jp","ninohe.iwate.jp","noda.iwate.jp","ofunato.iwate.jp","oshu.iwate.jp","otsuchi.iwate.jp","rikuzentakata.iwate.jp","shiwa.iwate.jp","shizukuishi.iwate.jp","sumita.iwate.jp","tanohata.iwate.jp","tono.iwate.jp","yahaba.iwate.jp","yamada.iwate.jp","ayagawa.kagawa.jp","higashikagawa.kagawa.jp","kanonji.kagawa.jp","kotohira.kagawa.jp","manno.kagawa.jp","marugame.kagawa.jp","mitoyo.kagawa.jp","naoshima.kagawa.jp","sanuki.kagawa.jp","tadotsu.kagawa.jp","takamatsu.kagawa.jp","tonosho.kagawa.jp","uchinomi.kagawa.jp","utazu.kagawa.jp","zentsuji.kagawa.jp","akune.kagoshima.jp","amami.kagoshima.jp","hioki.kagoshima.jp","isa.kagoshima.jp","isen.kagoshima.jp","izumi.kagoshima.jp","kagoshima.kagoshima.jp","kanoya.kagoshima.jp","kawanabe.kagoshima.jp","kinko.kagoshima.jp","kouyama.kagoshima.jp","makurazaki.kagoshima.jp","matsumoto.kagoshima.jp","minamitane.kagoshima.jp","nakatane.kagoshima.jp","nishinoomote.kagoshima.jp","satsumasendai.kagoshima.jp","soo.kagoshima.jp","tarumizu.kagoshima.jp","yusui.kagoshima.jp","aikawa.kanagawa.jp","atsugi.kanagawa.jp","ayase.kanagawa.jp","chigasaki.kanagawa.jp","ebina.kanagawa.jp","fujisawa.kanagawa.jp","hadano.kanagawa.jp","hakone.kanagawa.jp","hiratsuka.kanagawa.jp","isehara.kanagawa.jp","kaisei.kanagawa.jp","kamakura.kanagawa.jp","kiyokawa.kanagawa.jp","matsuda.kanagawa.jp","minamiashigara.kanagawa.jp","miura.kanagawa.jp","nakai.kanagawa.jp","ninomiya.kanagawa.jp","odawara.kanagawa.jp","oi.kanagawa.jp","oiso.kanagawa.jp","sagamihara.kanagawa.jp","samukawa.kanagawa.jp","tsukui.kanagawa.jp","yamakita.kanagawa.jp","yamato.kanagawa.jp","yokosuka.kanagawa.jp","yugawara.kanagawa.jp","zama.kanagawa.jp","zushi.kanagawa.jp","aki.kochi.jp","geisei.kochi.jp","hidaka.kochi.jp","higashitsuno.kochi.jp","ino.kochi.jp","kagami.kochi.jp","kami.kochi.jp","kitagawa.kochi.jp","kochi.kochi.jp","mihara.kochi.jp","motoyama.kochi.jp","muroto.kochi.jp","nahari.kochi.jp","nakamura.kochi.jp","nankoku.kochi.jp","nishitosa.kochi.jp","niyodogawa.kochi.jp","ochi.kochi.jp","okawa.kochi.jp","otoyo.kochi.jp","otsuki.kochi.jp","sakawa.kochi.jp","sukumo.kochi.jp","susaki.kochi.jp","tosa.kochi.jp","tosashimizu.kochi.jp","toyo.kochi.jp","tsuno.kochi.jp","umaji.kochi.jp","yasuda.kochi.jp","yusuhara.kochi.jp","amakusa.kumamoto.jp","arao.kumamoto.jp","aso.kumamoto.jp","choyo.kumamoto.jp","gyokuto.kumamoto.jp","kamiamakusa.kumamoto.jp","kikuchi.kumamoto.jp","kumamoto.kumamoto.jp","mashiki.kumamoto.jp","mifune.kumamoto.jp","minamata.kumamoto.jp","minamioguni.kumamoto.jp","nagasu.kumamoto.jp","nishihara.kumamoto.jp","oguni.kumamoto.jp","ozu.kumamoto.jp","sumoto.kumamoto.jp","takamori.kumamoto.jp","uki.kumamoto.jp","uto.kumamoto.jp","yamaga.kumamoto.jp","yamato.kumamoto.jp","yatsushiro.kumamoto.jp","ayabe.kyoto.jp","fukuchiyama.kyoto.jp","higashiyama.kyoto.jp","ide.kyoto.jp","ine.kyoto.jp","joyo.kyoto.jp","kameoka.kyoto.jp","kamo.kyoto.jp","kita.kyoto.jp","kizu.kyoto.jp","kumiyama.kyoto.jp","kyotamba.kyoto.jp","kyotanabe.kyoto.jp","kyotango.kyoto.jp","maizuru.kyoto.jp","minami.kyoto.jp","minamiyamashiro.kyoto.jp","miyazu.kyoto.jp","muko.kyoto.jp","nagaokakyo.kyoto.jp","nakagyo.kyoto.jp","nantan.kyoto.jp","oyamazaki.kyoto.jp","sakyo.kyoto.jp","seika.kyoto.jp","tanabe.kyoto.jp","uji.kyoto.jp","ujitawara.kyoto.jp","wazuka.kyoto.jp","yamashina.kyoto.jp","yawata.kyoto.jp","asahi.mie.jp","inabe.mie.jp","ise.mie.jp","kameyama.mie.jp","kawagoe.mie.jp","kiho.mie.jp","kisosaki.mie.jp","kiwa.mie.jp","komono.mie.jp","kumano.mie.jp","kuwana.mie.jp","matsusaka.mie.jp","meiwa.mie.jp","mihama.mie.jp","minamiise.mie.jp","misugi.mie.jp","miyama.mie.jp","nabari.mie.jp","shima.mie.jp","suzuka.mie.jp","tado.mie.jp","taiki.mie.jp","taki.mie.jp","tamaki.mie.jp","toba.mie.jp","tsu.mie.jp","udono.mie.jp","ureshino.mie.jp","watarai.mie.jp","yokkaichi.mie.jp","furukawa.miyagi.jp","higashimatsushima.miyagi.jp","ishinomaki.miyagi.jp","iwanuma.miyagi.jp","kakuda.miyagi.jp","kami.miyagi.jp","kawasaki.miyagi.jp","marumori.miyagi.jp","matsushima.miyagi.jp","minamisanriku.miyagi.jp","misato.miyagi.jp","murata.miyagi.jp","natori.miyagi.jp","ogawara.miyagi.jp","ohira.miyagi.jp","onagawa.miyagi.jp","osaki.miyagi.jp","rifu.miyagi.jp","semine.miyagi.jp","shibata.miyagi.jp","shichikashuku.miyagi.jp","shikama.miyagi.jp","shiogama.miyagi.jp","shiroishi.miyagi.jp","tagajo.miyagi.jp","taiwa.miyagi.jp","tome.miyagi.jp","tomiya.miyagi.jp","wakuya.miyagi.jp","watari.miyagi.jp","yamamoto.miyagi.jp","zao.miyagi.jp","aya.miyazaki.jp","ebino.miyazaki.jp","gokase.miyazaki.jp","hyuga.miyazaki.jp","kadogawa.miyazaki.jp","kawaminami.miyazaki.jp","kijo.miyazaki.jp","kitagawa.miyazaki.jp","kitakata.miyazaki.jp","kitaura.miyazaki.jp","kobayashi.miyazaki.jp","kunitomi.miyazaki.jp","kushima.miyazaki.jp","mimata.miyazaki.jp","miyakonojo.miyazaki.jp","miyazaki.miyazaki.jp","morotsuka.miyazaki.jp","nichinan.miyazaki.jp","nishimera.miyazaki.jp","nobeoka.miyazaki.jp","saito.miyazaki.jp","shiiba.miyazaki.jp","shintomi.miyazaki.jp","takaharu.miyazaki.jp","takanabe.miyazaki.jp","takazaki.miyazaki.jp","tsuno.miyazaki.jp","achi.nagano.jp","agematsu.nagano.jp","anan.nagano.jp","aoki.nagano.jp","asahi.nagano.jp","azumino.nagano.jp","chikuhoku.nagano.jp","chikuma.nagano.jp","chino.nagano.jp","fujimi.nagano.jp","hakuba.nagano.jp","hara.nagano.jp","hiraya.nagano.jp","iida.nagano.jp","iijima.nagano.jp","iiyama.nagano.jp","iizuna.nagano.jp","ikeda.nagano.jp","ikusaka.nagano.jp","ina.nagano.jp","karuizawa.nagano.jp","kawakami.nagano.jp","kiso.nagano.jp","kisofukushima.nagano.jp","kitaaiki.nagano.jp","komagane.nagano.jp","komoro.nagano.jp","matsukawa.nagano.jp","matsumoto.nagano.jp","miasa.nagano.jp","minamiaiki.nagano.jp","minamimaki.nagano.jp","minamiminowa.nagano.jp","minowa.nagano.jp","miyada.nagano.jp","miyota.nagano.jp","mochizuki.nagano.jp","nagano.nagano.jp","nagawa.nagano.jp","nagiso.nagano.jp","nakagawa.nagano.jp","nakano.nagano.jp","nozawaonsen.nagano.jp","obuse.nagano.jp","ogawa.nagano.jp","okaya.nagano.jp","omachi.nagano.jp","omi.nagano.jp","ookuwa.nagano.jp","ooshika.nagano.jp","otaki.nagano.jp","otari.nagano.jp","sakae.nagano.jp","sakaki.nagano.jp","saku.nagano.jp","sakuho.nagano.jp","shimosuwa.nagano.jp","shinanomachi.nagano.jp","shiojiri.nagano.jp","suwa.nagano.jp","suzaka.nagano.jp","takagi.nagano.jp","takamori.nagano.jp","takayama.nagano.jp","tateshina.nagano.jp","tatsuno.nagano.jp","togakushi.nagano.jp","togura.nagano.jp","tomi.nagano.jp","ueda.nagano.jp","wada.nagano.jp","yamagata.nagano.jp","yamanouchi.nagano.jp","yasaka.nagano.jp","yasuoka.nagano.jp","chijiwa.nagasaki.jp","futsu.nagasaki.jp","goto.nagasaki.jp","hasami.nagasaki.jp","hirado.nagasaki.jp","iki.nagasaki.jp","isahaya.nagasaki.jp","kawatana.nagasaki.jp","kuchinotsu.nagasaki.jp","matsuura.nagasaki.jp","nagasaki.nagasaki.jp","obama.nagasaki.jp","omura.nagasaki.jp","oseto.nagasaki.jp","saikai.nagasaki.jp","sasebo.nagasaki.jp","seihi.nagasaki.jp","shimabara.nagasaki.jp","shinkamigoto.nagasaki.jp","togitsu.nagasaki.jp","tsushima.nagasaki.jp","unzen.nagasaki.jp","ando.nara.jp","gose.nara.jp","heguri.nara.jp","higashiyoshino.nara.jp","ikaruga.nara.jp","ikoma.nara.jp","kamikitayama.nara.jp","kanmaki.nara.jp","kashiba.nara.jp","kashihara.nara.jp","katsuragi.nara.jp","kawai.nara.jp","kawakami.nara.jp","kawanishi.nara.jp","koryo.nara.jp","kurotaki.nara.jp","mitsue.nara.jp","miyake.nara.jp","nara.nara.jp","nosegawa.nara.jp","oji.nara.jp","ouda.nara.jp","oyodo.nara.jp","sakurai.nara.jp","sango.nara.jp","shimoichi.nara.jp","shimokitayama.nara.jp","shinjo.nara.jp","soni.nara.jp","takatori.nara.jp","tawaramoto.nara.jp","tenkawa.nara.jp","tenri.nara.jp","uda.nara.jp","yamatokoriyama.nara.jp","yamatotakada.nara.jp","yamazoe.nara.jp","yoshino.nara.jp","aga.niigata.jp","agano.niigata.jp","gosen.niigata.jp","itoigawa.niigata.jp","izumozaki.niigata.jp","joetsu.niigata.jp","kamo.niigata.jp","kariwa.niigata.jp","kashiwazaki.niigata.jp","minamiuonuma.niigata.jp","mitsuke.niigata.jp","muika.niigata.jp","murakami.niigata.jp","myoko.niigata.jp","nagaoka.niigata.jp","niigata.niigata.jp","ojiya.niigata.jp","omi.niigata.jp","sado.niigata.jp","sanjo.niigata.jp","seiro.niigata.jp","seirou.niigata.jp","sekikawa.niigata.jp","shibata.niigata.jp","tagami.niigata.jp","tainai.niigata.jp","tochio.niigata.jp","tokamachi.niigata.jp","tsubame.niigata.jp","tsunan.niigata.jp","uonuma.niigata.jp","yahiko.niigata.jp","yoita.niigata.jp","yuzawa.niigata.jp","beppu.oita.jp","bungoono.oita.jp","bungotakada.oita.jp","hasama.oita.jp","hiji.oita.jp","himeshima.oita.jp","hita.oita.jp","kamitsue.oita.jp","kokonoe.oita.jp","kuju.oita.jp","kunisaki.oita.jp","kusu.oita.jp","oita.oita.jp","saiki.oita.jp","taketa.oita.jp","tsukumi.oita.jp","usa.oita.jp","usuki.oita.jp","yufu.oita.jp","akaiwa.okayama.jp","asakuchi.okayama.jp","bizen.okayama.jp","hayashima.okayama.jp","ibara.okayama.jp","kagamino.okayama.jp","kasaoka.okayama.jp","kibichuo.okayama.jp","kumenan.okayama.jp","kurashiki.okayama.jp","maniwa.okayama.jp","misaki.okayama.jp","nagi.okayama.jp","niimi.okayama.jp","nishiawakura.okayama.jp","okayama.okayama.jp","satosho.okayama.jp","setouchi.okayama.jp","shinjo.okayama.jp","shoo.okayama.jp","soja.okayama.jp","takahashi.okayama.jp","tamano.okayama.jp","tsuyama.okayama.jp","wake.okayama.jp","yakage.okayama.jp","aguni.okinawa.jp","ginowan.okinawa.jp","ginoza.okinawa.jp","gushikami.okinawa.jp","haebaru.okinawa.jp","higashi.okinawa.jp","hirara.okinawa.jp","iheya.okinawa.jp","ishigaki.okinawa.jp","ishikawa.okinawa.jp","itoman.okinawa.jp","izena.okinawa.jp","kadena.okinawa.jp","kin.okinawa.jp","kitadaito.okinawa.jp","kitanakagusuku.okinawa.jp","kumejima.okinawa.jp","kunigami.okinawa.jp","minamidaito.okinawa.jp","motobu.okinawa.jp","nago.okinawa.jp","naha.okinawa.jp","nakagusuku.okinawa.jp","nakijin.okinawa.jp","nanjo.okinawa.jp","nishihara.okinawa.jp","ogimi.okinawa.jp","okinawa.okinawa.jp","onna.okinawa.jp","shimoji.okinawa.jp","taketomi.okinawa.jp","tarama.okinawa.jp","tokashiki.okinawa.jp","tomigusuku.okinawa.jp","tonaki.okinawa.jp","urasoe.okinawa.jp","uruma.okinawa.jp","yaese.okinawa.jp","yomitan.okinawa.jp","yonabaru.okinawa.jp","yonaguni.okinawa.jp","zamami.okinawa.jp","abeno.osaka.jp","chihayaakasaka.osaka.jp","chuo.osaka.jp","daito.osaka.jp","fujiidera.osaka.jp","habikino.osaka.jp","hannan.osaka.jp","higashiosaka.osaka.jp","higashisumiyoshi.osaka.jp","higashiyodogawa.osaka.jp","hirakata.osaka.jp","ibaraki.osaka.jp","ikeda.osaka.jp","izumi.osaka.jp","izumiotsu.osaka.jp","izumisano.osaka.jp","kadoma.osaka.jp","kaizuka.osaka.jp","kanan.osaka.jp","kashiwara.osaka.jp","katano.osaka.jp","kawachinagano.osaka.jp","kishiwada.osaka.jp","kita.osaka.jp","kumatori.osaka.jp","matsubara.osaka.jp","minato.osaka.jp","minoh.osaka.jp","misaki.osaka.jp","moriguchi.osaka.jp","neyagawa.osaka.jp","nishi.osaka.jp","nose.osaka.jp","osakasayama.osaka.jp","sakai.osaka.jp","sayama.osaka.jp","sennan.osaka.jp","settsu.osaka.jp","shijonawate.osaka.jp","shimamoto.osaka.jp","suita.osaka.jp","tadaoka.osaka.jp","taishi.osaka.jp","tajiri.osaka.jp","takaishi.osaka.jp","takatsuki.osaka.jp","tondabayashi.osaka.jp","toyonaka.osaka.jp","toyono.osaka.jp","yao.osaka.jp","ariake.saga.jp","arita.saga.jp","fukudomi.saga.jp","genkai.saga.jp","hamatama.saga.jp","hizen.saga.jp","imari.saga.jp","kamimine.saga.jp","kanzaki.saga.jp","karatsu.saga.jp","kashima.saga.jp","kitagata.saga.jp","kitahata.saga.jp","kiyama.saga.jp","kouhoku.saga.jp","kyuragi.saga.jp","nishiarita.saga.jp","ogi.saga.jp","omachi.saga.jp","ouchi.saga.jp","saga.saga.jp","shiroishi.saga.jp","taku.saga.jp","tara.saga.jp","tosu.saga.jp","yoshinogari.saga.jp","arakawa.saitama.jp","asaka.saitama.jp","chichibu.saitama.jp","fujimi.saitama.jp","fujimino.saitama.jp","fukaya.saitama.jp","hanno.saitama.jp","hanyu.saitama.jp","hasuda.saitama.jp","hatogaya.saitama.jp","hatoyama.saitama.jp","hidaka.saitama.jp","higashichichibu.saitama.jp","higashimatsuyama.saitama.jp","honjo.saitama.jp","ina.saitama.jp","iruma.saitama.jp","iwatsuki.saitama.jp","kamiizumi.saitama.jp","kamikawa.saitama.jp","kamisato.saitama.jp","kasukabe.saitama.jp","kawagoe.saitama.jp","kawaguchi.saitama.jp","kawajima.saitama.jp","kazo.saitama.jp","kitamoto.saitama.jp","koshigaya.saitama.jp","kounosu.saitama.jp","kuki.saitama.jp","kumagaya.saitama.jp","matsubushi.saitama.jp","minano.saitama.jp","misato.saitama.jp","miyashiro.saitama.jp","miyoshi.saitama.jp","moroyama.saitama.jp","nagatoro.saitama.jp","namegawa.saitama.jp","niiza.saitama.jp","ogano.saitama.jp","ogawa.saitama.jp","ogose.saitama.jp","okegawa.saitama.jp","omiya.saitama.jp","otaki.saitama.jp","ranzan.saitama.jp","ryokami.saitama.jp","saitama.saitama.jp","sakado.saitama.jp","satte.saitama.jp","sayama.saitama.jp","shiki.saitama.jp","shiraoka.saitama.jp","soka.saitama.jp","sugito.saitama.jp","toda.saitama.jp","tokigawa.saitama.jp","tokorozawa.saitama.jp","tsurugashima.saitama.jp","urawa.saitama.jp","warabi.saitama.jp","yashio.saitama.jp","yokoze.saitama.jp","yono.saitama.jp","yorii.saitama.jp","yoshida.saitama.jp","yoshikawa.saitama.jp","yoshimi.saitama.jp","aisho.shiga.jp","gamo.shiga.jp","higashiomi.shiga.jp","hikone.shiga.jp","koka.shiga.jp","konan.shiga.jp","kosei.shiga.jp","koto.shiga.jp","kusatsu.shiga.jp","maibara.shiga.jp","moriyama.shiga.jp","nagahama.shiga.jp","nishiazai.shiga.jp","notogawa.shiga.jp","omihachiman.shiga.jp","otsu.shiga.jp","ritto.shiga.jp","ryuoh.shiga.jp","takashima.shiga.jp","takatsuki.shiga.jp","torahime.shiga.jp","toyosato.shiga.jp","yasu.shiga.jp","akagi.shimane.jp","ama.shimane.jp","gotsu.shimane.jp","hamada.shimane.jp","higashiizumo.shimane.jp","hikawa.shimane.jp","hikimi.shimane.jp","izumo.shimane.jp","kakinoki.shimane.jp","masuda.shimane.jp","matsue.shimane.jp","misato.shimane.jp","nishinoshima.shimane.jp","ohda.shimane.jp","okinoshima.shimane.jp","okuizumo.shimane.jp","shimane.shimane.jp","tamayu.shimane.jp","tsuwano.shimane.jp","unnan.shimane.jp","yakumo.shimane.jp","yasugi.shimane.jp","yatsuka.shimane.jp","arai.shizuoka.jp","atami.shizuoka.jp","fuji.shizuoka.jp","fujieda.shizuoka.jp","fujikawa.shizuoka.jp","fujinomiya.shizuoka.jp","fukuroi.shizuoka.jp","gotemba.shizuoka.jp","haibara.shizuoka.jp","hamamatsu.shizuoka.jp","higashiizu.shizuoka.jp","ito.shizuoka.jp","iwata.shizuoka.jp","izu.shizuoka.jp","izunokuni.shizuoka.jp","kakegawa.shizuoka.jp","kannami.shizuoka.jp","kawanehon.shizuoka.jp","kawazu.shizuoka.jp","kikugawa.shizuoka.jp","kosai.shizuoka.jp","makinohara.shizuoka.jp","matsuzaki.shizuoka.jp","minamiizu.shizuoka.jp","mishima.shizuoka.jp","morimachi.shizuoka.jp","nishiizu.shizuoka.jp","numazu.shizuoka.jp","omaezaki.shizuoka.jp","shimada.shizuoka.jp","shimizu.shizuoka.jp","shimoda.shizuoka.jp","shizuoka.shizuoka.jp","susono.shizuoka.jp","yaizu.shizuoka.jp","yoshida.shizuoka.jp","ashikaga.tochigi.jp","bato.tochigi.jp","haga.tochigi.jp","ichikai.tochigi.jp","iwafune.tochigi.jp","kaminokawa.tochigi.jp","kanuma.tochigi.jp","karasuyama.tochigi.jp","kuroiso.tochigi.jp","mashiko.tochigi.jp","mibu.tochigi.jp","moka.tochigi.jp","motegi.tochigi.jp","nasu.tochigi.jp","nasushiobara.tochigi.jp","nikko.tochigi.jp","nishikata.tochigi.jp","nogi.tochigi.jp","ohira.tochigi.jp","ohtawara.tochigi.jp","oyama.tochigi.jp","sakura.tochigi.jp","sano.tochigi.jp","shimotsuke.tochigi.jp","shioya.tochigi.jp","takanezawa.tochigi.jp","tochigi.tochigi.jp","tsuga.tochigi.jp","ujiie.tochigi.jp","utsunomiya.tochigi.jp","yaita.tochigi.jp","aizumi.tokushima.jp","anan.tokushima.jp","ichiba.tokushima.jp","itano.tokushima.jp","kainan.tokushima.jp","komatsushima.tokushima.jp","matsushige.tokushima.jp","mima.tokushima.jp","minami.tokushima.jp","miyoshi.tokushima.jp","mugi.tokushima.jp","nakagawa.tokushima.jp","naruto.tokushima.jp","sanagochi.tokushima.jp","shishikui.tokushima.jp","tokushima.tokushima.jp","wajiki.tokushima.jp","adachi.tokyo.jp","akiruno.tokyo.jp","akishima.tokyo.jp","aogashima.tokyo.jp","arakawa.tokyo.jp","bunkyo.tokyo.jp","chiyoda.tokyo.jp","chofu.tokyo.jp","chuo.tokyo.jp","edogawa.tokyo.jp","fuchu.tokyo.jp","fussa.tokyo.jp","hachijo.tokyo.jp","hachioji.tokyo.jp","hamura.tokyo.jp","higashikurume.tokyo.jp","higashimurayama.tokyo.jp","higashiyamato.tokyo.jp","hino.tokyo.jp","hinode.tokyo.jp","hinohara.tokyo.jp","inagi.tokyo.jp","itabashi.tokyo.jp","katsushika.tokyo.jp","kita.tokyo.jp","kiyose.tokyo.jp","kodaira.tokyo.jp","koganei.tokyo.jp","kokubunji.tokyo.jp","komae.tokyo.jp","koto.tokyo.jp","kouzushima.tokyo.jp","kunitachi.tokyo.jp","machida.tokyo.jp","meguro.tokyo.jp","minato.tokyo.jp","mitaka.tokyo.jp","mizuho.tokyo.jp","musashimurayama.tokyo.jp","musashino.tokyo.jp","nakano.tokyo.jp","nerima.tokyo.jp","ogasawara.tokyo.jp","okutama.tokyo.jp","ome.tokyo.jp","oshima.tokyo.jp","ota.tokyo.jp","setagaya.tokyo.jp","shibuya.tokyo.jp","shinagawa.tokyo.jp","shinjuku.tokyo.jp","suginami.tokyo.jp","sumida.tokyo.jp","tachikawa.tokyo.jp","taito.tokyo.jp","tama.tokyo.jp","toshima.tokyo.jp","chizu.tottori.jp","hino.tottori.jp","kawahara.tottori.jp","koge.tottori.jp","kotoura.tottori.jp","misasa.tottori.jp","nanbu.tottori.jp","nichinan.tottori.jp","sakaiminato.tottori.jp","tottori.tottori.jp","wakasa.tottori.jp","yazu.tottori.jp","yonago.tottori.jp","asahi.toyama.jp","fuchu.toyama.jp","fukumitsu.toyama.jp","funahashi.toyama.jp","himi.toyama.jp","imizu.toyama.jp","inami.toyama.jp","johana.toyama.jp","kamiichi.toyama.jp","kurobe.toyama.jp","nakaniikawa.toyama.jp","namerikawa.toyama.jp","nanto.toyama.jp","nyuzen.toyama.jp","oyabe.toyama.jp","taira.toyama.jp","takaoka.toyama.jp","tateyama.toyama.jp","toga.toyama.jp","tonami.toyama.jp","toyama.toyama.jp","unazuki.toyama.jp","uozu.toyama.jp","yamada.toyama.jp","arida.wakayama.jp","aridagawa.wakayama.jp","gobo.wakayama.jp","hashimoto.wakayama.jp","hidaka.wakayama.jp","hirogawa.wakayama.jp","inami.wakayama.jp","iwade.wakayama.jp","kainan.wakayama.jp","kamitonda.wakayama.jp","katsuragi.wakayama.jp","kimino.wakayama.jp","kinokawa.wakayama.jp","kitayama.wakayama.jp","koya.wakayama.jp","koza.wakayama.jp","kozagawa.wakayama.jp","kudoyama.wakayama.jp","kushimoto.wakayama.jp","mihama.wakayama.jp","misato.wakayama.jp","nachikatsuura.wakayama.jp","shingu.wakayama.jp","shirahama.wakayama.jp","taiji.wakayama.jp","tanabe.wakayama.jp","wakayama.wakayama.jp","yuasa.wakayama.jp","yura.wakayama.jp","asahi.yamagata.jp","funagata.yamagata.jp","higashine.yamagata.jp","iide.yamagata.jp","kahoku.yamagata.jp","kaminoyama.yamagata.jp","kaneyama.yamagata.jp","kawanishi.yamagata.jp","mamurogawa.yamagata.jp","mikawa.yamagata.jp","murayama.yamagata.jp","nagai.yamagata.jp","nakayama.yamagata.jp","nanyo.yamagata.jp","nishikawa.yamagata.jp","obanazawa.yamagata.jp","oe.yamagata.jp","oguni.yamagata.jp","ohkura.yamagata.jp","oishida.yamagata.jp","sagae.yamagata.jp","sakata.yamagata.jp","sakegawa.yamagata.jp","shinjo.yamagata.jp","shirataka.yamagata.jp","shonai.yamagata.jp","takahata.yamagata.jp","tendo.yamagata.jp","tozawa.yamagata.jp","tsuruoka.yamagata.jp","yamagata.yamagata.jp","yamanobe.yamagata.jp","yonezawa.yamagata.jp","yuza.yamagata.jp","abu.yamaguchi.jp","hagi.yamaguchi.jp","hikari.yamaguchi.jp","hofu.yamaguchi.jp","iwakuni.yamaguchi.jp","kudamatsu.yamaguchi.jp","mitou.yamaguchi.jp","nagato.yamaguchi.jp","oshima.yamaguchi.jp","shimonoseki.yamaguchi.jp","shunan.yamaguchi.jp","tabuse.yamaguchi.jp","tokuyama.yamaguchi.jp","toyota.yamaguchi.jp","ube.yamaguchi.jp","yuu.yamaguchi.jp","chuo.yamanashi.jp","doshi.yamanashi.jp","fuefuki.yamanashi.jp","fujikawa.yamanashi.jp","fujikawaguchiko.yamanashi.jp","fujiyoshida.yamanashi.jp","hayakawa.yamanashi.jp","hokuto.yamanashi.jp","ichikawamisato.yamanashi.jp","kai.yamanashi.jp","kofu.yamanashi.jp","koshu.yamanashi.jp","kosuge.yamanashi.jp","minami-alps.yamanashi.jp","minobu.yamanashi.jp","nakamichi.yamanashi.jp","nanbu.yamanashi.jp","narusawa.yamanashi.jp","nirasaki.yamanashi.jp","nishikatsura.yamanashi.jp","oshino.yamanashi.jp","otsuki.yamanashi.jp","showa.yamanashi.jp","tabayama.yamanashi.jp","tsuru.yamanashi.jp","uenohara.yamanashi.jp","yamanakako.yamanashi.jp","yamanashi.yamanashi.jp","ke","ac.ke","co.ke","go.ke","info.ke","me.ke","mobi.ke","ne.ke","or.ke","sc.ke","kg","org.kg","net.kg","com.kg","edu.kg","gov.kg","mil.kg","*.kh","ki","edu.ki","biz.ki","net.ki","org.ki","gov.ki","info.ki","com.ki","km","org.km","nom.km","gov.km","prd.km","tm.km","edu.km","mil.km","ass.km","com.km","coop.km","asso.km","presse.km","medecin.km","notaires.km","pharmaciens.km","veterinaire.km","gouv.km","kn","net.kn","org.kn","edu.kn","gov.kn","kp","com.kp","edu.kp","gov.kp","org.kp","rep.kp","tra.kp","kr","ac.kr","co.kr","es.kr","go.kr","hs.kr","kg.kr","mil.kr","ms.kr","ne.kr","or.kr","pe.kr","re.kr","sc.kr","busan.kr","chungbuk.kr","chungnam.kr","daegu.kr","daejeon.kr","gangwon.kr","gwangju.kr","gyeongbuk.kr","gyeonggi.kr","gyeongnam.kr","incheon.kr","jeju.kr","jeonbuk.kr","jeonnam.kr","seoul.kr","ulsan.kr","kw","com.kw","edu.kw","emb.kw","gov.kw","ind.kw","net.kw","org.kw","ky","com.ky","edu.ky","net.ky","org.ky","kz","org.kz","edu.kz","net.kz","gov.kz","mil.kz","com.kz","la","int.la","net.la","info.la","edu.la","gov.la","per.la","com.la","org.la","lb","com.lb","edu.lb","gov.lb","net.lb","org.lb","lc","com.lc","net.lc","co.lc","org.lc","edu.lc","gov.lc","li","lk","gov.lk","sch.lk","net.lk","int.lk","com.lk","org.lk","edu.lk","ngo.lk","soc.lk","web.lk","ltd.lk","assn.lk","grp.lk","hotel.lk","ac.lk","lr","com.lr","edu.lr","gov.lr","org.lr","net.lr","ls","ac.ls","biz.ls","co.ls","edu.ls","gov.ls","info.ls","net.ls","org.ls","sc.ls","lt","gov.lt","lu","lv","com.lv","edu.lv","gov.lv","org.lv","mil.lv","id.lv","net.lv","asn.lv","conf.lv","ly","com.ly","net.ly","gov.ly","plc.ly","edu.ly","sch.ly","med.ly","org.ly","id.ly","ma","co.ma","net.ma","gov.ma","org.ma","ac.ma","press.ma","mc","tm.mc","asso.mc","md","me","co.me","net.me","org.me","edu.me","ac.me","gov.me","its.me","priv.me","mg","org.mg","nom.mg","gov.mg","prd.mg","tm.mg","edu.mg","mil.mg","com.mg","co.mg","mh","mil","mk","com.mk","org.mk","net.mk","edu.mk","gov.mk","inf.mk","name.mk","ml","com.ml","edu.ml","gouv.ml","gov.ml","net.ml","org.ml","presse.ml","*.mm","mn","gov.mn","edu.mn","org.mn","mo","com.mo","net.mo","org.mo","edu.mo","gov.mo","mobi","mp","mq","mr","gov.mr","ms","com.ms","edu.ms","gov.ms","net.ms","org.ms","mt","com.mt","edu.mt","net.mt","org.mt","mu","com.mu","net.mu","org.mu","gov.mu","ac.mu","co.mu","or.mu","museum","academy.museum","agriculture.museum","air.museum","airguard.museum","alabama.museum","alaska.museum","amber.museum","ambulance.museum","american.museum","americana.museum","americanantiques.museum","americanart.museum","amsterdam.museum","and.museum","annefrank.museum","anthro.museum","anthropology.museum","antiques.museum","aquarium.museum","arboretum.museum","archaeological.museum","archaeology.museum","architecture.museum","art.museum","artanddesign.museum","artcenter.museum","artdeco.museum","arteducation.museum","artgallery.museum","arts.museum","artsandcrafts.museum","asmatart.museum","assassination.museum","assisi.museum","association.museum","astronomy.museum","atlanta.museum","austin.museum","australia.museum","automotive.museum","aviation.museum","axis.museum","badajoz.museum","baghdad.museum","bahn.museum","bale.museum","baltimore.museum","barcelona.museum","baseball.museum","basel.museum","baths.museum","bauern.museum","beauxarts.museum","beeldengeluid.museum","bellevue.museum","bergbau.museum","berkeley.museum","berlin.museum","bern.museum","bible.museum","bilbao.museum","bill.museum","birdart.museum","birthplace.museum","bonn.museum","boston.museum","botanical.museum","botanicalgarden.museum","botanicgarden.museum","botany.museum","brandywinevalley.museum","brasil.museum","bristol.museum","british.museum","britishcolumbia.museum","broadcast.museum","brunel.museum","brussel.museum","brussels.museum","bruxelles.museum","building.museum","burghof.museum","bus.museum","bushey.museum","cadaques.museum","california.museum","cambridge.museum","can.museum","canada.museum","capebreton.museum","carrier.museum","cartoonart.museum","casadelamoneda.museum","castle.museum","castres.museum","celtic.museum","center.museum","chattanooga.museum","cheltenham.museum","chesapeakebay.museum","chicago.museum","children.museum","childrens.museum","childrensgarden.museum","chiropractic.museum","chocolate.museum","christiansburg.museum","cincinnati.museum","cinema.museum","circus.museum","civilisation.museum","civilization.museum","civilwar.museum","clinton.museum","clock.museum","coal.museum","coastaldefence.museum","cody.museum","coldwar.museum","collection.museum","colonialwilliamsburg.museum","coloradoplateau.museum","columbia.museum","columbus.museum","communication.museum","communications.museum","community.museum","computer.museum","computerhistory.museum","comunicações.museum","contemporary.museum","contemporaryart.museum","convent.museum","copenhagen.museum","corporation.museum","correios-e-telecomunicações.museum","corvette.museum","costume.museum","countryestate.museum","county.museum","crafts.museum","cranbrook.museum","creation.museum","cultural.museum","culturalcenter.museum","culture.museum","cyber.museum","cymru.museum","dali.museum","dallas.museum","database.museum","ddr.museum","decorativearts.museum","delaware.museum","delmenhorst.museum","denmark.museum","depot.museum","design.museum","detroit.museum","dinosaur.museum","discovery.museum","dolls.museum","donostia.museum","durham.museum","eastafrica.museum","eastcoast.museum","education.museum","educational.museum","egyptian.museum","eisenbahn.museum","elburg.museum","elvendrell.museum","embroidery.museum","encyclopedic.museum","england.museum","entomology.museum","environment.museum","environmentalconservation.museum","epilepsy.museum","essex.museum","estate.museum","ethnology.museum","exeter.museum","exhibition.museum","family.museum","farm.museum","farmequipment.museum","farmers.museum","farmstead.museum","field.museum","figueres.museum","filatelia.museum","film.museum","fineart.museum","finearts.museum","finland.museum","flanders.museum","florida.museum","force.museum","fortmissoula.museum","fortworth.museum","foundation.museum","francaise.museum","frankfurt.museum","franziskaner.museum","freemasonry.museum","freiburg.museum","fribourg.museum","frog.museum","fundacio.museum","furniture.museum","gallery.museum","garden.museum","gateway.museum","geelvinck.museum","gemological.museum","geology.museum","georgia.museum","giessen.museum","glas.museum","glass.museum","gorge.museum","grandrapids.museum","graz.museum","guernsey.museum","halloffame.museum","hamburg.museum","handson.museum","harvestcelebration.museum","hawaii.museum","health.museum","heimatunduhren.museum","hellas.museum","helsinki.museum","hembygdsforbund.museum","heritage.museum","histoire.museum","historical.museum","historicalsociety.museum","historichouses.museum","historisch.museum","historisches.museum","history.museum","historyofscience.museum","horology.museum","house.museum","humanities.museum","illustration.museum","imageandsound.museum","indian.museum","indiana.museum","indianapolis.museum","indianmarket.museum","intelligence.museum","interactive.museum","iraq.museum","iron.museum","isleofman.museum","jamison.museum","jefferson.museum","jerusalem.museum","jewelry.museum","jewish.museum","jewishart.museum","jfk.museum","journalism.museum","judaica.museum","judygarland.museum","juedisches.museum","juif.museum","karate.museum","karikatur.museum","kids.museum","koebenhavn.museum","koeln.museum","kunst.museum","kunstsammlung.museum","kunstunddesign.museum","labor.museum","labour.museum","lajolla.museum","lancashire.museum","landes.museum","lans.museum","läns.museum","larsson.museum","lewismiller.museum","lincoln.museum","linz.museum","living.museum","livinghistory.museum","localhistory.museum","london.museum","losangeles.museum","louvre.museum","loyalist.museum","lucerne.museum","luxembourg.museum","luzern.museum","mad.museum","madrid.museum","mallorca.museum","manchester.museum","mansion.museum","mansions.museum","manx.museum","marburg.museum","maritime.museum","maritimo.museum","maryland.museum","marylhurst.museum","media.museum","medical.museum","medizinhistorisches.museum","meeres.museum","memorial.museum","mesaverde.museum","michigan.museum","midatlantic.museum","military.museum","mill.museum","miners.museum","mining.museum","minnesota.museum","missile.museum","missoula.museum","modern.museum","moma.museum","money.museum","monmouth.museum","monticello.museum","montreal.museum","moscow.museum","motorcycle.museum","muenchen.museum","muenster.museum","mulhouse.museum","muncie.museum","museet.museum","museumcenter.museum","museumvereniging.museum","music.museum","national.museum","nationalfirearms.museum","nationalheritage.museum","nativeamerican.museum","naturalhistory.museum","naturalhistorymuseum.museum","naturalsciences.museum","nature.museum","naturhistorisches.museum","natuurwetenschappen.museum","naumburg.museum","naval.museum","nebraska.museum","neues.museum","newhampshire.museum","newjersey.museum","newmexico.museum","newport.museum","newspaper.museum","newyork.museum","niepce.museum","norfolk.museum","north.museum","nrw.museum","nyc.museum","nyny.museum","oceanographic.museum","oceanographique.museum","omaha.museum","online.museum","ontario.museum","openair.museum","oregon.museum","oregontrail.museum","otago.museum","oxford.museum","pacific.museum","paderborn.museum","palace.museum","paleo.museum","palmsprings.museum","panama.museum","paris.museum","pasadena.museum","pharmacy.museum","philadelphia.museum","philadelphiaarea.museum","philately.museum","phoenix.museum","photography.museum","pilots.museum","pittsburgh.museum","planetarium.museum","plantation.museum","plants.museum","plaza.museum","portal.museum","portland.museum","portlligat.museum","posts-and-telecommunications.museum","preservation.museum","presidio.museum","press.museum","project.museum","public.museum","pubol.museum","quebec.museum","railroad.museum","railway.museum","research.museum","resistance.museum","riodejaneiro.museum","rochester.museum","rockart.museum","roma.museum","russia.museum","saintlouis.museum","salem.museum","salvadordali.museum","salzburg.museum","sandiego.museum","sanfrancisco.museum","santabarbara.museum","santacruz.museum","santafe.museum","saskatchewan.museum","satx.museum","savannahga.museum","schlesisches.museum","schoenbrunn.museum","schokoladen.museum","school.museum","schweiz.museum","science.museum","scienceandhistory.museum","scienceandindustry.museum","sciencecenter.museum","sciencecenters.museum","science-fiction.museum","sciencehistory.museum","sciences.museum","sciencesnaturelles.museum","scotland.museum","seaport.museum","settlement.museum","settlers.museum","shell.museum","sherbrooke.museum","sibenik.museum","silk.museum","ski.museum","skole.museum","society.museum","sologne.museum","soundandvision.museum","southcarolina.museum","southwest.museum","space.museum","spy.museum","square.museum","stadt.museum","stalbans.museum","starnberg.museum","state.museum","stateofdelaware.museum","station.museum","steam.museum","steiermark.museum","stjohn.museum","stockholm.museum","stpetersburg.museum","stuttgart.museum","suisse.museum","surgeonshall.museum","surrey.museum","svizzera.museum","sweden.museum","sydney.museum","tank.museum","tcm.museum","technology.museum","telekommunikation.museum","television.museum","texas.museum","textile.museum","theater.museum","time.museum","timekeeping.museum","topology.museum","torino.museum","touch.museum","town.museum","transport.museum","tree.museum","trolley.museum","trust.museum","trustee.museum","uhren.museum","ulm.museum","undersea.museum","university.museum","usa.museum","usantiques.museum","usarts.museum","uscountryestate.museum","usculture.museum","usdecorativearts.museum","usgarden.museum","ushistory.museum","ushuaia.museum","uslivinghistory.museum","utah.museum","uvic.museum","valley.museum","vantaa.museum","versailles.museum","viking.museum","village.museum","virginia.museum","virtual.museum","virtuel.museum","vlaanderen.museum","volkenkunde.museum","wales.museum","wallonie.museum","war.museum","washingtondc.museum","watchandclock.museum","watch-and-clock.museum","western.museum","westfalen.museum","whaling.museum","wildlife.museum","williamsburg.museum","windmill.museum","workshop.museum","york.museum","yorkshire.museum","yosemite.museum","youth.museum","zoological.museum","zoology.museum","ירושלים.museum","иком.museum","mv","aero.mv","biz.mv","com.mv","coop.mv","edu.mv","gov.mv","info.mv","int.mv","mil.mv","museum.mv","name.mv","net.mv","org.mv","pro.mv","mw","ac.mw","biz.mw","co.mw","com.mw","coop.mw","edu.mw","gov.mw","int.mw","museum.mw","net.mw","org.mw","mx","com.mx","org.mx","gob.mx","edu.mx","net.mx","my","biz.my","com.my","edu.my","gov.my","mil.my","name.my","net.my","org.my","mz","ac.mz","adv.mz","co.mz","edu.mz","gov.mz","mil.mz","net.mz","org.mz","na","info.na","pro.na","name.na","school.na","or.na","dr.na","us.na","mx.na","ca.na","in.na","cc.na","tv.na","ws.na","mobi.na","co.na","com.na","org.na","name","nc","asso.nc","nom.nc","ne","net","nf","com.nf","net.nf","per.nf","rec.nf","web.nf","arts.nf","firm.nf","info.nf","other.nf","store.nf","ng","com.ng","edu.ng","gov.ng","i.ng","mil.ng","mobi.ng","name.ng","net.ng","org.ng","sch.ng","ni","ac.ni","biz.ni","co.ni","com.ni","edu.ni","gob.ni","in.ni","info.ni","int.ni","mil.ni","net.ni","nom.ni","org.ni","web.ni","nl","no","fhs.no","vgs.no","fylkesbibl.no","folkebibl.no","museum.no","idrett.no","priv.no","mil.no","stat.no","dep.no","kommune.no","herad.no","aa.no","ah.no","bu.no","fm.no","hl.no","hm.no","jan-mayen.no","mr.no","nl.no","nt.no","of.no","ol.no","oslo.no","rl.no","sf.no","st.no","svalbard.no","tm.no","tr.no","va.no","vf.no","gs.aa.no","gs.ah.no","gs.bu.no","gs.fm.no","gs.hl.no","gs.hm.no","gs.jan-mayen.no","gs.mr.no","gs.nl.no","gs.nt.no","gs.of.no","gs.ol.no","gs.oslo.no","gs.rl.no","gs.sf.no","gs.st.no","gs.svalbard.no","gs.tm.no","gs.tr.no","gs.va.no","gs.vf.no","akrehamn.no","åkrehamn.no","algard.no","ålgård.no","arna.no","brumunddal.no","bryne.no","bronnoysund.no","brønnøysund.no","drobak.no","drøbak.no","egersund.no","fetsund.no","floro.no","florø.no","fredrikstad.no","hokksund.no","honefoss.no","hønefoss.no","jessheim.no","jorpeland.no","jørpeland.no","kirkenes.no","kopervik.no","krokstadelva.no","langevag.no","langevåg.no","leirvik.no","mjondalen.no","mjøndalen.no","mo-i-rana.no","mosjoen.no","mosjøen.no","nesoddtangen.no","orkanger.no","osoyro.no","osøyro.no","raholt.no","råholt.no","sandnessjoen.no","sandnessjøen.no","skedsmokorset.no","slattum.no","spjelkavik.no","stathelle.no","stavern.no","stjordalshalsen.no","stjørdalshalsen.no","tananger.no","tranby.no","vossevangen.no","afjord.no","åfjord.no","agdenes.no","al.no","ål.no","alesund.no","ålesund.no","alstahaug.no","alta.no","áltá.no","alaheadju.no","álaheadju.no","alvdal.no","amli.no","åmli.no","amot.no","åmot.no","andebu.no","andoy.no","andøy.no","andasuolo.no","ardal.no","årdal.no","aremark.no","arendal.no","ås.no","aseral.no","åseral.no","asker.no","askim.no","askvoll.no","askoy.no","askøy.no","asnes.no","åsnes.no","audnedaln.no","aukra.no","aure.no","aurland.no","aurskog-holand.no","aurskog-høland.no","austevoll.no","austrheim.no","averoy.no","averøy.no","balestrand.no","ballangen.no","balat.no","bálát.no","balsfjord.no","bahccavuotna.no","báhccavuotna.no","bamble.no","bardu.no","beardu.no","beiarn.no","bajddar.no","bájddar.no","baidar.no","báidár.no","berg.no","bergen.no","berlevag.no","berlevåg.no","bearalvahki.no","bearalváhki.no","bindal.no","birkenes.no","bjarkoy.no","bjarkøy.no","bjerkreim.no","bjugn.no","bodo.no","bodø.no","badaddja.no","bådåddjå.no","budejju.no","bokn.no","bremanger.no","bronnoy.no","brønnøy.no","bygland.no","bykle.no","barum.no","bærum.no","bo.telemark.no","bø.telemark.no","bo.nordland.no","bø.nordland.no","bievat.no","bievát.no","bomlo.no","bømlo.no","batsfjord.no","båtsfjord.no","bahcavuotna.no","báhcavuotna.no","dovre.no","drammen.no","drangedal.no","dyroy.no","dyrøy.no","donna.no","dønna.no","eid.no","eidfjord.no","eidsberg.no","eidskog.no","eidsvoll.no","eigersund.no","elverum.no","enebakk.no","engerdal.no","etne.no","etnedal.no","evenes.no","evenassi.no","evenášši.no","evje-og-hornnes.no","farsund.no","fauske.no","fuossko.no","fuoisku.no","fedje.no","fet.no","finnoy.no","finnøy.no","fitjar.no","fjaler.no","fjell.no","flakstad.no","flatanger.no","flekkefjord.no","flesberg.no","flora.no","fla.no","flå.no","folldal.no","forsand.no","fosnes.no","frei.no","frogn.no","froland.no","frosta.no","frana.no","fræna.no","froya.no","frøya.no","fusa.no","fyresdal.no","forde.no","førde.no","gamvik.no","gangaviika.no","gáŋgaviika.no","gaular.no","gausdal.no","gildeskal.no","gildeskål.no","giske.no","gjemnes.no","gjerdrum.no","gjerstad.no","gjesdal.no","gjovik.no","gjøvik.no","gloppen.no","gol.no","gran.no","grane.no","granvin.no","gratangen.no","grimstad.no","grong.no","kraanghke.no","kråanghke.no","grue.no","gulen.no","hadsel.no","halden.no","halsa.no","hamar.no","hamaroy.no","habmer.no","hábmer.no","hapmir.no","hápmir.no","hammerfest.no","hammarfeasta.no","hámmárfeasta.no","haram.no","hareid.no","harstad.no","hasvik.no","aknoluokta.no","ákŋoluokta.no","hattfjelldal.no","aarborte.no","haugesund.no","hemne.no","hemnes.no","hemsedal.no","heroy.more-og-romsdal.no","herøy.møre-og-romsdal.no","heroy.nordland.no","herøy.nordland.no","hitra.no","hjartdal.no","hjelmeland.no","hobol.no","hobøl.no","hof.no","hol.no","hole.no","holmestrand.no","holtalen.no","holtålen.no","hornindal.no","horten.no","hurdal.no","hurum.no","hvaler.no","hyllestad.no","hagebostad.no","hægebostad.no","hoyanger.no","høyanger.no","hoylandet.no","høylandet.no","ha.no","hå.no","ibestad.no","inderoy.no","inderøy.no","iveland.no","jevnaker.no","jondal.no","jolster.no","jølster.no","karasjok.no","karasjohka.no","kárášjohka.no","karlsoy.no","galsa.no","gálsá.no","karmoy.no","karmøy.no","kautokeino.no","guovdageaidnu.no","klepp.no","klabu.no","klæbu.no","kongsberg.no","kongsvinger.no","kragero.no","kragerø.no","kristiansand.no","kristiansund.no","krodsherad.no","krødsherad.no","kvalsund.no","rahkkeravju.no","ráhkkerávju.no","kvam.no","kvinesdal.no","kvinnherad.no","kviteseid.no","kvitsoy.no","kvitsøy.no","kvafjord.no","kvæfjord.no","giehtavuoatna.no","kvanangen.no","kvænangen.no","navuotna.no","návuotna.no","kafjord.no","kåfjord.no","gaivuotna.no","gáivuotna.no","larvik.no","lavangen.no","lavagis.no","loabat.no","loabát.no","lebesby.no","davvesiida.no","leikanger.no","leirfjord.no","leka.no","leksvik.no","lenvik.no","leangaviika.no","leaŋgaviika.no","lesja.no","levanger.no","lier.no","lierne.no","lillehammer.no","lillesand.no","lindesnes.no","lindas.no","lindås.no","lom.no","loppa.no","lahppi.no","láhppi.no","lund.no","lunner.no","luroy.no","lurøy.no","luster.no","lyngdal.no","lyngen.no","ivgu.no","lardal.no","lerdal.no","lærdal.no","lodingen.no","lødingen.no","lorenskog.no","lørenskog.no","loten.no","løten.no","malvik.no","masoy.no","måsøy.no","muosat.no","muosát.no","mandal.no","marker.no","marnardal.no","masfjorden.no","meland.no","meldal.no","melhus.no","meloy.no","meløy.no","meraker.no","meråker.no","moareke.no","moåreke.no","midsund.no","midtre-gauldal.no","modalen.no","modum.no","molde.no","moskenes.no","moss.no","mosvik.no","malselv.no","målselv.no","malatvuopmi.no","málatvuopmi.no","namdalseid.no","aejrie.no","namsos.no","namsskogan.no","naamesjevuemie.no","nååmesjevuemie.no","laakesvuemie.no","nannestad.no","narvik.no","narviika.no","naustdal.no","nedre-eiker.no","nes.akershus.no","nes.buskerud.no","nesna.no","nesodden.no","nesseby.no","unjarga.no","unjárga.no","nesset.no","nissedal.no","nittedal.no","nord-aurdal.no","nord-fron.no","nord-odal.no","norddal.no","nordkapp.no","davvenjarga.no","davvenjárga.no","nordre-land.no","nordreisa.no","raisa.no","ráisa.no","nore-og-uvdal.no","notodden.no","naroy.no","nærøy.no","notteroy.no","nøtterøy.no","odda.no","oksnes.no","øksnes.no","oppdal.no","oppegard.no","oppegård.no","orkdal.no","orland.no","ørland.no","orskog.no","ørskog.no","orsta.no","ørsta.no","os.hedmark.no","os.hordaland.no","osen.no","osteroy.no","osterøy.no","ostre-toten.no","østre-toten.no","overhalla.no","ovre-eiker.no","øvre-eiker.no","oyer.no","øyer.no","oygarden.no","øygarden.no","oystre-slidre.no","øystre-slidre.no","porsanger.no","porsangu.no","porsáŋgu.no","porsgrunn.no","radoy.no","radøy.no","rakkestad.no","rana.no","ruovat.no","randaberg.no","rauma.no","rendalen.no","rennebu.no","rennesoy.no","rennesøy.no","rindal.no","ringebu.no","ringerike.no","ringsaker.no","rissa.no","risor.no","risør.no","roan.no","rollag.no","rygge.no","ralingen.no","rælingen.no","rodoy.no","rødøy.no","romskog.no","rømskog.no","roros.no","røros.no","rost.no","røst.no","royken.no","røyken.no","royrvik.no","røyrvik.no","rade.no","råde.no","salangen.no","siellak.no","saltdal.no","salat.no","sálát.no","sálat.no","samnanger.no","sande.more-og-romsdal.no","sande.møre-og-romsdal.no","sande.vestfold.no","sandefjord.no","sandnes.no","sandoy.no","sandøy.no","sarpsborg.no","sauda.no","sauherad.no","sel.no","selbu.no","selje.no","seljord.no","sigdal.no","siljan.no","sirdal.no","skaun.no","skedsmo.no","ski.no","skien.no","skiptvet.no","skjervoy.no","skjervøy.no","skierva.no","skiervá.no","skjak.no","skjåk.no","skodje.no","skanland.no","skånland.no","skanit.no","skánit.no","smola.no","smøla.no","snillfjord.no","snasa.no","snåsa.no","snoasa.no","snaase.no","snåase.no","sogndal.no","sokndal.no","sola.no","solund.no","songdalen.no","sortland.no","spydeberg.no","stange.no","stavanger.no","steigen.no","steinkjer.no","stjordal.no","stjørdal.no","stokke.no","stor-elvdal.no","stord.no","stordal.no","storfjord.no","omasvuotna.no","strand.no","stranda.no","stryn.no","sula.no","suldal.no","sund.no","sunndal.no","surnadal.no","sveio.no","svelvik.no","sykkylven.no","sogne.no","søgne.no","somna.no","sømna.no","sondre-land.no","søndre-land.no","sor-aurdal.no","sør-aurdal.no","sor-fron.no","sør-fron.no","sor-odal.no","sør-odal.no","sor-varanger.no","sør-varanger.no","matta-varjjat.no","mátta-várjjat.no","sorfold.no","sørfold.no","sorreisa.no","sørreisa.no","sorum.no","sørum.no","tana.no","deatnu.no","time.no","tingvoll.no","tinn.no","tjeldsund.no","dielddanuorri.no","tjome.no","tjøme.no","tokke.no","tolga.no","torsken.no","tranoy.no","tranøy.no","tromso.no","tromsø.no","tromsa.no","romsa.no","trondheim.no","troandin.no","trysil.no","trana.no","træna.no","trogstad.no","trøgstad.no","tvedestrand.no","tydal.no","tynset.no","tysfjord.no","divtasvuodna.no","divttasvuotna.no","tysnes.no","tysvar.no","tysvær.no","tonsberg.no","tønsberg.no","ullensaker.no","ullensvang.no","ulvik.no","utsira.no","vadso.no","vadsø.no","cahcesuolo.no","čáhcesuolo.no","vaksdal.no","valle.no","vang.no","vanylven.no","vardo.no","vardø.no","varggat.no","várggát.no","vefsn.no","vaapste.no","vega.no","vegarshei.no","vegårshei.no","vennesla.no","verdal.no","verran.no","vestby.no","vestnes.no","vestre-slidre.no","vestre-toten.no","vestvagoy.no","vestvågøy.no","vevelstad.no","vik.no","vikna.no","vindafjord.no","volda.no","voss.no","varoy.no","værøy.no","vagan.no","vågan.no","voagat.no","vagsoy.no","vågsøy.no","vaga.no","vågå.no","valer.ostfold.no","våler.østfold.no","valer.hedmark.no","våler.hedmark.no","*.np","nr","biz.nr","info.nr","gov.nr","edu.nr","org.nr","net.nr","com.nr","nu","nz","ac.nz","co.nz","cri.nz","geek.nz","gen.nz","govt.nz","health.nz","iwi.nz","kiwi.nz","maori.nz","mil.nz","māori.nz","net.nz","org.nz","parliament.nz","school.nz","om","co.om","com.om","edu.om","gov.om","med.om","museum.om","net.om","org.om","pro.om","onion","org","pa","ac.pa","gob.pa","com.pa","org.pa","sld.pa","edu.pa","net.pa","ing.pa","abo.pa","med.pa","nom.pa","pe","edu.pe","gob.pe","nom.pe","mil.pe","org.pe","com.pe","net.pe","pf","com.pf","org.pf","edu.pf","*.pg","ph","com.ph","net.ph","org.ph","gov.ph","edu.ph","ngo.ph","mil.ph","i.ph","pk","com.pk","net.pk","edu.pk","org.pk","fam.pk","biz.pk","web.pk","gov.pk","gob.pk","gok.pk","gon.pk","gop.pk","gos.pk","info.pk","pl","com.pl","net.pl","org.pl","aid.pl","agro.pl","atm.pl","auto.pl","biz.pl","edu.pl","gmina.pl","gsm.pl","info.pl","mail.pl","miasta.pl","media.pl","mil.pl","nieruchomosci.pl","nom.pl","pc.pl","powiat.pl","priv.pl","realestate.pl","rel.pl","sex.pl","shop.pl","sklep.pl","sos.pl","szkola.pl","targi.pl","tm.pl","tourism.pl","travel.pl","turystyka.pl","gov.pl","ap.gov.pl","ic.gov.pl","is.gov.pl","us.gov.pl","kmpsp.gov.pl","kppsp.gov.pl","kwpsp.gov.pl","psp.gov.pl","wskr.gov.pl","kwp.gov.pl","mw.gov.pl","ug.gov.pl","um.gov.pl","umig.gov.pl","ugim.gov.pl","upow.gov.pl","uw.gov.pl","starostwo.gov.pl","pa.gov.pl","po.gov.pl","psse.gov.pl","pup.gov.pl","rzgw.gov.pl","sa.gov.pl","so.gov.pl","sr.gov.pl","wsa.gov.pl","sko.gov.pl","uzs.gov.pl","wiih.gov.pl","winb.gov.pl","pinb.gov.pl","wios.gov.pl","witd.gov.pl","wzmiuw.gov.pl","piw.gov.pl","wiw.gov.pl","griw.gov.pl","wif.gov.pl","oum.gov.pl","sdn.gov.pl","zp.gov.pl","uppo.gov.pl","mup.gov.pl","wuoz.gov.pl","konsulat.gov.pl","oirm.gov.pl","augustow.pl","babia-gora.pl","bedzin.pl","beskidy.pl","bialowieza.pl","bialystok.pl","bielawa.pl","bieszczady.pl","boleslawiec.pl","bydgoszcz.pl","bytom.pl","cieszyn.pl","czeladz.pl","czest.pl","dlugoleka.pl","elblag.pl","elk.pl","glogow.pl","gniezno.pl","gorlice.pl","grajewo.pl","ilawa.pl","jaworzno.pl","jelenia-gora.pl","jgora.pl","kalisz.pl","kazimierz-dolny.pl","karpacz.pl","kartuzy.pl","kaszuby.pl","katowice.pl","kepno.pl","ketrzyn.pl","klodzko.pl","kobierzyce.pl","kolobrzeg.pl","konin.pl","konskowola.pl","kutno.pl","lapy.pl","lebork.pl","legnica.pl","lezajsk.pl","limanowa.pl","lomza.pl","lowicz.pl","lubin.pl","lukow.pl","malbork.pl","malopolska.pl","mazowsze.pl","mazury.pl","mielec.pl","mielno.pl","mragowo.pl","naklo.pl","nowaruda.pl","nysa.pl","olawa.pl","olecko.pl","olkusz.pl","olsztyn.pl","opoczno.pl","opole.pl","ostroda.pl","ostroleka.pl","ostrowiec.pl","ostrowwlkp.pl","pila.pl","pisz.pl","podhale.pl","podlasie.pl","polkowice.pl","pomorze.pl","pomorskie.pl","prochowice.pl","pruszkow.pl","przeworsk.pl","pulawy.pl","radom.pl","rawa-maz.pl","rybnik.pl","rzeszow.pl","sanok.pl","sejny.pl","slask.pl","slupsk.pl","sosnowiec.pl","stalowa-wola.pl","skoczow.pl","starachowice.pl","stargard.pl","suwalki.pl","swidnica.pl","swiebodzin.pl","swinoujscie.pl","szczecin.pl","szczytno.pl","tarnobrzeg.pl","tgory.pl","turek.pl","tychy.pl","ustka.pl","walbrzych.pl","warmia.pl","warszawa.pl","waw.pl","wegrow.pl","wielun.pl","wlocl.pl","wloclawek.pl","wodzislaw.pl","wolomin.pl","wroclaw.pl","zachpomor.pl","zagan.pl","zarow.pl","zgora.pl","zgorzelec.pl","pm","pn","gov.pn","co.pn","org.pn","edu.pn","net.pn","post","pr","com.pr","net.pr","org.pr","gov.pr","edu.pr","isla.pr","pro.pr","biz.pr","info.pr","name.pr","est.pr","prof.pr","ac.pr","pro","aaa.pro","aca.pro","acct.pro","avocat.pro","bar.pro","cpa.pro","eng.pro","jur.pro","law.pro","med.pro","recht.pro","ps","edu.ps","gov.ps","sec.ps","plo.ps","com.ps","org.ps","net.ps","pt","net.pt","gov.pt","org.pt","edu.pt","int.pt","publ.pt","com.pt","nome.pt","pw","co.pw","ne.pw","or.pw","ed.pw","go.pw","belau.pw","py","com.py","coop.py","edu.py","gov.py","mil.py","net.py","org.py","qa","com.qa","edu.qa","gov.qa","mil.qa","name.qa","net.qa","org.qa","sch.qa","re","asso.re","com.re","nom.re","ro","arts.ro","com.ro","firm.ro","info.ro","nom.ro","nt.ro","org.ro","rec.ro","store.ro","tm.ro","www.ro","rs","ac.rs","co.rs","edu.rs","gov.rs","in.rs","org.rs","ru","rw","ac.rw","co.rw","coop.rw","gov.rw","mil.rw","net.rw","org.rw","sa","com.sa","net.sa","org.sa","gov.sa","med.sa","pub.sa","edu.sa","sch.sa","sb","com.sb","edu.sb","gov.sb","net.sb","org.sb","sc","com.sc","gov.sc","net.sc","org.sc","edu.sc","sd","com.sd","net.sd","org.sd","edu.sd","med.sd","tv.sd","gov.sd","info.sd","se","a.se","ac.se","b.se","bd.se","brand.se","c.se","d.se","e.se","f.se","fh.se","fhsk.se","fhv.se","g.se","h.se","i.se","k.se","komforb.se","kommunalforbund.se","komvux.se","l.se","lanbib.se","m.se","n.se","naturbruksgymn.se","o.se","org.se","p.se","parti.se","pp.se","press.se","r.se","s.se","t.se","tm.se","u.se","w.se","x.se","y.se","z.se","sg","com.sg","net.sg","org.sg","gov.sg","edu.sg","per.sg","sh","com.sh","net.sh","gov.sh","org.sh","mil.sh","si","sj","sk","sl","com.sl","net.sl","edu.sl","gov.sl","org.sl","sm","sn","art.sn","com.sn","edu.sn","gouv.sn","org.sn","perso.sn","univ.sn","so","com.so","edu.so","gov.so","me.so","net.so","org.so","sr","ss","biz.ss","com.ss","edu.ss","gov.ss","me.ss","net.ss","org.ss","sch.ss","st","co.st","com.st","consulado.st","edu.st","embaixada.st","mil.st","net.st","org.st","principe.st","saotome.st","store.st","su","sv","com.sv","edu.sv","gob.sv","org.sv","red.sv","sx","gov.sx","sy","edu.sy","gov.sy","net.sy","mil.sy","com.sy","org.sy","sz","co.sz","ac.sz","org.sz","tc","td","tel","tf","tg","th","ac.th","co.th","go.th","in.th","mi.th","net.th","or.th","tj","ac.tj","biz.tj","co.tj","com.tj","edu.tj","go.tj","gov.tj","int.tj","mil.tj","name.tj","net.tj","nic.tj","org.tj","test.tj","web.tj","tk","tl","gov.tl","tm","com.tm","co.tm","org.tm","net.tm","nom.tm","gov.tm","mil.tm","edu.tm","tn","com.tn","ens.tn","fin.tn","gov.tn","ind.tn","info.tn","intl.tn","mincom.tn","nat.tn","net.tn","org.tn","perso.tn","tourism.tn","to","com.to","gov.to","net.to","org.to","edu.to","mil.to","tr","av.tr","bbs.tr","bel.tr","biz.tr","com.tr","dr.tr","edu.tr","gen.tr","gov.tr","info.tr","mil.tr","k12.tr","kep.tr","name.tr","net.tr","org.tr","pol.tr","tel.tr","tsk.tr","tv.tr","web.tr","nc.tr","gov.nc.tr","tt","co.tt","com.tt","org.tt","net.tt","biz.tt","info.tt","pro.tt","int.tt","coop.tt","jobs.tt","mobi.tt","travel.tt","museum.tt","aero.tt","name.tt","gov.tt","edu.tt","tv","tw","edu.tw","gov.tw","mil.tw","com.tw","net.tw","org.tw","idv.tw","game.tw","ebiz.tw","club.tw","網路.tw","組織.tw","商業.tw","tz","ac.tz","co.tz","go.tz","hotel.tz","info.tz","me.tz","mil.tz","mobi.tz","ne.tz","or.tz","sc.tz","tv.tz","ua","com.ua","edu.ua","gov.ua","in.ua","net.ua","org.ua","cherkassy.ua","cherkasy.ua","chernigov.ua","chernihiv.ua","chernivtsi.ua","chernovtsy.ua","ck.ua","cn.ua","cr.ua","crimea.ua","cv.ua","dn.ua","dnepropetrovsk.ua","dnipropetrovsk.ua","donetsk.ua","dp.ua","if.ua","ivano-frankivsk.ua","kh.ua","kharkiv.ua","kharkov.ua","kherson.ua","khmelnitskiy.ua","khmelnytskyi.ua","kiev.ua","kirovograd.ua","km.ua","kr.ua","krym.ua","ks.ua","kv.ua","kyiv.ua","lg.ua","lt.ua","lugansk.ua","lutsk.ua","lv.ua","lviv.ua","mk.ua","mykolaiv.ua","nikolaev.ua","od.ua","odesa.ua","odessa.ua","pl.ua","poltava.ua","rivne.ua","rovno.ua","rv.ua","sb.ua","sebastopol.ua","sevastopol.ua","sm.ua","sumy.ua","te.ua","ternopil.ua","uz.ua","uzhgorod.ua","vinnica.ua","vinnytsia.ua","vn.ua","volyn.ua","yalta.ua","zaporizhzhe.ua","zaporizhzhia.ua","zhitomir.ua","zhytomyr.ua","zp.ua","zt.ua","ug","co.ug","or.ug","ac.ug","sc.ug","go.ug","ne.ug","com.ug","org.ug","uk","ac.uk","co.uk","gov.uk","ltd.uk","me.uk","net.uk","nhs.uk","org.uk","plc.uk","police.uk","*.sch.uk","us","dni.us","fed.us","isa.us","kids.us","nsn.us","ak.us","al.us","ar.us","as.us","az.us","ca.us","co.us","ct.us","dc.us","de.us","fl.us","ga.us","gu.us","hi.us","ia.us","id.us","il.us","in.us","ks.us","ky.us","la.us","ma.us","md.us","me.us","mi.us","mn.us","mo.us","ms.us","mt.us","nc.us","nd.us","ne.us","nh.us","nj.us","nm.us","nv.us","ny.us","oh.us","ok.us","or.us","pa.us","pr.us","ri.us","sc.us","sd.us","tn.us","tx.us","ut.us","vi.us","vt.us","va.us","wa.us","wi.us","wv.us","wy.us","k12.ak.us","k12.al.us","k12.ar.us","k12.as.us","k12.az.us","k12.ca.us","k12.co.us","k12.ct.us","k12.dc.us","k12.de.us","k12.fl.us","k12.ga.us","k12.gu.us","k12.ia.us","k12.id.us","k12.il.us","k12.in.us","k12.ks.us","k12.ky.us","k12.la.us","k12.ma.us","k12.md.us","k12.me.us","k12.mi.us","k12.mn.us","k12.mo.us","k12.ms.us","k12.mt.us","k12.nc.us","k12.ne.us","k12.nh.us","k12.nj.us","k12.nm.us","k12.nv.us","k12.ny.us","k12.oh.us","k12.ok.us","k12.or.us","k12.pa.us","k12.pr.us","k12.sc.us","k12.tn.us","k12.tx.us","k12.ut.us","k12.vi.us","k12.vt.us","k12.va.us","k12.wa.us","k12.wi.us","k12.wy.us","cc.ak.us","cc.al.us","cc.ar.us","cc.as.us","cc.az.us","cc.ca.us","cc.co.us","cc.ct.us","cc.dc.us","cc.de.us","cc.fl.us","cc.ga.us","cc.gu.us","cc.hi.us","cc.ia.us","cc.id.us","cc.il.us","cc.in.us","cc.ks.us","cc.ky.us","cc.la.us","cc.ma.us","cc.md.us","cc.me.us","cc.mi.us","cc.mn.us","cc.mo.us","cc.ms.us","cc.mt.us","cc.nc.us","cc.nd.us","cc.ne.us","cc.nh.us","cc.nj.us","cc.nm.us","cc.nv.us","cc.ny.us","cc.oh.us","cc.ok.us","cc.or.us","cc.pa.us","cc.pr.us","cc.ri.us","cc.sc.us","cc.sd.us","cc.tn.us","cc.tx.us","cc.ut.us","cc.vi.us","cc.vt.us","cc.va.us","cc.wa.us","cc.wi.us","cc.wv.us","cc.wy.us","lib.ak.us","lib.al.us","lib.ar.us","lib.as.us","lib.az.us","lib.ca.us","lib.co.us","lib.ct.us","lib.dc.us","lib.fl.us","lib.ga.us","lib.gu.us","lib.hi.us","lib.ia.us","lib.id.us","lib.il.us","lib.in.us","lib.ks.us","lib.ky.us","lib.la.us","lib.ma.us","lib.md.us","lib.me.us","lib.mi.us","lib.mn.us","lib.mo.us","lib.ms.us","lib.mt.us","lib.nc.us","lib.nd.us","lib.ne.us","lib.nh.us","lib.nj.us","lib.nm.us","lib.nv.us","lib.ny.us","lib.oh.us","lib.ok.us","lib.or.us","lib.pa.us","lib.pr.us","lib.ri.us","lib.sc.us","lib.sd.us","lib.tn.us","lib.tx.us","lib.ut.us","lib.vi.us","lib.vt.us","lib.va.us","lib.wa.us","lib.wi.us","lib.wy.us","pvt.k12.ma.us","chtr.k12.ma.us","paroch.k12.ma.us","ann-arbor.mi.us","cog.mi.us","dst.mi.us","eaton.mi.us","gen.mi.us","mus.mi.us","tec.mi.us","washtenaw.mi.us","uy","com.uy","edu.uy","gub.uy","mil.uy","net.uy","org.uy","uz","co.uz","com.uz","net.uz","org.uz","va","vc","com.vc","net.vc","org.vc","gov.vc","mil.vc","edu.vc","ve","arts.ve","bib.ve","co.ve","com.ve","e12.ve","edu.ve","firm.ve","gob.ve","gov.ve","info.ve","int.ve","mil.ve","net.ve","nom.ve","org.ve","rar.ve","rec.ve","store.ve","tec.ve","web.ve","vg","vi","co.vi","com.vi","k12.vi","net.vi","org.vi","vn","com.vn","net.vn","org.vn","edu.vn","gov.vn","int.vn","ac.vn","biz.vn","info.vn","name.vn","pro.vn","health.vn","vu","com.vu","edu.vu","net.vu","org.vu","wf","ws","com.ws","net.ws","org.ws","gov.ws","edu.ws","yt","امارات","հայ","বাংলা","бг","البحرين","бел","中国","中國","الجزائر","مصر","ею","ευ","موريتانيا","გე","ελ","香港","公司.香港","教育.香港","政府.香港","個人.香港","網絡.香港","組織.香港","ಭಾರತ","ଭାରତ","ভাৰত","भारतम्","भारोत","ڀارت","ഭാരതം","भारत","بارت","بھارت","భారత్","ભારત","ਭਾਰਤ","ভারত","இந்தியா","ایران","ايران","عراق","الاردن","한국","қаз","ລາວ","ලංකා","இலங்கை","المغرب","мкд","мон","澳門","澳门","مليسيا","عمان","پاکستان","پاكستان","فلسطين","срб","пр.срб","орг.срб","обр.срб","од.срб","упр.срб","ак.срб","рф","قطر","السعودية","السعودیة","السعودیۃ","السعوديه","سودان","新加坡","சிங்கப்பூர்","سورية","سوريا","ไทย","ศึกษา.ไทย","ธุรกิจ.ไทย","รัฐบาล.ไทย","ทหาร.ไทย","เน็ต.ไทย","องค์กร.ไทย","تونس","台灣","台湾","臺灣","укр","اليمن","xxx","ye","com.ye","edu.ye","gov.ye","net.ye","mil.ye","org.ye","ac.za","agric.za","alt.za","co.za","edu.za","gov.za","grondar.za","law.za","mil.za","net.za","ngo.za","nic.za","nis.za","nom.za","org.za","school.za","tm.za","web.za","zm","ac.zm","biz.zm","co.zm","com.zm","edu.zm","gov.zm","info.zm","mil.zm","net.zm","org.zm","sch.zm","zw","ac.zw","co.zw","gov.zw","mil.zw","org.zw","aaa","aarp","abarth","abb","abbott","abbvie","abc","able","abogado","abudhabi","academy","accenture","accountant","accountants","aco","actor","adac","ads","adult","aeg","aetna","afl","africa","agakhan","agency","aig","airbus","airforce","airtel","akdn","alfaromeo","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","aol","apartments","app","apple","aquarelle","arab","aramco","archi","army","art","arte","asda","associates","athleta","attorney","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aws","axa","azure","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bbc","bbt","bbva","bcg","bcn","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bharti","bible","bid","bike","bing","bingo","bio","black","blackfriday","blockbuster","blog","bloomberg","blue","bms","bmw","bnpparibas","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","bradesco","bridgestone","broadway","broker","brother","brussels","bugatti","build","builders","business","buy","buzz","bzh","cab","cafe","cal","call","calvinklein","cam","camera","camp","cancerresearch","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","catering","catholic","cba","cbn","cbre","cbs","center","ceo","cern","cfa","cfd","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","coach","codes","coffee","college","cologne","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cookingchannel","cool","corsica","country","coupon","coupons","courses","cpa","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cuisinella","cymru","cyou","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dnp","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","earth","eat","eco","edeka","education","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","ericsson","erni","esq","estate","etisalat","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fiat","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","flickr","flights","flir","florist","flowers","fly","foo","food","foodnetwork","football","ford","forex","forsale","forum","foundation","fox","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gbiz","gdn","gea","gent","genting","george","ggee","gift","gifts","gives","giving","glass","gle","global","globo","gmail","gmbh","gmo","gmx","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","grainger","graphics","gratis","green","gripe","grocery","group","guardian","gucci","guge","guide","guitars","guru","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hgtv","hiphop","hisamitsu","hitachi","hiv","hkt","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hoteles","hotels","hotmail","house","how","hsbc","hughes","hyatt","hyundai","ibm","icbc","ice","icu","ieee","ifm","ikano","imamat","imdb","immo","immobilien","inc","industries","infiniti","ing","ink","institute","insurance","insure","international","intuit","investments","ipiranga","irish","ismaili","ist","istanbul","itau","itv","jaguar","java","jcb","jeep","jetzt","jewelry","jio","jll","jmp","jnj","joburg","jot","joy","jpmorgan","jprs","juegos","juniper","kaufen","kddi","kerryhotels","kerrylogistics","kerryproperties","kfh","kia","kids","kim","kinder","kindle","kitchen","kiwi","koeln","komatsu","kosher","kpmg","kpn","krd","kred","kuokgroup","kyoto","lacaixa","lamborghini","lamer","lancaster","lancia","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","linde","link","lipsy","live","living","llc","llp","loan","loans","locker","locus","loft","lol","london","lotte","lotto","love","lpl","lplfinancial","ltd","ltda","lundbeck","luxe","luxury","macys","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","maserati","mattel","mba","mckinsey","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","miami","microsoft","mini","mint","mit","mitsubishi","mlb","mls","mma","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","msd","mtn","mtr","music","mutual","nab","nagoya","natura","navy","nba","nec","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nfl","ngo","nhk","nico","nike","nikon","ninja","nissan","nissay","nokia","northwesternmutual","norton","now","nowruz","nowtv","nra","nrw","ntt","nyc","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","omega","one","ong","onl","online","ooo","open","oracle","orange","organic","origins","osaka","otsuka","ott","ovh","page","panasonic","paris","pars","partners","parts","party","passagens","pay","pccw","pet","pfizer","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","place","play","playstation","plumbing","plus","pnc","pohl","poker","politie","porn","pramerica","praxi","press","prime","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","pub","pwc","qpon","quebec","quest","racing","radio","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","rocher","rocks","rodeo","rogers","room","rsvp","rugby","ruhr","run","rwe","ryukyu","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sbi","sbs","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","search","seat","secure","security","seek","select","sener","services","ses","seven","sew","sex","sexy","sfr","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","silk","sina","singles","site","ski","skin","sky","skype","sling","smart","smile","sncf","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","srl","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","sucks","supplies","supply","support","surf","surgery","suzuki","swatch","swiss","sydney","systems","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tci","tdk","team","tech","technology","temasek","tennis","teva","thd","theater","theatre","tiaa","tickets","tienda","tiffany","tips","tires","tirol","tjmaxx","tjx","tkmaxx","tmall","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","trade","trading","training","travel","travelchannel","travelers","travelersinsurance","trust","trv","tube","tui","tunes","tushu","tvs","ubank","ubs","unicom","university","uno","uol","ups","vacations","vana","vanguard","vegas","ventures","verisign","versicherung","vet","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vodka","volkswagen","volvo","vote","voting","voto","voyage","vuelos","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wedding","weibo","weir","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","कॉम","セール","佛山","慈善","集团","在线","点看","คอม","八卦","موقع","公益","公司","香格里拉","网站","移动","我爱你","москва","католик","онлайн","сайт","联通","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","商标","商店","商城","дети","ポイント","新闻","家電","كوم","中文网","中信","娱乐","谷歌","電訊盈科","购物","クラウド","通販","网店","संगठन","餐厅","网络","ком","亚马逊","诺基亚","食品","飞利浦","手机","ارامكو","العليان","اتصالات","بازار","ابوظبي","كاثوليك","همراه","닷컴","政府","شبكة","بيتك","عرب","机构","组织机构","健康","招聘","рус","大拿","みんな","グーグル","世界","書籍","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","广东","政务","xyz","yachts","yahoo","yamaxun","yandex","yodobashi","yoga","yokohama","you","youtube","yun","zappos","zara","zero","zip","zone","zuerich","cc.ua","inf.ua","ltd.ua","611.to","graphox.us","*.devcdnaccesso.com","adobeaemcloud.com","*.dev.adobeaemcloud.com","hlx.live","adobeaemcloud.net","hlx.page","hlx3.page","beep.pl","airkitapps.com","airkitapps-au.com","airkitapps.eu","aivencloud.com","barsy.ca","*.compute.estate","*.alces.network","kasserver.com","altervista.org","alwaysdata.net","cloudfront.net","*.compute.amazonaws.com","*.compute-1.amazonaws.com","*.compute.amazonaws.com.cn","us-east-1.amazonaws.com","cn-north-1.eb.amazonaws.com.cn","cn-northwest-1.eb.amazonaws.com.cn","elasticbeanstalk.com","ap-northeast-1.elasticbeanstalk.com","ap-northeast-2.elasticbeanstalk.com","ap-northeast-3.elasticbeanstalk.com","ap-south-1.elasticbeanstalk.com","ap-southeast-1.elasticbeanstalk.com","ap-southeast-2.elasticbeanstalk.com","ca-central-1.elasticbeanstalk.com","eu-central-1.elasticbeanstalk.com","eu-west-1.elasticbeanstalk.com","eu-west-2.elasticbeanstalk.com","eu-west-3.elasticbeanstalk.com","sa-east-1.elasticbeanstalk.com","us-east-1.elasticbeanstalk.com","us-east-2.elasticbeanstalk.com","us-gov-west-1.elasticbeanstalk.com","us-west-1.elasticbeanstalk.com","us-west-2.elasticbeanstalk.com","*.elb.amazonaws.com","*.elb.amazonaws.com.cn","awsglobalaccelerator.com","s3.amazonaws.com","s3-ap-northeast-1.amazonaws.com","s3-ap-northeast-2.amazonaws.com","s3-ap-south-1.amazonaws.com","s3-ap-southeast-1.amazonaws.com","s3-ap-southeast-2.amazonaws.com","s3-ca-central-1.amazonaws.com","s3-eu-central-1.amazonaws.com","s3-eu-west-1.amazonaws.com","s3-eu-west-2.amazonaws.com","s3-eu-west-3.amazonaws.com","s3-external-1.amazonaws.com","s3-fips-us-gov-west-1.amazonaws.com","s3-sa-east-1.amazonaws.com","s3-us-gov-west-1.amazonaws.com","s3-us-east-2.amazonaws.com","s3-us-west-1.amazonaws.com","s3-us-west-2.amazonaws.com","s3.ap-northeast-2.amazonaws.com","s3.ap-south-1.amazonaws.com","s3.cn-north-1.amazonaws.com.cn","s3.ca-central-1.amazonaws.com","s3.eu-central-1.amazonaws.com","s3.eu-west-2.amazonaws.com","s3.eu-west-3.amazonaws.com","s3.us-east-2.amazonaws.com","s3.dualstack.ap-northeast-1.amazonaws.com","s3.dualstack.ap-northeast-2.amazonaws.com","s3.dualstack.ap-south-1.amazonaws.com","s3.dualstack.ap-southeast-1.amazonaws.com","s3.dualstack.ap-southeast-2.amazonaws.com","s3.dualstack.ca-central-1.amazonaws.com","s3.dualstack.eu-central-1.amazonaws.com","s3.dualstack.eu-west-1.amazonaws.com","s3.dualstack.eu-west-2.amazonaws.com","s3.dualstack.eu-west-3.amazonaws.com","s3.dualstack.sa-east-1.amazonaws.com","s3.dualstack.us-east-1.amazonaws.com","s3.dualstack.us-east-2.amazonaws.com","s3-website-us-east-1.amazonaws.com","s3-website-us-west-1.amazonaws.com","s3-website-us-west-2.amazonaws.com","s3-website-ap-northeast-1.amazonaws.com","s3-website-ap-southeast-1.amazonaws.com","s3-website-ap-southeast-2.amazonaws.com","s3-website-eu-west-1.amazonaws.com","s3-website-sa-east-1.amazonaws.com","s3-website.ap-northeast-2.amazonaws.com","s3-website.ap-south-1.amazonaws.com","s3-website.ca-central-1.amazonaws.com","s3-website.eu-central-1.amazonaws.com","s3-website.eu-west-2.amazonaws.com","s3-website.eu-west-3.amazonaws.com","s3-website.us-east-2.amazonaws.com","t3l3p0rt.net","tele.amune.org","apigee.io","siiites.com","appspacehosted.com","appspaceusercontent.com","appudo.net","on-aptible.com","user.aseinet.ne.jp","gv.vc","d.gv.vc","user.party.eus","pimienta.org","poivron.org","potager.org","sweetpepper.org","myasustor.com","cdn.prod.atlassian-dev.net","translated.page","myfritz.net","onavstack.net","*.awdev.ca","*.advisor.ws","ecommerce-shop.pl","b-data.io","backplaneapp.io","balena-devices.com","rs.ba","*.banzai.cloud","app.banzaicloud.io","*.backyards.banzaicloud.io","base.ec","official.ec","buyshop.jp","fashionstore.jp","handcrafted.jp","kawaiishop.jp","supersale.jp","theshop.jp","shopselect.net","base.shop","*.beget.app","betainabox.com","bnr.la","bitbucket.io","blackbaudcdn.net","of.je","bluebite.io","boomla.net","boutir.com","boxfuse.io","square7.ch","bplaced.com","bplaced.de","square7.de","bplaced.net","square7.net","shop.brendly.rs","browsersafetymark.io","uk0.bigv.io","dh.bytemark.co.uk","vm.bytemark.co.uk","cafjs.com","mycd.eu","drr.ac","uwu.ai","carrd.co","crd.co","ju.mp","ae.org","br.com","cn.com","com.de","com.se","de.com","eu.com","gb.net","hu.net","jp.net","jpn.com","mex.com","ru.com","sa.com","se.net","uk.com","uk.net","us.com","za.bz","za.com","ar.com","hu.com","kr.com","no.com","qc.com","uy.com","africa.com","gr.com","in.net","web.in","us.org","co.com","aus.basketball","nz.basketball","radio.am","radio.fm","c.la","certmgr.org","cx.ua","discourse.group","discourse.team","cleverapps.io","clerk.app","clerkstage.app","*.lcl.dev","*.lclstage.dev","*.stg.dev","*.stgstage.dev","clickrising.net","c66.me","cloud66.ws","cloud66.zone","jdevcloud.com","wpdevcloud.com","cloudaccess.host","freesite.host","cloudaccess.net","cloudcontrolled.com","cloudcontrolapp.com","*.cloudera.site","pages.dev","trycloudflare.com","workers.dev","wnext.app","co.ca","*.otap.co","co.cz","c.cdn77.org","cdn77-ssl.net","r.cdn77.net","rsc.cdn77.org","ssl.origin.cdn77-secure.org","cloudns.asia","cloudns.biz","cloudns.club","cloudns.cc","cloudns.eu","cloudns.in","cloudns.info","cloudns.org","cloudns.pro","cloudns.pw","cloudns.us","cnpy.gdn","codeberg.page","co.nl","co.no","webhosting.be","hosting-cluster.nl","ac.ru","edu.ru","gov.ru","int.ru","mil.ru","test.ru","dyn.cosidns.de","dynamisches-dns.de","dnsupdater.de","internet-dns.de","l-o-g-i-n.de","dynamic-dns.info","feste-ip.net","knx-server.net","static-access.net","realm.cz","*.cryptonomic.net","cupcake.is","curv.dev","*.customer-oci.com","*.oci.customer-oci.com","*.ocp.customer-oci.com","*.ocs.customer-oci.com","cyon.link","cyon.site","fnwk.site","folionetwork.site","platform0.app","daplie.me","localhost.daplie.me","dattolocal.com","dattorelay.com","dattoweb.com","mydatto.com","dattolocal.net","mydatto.net","biz.dk","co.dk","firm.dk","reg.dk","store.dk","dyndns.dappnode.io","*.dapps.earth","*.bzz.dapps.earth","builtwithdark.com","demo.datadetect.com","instance.datadetect.com","edgestack.me","ddns5.com","debian.net","deno.dev","deno-staging.dev","dedyn.io","deta.app","deta.dev","*.rss.my.id","*.diher.solutions","discordsays.com","discordsez.com","jozi.biz","dnshome.de","online.th","shop.th","drayddns.com","shoparena.pl","dreamhosters.com","mydrobo.com","drud.io","drud.us","duckdns.org","bip.sh","bitbridge.net","dy.fi","tunk.org","dyndns-at-home.com","dyndns-at-work.com","dyndns-blog.com","dyndns-free.com","dyndns-home.com","dyndns-ip.com","dyndns-mail.com","dyndns-office.com","dyndns-pics.com","dyndns-remote.com","dyndns-server.com","dyndns-web.com","dyndns-wiki.com","dyndns-work.com","dyndns.biz","dyndns.info","dyndns.org","dyndns.tv","at-band-camp.net","ath.cx","barrel-of-knowledge.info","barrell-of-knowledge.info","better-than.tv","blogdns.com","blogdns.net","blogdns.org","blogsite.org","boldlygoingnowhere.org","broke-it.net","buyshouses.net","cechire.com","dnsalias.com","dnsalias.net","dnsalias.org","dnsdojo.com","dnsdojo.net","dnsdojo.org","does-it.net","doesntexist.com","doesntexist.org","dontexist.com","dontexist.net","dontexist.org","doomdns.com","doomdns.org","dvrdns.org","dyn-o-saur.com","dynalias.com","dynalias.net","dynalias.org","dynathome.net","dyndns.ws","endofinternet.net","endofinternet.org","endoftheinternet.org","est-a-la-maison.com","est-a-la-masion.com","est-le-patron.com","est-mon-blogueur.com","for-better.biz","for-more.biz","for-our.info","for-some.biz","for-the.biz","forgot.her.name","forgot.his.name","from-ak.com","from-al.com","from-ar.com","from-az.net","from-ca.com","from-co.net","from-ct.com","from-dc.com","from-de.com","from-fl.com","from-ga.com","from-hi.com","from-ia.com","from-id.com","from-il.com","from-in.com","from-ks.com","from-ky.com","from-la.net","from-ma.com","from-md.com","from-me.org","from-mi.com","from-mn.com","from-mo.com","from-ms.com","from-mt.com","from-nc.com","from-nd.com","from-ne.com","from-nh.com","from-nj.com","from-nm.com","from-nv.com","from-ny.net","from-oh.com","from-ok.com","from-or.com","from-pa.com","from-pr.com","from-ri.com","from-sc.com","from-sd.com","from-tn.com","from-tx.com","from-ut.com","from-va.com","from-vt.com","from-wa.com","from-wi.com","from-wv.com","from-wy.com","ftpaccess.cc","fuettertdasnetz.de","game-host.org","game-server.cc","getmyip.com","gets-it.net","go.dyndns.org","gotdns.com","gotdns.org","groks-the.info","groks-this.info","ham-radio-op.net","here-for-more.info","hobby-site.com","hobby-site.org","home.dyndns.org","homedns.org","homeftp.net","homeftp.org","homeip.net","homelinux.com","homelinux.net","homelinux.org","homeunix.com","homeunix.net","homeunix.org","iamallama.com","in-the-band.net","is-a-anarchist.com","is-a-blogger.com","is-a-bookkeeper.com","is-a-bruinsfan.org","is-a-bulls-fan.com","is-a-candidate.org","is-a-caterer.com","is-a-celticsfan.org","is-a-chef.com","is-a-chef.net","is-a-chef.org","is-a-conservative.com","is-a-cpa.com","is-a-cubicle-slave.com","is-a-democrat.com","is-a-designer.com","is-a-doctor.com","is-a-financialadvisor.com","is-a-geek.com","is-a-geek.net","is-a-geek.org","is-a-green.com","is-a-guru.com","is-a-hard-worker.com","is-a-hunter.com","is-a-knight.org","is-a-landscaper.com","is-a-lawyer.com","is-a-liberal.com","is-a-libertarian.com","is-a-linux-user.org","is-a-llama.com","is-a-musician.com","is-a-nascarfan.com","is-a-nurse.com","is-a-painter.com","is-a-patsfan.org","is-a-personaltrainer.com","is-a-photographer.com","is-a-player.com","is-a-republican.com","is-a-rockstar.com","is-a-socialist.com","is-a-soxfan.org","is-a-student.com","is-a-teacher.com","is-a-techie.com","is-a-therapist.com","is-an-accountant.com","is-an-actor.com","is-an-actress.com","is-an-anarchist.com","is-an-artist.com","is-an-engineer.com","is-an-entertainer.com","is-by.us","is-certified.com","is-found.org","is-gone.com","is-into-anime.com","is-into-cars.com","is-into-cartoons.com","is-into-games.com","is-leet.com","is-lost.org","is-not-certified.com","is-saved.org","is-slick.com","is-uberleet.com","is-very-bad.org","is-very-evil.org","is-very-good.org","is-very-nice.org","is-very-sweet.org","is-with-theband.com","isa-geek.com","isa-geek.net","isa-geek.org","isa-hockeynut.com","issmarterthanyou.com","isteingeek.de","istmein.de","kicks-ass.net","kicks-ass.org","knowsitall.info","land-4-sale.us","lebtimnetz.de","leitungsen.de","likes-pie.com","likescandy.com","merseine.nu","mine.nu","misconfused.org","mypets.ws","myphotos.cc","neat-url.com","office-on-the.net","on-the-web.tv","podzone.net","podzone.org","readmyblog.org","saves-the-whales.com","scrapper-site.net","scrapping.cc","selfip.biz","selfip.com","selfip.info","selfip.net","selfip.org","sells-for-less.com","sells-for-u.com","sells-it.net","sellsyourhome.org","servebbs.com","servebbs.net","servebbs.org","serveftp.net","serveftp.org","servegame.org","shacknet.nu","simple-url.com","space-to-rent.com","stuff-4-sale.org","stuff-4-sale.us","teaches-yoga.com","thruhere.net","traeumtgerade.de","webhop.biz","webhop.info","webhop.net","webhop.org","worse-than.tv","writesthisblog.com","ddnss.de","dyn.ddnss.de","dyndns.ddnss.de","dyndns1.de","dyn-ip24.de","home-webserver.de","dyn.home-webserver.de","myhome-server.de","ddnss.org","definima.net","definima.io","ondigitalocean.app","*.digitaloceanspaces.com","bci.dnstrace.pro","ddnsfree.com","ddnsgeek.com","giize.com","gleeze.com","kozow.com","loseyourip.com","ooguy.com","theworkpc.com","casacam.net","dynu.net","accesscam.org","camdvr.org","freeddns.org","mywire.org","webredirect.org","myddns.rocks","blogsite.xyz","dynv6.net","e4.cz","eero.online","eero-stage.online","elementor.cloud","elementor.cool","en-root.fr","mytuleap.com","tuleap-partners.com","encr.app","encoreapi.com","onred.one","staging.onred.one","eu.encoway.cloud","eu.org","al.eu.org","asso.eu.org","at.eu.org","au.eu.org","be.eu.org","bg.eu.org","ca.eu.org","cd.eu.org","ch.eu.org","cn.eu.org","cy.eu.org","cz.eu.org","de.eu.org","dk.eu.org","edu.eu.org","ee.eu.org","es.eu.org","fi.eu.org","fr.eu.org","gr.eu.org","hr.eu.org","hu.eu.org","ie.eu.org","il.eu.org","in.eu.org","int.eu.org","is.eu.org","it.eu.org","jp.eu.org","kr.eu.org","lt.eu.org","lu.eu.org","lv.eu.org","mc.eu.org","me.eu.org","mk.eu.org","mt.eu.org","my.eu.org","net.eu.org","ng.eu.org","nl.eu.org","no.eu.org","nz.eu.org","paris.eu.org","pl.eu.org","pt.eu.org","q-a.eu.org","ro.eu.org","ru.eu.org","se.eu.org","si.eu.org","sk.eu.org","tr.eu.org","uk.eu.org","us.eu.org","eurodir.ru","eu-1.evennode.com","eu-2.evennode.com","eu-3.evennode.com","eu-4.evennode.com","us-1.evennode.com","us-2.evennode.com","us-3.evennode.com","us-4.evennode.com","twmail.cc","twmail.net","twmail.org","mymailer.com.tw","url.tw","onfabrica.com","apps.fbsbx.com","ru.net","adygeya.ru","bashkiria.ru","bir.ru","cbg.ru","com.ru","dagestan.ru","grozny.ru","kalmykia.ru","kustanai.ru","marine.ru","mordovia.ru","msk.ru","mytis.ru","nalchik.ru","nov.ru","pyatigorsk.ru","spb.ru","vladikavkaz.ru","vladimir.ru","abkhazia.su","adygeya.su","aktyubinsk.su","arkhangelsk.su","armenia.su","ashgabad.su","azerbaijan.su","balashov.su","bashkiria.su","bryansk.su","bukhara.su","chimkent.su","dagestan.su","east-kazakhstan.su","exnet.su","georgia.su","grozny.su","ivanovo.su","jambyl.su","kalmykia.su","kaluga.su","karacol.su","karaganda.su","karelia.su","khakassia.su","krasnodar.su","kurgan.su","kustanai.su","lenug.su","mangyshlak.su","mordovia.su","msk.su","murmansk.su","nalchik.su","navoi.su","north-kazakhstan.su","nov.su","obninsk.su","penza.su","pokrovsk.su","sochi.su","spb.su","tashkent.su","termez.su","togliatti.su","troitsk.su","tselinograd.su","tula.su","tuva.su","vladikavkaz.su","vladimir.su","vologda.su","channelsdvr.net","u.channelsdvr.net","edgecompute.app","fastly-terrarium.com","fastlylb.net","map.fastlylb.net","freetls.fastly.net","map.fastly.net","a.prod.fastly.net","global.prod.fastly.net","a.ssl.fastly.net","b.ssl.fastly.net","global.ssl.fastly.net","fastvps-server.com","fastvps.host","myfast.host","fastvps.site","myfast.space","fedorainfracloud.org","fedorapeople.org","cloud.fedoraproject.org","app.os.fedoraproject.org","app.os.stg.fedoraproject.org","conn.uk","copro.uk","hosp.uk","mydobiss.com","fh-muenster.io","filegear.me","filegear-au.me","filegear-de.me","filegear-gb.me","filegear-ie.me","filegear-jp.me","filegear-sg.me","firebaseapp.com","fireweb.app","flap.id","onflashdrive.app","fldrv.com","fly.dev","edgeapp.net","shw.io","flynnhosting.net","forgeblocks.com","id.forgerock.io","framer.app","framercanvas.com","*.frusky.de","ravpage.co.il","0e.vc","freebox-os.com","freeboxos.com","fbx-os.fr","fbxos.fr","freebox-os.fr","freeboxos.fr","freedesktop.org","freemyip.com","wien.funkfeuer.at","*.futurecms.at","*.ex.futurecms.at","*.in.futurecms.at","futurehosting.at","futuremailing.at","*.ex.ortsinfo.at","*.kunden.ortsinfo.at","*.statics.cloud","independent-commission.uk","independent-inquest.uk","independent-inquiry.uk","independent-panel.uk","independent-review.uk","public-inquiry.uk","royal-commission.uk","campaign.gov.uk","service.gov.uk","api.gov.uk","gehirn.ne.jp","usercontent.jp","gentapps.com","gentlentapis.com","lab.ms","cdn-edges.net","ghost.io","gsj.bz","githubusercontent.com","githubpreview.dev","github.io","gitlab.io","gitapp.si","gitpage.si","glitch.me","nog.community","co.ro","shop.ro","lolipop.io","angry.jp","babyblue.jp","babymilk.jp","backdrop.jp","bambina.jp","bitter.jp","blush.jp","boo.jp","boy.jp","boyfriend.jp","but.jp","candypop.jp","capoo.jp","catfood.jp","cheap.jp","chicappa.jp","chillout.jp","chips.jp","chowder.jp","chu.jp","ciao.jp","cocotte.jp","coolblog.jp","cranky.jp","cutegirl.jp","daa.jp","deca.jp","deci.jp","digick.jp","egoism.jp","fakefur.jp","fem.jp","flier.jp","floppy.jp","fool.jp","frenchkiss.jp","girlfriend.jp","girly.jp","gloomy.jp","gonna.jp","greater.jp","hacca.jp","heavy.jp","her.jp","hiho.jp","hippy.jp","holy.jp","hungry.jp","icurus.jp","itigo.jp","jellybean.jp","kikirara.jp","kill.jp","kilo.jp","kuron.jp","littlestar.jp","lolipopmc.jp","lolitapunk.jp","lomo.jp","lovepop.jp","lovesick.jp","main.jp","mods.jp","mond.jp","mongolian.jp","moo.jp","namaste.jp","nikita.jp","nobushi.jp","noor.jp","oops.jp","parallel.jp","parasite.jp","pecori.jp","peewee.jp","penne.jp","pepper.jp","perma.jp","pigboat.jp","pinoko.jp","punyu.jp","pupu.jp","pussycat.jp","pya.jp","raindrop.jp","readymade.jp","sadist.jp","schoolbus.jp","secret.jp","staba.jp","stripper.jp","sub.jp","sunnyday.jp","thick.jp","tonkotsu.jp","under.jp","upper.jp","velvet.jp","verse.jp","versus.jp","vivian.jp","watson.jp","weblike.jp","whitesnow.jp","zombie.jp","heteml.net","cloudapps.digital","london.cloudapps.digital","pymnt.uk","homeoffice.gov.uk","ro.im","goip.de","run.app","a.run.app","web.app","*.0emm.com","appspot.com","*.r.appspot.com","codespot.com","googleapis.com","googlecode.com","pagespeedmobilizer.com","publishproxy.com","withgoogle.com","withyoutube.com","*.gateway.dev","cloud.goog","translate.goog","*.usercontent.goog","cloudfunctions.net","blogspot.ae","blogspot.al","blogspot.am","blogspot.ba","blogspot.be","blogspot.bg","blogspot.bj","blogspot.ca","blogspot.cf","blogspot.ch","blogspot.cl","blogspot.co.at","blogspot.co.id","blogspot.co.il","blogspot.co.ke","blogspot.co.nz","blogspot.co.uk","blogspot.co.za","blogspot.com","blogspot.com.ar","blogspot.com.au","blogspot.com.br","blogspot.com.by","blogspot.com.co","blogspot.com.cy","blogspot.com.ee","blogspot.com.eg","blogspot.com.es","blogspot.com.mt","blogspot.com.ng","blogspot.com.tr","blogspot.com.uy","blogspot.cv","blogspot.cz","blogspot.de","blogspot.dk","blogspot.fi","blogspot.fr","blogspot.gr","blogspot.hk","blogspot.hr","blogspot.hu","blogspot.ie","blogspot.in","blogspot.is","blogspot.it","blogspot.jp","blogspot.kr","blogspot.li","blogspot.lt","blogspot.lu","blogspot.md","blogspot.mk","blogspot.mr","blogspot.mx","blogspot.my","blogspot.nl","blogspot.no","blogspot.pe","blogspot.pt","blogspot.qa","blogspot.re","blogspot.ro","blogspot.rs","blogspot.ru","blogspot.se","blogspot.sg","blogspot.si","blogspot.sk","blogspot.sn","blogspot.td","blogspot.tw","blogspot.ug","blogspot.vn","goupile.fr","gov.nl","awsmppl.com","günstigbestellen.de","günstigliefern.de","fin.ci","free.hr","caa.li","ua.rs","conf.se","hs.zone","hs.run","hashbang.sh","hasura.app","hasura-app.io","pages.it.hs-heilbronn.de","hepforge.org","herokuapp.com","herokussl.com","ravendb.cloud","myravendb.com","ravendb.community","ravendb.me","development.run","ravendb.run","homesklep.pl","secaas.hk","hoplix.shop","orx.biz","biz.gl","col.ng","firm.ng","gen.ng","ltd.ng","ngo.ng","edu.scot","sch.so","hostyhosting.io","häkkinen.fi","*.moonscale.io","moonscale.net","iki.fi","ibxos.it","iliadboxos.it","impertrixcdn.com","impertrix.com","smushcdn.com","wphostedmail.com","wpmucdn.com","tempurl.host","wpmudev.host","dyn-berlin.de","in-berlin.de","in-brb.de","in-butter.de","in-dsl.de","in-dsl.net","in-dsl.org","in-vpn.de","in-vpn.net","in-vpn.org","biz.at","info.at","info.cx","ac.leg.br","al.leg.br","am.leg.br","ap.leg.br","ba.leg.br","ce.leg.br","df.leg.br","es.leg.br","go.leg.br","ma.leg.br","mg.leg.br","ms.leg.br","mt.leg.br","pa.leg.br","pb.leg.br","pe.leg.br","pi.leg.br","pr.leg.br","rj.leg.br","rn.leg.br","ro.leg.br","rr.leg.br","rs.leg.br","sc.leg.br","se.leg.br","sp.leg.br","to.leg.br","pixolino.com","na4u.ru","iopsys.se","ipifony.net","iservschule.de","mein-iserv.de","schulplattform.de","schulserver.de","test-iserv.de","iserv.dev","iobb.net","mel.cloudlets.com.au","cloud.interhostsolutions.be","users.scale.virtualcloud.com.br","mycloud.by","alp1.ae.flow.ch","appengine.flow.ch","es-1.axarnet.cloud","diadem.cloud","vip.jelastic.cloud","jele.cloud","it1.eur.aruba.jenv-aruba.cloud","it1.jenv-aruba.cloud","keliweb.cloud","cs.keliweb.cloud","oxa.cloud","tn.oxa.cloud","uk.oxa.cloud","primetel.cloud","uk.primetel.cloud","ca.reclaim.cloud","uk.reclaim.cloud","us.reclaim.cloud","ch.trendhosting.cloud","de.trendhosting.cloud","jele.club","amscompute.com","clicketcloud.com","dopaas.com","hidora.com","paas.hosted-by-previder.com","rag-cloud.hosteur.com","rag-cloud-ch.hosteur.com","jcloud.ik-server.com","jcloud-ver-jpc.ik-server.com","demo.jelastic.com","kilatiron.com","paas.massivegrid.com","jed.wafaicloud.com","lon.wafaicloud.com","ryd.wafaicloud.com","j.scaleforce.com.cy","jelastic.dogado.eu","fi.cloudplatform.fi","demo.datacenter.fi","paas.datacenter.fi","jele.host","mircloud.host","paas.beebyte.io","sekd1.beebyteapp.io","jele.io","cloud-fr1.unispace.io","jc.neen.it","cloud.jelastic.open.tim.it","jcloud.kz","upaas.kazteleport.kz","cloudjiffy.net","fra1-de.cloudjiffy.net","west1-us.cloudjiffy.net","jls-sto1.elastx.net","jls-sto2.elastx.net","jls-sto3.elastx.net","faststacks.net","fr-1.paas.massivegrid.net","lon-1.paas.massivegrid.net","lon-2.paas.massivegrid.net","ny-1.paas.massivegrid.net","ny-2.paas.massivegrid.net","sg-1.paas.massivegrid.net","jelastic.saveincloud.net","nordeste-idc.saveincloud.net","j.scaleforce.net","jelastic.tsukaeru.net","sdscloud.pl","unicloud.pl","mircloud.ru","jelastic.regruhosting.ru","enscaled.sg","jele.site","jelastic.team","orangecloud.tn","j.layershift.co.uk","phx.enscaled.us","mircloud.us","myjino.ru","*.hosting.myjino.ru","*.landing.myjino.ru","*.spectrum.myjino.ru","*.vps.myjino.ru","jotelulu.cloud","*.triton.zone","*.cns.joyent.com","js.org","kaas.gg","khplay.nl","ktistory.com","kapsi.fi","keymachine.de","kinghost.net","uni5.net","knightpoint.systems","koobin.events","oya.to","kuleuven.cloud","ezproxy.kuleuven.be","co.krd","edu.krd","krellian.net","webthings.io","git-repos.de","lcube-server.de","svn-repos.de","leadpages.co","lpages.co","lpusercontent.com","lelux.site","co.business","co.education","co.events","co.financial","co.network","co.place","co.technology","app.lmpm.com","linkyard.cloud","linkyard-cloud.ch","members.linode.com","*.nodebalancer.linode.com","*.linodeobjects.com","ip.linodeusercontent.com","we.bs","*.user.localcert.dev","localzone.xyz","loginline.app","loginline.dev","loginline.io","loginline.services","loginline.site","servers.run","lohmus.me","krasnik.pl","leczna.pl","lubartow.pl","lublin.pl","poniatowa.pl","swidnik.pl","glug.org.uk","lug.org.uk","lugs.org.uk","barsy.bg","barsy.co.uk","barsyonline.co.uk","barsycenter.com","barsyonline.com","barsy.club","barsy.de","barsy.eu","barsy.in","barsy.info","barsy.io","barsy.me","barsy.menu","barsy.mobi","barsy.net","barsy.online","barsy.org","barsy.pro","barsy.pub","barsy.ro","barsy.shop","barsy.site","barsy.support","barsy.uk","*.magentosite.cloud","mayfirst.info","mayfirst.org","hb.cldmail.ru","cn.vu","mazeplay.com","mcpe.me","mcdir.me","mcdir.ru","mcpre.ru","vps.mcdir.ru","mediatech.by","mediatech.dev","hra.health","miniserver.com","memset.net","messerli.app","*.cloud.metacentrum.cz","custom.metacentrum.cz","flt.cloud.muni.cz","usr.cloud.muni.cz","meteorapp.com","eu.meteorapp.com","co.pl","*.azurecontainer.io","azurewebsites.net","azure-mobile.net","cloudapp.net","azurestaticapps.net","1.azurestaticapps.net","centralus.azurestaticapps.net","eastasia.azurestaticapps.net","eastus2.azurestaticapps.net","westeurope.azurestaticapps.net","westus2.azurestaticapps.net","csx.cc","mintere.site","forte.id","mozilla-iot.org","bmoattachments.org","net.ru","org.ru","pp.ru","hostedpi.com","customer.mythic-beasts.com","caracal.mythic-beasts.com","fentiger.mythic-beasts.com","lynx.mythic-beasts.com","ocelot.mythic-beasts.com","oncilla.mythic-beasts.com","onza.mythic-beasts.com","sphinx.mythic-beasts.com","vs.mythic-beasts.com","x.mythic-beasts.com","yali.mythic-beasts.com","cust.retrosnub.co.uk","ui.nabu.casa","pony.club","of.fashion","in.london","of.london","from.marketing","with.marketing","for.men","repair.men","and.mom","for.mom","for.one","under.one","for.sale","that.win","from.work","to.work","cloud.nospamproxy.com","netlify.app","4u.com","ngrok.io","nh-serv.co.uk","nfshost.com","*.developer.app","noop.app","*.northflank.app","*.build.run","*.code.run","*.database.run","*.migration.run","noticeable.news","dnsking.ch","mypi.co","n4t.co","001www.com","ddnslive.com","myiphost.com","forumz.info","16-b.it","32-b.it","64-b.it","soundcast.me","tcp4.me","dnsup.net","hicam.net","now-dns.net","ownip.net","vpndns.net","dynserv.org","now-dns.org","x443.pw","now-dns.top","ntdll.top","freeddns.us","crafting.xyz","zapto.xyz","nsupdate.info","nerdpol.ovh","blogsyte.com","brasilia.me","cable-modem.org","ciscofreak.com","collegefan.org","couchpotatofries.org","damnserver.com","ddns.me","ditchyourip.com","dnsfor.me","dnsiskinky.com","dvrcam.info","dynns.com","eating-organic.net","fantasyleague.cc","geekgalaxy.com","golffan.us","health-carereform.com","homesecuritymac.com","homesecuritypc.com","hopto.me","ilovecollege.info","loginto.me","mlbfan.org","mmafan.biz","myactivedirectory.com","mydissent.net","myeffect.net","mymediapc.net","mypsx.net","mysecuritycamera.com","mysecuritycamera.net","mysecuritycamera.org","net-freaks.com","nflfan.org","nhlfan.net","no-ip.ca","no-ip.co.uk","no-ip.net","noip.us","onthewifi.com","pgafan.net","point2this.com","pointto.us","privatizehealthinsurance.net","quicksytes.com","read-books.org","securitytactics.com","serveexchange.com","servehumour.com","servep2p.com","servesarcasm.com","stufftoread.com","ufcfan.org","unusualperson.com","workisboring.com","3utilities.com","bounceme.net","ddns.net","ddnsking.com","gotdns.ch","hopto.org","myftp.biz","myftp.org","myvnc.com","no-ip.biz","no-ip.info","no-ip.org","noip.me","redirectme.net","servebeer.com","serveblog.net","servecounterstrike.com","serveftp.com","servegame.com","servehalflife.com","servehttp.com","serveirc.com","serveminecraft.net","servemp3.com","servepics.com","servequake.com","sytes.net","webhop.me","zapto.org","stage.nodeart.io","pcloud.host","nyc.mn","static.observableusercontent.com","cya.gg","omg.lol","cloudycluster.net","omniwe.site","service.one","nid.io","opensocial.site","opencraft.hosting","orsites.com","operaunite.com","tech.orange","authgear-staging.com","authgearapps.com","skygearapp.com","outsystemscloud.com","*.webpaas.ovh.net","*.hosting.ovh.net","ownprovider.com","own.pm","*.owo.codes","ox.rs","oy.lc","pgfog.com","pagefrontapp.com","pagexl.com","*.paywhirl.com","bar0.net","bar1.net","bar2.net","rdv.to","art.pl","gliwice.pl","krakow.pl","poznan.pl","wroc.pl","zakopane.pl","pantheonsite.io","gotpantheon.com","mypep.link","perspecta.cloud","lk3.ru","on-web.fr","bc.platform.sh","ent.platform.sh","eu.platform.sh","us.platform.sh","*.platformsh.site","*.tst.site","platter-app.com","platter-app.dev","platterp.us","pdns.page","plesk.page","pleskns.com","dyn53.io","onporter.run","co.bn","postman-echo.com","pstmn.io","mock.pstmn.io","httpbin.org","prequalifyme.today","xen.prgmr.com","priv.at","prvcy.page","*.dweb.link","protonet.io","chirurgiens-dentistes-en-france.fr","byen.site","pubtls.org","pythonanywhere.com","eu.pythonanywhere.com","qoto.io","qualifioapp.com","qbuser.com","cloudsite.builders","instances.spawn.cc","instantcloud.cn","ras.ru","qa2.com","qcx.io","*.sys.qcx.io","dev-myqnapcloud.com","alpha-myqnapcloud.com","myqnapcloud.com","*.quipelements.com","vapor.cloud","vaporcloud.io","rackmaze.com","rackmaze.net","g.vbrplsbx.io","*.on-k3s.io","*.on-rancher.cloud","*.on-rio.io","readthedocs.io","rhcloud.com","app.render.com","onrender.com","repl.co","id.repl.co","repl.run","resindevice.io","devices.resinstaging.io","hzc.io","wellbeingzone.eu","wellbeingzone.co.uk","adimo.co.uk","itcouldbewor.se","git-pages.rit.edu","rocky.page","биз.рус","ком.рус","крым.рус","мир.рус","мск.рус","орг.рус","самара.рус","сочи.рус","спб.рус","я.рус","*.builder.code.com","*.dev-builder.code.com","*.stg-builder.code.com","sandcats.io","logoip.de","logoip.com","fr-par-1.baremetal.scw.cloud","fr-par-2.baremetal.scw.cloud","nl-ams-1.baremetal.scw.cloud","fnc.fr-par.scw.cloud","functions.fnc.fr-par.scw.cloud","k8s.fr-par.scw.cloud","nodes.k8s.fr-par.scw.cloud","s3.fr-par.scw.cloud","s3-website.fr-par.scw.cloud","whm.fr-par.scw.cloud","priv.instances.scw.cloud","pub.instances.scw.cloud","k8s.scw.cloud","k8s.nl-ams.scw.cloud","nodes.k8s.nl-ams.scw.cloud","s3.nl-ams.scw.cloud","s3-website.nl-ams.scw.cloud","whm.nl-ams.scw.cloud","k8s.pl-waw.scw.cloud","nodes.k8s.pl-waw.scw.cloud","s3.pl-waw.scw.cloud","s3-website.pl-waw.scw.cloud","scalebook.scw.cloud","smartlabeling.scw.cloud","dedibox.fr","schokokeks.net","gov.scot","service.gov.scot","scrysec.com","firewall-gateway.com","firewall-gateway.de","my-gateway.de","my-router.de","spdns.de","spdns.eu","firewall-gateway.net","my-firewall.org","myfirewall.org","spdns.org","seidat.net","sellfy.store","senseering.net","minisite.ms","magnet.page","biz.ua","co.ua","pp.ua","shiftcrypto.dev","shiftcrypto.io","shiftedit.io","myshopblocks.com","myshopify.com","shopitsite.com","shopware.store","mo-siemens.io","1kapp.com","appchizi.com","applinzi.com","sinaapp.com","vipsinaapp.com","siteleaf.net","bounty-full.com","alpha.bounty-full.com","beta.bounty-full.com","small-web.org","vp4.me","try-snowplow.com","srht.site","stackhero-network.com","musician.io","novecore.site","static.land","dev.static.land","sites.static.land","storebase.store","vps-host.net","atl.jelastic.vps-host.net","njs.jelastic.vps-host.net","ric.jelastic.vps-host.net","playstation-cloud.com","apps.lair.io","*.stolos.io","spacekit.io","customer.speedpartner.de","myspreadshop.at","myspreadshop.com.au","myspreadshop.be","myspreadshop.ca","myspreadshop.ch","myspreadshop.com","myspreadshop.de","myspreadshop.dk","myspreadshop.es","myspreadshop.fi","myspreadshop.fr","myspreadshop.ie","myspreadshop.it","myspreadshop.net","myspreadshop.nl","myspreadshop.no","myspreadshop.pl","myspreadshop.se","myspreadshop.co.uk","api.stdlib.com","storj.farm","utwente.io","soc.srcf.net","user.srcf.net","temp-dns.com","supabase.co","supabase.in","supabase.net","su.paba.se","*.s5y.io","*.sensiosite.cloud","syncloud.it","dscloud.biz","direct.quickconnect.cn","dsmynas.com","familyds.com","diskstation.me","dscloud.me","i234.me","myds.me","synology.me","dscloud.mobi","dsmynas.net","familyds.net","dsmynas.org","familyds.org","vpnplus.to","direct.quickconnect.to","tabitorder.co.il","taifun-dns.de","beta.tailscale.net","ts.net","gda.pl","gdansk.pl","gdynia.pl","med.pl","sopot.pl","site.tb-hosting.com","edugit.io","s3.teckids.org","telebit.app","telebit.io","*.telebit.xyz","gwiddle.co.uk","*.firenet.ch","*.svc.firenet.ch","reservd.com","thingdustdata.com","cust.dev.thingdust.io","cust.disrec.thingdust.io","cust.prod.thingdust.io","cust.testing.thingdust.io","reservd.dev.thingdust.io","reservd.disrec.thingdust.io","reservd.testing.thingdust.io","tickets.io","arvo.network","azimuth.network","tlon.network","torproject.net","pages.torproject.net","bloxcms.com","townnews-staging.com","tbits.me","12hp.at","2ix.at","4lima.at","lima-city.at","12hp.ch","2ix.ch","4lima.ch","lima-city.ch","trafficplex.cloud","de.cool","12hp.de","2ix.de","4lima.de","lima-city.de","1337.pictures","clan.rip","lima-city.rocks","webspace.rocks","lima.zone","*.transurl.be","*.transurl.eu","*.transurl.nl","site.transip.me","tuxfamily.org","dd-dns.de","diskstation.eu","diskstation.org","dray-dns.de","draydns.de","dyn-vpn.de","dynvpn.de","mein-vigor.de","my-vigor.de","my-wan.de","syno-ds.de","synology-diskstation.de","synology-ds.de","typedream.app","pro.typeform.com","uber.space","*.uberspace.de","hk.com","hk.org","ltd.hk","inc.hk","name.pm","sch.tf","biz.wf","sch.wf","org.yt","virtualuser.de","virtual-user.de","upli.io","urown.cloud","dnsupdate.info","lib.de.us","2038.io","vercel.app","vercel.dev","now.sh","router.management","v-info.info","voorloper.cloud","neko.am","nyaa.am","be.ax","cat.ax","es.ax","eu.ax","gg.ax","mc.ax","us.ax","xy.ax","nl.ci","xx.gl","app.gp","blog.gt","de.gt","to.gt","be.gy","cc.hn","blog.kg","io.kg","jp.kg","tv.kg","uk.kg","us.kg","de.ls","at.md","de.md","jp.md","to.md","indie.porn","vxl.sh","ch.tc","me.tc","we.tc","nyan.to","at.vg","blog.vu","dev.vu","me.vu","v.ua","*.vultrobjects.com","wafflecell.com","*.webhare.dev","reserve-online.net","reserve-online.com","bookonline.app","hotelwithflight.com","wedeploy.io","wedeploy.me","wedeploy.sh","remotewd.com","pages.wiardweb.com","wmflabs.org","toolforge.org","wmcloud.org","panel.gg","daemon.panel.gg","messwithdns.com","woltlab-demo.com","myforum.community","community-pro.de","diskussionsbereich.de","community-pro.net","meinforum.net","affinitylottery.org.uk","raffleentry.org.uk","weeklylottery.org.uk","wpenginepowered.com","js.wpenginepowered.com","wixsite.com","editorx.io","half.host","xnbay.com","u2.xnbay.com","u2-local.xnbay.com","cistron.nl","demon.nl","xs4all.space","yandexcloud.net","storage.yandexcloud.net","website.yandexcloud.net","official.academy","yolasite.com","ybo.faith","yombo.me","homelink.one","ybo.party","ybo.review","ybo.science","ybo.trade","ynh.fr","nohost.me","noho.st","za.net","za.org","bss.design","basicserver.io","virtualserver.io","enterprisecloud.nu"];(function(t){var n=requirePunycode(),l={};l.rules=require$$1$4.map(function(d){return{rule:d,suffix:d.replace(/^(\*\.|\!)/,""),punySuffix:-1,wildcard:d.charAt(0)==="*",exception:d.charAt(0)==="!"}}),l.endsWith=function(d,m){return d.indexOf(m,d.length-m.length)!==-1},l.findRule=function(d){var m=n.toASCII(d);return l.rules.reduce(function(h,S){return S.punySuffix===-1&&(S.punySuffix=n.toASCII(S.suffix)),!l.endsWith(m,"."+S.punySuffix)&&m!==S.punySuffix?h:S},null)},t.errorCodes={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."},l.validate=function(d){var m=n.toASCII(d);if(m.length<1)return"DOMAIN_TOO_SHORT";if(m.length>255)return"DOMAIN_TOO_LONG";for(var h=m.split("."),S,k=0;k<h.length;++k){if(S=h[k],!S.length)return"LABEL_TOO_SHORT";if(S.length>63)return"LABEL_TOO_LONG";if(S.charAt(0)==="-")return"LABEL_STARTS_WITH_DASH";if(S.charAt(S.length-1)==="-")return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-]+$/.test(S))return"LABEL_INVALID_CHARS"}},t.parse=function(d){if(typeof d!="string")throw new TypeError("Domain name must be a string.");var m=d.slice(0).toLowerCase();m.charAt(m.length-1)==="."&&(m=m.slice(0,m.length-1));var h=l.validate(m);if(h)return{input:d,error:{message:t.errorCodes[h],code:h}};var S={input:d,tld:null,sld:null,domain:null,subdomain:null,listed:!1},k=m.split(".");if(k[k.length-1]==="local")return S;var A=function(){return/xn--/.test(m)&&(S.domain&&(S.domain=n.toASCII(S.domain)),S.subdomain&&(S.subdomain=n.toASCII(S.subdomain))),S},B=l.findRule(m);if(!B)return k.length<2?S:(S.tld=k.pop(),S.sld=k.pop(),S.domain=[S.sld,S.tld].join("."),k.length&&(S.subdomain=k.pop()),A());S.listed=!0;var M=B.suffix.split("."),j=k.slice(0,k.length-M.length);return B.exception&&j.push(M.shift()),S.tld=M.join("."),!j.length||(B.wildcard&&(M.unshift(j.pop()),S.tld=M.join(".")),!j.length)||(S.sld=j.pop(),S.domain=[S.sld,S.tld].join("."),j.length&&(S.subdomain=j.join("."))),A()},t.get=function(d){return d&&t.parse(d).domain||null},t.isValid=function(d){var m=t.parse(d);return!!(m.domain&&m.listed)}})(psl$1);/*!
 * Copyright (c) 2018, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */var psl=psl$1;function getPublicSuffix(t){return psl.get(t)}pubsuffixPsl.getPublicSuffix=getPublicSuffix;var store={};/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */function Store$2(){}store.Store=Store$2,Store$2.prototype.synchronous=!1,Store$2.prototype.findCookie=function(t,n,l,d){throw new Error("findCookie is not implemented")},Store$2.prototype.findCookies=function(t,n,l){throw new Error("findCookies is not implemented")},Store$2.prototype.putCookie=function(t,n){throw new Error("putCookie is not implemented")},Store$2.prototype.updateCookie=function(t,n,l){throw new Error("updateCookie is not implemented")},Store$2.prototype.removeCookie=function(t,n,l,d){throw new Error("removeCookie is not implemented")},Store$2.prototype.removeCookies=function(t,n,l){throw new Error("removeCookies is not implemented")},Store$2.prototype.removeAllCookies=function(t){throw new Error("removeAllCookies is not implemented")},Store$2.prototype.getAllCookies=function(t){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")};var memstore={},permuteDomain$2={};/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */var pubsuffix$1=pubsuffixPsl;function permuteDomain$1(t){var n=pubsuffix$1.getPublicSuffix(t);if(!n)return null;if(n==t)return[t];for(var l=t.slice(0,-(n.length+1)),d=l.split(".").reverse(),m=n,h=[m];d.length;)m=d.shift()+"."+m,h.push(m);return h}permuteDomain$2.permuteDomain=permuteDomain$1;var pathMatch$3={};/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */function pathMatch$2(t,n){if(n===t)return!0;var l=t.indexOf(n);return l===0&&(n.substr(-1)==="/"||t.substr(n.length,1)==="/")}pathMatch$3.pathMatch=pathMatch$2;/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */var Store$1=store.Store,permuteDomain=permuteDomain$2.permuteDomain,pathMatch$1=pathMatch$3.pathMatch,util$5=util$6;function MemoryCookieStore$1(){Store$1.call(this),this.idx={}}util$5.inherits(MemoryCookieStore$1,Store$1),memstore.MemoryCookieStore=MemoryCookieStore$1,MemoryCookieStore$1.prototype.idx=null,MemoryCookieStore$1.prototype.synchronous=!0,MemoryCookieStore$1.prototype.inspect=function(){return"{ idx: "+util$5.inspect(this.idx,!1,2)+" }"},util$5.inspect.custom&&(MemoryCookieStore$1.prototype[util$5.inspect.custom]=MemoryCookieStore$1.prototype.inspect),MemoryCookieStore$1.prototype.findCookie=function(t,n,l,d){return!this.idx[t]||!this.idx[t][n]?d(null,void 0):d(null,this.idx[t][n][l]||null)},MemoryCookieStore$1.prototype.findCookies=function(t,n,l){var d=[];if(!t)return l(null,[]);var m;n?m=function(A){Object.keys(A).forEach(function(B){if(pathMatch$1(n,B)){var M=A[B];for(var j in M)d.push(M[j])}})}:m=function(A){for(var B in A){var M=A[B];for(var j in M)d.push(M[j])}};var h=permuteDomain(t)||[t],S=this.idx;h.forEach(function(k){var A=S[k];A&&m(A)}),l(null,d)},MemoryCookieStore$1.prototype.putCookie=function(t,n){this.idx[t.domain]||(this.idx[t.domain]={}),this.idx[t.domain][t.path]||(this.idx[t.domain][t.path]={}),this.idx[t.domain][t.path][t.key]=t,n(null)},MemoryCookieStore$1.prototype.updateCookie=function(t,n,l){this.putCookie(n,l)},MemoryCookieStore$1.prototype.removeCookie=function(t,n,l,d){this.idx[t]&&this.idx[t][n]&&this.idx[t][n][l]&&delete this.idx[t][n][l],d(null)},MemoryCookieStore$1.prototype.removeCookies=function(t,n,l){return this.idx[t]&&(n?delete this.idx[t][n]:delete this.idx[t]),l(null)},MemoryCookieStore$1.prototype.removeAllCookies=function(t){return this.idx={},t(null)},MemoryCookieStore$1.prototype.getAllCookies=function(t){var n=[],l=this.idx,d=Object.keys(l);d.forEach(function(m){var h=Object.keys(l[m]);h.forEach(function(S){var k=Object.keys(l[m][S]);k.forEach(function(A){A!==null&&n.push(l[m][S][A])})})}),n.sort(function(m,h){return(m.creationIndex||0)-(h.creationIndex||0)}),t(null,n)};var version$2="2.5.0";/*!
 * Copyright (c) 2015, Salesforce.com, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * 3. Neither the name of Salesforce.com nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */var net=require$$1$5,urlParse=require$$2$2.parse,util$4=util$6,pubsuffix=pubsuffixPsl,Store=store.Store,MemoryCookieStore=memstore.MemoryCookieStore,pathMatch=pathMatch$3.pathMatch,VERSION=version$2,punycode;try{punycode=requirePunycode()}catch(t){console.warn("tough-cookie: can't load punycode; won't use punycode for domain normalization")}var COOKIE_OCTETS=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,CONTROL_CHARS=/[\x00-\x1F]/,TERMINATORS=[`
`,"\r","\0"],PATH_VALUE=/[\x20-\x3A\x3C-\x7E]+/,DATE_DELIM=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,MONTH_TO_NUM={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},NUM_TO_MONTH=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],NUM_TO_DAY=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],MAX_TIME=2147483647e3,MIN_TIME=0;function parseDigits(t,n,l,d){for(var m=0;m<t.length;){var h=t.charCodeAt(m);if(h<=47||h>=58)break;m++}return m<n||m>l||!d&&m!=t.length?null:parseInt(t.substr(0,m),10)}function parseTime(t){var n=t.split(":"),l=[0,0,0];if(n.length!==3)return null;for(var d=0;d<3;d++){var m=d==2,h=parseDigits(n[d],1,2,m);if(h===null)return null;l[d]=h}return l}function parseMonth(t){t=String(t).substr(0,3).toLowerCase();var n=MONTH_TO_NUM[t];return n>=0?n:null}function parseDate(t){if(t){var n=t.split(DATE_DELIM);if(n){for(var l=null,d=null,m=null,h=null,S=null,k=null,A=0;A<n.length;A++){var B=n[A].trim();if(B.length){var M;if(m===null&&(M=parseTime(B),M)){l=M[0],d=M[1],m=M[2];continue}if(h===null&&(M=parseDigits(B,1,2,!0),M!==null)){h=M;continue}if(S===null&&(M=parseMonth(B),M!==null)){S=M;continue}k===null&&(M=parseDigits(B,2,4,!0),M!==null&&(k=M,k>=70&&k<=99?k+=1900:k>=0&&k<=69&&(k+=2e3)))}}if(!(h===null||S===null||k===null||m===null||h<1||h>31||k<1601||l>23||d>59||m>59))return new Date(Date.UTC(k,S,h,l,d,m))}}}function formatDate(t){var n=t.getUTCDate();n=n>=10?n:"0"+n;var l=t.getUTCHours();l=l>=10?l:"0"+l;var d=t.getUTCMinutes();d=d>=10?d:"0"+d;var m=t.getUTCSeconds();return m=m>=10?m:"0"+m,NUM_TO_DAY[t.getUTCDay()]+", "+n+" "+NUM_TO_MONTH[t.getUTCMonth()]+" "+t.getUTCFullYear()+" "+l+":"+d+":"+m+" GMT"}function canonicalDomain(t){return t==null?null:(t=t.trim().replace(/^\./,""),punycode&&/[^\u0001-\u007f]/.test(t)&&(t=punycode.toASCII(t)),t.toLowerCase())}function domainMatch(t,n,l){if(t==null||n==null)return null;if(l!==!1&&(t=canonicalDomain(t),n=canonicalDomain(n)),t==n)return!0;if(net.isIP(t))return!1;var d=t.indexOf(n);return!(d<=0||t.length!==n.length+d||t.substr(d-1,1)!==".")}function defaultPath(t){if(!t||t.substr(0,1)!=="/")return"/";if(t==="/")return t;var n=t.lastIndexOf("/");return n===0?"/":t.slice(0,n)}function trimTerminator(t){for(var n=0;n<TERMINATORS.length;n++){var l=t.indexOf(TERMINATORS[n]);l!==-1&&(t=t.substr(0,l))}return t}function parseCookiePair(t,n){t=trimTerminator(t);var l=t.indexOf("=");if(n)l===0&&(t=t.substr(1),l=t.indexOf("="));else if(l<=0)return;var d,m;if(l<=0?(d="",m=t.trim()):(d=t.substr(0,l).trim(),m=t.substr(l+1).trim()),!(CONTROL_CHARS.test(d)||CONTROL_CHARS.test(m))){var h=new Cookie$1;return h.key=d,h.value=m,h}}function parse$1(t,n){(!n||typeof n!="object")&&(n={}),t=t.trim();var l=t.indexOf(";"),d=l===-1?t:t.substr(0,l),m=parseCookiePair(d,!!n.loose);if(m){if(l===-1)return m;var h=t.slice(l+1).trim();if(h.length===0)return m;for(var S=h.split(";");S.length;){var k=S.shift().trim();if(k.length!==0){var A=k.indexOf("="),B,M;switch(A===-1?(B=k,M=null):(B=k.substr(0,A),M=k.substr(A+1)),B=B.trim().toLowerCase(),M&&(M=M.trim()),B){case"expires":if(M){var j=parseDate(M);j&&(m.expires=j)}break;case"max-age":if(M&&/^-?[0-9]+$/.test(M)){var I=parseInt(M,10);m.setMaxAge(I)}break;case"domain":if(M){var P=M.trim().replace(/^\./,"");P&&(m.domain=P.toLowerCase())}break;case"path":m.path=M&&M[0]==="/"?M:null;break;case"secure":m.secure=!0;break;case"httponly":m.httpOnly=!0;break;default:m.extensions=m.extensions||[],m.extensions.push(k);break}}}return m}}function jsonParse(t){var n;try{n=JSON.parse(t)}catch(l){return l}return n}function fromJSON(t){if(!t)return null;var n;if(typeof t=="string"){if(n=jsonParse(t),n instanceof Error)return null}else n=t;for(var l=new Cookie$1,d=0;d<Cookie$1.serializableProperties.length;d++){var m=Cookie$1.serializableProperties[d];n[m]===void 0||n[m]===Cookie$1.prototype[m]||(m==="expires"||m==="creation"||m==="lastAccessed"?n[m]===null?l[m]=null:l[m]=n[m]=="Infinity"?"Infinity":new Date(n[m]):l[m]=n[m])}return l}function cookieCompare(t,n){var l=0,d=t.path?t.path.length:0,m=n.path?n.path.length:0;if(l=m-d,l!==0)return l;var h=t.creation?t.creation.getTime():MAX_TIME,S=n.creation?n.creation.getTime():MAX_TIME;return l=h-S,l!==0||(l=t.creationIndex-n.creationIndex),l}function permutePath(t){if(t==="/")return["/"];t.lastIndexOf("/")===t.length-1&&(t=t.substr(0,t.length-1));for(var n=[t];t.length>1;){var l=t.lastIndexOf("/");if(l===0)break;t=t.substr(0,l),n.push(t)}return n.push("/"),n}function getCookieContext(t){if(t instanceof Object)return t;try{t=decodeURI(t)}catch{}return urlParse(t)}function Cookie$1(t){t=t||{},Object.keys(t).forEach(function(n){Cookie$1.prototype.hasOwnProperty(n)&&Cookie$1.prototype[n]!==t[n]&&n.substr(0,1)!=="_"&&(this[n]=t[n])},this),this.creation=this.creation||new Date,Object.defineProperty(this,"creationIndex",{configurable:!1,enumerable:!1,writable:!0,value:++Cookie$1.cookiesCreated})}Cookie$1.cookiesCreated=0,Cookie$1.parse=parse$1,Cookie$1.fromJSON=fromJSON,Cookie$1.prototype.key="",Cookie$1.prototype.value="",Cookie$1.prototype.expires="Infinity",Cookie$1.prototype.maxAge=null,Cookie$1.prototype.domain=null,Cookie$1.prototype.path=null,Cookie$1.prototype.secure=!1,Cookie$1.prototype.httpOnly=!1,Cookie$1.prototype.extensions=null,Cookie$1.prototype.hostOnly=null,Cookie$1.prototype.pathIsDefault=null,Cookie$1.prototype.creation=null,Cookie$1.prototype.lastAccessed=null,Object.defineProperty(Cookie$1.prototype,"creationIndex",{configurable:!0,enumerable:!1,writable:!0,value:0}),Cookie$1.serializableProperties=Object.keys(Cookie$1.prototype).filter(function(t){return!(Cookie$1.prototype[t]instanceof Function||t==="creationIndex"||t.substr(0,1)==="_")}),Cookie$1.prototype.inspect=function(){var n=Date.now();return'Cookie="'+this.toString()+"; hostOnly="+(this.hostOnly!=null?this.hostOnly:"?")+"; aAge="+(this.lastAccessed?n-this.lastAccessed.getTime()+"ms":"?")+"; cAge="+(this.creation?n-this.creation.getTime()+"ms":"?")+'"'},util$4.inspect.custom&&(Cookie$1.prototype[util$4.inspect.custom]=Cookie$1.prototype.inspect),Cookie$1.prototype.toJSON=function(){for(var t={},n=Cookie$1.serializableProperties,l=0;l<n.length;l++){var d=n[l];this[d]!==Cookie$1.prototype[d]&&(d==="expires"||d==="creation"||d==="lastAccessed"?this[d]===null?t[d]=null:t[d]=this[d]=="Infinity"?"Infinity":this[d].toISOString():d==="maxAge"?this[d]!==null&&(t[d]=this[d]==1/0||this[d]==-1/0?this[d].toString():this[d]):this[d]!==Cookie$1.prototype[d]&&(t[d]=this[d]))}return t},Cookie$1.prototype.clone=function(){return fromJSON(this.toJSON())},Cookie$1.prototype.validate=function(){if(!COOKIE_OCTETS.test(this.value)||this.expires!=1/0&&!(this.expires instanceof Date)&&!parseDate(this.expires)||this.maxAge!=null&&this.maxAge<=0||this.path!=null&&!PATH_VALUE.test(this.path))return!1;var n=this.cdomain();if(n){if(n.match(/\.$/))return!1;var l=pubsuffix.getPublicSuffix(n);if(l==null)return!1}return!0},Cookie$1.prototype.setExpires=function(n){n instanceof Date?this.expires=n:this.expires=parseDate(n)||"Infinity"},Cookie$1.prototype.setMaxAge=function(n){n===1/0||n===-1/0?this.maxAge=n.toString():this.maxAge=n},Cookie$1.prototype.cookieString=function(){var n=this.value;return n==null&&(n=""),this.key===""?n:this.key+"="+n},Cookie$1.prototype.toString=function(){var n=this.cookieString();return this.expires!=1/0&&(this.expires instanceof Date?n+="; Expires="+formatDate(this.expires):n+="; Expires="+this.expires),this.maxAge!=null&&this.maxAge!=1/0&&(n+="; Max-Age="+this.maxAge),this.domain&&!this.hostOnly&&(n+="; Domain="+this.domain),this.path&&(n+="; Path="+this.path),this.secure&&(n+="; Secure"),this.httpOnly&&(n+="; HttpOnly"),this.extensions&&this.extensions.forEach(function(l){n+="; "+l}),n},Cookie$1.prototype.TTL=function(n){if(this.maxAge!=null)return this.maxAge<=0?0:this.maxAge*1e3;var l=this.expires;return l!=1/0?(l instanceof Date||(l=parseDate(l)||1/0),l==1/0?1/0:l.getTime()-(n||Date.now())):1/0},Cookie$1.prototype.expiryTime=function(n){if(this.maxAge!=null){var l=n||this.creation||new Date,d=this.maxAge<=0?-1/0:this.maxAge*1e3;return l.getTime()+d}return this.expires==1/0?1/0:this.expires.getTime()},Cookie$1.prototype.expiryDate=function(n){var l=this.expiryTime(n);return l==1/0?new Date(MAX_TIME):l==-1/0?new Date(MIN_TIME):new Date(l)},Cookie$1.prototype.isPersistent=function(){return this.maxAge!=null||this.expires!=1/0},Cookie$1.prototype.cdomain=Cookie$1.prototype.canonicalizedDomain=function(){return this.domain==null?null:canonicalDomain(this.domain)};function CookieJar$1(t,n){typeof n=="boolean"?n={rejectPublicSuffixes:n}:n==null&&(n={}),n.rejectPublicSuffixes!=null&&(this.rejectPublicSuffixes=n.rejectPublicSuffixes),n.looseMode!=null&&(this.enableLooseMode=n.looseMode),t||(t=new MemoryCookieStore),this.store=t}CookieJar$1.prototype.store=null,CookieJar$1.prototype.rejectPublicSuffixes=!0,CookieJar$1.prototype.enableLooseMode=!1;var CAN_BE_SYNC=[];CAN_BE_SYNC.push("setCookie"),CookieJar$1.prototype.setCookie=function(t,n,l,d){var m,h=getCookieContext(n);l instanceof Function&&(d=l,l={});var S=canonicalDomain(h.hostname),k=this.enableLooseMode;if(l.loose!=null&&(k=l.loose),t instanceof Cookie$1||(t=Cookie$1.parse(t,{loose:k})),!t)return m=new Error("Cookie failed to parse"),d(l.ignoreError?null:m);var A=l.now||new Date;if(this.rejectPublicSuffixes&&t.domain){var B=pubsuffix.getPublicSuffix(t.cdomain());if(B==null)return m=new Error("Cookie has domain set to a public suffix"),d(l.ignoreError?null:m)}if(t.domain){if(!domainMatch(S,t.cdomain(),!1))return m=new Error("Cookie not in this host's domain. Cookie:"+t.cdomain()+" Request:"+S),d(l.ignoreError?null:m);t.hostOnly==null&&(t.hostOnly=!1)}else t.hostOnly=!0,t.domain=S;if((!t.path||t.path[0]!=="/")&&(t.path=defaultPath(h.pathname),t.pathIsDefault=!0),l.http===!1&&t.httpOnly)return m=new Error("Cookie is HttpOnly and this isn't an HTTP API"),d(l.ignoreError?null:m);var M=this.store;M.updateCookie||(M.updateCookie=function(I,P,$){this.putCookie(P,$)});function j(I,P){if(I)return d(I);var $=function(z){if(z)return d(z);d(null,t)};if(P){if(l.http===!1&&P.httpOnly)return I=new Error("old Cookie is HttpOnly and this isn't an HTTP API"),d(l.ignoreError?null:I);t.creation=P.creation,t.creationIndex=P.creationIndex,t.lastAccessed=A,M.updateCookie(P,t,$)}else t.creation=t.lastAccessed=A,M.putCookie(t,$)}M.findCookie(t.domain,t.path,t.key,j)},CAN_BE_SYNC.push("getCookies"),CookieJar$1.prototype.getCookies=function(t,n,l){var d=getCookieContext(t);n instanceof Function&&(l=n,n={});var m=canonicalDomain(d.hostname),h=d.pathname||"/",S=n.secure;S==null&&d.protocol&&(d.protocol=="https:"||d.protocol=="wss:")&&(S=!0);var k=n.http;k==null&&(k=!0);var A=n.now||Date.now(),B=n.expire!==!1,M=!!n.allPaths,j=this.store;function I(P){if(P.hostOnly){if(P.domain!=m)return!1}else if(!domainMatch(m,P.domain,!1))return!1;return!M&&!pathMatch(h,P.path)||P.secure&&!S||P.httpOnly&&!k?!1:B&&P.expiryTime()<=A?(j.removeCookie(P.domain,P.path,P.key,function(){}),!1):!0}j.findCookies(m,M?null:h,function(P,$){if(P)return l(P);$=$.filter(I),n.sort!==!1&&($=$.sort(cookieCompare));var z=new Date;$.forEach(function(N){N.lastAccessed=z}),l(null,$)})},CAN_BE_SYNC.push("getCookieString"),CookieJar$1.prototype.getCookieString=function(){var t=Array.prototype.slice.call(arguments,0),n=t.pop(),l=function(d,m){d?n(d):n(null,m.sort(cookieCompare).map(function(h){return h.cookieString()}).join("; "))};t.push(l),this.getCookies.apply(this,t)},CAN_BE_SYNC.push("getSetCookieStrings"),CookieJar$1.prototype.getSetCookieStrings=function(){var t=Array.prototype.slice.call(arguments,0),n=t.pop(),l=function(d,m){d?n(d):n(null,m.map(function(h){return h.toString()}))};t.push(l),this.getCookies.apply(this,t)},CAN_BE_SYNC.push("serialize"),CookieJar$1.prototype.serialize=function(t){var n=this.store.constructor.name;n==="Object"&&(n=null);var l={version:"tough-cookie@"+VERSION,storeType:n,rejectPublicSuffixes:!!this.rejectPublicSuffixes,cookies:[]};if(!(this.store.getAllCookies&&typeof this.store.getAllCookies=="function"))return t(new Error("store does not support getAllCookies and cannot be serialized"));this.store.getAllCookies(function(d,m){return d?t(d):(l.cookies=m.map(function(h){return h=h instanceof Cookie$1?h.toJSON():h,delete h.creationIndex,h}),t(null,l))})},CookieJar$1.prototype.toJSON=function(){return this.serializeSync()},CAN_BE_SYNC.push("_importCookies"),CookieJar$1.prototype._importCookies=function(t,n){var l=this,d=t.cookies;if(!d||!Array.isArray(d))return n(new Error("serialized jar has no cookies array"));d=d.slice();function m(h){if(h)return n(h);if(!d.length)return n(h,l);var S;try{S=fromJSON(d.shift())}catch(k){return n(k)}if(S===null)return m(null);l.store.putCookie(S,m)}m()},CookieJar$1.deserialize=function(t,n,l){arguments.length!==3&&(l=n,n=null);var d;if(typeof t=="string"){if(d=jsonParse(t),d instanceof Error)return l(d)}else d=t;var m=new CookieJar$1(n,d.rejectPublicSuffixes);m._importCookies(d,function(h){if(h)return l(h);l(null,m)})},CookieJar$1.deserializeSync=function(t,n){var l=typeof t=="string"?JSON.parse(t):t,d=new CookieJar$1(n,l.rejectPublicSuffixes);if(!d.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");return d._importCookiesSync(l),d},CookieJar$1.fromJSON=CookieJar$1.deserializeSync,CookieJar$1.prototype.clone=function(t,n){arguments.length===1&&(n=t,t=null),this.serialize(function(l,d){if(l)return n(l);CookieJar$1.deserialize(d,t,n)})},CAN_BE_SYNC.push("removeAllCookies"),CookieJar$1.prototype.removeAllCookies=function(t){var n=this.store;if(n.removeAllCookies instanceof Function&&n.removeAllCookies!==Store.prototype.removeAllCookies)return n.removeAllCookies(t);n.getAllCookies(function(l,d){if(l)return t(l);if(d.length===0)return t(null);var m=0,h=[];function S(k){if(k&&h.push(k),m++,m===d.length)return t(h.length?h[0]:null)}d.forEach(function(k){n.removeCookie(k.domain,k.path,k.key,S)})})},CookieJar$1.prototype._cloneSync=syncWrap("clone"),CookieJar$1.prototype.cloneSync=function(t){if(!t.synchronous)throw new Error("CookieJar clone destination store is not synchronous; use async API instead.");return this._cloneSync(t)};function syncWrap(t){return function(){if(!this.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");var n=Array.prototype.slice.call(arguments),l,d;if(n.push(function(h,S){l=h,d=S}),this[t].apply(this,n),l)throw l;return d}}CAN_BE_SYNC.forEach(function(t){CookieJar$1.prototype[t+"Sync"]=syncWrap(t)}),cookie.version=VERSION,cookie.CookieJar=CookieJar$1,cookie.Cookie=Cookie$1,cookie.Store=Store,cookie.MemoryCookieStore=MemoryCookieStore,cookie.parseDate=parseDate,cookie.formatDate=formatDate,cookie.parse=parse$1,cookie.fromJSON=fromJSON,cookie.domainMatch=domainMatch,cookie.defaultPath=defaultPath,cookie.pathMatch=pathMatch,cookie.getPublicSuffix=pubsuffix.getPublicSuffix,cookie.cookieCompare=cookieCompare,cookie.permuteDomain=permuteDomain$2.permuteDomain,cookie.permutePath=permutePath,cookie.canonicalDomain=canonicalDomain;var tough=cookie,Cookie=tough.Cookie,CookieJar=tough.CookieJar;cookies$1.parse=function(t){if(t&&t.uri&&(t=t.uri),typeof t!="string")throw new Error("The cookie function only accepts STRING as param");return Cookie.parse(t,{loose:!0})};function RequestJar(t){var n=this;n._jar=new CookieJar(t,{looseMode:!0})}RequestJar.prototype.setCookie=function(t,n,l){var d=this;return d._jar.setCookieSync(t,n,l||{})},RequestJar.prototype.getCookieString=function(t){var n=this;return n._jar.getCookieStringSync(t)},RequestJar.prototype.getCookies=function(t){var n=this;return n._jar.getCookiesSync(t)},cookies$1.jar=function(t){return new RequestJar(t)};var helpers$1={},stringify={exports:{}};(function(t,n){n=t.exports=l,n.getSerialize=d;function l(m,h,S,k){return JSON.stringify(m,d(h,k),S)}function d(m,h){var S=[],k=[];return h==null&&(h=function(A,B){return S[0]===B?"[Circular ~]":"[Circular ~."+k.slice(0,S.indexOf(B)).join(".")+"]"}),function(A,B){if(S.length>0){var M=S.indexOf(this);~M?S.splice(M+1):S.push(this),~M?k.splice(M,1/0,A):k.push(A),~S.indexOf(B)&&(B=h.call(this,A,B))}else S.push(B);return m==null?B:m.call(this,A,B)}}})(stringify,stringify.exports);var stringifyExports=stringify.exports,cryptoBrowserify={},browser$d={exports:{}},safeBuffer$2={exports:{}},buffer$1={},base64Js={};base64Js.byteLength=byteLength,base64Js.toByteArray=toByteArray,base64Js.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,len=code.length;i<len;++i)lookup[i]=code[i],revLookup[code.charCodeAt(i)]=i;revLookup[45]=62,revLookup[95]=63;function getLens(t){var n=t.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=t.indexOf("=");l===-1&&(l=n);var d=l===n?0:4-l%4;return[l,d]}function byteLength(t){var n=getLens(t),l=n[0],d=n[1];return(l+d)*3/4-d}function _byteLength(t,n,l){return(n+l)*3/4-l}function toByteArray(t){var n,l=getLens(t),d=l[0],m=l[1],h=new Arr(_byteLength(t,d,m)),S=0,k=m>0?d-4:d,A;for(A=0;A<k;A+=4)n=revLookup[t.charCodeAt(A)]<<18|revLookup[t.charCodeAt(A+1)]<<12|revLookup[t.charCodeAt(A+2)]<<6|revLookup[t.charCodeAt(A+3)],h[S++]=n>>16&255,h[S++]=n>>8&255,h[S++]=n&255;return m===2&&(n=revLookup[t.charCodeAt(A)]<<2|revLookup[t.charCodeAt(A+1)]>>4,h[S++]=n&255),m===1&&(n=revLookup[t.charCodeAt(A)]<<10|revLookup[t.charCodeAt(A+1)]<<4|revLookup[t.charCodeAt(A+2)]>>2,h[S++]=n>>8&255,h[S++]=n&255),h}function tripletToBase64(t){return lookup[t>>18&63]+lookup[t>>12&63]+lookup[t>>6&63]+lookup[t&63]}function encodeChunk(t,n,l){for(var d,m=[],h=n;h<l;h+=3)d=(t[h]<<16&16711680)+(t[h+1]<<8&65280)+(t[h+2]&255),m.push(tripletToBase64(d));return m.join("")}function fromByteArray(t){for(var n,l=t.length,d=l%3,m=[],h=16383,S=0,k=l-d;S<k;S+=h)m.push(encodeChunk(t,S,S+h>k?k:S+h));return d===1?(n=t[l-1],m.push(lookup[n>>2]+lookup[n<<4&63]+"==")):d===2&&(n=(t[l-2]<<8)+t[l-1],m.push(lookup[n>>10]+lookup[n>>4&63]+lookup[n<<2&63]+"=")),m.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(t,n,l,d,m){var h,S,k=m*8-d-1,A=(1<<k)-1,B=A>>1,M=-7,j=l?m-1:0,I=l?-1:1,P=t[n+j];for(j+=I,h=P&(1<<-M)-1,P>>=-M,M+=k;M>0;h=h*256+t[n+j],j+=I,M-=8);for(S=h&(1<<-M)-1,h>>=-M,M+=d;M>0;S=S*256+t[n+j],j+=I,M-=8);if(h===0)h=1-B;else{if(h===A)return S?NaN:(P?-1:1)*(1/0);S=S+Math.pow(2,d),h=h-B}return(P?-1:1)*S*Math.pow(2,h-d)},ieee754.write=function(t,n,l,d,m,h){var S,k,A,B=h*8-m-1,M=(1<<B)-1,j=M>>1,I=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=d?0:h-1,$=d?1:-1,z=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(k=isNaN(n)?1:0,S=M):(S=Math.floor(Math.log(n)/Math.LN2),n*(A=Math.pow(2,-S))<1&&(S--,A*=2),S+j>=1?n+=I/A:n+=I*Math.pow(2,1-j),n*A>=2&&(S++,A/=2),S+j>=M?(k=0,S=M):S+j>=1?(k=(n*A-1)*Math.pow(2,m),S=S+j):(k=n*Math.pow(2,j-1)*Math.pow(2,m),S=0));m>=8;t[l+P]=k&255,P+=$,k/=256,m-=8);for(S=S<<m|k,B+=m;B>0;t[l+P]=S&255,P+=$,S/=256,B-=8);t[l+P-$]|=z*128};/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */(function(t){const n=base64Js,l=ieee754,d=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=M,t.SlowBuffer=se,t.INSPECT_MAX_BYTES=50;const m=2147483647;t.kMaxLength=m;const{Uint8Array:h,ArrayBuffer:S,SharedArrayBuffer:k}=globalThis;M.TYPED_ARRAY_SUPPORT=A(),!M.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function A(){try{const xe=new h(1),X={foo:function(){return 42}};return Object.setPrototypeOf(X,h.prototype),Object.setPrototypeOf(xe,X),xe.foo()===42}catch{return!1}}Object.defineProperty(M.prototype,"parent",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.buffer}}),Object.defineProperty(M.prototype,"offset",{enumerable:!0,get:function(){if(M.isBuffer(this))return this.byteOffset}});function B(xe){if(xe>m)throw new RangeError('The value "'+xe+'" is invalid for option "size"');const X=new h(xe);return Object.setPrototypeOf(X,M.prototype),X}function M(xe,X,pe){if(typeof xe=="number"){if(typeof X=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $(xe)}return j(xe,X,pe)}M.poolSize=8192;function j(xe,X,pe){if(typeof xe=="string")return z(xe,X);if(S.isView(xe))return F(xe);if(xe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof xe);if(Oe(xe,S)||xe&&Oe(xe.buffer,S)||typeof k<"u"&&(Oe(xe,k)||xe&&Oe(xe.buffer,k)))return U(xe,X,pe);if(typeof xe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const je=xe.valueOf&&xe.valueOf();if(je!=null&&je!==xe)return M.from(je,X,pe);const $e=J(xe);if($e)return $e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof xe[Symbol.toPrimitive]=="function")return M.from(xe[Symbol.toPrimitive]("string"),X,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof xe)}M.from=function(xe,X,pe){return j(xe,X,pe)},Object.setPrototypeOf(M.prototype,h.prototype),Object.setPrototypeOf(M,h);function I(xe){if(typeof xe!="number")throw new TypeError('"size" argument must be of type number');if(xe<0)throw new RangeError('The value "'+xe+'" is invalid for option "size"')}function P(xe,X,pe){return I(xe),xe<=0?B(xe):X!==void 0?typeof pe=="string"?B(xe).fill(X,pe):B(xe).fill(X):B(xe)}M.alloc=function(xe,X,pe){return P(xe,X,pe)};function $(xe){return I(xe),B(xe<0?0:te(xe)|0)}M.allocUnsafe=function(xe){return $(xe)},M.allocUnsafeSlow=function(xe){return $(xe)};function z(xe,X){if((typeof X!="string"||X==="")&&(X="utf8"),!M.isEncoding(X))throw new TypeError("Unknown encoding: "+X);const pe=de(xe,X)|0;let je=B(pe);const $e=je.write(xe,X);return $e!==pe&&(je=je.slice(0,$e)),je}function N(xe){const X=xe.length<0?0:te(xe.length)|0,pe=B(X);for(let je=0;je<X;je+=1)pe[je]=xe[je]&255;return pe}function F(xe){if(Oe(xe,h)){const X=new h(xe);return U(X.buffer,X.byteOffset,X.byteLength)}return N(xe)}function U(xe,X,pe){if(X<0||xe.byteLength<X)throw new RangeError('"offset" is outside of buffer bounds');if(xe.byteLength<X+(pe||0))throw new RangeError('"length" is outside of buffer bounds');let je;return X===void 0&&pe===void 0?je=new h(xe):pe===void 0?je=new h(xe,X):je=new h(xe,X,pe),Object.setPrototypeOf(je,M.prototype),je}function J(xe){if(M.isBuffer(xe)){const X=te(xe.length)|0,pe=B(X);return pe.length===0||xe.copy(pe,0,0,X),pe}if(xe.length!==void 0)return typeof xe.length!="number"||$t(xe.length)?B(0):N(xe);if(xe.type==="Buffer"&&Array.isArray(xe.data))return N(xe.data)}function te(xe){if(xe>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return xe|0}function se(xe){return+xe!=xe&&(xe=0),M.alloc(+xe)}M.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==M.prototype},M.compare=function(X,pe){if(Oe(X,h)&&(X=M.from(X,X.offset,X.byteLength)),Oe(pe,h)&&(pe=M.from(pe,pe.offset,pe.byteLength)),!M.isBuffer(X)||!M.isBuffer(pe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===pe)return 0;let je=X.length,$e=pe.length;for(let He=0,Fe=Math.min(je,$e);He<Fe;++He)if(X[He]!==pe[He]){je=X[He],$e=pe[He];break}return je<$e?-1:$e<je?1:0},M.isEncoding=function(X){switch(String(X).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},M.concat=function(X,pe){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return M.alloc(0);let je;if(pe===void 0)for(pe=0,je=0;je<X.length;++je)pe+=X[je].length;const $e=M.allocUnsafe(pe);let He=0;for(je=0;je<X.length;++je){let Fe=X[je];if(Oe(Fe,h))He+Fe.length>$e.length?(M.isBuffer(Fe)||(Fe=M.from(Fe)),Fe.copy($e,He)):h.prototype.set.call($e,Fe,He);else if(M.isBuffer(Fe))Fe.copy($e,He);else throw new TypeError('"list" argument must be an Array of Buffers');He+=Fe.length}return $e};function de(xe,X){if(M.isBuffer(xe))return xe.length;if(S.isView(xe)||Oe(xe,S))return xe.byteLength;if(typeof xe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof xe);const pe=xe.length,je=arguments.length>2&&arguments[2]===!0;if(!je&&pe===0)return 0;let $e=!1;for(;;)switch(X){case"ascii":case"latin1":case"binary":return pe;case"utf8":case"utf-8":return Xe(xe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe*2;case"hex":return pe>>>1;case"base64":return Et(xe).length;default:if($e)return je?-1:Xe(xe).length;X=(""+X).toLowerCase(),$e=!0}}M.byteLength=de;function Q(xe,X,pe){let je=!1;if((X===void 0||X<0)&&(X=0),X>this.length||((pe===void 0||pe>this.length)&&(pe=this.length),pe<=0)||(pe>>>=0,X>>>=0,pe<=X))return"";for(xe||(xe="utf8");;)switch(xe){case"hex":return E(this,X,pe);case"utf8":case"utf-8":return y(this,X,pe);case"ascii":return o(this,X,pe);case"latin1":case"binary":return x(this,X,pe);case"base64":return c(this,X,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,X,pe);default:if(je)throw new TypeError("Unknown encoding: "+xe);xe=(xe+"").toLowerCase(),je=!0}}M.prototype._isBuffer=!0;function ve(xe,X,pe){const je=xe[X];xe[X]=xe[pe],xe[pe]=je}M.prototype.swap16=function(){const X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let pe=0;pe<X;pe+=2)ve(this,pe,pe+1);return this},M.prototype.swap32=function(){const X=this.length;if(X%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let pe=0;pe<X;pe+=4)ve(this,pe,pe+3),ve(this,pe+1,pe+2);return this},M.prototype.swap64=function(){const X=this.length;if(X%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let pe=0;pe<X;pe+=8)ve(this,pe,pe+7),ve(this,pe+1,pe+6),ve(this,pe+2,pe+5),ve(this,pe+3,pe+4);return this},M.prototype.toString=function(){const X=this.length;return X===0?"":arguments.length===0?y(this,0,X):Q.apply(this,arguments)},M.prototype.toLocaleString=M.prototype.toString,M.prototype.equals=function(X){if(!M.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:M.compare(this,X)===0},M.prototype.inspect=function(){let X="";const pe=t.INSPECT_MAX_BYTES;return X=this.toString("hex",0,pe).replace(/(.{2})/g,"$1 ").trim(),this.length>pe&&(X+=" ... "),"<Buffer "+X+">"},d&&(M.prototype[d]=M.prototype.inspect),M.prototype.compare=function(X,pe,je,$e,He){if(Oe(X,h)&&(X=M.from(X,X.offset,X.byteLength)),!M.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(pe===void 0&&(pe=0),je===void 0&&(je=X?X.length:0),$e===void 0&&($e=0),He===void 0&&(He=this.length),pe<0||je>X.length||$e<0||He>this.length)throw new RangeError("out of range index");if($e>=He&&pe>=je)return 0;if($e>=He)return-1;if(pe>=je)return 1;if(pe>>>=0,je>>>=0,$e>>>=0,He>>>=0,this===X)return 0;let Fe=He-$e,Me=je-pe;const Rt=Math.min(Fe,Me),yt=this.slice($e,He),le=X.slice(pe,je);for(let wt=0;wt<Rt;++wt)if(yt[wt]!==le[wt]){Fe=yt[wt],Me=le[wt];break}return Fe<Me?-1:Me<Fe?1:0};function he(xe,X,pe,je,$e){if(xe.length===0)return-1;if(typeof pe=="string"?(je=pe,pe=0):pe>2147483647?pe=2147483647:pe<-2147483648&&(pe=-2147483648),pe=+pe,$t(pe)&&(pe=$e?0:xe.length-1),pe<0&&(pe=xe.length+pe),pe>=xe.length){if($e)return-1;pe=xe.length-1}else if(pe<0)if($e)pe=0;else return-1;if(typeof X=="string"&&(X=M.from(X,je)),M.isBuffer(X))return X.length===0?-1:ke(xe,X,pe,je,$e);if(typeof X=="number")return X=X&255,typeof h.prototype.indexOf=="function"?$e?h.prototype.indexOf.call(xe,X,pe):h.prototype.lastIndexOf.call(xe,X,pe):ke(xe,[X],pe,je,$e);throw new TypeError("val must be string, number or Buffer")}function ke(xe,X,pe,je,$e){let He=1,Fe=xe.length,Me=X.length;if(je!==void 0&&(je=String(je).toLowerCase(),je==="ucs2"||je==="ucs-2"||je==="utf16le"||je==="utf-16le")){if(xe.length<2||X.length<2)return-1;He=2,Fe/=2,Me/=2,pe/=2}function Rt(le,wt){return He===1?le[wt]:le.readUInt16BE(wt*He)}let yt;if($e){let le=-1;for(yt=pe;yt<Fe;yt++)if(Rt(xe,yt)===Rt(X,le===-1?0:yt-le)){if(le===-1&&(le=yt),yt-le+1===Me)return le*He}else le!==-1&&(yt-=yt-le),le=-1}else for(pe+Me>Fe&&(pe=Fe-Me),yt=pe;yt>=0;yt--){let le=!0;for(let wt=0;wt<Me;wt++)if(Rt(xe,yt+wt)!==Rt(X,wt)){le=!1;break}if(le)return yt}return-1}M.prototype.includes=function(X,pe,je){return this.indexOf(X,pe,je)!==-1},M.prototype.indexOf=function(X,pe,je){return he(this,X,pe,je,!0)},M.prototype.lastIndexOf=function(X,pe,je){return he(this,X,pe,je,!1)};function T(xe,X,pe,je){pe=Number(pe)||0;const $e=xe.length-pe;je?(je=Number(je),je>$e&&(je=$e)):je=$e;const He=X.length;je>He/2&&(je=He/2);let Fe;for(Fe=0;Fe<je;++Fe){const Me=parseInt(X.substr(Fe*2,2),16);if($t(Me))return Fe;xe[pe+Fe]=Me}return Fe}function u(xe,X,pe,je){return Le(Xe(X,xe.length-pe),xe,pe,je)}function p(xe,X,pe,je){return Le(Ge(X),xe,pe,je)}function b(xe,X,pe,je){return Le(Et(X),xe,pe,je)}function e(xe,X,pe,je){return Le(nt(X,xe.length-pe),xe,pe,je)}M.prototype.write=function(X,pe,je,$e){if(pe===void 0)$e="utf8",je=this.length,pe=0;else if(je===void 0&&typeof pe=="string")$e=pe,je=this.length,pe=0;else if(isFinite(pe))pe=pe>>>0,isFinite(je)?(je=je>>>0,$e===void 0&&($e="utf8")):($e=je,je=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const He=this.length-pe;if((je===void 0||je>He)&&(je=He),X.length>0&&(je<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");$e||($e="utf8");let Fe=!1;for(;;)switch($e){case"hex":return T(this,X,pe,je);case"utf8":case"utf-8":return u(this,X,pe,je);case"ascii":case"latin1":case"binary":return p(this,X,pe,je);case"base64":return b(this,X,pe,je);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e(this,X,pe,je);default:if(Fe)throw new TypeError("Unknown encoding: "+$e);$e=(""+$e).toLowerCase(),Fe=!0}},M.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function c(xe,X,pe){return X===0&&pe===xe.length?n.fromByteArray(xe):n.fromByteArray(xe.slice(X,pe))}function y(xe,X,pe){pe=Math.min(xe.length,pe);const je=[];let $e=X;for(;$e<pe;){const He=xe[$e];let Fe=null,Me=He>239?4:He>223?3:He>191?2:1;if($e+Me<=pe){let Rt,yt,le,wt;switch(Me){case 1:He<128&&(Fe=He);break;case 2:Rt=xe[$e+1],(Rt&192)===128&&(wt=(He&31)<<6|Rt&63,wt>127&&(Fe=wt));break;case 3:Rt=xe[$e+1],yt=xe[$e+2],(Rt&192)===128&&(yt&192)===128&&(wt=(He&15)<<12|(Rt&63)<<6|yt&63,wt>2047&&(wt<55296||wt>57343)&&(Fe=wt));break;case 4:Rt=xe[$e+1],yt=xe[$e+2],le=xe[$e+3],(Rt&192)===128&&(yt&192)===128&&(le&192)===128&&(wt=(He&15)<<18|(Rt&63)<<12|(yt&63)<<6|le&63,wt>65535&&wt<1114112&&(Fe=wt))}}Fe===null?(Fe=65533,Me=1):Fe>65535&&(Fe-=65536,je.push(Fe>>>10&1023|55296),Fe=56320|Fe&1023),je.push(Fe),$e+=Me}return v(je)}const w=4096;function v(xe){const X=xe.length;if(X<=w)return String.fromCharCode.apply(String,xe);let pe="",je=0;for(;je<X;)pe+=String.fromCharCode.apply(String,xe.slice(je,je+=w));return pe}function o(xe,X,pe){let je="";pe=Math.min(xe.length,pe);for(let $e=X;$e<pe;++$e)je+=String.fromCharCode(xe[$e]&127);return je}function x(xe,X,pe){let je="";pe=Math.min(xe.length,pe);for(let $e=X;$e<pe;++$e)je+=String.fromCharCode(xe[$e]);return je}function E(xe,X,pe){const je=xe.length;(!X||X<0)&&(X=0),(!pe||pe<0||pe>je)&&(pe=je);let $e="";for(let He=X;He<pe;++He)$e+=dt[xe[He]];return $e}function R(xe,X,pe){const je=xe.slice(X,pe);let $e="";for(let He=0;He<je.length-1;He+=2)$e+=String.fromCharCode(je[He]+je[He+1]*256);return $e}M.prototype.slice=function(X,pe){const je=this.length;X=~~X,pe=pe===void 0?je:~~pe,X<0?(X+=je,X<0&&(X=0)):X>je&&(X=je),pe<0?(pe+=je,pe<0&&(pe=0)):pe>je&&(pe=je),pe<X&&(pe=X);const $e=this.subarray(X,pe);return Object.setPrototypeOf($e,M.prototype),$e};function H(xe,X,pe){if(xe%1!==0||xe<0)throw new RangeError("offset is not uint");if(xe+X>pe)throw new RangeError("Trying to access beyond buffer length")}M.prototype.readUintLE=M.prototype.readUIntLE=function(X,pe,je){X=X>>>0,pe=pe>>>0,je||H(X,pe,this.length);let $e=this[X],He=1,Fe=0;for(;++Fe<pe&&(He*=256);)$e+=this[X+Fe]*He;return $e},M.prototype.readUintBE=M.prototype.readUIntBE=function(X,pe,je){X=X>>>0,pe=pe>>>0,je||H(X,pe,this.length);let $e=this[X+--pe],He=1;for(;pe>0&&(He*=256);)$e+=this[X+--pe]*He;return $e},M.prototype.readUint8=M.prototype.readUInt8=function(X,pe){return X=X>>>0,pe||H(X,1,this.length),this[X]},M.prototype.readUint16LE=M.prototype.readUInt16LE=function(X,pe){return X=X>>>0,pe||H(X,2,this.length),this[X]|this[X+1]<<8},M.prototype.readUint16BE=M.prototype.readUInt16BE=function(X,pe){return X=X>>>0,pe||H(X,2,this.length),this[X]<<8|this[X+1]},M.prototype.readUint32LE=M.prototype.readUInt32LE=function(X,pe){return X=X>>>0,pe||H(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},M.prototype.readUint32BE=M.prototype.readUInt32BE=function(X,pe){return X=X>>>0,pe||H(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},M.prototype.readBigUInt64LE=gt(function(X){X=X>>>0,et(X,"offset");const pe=this[X],je=this[X+7];(pe===void 0||je===void 0)&&mt(X,this.length-8);const $e=pe+this[++X]*2**8+this[++X]*2**16+this[++X]*2**24,He=this[++X]+this[++X]*2**8+this[++X]*2**16+je*2**24;return BigInt($e)+(BigInt(He)<<BigInt(32))}),M.prototype.readBigUInt64BE=gt(function(X){X=X>>>0,et(X,"offset");const pe=this[X],je=this[X+7];(pe===void 0||je===void 0)&&mt(X,this.length-8);const $e=pe*2**24+this[++X]*2**16+this[++X]*2**8+this[++X],He=this[++X]*2**24+this[++X]*2**16+this[++X]*2**8+je;return(BigInt($e)<<BigInt(32))+BigInt(He)}),M.prototype.readIntLE=function(X,pe,je){X=X>>>0,pe=pe>>>0,je||H(X,pe,this.length);let $e=this[X],He=1,Fe=0;for(;++Fe<pe&&(He*=256);)$e+=this[X+Fe]*He;return He*=128,$e>=He&&($e-=Math.pow(2,8*pe)),$e},M.prototype.readIntBE=function(X,pe,je){X=X>>>0,pe=pe>>>0,je||H(X,pe,this.length);let $e=pe,He=1,Fe=this[X+--$e];for(;$e>0&&(He*=256);)Fe+=this[X+--$e]*He;return He*=128,Fe>=He&&(Fe-=Math.pow(2,8*pe)),Fe},M.prototype.readInt8=function(X,pe){return X=X>>>0,pe||H(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},M.prototype.readInt16LE=function(X,pe){X=X>>>0,pe||H(X,2,this.length);const je=this[X]|this[X+1]<<8;return je&32768?je|4294901760:je},M.prototype.readInt16BE=function(X,pe){X=X>>>0,pe||H(X,2,this.length);const je=this[X+1]|this[X]<<8;return je&32768?je|4294901760:je},M.prototype.readInt32LE=function(X,pe){return X=X>>>0,pe||H(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},M.prototype.readInt32BE=function(X,pe){return X=X>>>0,pe||H(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},M.prototype.readBigInt64LE=gt(function(X){X=X>>>0,et(X,"offset");const pe=this[X],je=this[X+7];(pe===void 0||je===void 0)&&mt(X,this.length-8);const $e=this[X+4]+this[X+5]*2**8+this[X+6]*2**16+(je<<24);return(BigInt($e)<<BigInt(32))+BigInt(pe+this[++X]*2**8+this[++X]*2**16+this[++X]*2**24)}),M.prototype.readBigInt64BE=gt(function(X){X=X>>>0,et(X,"offset");const pe=this[X],je=this[X+7];(pe===void 0||je===void 0)&&mt(X,this.length-8);const $e=(pe<<24)+this[++X]*2**16+this[++X]*2**8+this[++X];return(BigInt($e)<<BigInt(32))+BigInt(this[++X]*2**24+this[++X]*2**16+this[++X]*2**8+je)}),M.prototype.readFloatLE=function(X,pe){return X=X>>>0,pe||H(X,4,this.length),l.read(this,X,!0,23,4)},M.prototype.readFloatBE=function(X,pe){return X=X>>>0,pe||H(X,4,this.length),l.read(this,X,!1,23,4)},M.prototype.readDoubleLE=function(X,pe){return X=X>>>0,pe||H(X,8,this.length),l.read(this,X,!0,52,8)},M.prototype.readDoubleBE=function(X,pe){return X=X>>>0,pe||H(X,8,this.length),l.read(this,X,!1,52,8)};function Y(xe,X,pe,je,$e,He){if(!M.isBuffer(xe))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>$e||X<He)throw new RangeError('"value" argument is out of bounds');if(pe+je>xe.length)throw new RangeError("Index out of range")}M.prototype.writeUintLE=M.prototype.writeUIntLE=function(X,pe,je,$e){if(X=+X,pe=pe>>>0,je=je>>>0,!$e){const Me=Math.pow(2,8*je)-1;Y(this,X,pe,je,Me,0)}let He=1,Fe=0;for(this[pe]=X&255;++Fe<je&&(He*=256);)this[pe+Fe]=X/He&255;return pe+je},M.prototype.writeUintBE=M.prototype.writeUIntBE=function(X,pe,je,$e){if(X=+X,pe=pe>>>0,je=je>>>0,!$e){const Me=Math.pow(2,8*je)-1;Y(this,X,pe,je,Me,0)}let He=je-1,Fe=1;for(this[pe+He]=X&255;--He>=0&&(Fe*=256);)this[pe+He]=X/Fe&255;return pe+je},M.prototype.writeUint8=M.prototype.writeUInt8=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,1,255,0),this[pe]=X&255,pe+1},M.prototype.writeUint16LE=M.prototype.writeUInt16LE=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,2,65535,0),this[pe]=X&255,this[pe+1]=X>>>8,pe+2},M.prototype.writeUint16BE=M.prototype.writeUInt16BE=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,2,65535,0),this[pe]=X>>>8,this[pe+1]=X&255,pe+2},M.prototype.writeUint32LE=M.prototype.writeUInt32LE=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,4,4294967295,0),this[pe+3]=X>>>24,this[pe+2]=X>>>16,this[pe+1]=X>>>8,this[pe]=X&255,pe+4},M.prototype.writeUint32BE=M.prototype.writeUInt32BE=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,4,4294967295,0),this[pe]=X>>>24,this[pe+1]=X>>>16,this[pe+2]=X>>>8,this[pe+3]=X&255,pe+4};function Z(xe,X,pe,je,$e){Ve(X,je,$e,xe,pe,7);let He=Number(X&BigInt(4294967295));xe[pe++]=He,He=He>>8,xe[pe++]=He,He=He>>8,xe[pe++]=He,He=He>>8,xe[pe++]=He;let Fe=Number(X>>BigInt(32)&BigInt(4294967295));return xe[pe++]=Fe,Fe=Fe>>8,xe[pe++]=Fe,Fe=Fe>>8,xe[pe++]=Fe,Fe=Fe>>8,xe[pe++]=Fe,pe}function L(xe,X,pe,je,$e){Ve(X,je,$e,xe,pe,7);let He=Number(X&BigInt(4294967295));xe[pe+7]=He,He=He>>8,xe[pe+6]=He,He=He>>8,xe[pe+5]=He,He=He>>8,xe[pe+4]=He;let Fe=Number(X>>BigInt(32)&BigInt(4294967295));return xe[pe+3]=Fe,Fe=Fe>>8,xe[pe+2]=Fe,Fe=Fe>>8,xe[pe+1]=Fe,Fe=Fe>>8,xe[pe]=Fe,pe+8}M.prototype.writeBigUInt64LE=gt(function(X,pe=0){return Z(this,X,pe,BigInt(0),BigInt("0xffffffffffffffff"))}),M.prototype.writeBigUInt64BE=gt(function(X,pe=0){return L(this,X,pe,BigInt(0),BigInt("0xffffffffffffffff"))}),M.prototype.writeIntLE=function(X,pe,je,$e){if(X=+X,pe=pe>>>0,!$e){const Rt=Math.pow(2,8*je-1);Y(this,X,pe,je,Rt-1,-Rt)}let He=0,Fe=1,Me=0;for(this[pe]=X&255;++He<je&&(Fe*=256);)X<0&&Me===0&&this[pe+He-1]!==0&&(Me=1),this[pe+He]=(X/Fe>>0)-Me&255;return pe+je},M.prototype.writeIntBE=function(X,pe,je,$e){if(X=+X,pe=pe>>>0,!$e){const Rt=Math.pow(2,8*je-1);Y(this,X,pe,je,Rt-1,-Rt)}let He=je-1,Fe=1,Me=0;for(this[pe+He]=X&255;--He>=0&&(Fe*=256);)X<0&&Me===0&&this[pe+He+1]!==0&&(Me=1),this[pe+He]=(X/Fe>>0)-Me&255;return pe+je},M.prototype.writeInt8=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,1,127,-128),X<0&&(X=255+X+1),this[pe]=X&255,pe+1},M.prototype.writeInt16LE=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,2,32767,-32768),this[pe]=X&255,this[pe+1]=X>>>8,pe+2},M.prototype.writeInt16BE=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,2,32767,-32768),this[pe]=X>>>8,this[pe+1]=X&255,pe+2},M.prototype.writeInt32LE=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,4,2147483647,-2147483648),this[pe]=X&255,this[pe+1]=X>>>8,this[pe+2]=X>>>16,this[pe+3]=X>>>24,pe+4},M.prototype.writeInt32BE=function(X,pe,je){return X=+X,pe=pe>>>0,je||Y(this,X,pe,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[pe]=X>>>24,this[pe+1]=X>>>16,this[pe+2]=X>>>8,this[pe+3]=X&255,pe+4},M.prototype.writeBigInt64LE=gt(function(X,pe=0){return Z(this,X,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),M.prototype.writeBigInt64BE=gt(function(X,pe=0){return L(this,X,pe,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function D(xe,X,pe,je,$e,He){if(pe+je>xe.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("Index out of range")}function ee(xe,X,pe,je,$e){return X=+X,pe=pe>>>0,$e||D(xe,X,pe,4),l.write(xe,X,pe,je,23,4),pe+4}M.prototype.writeFloatLE=function(X,pe,je){return ee(this,X,pe,!0,je)},M.prototype.writeFloatBE=function(X,pe,je){return ee(this,X,pe,!1,je)};function oe(xe,X,pe,je,$e){return X=+X,pe=pe>>>0,$e||D(xe,X,pe,8),l.write(xe,X,pe,je,52,8),pe+8}M.prototype.writeDoubleLE=function(X,pe,je){return oe(this,X,pe,!0,je)},M.prototype.writeDoubleBE=function(X,pe,je){return oe(this,X,pe,!1,je)},M.prototype.copy=function(X,pe,je,$e){if(!M.isBuffer(X))throw new TypeError("argument should be a Buffer");if(je||(je=0),!$e&&$e!==0&&($e=this.length),pe>=X.length&&(pe=X.length),pe||(pe=0),$e>0&&$e<je&&($e=je),$e===je||X.length===0||this.length===0)return 0;if(pe<0)throw new RangeError("targetStart out of bounds");if(je<0||je>=this.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("sourceEnd out of bounds");$e>this.length&&($e=this.length),X.length-pe<$e-je&&($e=X.length-pe+je);const He=$e-je;return this===X&&typeof h.prototype.copyWithin=="function"?this.copyWithin(pe,je,$e):h.prototype.set.call(X,this.subarray(je,$e),pe),He},M.prototype.fill=function(X,pe,je,$e){if(typeof X=="string"){if(typeof pe=="string"?($e=pe,pe=0,je=this.length):typeof je=="string"&&($e=je,je=this.length),$e!==void 0&&typeof $e!="string")throw new TypeError("encoding must be a string");if(typeof $e=="string"&&!M.isEncoding($e))throw new TypeError("Unknown encoding: "+$e);if(X.length===1){const Fe=X.charCodeAt(0);($e==="utf8"&&Fe<128||$e==="latin1")&&(X=Fe)}}else typeof X=="number"?X=X&255:typeof X=="boolean"&&(X=Number(X));if(pe<0||this.length<pe||this.length<je)throw new RangeError("Out of range index");if(je<=pe)return this;pe=pe>>>0,je=je===void 0?this.length:je>>>0,X||(X=0);let He;if(typeof X=="number")for(He=pe;He<je;++He)this[He]=X;else{const Fe=M.isBuffer(X)?X:M.from(X,$e),Me=Fe.length;if(Me===0)throw new TypeError('The value "'+X+'" is invalid for argument "value"');for(He=0;He<je-pe;++He)this[He+pe]=Fe[He%Me]}return this};const fe={};function ue(xe,X,pe){fe[xe]=class extends pe{constructor(){super(),Object.defineProperty(this,"message",{value:X.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${xe}]`,this.stack,delete this.name}get code(){return xe}set code($e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$e,writable:!0})}toString(){return`${this.name} [${xe}]: ${this.message}`}}}ue("ERR_BUFFER_OUT_OF_BOUNDS",function(xe){return xe?`${xe} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ue("ERR_INVALID_ARG_TYPE",function(xe,X){return`The "${xe}" argument must be of type number. Received type ${typeof X}`},TypeError),ue("ERR_OUT_OF_RANGE",function(xe,X,pe){let je=`The value of "${xe}" is out of range.`,$e=pe;return Number.isInteger(pe)&&Math.abs(pe)>2**32?$e=qe(String(pe)):typeof pe=="bigint"&&($e=String(pe),(pe>BigInt(2)**BigInt(32)||pe<-(BigInt(2)**BigInt(32)))&&($e=qe($e)),$e+="n"),je+=` It must be ${X}. Received ${$e}`,je},RangeError);function qe(xe){let X="",pe=xe.length;const je=xe[0]==="-"?1:0;for(;pe>=je+4;pe-=3)X=`_${xe.slice(pe-3,pe)}${X}`;return`${xe.slice(0,pe)}${X}`}function rt(xe,X,pe){et(X,"offset"),(xe[X]===void 0||xe[X+pe]===void 0)&&mt(X,xe.length-(pe+1))}function Ve(xe,X,pe,je,$e,He){if(xe>pe||xe<X){const Fe=typeof X=="bigint"?"n":"";let Me;throw X===0||X===BigInt(0)?Me=`>= 0${Fe} and < 2${Fe} ** ${(He+1)*8}${Fe}`:Me=`>= -(2${Fe} ** ${(He+1)*8-1}${Fe}) and < 2 ** ${(He+1)*8-1}${Fe}`,new fe.ERR_OUT_OF_RANGE("value",Me,xe)}rt(je,$e,He)}function et(xe,X){if(typeof xe!="number")throw new fe.ERR_INVALID_ARG_TYPE(X,"number",xe)}function mt(xe,X,pe){throw Math.floor(xe)!==xe?(et(xe,pe),new fe.ERR_OUT_OF_RANGE("offset","an integer",xe)):X<0?new fe.ERR_BUFFER_OUT_OF_BOUNDS:new fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${X}`,xe)}const Ye=/[^+/0-9A-Za-z-_]/g;function We(xe){if(xe=xe.split("=")[0],xe=xe.trim().replace(Ye,""),xe.length<2)return"";for(;xe.length%4!==0;)xe=xe+"=";return xe}function Xe(xe,X){X=X||1/0;let pe;const je=xe.length;let $e=null;const He=[];for(let Fe=0;Fe<je;++Fe){if(pe=xe.charCodeAt(Fe),pe>55295&&pe<57344){if(!$e){if(pe>56319){(X-=3)>-1&&He.push(239,191,189);continue}else if(Fe+1===je){(X-=3)>-1&&He.push(239,191,189);continue}$e=pe;continue}if(pe<56320){(X-=3)>-1&&He.push(239,191,189),$e=pe;continue}pe=($e-55296<<10|pe-56320)+65536}else $e&&(X-=3)>-1&&He.push(239,191,189);if($e=null,pe<128){if((X-=1)<0)break;He.push(pe)}else if(pe<2048){if((X-=2)<0)break;He.push(pe>>6|192,pe&63|128)}else if(pe<65536){if((X-=3)<0)break;He.push(pe>>12|224,pe>>6&63|128,pe&63|128)}else if(pe<1114112){if((X-=4)<0)break;He.push(pe>>18|240,pe>>12&63|128,pe>>6&63|128,pe&63|128)}else throw new Error("Invalid code point")}return He}function Ge(xe){const X=[];for(let pe=0;pe<xe.length;++pe)X.push(xe.charCodeAt(pe)&255);return X}function nt(xe,X){let pe,je,$e;const He=[];for(let Fe=0;Fe<xe.length&&!((X-=2)<0);++Fe)pe=xe.charCodeAt(Fe),je=pe>>8,$e=pe%256,He.push($e),He.push(je);return He}function Et(xe){return n.toByteArray(We(xe))}function Le(xe,X,pe,je){let $e;for($e=0;$e<je&&!($e+pe>=X.length||$e>=xe.length);++$e)X[$e+pe]=xe[$e];return $e}function Oe(xe,X){return xe instanceof X||xe!=null&&xe.constructor!=null&&xe.constructor.name!=null&&xe.constructor.name===X.name}function $t(xe){return xe!==xe}const dt=function(){const xe="0123456789abcdef",X=new Array(256);for(let pe=0;pe<16;++pe){const je=pe*16;for(let $e=0;$e<16;++$e)X[je+$e]=xe[pe]+xe[$e]}return X}();function gt(xe){return typeof BigInt>"u"?Lt:xe}function Lt(){throw new Error("BigInt not supported")}})(buffer$1);const Buffer$C=buffer$1.Buffer,Blob$1=buffer$1.Blob,BlobOptions=buffer$1.BlobOptions,Buffer$1$1=buffer$1.Buffer,File=buffer$1.File,FileOptions=buffer$1.FileOptions,INSPECT_MAX_BYTES=buffer$1.INSPECT_MAX_BYTES,SlowBuffer=buffer$1.SlowBuffer,TranscodeEncoding=buffer$1.TranscodeEncoding,atob=buffer$1.atob,btoa$1=buffer$1.btoa,constants$2=buffer$1.constants,isAscii=buffer$1.isAscii,isUtf8=buffer$1.isUtf8,kMaxLength=buffer$1.kMaxLength,kStringMaxLength=buffer$1.kStringMaxLength,resolveObjectURL=buffer$1.resolveObjectURL,transcode=buffer$1.transcode,dist=Object.freeze(Object.defineProperty({__proto__:null,Blob:Blob$1,BlobOptions,Buffer:Buffer$1$1,File,FileOptions,INSPECT_MAX_BYTES,SlowBuffer,TranscodeEncoding,atob,btoa:btoa$1,constants:constants$2,default:Buffer$C,isAscii,isUtf8,kMaxLength,kStringMaxLength,resolveObjectURL,transcode},Symbol.toStringTag,{value:"Module"})),require$$0$3=getAugmentedNamespace(dist);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(t,n){var l=require$$0$3,d=l.Buffer;function m(S,k){for(var A in S)k[A]=S[A]}d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?t.exports=l:(m(l,n),n.Buffer=h);function h(S,k,A){return d(S,k,A)}h.prototype=Object.create(d.prototype),m(d,h),h.from=function(S,k,A){if(typeof S=="number")throw new TypeError("Argument must not be a number");return d(S,k,A)},h.alloc=function(S,k,A){if(typeof S!="number")throw new TypeError("Argument must be a number");var B=d(S);return k!==void 0?typeof A=="string"?B.fill(k,A):B.fill(k):B.fill(0),B},h.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return d(S)},h.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(S)}})(safeBuffer$2,safeBuffer$2.exports);var safeBufferExports$1=safeBuffer$2.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$B=safeBufferExports$1.Buffer,crypto$3=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$3&&crypto$3.getRandomValues?browser$d.exports=randomBytes$2:browser$d.exports=oldBrowser$1;function randomBytes$2(t,n){if(t>MAX_UINT32)throw new RangeError("requested too many random bytes");var l=Buffer$B.allocUnsafe(t);if(t>0)if(t>MAX_BYTES)for(var d=0;d<t;d+=MAX_BYTES)crypto$3.getRandomValues(l.slice(d,d+MAX_BYTES));else crypto$3.getRandomValues(l);return typeof n=="function"?process$1.nextTick(function(){n(null,l)}):l}var browserExports=browser$d.exports,events={exports:{}},hasRequiredEvents;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var t=typeof Reflect=="object"?Reflect:null,n=t&&typeof t.apply=="function"?t.apply:function(se,de,Q){return Function.prototype.apply.call(se,de,Q)},l;t&&typeof t.ownKeys=="function"?l=t.ownKeys:Object.getOwnPropertySymbols?l=function(se){return Object.getOwnPropertyNames(se).concat(Object.getOwnPropertySymbols(se))}:l=function(se){return Object.getOwnPropertyNames(se)};function d(te){console&&console.warn&&console.warn(te)}var m=Number.isNaN||function(se){return se!==se};function h(){h.init.call(this)}events.exports=h,events.exports.once=F,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._eventsCount=0,h.prototype._maxListeners=void 0;var S=10;function k(te){if(typeof te!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof te)}Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return S},set:function(te){if(typeof te!="number"||te<0||m(te))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+te+".");S=te}}),h.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},h.prototype.setMaxListeners=function(se){if(typeof se!="number"||se<0||m(se))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+se+".");return this._maxListeners=se,this};function A(te){return te._maxListeners===void 0?h.defaultMaxListeners:te._maxListeners}h.prototype.getMaxListeners=function(){return A(this)},h.prototype.emit=function(se){for(var de=[],Q=1;Q<arguments.length;Q++)de.push(arguments[Q]);var ve=se==="error",he=this._events;if(he!==void 0)ve=ve&&he.error===void 0;else if(!ve)return!1;if(ve){var ke;if(de.length>0&&(ke=de[0]),ke instanceof Error)throw ke;var T=new Error("Unhandled error."+(ke?" ("+ke.message+")":""));throw T.context=ke,T}var u=he[se];if(u===void 0)return!1;if(typeof u=="function")n(u,this,de);else for(var p=u.length,b=$(u,p),Q=0;Q<p;++Q)n(b[Q],this,de);return!0};function B(te,se,de,Q){var ve,he,ke;if(k(de),he=te._events,he===void 0?(he=te._events=Object.create(null),te._eventsCount=0):(he.newListener!==void 0&&(te.emit("newListener",se,de.listener?de.listener:de),he=te._events),ke=he[se]),ke===void 0)ke=he[se]=de,++te._eventsCount;else if(typeof ke=="function"?ke=he[se]=Q?[de,ke]:[ke,de]:Q?ke.unshift(de):ke.push(de),ve=A(te),ve>0&&ke.length>ve&&!ke.warned){ke.warned=!0;var T=new Error("Possible EventEmitter memory leak detected. "+ke.length+" "+String(se)+" listeners added. Use emitter.setMaxListeners() to increase limit");T.name="MaxListenersExceededWarning",T.emitter=te,T.type=se,T.count=ke.length,d(T)}return te}h.prototype.addListener=function(se,de){return B(this,se,de,!1)},h.prototype.on=h.prototype.addListener,h.prototype.prependListener=function(se,de){return B(this,se,de,!0)};function M(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function j(te,se,de){var Q={fired:!1,wrapFn:void 0,target:te,type:se,listener:de},ve=M.bind(Q);return ve.listener=de,Q.wrapFn=ve,ve}h.prototype.once=function(se,de){return k(de),this.on(se,j(this,se,de)),this},h.prototype.prependOnceListener=function(se,de){return k(de),this.prependListener(se,j(this,se,de)),this},h.prototype.removeListener=function(se,de){var Q,ve,he,ke,T;if(k(de),ve=this._events,ve===void 0)return this;if(Q=ve[se],Q===void 0)return this;if(Q===de||Q.listener===de)--this._eventsCount===0?this._events=Object.create(null):(delete ve[se],ve.removeListener&&this.emit("removeListener",se,Q.listener||de));else if(typeof Q!="function"){for(he=-1,ke=Q.length-1;ke>=0;ke--)if(Q[ke]===de||Q[ke].listener===de){T=Q[ke].listener,he=ke;break}if(he<0)return this;he===0?Q.shift():z(Q,he),Q.length===1&&(ve[se]=Q[0]),ve.removeListener!==void 0&&this.emit("removeListener",se,T||de)}return this},h.prototype.off=h.prototype.removeListener,h.prototype.removeAllListeners=function(se){var de,Q,ve;if(Q=this._events,Q===void 0)return this;if(Q.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Q[se]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Q[se]),this;if(arguments.length===0){var he=Object.keys(Q),ke;for(ve=0;ve<he.length;++ve)ke=he[ve],ke!=="removeListener"&&this.removeAllListeners(ke);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(de=Q[se],typeof de=="function")this.removeListener(se,de);else if(de!==void 0)for(ve=de.length-1;ve>=0;ve--)this.removeListener(se,de[ve]);return this};function I(te,se,de){var Q=te._events;if(Q===void 0)return[];var ve=Q[se];return ve===void 0?[]:typeof ve=="function"?de?[ve.listener||ve]:[ve]:de?N(ve):$(ve,ve.length)}h.prototype.listeners=function(se){return I(this,se,!0)},h.prototype.rawListeners=function(se){return I(this,se,!1)},h.listenerCount=function(te,se){return typeof te.listenerCount=="function"?te.listenerCount(se):P.call(te,se)},h.prototype.listenerCount=P;function P(te){var se=this._events;if(se!==void 0){var de=se[te];if(typeof de=="function")return 1;if(de!==void 0)return de.length}return 0}h.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function $(te,se){for(var de=new Array(se),Q=0;Q<se;++Q)de[Q]=te[Q];return de}function z(te,se){for(;se+1<te.length;se++)te[se]=te[se+1];te.pop()}function N(te){for(var se=new Array(te.length),de=0;de<se.length;++de)se[de]=te[de].listener||te[de];return se}function F(te,se){return new Promise(function(de,Q){function ve(ke){te.removeListener(se,he),Q(ke)}function he(){typeof te.removeListener=="function"&&te.removeListener("error",ve),de([].slice.call(arguments))}J(te,se,he,{once:!0}),se!=="error"&&U(te,ve,{once:!0})})}function U(te,se,de){typeof te.on=="function"&&J(te,"error",se,de)}function J(te,se,de,Q){if(typeof te.on=="function")Q.once?te.once(se,de):te.on(se,de);else if(typeof te.addEventListener=="function")te.addEventListener(se,function ve(he){Q.once&&te.removeEventListener(se,ve),de(he)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof te)}return events.exports}var streamBrowser$1,hasRequiredStreamBrowser;function requireStreamBrowser(){return hasRequiredStreamBrowser||(hasRequiredStreamBrowser=1,streamBrowser$1=requireEvents().EventEmitter),streamBrowser$1}var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function t($,z){var N=Object.keys($);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols($);z&&(F=F.filter(function(U){return Object.getOwnPropertyDescriptor($,U).enumerable})),N.push.apply(N,F)}return N}function n($){for(var z=1;z<arguments.length;z++){var N=arguments[z]!=null?arguments[z]:{};z%2?t(Object(N),!0).forEach(function(F){l($,F,N[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(N)):t(Object(N)).forEach(function(F){Object.defineProperty($,F,Object.getOwnPropertyDescriptor(N,F))})}return $}function l($,z,N){return z=S(z),z in $?Object.defineProperty($,z,{value:N,enumerable:!0,configurable:!0,writable:!0}):$[z]=N,$}function d($,z){if(!($ instanceof z))throw new TypeError("Cannot call a class as a function")}function m($,z){for(var N=0;N<z.length;N++){var F=z[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty($,S(F.key),F)}}function h($,z,N){return z&&m($.prototype,z),Object.defineProperty($,"prototype",{writable:!1}),$}function S($){var z=k($,"string");return typeof z=="symbol"?z:String(z)}function k($,z){if(typeof $!="object"||$===null)return $;var N=$[Symbol.toPrimitive];if(N!==void 0){var F=N.call($,z||"default");if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)($)}var A=require$$0$3,B=A.Buffer,M=util$6,j=M.inspect,I=j&&j.custom||"inspect";function P($,z,N){B.prototype.copy.call($,z,N)}return buffer_list=function(){function $(){d(this,$),this.head=null,this.tail=null,this.length=0}return h($,[{key:"push",value:function(N){var F={data:N,next:null};this.length>0?this.tail.next=F:this.head=F,this.tail=F,++this.length}},{key:"unshift",value:function(N){var F={data:N,next:this.head};this.length===0&&(this.tail=F),this.head=F,++this.length}},{key:"shift",value:function(){if(this.length!==0){var N=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,N}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(N){if(this.length===0)return"";for(var F=this.head,U=""+F.data;F=F.next;)U+=N+F.data;return U}},{key:"concat",value:function(N){if(this.length===0)return B.alloc(0);for(var F=B.allocUnsafe(N>>>0),U=this.head,J=0;U;)P(U.data,F,J),J+=U.data.length,U=U.next;return F}},{key:"consume",value:function(N,F){var U;return N<this.head.data.length?(U=this.head.data.slice(0,N),this.head.data=this.head.data.slice(N)):N===this.head.data.length?U=this.shift():U=F?this._getString(N):this._getBuffer(N),U}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(N){var F=this.head,U=1,J=F.data;for(N-=J.length;F=F.next;){var te=F.data,se=N>te.length?te.length:N;if(se===te.length?J+=te:J+=te.slice(0,N),N-=se,N===0){se===te.length?(++U,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=te.slice(se));break}++U}return this.length-=U,J}},{key:"_getBuffer",value:function(N){var F=B.allocUnsafe(N),U=this.head,J=1;for(U.data.copy(F),N-=U.data.length;U=U.next;){var te=U.data,se=N>te.length?te.length:N;if(te.copy(F,F.length-N,0,se),N-=se,N===0){se===te.length?(++J,U.next?this.head=U.next:this.head=this.tail=null):(this.head=U,U.data=te.slice(se));break}++J}return this.length-=J,F}},{key:I,value:function(N,F){return j(this,n(n({},F),{},{depth:0,customInspect:!1}))}}]),$}(),buffer_list}var destroy_1$1,hasRequiredDestroy;function requireDestroy(){if(hasRequiredDestroy)return destroy_1$1;hasRequiredDestroy=1;function t(S,k){var A=this,B=this._readableState&&this._readableState.destroyed,M=this._writableState&&this._writableState.destroyed;return B||M?(k?k(S):S&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(m,this,S)):process$1.nextTick(m,this,S)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(S||null,function(j){!k&&j?A._writableState?A._writableState.errorEmitted?process$1.nextTick(l,A):(A._writableState.errorEmitted=!0,process$1.nextTick(n,A,j)):process$1.nextTick(n,A,j):k?(process$1.nextTick(l,A),k(j)):process$1.nextTick(l,A)}),this)}function n(S,k){m(S,k),l(S)}function l(S){S._writableState&&!S._writableState.emitClose||S._readableState&&!S._readableState.emitClose||S.emit("close")}function d(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function m(S,k){S.emit("error",k)}function h(S,k){var A=S._readableState,B=S._writableState;A&&A.autoDestroy||B&&B.autoDestroy?S.destroy(k):S.emit("error",k)}return destroy_1$1={destroy:t,undestroy:d,errorOrDestroy:h},destroy_1$1}var errorsBrowser={},hasRequiredErrorsBrowser;function requireErrorsBrowser(){if(hasRequiredErrorsBrowser)return errorsBrowser;hasRequiredErrorsBrowser=1;function t(k,A){k.prototype=Object.create(A.prototype),k.prototype.constructor=k,k.__proto__=A}var n={};function l(k,A,B){B||(B=Error);function M(I,P,$){return typeof A=="string"?A:A(I,P,$)}var j=function(I){t(P,I);function P($,z,N){return I.call(this,M($,z,N))||this}return P}(B);j.prototype.name=B.name,j.prototype.code=k,n[k]=j}function d(k,A){if(Array.isArray(k)){var B=k.length;return k=k.map(function(M){return String(M)}),B>2?"one of ".concat(A," ").concat(k.slice(0,B-1).join(", "),", or ")+k[B-1]:B===2?"one of ".concat(A," ").concat(k[0]," or ").concat(k[1]):"of ".concat(A," ").concat(k[0])}else return"of ".concat(A," ").concat(String(k))}function m(k,A,B){return k.substr(0,A.length)===A}function h(k,A,B){return(B===void 0||B>k.length)&&(B=k.length),k.substring(B-A.length,B)===A}function S(k,A,B){return typeof B!="number"&&(B=0),B+A.length>k.length?!1:k.indexOf(A,B)!==-1}return l("ERR_INVALID_OPT_VALUE",function(k,A){return'The value "'+A+'" is invalid for option "'+k+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(k,A,B){var M;typeof A=="string"&&m(A,"not ")?(M="must not be",A=A.replace(/^not /,"")):M="must be";var j;if(h(k," argument"))j="The ".concat(k," ").concat(M," ").concat(d(A,"type"));else{var I=S(k,".")?"property":"argument";j='The "'.concat(k,'" ').concat(I," ").concat(M," ").concat(d(A,"type"))}return j+=". Received type ".concat(typeof B),j},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(k){return"The "+k+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(k){return"Cannot call "+k+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(k){return"Unknown encoding: "+k},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errorsBrowser.codes=n,errorsBrowser}var state,hasRequiredState;function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var t=requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;function n(d,m,h){return d.highWaterMark!=null?d.highWaterMark:m?d[h]:null}function l(d,m,h,S){var k=n(m,S,h);if(k!=null){if(!(isFinite(k)&&Math.floor(k)===k)||k<0){var A=S?h:"highWaterMark";throw new t(A,k)}return Math.floor(k)}return d.objectMode?16:16*1024}return state={getHighWaterMark:l},state}var browser$c,hasRequiredBrowser$5;function requireBrowser$5(){if(hasRequiredBrowser$5)return browser$c;hasRequiredBrowser$5=1,browser$c=t;function t(l,d){if(n("noDeprecation"))return l;var m=!1;function h(){if(!m){if(n("throwDeprecation"))throw new Error(d);n("traceDeprecation")?console.trace(d):console.warn(d),m=!0}return l.apply(this,arguments)}return h}function n(l){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var d=commonjsGlobal.localStorage[l];return d==null?!1:String(d).toLowerCase()==="true"}return browser$c}var _stream_writable$1,hasRequired_stream_writable$1;function require_stream_writable$1(){if(hasRequired_stream_writable$1)return _stream_writable$1;hasRequired_stream_writable$1=1,_stream_writable$1=ve;function t(Z){var L=this;this.next=null,this.entry=null,this.finish=function(){Y(L,Z)}}var n;ve.WritableState=de;var l={deprecate:requireBrowser$5()},d=requireStreamBrowser(),m=require$$0$3.Buffer,h=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function S(Z){return m.from(Z)}function k(Z){return m.isBuffer(Z)||Z instanceof h}var A=requireDestroy(),B=requireState(),M=B.getHighWaterMark,j=requireErrorsBrowser().codes,I=j.ERR_INVALID_ARG_TYPE,P=j.ERR_METHOD_NOT_IMPLEMENTED,$=j.ERR_MULTIPLE_CALLBACK,z=j.ERR_STREAM_CANNOT_PIPE,N=j.ERR_STREAM_DESTROYED,F=j.ERR_STREAM_NULL_VALUES,U=j.ERR_STREAM_WRITE_AFTER_END,J=j.ERR_UNKNOWN_ENCODING,te=A.errorOrDestroy;inherits_browserExports(ve,d);function se(){}function de(Z,L,D){n=n||require_stream_duplex$1(),Z=Z||{},typeof D!="boolean"&&(D=L instanceof n),this.objectMode=!!Z.objectMode,D&&(this.objectMode=this.objectMode||!!Z.writableObjectMode),this.highWaterMark=M(this,Z,"writableHighWaterMark",D),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ee=Z.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=Z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){c(L,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Z.emitClose!==!1,this.autoDestroy=!!Z.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}de.prototype.getBuffer=function(){for(var L=this.bufferedRequest,D=[];L;)D.push(L),L=L.next;return D},function(){try{Object.defineProperty(de.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var Q;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Q=Function.prototype[Symbol.hasInstance],Object.defineProperty(ve,Symbol.hasInstance,{value:function(L){return Q.call(this,L)?!0:this!==ve?!1:L&&L._writableState instanceof de}})):Q=function(L){return L instanceof this};function ve(Z){n=n||require_stream_duplex$1();var L=this instanceof n;if(!L&&!Q.call(ve,this))return new ve(Z);this._writableState=new de(Z,this,L),this.writable=!0,Z&&(typeof Z.write=="function"&&(this._write=Z.write),typeof Z.writev=="function"&&(this._writev=Z.writev),typeof Z.destroy=="function"&&(this._destroy=Z.destroy),typeof Z.final=="function"&&(this._final=Z.final)),d.call(this)}ve.prototype.pipe=function(){te(this,new z)};function he(Z,L){var D=new U;te(Z,D),process$1.nextTick(L,D)}function ke(Z,L,D,ee){var oe;return D===null?oe=new F:typeof D!="string"&&!L.objectMode&&(oe=new I("chunk",["string","Buffer"],D)),oe?(te(Z,oe),process$1.nextTick(ee,oe),!1):!0}ve.prototype.write=function(Z,L,D){var ee=this._writableState,oe=!1,fe=!ee.objectMode&&k(Z);return fe&&!m.isBuffer(Z)&&(Z=S(Z)),typeof L=="function"&&(D=L,L=null),fe?L="buffer":L||(L=ee.defaultEncoding),typeof D!="function"&&(D=se),ee.ending?he(this,D):(fe||ke(this,ee,Z,D))&&(ee.pendingcb++,oe=u(this,ee,fe,Z,L,D)),oe},ve.prototype.cork=function(){this._writableState.corked++},ve.prototype.uncork=function(){var Z=this._writableState;Z.corked&&(Z.corked--,!Z.writing&&!Z.corked&&!Z.bufferProcessing&&Z.bufferedRequest&&v(this,Z))},ve.prototype.setDefaultEncoding=function(L){if(typeof L=="string"&&(L=L.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((L+"").toLowerCase())>-1))throw new J(L);return this._writableState.defaultEncoding=L,this},Object.defineProperty(ve.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function T(Z,L,D){return!Z.objectMode&&Z.decodeStrings!==!1&&typeof L=="string"&&(L=m.from(L,D)),L}Object.defineProperty(ve.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function u(Z,L,D,ee,oe,fe){if(!D){var ue=T(L,ee,oe);ee!==ue&&(D=!0,oe="buffer",ee=ue)}var qe=L.objectMode?1:ee.length;L.length+=qe;var rt=L.length<L.highWaterMark;if(rt||(L.needDrain=!0),L.writing||L.corked){var Ve=L.lastBufferedRequest;L.lastBufferedRequest={chunk:ee,encoding:oe,isBuf:D,callback:fe,next:null},Ve?Ve.next=L.lastBufferedRequest:L.bufferedRequest=L.lastBufferedRequest,L.bufferedRequestCount+=1}else p(Z,L,!1,qe,ee,oe,fe);return rt}function p(Z,L,D,ee,oe,fe,ue){L.writelen=ee,L.writecb=ue,L.writing=!0,L.sync=!0,L.destroyed?L.onwrite(new N("write")):D?Z._writev(oe,L.onwrite):Z._write(oe,fe,L.onwrite),L.sync=!1}function b(Z,L,D,ee,oe){--L.pendingcb,D?(process$1.nextTick(oe,ee),process$1.nextTick(R,Z,L),Z._writableState.errorEmitted=!0,te(Z,ee)):(oe(ee),Z._writableState.errorEmitted=!0,te(Z,ee),R(Z,L))}function e(Z){Z.writing=!1,Z.writecb=null,Z.length-=Z.writelen,Z.writelen=0}function c(Z,L){var D=Z._writableState,ee=D.sync,oe=D.writecb;if(typeof oe!="function")throw new $;if(e(D),L)b(Z,D,ee,L,oe);else{var fe=o(D)||Z.destroyed;!fe&&!D.corked&&!D.bufferProcessing&&D.bufferedRequest&&v(Z,D),ee?process$1.nextTick(y,Z,D,fe,oe):y(Z,D,fe,oe)}}function y(Z,L,D,ee){D||w(Z,L),L.pendingcb--,ee(),R(Z,L)}function w(Z,L){L.length===0&&L.needDrain&&(L.needDrain=!1,Z.emit("drain"))}function v(Z,L){L.bufferProcessing=!0;var D=L.bufferedRequest;if(Z._writev&&D&&D.next){var ee=L.bufferedRequestCount,oe=new Array(ee),fe=L.corkedRequestsFree;fe.entry=D;for(var ue=0,qe=!0;D;)oe[ue]=D,D.isBuf||(qe=!1),D=D.next,ue+=1;oe.allBuffers=qe,p(Z,L,!0,L.length,oe,"",fe.finish),L.pendingcb++,L.lastBufferedRequest=null,fe.next?(L.corkedRequestsFree=fe.next,fe.next=null):L.corkedRequestsFree=new t(L),L.bufferedRequestCount=0}else{for(;D;){var rt=D.chunk,Ve=D.encoding,et=D.callback,mt=L.objectMode?1:rt.length;if(p(Z,L,!1,mt,rt,Ve,et),D=D.next,L.bufferedRequestCount--,L.writing)break}D===null&&(L.lastBufferedRequest=null)}L.bufferedRequest=D,L.bufferProcessing=!1}ve.prototype._write=function(Z,L,D){D(new P("_write()"))},ve.prototype._writev=null,ve.prototype.end=function(Z,L,D){var ee=this._writableState;return typeof Z=="function"?(D=Z,Z=null,L=null):typeof L=="function"&&(D=L,L=null),Z!=null&&this.write(Z,L),ee.corked&&(ee.corked=1,this.uncork()),ee.ending||H(this,ee,D),this},Object.defineProperty(ve.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function o(Z){return Z.ending&&Z.length===0&&Z.bufferedRequest===null&&!Z.finished&&!Z.writing}function x(Z,L){Z._final(function(D){L.pendingcb--,D&&te(Z,D),L.prefinished=!0,Z.emit("prefinish"),R(Z,L)})}function E(Z,L){!L.prefinished&&!L.finalCalled&&(typeof Z._final=="function"&&!L.destroyed?(L.pendingcb++,L.finalCalled=!0,process$1.nextTick(x,Z,L)):(L.prefinished=!0,Z.emit("prefinish")))}function R(Z,L){var D=o(L);if(D&&(E(Z,L),L.pendingcb===0&&(L.finished=!0,Z.emit("finish"),L.autoDestroy))){var ee=Z._readableState;(!ee||ee.autoDestroy&&ee.endEmitted)&&Z.destroy()}return D}function H(Z,L,D){L.ending=!0,R(Z,L),D&&(L.finished?process$1.nextTick(D):Z.once("finish",D)),L.ended=!0,Z.writable=!1}function Y(Z,L,D){var ee=Z.entry;for(Z.entry=null;ee;){var oe=ee.callback;L.pendingcb--,oe(D),ee=ee.next}L.corkedRequestsFree.next=Z}return Object.defineProperty(ve.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(L){this._writableState&&(this._writableState.destroyed=L)}}),ve.prototype.destroy=A.destroy,ve.prototype._undestroy=A.undestroy,ve.prototype._destroy=function(Z,L){L(Z)},_stream_writable$1}var _stream_duplex$1,hasRequired_stream_duplex$1;function require_stream_duplex$1(){if(hasRequired_stream_duplex$1)return _stream_duplex$1;hasRequired_stream_duplex$1=1;var t=Object.keys||function(B){var M=[];for(var j in B)M.push(j);return M};_stream_duplex$1=S;var n=require_stream_readable$1(),l=require_stream_writable$1();inherits_browserExports(S,n);for(var d=t(l.prototype),m=0;m<d.length;m++){var h=d[m];S.prototype[h]||(S.prototype[h]=l.prototype[h])}function S(B){if(!(this instanceof S))return new S(B);n.call(this,B),l.call(this,B),this.allowHalfOpen=!0,B&&(B.readable===!1&&(this.readable=!1),B.writable===!1&&(this.writable=!1),B.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",k)))}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function k(){this._writableState.ended||process$1.nextTick(A,this)}function A(B){B.end()}return Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),_stream_duplex$1}var string_decoder={},Buffer$A=safeBufferExports$1.Buffer,isEncoding=Buffer$A.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(t){if(!t)return"utf8";for(var n;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(n)return;t=(""+t).toLowerCase(),n=!0}}function normalizeEncoding(t){var n=_normalizeEncoding(t);if(typeof n!="string"&&(Buffer$A.isEncoding===isEncoding||!isEncoding(t)))throw new Error("Unknown encoding: "+t);return n||t}string_decoder.StringDecoder=StringDecoder$1;function StringDecoder$1(t){this.encoding=normalizeEncoding(t);var n;switch(this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,n=4;break;case"utf8":this.fillLast=utf8FillLast,n=4;break;case"base64":this.text=base64Text,this.end=base64End,n=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer$A.allocUnsafe(n)}StringDecoder$1.prototype.write=function(t){if(t.length===0)return"";var n,l;if(this.lastNeed){if(n=this.fillLast(t),n===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;return l<t.length?n?n+this.text(t,l):this.text(t,l):n||""},StringDecoder$1.prototype.end=utf8End,StringDecoder$1.prototype.text=utf8Text,StringDecoder$1.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length};function utf8CheckByte(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function utf8CheckIncomplete(t,n,l){var d=n.length-1;if(d<l)return 0;var m=utf8CheckByte(n[d]);return m>=0?(m>0&&(t.lastNeed=m-1),m):--d<l||m===-2?0:(m=utf8CheckByte(n[d]),m>=0?(m>0&&(t.lastNeed=m-2),m):--d<l||m===-2?0:(m=utf8CheckByte(n[d]),m>=0?(m>0&&(m===2?m=0:t.lastNeed=m-3),m):0))}function utf8CheckExtraBytes(t,n,l){if((n[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&n.length>1){if((n[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&n.length>2&&(n[2]&192)!==128)return t.lastNeed=2,"�"}}function utf8FillLast(t){var n=this.lastTotal-this.lastNeed,l=utf8CheckExtraBytes(this,t);if(l!==void 0)return l;if(this.lastNeed<=t.length)return t.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,n,0,t.length),this.lastNeed-=t.length}function utf8Text(t,n){var l=utf8CheckIncomplete(this,t,n);if(!this.lastNeed)return t.toString("utf8",n);this.lastTotal=l;var d=t.length-(l-this.lastNeed);return t.copy(this.lastChar,0,d),t.toString("utf8",n,d)}function utf8End(t){var n=t&&t.length?this.write(t):"";return this.lastNeed?n+"�":n}function utf16Text(t,n){if((t.length-n)%2===0){var l=t.toString("utf16le",n);if(l){var d=l.charCodeAt(l.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",n,t.length-1)}function utf16End(t){var n=t&&t.length?this.write(t):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,l)}return n}function base64Text(t,n){var l=(t.length-n)%3;return l===0?t.toString("base64",n):(this.lastNeed=3-l,this.lastTotal=3,l===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",n,t.length-l))}function base64End(t){var n=t&&t.length?this.write(t):"";return this.lastNeed?n+this.lastChar.toString("base64",0,3-this.lastNeed):n}function simpleWrite(t){return t.toString(this.encoding)}function simpleEnd(t){return t&&t.length?this.write(t):""}var endOfStream,hasRequiredEndOfStream;function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var t=requireErrorsBrowser().codes.ERR_STREAM_PREMATURE_CLOSE;function n(h){var S=!1;return function(){if(!S){S=!0;for(var k=arguments.length,A=new Array(k),B=0;B<k;B++)A[B]=arguments[B];h.apply(this,A)}}}function l(){}function d(h){return h.setHeader&&typeof h.abort=="function"}function m(h,S,k){if(typeof S=="function")return m(h,null,S);S||(S={}),k=n(k||l);var A=S.readable||S.readable!==!1&&h.readable,B=S.writable||S.writable!==!1&&h.writable,M=function(){h.writable||I()},j=h._writableState&&h._writableState.finished,I=function(){B=!1,j=!0,A||k.call(h)},P=h._readableState&&h._readableState.endEmitted,$=function(){A=!1,P=!0,B||k.call(h)},z=function(J){k.call(h,J)},N=function(){var J;if(A&&!P)return(!h._readableState||!h._readableState.ended)&&(J=new t),k.call(h,J);if(B&&!j)return(!h._writableState||!h._writableState.ended)&&(J=new t),k.call(h,J)},F=function(){h.req.on("finish",I)};return d(h)?(h.on("complete",I),h.on("abort",N),h.req?F():h.on("request",F)):B&&!h._writableState&&(h.on("end",M),h.on("close",M)),h.on("end",$),h.on("finish",I),S.error!==!1&&h.on("error",z),h.on("close",N),function(){h.removeListener("complete",I),h.removeListener("abort",N),h.removeListener("request",F),h.req&&h.req.removeListener("finish",I),h.removeListener("end",M),h.removeListener("close",M),h.removeListener("finish",I),h.removeListener("end",$),h.removeListener("error",z),h.removeListener("close",N)}}return endOfStream=m,endOfStream}var async_iterator,hasRequiredAsync_iterator;function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;hasRequiredAsync_iterator=1;var t;function n(J,te,se){return te=l(te),te in J?Object.defineProperty(J,te,{value:se,enumerable:!0,configurable:!0,writable:!0}):J[te]=se,J}function l(J){var te=d(J,"string");return typeof te=="symbol"?te:String(te)}function d(J,te){if(typeof J!="object"||J===null)return J;var se=J[Symbol.toPrimitive];if(se!==void 0){var de=se.call(J,te||"default");if(typeof de!="object")return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return(te==="string"?String:Number)(J)}var m=requireEndOfStream(),h=Symbol("lastResolve"),S=Symbol("lastReject"),k=Symbol("error"),A=Symbol("ended"),B=Symbol("lastPromise"),M=Symbol("handlePromise"),j=Symbol("stream");function I(J,te){return{value:J,done:te}}function P(J){var te=J[h];if(te!==null){var se=J[j].read();se!==null&&(J[B]=null,J[h]=null,J[S]=null,te(I(se,!1)))}}function $(J){process$1.nextTick(P,J)}function z(J,te){return function(se,de){J.then(function(){if(te[A]){se(I(void 0,!0));return}te[M](se,de)},de)}}var N=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((t={get stream(){return this[j]},next:function(){var te=this,se=this[k];if(se!==null)return Promise.reject(se);if(this[A])return Promise.resolve(I(void 0,!0));if(this[j].destroyed)return new Promise(function(he,ke){process$1.nextTick(function(){te[k]?ke(te[k]):he(I(void 0,!0))})});var de=this[B],Q;if(de)Q=new Promise(z(de,this));else{var ve=this[j].read();if(ve!==null)return Promise.resolve(I(ve,!1));Q=new Promise(this[M])}return this[B]=Q,Q}},n(t,Symbol.asyncIterator,function(){return this}),n(t,"return",function(){var te=this;return new Promise(function(se,de){te[j].destroy(null,function(Q){if(Q){de(Q);return}se(I(void 0,!0))})})}),t),N),U=function(te){var se,de=Object.create(F,(se={},n(se,j,{value:te,writable:!0}),n(se,h,{value:null,writable:!0}),n(se,S,{value:null,writable:!0}),n(se,k,{value:null,writable:!0}),n(se,A,{value:te._readableState.endEmitted,writable:!0}),n(se,M,{value:function(ve,he){var ke=de[j].read();ke?(de[B]=null,de[h]=null,de[S]=null,ve(I(ke,!1))):(de[h]=ve,de[S]=he)},writable:!0}),se));return de[B]=null,m(te,function(Q){if(Q&&Q.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ve=de[S];ve!==null&&(de[B]=null,de[h]=null,de[S]=null,ve(Q)),de[k]=Q;return}var he=de[h];he!==null&&(de[B]=null,de[h]=null,de[S]=null,he(I(void 0,!0))),de[A]=!0}),te.on("readable",$.bind(null,de)),de};return async_iterator=U,async_iterator}var fromBrowser,hasRequiredFromBrowser;function requireFromBrowser(){return hasRequiredFromBrowser||(hasRequiredFromBrowser=1,fromBrowser=function(){throw new Error("Readable.from is not available in the browser")}),fromBrowser}var _stream_readable$1,hasRequired_stream_readable$1;function require_stream_readable$1(){if(hasRequired_stream_readable$1)return _stream_readable$1;hasRequired_stream_readable$1=1,_stream_readable$1=he;var t;he.ReadableState=ve,requireEvents().EventEmitter;var n=function(ue,qe){return ue.listeners(qe).length},l=requireStreamBrowser(),d=require$$0$3.Buffer,m=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(fe){return d.from(fe)}function S(fe){return d.isBuffer(fe)||fe instanceof m}var k=util$6,A;k&&k.debuglog?A=k.debuglog("stream"):A=function(){};var B=requireBuffer_list(),M=requireDestroy(),j=requireState(),I=j.getHighWaterMark,P=requireErrorsBrowser().codes,$=P.ERR_INVALID_ARG_TYPE,z=P.ERR_STREAM_PUSH_AFTER_EOF,N=P.ERR_METHOD_NOT_IMPLEMENTED,F=P.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,U,J,te;inherits_browserExports(he,l);var se=M.errorOrDestroy,de=["error","close","destroy","pause","resume"];function Q(fe,ue,qe){if(typeof fe.prependListener=="function")return fe.prependListener(ue,qe);!fe._events||!fe._events[ue]?fe.on(ue,qe):Array.isArray(fe._events[ue])?fe._events[ue].unshift(qe):fe._events[ue]=[qe,fe._events[ue]]}function ve(fe,ue,qe){t=t||require_stream_duplex$1(),fe=fe||{},typeof qe!="boolean"&&(qe=ue instanceof t),this.objectMode=!!fe.objectMode,qe&&(this.objectMode=this.objectMode||!!fe.readableObjectMode),this.highWaterMark=I(this,fe,"readableHighWaterMark",qe),this.buffer=new B,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=fe.emitClose!==!1,this.autoDestroy=!!fe.autoDestroy,this.destroyed=!1,this.defaultEncoding=fe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,fe.encoding&&(U||(U=string_decoder.StringDecoder),this.decoder=new U(fe.encoding),this.encoding=fe.encoding)}function he(fe){if(t=t||require_stream_duplex$1(),!(this instanceof he))return new he(fe);var ue=this instanceof t;this._readableState=new ve(fe,this,ue),this.readable=!0,fe&&(typeof fe.read=="function"&&(this._read=fe.read),typeof fe.destroy=="function"&&(this._destroy=fe.destroy)),l.call(this)}Object.defineProperty(he.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ue){this._readableState&&(this._readableState.destroyed=ue)}}),he.prototype.destroy=M.destroy,he.prototype._undestroy=M.undestroy,he.prototype._destroy=function(fe,ue){ue(fe)},he.prototype.push=function(fe,ue){var qe=this._readableState,rt;return qe.objectMode?rt=!0:typeof fe=="string"&&(ue=ue||qe.defaultEncoding,ue!==qe.encoding&&(fe=d.from(fe,ue),ue=""),rt=!0),ke(this,fe,ue,!1,rt)},he.prototype.unshift=function(fe){return ke(this,fe,null,!0,!1)};function ke(fe,ue,qe,rt,Ve){A("readableAddChunk",ue);var et=fe._readableState;if(ue===null)et.reading=!1,c(fe,et);else{var mt;if(Ve||(mt=u(et,ue)),mt)se(fe,mt);else if(et.objectMode||ue&&ue.length>0)if(typeof ue!="string"&&!et.objectMode&&Object.getPrototypeOf(ue)!==d.prototype&&(ue=h(ue)),rt)et.endEmitted?se(fe,new F):T(fe,et,ue,!0);else if(et.ended)se(fe,new z);else{if(et.destroyed)return!1;et.reading=!1,et.decoder&&!qe?(ue=et.decoder.write(ue),et.objectMode||ue.length!==0?T(fe,et,ue,!1):v(fe,et)):T(fe,et,ue,!1)}else rt||(et.reading=!1,v(fe,et))}return!et.ended&&(et.length<et.highWaterMark||et.length===0)}function T(fe,ue,qe,rt){ue.flowing&&ue.length===0&&!ue.sync?(ue.awaitDrain=0,fe.emit("data",qe)):(ue.length+=ue.objectMode?1:qe.length,rt?ue.buffer.unshift(qe):ue.buffer.push(qe),ue.needReadable&&y(fe)),v(fe,ue)}function u(fe,ue){var qe;return!S(ue)&&typeof ue!="string"&&ue!==void 0&&!fe.objectMode&&(qe=new $("chunk",["string","Buffer","Uint8Array"],ue)),qe}he.prototype.isPaused=function(){return this._readableState.flowing===!1},he.prototype.setEncoding=function(fe){U||(U=string_decoder.StringDecoder);var ue=new U(fe);this._readableState.decoder=ue,this._readableState.encoding=this._readableState.decoder.encoding;for(var qe=this._readableState.buffer.head,rt="";qe!==null;)rt+=ue.write(qe.data),qe=qe.next;return this._readableState.buffer.clear(),rt!==""&&this._readableState.buffer.push(rt),this._readableState.length=rt.length,this};var p=1073741824;function b(fe){return fe>=p?fe=p:(fe--,fe|=fe>>>1,fe|=fe>>>2,fe|=fe>>>4,fe|=fe>>>8,fe|=fe>>>16,fe++),fe}function e(fe,ue){return fe<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:fe!==fe?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(fe>ue.highWaterMark&&(ue.highWaterMark=b(fe)),fe<=ue.length?fe:ue.ended?ue.length:(ue.needReadable=!0,0))}he.prototype.read=function(fe){A("read",fe),fe=parseInt(fe,10);var ue=this._readableState,qe=fe;if(fe!==0&&(ue.emittedReadable=!1),fe===0&&ue.needReadable&&((ue.highWaterMark!==0?ue.length>=ue.highWaterMark:ue.length>0)||ue.ended))return A("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?D(this):y(this),null;if(fe=e(fe,ue),fe===0&&ue.ended)return ue.length===0&&D(this),null;var rt=ue.needReadable;A("need readable",rt),(ue.length===0||ue.length-fe<ue.highWaterMark)&&(rt=!0,A("length less than watermark",rt)),ue.ended||ue.reading?(rt=!1,A("reading or ended",rt)):rt&&(A("do read"),ue.reading=!0,ue.sync=!0,ue.length===0&&(ue.needReadable=!0),this._read(ue.highWaterMark),ue.sync=!1,ue.reading||(fe=e(qe,ue)));var Ve;return fe>0?Ve=L(fe,ue):Ve=null,Ve===null?(ue.needReadable=ue.length<=ue.highWaterMark,fe=0):(ue.length-=fe,ue.awaitDrain=0),ue.length===0&&(ue.ended||(ue.needReadable=!0),qe!==fe&&ue.ended&&D(this)),Ve!==null&&this.emit("data",Ve),Ve};function c(fe,ue){if(A("onEofChunk"),!ue.ended){if(ue.decoder){var qe=ue.decoder.end();qe&&qe.length&&(ue.buffer.push(qe),ue.length+=ue.objectMode?1:qe.length)}ue.ended=!0,ue.sync?y(fe):(ue.needReadable=!1,ue.emittedReadable||(ue.emittedReadable=!0,w(fe)))}}function y(fe){var ue=fe._readableState;A("emitReadable",ue.needReadable,ue.emittedReadable),ue.needReadable=!1,ue.emittedReadable||(A("emitReadable",ue.flowing),ue.emittedReadable=!0,process$1.nextTick(w,fe))}function w(fe){var ue=fe._readableState;A("emitReadable_",ue.destroyed,ue.length,ue.ended),!ue.destroyed&&(ue.length||ue.ended)&&(fe.emit("readable"),ue.emittedReadable=!1),ue.needReadable=!ue.flowing&&!ue.ended&&ue.length<=ue.highWaterMark,Z(fe)}function v(fe,ue){ue.readingMore||(ue.readingMore=!0,process$1.nextTick(o,fe,ue))}function o(fe,ue){for(;!ue.reading&&!ue.ended&&(ue.length<ue.highWaterMark||ue.flowing&&ue.length===0);){var qe=ue.length;if(A("maybeReadMore read 0"),fe.read(0),qe===ue.length)break}ue.readingMore=!1}he.prototype._read=function(fe){se(this,new N("_read()"))},he.prototype.pipe=function(fe,ue){var qe=this,rt=this._readableState;switch(rt.pipesCount){case 0:rt.pipes=fe;break;case 1:rt.pipes=[rt.pipes,fe];break;default:rt.pipes.push(fe);break}rt.pipesCount+=1,A("pipe count=%d opts=%j",rt.pipesCount,ue);var Ve=(!ue||ue.end!==!1)&&fe!==process$1.stdout&&fe!==process$1.stderr,et=Ve?Ye:$t;rt.endEmitted?process$1.nextTick(et):qe.once("end",et),fe.on("unpipe",mt);function mt(dt,gt){A("onunpipe"),dt===qe&&gt&&gt.hasUnpiped===!1&&(gt.hasUnpiped=!0,Ge())}function Ye(){A("onend"),fe.end()}var We=x(qe);fe.on("drain",We);var Xe=!1;function Ge(){A("cleanup"),fe.removeListener("close",Le),fe.removeListener("finish",Oe),fe.removeListener("drain",We),fe.removeListener("error",Et),fe.removeListener("unpipe",mt),qe.removeListener("end",Ye),qe.removeListener("end",$t),qe.removeListener("data",nt),Xe=!0,rt.awaitDrain&&(!fe._writableState||fe._writableState.needDrain)&&We()}qe.on("data",nt);function nt(dt){A("ondata");var gt=fe.write(dt);A("dest.write",gt),gt===!1&&((rt.pipesCount===1&&rt.pipes===fe||rt.pipesCount>1&&oe(rt.pipes,fe)!==-1)&&!Xe&&(A("false write response, pause",rt.awaitDrain),rt.awaitDrain++),qe.pause())}function Et(dt){A("onerror",dt),$t(),fe.removeListener("error",Et),n(fe,"error")===0&&se(fe,dt)}Q(fe,"error",Et);function Le(){fe.removeListener("finish",Oe),$t()}fe.once("close",Le);function Oe(){A("onfinish"),fe.removeListener("close",Le),$t()}fe.once("finish",Oe);function $t(){A("unpipe"),qe.unpipe(fe)}return fe.emit("pipe",qe),rt.flowing||(A("pipe resume"),qe.resume()),fe};function x(fe){return function(){var qe=fe._readableState;A("pipeOnDrain",qe.awaitDrain),qe.awaitDrain&&qe.awaitDrain--,qe.awaitDrain===0&&n(fe,"data")&&(qe.flowing=!0,Z(fe))}}he.prototype.unpipe=function(fe){var ue=this._readableState,qe={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return fe&&fe!==ue.pipes?this:(fe||(fe=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,fe&&fe.emit("unpipe",this,qe),this);if(!fe){var rt=ue.pipes,Ve=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var et=0;et<Ve;et++)rt[et].emit("unpipe",this,{hasUnpiped:!1});return this}var mt=oe(ue.pipes,fe);return mt===-1?this:(ue.pipes.splice(mt,1),ue.pipesCount-=1,ue.pipesCount===1&&(ue.pipes=ue.pipes[0]),fe.emit("unpipe",this,qe),this)},he.prototype.on=function(fe,ue){var qe=l.prototype.on.call(this,fe,ue),rt=this._readableState;return fe==="data"?(rt.readableListening=this.listenerCount("readable")>0,rt.flowing!==!1&&this.resume()):fe==="readable"&&!rt.endEmitted&&!rt.readableListening&&(rt.readableListening=rt.needReadable=!0,rt.flowing=!1,rt.emittedReadable=!1,A("on readable",rt.length,rt.reading),rt.length?y(this):rt.reading||process$1.nextTick(R,this)),qe},he.prototype.addListener=he.prototype.on,he.prototype.removeListener=function(fe,ue){var qe=l.prototype.removeListener.call(this,fe,ue);return fe==="readable"&&process$1.nextTick(E,this),qe},he.prototype.removeAllListeners=function(fe){var ue=l.prototype.removeAllListeners.apply(this,arguments);return(fe==="readable"||fe===void 0)&&process$1.nextTick(E,this),ue};function E(fe){var ue=fe._readableState;ue.readableListening=fe.listenerCount("readable")>0,ue.resumeScheduled&&!ue.paused?ue.flowing=!0:fe.listenerCount("data")>0&&fe.resume()}function R(fe){A("readable nexttick read 0"),fe.read(0)}he.prototype.resume=function(){var fe=this._readableState;return fe.flowing||(A("resume"),fe.flowing=!fe.readableListening,H(this,fe)),fe.paused=!1,this};function H(fe,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,process$1.nextTick(Y,fe,ue))}function Y(fe,ue){A("resume",ue.reading),ue.reading||fe.read(0),ue.resumeScheduled=!1,fe.emit("resume"),Z(fe),ue.flowing&&!ue.reading&&fe.read(0)}he.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Z(fe){var ue=fe._readableState;for(A("flow",ue.flowing);ue.flowing&&fe.read()!==null;);}he.prototype.wrap=function(fe){var ue=this,qe=this._readableState,rt=!1;fe.on("end",function(){if(A("wrapped end"),qe.decoder&&!qe.ended){var mt=qe.decoder.end();mt&&mt.length&&ue.push(mt)}ue.push(null)}),fe.on("data",function(mt){if(A("wrapped data"),qe.decoder&&(mt=qe.decoder.write(mt)),!(qe.objectMode&&mt==null)&&!(!qe.objectMode&&(!mt||!mt.length))){var Ye=ue.push(mt);Ye||(rt=!0,fe.pause())}});for(var Ve in fe)this[Ve]===void 0&&typeof fe[Ve]=="function"&&(this[Ve]=function(Ye){return function(){return fe[Ye].apply(fe,arguments)}}(Ve));for(var et=0;et<de.length;et++)fe.on(de[et],this.emit.bind(this,de[et]));return this._read=function(mt){A("wrapped _read",mt),rt&&(rt=!1,fe.resume())},this},typeof Symbol=="function"&&(he.prototype[Symbol.asyncIterator]=function(){return J===void 0&&(J=requireAsync_iterator()),J(this)}),Object.defineProperty(he.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(he.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(he.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ue){this._readableState&&(this._readableState.flowing=ue)}}),he._fromList=L,Object.defineProperty(he.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function L(fe,ue){if(ue.length===0)return null;var qe;return ue.objectMode?qe=ue.buffer.shift():!fe||fe>=ue.length?(ue.decoder?qe=ue.buffer.join(""):ue.buffer.length===1?qe=ue.buffer.first():qe=ue.buffer.concat(ue.length),ue.buffer.clear()):qe=ue.buffer.consume(fe,ue.decoder),qe}function D(fe){var ue=fe._readableState;A("endReadable",ue.endEmitted),ue.endEmitted||(ue.ended=!0,process$1.nextTick(ee,ue,fe))}function ee(fe,ue){if(A("endReadableNT",fe.endEmitted,fe.length),!fe.endEmitted&&fe.length===0&&(fe.endEmitted=!0,ue.readable=!1,ue.emit("end"),fe.autoDestroy)){var qe=ue._writableState;(!qe||qe.autoDestroy&&qe.finished)&&ue.destroy()}}typeof Symbol=="function"&&(he.from=function(fe,ue){return te===void 0&&(te=requireFromBrowser()),te(he,fe,ue)});function oe(fe,ue){for(var qe=0,rt=fe.length;qe<rt;qe++)if(fe[qe]===ue)return qe;return-1}return _stream_readable$1}var _stream_transform$1,hasRequired_stream_transform;function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform$1;hasRequired_stream_transform=1,_stream_transform$1=k;var t=requireErrorsBrowser().codes,n=t.ERR_METHOD_NOT_IMPLEMENTED,l=t.ERR_MULTIPLE_CALLBACK,d=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,m=t.ERR_TRANSFORM_WITH_LENGTH_0,h=require_stream_duplex$1();inherits_browserExports(k,h);function S(M,j){var I=this._transformState;I.transforming=!1;var P=I.writecb;if(P===null)return this.emit("error",new l);I.writechunk=null,I.writecb=null,j!=null&&this.push(j),P(M);var $=this._readableState;$.reading=!1,($.needReadable||$.length<$.highWaterMark)&&this._read($.highWaterMark)}function k(M){if(!(this instanceof k))return new k(M);h.call(this,M),this._transformState={afterTransform:S.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,M&&(typeof M.transform=="function"&&(this._transform=M.transform),typeof M.flush=="function"&&(this._flush=M.flush)),this.on("prefinish",A)}function A(){var M=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(j,I){B(M,j,I)}):B(this,null,null)}k.prototype.push=function(M,j){return this._transformState.needTransform=!1,h.prototype.push.call(this,M,j)},k.prototype._transform=function(M,j,I){I(new n("_transform()"))},k.prototype._write=function(M,j,I){var P=this._transformState;if(P.writecb=I,P.writechunk=M,P.writeencoding=j,!P.transforming){var $=this._readableState;(P.needTransform||$.needReadable||$.length<$.highWaterMark)&&this._read($.highWaterMark)}},k.prototype._read=function(M){var j=this._transformState;j.writechunk!==null&&!j.transforming?(j.transforming=!0,this._transform(j.writechunk,j.writeencoding,j.afterTransform)):j.needTransform=!0},k.prototype._destroy=function(M,j){h.prototype._destroy.call(this,M,function(I){j(I)})};function B(M,j,I){if(j)return M.emit("error",j);if(I!=null&&M.push(I),M._writableState.length)throw new m;if(M._transformState.transforming)throw new d;return M.push(null)}return _stream_transform$1}var _stream_passthrough$1,hasRequired_stream_passthrough;function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough$1;hasRequired_stream_passthrough=1,_stream_passthrough$1=n;var t=require_stream_transform();inherits_browserExports(n,t);function n(l){if(!(this instanceof n))return new n(l);t.call(this,l)}return n.prototype._transform=function(l,d,m){m(null,l)},_stream_passthrough$1}var pipeline_1,hasRequiredPipeline;function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;hasRequiredPipeline=1;var t;function n(I){var P=!1;return function(){P||(P=!0,I.apply(void 0,arguments))}}var l=requireErrorsBrowser().codes,d=l.ERR_MISSING_ARGS,m=l.ERR_STREAM_DESTROYED;function h(I){if(I)throw I}function S(I){return I.setHeader&&typeof I.abort=="function"}function k(I,P,$,z){z=n(z);var N=!1;I.on("close",function(){N=!0}),t===void 0&&(t=requireEndOfStream()),t(I,{readable:P,writable:$},function(U){if(U)return z(U);N=!0,z()});var F=!1;return function(U){if(!N&&!F){if(F=!0,S(I))return I.abort();if(typeof I.destroy=="function")return I.destroy();z(U||new m("pipe"))}}}function A(I){I()}function B(I,P){return I.pipe(P)}function M(I){return!I.length||typeof I[I.length-1]!="function"?h:I.pop()}function j(){for(var I=arguments.length,P=new Array(I),$=0;$<I;$++)P[$]=arguments[$];var z=M(P);if(Array.isArray(P[0])&&(P=P[0]),P.length<2)throw new d("streams");var N,F=P.map(function(U,J){var te=J<P.length-1,se=J>0;return k(U,te,se,function(de){N||(N=de),de&&F.forEach(A),!te&&(F.forEach(A),z(N))})});return P.reduce(B)}return pipeline_1=j,pipeline_1}var streamBrowserify,hasRequiredStreamBrowserify;function requireStreamBrowserify(){if(hasRequiredStreamBrowserify)return streamBrowserify;hasRequiredStreamBrowserify=1,streamBrowserify=l;var t=requireEvents().EventEmitter,n=inherits_browserExports;n(l,t),l.Readable=require_stream_readable$1(),l.Writable=require_stream_writable$1(),l.Duplex=require_stream_duplex$1(),l.Transform=require_stream_transform(),l.PassThrough=require_stream_passthrough(),l.finished=requireEndOfStream(),l.pipeline=requirePipeline(),l.Stream=l;function l(){t.call(this)}return l.prototype.pipe=function(d,m){var h=this;function S(P){d.writable&&d.write(P)===!1&&h.pause&&h.pause()}h.on("data",S);function k(){h.readable&&h.resume&&h.resume()}d.on("drain",k),!d._isStdio&&(!m||m.end!==!1)&&(h.on("end",B),h.on("close",M));var A=!1;function B(){A||(A=!0,d.end())}function M(){A||(A=!0,typeof d.destroy=="function"&&d.destroy())}function j(P){if(I(),t.listenerCount(this,"error")===0)throw P}h.on("error",j),d.on("error",j);function I(){h.removeListener("data",S),d.removeListener("drain",k),h.removeListener("end",B),h.removeListener("close",M),h.removeListener("error",j),d.removeListener("error",j),h.removeListener("end",I),h.removeListener("close",I),d.removeListener("close",I)}return h.on("end",I),h.on("close",I),d.on("close",I),d.emit("pipe",h),d},streamBrowserify}var Buffer$z=safeBufferExports$1.Buffer,Transform$7=requireStreamBrowserify().Transform,inherits$p=inherits_browserExports;function throwIfNotStringOrBuffer(t,n){if(!Buffer$z.isBuffer(t)&&typeof t!="string")throw new TypeError(n+" must be a string or a buffer")}function HashBase$2(t){Transform$7.call(this),this._block=Buffer$z.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$p(HashBase$2,Transform$7),HashBase$2.prototype._transform=function(t,n,l){var d=null;try{this.update(t,n)}catch(m){d=m}l(d)},HashBase$2.prototype._flush=function(t){var n=null;try{this.push(this.digest())}catch(l){n=l}t(n)},HashBase$2.prototype.update=function(t,n){if(throwIfNotStringOrBuffer(t,"Data"),this._finalized)throw new Error("Digest already called");Buffer$z.isBuffer(t)||(t=Buffer$z.from(t,n));for(var l=this._block,d=0;this._blockOffset+t.length-d>=this._blockSize;){for(var m=this._blockOffset;m<this._blockSize;)l[m++]=t[d++];this._update(),this._blockOffset=0}for(;d<t.length;)l[this._blockOffset++]=t[d++];for(var h=0,S=t.length*8;S>0;++h)this._length[h]+=S,S=this._length[h]/4294967296|0,S>0&&(this._length[h]-=4294967296*S);return this},HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")},HashBase$2.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var n=this._digest();t!==void 0&&(n=n.toString(t)),this._block.fill(0),this._blockOffset=0;for(var l=0;l<4;++l)this._length[l]=0;return n},HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$o=inherits_browserExports,HashBase$1=hashBase,Buffer$y=safeBufferExports$1.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$o(MD5$3,HashBase$1),MD5$3.prototype._update=function(){for(var t=ARRAY16$1,n=0;n<16;++n)t[n]=this._block.readInt32LE(n*4);var l=this._a,d=this._b,m=this._c,h=this._d;l=fnF(l,d,m,h,t[0],3614090360,7),h=fnF(h,l,d,m,t[1],3905402710,12),m=fnF(m,h,l,d,t[2],606105819,17),d=fnF(d,m,h,l,t[3],3250441966,22),l=fnF(l,d,m,h,t[4],4118548399,7),h=fnF(h,l,d,m,t[5],1200080426,12),m=fnF(m,h,l,d,t[6],2821735955,17),d=fnF(d,m,h,l,t[7],4249261313,22),l=fnF(l,d,m,h,t[8],1770035416,7),h=fnF(h,l,d,m,t[9],2336552879,12),m=fnF(m,h,l,d,t[10],4294925233,17),d=fnF(d,m,h,l,t[11],2304563134,22),l=fnF(l,d,m,h,t[12],1804603682,7),h=fnF(h,l,d,m,t[13],4254626195,12),m=fnF(m,h,l,d,t[14],2792965006,17),d=fnF(d,m,h,l,t[15],1236535329,22),l=fnG(l,d,m,h,t[1],4129170786,5),h=fnG(h,l,d,m,t[6],3225465664,9),m=fnG(m,h,l,d,t[11],643717713,14),d=fnG(d,m,h,l,t[0],3921069994,20),l=fnG(l,d,m,h,t[5],3593408605,5),h=fnG(h,l,d,m,t[10],38016083,9),m=fnG(m,h,l,d,t[15],3634488961,14),d=fnG(d,m,h,l,t[4],3889429448,20),l=fnG(l,d,m,h,t[9],568446438,5),h=fnG(h,l,d,m,t[14],3275163606,9),m=fnG(m,h,l,d,t[3],4107603335,14),d=fnG(d,m,h,l,t[8],1163531501,20),l=fnG(l,d,m,h,t[13],2850285829,5),h=fnG(h,l,d,m,t[2],4243563512,9),m=fnG(m,h,l,d,t[7],1735328473,14),d=fnG(d,m,h,l,t[12],2368359562,20),l=fnH(l,d,m,h,t[5],4294588738,4),h=fnH(h,l,d,m,t[8],2272392833,11),m=fnH(m,h,l,d,t[11],1839030562,16),d=fnH(d,m,h,l,t[14],4259657740,23),l=fnH(l,d,m,h,t[1],2763975236,4),h=fnH(h,l,d,m,t[4],1272893353,11),m=fnH(m,h,l,d,t[7],4139469664,16),d=fnH(d,m,h,l,t[10],3200236656,23),l=fnH(l,d,m,h,t[13],681279174,4),h=fnH(h,l,d,m,t[0],3936430074,11),m=fnH(m,h,l,d,t[3],3572445317,16),d=fnH(d,m,h,l,t[6],76029189,23),l=fnH(l,d,m,h,t[9],3654602809,4),h=fnH(h,l,d,m,t[12],3873151461,11),m=fnH(m,h,l,d,t[15],530742520,16),d=fnH(d,m,h,l,t[2],3299628645,23),l=fnI(l,d,m,h,t[0],4096336452,6),h=fnI(h,l,d,m,t[7],1126891415,10),m=fnI(m,h,l,d,t[14],2878612391,15),d=fnI(d,m,h,l,t[5],4237533241,21),l=fnI(l,d,m,h,t[12],1700485571,6),h=fnI(h,l,d,m,t[3],2399980690,10),m=fnI(m,h,l,d,t[10],4293915773,15),d=fnI(d,m,h,l,t[1],2240044497,21),l=fnI(l,d,m,h,t[8],1873313359,6),h=fnI(h,l,d,m,t[15],4264355552,10),m=fnI(m,h,l,d,t[6],2734768916,15),d=fnI(d,m,h,l,t[13],1309151649,21),l=fnI(l,d,m,h,t[4],4149444226,6),h=fnI(h,l,d,m,t[11],3174756917,10),m=fnI(m,h,l,d,t[2],718787259,15),d=fnI(d,m,h,l,t[9],3951481745,21),this._a=this._a+l|0,this._b=this._b+d|0,this._c=this._c+m|0,this._d=this._d+h|0},MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=Buffer$y.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function rotl$1(t,n){return t<<n|t>>>32-n}function fnF(t,n,l,d,m,h,S){return rotl$1(t+(n&l|~n&d)+m+h|0,S)+n|0}function fnG(t,n,l,d,m,h,S){return rotl$1(t+(n&d|l&~d)+m+h|0,S)+n|0}function fnH(t,n,l,d,m,h,S){return rotl$1(t+(n^l^d)+m+h|0,S)+n|0}function fnI(t,n,l,d,m,h,S){return rotl$1(t+(l^(n|~d))+m+h|0,S)+n|0}var md5_js=MD5$3,Buffer$x=require$$0$3.Buffer,inherits$n=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[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],zr=[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],sl=[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],sr=[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],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$4(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$n(RIPEMD160$4,HashBase),RIPEMD160$4.prototype._update=function(){for(var t=ARRAY16,n=0;n<16;++n)t[n]=this._block.readInt32LE(n*4);for(var l=this._a|0,d=this._b|0,m=this._c|0,h=this._d|0,S=this._e|0,k=this._a|0,A=this._b|0,B=this._c|0,M=this._d|0,j=this._e|0,I=0;I<80;I+=1){var P,$;I<16?(P=fn1(l,d,m,h,S,t[zl[I]],hl[0],sl[I]),$=fn5(k,A,B,M,j,t[zr[I]],hr[0],sr[I])):I<32?(P=fn2(l,d,m,h,S,t[zl[I]],hl[1],sl[I]),$=fn4(k,A,B,M,j,t[zr[I]],hr[1],sr[I])):I<48?(P=fn3(l,d,m,h,S,t[zl[I]],hl[2],sl[I]),$=fn3(k,A,B,M,j,t[zr[I]],hr[2],sr[I])):I<64?(P=fn4(l,d,m,h,S,t[zl[I]],hl[3],sl[I]),$=fn2(k,A,B,M,j,t[zr[I]],hr[3],sr[I])):(P=fn5(l,d,m,h,S,t[zl[I]],hl[4],sl[I]),$=fn1(k,A,B,M,j,t[zr[I]],hr[4],sr[I])),l=S,S=h,h=rotl(m,10),m=d,d=P,k=j,j=M,M=rotl(B,10),B=A,A=$}var z=this._b+m+M|0;this._b=this._c+h+j|0,this._c=this._d+S+k|0,this._d=this._e+l+A|0,this._e=this._a+d+B|0,this._a=z},RIPEMD160$4.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=Buffer$x.alloc?Buffer$x.alloc(20):new Buffer$x(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};function rotl(t,n){return t<<n|t>>>32-n}function fn1(t,n,l,d,m,h,S,k){return rotl(t+(n^l^d)+h+S|0,k)+m|0}function fn2(t,n,l,d,m,h,S,k){return rotl(t+(n&l|~n&d)+h+S|0,k)+m|0}function fn3(t,n,l,d,m,h,S,k){return rotl(t+((n|~l)^d)+h+S|0,k)+m|0}function fn4(t,n,l,d,m,h,S,k){return rotl(t+(n&d|l&~d)+h+S|0,k)+m|0}function fn5(t,n,l,d,m,h,S,k){return rotl(t+(n^(l|~d))+h+S|0,k)+m|0}var ripemd160=RIPEMD160$4,sha_js={exports:{}},Buffer$w=safeBufferExports$1.Buffer;function Hash$7(t,n){this._block=Buffer$w.alloc(t),this._finalSize=n,this._blockSize=t,this._len=0}Hash$7.prototype.update=function(t,n){typeof t=="string"&&(n=n||"utf8",t=Buffer$w.from(t,n));for(var l=this._block,d=this._blockSize,m=t.length,h=this._len,S=0;S<m;){for(var k=h%d,A=Math.min(m-S,d-k),B=0;B<A;B++)l[k+B]=t[S+B];h+=A,S+=A,h%d===0&&this._update(l)}return this._len+=m,this},Hash$7.prototype.digest=function(t){var n=this._len%this._blockSize;this._block[n]=128,this._block.fill(0,n+1),n>=this._finalSize&&(this._update(this._block),this._block.fill(0));var l=this._len*8;if(l<=4294967295)this._block.writeUInt32BE(l,this._blockSize-4);else{var d=(l&4294967295)>>>0,m=(l-d)/4294967296;this._block.writeUInt32BE(m,this._blockSize-8),this._block.writeUInt32BE(d,this._blockSize-4)}this._update(this._block);var h=this._hash();return t?h.toString(t):h},Hash$7.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$3=Hash$7,inherits$m=inherits_browserExports,Hash$6=hash$3,Buffer$v=safeBufferExports$1.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$6.call(this,64,56)}inherits$m(Sha,Hash$6),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(t){return t<<5|t>>>27}function rotl30$1(t){return t<<30|t>>>2}function ft$1(t,n,l,d){return t===0?n&l|~n&d:t===2?n&l|n&d|l&d:n^l^d}Sha.prototype._update=function(t){for(var n=this._w,l=this._a|0,d=this._b|0,m=this._c|0,h=this._d|0,S=this._e|0,k=0;k<16;++k)n[k]=t.readInt32BE(k*4);for(;k<80;++k)n[k]=n[k-3]^n[k-8]^n[k-14]^n[k-16];for(var A=0;A<80;++A){var B=~~(A/20),M=rotl5$1(l)+ft$1(B,d,m,h)+S+n[A]+K$4[B]|0;S=h,h=m,m=rotl30$1(d),d=l,l=M}this._a=l+this._a|0,this._b=d+this._b|0,this._c=m+this._c|0,this._d=h+this._d|0,this._e=S+this._e|0},Sha.prototype._hash=function(){var t=Buffer$v.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var sha$4=Sha,inherits$l=inherits_browserExports,Hash$5=hash$3,Buffer$u=safeBufferExports$1.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$5.call(this,64,56)}inherits$l(Sha1,Hash$5),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(t){return t<<1|t>>>31}function rotl5(t){return t<<5|t>>>27}function rotl30(t){return t<<30|t>>>2}function ft(t,n,l,d){return t===0?n&l|~n&d:t===2?n&l|n&d|l&d:n^l^d}Sha1.prototype._update=function(t){for(var n=this._w,l=this._a|0,d=this._b|0,m=this._c|0,h=this._d|0,S=this._e|0,k=0;k<16;++k)n[k]=t.readInt32BE(k*4);for(;k<80;++k)n[k]=rotl1(n[k-3]^n[k-8]^n[k-14]^n[k-16]);for(var A=0;A<80;++A){var B=~~(A/20),M=rotl5(l)+ft(B,d,m,h)+S+n[A]+K$3[B]|0;S=h,h=m,m=rotl30(d),d=l,l=M}this._a=l+this._a|0,this._b=d+this._b|0,this._c=m+this._c|0,this._d=h+this._d|0,this._e=S+this._e|0},Sha1.prototype._hash=function(){var t=Buffer$u.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var sha1$2=Sha1,inherits$k=inherits_browserExports,Hash$4=hash$3,Buffer$t=safeBufferExports$1.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$4.call(this,64,56)}inherits$k(Sha256$1,Hash$4),Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(t,n,l){return l^t&(n^l)}function maj$1(t,n,l){return t&n|l&(t|n)}function sigma0$1(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function sigma1$1(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function gamma0(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function gamma1(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}Sha256$1.prototype._update=function(t){for(var n=this._w,l=this._a|0,d=this._b|0,m=this._c|0,h=this._d|0,S=this._e|0,k=this._f|0,A=this._g|0,B=this._h|0,M=0;M<16;++M)n[M]=t.readInt32BE(M*4);for(;M<64;++M)n[M]=gamma1(n[M-2])+n[M-7]+gamma0(n[M-15])+n[M-16]|0;for(var j=0;j<64;++j){var I=B+sigma1$1(S)+ch(S,k,A)+K$2[j]+n[j]|0,P=sigma0$1(l)+maj$1(l,d,m)|0;B=A,A=k,k=S,S=h+I|0,h=m,m=d,d=l,l=I+P|0}this._a=l+this._a|0,this._b=d+this._b|0,this._c=m+this._c|0,this._d=h+this._d|0,this._e=S+this._e|0,this._f=k+this._f|0,this._g=A+this._g|0,this._h=B+this._h|0},Sha256$1.prototype._hash=function(){var t=Buffer$t.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};var sha256$1=Sha256$1,inherits$j=inherits_browserExports,Sha256=sha256$1,Hash$3=hash$3,Buffer$s=safeBufferExports$1.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$3.call(this,64,56)}inherits$j(Sha224,Sha256),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var t=Buffer$s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};var sha224$1=Sha224,inherits$i=inherits_browserExports,Hash$2=hash$3,Buffer$r=safeBufferExports$1.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$2.call(this,128,112)}inherits$i(Sha512,Hash$2),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(t,n,l){return l^t&(n^l)}function maj(t,n,l){return t&n|l&(t|n)}function sigma0(t,n){return(t>>>28|n<<4)^(n>>>2|t<<30)^(n>>>7|t<<25)}function sigma1(t,n){return(t>>>14|n<<18)^(t>>>18|n<<14)^(n>>>9|t<<23)}function Gamma0(t,n){return(t>>>1|n<<31)^(t>>>8|n<<24)^t>>>7}function Gamma0l(t,n){return(t>>>1|n<<31)^(t>>>8|n<<24)^(t>>>7|n<<25)}function Gamma1(t,n){return(t>>>19|n<<13)^(n>>>29|t<<3)^t>>>6}function Gamma1l(t,n){return(t>>>19|n<<13)^(n>>>29|t<<3)^(t>>>6|n<<26)}function getCarry(t,n){return t>>>0<n>>>0?1:0}Sha512.prototype._update=function(t){for(var n=this._w,l=this._ah|0,d=this._bh|0,m=this._ch|0,h=this._dh|0,S=this._eh|0,k=this._fh|0,A=this._gh|0,B=this._hh|0,M=this._al|0,j=this._bl|0,I=this._cl|0,P=this._dl|0,$=this._el|0,z=this._fl|0,N=this._gl|0,F=this._hl|0,U=0;U<32;U+=2)n[U]=t.readInt32BE(U*4),n[U+1]=t.readInt32BE(U*4+4);for(;U<160;U+=2){var J=n[U-30],te=n[U-15*2+1],se=Gamma0(J,te),de=Gamma0l(te,J);J=n[U-2*2],te=n[U-2*2+1];var Q=Gamma1(J,te),ve=Gamma1l(te,J),he=n[U-7*2],ke=n[U-7*2+1],T=n[U-16*2],u=n[U-16*2+1],p=de+ke|0,b=se+he+getCarry(p,de)|0;p=p+ve|0,b=b+Q+getCarry(p,ve)|0,p=p+u|0,b=b+T+getCarry(p,u)|0,n[U]=b,n[U+1]=p}for(var e=0;e<160;e+=2){b=n[e],p=n[e+1];var c=maj(l,d,m),y=maj(M,j,I),w=sigma0(l,M),v=sigma0(M,l),o=sigma1(S,$),x=sigma1($,S),E=K$1[e],R=K$1[e+1],H=Ch(S,k,A),Y=Ch($,z,N),Z=F+x|0,L=B+o+getCarry(Z,F)|0;Z=Z+Y|0,L=L+H+getCarry(Z,Y)|0,Z=Z+R|0,L=L+E+getCarry(Z,R)|0,Z=Z+p|0,L=L+b+getCarry(Z,p)|0;var D=v+y|0,ee=w+c+getCarry(D,v)|0;B=A,F=N,A=k,N=z,k=S,z=$,$=P+Z|0,S=h+L+getCarry($,P)|0,h=m,P=I,m=d,I=j,d=l,j=M,M=Z+D|0,l=L+ee+getCarry(M,Z)|0}this._al=this._al+M|0,this._bl=this._bl+j|0,this._cl=this._cl+I|0,this._dl=this._dl+P|0,this._el=this._el+$|0,this._fl=this._fl+z|0,this._gl=this._gl+N|0,this._hl=this._hl+F|0,this._ah=this._ah+l+getCarry(this._al,M)|0,this._bh=this._bh+d+getCarry(this._bl,j)|0,this._ch=this._ch+m+getCarry(this._cl,I)|0,this._dh=this._dh+h+getCarry(this._dl,P)|0,this._eh=this._eh+S+getCarry(this._el,$)|0,this._fh=this._fh+k+getCarry(this._fl,z)|0,this._gh=this._gh+A+getCarry(this._gl,N)|0,this._hh=this._hh+B+getCarry(this._hl,F)|0},Sha512.prototype._hash=function(){var t=Buffer$r.allocUnsafe(64);function n(l,d,m){t.writeInt32BE(l,m),t.writeInt32BE(d,m+4)}return n(this._ah,this._al,0),n(this._bh,this._bl,8),n(this._ch,this._cl,16),n(this._dh,this._dl,24),n(this._eh,this._el,32),n(this._fh,this._fl,40),n(this._gh,this._gl,48),n(this._hh,this._hl,56),t};var sha512$1=Sha512,inherits$h=inherits_browserExports,SHA512$2=sha512$1,Hash$1=hash$3,Buffer$q=safeBufferExports$1.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$1.call(this,128,112)}inherits$h(Sha384,SHA512$2),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){var t=Buffer$q.allocUnsafe(48);function n(l,d,m){t.writeInt32BE(l,m),t.writeInt32BE(d,m+4)}return n(this._ah,this._al,0),n(this._bh,this._bl,8),n(this._ch,this._cl,16),n(this._dh,this._dl,24),n(this._eh,this._el,32),n(this._fh,this._fl,40),t};var sha384$1=Sha384,exports$1=sha_js.exports=function(n){n=n.toLowerCase();var l=exports$1[n];if(!l)throw new Error(n+" is not supported (we accept pull requests)");return new l};exports$1.sha=sha$4,exports$1.sha1=sha1$2,exports$1.sha224=sha224$1,exports$1.sha256=sha256$1,exports$1.sha384=sha384$1,exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,Buffer$p=safeBufferExports$1.Buffer,Transform$6=requireStreamBrowserify().Transform,StringDecoder=string_decoder.StringDecoder,inherits$g=inherits_browserExports;function CipherBase$1(t){Transform$6.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$g(CipherBase$1,Transform$6),CipherBase$1.prototype.update=function(t,n,l){typeof t=="string"&&(t=Buffer$p.from(t,n));var d=this._update(t);return this.hashMode?this:(l&&(d=this._toString(d,l)),d)},CipherBase$1.prototype.setAutoPadding=function(){},CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},CipherBase$1.prototype._transform=function(t,n,l){var d;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(m){d=m}finally{l(d)}},CipherBase$1.prototype._flush=function(t){var n;try{this.push(this.__final())}catch(l){n=l}t(n)},CipherBase$1.prototype._finalOrDigest=function(t){var n=this.__final()||Buffer$p.alloc(0);return t&&(n=this._toString(n,t,!0)),n},CipherBase$1.prototype._toString=function(t,n,l){if(this._decoder||(this._decoder=new StringDecoder(n),this._encoding=n),this._encoding!==n)throw new Error("can't switch encodings");var d=this._decoder.write(t);return l&&(d+=this._decoder.end()),d};var cipherBase=CipherBase$1,inherits$f=inherits_browserExports,MD5$2=md5_js,RIPEMD160$3=ripemd160,sha$3=sha_jsExports,Base$5=cipherBase;function Hash(t){Base$5.call(this,"digest"),this._hash=t}inherits$f(Hash,Base$5),Hash.prototype._update=function(t){this._hash.update(t)},Hash.prototype._final=function(){return this._hash.digest()};var browser$b=function(n){return n=n.toLowerCase(),n==="md5"?new MD5$2:n==="rmd160"||n==="ripemd160"?new RIPEMD160$3:new Hash(sha$3(n))},inherits$e=inherits_browserExports,Buffer$o=safeBufferExports$1.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$o.alloc(128),blocksize=64;function Hmac$3(t,n){Base$4.call(this,"digest"),typeof n=="string"&&(n=Buffer$o.from(n)),this._alg=t,this._key=n,n.length>blocksize?n=t(n):n.length<blocksize&&(n=Buffer$o.concat([n,ZEROS$2],blocksize));for(var l=this._ipad=Buffer$o.allocUnsafe(blocksize),d=this._opad=Buffer$o.allocUnsafe(blocksize),m=0;m<blocksize;m++)l[m]=n[m]^54,d[m]=n[m]^92;this._hash=[l]}inherits$e(Hmac$3,Base$4),Hmac$3.prototype._update=function(t){this._hash.push(t)},Hmac$3.prototype._final=function(){var t=this._alg(Buffer$o.concat(this._hash));return this._alg(Buffer$o.concat([this._opad,t]))};var legacy=Hmac$3,MD5$1=md5_js,md5$3=function(t){return new MD5$1().update(t).digest()},inherits$d=inherits_browserExports,Legacy=legacy,Base$3=cipherBase,Buffer$n=safeBufferExports$1.Buffer,md5$2=md5$3,RIPEMD160$2=ripemd160,sha$2=sha_jsExports,ZEROS$1=Buffer$n.alloc(128);function Hmac$2(t,n){Base$3.call(this,"digest"),typeof n=="string"&&(n=Buffer$n.from(n));var l=t==="sha512"||t==="sha384"?128:64;if(this._alg=t,this._key=n,n.length>l){var d=t==="rmd160"?new RIPEMD160$2:sha$2(t);n=d.update(n).digest()}else n.length<l&&(n=Buffer$n.concat([n,ZEROS$1],l));for(var m=this._ipad=Buffer$n.allocUnsafe(l),h=this._opad=Buffer$n.allocUnsafe(l),S=0;S<l;S++)m[S]=n[S]^54,h[S]=n[S]^92;this._hash=t==="rmd160"?new RIPEMD160$2:sha$2(t),this._hash.update(m)}inherits$d(Hmac$2,Base$3),Hmac$2.prototype._update=function(t){this._hash.update(t)},Hmac$2.prototype._final=function(){var t=this._hash.digest(),n=this._alg==="rmd160"?new RIPEMD160$2:sha$2(this._alg);return n.update(this._opad).update(t).digest()};var browser$a=function(n,l){return n=n.toLowerCase(),n==="rmd160"||n==="ripemd160"?new Hmac$2("rmd160",l):n==="md5"?new Legacy(md5$2,l):new Hmac$2(n,l)};const sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},require$$6$1={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var algos=require$$6$1,browser$9={},MAX_ALLOC=Math.pow(2,30)-1,precondition=function(t,n){if(typeof t!="number")throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if(typeof n!="number")throw new TypeError("Key length not a number");if(n<0||n>MAX_ALLOC||n!==n)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(process$1.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$m=safeBufferExports$1.Buffer,toBuffer$2=function(t,n,l){if(Buffer$m.isBuffer(t))return t;if(typeof t=="string")return Buffer$m.from(t,n);if(ArrayBuffer.isView(t))return Buffer$m.from(t.buffer);throw new TypeError(l+" must be a string, a Buffer, a typed array or a DataView")},md5$1=md5$3,RIPEMD160$1=ripemd160,sha$1=sha_jsExports,Buffer$l=safeBufferExports$1.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$1=toBuffer$2,ZEROS=Buffer$l.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(t,n,l){var d=getDigest(t),m=t==="sha512"||t==="sha384"?128:64;n.length>m?n=d(n):n.length<m&&(n=Buffer$l.concat([n,ZEROS],m));for(var h=Buffer$l.allocUnsafe(m+sizes[t]),S=Buffer$l.allocUnsafe(m+sizes[t]),k=0;k<m;k++)h[k]=n[k]^54,S[k]=n[k]^92;var A=Buffer$l.allocUnsafe(m+l+4);h.copy(A,0,0,m),this.ipad1=A,this.ipad2=h,this.opad=S,this.alg=t,this.blocksize=m,this.hash=d,this.size=sizes[t]}Hmac$1.prototype.run=function(t,n){t.copy(n,this.blocksize);var l=this.hash(n);return l.copy(this.opad,this.blocksize),this.hash(this.opad)};function getDigest(t){function n(d){return sha$1(t).update(d).digest()}function l(d){return new RIPEMD160$1().update(d).digest()}return t==="rmd160"||t==="ripemd160"?l:t==="md5"?md5$1:n}function pbkdf2(t,n,l,d,m){checkParameters$1(l,d),t=toBuffer$1(t,defaultEncoding$1,"Password"),n=toBuffer$1(n,defaultEncoding$1,"Salt"),m=m||"sha1";var h=new Hmac$1(m,t,n.length),S=Buffer$l.allocUnsafe(d),k=Buffer$l.allocUnsafe(n.length+4);n.copy(k,0,0,n.length);for(var A=0,B=sizes[m],M=Math.ceil(d/B),j=1;j<=M;j++){k.writeUInt32BE(j,n.length);for(var I=h.run(k,h.ipad1),P=I,$=1;$<l;$++){P=h.run(P,h.ipad2);for(var z=0;z<B;z++)I[z]^=P[z]}I.copy(S,A),A+=B}return S}var syncBrowser=pbkdf2,Buffer$k=safeBufferExports$1.Buffer,checkParameters=precondition,defaultEncoding=defaultEncoding_1,sync=syncBrowser,toBuffer=toBuffer$2,ZERO_BUF,subtle=commonjsGlobal.crypto&&commonjsGlobal.crypto.subtle,toBrowser={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},checks=[];function checkNative(t){if(commonjsGlobal.process&&!commonjsGlobal.process.browser||!subtle||!subtle.importKey||!subtle.deriveBits)return Promise.resolve(!1);if(checks[t]!==void 0)return checks[t];ZERO_BUF=ZERO_BUF||Buffer$k.alloc(8);var n=browserPbkdf2(ZERO_BUF,ZERO_BUF,10,128,t).then(function(){return!0}).catch(function(){return!1});return checks[t]=n,n}var nextTick$1;function getNextTick(){return nextTick$1||(commonjsGlobal.process&&commonjsGlobal.process.nextTick?nextTick$1=commonjsGlobal.process.nextTick:commonjsGlobal.queueMicrotask?nextTick$1=commonjsGlobal.queueMicrotask:commonjsGlobal.setImmediate?nextTick$1=commonjsGlobal.setImmediate:nextTick$1=commonjsGlobal.setTimeout,nextTick$1)}function browserPbkdf2(t,n,l,d,m){return subtle.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(h){return subtle.deriveBits({name:"PBKDF2",salt:n,iterations:l,hash:{name:m}},h,d<<3)}).then(function(h){return Buffer$k.from(h)})}function resolvePromise(t,n){t.then(function(l){getNextTick()(function(){n(null,l)})},function(l){getNextTick()(function(){n(l)})})}var async$1=function(t,n,l,d,m,h){typeof m=="function"&&(h=m,m=void 0),m=m||"sha1";var S=toBrowser[m.toLowerCase()];if(!S||typeof commonjsGlobal.Promise!="function"){getNextTick()(function(){var k;try{k=sync(t,n,l,d,m)}catch(A){return h(A)}h(null,k)});return}if(checkParameters(l,d),t=toBuffer(t,defaultEncoding,"Password"),n=toBuffer(n,defaultEncoding,"Salt"),typeof h!="function")throw new Error("No callback provided to pbkdf2");resolvePromise(checkNative(S).then(function(k){return k?browserPbkdf2(t,n,l,d,S):sync(t,n,l,d,m)}),h)};browser$9.pbkdf2=async$1,browser$9.pbkdf2Sync=syncBrowser;var browser$8={},des$2={},utils$q={};utils$q.readUInt32BE=function(n,l){var d=n[0+l]<<24|n[1+l]<<16|n[2+l]<<8|n[3+l];return d>>>0},utils$q.writeUInt32BE=function(n,l,d){n[0+d]=l>>>24,n[1+d]=l>>>16&255,n[2+d]=l>>>8&255,n[3+d]=l&255},utils$q.ip=function(n,l,d,m){for(var h=0,S=0,k=6;k>=0;k-=2){for(var A=0;A<=24;A+=8)h<<=1,h|=l>>>A+k&1;for(var A=0;A<=24;A+=8)h<<=1,h|=n>>>A+k&1}for(var k=6;k>=0;k-=2){for(var A=1;A<=25;A+=8)S<<=1,S|=l>>>A+k&1;for(var A=1;A<=25;A+=8)S<<=1,S|=n>>>A+k&1}d[m+0]=h>>>0,d[m+1]=S>>>0},utils$q.rip=function(n,l,d,m){for(var h=0,S=0,k=0;k<4;k++)for(var A=24;A>=0;A-=8)h<<=1,h|=l>>>A+k&1,h<<=1,h|=n>>>A+k&1;for(var k=4;k<8;k++)for(var A=24;A>=0;A-=8)S<<=1,S|=l>>>A+k&1,S<<=1,S|=n>>>A+k&1;d[m+0]=h>>>0,d[m+1]=S>>>0},utils$q.pc1=function(n,l,d,m){for(var h=0,S=0,k=7;k>=5;k--){for(var A=0;A<=24;A+=8)h<<=1,h|=l>>A+k&1;for(var A=0;A<=24;A+=8)h<<=1,h|=n>>A+k&1}for(var A=0;A<=24;A+=8)h<<=1,h|=l>>A+k&1;for(var k=1;k<=3;k++){for(var A=0;A<=24;A+=8)S<<=1,S|=l>>A+k&1;for(var A=0;A<=24;A+=8)S<<=1,S|=n>>A+k&1}for(var A=0;A<=24;A+=8)S<<=1,S|=n>>A+k&1;d[m+0]=h>>>0,d[m+1]=S>>>0},utils$q.r28shl=function(n,l){return n<<l&268435455|n>>>28-l};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$q.pc2=function(n,l,d,m){for(var h=0,S=0,k=pc2table.length>>>1,A=0;A<k;A++)h<<=1,h|=n>>>pc2table[A]&1;for(var A=k;A<pc2table.length;A++)S<<=1,S|=l>>>pc2table[A]&1;d[m+0]=h>>>0,d[m+1]=S>>>0},utils$q.expand=function(n,l,d){var m=0,h=0;m=(n&1)<<5|n>>>27;for(var S=23;S>=15;S-=4)m<<=6,m|=n>>>S&63;for(var S=11;S>=3;S-=4)h|=n>>>S&63,h<<=6;h|=(n&31)<<1|n>>>31,l[d+0]=m>>>0,l[d+1]=h>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$q.substitute=function(n,l){for(var d=0,m=0;m<4;m++){var h=n>>>18-m*6&63,S=sTable[m*64+h];d<<=4,d|=S}for(var m=0;m<4;m++){var h=l>>>18-m*6&63,S=sTable[4*64+m*64+h];d<<=4,d|=S}return d>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$q.permute=function(n){for(var l=0,d=0;d<permuteTable.length;d++)l<<=1,l|=n>>>permuteTable[d]&1;return l>>>0},utils$q.padSplit=function(n,l,d){for(var m=n.toString(2);m.length<l;)m="0"+m;for(var h=[],S=0;S<l;S+=d)h.push(m.slice(S,S+d));return h.join(" ")};var minimalisticAssert=assert$j;function assert$j(t,n){if(!t)throw new Error(n||"Assertion failed")}assert$j.equal=function(n,l,d){if(n!=l)throw new Error(d||"Assertion failed: "+n+" != "+l)};var assert$i=minimalisticAssert;function Cipher$3(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=t.padding!==!1}var cipher=Cipher$3;Cipher$3.prototype._init=function(){},Cipher$3.prototype.update=function(n){return n.length===0?[]:this.type==="decrypt"?this._updateDecrypt(n):this._updateEncrypt(n)},Cipher$3.prototype._buffer=function(n,l){for(var d=Math.min(this.buffer.length-this.bufferOff,n.length-l),m=0;m<d;m++)this.buffer[this.bufferOff+m]=n[l+m];return this.bufferOff+=d,d},Cipher$3.prototype._flushBuffer=function(n,l){return this._update(this.buffer,0,n,l),this.bufferOff=0,this.blockSize},Cipher$3.prototype._updateEncrypt=function(n){var l=0,d=0,m=(this.bufferOff+n.length)/this.blockSize|0,h=new Array(m*this.blockSize);this.bufferOff!==0&&(l+=this._buffer(n,l),this.bufferOff===this.buffer.length&&(d+=this._flushBuffer(h,d)));for(var S=n.length-(n.length-l)%this.blockSize;l<S;l+=this.blockSize)this._update(n,l,h,d),d+=this.blockSize;for(;l<n.length;l++,this.bufferOff++)this.buffer[this.bufferOff]=n[l];return h},Cipher$3.prototype._updateDecrypt=function(n){for(var l=0,d=0,m=Math.ceil((this.bufferOff+n.length)/this.blockSize)-1,h=new Array(m*this.blockSize);m>0;m--)l+=this._buffer(n,l),d+=this._flushBuffer(h,d);return l+=this._buffer(n,l),h},Cipher$3.prototype.final=function(n){var l;n&&(l=this.update(n));var d;return this.type==="encrypt"?d=this._finalEncrypt():d=this._finalDecrypt(),l?l.concat(d):d},Cipher$3.prototype._pad=function(n,l){if(l===0)return!1;for(;l<n.length;)n[l++]=0;return!0},Cipher$3.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var n=new Array(this.blockSize);return this._update(this.buffer,0,n,0),n},Cipher$3.prototype._unpad=function(n){return n},Cipher$3.prototype._finalDecrypt=function(){assert$i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var n=new Array(this.blockSize);return this._flushBuffer(n,0),this._unpad(n)};var assert$h=minimalisticAssert,inherits$c=inherits_browserExports,utils$p=utils$q,Cipher$2=cipher;function DESState(){this.tmp=new Array(2),this.keys=null}function DES$3(t){Cipher$2.call(this,t);var n=new DESState;this._desState=n,this.deriveKeys(n,t.key)}inherits$c(DES$3,Cipher$2);var des$1=DES$3;DES$3.create=function(n){return new DES$3(n)};var shiftTable=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];DES$3.prototype.deriveKeys=function(n,l){n.keys=new Array(16*2),assert$h.equal(l.length,this.blockSize,"Invalid key length");var d=utils$p.readUInt32BE(l,0),m=utils$p.readUInt32BE(l,4);utils$p.pc1(d,m,n.tmp,0),d=n.tmp[0],m=n.tmp[1];for(var h=0;h<n.keys.length;h+=2){var S=shiftTable[h>>>1];d=utils$p.r28shl(d,S),m=utils$p.r28shl(m,S),utils$p.pc2(d,m,n.keys,h)}},DES$3.prototype._update=function(n,l,d,m){var h=this._desState,S=utils$p.readUInt32BE(n,l),k=utils$p.readUInt32BE(n,l+4);utils$p.ip(S,k,h.tmp,0),S=h.tmp[0],k=h.tmp[1],this.type==="encrypt"?this._encrypt(h,S,k,h.tmp,0):this._decrypt(h,S,k,h.tmp,0),S=h.tmp[0],k=h.tmp[1],utils$p.writeUInt32BE(d,S,m),utils$p.writeUInt32BE(d,k,m+4)},DES$3.prototype._pad=function(n,l){if(this.padding===!1)return!1;for(var d=n.length-l,m=l;m<n.length;m++)n[m]=d;return!0},DES$3.prototype._unpad=function(n){if(this.padding===!1)return n;for(var l=n[n.length-1],d=n.length-l;d<n.length;d++)assert$h.equal(n[d],l);return n.slice(0,n.length-l)},DES$3.prototype._encrypt=function(n,l,d,m,h){for(var S=l,k=d,A=0;A<n.keys.length;A+=2){var B=n.keys[A],M=n.keys[A+1];utils$p.expand(k,n.tmp,0),B^=n.tmp[0],M^=n.tmp[1];var j=utils$p.substitute(B,M),I=utils$p.permute(j),P=k;k=(S^I)>>>0,S=P}utils$p.rip(k,S,m,h)},DES$3.prototype._decrypt=function(n,l,d,m,h){for(var S=d,k=l,A=n.keys.length-2;A>=0;A-=2){var B=n.keys[A],M=n.keys[A+1];utils$p.expand(S,n.tmp,0),B^=n.tmp[0],M^=n.tmp[1];var j=utils$p.substitute(B,M),I=utils$p.permute(j),P=S;S=(k^I)>>>0,k=P}utils$p.rip(S,k,m,h)};var cbc$1={},assert$g=minimalisticAssert,inherits$b=inherits_browserExports,proto={};function CBCState(t){assert$g.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var n=0;n<this.iv.length;n++)this.iv[n]=t[n]}function instantiate(t){function n(h){t.call(this,h),this._cbcInit()}inherits$b(n,t);for(var l=Object.keys(proto),d=0;d<l.length;d++){var m=l[d];n.prototype[m]=proto[m]}return n.create=function(S){return new n(S)},n}cbc$1.instantiate=instantiate,proto._cbcInit=function(){var n=new CBCState(this.options.iv);this._cbcState=n},proto._update=function(n,l,d,m){var h=this._cbcState,S=this.constructor.super_.prototype,k=h.iv;if(this.type==="encrypt"){for(var A=0;A<this.blockSize;A++)k[A]^=n[l+A];S._update.call(this,k,0,d,m);for(var A=0;A<this.blockSize;A++)k[A]=d[m+A]}else{S._update.call(this,n,l,d,m);for(var A=0;A<this.blockSize;A++)d[m+A]^=k[A];for(var A=0;A<this.blockSize;A++)k[A]=n[l+A]}};var assert$f=minimalisticAssert,inherits$a=inherits_browserExports,Cipher$1=cipher,DES$2=des$1;function EDEState(t,n){assert$f.equal(n.length,24,"Invalid key length");var l=n.slice(0,8),d=n.slice(8,16),m=n.slice(16,24);t==="encrypt"?this.ciphers=[DES$2.create({type:"encrypt",key:l}),DES$2.create({type:"decrypt",key:d}),DES$2.create({type:"encrypt",key:m})]:this.ciphers=[DES$2.create({type:"decrypt",key:m}),DES$2.create({type:"encrypt",key:d}),DES$2.create({type:"decrypt",key:l})]}function EDE(t){Cipher$1.call(this,t);var n=new EDEState(this.type,this.options.key);this._edeState=n}inherits$a(EDE,Cipher$1);var ede=EDE;EDE.create=function(n){return new EDE(n)},EDE.prototype._update=function(n,l,d,m){var h=this._edeState;h.ciphers[0]._update(n,l,d,m),h.ciphers[1]._update(d,m,d,m),h.ciphers[2]._update(d,m,d,m)},EDE.prototype._pad=DES$2.prototype._pad,EDE.prototype._unpad=DES$2.prototype._unpad,des$2.utils=utils$q,des$2.Cipher=cipher,des$2.DES=des$1,des$2.CBC=cbc$1,des$2.EDE=ede;var CipherBase=cipherBase,des=des$2,inherits$9=inherits_browserExports,Buffer$j=safeBufferExports$1.Buffer,modes$3={"des-ede3-cbc":des.CBC.instantiate(des.EDE),"des-ede3":des.EDE,"des-ede-cbc":des.CBC.instantiate(des.EDE),"des-ede":des.EDE,"des-cbc":des.CBC.instantiate(des.DES),"des-ecb":des.DES};modes$3.des=modes$3["des-cbc"],modes$3.des3=modes$3["des-ede3-cbc"];var browserifyDes=DES$1;inherits$9(DES$1,CipherBase);function DES$1(t){CipherBase.call(this);var n=t.mode.toLowerCase(),l=modes$3[n],d;t.decrypt?d="decrypt":d="encrypt";var m=t.key;Buffer$j.isBuffer(m)||(m=Buffer$j.from(m)),(n==="des-ede"||n==="des-ede-cbc")&&(m=Buffer$j.concat([m,m.slice(0,8)]));var h=t.iv;Buffer$j.isBuffer(h)||(h=Buffer$j.from(h)),this._des=l.create({key:m,iv:h,type:d})}DES$1.prototype._update=function(t){return Buffer$j.from(this._des.update(t))},DES$1.prototype._final=function(){return Buffer$j.from(this._des.final())};var browser$7={},encrypter={},ecb={};ecb.encrypt=function(t,n){return t._cipher.encryptBlock(n)},ecb.decrypt=function(t,n){return t._cipher.decryptBlock(n)};var cbc={},bufferXor=function(n,l){for(var d=Math.min(n.length,l.length),m=new Buffer$C(d),h=0;h<d;++h)m[h]=n[h]^l[h];return m},xor$7=bufferXor;cbc.encrypt=function(t,n){var l=xor$7(n,t._prev);return t._prev=t._cipher.encryptBlock(l),t._prev},cbc.decrypt=function(t,n){var l=t._prev;t._prev=n;var d=t._cipher.decryptBlock(n);return xor$7(d,l)};var cfb={},Buffer$i=safeBufferExports$1.Buffer,xor$6=bufferXor;function encryptStart(t,n,l){var d=n.length,m=xor$6(n,t._cache);return t._cache=t._cache.slice(d),t._prev=Buffer$i.concat([t._prev,l?n:m]),m}cfb.encrypt=function(t,n,l){for(var d=Buffer$i.allocUnsafe(0),m;n.length;)if(t._cache.length===0&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=Buffer$i.allocUnsafe(0)),t._cache.length<=n.length)m=t._cache.length,d=Buffer$i.concat([d,encryptStart(t,n.slice(0,m),l)]),n=n.slice(m);else{d=Buffer$i.concat([d,encryptStart(t,n,l)]);break}return d};var cfb8={},Buffer$h=safeBufferExports$1.Buffer;function encryptByte$1(t,n,l){var d=t._cipher.encryptBlock(t._prev),m=d[0]^n;return t._prev=Buffer$h.concat([t._prev.slice(1),Buffer$h.from([l?n:m])]),m}cfb8.encrypt=function(t,n,l){for(var d=n.length,m=Buffer$h.allocUnsafe(d),h=-1;++h<d;)m[h]=encryptByte$1(t,n[h],l);return m};var cfb1={},Buffer$g=safeBufferExports$1.Buffer;function encryptByte(t,n,l){for(var d,m=-1,h=8,S=0,k,A;++m<h;)d=t._cipher.encryptBlock(t._prev),k=n&1<<7-m?128:0,A=d[0]^k,S+=(A&128)>>m%8,t._prev=shiftIn(t._prev,l?k:A);return S}function shiftIn(t,n){var l=t.length,d=-1,m=Buffer$g.allocUnsafe(t.length);for(t=Buffer$g.concat([t,Buffer$g.from([n])]);++d<l;)m[d]=t[d]<<1|t[d+1]>>7;return m}cfb1.encrypt=function(t,n,l){for(var d=n.length,m=Buffer$g.allocUnsafe(d),h=-1;++h<d;)m[h]=encryptByte(t,n[h],l);return m};var ofb={},xor$5=bufferXor;function getBlock$1(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}ofb.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=Buffer$C.concat([t._cache,getBlock$1(t)]);var l=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),xor$5(n,l)};var ctr={};function incr32$2(t){for(var n=t.length,l;n--;)if(l=t.readUInt8(n),l===255)t.writeUInt8(0,n);else{l++,t.writeUInt8(l,n);break}}var incr32_1=incr32$2,xor$4=bufferXor,Buffer$f=safeBufferExports$1.Buffer,incr32$1=incr32_1;function getBlock(t){var n=t._cipher.encryptBlockRaw(t._prev);return incr32$1(t._prev),n}var blockSize=16;ctr.encrypt=function(t,n){var l=Math.ceil(n.length/blockSize),d=t._cache.length;t._cache=Buffer$f.concat([t._cache,Buffer$f.allocUnsafe(l*blockSize)]);for(var m=0;m<l;m++){var h=getBlock(t),S=d+m*blockSize;t._cache.writeUInt32BE(h[0],S+0),t._cache.writeUInt32BE(h[1],S+4),t._cache.writeUInt32BE(h[2],S+8),t._cache.writeUInt32BE(h[3],S+12)}var k=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),xor$4(n,k)};const aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},require$$2$1={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var modeModules={ECB:ecb,CBC:cbc,CFB:cfb,CFB8:cfb8,CFB1:cfb1,OFB:ofb,CTR:ctr,GCM:ctr},modes$2=require$$2$1;for(var key$3 in modes$2)modes$2[key$3].module=modeModules[modes$2[key$3].mode];var modes_1=modes$2,aes$5={},Buffer$e=safeBufferExports$1.Buffer;function asUInt32Array(t){Buffer$e.isBuffer(t)||(t=Buffer$e.from(t));for(var n=t.length/4|0,l=new Array(n),d=0;d<n;d++)l[d]=t.readUInt32BE(d*4);return l}function scrubVec(t){for(var n=0;n<t.length;t++)t[n]=0}function cryptBlock(t,n,l,d,m){for(var h=l[0],S=l[1],k=l[2],A=l[3],B=t[0]^n[0],M=t[1]^n[1],j=t[2]^n[2],I=t[3]^n[3],P,$,z,N,F=4,U=1;U<m;U++)P=h[B>>>24]^S[M>>>16&255]^k[j>>>8&255]^A[I&255]^n[F++],$=h[M>>>24]^S[j>>>16&255]^k[I>>>8&255]^A[B&255]^n[F++],z=h[j>>>24]^S[I>>>16&255]^k[B>>>8&255]^A[M&255]^n[F++],N=h[I>>>24]^S[B>>>16&255]^k[M>>>8&255]^A[j&255]^n[F++],B=P,M=$,j=z,I=N;return P=(d[B>>>24]<<24|d[M>>>16&255]<<16|d[j>>>8&255]<<8|d[I&255])^n[F++],$=(d[M>>>24]<<24|d[j>>>16&255]<<16|d[I>>>8&255]<<8|d[B&255])^n[F++],z=(d[j>>>24]<<24|d[I>>>16&255]<<16|d[B>>>8&255]<<8|d[M&255])^n[F++],N=(d[I>>>24]<<24|d[B>>>16&255]<<16|d[M>>>8&255]<<8|d[j&255])^n[F++],P=P>>>0,$=$>>>0,z=z>>>0,N=N>>>0,[P,$,z,N]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var t=new Array(256),n=0;n<256;n++)n<128?t[n]=n<<1:t[n]=n<<1^283;for(var l=[],d=[],m=[[],[],[],[]],h=[[],[],[],[]],S=0,k=0,A=0;A<256;++A){var B=k^k<<1^k<<2^k<<3^k<<4;B=B>>>8^B&255^99,l[S]=B,d[B]=S;var M=t[S],j=t[M],I=t[j],P=t[B]*257^B*16843008;m[0][S]=P<<24|P>>>8,m[1][S]=P<<16|P>>>16,m[2][S]=P<<8|P>>>24,m[3][S]=P,P=I*16843009^j*65537^M*257^S*16843008,h[0][B]=P<<24|P>>>8,h[1][B]=P<<16|P>>>16,h[2][B]=P<<8|P>>>24,h[3][B]=P,S===0?S=k=1:(S=M^t[t[t[I^M]]],k^=t[t[k]])}return{SBOX:l,INV_SBOX:d,SUB_MIX:m,INV_SUB_MIX:h}}();function AES(t){this._key=asUInt32Array(t),this._reset()}AES.blockSize=4*4,AES.keySize=256/8,AES.prototype.blockSize=AES.blockSize,AES.prototype.keySize=AES.keySize,AES.prototype._reset=function(){for(var t=this._key,n=t.length,l=n+6,d=(l+1)*4,m=[],h=0;h<n;h++)m[h]=t[h];for(h=n;h<d;h++){var S=m[h-1];h%n===0?(S=S<<8|S>>>24,S=G.SBOX[S>>>24]<<24|G.SBOX[S>>>16&255]<<16|G.SBOX[S>>>8&255]<<8|G.SBOX[S&255],S^=RCON[h/n|0]<<24):n>6&&h%n===4&&(S=G.SBOX[S>>>24]<<24|G.SBOX[S>>>16&255]<<16|G.SBOX[S>>>8&255]<<8|G.SBOX[S&255]),m[h]=m[h-n]^S}for(var k=[],A=0;A<d;A++){var B=d-A,M=m[B-(A%4?0:4)];A<4||B<=4?k[A]=M:k[A]=G.INV_SUB_MIX[0][G.SBOX[M>>>24]]^G.INV_SUB_MIX[1][G.SBOX[M>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[M>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[M&255]]}this._nRounds=l,this._keySchedule=m,this._invKeySchedule=k},AES.prototype.encryptBlockRaw=function(t){return t=asUInt32Array(t),cryptBlock(t,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)},AES.prototype.encryptBlock=function(t){var n=this.encryptBlockRaw(t),l=Buffer$e.allocUnsafe(16);return l.writeUInt32BE(n[0],0),l.writeUInt32BE(n[1],4),l.writeUInt32BE(n[2],8),l.writeUInt32BE(n[3],12),l},AES.prototype.decryptBlock=function(t){t=asUInt32Array(t);var n=t[1];t[1]=t[3],t[3]=n;var l=cryptBlock(t,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),d=Buffer$e.allocUnsafe(16);return d.writeUInt32BE(l[0],0),d.writeUInt32BE(l[3],4),d.writeUInt32BE(l[2],8),d.writeUInt32BE(l[1],12),d},AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)},aes$5.AES=AES;var Buffer$d=safeBufferExports$1.Buffer,ZEROES=Buffer$d.alloc(16,0);function toArray$1(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function fromArray(t){var n=Buffer$d.allocUnsafe(16);return n.writeUInt32BE(t[0]>>>0,0),n.writeUInt32BE(t[1]>>>0,4),n.writeUInt32BE(t[2]>>>0,8),n.writeUInt32BE(t[3]>>>0,12),n}function GHASH$1(t){this.h=t,this.state=Buffer$d.alloc(16,0),this.cache=Buffer$d.allocUnsafe(0)}GHASH$1.prototype.ghash=function(t){for(var n=-1;++n<t.length;)this.state[n]^=t[n];this._multiply()},GHASH$1.prototype._multiply=function(){for(var t=toArray$1(this.h),n=[0,0,0,0],l,d,m,h=-1;++h<128;){for(d=(this.state[~~(h/8)]&1<<7-h%8)!==0,d&&(n[0]^=t[0],n[1]^=t[1],n[2]^=t[2],n[3]^=t[3]),m=(t[3]&1)!==0,l=3;l>0;l--)t[l]=t[l]>>>1|(t[l-1]&1)<<31;t[0]=t[0]>>>1,m&&(t[0]=t[0]^225<<24)}this.state=fromArray(n)},GHASH$1.prototype.update=function(t){this.cache=Buffer$d.concat([this.cache,t]);for(var n;this.cache.length>=16;)n=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(n)},GHASH$1.prototype.final=function(t,n){return this.cache.length&&this.ghash(Buffer$d.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,t,0,n])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$c=safeBufferExports$1.Buffer,Transform$5=cipherBase,inherits$8=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(t,n){var l=0;t.length!==n.length&&l++;for(var d=Math.min(t.length,n.length),m=0;m<d;++m)l+=t[m]^n[m];return l}function calcIv(t,n,l){if(n.length===12)return t._finID=Buffer$c.concat([n,Buffer$c.from([0,0,0,1])]),Buffer$c.concat([n,Buffer$c.from([0,0,0,2])]);var d=new GHASH(l),m=n.length,h=m%16;d.update(n),h&&(h=16-h,d.update(Buffer$c.alloc(h,0))),d.update(Buffer$c.alloc(8,0));var S=m*8,k=Buffer$c.alloc(8);k.writeUIntBE(S,0,8),d.update(k),t._finID=d.state;var A=Buffer$c.from(t._finID);return incr32(A),A}function StreamCipher$3(t,n,l,d){Transform$5.call(this);var m=Buffer$c.alloc(4,0);this._cipher=new aes$4.AES(n);var h=this._cipher.encryptBlock(m);this._ghash=new GHASH(h),l=calcIv(this,l,h),this._prev=Buffer$c.from(l),this._cache=Buffer$c.allocUnsafe(0),this._secCache=Buffer$c.allocUnsafe(0),this._decrypt=d,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}inherits$8(StreamCipher$3,Transform$5),StreamCipher$3.prototype._update=function(t){if(!this._called&&this._alen){var n=16-this._alen%16;n<16&&(n=Buffer$c.alloc(n,0),this._ghash.update(n))}this._called=!0;var l=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(l),this._len+=t.length,l},StreamCipher$3.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=xor$3(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&xorTest(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},StreamCipher$3.prototype.getAuthTag=function(){if(this._decrypt||!Buffer$c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},StreamCipher$3.prototype.setAuthTag=function(n){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=n},StreamCipher$3.prototype.setAAD=function(n){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(n),this._alen+=n.length};var authCipher=StreamCipher$3,aes$3=aes$5,Buffer$b=safeBufferExports$1.Buffer,Transform$4=cipherBase,inherits$7=inherits_browserExports;function StreamCipher$2(t,n,l,d){Transform$4.call(this),this._cipher=new aes$3.AES(n),this._prev=Buffer$b.from(l),this._cache=Buffer$b.allocUnsafe(0),this._secCache=Buffer$b.allocUnsafe(0),this._decrypt=d,this._mode=t}inherits$7(StreamCipher$2,Transform$4),StreamCipher$2.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},StreamCipher$2.prototype._final=function(){this._cipher.scrub()};var streamCipher=StreamCipher$2,Buffer$a=safeBufferExports$1.Buffer,MD5=md5_js;function EVP_BytesToKey(t,n,l,d){if(Buffer$a.isBuffer(t)||(t=Buffer$a.from(t,"binary")),n&&(Buffer$a.isBuffer(n)||(n=Buffer$a.from(n,"binary")),n.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var m=l/8,h=Buffer$a.alloc(m),S=Buffer$a.alloc(d||0),k=Buffer$a.alloc(0);m>0||d>0;){var A=new MD5;A.update(k),A.update(t),n&&A.update(n),k=A.digest();var B=0;if(m>0){var M=h.length-m;B=Math.min(m,k.length),k.copy(h,M,0,B),m-=B}if(B<k.length&&d>0){var j=S.length-d,I=Math.min(d,k.length-B);k.copy(S,j,B,B+I),d-=I}}return k.fill(0),{key:h,iv:S}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$9=safeBufferExports$1.Buffer,StreamCipher$1=streamCipher,Transform$3=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$6=inherits_browserExports;function Cipher(t,n,l){Transform$3.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(n),this._prev=Buffer$9.from(l),this._mode=t,this._autopadding=!0}inherits$6(Cipher,Transform$3),Cipher.prototype._update=function(t){this._cache.add(t);for(var n,l,d=[];n=this._cache.get();)l=this._mode.encrypt(this,n),d.push(l);return Buffer$9.concat(d)};var PADDING=Buffer$9.alloc(16,16);Cipher.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")},Cipher.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Splitter$1(){this.cache=Buffer$9.allocUnsafe(0)}Splitter$1.prototype.add=function(t){this.cache=Buffer$9.concat([this.cache,t])},Splitter$1.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},Splitter$1.prototype.flush=function(){for(var t=16-this.cache.length,n=Buffer$9.allocUnsafe(t),l=-1;++l<t;)n.writeUInt8(t,l);return Buffer$9.concat([this.cache,n])};function createCipheriv$1(t,n,l){var d=MODES$1[t.toLowerCase()];if(!d)throw new TypeError("invalid suite type");if(typeof n=="string"&&(n=Buffer$9.from(n)),n.length!==d.key/8)throw new TypeError("invalid key length "+n.length);if(typeof l=="string"&&(l=Buffer$9.from(l)),d.mode!=="GCM"&&l.length!==d.iv)throw new TypeError("invalid iv length "+l.length);return d.type==="stream"?new StreamCipher$1(d.module,n,l):d.type==="auth"?new AuthCipher$1(d.module,n,l):new Cipher(d.module,n,l)}function createCipher$1(t,n){var l=MODES$1[t.toLowerCase()];if(!l)throw new TypeError("invalid suite type");var d=ebtk$2(n,!1,l.key,l.iv);return createCipheriv$1(t,d.key,d.iv)}encrypter.createCipheriv=createCipheriv$1,encrypter.createCipher=createCipher$1;var decrypter={},AuthCipher=authCipher,Buffer$8=safeBufferExports$1.Buffer,MODES=modes_1,StreamCipher=streamCipher,Transform$2=cipherBase,aes$1=aes$5,ebtk$1=evp_bytestokey,inherits$5=inherits_browserExports;function Decipher(t,n,l){Transform$2.call(this),this._cache=new Splitter,this._last=void 0,this._cipher=new aes$1.AES(n),this._prev=Buffer$8.from(l),this._mode=t,this._autopadding=!0}inherits$5(Decipher,Transform$2),Decipher.prototype._update=function(t){this._cache.add(t);for(var n,l,d=[];n=this._cache.get(this._autopadding);)l=this._mode.decrypt(this,n),d.push(l);return Buffer$8.concat(d)},Decipher.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return unpad(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},Decipher.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this};function Splitter(){this.cache=Buffer$8.allocUnsafe(0)}Splitter.prototype.add=function(t){this.cache=Buffer$8.concat([this.cache,t])},Splitter.prototype.get=function(t){var n;if(t){if(this.cache.length>16)return n=this.cache.slice(0,16),this.cache=this.cache.slice(16),n}else if(this.cache.length>=16)return n=this.cache.slice(0,16),this.cache=this.cache.slice(16),n;return null},Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(t){var n=t[15];if(n<1||n>16)throw new Error("unable to decrypt data");for(var l=-1;++l<n;)if(t[l+(16-n)]!==n)throw new Error("unable to decrypt data");if(n!==16)return t.slice(0,16-n)}function createDecipheriv$1(t,n,l){var d=MODES[t.toLowerCase()];if(!d)throw new TypeError("invalid suite type");if(typeof l=="string"&&(l=Buffer$8.from(l)),d.mode!=="GCM"&&l.length!==d.iv)throw new TypeError("invalid iv length "+l.length);if(typeof n=="string"&&(n=Buffer$8.from(n)),n.length!==d.key/8)throw new TypeError("invalid key length "+n.length);return d.type==="stream"?new StreamCipher(d.module,n,l,!0):d.type==="auth"?new AuthCipher(d.module,n,l,!0):new Decipher(d.module,n,l)}function createDecipher$1(t,n){var l=MODES[t.toLowerCase()];if(!l)throw new TypeError("invalid suite type");var d=ebtk$1(n,!1,l.key,l.iv);return createDecipheriv$1(t,d.key,d.iv)}decrypter.createDecipher=createDecipher$1,decrypter.createDecipheriv=createDecipheriv$1;var ciphers$2=encrypter,deciphers=decrypter,modes$1=require$$2$1;function getCiphers$1(){return Object.keys(modes$1)}browser$7.createCipher=browser$7.Cipher=ciphers$2.createCipher,browser$7.createCipheriv=browser$7.Cipheriv=ciphers$2.createCipheriv,browser$7.createDecipher=browser$7.Decipher=deciphers.createDecipher,browser$7.createDecipheriv=browser$7.Decipheriv=deciphers.createDecipheriv,browser$7.listCiphers=browser$7.getCiphers=getCiphers$1;var modes={};(function(t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}})(modes);var DES=browserifyDes,aes=browser$7,aesModes=modes_1,desModes=modes,ebtk=evp_bytestokey;function createCipher(t,n){t=t.toLowerCase();var l,d;if(aesModes[t])l=aesModes[t].key,d=aesModes[t].iv;else if(desModes[t])l=desModes[t].key*8,d=desModes[t].iv;else throw new TypeError("invalid suite type");var m=ebtk(n,!1,l,d);return createCipheriv(t,m.key,m.iv)}function createDecipher(t,n){t=t.toLowerCase();var l,d;if(aesModes[t])l=aesModes[t].key,d=aesModes[t].iv;else if(desModes[t])l=desModes[t].key*8,d=desModes[t].iv;else throw new TypeError("invalid suite type");var m=ebtk(n,!1,l,d);return createDecipheriv(t,m.key,m.iv)}function createCipheriv(t,n,l){if(t=t.toLowerCase(),aesModes[t])return aes.createCipheriv(t,n,l);if(desModes[t])return new DES({key:n,iv:l,mode:t});throw new TypeError("invalid suite type")}function createDecipheriv(t,n,l){if(t=t.toLowerCase(),aesModes[t])return aes.createDecipheriv(t,n,l);if(desModes[t])return new DES({key:n,iv:l,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function getCiphers(){return Object.keys(desModes).concat(aes.getCiphers())}browser$8.createCipher=browser$8.Cipher=createCipher,browser$8.createCipheriv=browser$8.Cipheriv=createCipheriv,browser$8.createDecipher=browser$8.Decipher=createDecipher,browser$8.createDecipheriv=browser$8.Decipheriv=createDecipheriv,browser$8.listCiphers=browser$8.getCiphers=getCiphers;var browser$6={},bn$6={exports:{}};bn$6.exports,function(t){(function(n,l){function d(T,u){if(!T)throw new Error(u||"Assertion failed")}function m(T,u){T.super_=u;var p=function(){};p.prototype=u.prototype,T.prototype=new p,T.prototype.constructor=T}function h(T,u,p){if(h.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(p=u,u=10),this._init(T||0,u||10,p||"be"))}typeof n=="object"?n.exports=h:l.BN=h,h.BN=h,h.wordSize=26;var S;try{typeof window<"u"&&typeof window.Buffer<"u"?S=window.Buffer:S=require$$0$3.Buffer}catch{}h.isBN=function(u){return u instanceof h?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===h.wordSize&&Array.isArray(u.words)},h.max=function(u,p){return u.cmp(p)>0?u:p},h.min=function(u,p){return u.cmp(p)<0?u:p},h.prototype._init=function(u,p,b){if(typeof u=="number")return this._initNumber(u,p,b);if(typeof u=="object")return this._initArray(u,p,b);p==="hex"&&(p=16),d(p===(p|0)&&p>=2&&p<=36),u=u.toString().replace(/\s+/g,"");var e=0;u[0]==="-"&&(e++,this.negative=1),e<u.length&&(p===16?this._parseHex(u,e,b):(this._parseBase(u,p,e),b==="le"&&this._initArray(this.toArray(),p,b)))},h.prototype._initNumber=function(u,p,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(d(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),p,b)},h.prototype._initArray=function(u,p,b){if(d(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c,y,w=0;if(b==="be")for(e=u.length-1,c=0;e>=0;e-=3)y=u[e]|u[e-1]<<8|u[e-2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);else if(b==="le")for(e=0,c=0;e<u.length;e+=3)y=u[e]|u[e+1]<<8|u[e+2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);return this.strip()};function k(T,u){var p=T.charCodeAt(u);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function A(T,u,p){var b=k(T,p);return p-1>=u&&(b|=k(T,p-1)<<4),b}h.prototype._parseHex=function(u,p,b){this.length=Math.ceil((u.length-p)/6),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c=0,y=0,w;if(b==="be")for(e=u.length-1;e>=p;e-=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8;else{var v=u.length-p;for(e=v%2===0?p+1:p;e<u.length;e+=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8}this.strip()};function B(T,u,p,b){for(var e=0,c=Math.min(T.length,p),y=u;y<c;y++){var w=T.charCodeAt(y)-48;e*=b,w>=49?e+=w-49+10:w>=17?e+=w-17+10:e+=w}return e}h.prototype._parseBase=function(u,p,b){this.words=[0],this.length=1;for(var e=0,c=1;c<=67108863;c*=p)e++;e--,c=c/p|0;for(var y=u.length-b,w=y%e,v=Math.min(y,y-w)+b,o=0,x=b;x<v;x+=e)o=B(u,x,x+e,p),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(w!==0){var E=1;for(o=B(u,x,u.length,p),x=0;x<w;x++)E*=p;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},h.prototype.copy=function(u){u.words=new Array(this.length);for(var p=0;p<this.length;p++)u.words[p]=this.words[p];u.length=this.length,u.negative=this.negative,u.red=this.red},h.prototype.clone=function(){var u=new h(null);return this.copy(u),u},h.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(u,p){u=u||10,p=p|0||1;var b;if(u===16||u==="hex"){b="";for(var e=0,c=0,y=0;y<this.length;y++){var w=this.words[y],v=((w<<e|c)&16777215).toString(16);c=w>>>24-e&16777215,c!==0||y!==this.length-1?b=M[6-v.length]+v+b:b=v+b,e+=2,e>=26&&(e-=26,y--)}for(c!==0&&(b=c.toString(16)+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var o=j[u],x=I[u];b="";var E=this.clone();for(E.negative=0;!E.isZero();){var R=E.modn(x).toString(u);E=E.idivn(x),E.isZero()?b=R+b:b=M[o-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}d(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(u,p){return d(typeof S<"u"),this.toArrayLike(S,u,p)},h.prototype.toArray=function(u,p){return this.toArrayLike(Array,u,p)},h.prototype.toArrayLike=function(u,p,b){var e=this.byteLength(),c=b||Math.max(1,e);d(e<=c,"byte array longer than desired length"),d(c>0,"Requested array length <= 0"),this.strip();var y=p==="le",w=new u(c),v,o,x=this.clone();if(y){for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[o]=v;for(;o<c;o++)w[o]=0}else{for(o=0;o<c-e;o++)w[o]=0;for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[c-o-1]=v}return w},Math.clz32?h.prototype._countBits=function(u){return 32-Math.clz32(u)}:h.prototype._countBits=function(u){var p=u,b=0;return p>=4096&&(b+=13,p>>>=13),p>=64&&(b+=7,p>>>=7),p>=8&&(b+=4,p>>>=4),p>=2&&(b+=2,p>>>=2),b+p},h.prototype._zeroBits=function(u){if(u===0)return 26;var p=u,b=0;return p&8191||(b+=13,p>>>=13),p&127||(b+=7,p>>>=7),p&15||(b+=4,p>>>=4),p&3||(b+=2,p>>>=2),p&1||b++,b},h.prototype.bitLength=function(){var u=this.words[this.length-1],p=this._countBits(u);return(this.length-1)*26+p};function P(T){for(var u=new Array(T.bitLength()),p=0;p<u.length;p++){var b=p/26|0,e=p%26;u[p]=(T.words[b]&1<<e)>>>e}return u}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,p=0;p<this.length;p++){var b=this._zeroBits(this.words[p]);if(u+=b,b!==26)break}return u},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},h.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return this.negative!==0},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var p=0;p<u.length;p++)this.words[p]=this.words[p]|u.words[p];return this.strip()},h.prototype.ior=function(u){return d((this.negative|u.negative)===0),this.iuor(u)},h.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},h.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},h.prototype.iuand=function(u){var p;this.length>u.length?p=u:p=this;for(var b=0;b<p.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=p.length,this.strip()},h.prototype.iand=function(u){return d((this.negative|u.negative)===0),this.iuand(u)},h.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},h.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},h.prototype.iuxor=function(u){var p,b;this.length>u.length?(p=this,b=u):(p=u,b=this);for(var e=0;e<b.length;e++)this.words[e]=p.words[e]^b.words[e];if(this!==p)for(;e<p.length;e++)this.words[e]=p.words[e];return this.length=p.length,this.strip()},h.prototype.ixor=function(u){return d((this.negative|u.negative)===0),this.iuxor(u)},h.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},h.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},h.prototype.inotn=function(u){d(typeof u=="number"&&u>=0);var p=Math.ceil(u/26)|0,b=u%26;this._expand(p),b>0&&p--;for(var e=0;e<p;e++)this.words[e]=~this.words[e]&67108863;return b>0&&(this.words[e]=~this.words[e]&67108863>>26-b),this.strip()},h.prototype.notn=function(u){return this.clone().inotn(u)},h.prototype.setn=function(u,p){d(typeof u=="number"&&u>=0);var b=u/26|0,e=u%26;return this._expand(b+1),p?this.words[b]=this.words[b]|1<<e:this.words[b]=this.words[b]&~(1<<e),this.strip()},h.prototype.iadd=function(u){var p;if(this.negative!==0&&u.negative===0)return this.negative=0,p=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,p=this.isub(u),u.negative=1,p._normSign();var b,e;this.length>u.length?(b=this,e=u):(b=u,e=this);for(var c=0,y=0;y<e.length;y++)p=(b.words[y]|0)+(e.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;for(;c!==0&&y<b.length;y++)p=(b.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;if(this.length=b.length,c!==0)this.words[this.length]=c,this.length++;else if(b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this},h.prototype.add=function(u){var p;return u.negative!==0&&this.negative===0?(u.negative=0,p=this.sub(u),u.negative^=1,p):u.negative===0&&this.negative!==0?(this.negative=0,p=u.sub(this),this.negative=1,p):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},h.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var p=this.iadd(u);return u.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var e,c;b>0?(e=this,c=u):(e=u,c=this);for(var y=0,w=0;w<c.length;w++)p=(e.words[w]|0)-(c.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;for(;y!==0&&w<e.length;w++)p=(e.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;if(y===0&&w<e.length&&e!==this)for(;w<e.length;w++)this.words[w]=e.words[w];return this.length=Math.max(this.length,w),e!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(u){return this.clone().isub(u)};function $(T,u,p){p.negative=u.negative^T.negative;var b=T.length+u.length|0;p.length=b,b=b-1|0;var e=T.words[0]|0,c=u.words[0]|0,y=e*c,w=y&67108863,v=y/67108864|0;p.words[0]=w;for(var o=1;o<b;o++){for(var x=v>>>26,E=v&67108863,R=Math.min(o,u.length-1),H=Math.max(0,o-T.length+1);H<=R;H++){var Y=o-H|0;e=T.words[Y]|0,c=u.words[H]|0,y=e*c+E,x+=y/67108864|0,E=y&67108863}p.words[o]=E|0,v=x|0}return v!==0?p.words[o]=v|0:p.length--,p.strip()}var z=function(u,p,b){var e=u.words,c=p.words,y=b.words,w=0,v,o,x,E=e[0]|0,R=E&8191,H=E>>>13,Y=e[1]|0,Z=Y&8191,L=Y>>>13,D=e[2]|0,ee=D&8191,oe=D>>>13,fe=e[3]|0,ue=fe&8191,qe=fe>>>13,rt=e[4]|0,Ve=rt&8191,et=rt>>>13,mt=e[5]|0,Ye=mt&8191,We=mt>>>13,Xe=e[6]|0,Ge=Xe&8191,nt=Xe>>>13,Et=e[7]|0,Le=Et&8191,Oe=Et>>>13,$t=e[8]|0,dt=$t&8191,gt=$t>>>13,Lt=e[9]|0,xe=Lt&8191,X=Lt>>>13,pe=c[0]|0,je=pe&8191,$e=pe>>>13,He=c[1]|0,Fe=He&8191,Me=He>>>13,Rt=c[2]|0,yt=Rt&8191,le=Rt>>>13,wt=c[3]|0,at=wt&8191,Be=wt>>>13,ot=c[4]|0,tt=ot&8191,kt=ot>>>13,Yt=c[5]|0,pt=Yt&8191,It=Yt>>>13,Fr=c[6]|0,Pt=Fr&8191,Ot=Fr>>>13,Te=c[7]|0,me=Te&8191,ce=Te>>>13,ne=c[8]|0,_e=ne&8191,Re=ne>>>13,lt=c[9]|0,Ze=lt&8191,ct=lt>>>13;b.negative=u.negative^p.negative,b.length=19,v=Math.imul(R,je),o=Math.imul(R,$e),o=o+Math.imul(H,je)|0,x=Math.imul(H,$e);var Nt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,v=Math.imul(Z,je),o=Math.imul(Z,$e),o=o+Math.imul(L,je)|0,x=Math.imul(L,$e),v=v+Math.imul(R,Fe)|0,o=o+Math.imul(R,Me)|0,o=o+Math.imul(H,Fe)|0,x=x+Math.imul(H,Me)|0;var Ut=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,v=Math.imul(ee,je),o=Math.imul(ee,$e),o=o+Math.imul(oe,je)|0,x=Math.imul(oe,$e),v=v+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(L,Fe)|0,x=x+Math.imul(L,Me)|0,v=v+Math.imul(R,yt)|0,o=o+Math.imul(R,le)|0,o=o+Math.imul(H,yt)|0,x=x+Math.imul(H,le)|0;var Mr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,v=Math.imul(ue,je),o=Math.imul(ue,$e),o=o+Math.imul(qe,je)|0,x=Math.imul(qe,$e),v=v+Math.imul(ee,Fe)|0,o=o+Math.imul(ee,Me)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Me)|0,v=v+Math.imul(Z,yt)|0,o=o+Math.imul(Z,le)|0,o=o+Math.imul(L,yt)|0,x=x+Math.imul(L,le)|0,v=v+Math.imul(R,at)|0,o=o+Math.imul(R,Be)|0,o=o+Math.imul(H,at)|0,x=x+Math.imul(H,Be)|0;var Xt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(Ve,je),o=Math.imul(Ve,$e),o=o+Math.imul(et,je)|0,x=Math.imul(et,$e),v=v+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Me)|0,o=o+Math.imul(qe,Fe)|0,x=x+Math.imul(qe,Me)|0,v=v+Math.imul(ee,yt)|0,o=o+Math.imul(ee,le)|0,o=o+Math.imul(oe,yt)|0,x=x+Math.imul(oe,le)|0,v=v+Math.imul(Z,at)|0,o=o+Math.imul(Z,Be)|0,o=o+Math.imul(L,at)|0,x=x+Math.imul(L,Be)|0,v=v+Math.imul(R,tt)|0,o=o+Math.imul(R,kt)|0,o=o+Math.imul(H,tt)|0,x=x+Math.imul(H,kt)|0;var Sr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,v=Math.imul(Ye,je),o=Math.imul(Ye,$e),o=o+Math.imul(We,je)|0,x=Math.imul(We,$e),v=v+Math.imul(Ve,Fe)|0,o=o+Math.imul(Ve,Me)|0,o=o+Math.imul(et,Fe)|0,x=x+Math.imul(et,Me)|0,v=v+Math.imul(ue,yt)|0,o=o+Math.imul(ue,le)|0,o=o+Math.imul(qe,yt)|0,x=x+Math.imul(qe,le)|0,v=v+Math.imul(ee,at)|0,o=o+Math.imul(ee,Be)|0,o=o+Math.imul(oe,at)|0,x=x+Math.imul(oe,Be)|0,v=v+Math.imul(Z,tt)|0,o=o+Math.imul(Z,kt)|0,o=o+Math.imul(L,tt)|0,x=x+Math.imul(L,kt)|0,v=v+Math.imul(R,pt)|0,o=o+Math.imul(R,It)|0,o=o+Math.imul(H,pt)|0,x=x+Math.imul(H,It)|0;var rr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(Ge,je),o=Math.imul(Ge,$e),o=o+Math.imul(nt,je)|0,x=Math.imul(nt,$e),v=v+Math.imul(Ye,Fe)|0,o=o+Math.imul(Ye,Me)|0,o=o+Math.imul(We,Fe)|0,x=x+Math.imul(We,Me)|0,v=v+Math.imul(Ve,yt)|0,o=o+Math.imul(Ve,le)|0,o=o+Math.imul(et,yt)|0,x=x+Math.imul(et,le)|0,v=v+Math.imul(ue,at)|0,o=o+Math.imul(ue,Be)|0,o=o+Math.imul(qe,at)|0,x=x+Math.imul(qe,Be)|0,v=v+Math.imul(ee,tt)|0,o=o+Math.imul(ee,kt)|0,o=o+Math.imul(oe,tt)|0,x=x+Math.imul(oe,kt)|0,v=v+Math.imul(Z,pt)|0,o=o+Math.imul(Z,It)|0,o=o+Math.imul(L,pt)|0,x=x+Math.imul(L,It)|0,v=v+Math.imul(R,Pt)|0,o=o+Math.imul(R,Ot)|0,o=o+Math.imul(H,Pt)|0,x=x+Math.imul(H,Ot)|0;var er=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(Le,je),o=Math.imul(Le,$e),o=o+Math.imul(Oe,je)|0,x=Math.imul(Oe,$e),v=v+Math.imul(Ge,Fe)|0,o=o+Math.imul(Ge,Me)|0,o=o+Math.imul(nt,Fe)|0,x=x+Math.imul(nt,Me)|0,v=v+Math.imul(Ye,yt)|0,o=o+Math.imul(Ye,le)|0,o=o+Math.imul(We,yt)|0,x=x+Math.imul(We,le)|0,v=v+Math.imul(Ve,at)|0,o=o+Math.imul(Ve,Be)|0,o=o+Math.imul(et,at)|0,x=x+Math.imul(et,Be)|0,v=v+Math.imul(ue,tt)|0,o=o+Math.imul(ue,kt)|0,o=o+Math.imul(qe,tt)|0,x=x+Math.imul(qe,kt)|0,v=v+Math.imul(ee,pt)|0,o=o+Math.imul(ee,It)|0,o=o+Math.imul(oe,pt)|0,x=x+Math.imul(oe,It)|0,v=v+Math.imul(Z,Pt)|0,o=o+Math.imul(Z,Ot)|0,o=o+Math.imul(L,Pt)|0,x=x+Math.imul(L,Ot)|0,v=v+Math.imul(R,me)|0,o=o+Math.imul(R,ce)|0,o=o+Math.imul(H,me)|0,x=x+Math.imul(H,ce)|0;var kr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(kr>>>26)|0,kr&=67108863,v=Math.imul(dt,je),o=Math.imul(dt,$e),o=o+Math.imul(gt,je)|0,x=Math.imul(gt,$e),v=v+Math.imul(Le,Fe)|0,o=o+Math.imul(Le,Me)|0,o=o+Math.imul(Oe,Fe)|0,x=x+Math.imul(Oe,Me)|0,v=v+Math.imul(Ge,yt)|0,o=o+Math.imul(Ge,le)|0,o=o+Math.imul(nt,yt)|0,x=x+Math.imul(nt,le)|0,v=v+Math.imul(Ye,at)|0,o=o+Math.imul(Ye,Be)|0,o=o+Math.imul(We,at)|0,x=x+Math.imul(We,Be)|0,v=v+Math.imul(Ve,tt)|0,o=o+Math.imul(Ve,kt)|0,o=o+Math.imul(et,tt)|0,x=x+Math.imul(et,kt)|0,v=v+Math.imul(ue,pt)|0,o=o+Math.imul(ue,It)|0,o=o+Math.imul(qe,pt)|0,x=x+Math.imul(qe,It)|0,v=v+Math.imul(ee,Pt)|0,o=o+Math.imul(ee,Ot)|0,o=o+Math.imul(oe,Pt)|0,x=x+Math.imul(oe,Ot)|0,v=v+Math.imul(Z,me)|0,o=o+Math.imul(Z,ce)|0,o=o+Math.imul(L,me)|0,x=x+Math.imul(L,ce)|0,v=v+Math.imul(R,_e)|0,o=o+Math.imul(R,Re)|0,o=o+Math.imul(H,_e)|0,x=x+Math.imul(H,Re)|0;var vr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,v=Math.imul(xe,je),o=Math.imul(xe,$e),o=o+Math.imul(X,je)|0,x=Math.imul(X,$e),v=v+Math.imul(dt,Fe)|0,o=o+Math.imul(dt,Me)|0,o=o+Math.imul(gt,Fe)|0,x=x+Math.imul(gt,Me)|0,v=v+Math.imul(Le,yt)|0,o=o+Math.imul(Le,le)|0,o=o+Math.imul(Oe,yt)|0,x=x+Math.imul(Oe,le)|0,v=v+Math.imul(Ge,at)|0,o=o+Math.imul(Ge,Be)|0,o=o+Math.imul(nt,at)|0,x=x+Math.imul(nt,Be)|0,v=v+Math.imul(Ye,tt)|0,o=o+Math.imul(Ye,kt)|0,o=o+Math.imul(We,tt)|0,x=x+Math.imul(We,kt)|0,v=v+Math.imul(Ve,pt)|0,o=o+Math.imul(Ve,It)|0,o=o+Math.imul(et,pt)|0,x=x+Math.imul(et,It)|0,v=v+Math.imul(ue,Pt)|0,o=o+Math.imul(ue,Ot)|0,o=o+Math.imul(qe,Pt)|0,x=x+Math.imul(qe,Ot)|0,v=v+Math.imul(ee,me)|0,o=o+Math.imul(ee,ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,ce)|0,v=v+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(L,_e)|0,x=x+Math.imul(L,Re)|0,v=v+Math.imul(R,Ze)|0,o=o+Math.imul(R,ct)|0,o=o+Math.imul(H,Ze)|0,x=x+Math.imul(H,ct)|0;var Pr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,v=Math.imul(xe,Fe),o=Math.imul(xe,Me),o=o+Math.imul(X,Fe)|0,x=Math.imul(X,Me),v=v+Math.imul(dt,yt)|0,o=o+Math.imul(dt,le)|0,o=o+Math.imul(gt,yt)|0,x=x+Math.imul(gt,le)|0,v=v+Math.imul(Le,at)|0,o=o+Math.imul(Le,Be)|0,o=o+Math.imul(Oe,at)|0,x=x+Math.imul(Oe,Be)|0,v=v+Math.imul(Ge,tt)|0,o=o+Math.imul(Ge,kt)|0,o=o+Math.imul(nt,tt)|0,x=x+Math.imul(nt,kt)|0,v=v+Math.imul(Ye,pt)|0,o=o+Math.imul(Ye,It)|0,o=o+Math.imul(We,pt)|0,x=x+Math.imul(We,It)|0,v=v+Math.imul(Ve,Pt)|0,o=o+Math.imul(Ve,Ot)|0,o=o+Math.imul(et,Pt)|0,x=x+Math.imul(et,Ot)|0,v=v+Math.imul(ue,me)|0,o=o+Math.imul(ue,ce)|0,o=o+Math.imul(qe,me)|0,x=x+Math.imul(qe,ce)|0,v=v+Math.imul(ee,_e)|0,o=o+Math.imul(ee,Re)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Re)|0,v=v+Math.imul(Z,Ze)|0,o=o+Math.imul(Z,ct)|0,o=o+Math.imul(L,Ze)|0,x=x+Math.imul(L,ct)|0;var Tr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,v=Math.imul(xe,yt),o=Math.imul(xe,le),o=o+Math.imul(X,yt)|0,x=Math.imul(X,le),v=v+Math.imul(dt,at)|0,o=o+Math.imul(dt,Be)|0,o=o+Math.imul(gt,at)|0,x=x+Math.imul(gt,Be)|0,v=v+Math.imul(Le,tt)|0,o=o+Math.imul(Le,kt)|0,o=o+Math.imul(Oe,tt)|0,x=x+Math.imul(Oe,kt)|0,v=v+Math.imul(Ge,pt)|0,o=o+Math.imul(Ge,It)|0,o=o+Math.imul(nt,pt)|0,x=x+Math.imul(nt,It)|0,v=v+Math.imul(Ye,Pt)|0,o=o+Math.imul(Ye,Ot)|0,o=o+Math.imul(We,Pt)|0,x=x+Math.imul(We,Ot)|0,v=v+Math.imul(Ve,me)|0,o=o+Math.imul(Ve,ce)|0,o=o+Math.imul(et,me)|0,x=x+Math.imul(et,ce)|0,v=v+Math.imul(ue,_e)|0,o=o+Math.imul(ue,Re)|0,o=o+Math.imul(qe,_e)|0,x=x+Math.imul(qe,Re)|0,v=v+Math.imul(ee,Ze)|0,o=o+Math.imul(ee,ct)|0,o=o+Math.imul(oe,Ze)|0,x=x+Math.imul(oe,ct)|0;var br=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(br>>>26)|0,br&=67108863,v=Math.imul(xe,at),o=Math.imul(xe,Be),o=o+Math.imul(X,at)|0,x=Math.imul(X,Be),v=v+Math.imul(dt,tt)|0,o=o+Math.imul(dt,kt)|0,o=o+Math.imul(gt,tt)|0,x=x+Math.imul(gt,kt)|0,v=v+Math.imul(Le,pt)|0,o=o+Math.imul(Le,It)|0,o=o+Math.imul(Oe,pt)|0,x=x+Math.imul(Oe,It)|0,v=v+Math.imul(Ge,Pt)|0,o=o+Math.imul(Ge,Ot)|0,o=o+Math.imul(nt,Pt)|0,x=x+Math.imul(nt,Ot)|0,v=v+Math.imul(Ye,me)|0,o=o+Math.imul(Ye,ce)|0,o=o+Math.imul(We,me)|0,x=x+Math.imul(We,ce)|0,v=v+Math.imul(Ve,_e)|0,o=o+Math.imul(Ve,Re)|0,o=o+Math.imul(et,_e)|0,x=x+Math.imul(et,Re)|0,v=v+Math.imul(ue,Ze)|0,o=o+Math.imul(ue,ct)|0,o=o+Math.imul(qe,Ze)|0,x=x+Math.imul(qe,ct)|0;var Ar=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,v=Math.imul(xe,tt),o=Math.imul(xe,kt),o=o+Math.imul(X,tt)|0,x=Math.imul(X,kt),v=v+Math.imul(dt,pt)|0,o=o+Math.imul(dt,It)|0,o=o+Math.imul(gt,pt)|0,x=x+Math.imul(gt,It)|0,v=v+Math.imul(Le,Pt)|0,o=o+Math.imul(Le,Ot)|0,o=o+Math.imul(Oe,Pt)|0,x=x+Math.imul(Oe,Ot)|0,v=v+Math.imul(Ge,me)|0,o=o+Math.imul(Ge,ce)|0,o=o+Math.imul(nt,me)|0,x=x+Math.imul(nt,ce)|0,v=v+Math.imul(Ye,_e)|0,o=o+Math.imul(Ye,Re)|0,o=o+Math.imul(We,_e)|0,x=x+Math.imul(We,Re)|0,v=v+Math.imul(Ve,Ze)|0,o=o+Math.imul(Ve,ct)|0,o=o+Math.imul(et,Ze)|0,x=x+Math.imul(et,ct)|0;var gr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,v=Math.imul(xe,pt),o=Math.imul(xe,It),o=o+Math.imul(X,pt)|0,x=Math.imul(X,It),v=v+Math.imul(dt,Pt)|0,o=o+Math.imul(dt,Ot)|0,o=o+Math.imul(gt,Pt)|0,x=x+Math.imul(gt,Ot)|0,v=v+Math.imul(Le,me)|0,o=o+Math.imul(Le,ce)|0,o=o+Math.imul(Oe,me)|0,x=x+Math.imul(Oe,ce)|0,v=v+Math.imul(Ge,_e)|0,o=o+Math.imul(Ge,Re)|0,o=o+Math.imul(nt,_e)|0,x=x+Math.imul(nt,Re)|0,v=v+Math.imul(Ye,Ze)|0,o=o+Math.imul(Ye,ct)|0,o=o+Math.imul(We,Ze)|0,x=x+Math.imul(We,ct)|0;var dr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(dr>>>26)|0,dr&=67108863,v=Math.imul(xe,Pt),o=Math.imul(xe,Ot),o=o+Math.imul(X,Pt)|0,x=Math.imul(X,Ot),v=v+Math.imul(dt,me)|0,o=o+Math.imul(dt,ce)|0,o=o+Math.imul(gt,me)|0,x=x+Math.imul(gt,ce)|0,v=v+Math.imul(Le,_e)|0,o=o+Math.imul(Le,Re)|0,o=o+Math.imul(Oe,_e)|0,x=x+Math.imul(Oe,Re)|0,v=v+Math.imul(Ge,Ze)|0,o=o+Math.imul(Ge,ct)|0,o=o+Math.imul(nt,Ze)|0,x=x+Math.imul(nt,ct)|0;var lr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(lr>>>26)|0,lr&=67108863,v=Math.imul(xe,me),o=Math.imul(xe,ce),o=o+Math.imul(X,me)|0,x=Math.imul(X,ce),v=v+Math.imul(dt,_e)|0,o=o+Math.imul(dt,Re)|0,o=o+Math.imul(gt,_e)|0,x=x+Math.imul(gt,Re)|0,v=v+Math.imul(Le,Ze)|0,o=o+Math.imul(Le,ct)|0,o=o+Math.imul(Oe,Ze)|0,x=x+Math.imul(Oe,ct)|0;var Kt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(xe,_e),o=Math.imul(xe,Re),o=o+Math.imul(X,_e)|0,x=Math.imul(X,Re),v=v+Math.imul(dt,Ze)|0,o=o+Math.imul(dt,ct)|0,o=o+Math.imul(gt,Ze)|0,x=x+Math.imul(gt,ct)|0;var Bt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(xe,Ze),o=Math.imul(xe,ct),o=o+Math.imul(X,Ze)|0,x=Math.imul(X,ct);var Ft=(w+v|0)+((o&8191)<<13)|0;return w=(x+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,y[0]=Nt,y[1]=Ut,y[2]=Mr,y[3]=Xt,y[4]=Sr,y[5]=rr,y[6]=er,y[7]=kr,y[8]=vr,y[9]=Pr,y[10]=Tr,y[11]=br,y[12]=Ar,y[13]=gr,y[14]=dr,y[15]=lr,y[16]=Kt,y[17]=Bt,y[18]=Ft,w!==0&&(y[19]=w,b.length++),b};Math.imul||(z=$);function N(T,u,p){p.negative=u.negative^T.negative,p.length=T.length+u.length;for(var b=0,e=0,c=0;c<p.length-1;c++){var y=e;e=0;for(var w=b&67108863,v=Math.min(c,u.length-1),o=Math.max(0,c-T.length+1);o<=v;o++){var x=c-o,E=T.words[x]|0,R=u.words[o]|0,H=E*R,Y=H&67108863;y=y+(H/67108864|0)|0,Y=Y+w|0,w=Y&67108863,y=y+(Y>>>26)|0,e+=y>>>26,y&=67108863}p.words[c]=w,b=y,y=e}return b!==0?p.words[c]=b:p.length--,p.strip()}function F(T,u,p){var b=new U;return b.mulp(T,u,p)}h.prototype.mulTo=function(u,p){var b,e=this.length+u.length;return this.length===10&&u.length===10?b=z(this,u,p):e<63?b=$(this,u,p):e<1024?b=N(this,u,p):b=F(this,u,p),b};function U(T,u){this.x=T,this.y=u}U.prototype.makeRBT=function(u){for(var p=new Array(u),b=h.prototype._countBits(u)-1,e=0;e<u;e++)p[e]=this.revBin(e,b,u);return p},U.prototype.revBin=function(u,p,b){if(u===0||u===b-1)return u;for(var e=0,c=0;c<p;c++)e|=(u&1)<<p-c-1,u>>=1;return e},U.prototype.permute=function(u,p,b,e,c,y){for(var w=0;w<y;w++)e[w]=p[u[w]],c[w]=b[u[w]]},U.prototype.transform=function(u,p,b,e,c,y){this.permute(y,u,p,b,e,c);for(var w=1;w<c;w<<=1)for(var v=w<<1,o=Math.cos(2*Math.PI/v),x=Math.sin(2*Math.PI/v),E=0;E<c;E+=v)for(var R=o,H=x,Y=0;Y<w;Y++){var Z=b[E+Y],L=e[E+Y],D=b[E+Y+w],ee=e[E+Y+w],oe=R*D-H*ee;ee=R*ee+H*D,D=oe,b[E+Y]=Z+D,e[E+Y]=L+ee,b[E+Y+w]=Z-D,e[E+Y+w]=L-ee,Y!==v&&(oe=o*R-x*H,H=o*H+x*R,R=oe)}},U.prototype.guessLen13b=function(u,p){var b=Math.max(p,u)|1,e=b&1,c=0;for(b=b/2|0;b;b=b>>>1)c++;return 1<<c+1+e},U.prototype.conjugate=function(u,p,b){if(!(b<=1))for(var e=0;e<b/2;e++){var c=u[e];u[e]=u[b-e-1],u[b-e-1]=c,c=p[e],p[e]=-p[b-e-1],p[b-e-1]=-c}},U.prototype.normalize13b=function(u,p){for(var b=0,e=0;e<p/2;e++){var c=Math.round(u[2*e+1]/p)*8192+Math.round(u[2*e]/p)+b;u[e]=c&67108863,c<67108864?b=0:b=c/67108864|0}return u},U.prototype.convert13b=function(u,p,b,e){for(var c=0,y=0;y<p;y++)c=c+(u[y]|0),b[2*y]=c&8191,c=c>>>13,b[2*y+1]=c&8191,c=c>>>13;for(y=2*p;y<e;++y)b[y]=0;d(c===0),d((c&-8192)===0)},U.prototype.stub=function(u){for(var p=new Array(u),b=0;b<u;b++)p[b]=0;return p},U.prototype.mulp=function(u,p,b){var e=2*this.guessLen13b(u.length,p.length),c=this.makeRBT(e),y=this.stub(e),w=new Array(e),v=new Array(e),o=new Array(e),x=new Array(e),E=new Array(e),R=new Array(e),H=b.words;H.length=e,this.convert13b(u.words,u.length,w,e),this.convert13b(p.words,p.length,x,e),this.transform(w,y,v,o,e,c),this.transform(x,y,E,R,e,c);for(var Y=0;Y<e;Y++){var Z=v[Y]*E[Y]-o[Y]*R[Y];o[Y]=v[Y]*R[Y]+o[Y]*E[Y],v[Y]=Z}return this.conjugate(v,o,e),this.transform(v,o,H,y,e,c),this.conjugate(H,y,e),this.normalize13b(H,e),b.negative=u.negative^p.negative,b.length=u.length+p.length,b.strip()},h.prototype.mul=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),this.mulTo(u,p)},h.prototype.mulf=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),F(this,u,p)},h.prototype.imul=function(u){return this.clone().mulTo(u,this)},h.prototype.imuln=function(u){d(typeof u=="number"),d(u<67108864);for(var p=0,b=0;b<this.length;b++){var e=(this.words[b]|0)*u,c=(e&67108863)+(p&67108863);p>>=26,p+=e/67108864|0,p+=c>>>26,this.words[b]=c&67108863}return p!==0&&(this.words[b]=p,this.length++),this},h.prototype.muln=function(u){return this.clone().imuln(u)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(u){var p=P(u);if(p.length===0)return new h(1);for(var b=this,e=0;e<p.length&&p[e]===0;e++,b=b.sqr());if(++e<p.length)for(var c=b.sqr();e<p.length;e++,c=c.sqr())p[e]!==0&&(b=b.mul(c));return b},h.prototype.iushln=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=67108863>>>26-p<<26-p,c;if(p!==0){var y=0;for(c=0;c<this.length;c++){var w=this.words[c]&e,v=(this.words[c]|0)-w<<p;this.words[c]=v|y,y=w>>>26-p}y&&(this.words[c]=y,this.length++)}if(b!==0){for(c=this.length-1;c>=0;c--)this.words[c+b]=this.words[c];for(c=0;c<b;c++)this.words[c]=0;this.length+=b}return this.strip()},h.prototype.ishln=function(u){return d(this.negative===0),this.iushln(u)},h.prototype.iushrn=function(u,p,b){d(typeof u=="number"&&u>=0);var e;p?e=(p-p%26)/26:e=0;var c=u%26,y=Math.min((u-c)/26,this.length),w=67108863^67108863>>>c<<c,v=b;if(e-=y,e=Math.max(0,e),v){for(var o=0;o<y;o++)v.words[o]=this.words[o];v.length=y}if(y!==0)if(this.length>y)for(this.length-=y,o=0;o<this.length;o++)this.words[o]=this.words[o+y];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=e);o--){var E=this.words[o]|0;this.words[o]=x<<26-c|E>>>c,x=E&w}return v&&x!==0&&(v.words[v.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(u,p,b){return d(this.negative===0),this.iushrn(u,p,b)},h.prototype.shln=function(u){return this.clone().ishln(u)},h.prototype.ushln=function(u){return this.clone().iushln(u)},h.prototype.shrn=function(u){return this.clone().ishrn(u)},h.prototype.ushrn=function(u){return this.clone().iushrn(u)},h.prototype.testn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return!1;var c=this.words[b];return!!(c&e)},h.prototype.imaskn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26;if(d(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(p!==0&&b++,this.length=Math.min(b,this.length),p!==0){var e=67108863^67108863>>>p<<p;this.words[this.length-1]&=e}return this.strip()},h.prototype.maskn=function(u){return this.clone().imaskn(u)},h.prototype.iaddn=function(u){return d(typeof u=="number"),d(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},h.prototype._iaddn=function(u){this.words[0]+=u;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},h.prototype.isubn=function(u){if(d(typeof u=="number"),d(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},h.prototype.addn=function(u){return this.clone().iaddn(u)},h.prototype.subn=function(u){return this.clone().isubn(u)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(u,p,b){var e=u.length+b,c;this._expand(e);var y,w=0;for(c=0;c<u.length;c++){y=(this.words[c+b]|0)+w;var v=(u.words[c]|0)*p;y-=v&67108863,w=(y>>26)-(v/67108864|0),this.words[c+b]=y&67108863}for(;c<this.length-b;c++)y=(this.words[c+b]|0)+w,w=y>>26,this.words[c+b]=y&67108863;if(w===0)return this.strip();for(d(w===-1),w=0,c=0;c<this.length;c++)y=-(this.words[c]|0)+w,w=y>>26,this.words[c]=y&67108863;return this.negative=1,this.strip()},h.prototype._wordDiv=function(u,p){var b=this.length-u.length,e=this.clone(),c=u,y=c.words[c.length-1]|0,w=this._countBits(y);b=26-w,b!==0&&(c=c.ushln(b),e.iushln(b),y=c.words[c.length-1]|0);var v=e.length-c.length,o;if(p!=="mod"){o=new h(null),o.length=v+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var E=e.clone()._ishlnsubmul(c,1,v);E.negative===0&&(e=E,o&&(o.words[v]=1));for(var R=v-1;R>=0;R--){var H=(e.words[c.length+R]|0)*67108864+(e.words[c.length+R-1]|0);for(H=Math.min(H/y|0,67108863),e._ishlnsubmul(c,H,R);e.negative!==0;)H--,e.negative=0,e._ishlnsubmul(c,1,R),e.isZero()||(e.negative^=1);o&&(o.words[R]=H)}return o&&o.strip(),e.strip(),p!=="div"&&b!==0&&e.iushrn(b),{div:o||null,mod:e}},h.prototype.divmod=function(u,p,b){if(d(!u.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var e,c,y;return this.negative!==0&&u.negative===0?(y=this.neg().divmod(u,p),p!=="mod"&&(e=y.div.neg()),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.iadd(u)),{div:e,mod:c}):this.negative===0&&u.negative!==0?(y=this.divmod(u.neg(),p),p!=="mod"&&(e=y.div.neg()),{div:e,mod:y.mod}):this.negative&u.negative?(y=this.neg().divmod(u.neg(),p),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.isub(u)),{div:y.div,mod:c}):u.length>this.length||this.cmp(u)<0?{div:new h(0),mod:this}:u.length===1?p==="div"?{div:this.divn(u.words[0]),mod:null}:p==="mod"?{div:null,mod:new h(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new h(this.modn(u.words[0]))}:this._wordDiv(u,p)},h.prototype.div=function(u){return this.divmod(u,"div",!1).div},h.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},h.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},h.prototype.divRound=function(u){var p=this.divmod(u);if(p.mod.isZero())return p.div;var b=p.div.negative!==0?p.mod.isub(u):p.mod,e=u.ushrn(1),c=u.andln(1),y=b.cmp(e);return y<0||c===1&&y===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},h.prototype.modn=function(u){d(u<=67108863);for(var p=(1<<26)%u,b=0,e=this.length-1;e>=0;e--)b=(p*b+(this.words[e]|0))%u;return b},h.prototype.idivn=function(u){d(u<=67108863);for(var p=0,b=this.length-1;b>=0;b--){var e=(this.words[b]|0)+p*67108864;this.words[b]=e/u|0,p=e%u}return this.strip()},h.prototype.divn=function(u){return this.clone().idivn(u)},h.prototype.egcd=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=new h(0),w=new h(1),v=0;p.isEven()&&b.isEven();)p.iushrn(1),b.iushrn(1),++v;for(var o=b.clone(),x=p.clone();!p.isZero();){for(var E=0,R=1;!(p.words[0]&R)&&E<26;++E,R<<=1);if(E>0)for(p.iushrn(E);E-- >0;)(e.isOdd()||c.isOdd())&&(e.iadd(o),c.isub(x)),e.iushrn(1),c.iushrn(1);for(var H=0,Y=1;!(b.words[0]&Y)&&H<26;++H,Y<<=1);if(H>0)for(b.iushrn(H);H-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(o),w.isub(x)),y.iushrn(1),w.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(y),c.isub(w)):(b.isub(p),y.isub(e),w.isub(c))}return{a:y,b:w,gcd:b.iushln(v)}},h.prototype._invmp=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=b.clone();p.cmpn(1)>0&&b.cmpn(1)>0;){for(var w=0,v=1;!(p.words[0]&v)&&w<26;++w,v<<=1);if(w>0)for(p.iushrn(w);w-- >0;)e.isOdd()&&e.iadd(y),e.iushrn(1);for(var o=0,x=1;!(b.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(b.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(y),c.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(c)):(b.isub(p),c.isub(e))}var E;return p.cmpn(1)===0?E=e:E=c,E.cmpn(0)<0&&E.iadd(u),E},h.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var p=this.clone(),b=u.clone();p.negative=0,b.negative=0;for(var e=0;p.isEven()&&b.isEven();e++)p.iushrn(1),b.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;b.isEven();)b.iushrn(1);var c=p.cmp(b);if(c<0){var y=p;p=b,b=y}else if(c===0||b.cmpn(1)===0)break;p.isub(b)}while(!0);return b.iushln(e)},h.prototype.invm=function(u){return this.egcd(u).a.umod(u)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(u){return this.words[0]&u},h.prototype.bincn=function(u){d(typeof u=="number");var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return this._expand(b+1),this.words[b]|=e,this;for(var c=e,y=b;c!==0&&y<this.length;y++){var w=this.words[y]|0;w+=c,c=w>>>26,w&=67108863,this.words[y]=w}return c!==0&&(this.words[y]=c,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(u){var p=u<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var b;if(this.length>1)b=1;else{p&&(u=-u),d(u<=67108863,"Number is too big");var e=this.words[0]|0;b=e===u?0:e<u?-1:1}return this.negative!==0?-b|0:b},h.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var p=this.ucmp(u);return this.negative!==0?-p|0:p},h.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var p=0,b=this.length-1;b>=0;b--){var e=this.words[b]|0,c=u.words[b]|0;if(e!==c){e<c?p=-1:e>c&&(p=1);break}}return p},h.prototype.gtn=function(u){return this.cmpn(u)===1},h.prototype.gt=function(u){return this.cmp(u)===1},h.prototype.gten=function(u){return this.cmpn(u)>=0},h.prototype.gte=function(u){return this.cmp(u)>=0},h.prototype.ltn=function(u){return this.cmpn(u)===-1},h.prototype.lt=function(u){return this.cmp(u)===-1},h.prototype.lten=function(u){return this.cmpn(u)<=0},h.prototype.lte=function(u){return this.cmp(u)<=0},h.prototype.eqn=function(u){return this.cmpn(u)===0},h.prototype.eq=function(u){return this.cmp(u)===0},h.red=function(u){return new he(u)},h.prototype.toRed=function(u){return d(!this.red,"Already a number in reduction context"),d(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},h.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(u){return this.red=u,this},h.prototype.forceRed=function(u){return d(!this.red,"Already a number in reduction context"),this._forceRed(u)},h.prototype.redAdd=function(u){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},h.prototype.redIAdd=function(u){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},h.prototype.redSub=function(u){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},h.prototype.redISub=function(u){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},h.prototype.redShl=function(u){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},h.prototype.redMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},h.prototype.redIMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},h.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(u){return d(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var J={k256:null,p224:null,p192:null,p25519:null};function te(T,u){this.name=T,this.p=new h(u,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}te.prototype._tmp=function(){var u=new h(null);return u.words=new Array(Math.ceil(this.n/13)),u},te.prototype.ireduce=function(u){var p=u,b;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),b=p.bitLength();while(b>this.n);var e=b<this.n?-1:p.ucmp(this.p);return e===0?(p.words[0]=0,p.length=1):e>0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},te.prototype.split=function(u,p){u.iushrn(this.n,0,p)},te.prototype.imulK=function(u){return u.imul(this.k)};function se(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(se,te),se.prototype.split=function(u,p){for(var b=4194303,e=Math.min(u.length,9),c=0;c<e;c++)p.words[c]=u.words[c];if(p.length=e,u.length<=9){u.words[0]=0,u.length=1;return}var y=u.words[9];for(p.words[p.length++]=y&b,c=10;c<u.length;c++){var w=u.words[c]|0;u.words[c-10]=(w&b)<<4|y>>>22,y=w}y>>>=22,u.words[c-10]=y,y===0&&u.length>10?u.length-=10:u.length-=9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var p=0,b=0;b<u.length;b++){var e=u.words[b]|0;p+=e*977,u.words[b]=p&67108863,p=e*64+(p/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function de(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(de,te);function Q(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(Q,te);function ve(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ve,te),ve.prototype.imulK=function(u){for(var p=0,b=0;b<u.length;b++){var e=(u.words[b]|0)*19+p,c=e&67108863;e>>>=26,u.words[b]=c,p=e}return p!==0&&(u.words[u.length++]=p),u},h._prime=function(u){if(J[u])return J[u];var p;if(u==="k256")p=new se;else if(u==="p224")p=new de;else if(u==="p192")p=new Q;else if(u==="p25519")p=new ve;else throw new Error("Unknown prime "+u);return J[u]=p,p};function he(T){if(typeof T=="string"){var u=h._prime(T);this.m=u.p,this.prime=u}else d(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}he.prototype._verify1=function(u){d(u.negative===0,"red works only with positives"),d(u.red,"red works only with red numbers")},he.prototype._verify2=function(u,p){d((u.negative|p.negative)===0,"red works only with positives"),d(u.red&&u.red===p.red,"red works only with red numbers")},he.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},he.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},he.prototype.add=function(u,p){this._verify2(u,p);var b=u.add(p);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},he.prototype.iadd=function(u,p){this._verify2(u,p);var b=u.iadd(p);return b.cmp(this.m)>=0&&b.isub(this.m),b},he.prototype.sub=function(u,p){this._verify2(u,p);var b=u.sub(p);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},he.prototype.isub=function(u,p){this._verify2(u,p);var b=u.isub(p);return b.cmpn(0)<0&&b.iadd(this.m),b},he.prototype.shl=function(u,p){return this._verify1(u),this.imod(u.ushln(p))},he.prototype.imul=function(u,p){return this._verify2(u,p),this.imod(u.imul(p))},he.prototype.mul=function(u,p){return this._verify2(u,p),this.imod(u.mul(p))},he.prototype.isqr=function(u){return this.imul(u,u.clone())},he.prototype.sqr=function(u){return this.mul(u,u)},he.prototype.sqrt=function(u){if(u.isZero())return u.clone();var p=this.m.andln(3);if(d(p%2===1),p===3){var b=this.m.add(new h(1)).iushrn(2);return this.pow(u,b)}for(var e=this.m.subn(1),c=0;!e.isZero()&&e.andln(1)===0;)c++,e.iushrn(1);d(!e.isZero());var y=new h(1).toRed(this),w=y.redNeg(),v=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new h(2*o*o).toRed(this);this.pow(o,v).cmp(w)!==0;)o.redIAdd(w);for(var x=this.pow(o,e),E=this.pow(u,e.addn(1).iushrn(1)),R=this.pow(u,e),H=c;R.cmp(y)!==0;){for(var Y=R,Z=0;Y.cmp(y)!==0;Z++)Y=Y.redSqr();d(Z<H);var L=this.pow(x,new h(1).iushln(H-Z-1));E=E.redMul(L),x=L.redSqr(),R=R.redMul(x),H=Z}return E},he.prototype.invm=function(u){var p=u._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},he.prototype.pow=function(u,p){if(p.isZero())return new h(1).toRed(this);if(p.cmpn(1)===0)return u.clone();var b=4,e=new Array(1<<b);e[0]=new h(1).toRed(this),e[1]=u;for(var c=2;c<e.length;c++)e[c]=this.mul(e[c-1],u);var y=e[0],w=0,v=0,o=p.bitLength()%26;for(o===0&&(o=26),c=p.length-1;c>=0;c--){for(var x=p.words[c],E=o-1;E>=0;E--){var R=x>>E&1;if(y!==e[0]&&(y=this.sqr(y)),R===0&&w===0){v=0;continue}w<<=1,w|=R,v++,!(v!==b&&(c!==0||E!==0))&&(y=this.mul(y,e[w]),v=0,w=0)}o=26}return y},he.prototype.convertTo=function(u){var p=u.umod(this.m);return p===u?p.clone():p},he.prototype.convertFrom=function(u){var p=u.clone();return p.red=null,p},h.mont=function(u){return new ke(u)};function ke(T){he.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(ke,he),ke.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},ke.prototype.convertFrom=function(u){var p=this.imod(u.mul(this.rinv));return p.red=null,p},ke.prototype.imul=function(u,p){if(u.isZero()||p.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.mul=function(u,p){if(u.isZero()||p.isZero())return new h(0)._forceRed(this);var b=u.mul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.invm=function(u){var p=this.imod(u._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,commonjsGlobal)}(bn$6);var bnExports$6=bn$6.exports,bn$5={exports:{}};bn$5.exports,function(t){(function(n,l){function d(T,u){if(!T)throw new Error(u||"Assertion failed")}function m(T,u){T.super_=u;var p=function(){};p.prototype=u.prototype,T.prototype=new p,T.prototype.constructor=T}function h(T,u,p){if(h.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(p=u,u=10),this._init(T||0,u||10,p||"be"))}typeof n=="object"?n.exports=h:l.BN=h,h.BN=h,h.wordSize=26;var S;try{typeof window<"u"&&typeof window.Buffer<"u"?S=window.Buffer:S=require$$0$3.Buffer}catch{}h.isBN=function(u){return u instanceof h?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===h.wordSize&&Array.isArray(u.words)},h.max=function(u,p){return u.cmp(p)>0?u:p},h.min=function(u,p){return u.cmp(p)<0?u:p},h.prototype._init=function(u,p,b){if(typeof u=="number")return this._initNumber(u,p,b);if(typeof u=="object")return this._initArray(u,p,b);p==="hex"&&(p=16),d(p===(p|0)&&p>=2&&p<=36),u=u.toString().replace(/\s+/g,"");var e=0;u[0]==="-"&&(e++,this.negative=1),e<u.length&&(p===16?this._parseHex(u,e,b):(this._parseBase(u,p,e),b==="le"&&this._initArray(this.toArray(),p,b)))},h.prototype._initNumber=function(u,p,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(d(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),p,b)},h.prototype._initArray=function(u,p,b){if(d(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c,y,w=0;if(b==="be")for(e=u.length-1,c=0;e>=0;e-=3)y=u[e]|u[e-1]<<8|u[e-2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);else if(b==="le")for(e=0,c=0;e<u.length;e+=3)y=u[e]|u[e+1]<<8|u[e+2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);return this.strip()};function k(T,u){var p=T.charCodeAt(u);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function A(T,u,p){var b=k(T,p);return p-1>=u&&(b|=k(T,p-1)<<4),b}h.prototype._parseHex=function(u,p,b){this.length=Math.ceil((u.length-p)/6),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c=0,y=0,w;if(b==="be")for(e=u.length-1;e>=p;e-=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8;else{var v=u.length-p;for(e=v%2===0?p+1:p;e<u.length;e+=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8}this.strip()};function B(T,u,p,b){for(var e=0,c=Math.min(T.length,p),y=u;y<c;y++){var w=T.charCodeAt(y)-48;e*=b,w>=49?e+=w-49+10:w>=17?e+=w-17+10:e+=w}return e}h.prototype._parseBase=function(u,p,b){this.words=[0],this.length=1;for(var e=0,c=1;c<=67108863;c*=p)e++;e--,c=c/p|0;for(var y=u.length-b,w=y%e,v=Math.min(y,y-w)+b,o=0,x=b;x<v;x+=e)o=B(u,x,x+e,p),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(w!==0){var E=1;for(o=B(u,x,u.length,p),x=0;x<w;x++)E*=p;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},h.prototype.copy=function(u){u.words=new Array(this.length);for(var p=0;p<this.length;p++)u.words[p]=this.words[p];u.length=this.length,u.negative=this.negative,u.red=this.red},h.prototype.clone=function(){var u=new h(null);return this.copy(u),u},h.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(u,p){u=u||10,p=p|0||1;var b;if(u===16||u==="hex"){b="";for(var e=0,c=0,y=0;y<this.length;y++){var w=this.words[y],v=((w<<e|c)&16777215).toString(16);c=w>>>24-e&16777215,c!==0||y!==this.length-1?b=M[6-v.length]+v+b:b=v+b,e+=2,e>=26&&(e-=26,y--)}for(c!==0&&(b=c.toString(16)+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var o=j[u],x=I[u];b="";var E=this.clone();for(E.negative=0;!E.isZero();){var R=E.modn(x).toString(u);E=E.idivn(x),E.isZero()?b=R+b:b=M[o-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}d(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(u,p){return d(typeof S<"u"),this.toArrayLike(S,u,p)},h.prototype.toArray=function(u,p){return this.toArrayLike(Array,u,p)},h.prototype.toArrayLike=function(u,p,b){var e=this.byteLength(),c=b||Math.max(1,e);d(e<=c,"byte array longer than desired length"),d(c>0,"Requested array length <= 0"),this.strip();var y=p==="le",w=new u(c),v,o,x=this.clone();if(y){for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[o]=v;for(;o<c;o++)w[o]=0}else{for(o=0;o<c-e;o++)w[o]=0;for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[c-o-1]=v}return w},Math.clz32?h.prototype._countBits=function(u){return 32-Math.clz32(u)}:h.prototype._countBits=function(u){var p=u,b=0;return p>=4096&&(b+=13,p>>>=13),p>=64&&(b+=7,p>>>=7),p>=8&&(b+=4,p>>>=4),p>=2&&(b+=2,p>>>=2),b+p},h.prototype._zeroBits=function(u){if(u===0)return 26;var p=u,b=0;return p&8191||(b+=13,p>>>=13),p&127||(b+=7,p>>>=7),p&15||(b+=4,p>>>=4),p&3||(b+=2,p>>>=2),p&1||b++,b},h.prototype.bitLength=function(){var u=this.words[this.length-1],p=this._countBits(u);return(this.length-1)*26+p};function P(T){for(var u=new Array(T.bitLength()),p=0;p<u.length;p++){var b=p/26|0,e=p%26;u[p]=(T.words[b]&1<<e)>>>e}return u}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,p=0;p<this.length;p++){var b=this._zeroBits(this.words[p]);if(u+=b,b!==26)break}return u},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},h.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return this.negative!==0},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var p=0;p<u.length;p++)this.words[p]=this.words[p]|u.words[p];return this.strip()},h.prototype.ior=function(u){return d((this.negative|u.negative)===0),this.iuor(u)},h.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},h.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},h.prototype.iuand=function(u){var p;this.length>u.length?p=u:p=this;for(var b=0;b<p.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=p.length,this.strip()},h.prototype.iand=function(u){return d((this.negative|u.negative)===0),this.iuand(u)},h.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},h.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},h.prototype.iuxor=function(u){var p,b;this.length>u.length?(p=this,b=u):(p=u,b=this);for(var e=0;e<b.length;e++)this.words[e]=p.words[e]^b.words[e];if(this!==p)for(;e<p.length;e++)this.words[e]=p.words[e];return this.length=p.length,this.strip()},h.prototype.ixor=function(u){return d((this.negative|u.negative)===0),this.iuxor(u)},h.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},h.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},h.prototype.inotn=function(u){d(typeof u=="number"&&u>=0);var p=Math.ceil(u/26)|0,b=u%26;this._expand(p),b>0&&p--;for(var e=0;e<p;e++)this.words[e]=~this.words[e]&67108863;return b>0&&(this.words[e]=~this.words[e]&67108863>>26-b),this.strip()},h.prototype.notn=function(u){return this.clone().inotn(u)},h.prototype.setn=function(u,p){d(typeof u=="number"&&u>=0);var b=u/26|0,e=u%26;return this._expand(b+1),p?this.words[b]=this.words[b]|1<<e:this.words[b]=this.words[b]&~(1<<e),this.strip()},h.prototype.iadd=function(u){var p;if(this.negative!==0&&u.negative===0)return this.negative=0,p=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,p=this.isub(u),u.negative=1,p._normSign();var b,e;this.length>u.length?(b=this,e=u):(b=u,e=this);for(var c=0,y=0;y<e.length;y++)p=(b.words[y]|0)+(e.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;for(;c!==0&&y<b.length;y++)p=(b.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;if(this.length=b.length,c!==0)this.words[this.length]=c,this.length++;else if(b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this},h.prototype.add=function(u){var p;return u.negative!==0&&this.negative===0?(u.negative=0,p=this.sub(u),u.negative^=1,p):u.negative===0&&this.negative!==0?(this.negative=0,p=u.sub(this),this.negative=1,p):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},h.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var p=this.iadd(u);return u.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var e,c;b>0?(e=this,c=u):(e=u,c=this);for(var y=0,w=0;w<c.length;w++)p=(e.words[w]|0)-(c.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;for(;y!==0&&w<e.length;w++)p=(e.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;if(y===0&&w<e.length&&e!==this)for(;w<e.length;w++)this.words[w]=e.words[w];return this.length=Math.max(this.length,w),e!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(u){return this.clone().isub(u)};function $(T,u,p){p.negative=u.negative^T.negative;var b=T.length+u.length|0;p.length=b,b=b-1|0;var e=T.words[0]|0,c=u.words[0]|0,y=e*c,w=y&67108863,v=y/67108864|0;p.words[0]=w;for(var o=1;o<b;o++){for(var x=v>>>26,E=v&67108863,R=Math.min(o,u.length-1),H=Math.max(0,o-T.length+1);H<=R;H++){var Y=o-H|0;e=T.words[Y]|0,c=u.words[H]|0,y=e*c+E,x+=y/67108864|0,E=y&67108863}p.words[o]=E|0,v=x|0}return v!==0?p.words[o]=v|0:p.length--,p.strip()}var z=function(u,p,b){var e=u.words,c=p.words,y=b.words,w=0,v,o,x,E=e[0]|0,R=E&8191,H=E>>>13,Y=e[1]|0,Z=Y&8191,L=Y>>>13,D=e[2]|0,ee=D&8191,oe=D>>>13,fe=e[3]|0,ue=fe&8191,qe=fe>>>13,rt=e[4]|0,Ve=rt&8191,et=rt>>>13,mt=e[5]|0,Ye=mt&8191,We=mt>>>13,Xe=e[6]|0,Ge=Xe&8191,nt=Xe>>>13,Et=e[7]|0,Le=Et&8191,Oe=Et>>>13,$t=e[8]|0,dt=$t&8191,gt=$t>>>13,Lt=e[9]|0,xe=Lt&8191,X=Lt>>>13,pe=c[0]|0,je=pe&8191,$e=pe>>>13,He=c[1]|0,Fe=He&8191,Me=He>>>13,Rt=c[2]|0,yt=Rt&8191,le=Rt>>>13,wt=c[3]|0,at=wt&8191,Be=wt>>>13,ot=c[4]|0,tt=ot&8191,kt=ot>>>13,Yt=c[5]|0,pt=Yt&8191,It=Yt>>>13,Fr=c[6]|0,Pt=Fr&8191,Ot=Fr>>>13,Te=c[7]|0,me=Te&8191,ce=Te>>>13,ne=c[8]|0,_e=ne&8191,Re=ne>>>13,lt=c[9]|0,Ze=lt&8191,ct=lt>>>13;b.negative=u.negative^p.negative,b.length=19,v=Math.imul(R,je),o=Math.imul(R,$e),o=o+Math.imul(H,je)|0,x=Math.imul(H,$e);var Nt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,v=Math.imul(Z,je),o=Math.imul(Z,$e),o=o+Math.imul(L,je)|0,x=Math.imul(L,$e),v=v+Math.imul(R,Fe)|0,o=o+Math.imul(R,Me)|0,o=o+Math.imul(H,Fe)|0,x=x+Math.imul(H,Me)|0;var Ut=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,v=Math.imul(ee,je),o=Math.imul(ee,$e),o=o+Math.imul(oe,je)|0,x=Math.imul(oe,$e),v=v+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(L,Fe)|0,x=x+Math.imul(L,Me)|0,v=v+Math.imul(R,yt)|0,o=o+Math.imul(R,le)|0,o=o+Math.imul(H,yt)|0,x=x+Math.imul(H,le)|0;var Mr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,v=Math.imul(ue,je),o=Math.imul(ue,$e),o=o+Math.imul(qe,je)|0,x=Math.imul(qe,$e),v=v+Math.imul(ee,Fe)|0,o=o+Math.imul(ee,Me)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Me)|0,v=v+Math.imul(Z,yt)|0,o=o+Math.imul(Z,le)|0,o=o+Math.imul(L,yt)|0,x=x+Math.imul(L,le)|0,v=v+Math.imul(R,at)|0,o=o+Math.imul(R,Be)|0,o=o+Math.imul(H,at)|0,x=x+Math.imul(H,Be)|0;var Xt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(Ve,je),o=Math.imul(Ve,$e),o=o+Math.imul(et,je)|0,x=Math.imul(et,$e),v=v+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Me)|0,o=o+Math.imul(qe,Fe)|0,x=x+Math.imul(qe,Me)|0,v=v+Math.imul(ee,yt)|0,o=o+Math.imul(ee,le)|0,o=o+Math.imul(oe,yt)|0,x=x+Math.imul(oe,le)|0,v=v+Math.imul(Z,at)|0,o=o+Math.imul(Z,Be)|0,o=o+Math.imul(L,at)|0,x=x+Math.imul(L,Be)|0,v=v+Math.imul(R,tt)|0,o=o+Math.imul(R,kt)|0,o=o+Math.imul(H,tt)|0,x=x+Math.imul(H,kt)|0;var Sr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,v=Math.imul(Ye,je),o=Math.imul(Ye,$e),o=o+Math.imul(We,je)|0,x=Math.imul(We,$e),v=v+Math.imul(Ve,Fe)|0,o=o+Math.imul(Ve,Me)|0,o=o+Math.imul(et,Fe)|0,x=x+Math.imul(et,Me)|0,v=v+Math.imul(ue,yt)|0,o=o+Math.imul(ue,le)|0,o=o+Math.imul(qe,yt)|0,x=x+Math.imul(qe,le)|0,v=v+Math.imul(ee,at)|0,o=o+Math.imul(ee,Be)|0,o=o+Math.imul(oe,at)|0,x=x+Math.imul(oe,Be)|0,v=v+Math.imul(Z,tt)|0,o=o+Math.imul(Z,kt)|0,o=o+Math.imul(L,tt)|0,x=x+Math.imul(L,kt)|0,v=v+Math.imul(R,pt)|0,o=o+Math.imul(R,It)|0,o=o+Math.imul(H,pt)|0,x=x+Math.imul(H,It)|0;var rr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(Ge,je),o=Math.imul(Ge,$e),o=o+Math.imul(nt,je)|0,x=Math.imul(nt,$e),v=v+Math.imul(Ye,Fe)|0,o=o+Math.imul(Ye,Me)|0,o=o+Math.imul(We,Fe)|0,x=x+Math.imul(We,Me)|0,v=v+Math.imul(Ve,yt)|0,o=o+Math.imul(Ve,le)|0,o=o+Math.imul(et,yt)|0,x=x+Math.imul(et,le)|0,v=v+Math.imul(ue,at)|0,o=o+Math.imul(ue,Be)|0,o=o+Math.imul(qe,at)|0,x=x+Math.imul(qe,Be)|0,v=v+Math.imul(ee,tt)|0,o=o+Math.imul(ee,kt)|0,o=o+Math.imul(oe,tt)|0,x=x+Math.imul(oe,kt)|0,v=v+Math.imul(Z,pt)|0,o=o+Math.imul(Z,It)|0,o=o+Math.imul(L,pt)|0,x=x+Math.imul(L,It)|0,v=v+Math.imul(R,Pt)|0,o=o+Math.imul(R,Ot)|0,o=o+Math.imul(H,Pt)|0,x=x+Math.imul(H,Ot)|0;var er=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(Le,je),o=Math.imul(Le,$e),o=o+Math.imul(Oe,je)|0,x=Math.imul(Oe,$e),v=v+Math.imul(Ge,Fe)|0,o=o+Math.imul(Ge,Me)|0,o=o+Math.imul(nt,Fe)|0,x=x+Math.imul(nt,Me)|0,v=v+Math.imul(Ye,yt)|0,o=o+Math.imul(Ye,le)|0,o=o+Math.imul(We,yt)|0,x=x+Math.imul(We,le)|0,v=v+Math.imul(Ve,at)|0,o=o+Math.imul(Ve,Be)|0,o=o+Math.imul(et,at)|0,x=x+Math.imul(et,Be)|0,v=v+Math.imul(ue,tt)|0,o=o+Math.imul(ue,kt)|0,o=o+Math.imul(qe,tt)|0,x=x+Math.imul(qe,kt)|0,v=v+Math.imul(ee,pt)|0,o=o+Math.imul(ee,It)|0,o=o+Math.imul(oe,pt)|0,x=x+Math.imul(oe,It)|0,v=v+Math.imul(Z,Pt)|0,o=o+Math.imul(Z,Ot)|0,o=o+Math.imul(L,Pt)|0,x=x+Math.imul(L,Ot)|0,v=v+Math.imul(R,me)|0,o=o+Math.imul(R,ce)|0,o=o+Math.imul(H,me)|0,x=x+Math.imul(H,ce)|0;var kr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(kr>>>26)|0,kr&=67108863,v=Math.imul(dt,je),o=Math.imul(dt,$e),o=o+Math.imul(gt,je)|0,x=Math.imul(gt,$e),v=v+Math.imul(Le,Fe)|0,o=o+Math.imul(Le,Me)|0,o=o+Math.imul(Oe,Fe)|0,x=x+Math.imul(Oe,Me)|0,v=v+Math.imul(Ge,yt)|0,o=o+Math.imul(Ge,le)|0,o=o+Math.imul(nt,yt)|0,x=x+Math.imul(nt,le)|0,v=v+Math.imul(Ye,at)|0,o=o+Math.imul(Ye,Be)|0,o=o+Math.imul(We,at)|0,x=x+Math.imul(We,Be)|0,v=v+Math.imul(Ve,tt)|0,o=o+Math.imul(Ve,kt)|0,o=o+Math.imul(et,tt)|0,x=x+Math.imul(et,kt)|0,v=v+Math.imul(ue,pt)|0,o=o+Math.imul(ue,It)|0,o=o+Math.imul(qe,pt)|0,x=x+Math.imul(qe,It)|0,v=v+Math.imul(ee,Pt)|0,o=o+Math.imul(ee,Ot)|0,o=o+Math.imul(oe,Pt)|0,x=x+Math.imul(oe,Ot)|0,v=v+Math.imul(Z,me)|0,o=o+Math.imul(Z,ce)|0,o=o+Math.imul(L,me)|0,x=x+Math.imul(L,ce)|0,v=v+Math.imul(R,_e)|0,o=o+Math.imul(R,Re)|0,o=o+Math.imul(H,_e)|0,x=x+Math.imul(H,Re)|0;var vr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,v=Math.imul(xe,je),o=Math.imul(xe,$e),o=o+Math.imul(X,je)|0,x=Math.imul(X,$e),v=v+Math.imul(dt,Fe)|0,o=o+Math.imul(dt,Me)|0,o=o+Math.imul(gt,Fe)|0,x=x+Math.imul(gt,Me)|0,v=v+Math.imul(Le,yt)|0,o=o+Math.imul(Le,le)|0,o=o+Math.imul(Oe,yt)|0,x=x+Math.imul(Oe,le)|0,v=v+Math.imul(Ge,at)|0,o=o+Math.imul(Ge,Be)|0,o=o+Math.imul(nt,at)|0,x=x+Math.imul(nt,Be)|0,v=v+Math.imul(Ye,tt)|0,o=o+Math.imul(Ye,kt)|0,o=o+Math.imul(We,tt)|0,x=x+Math.imul(We,kt)|0,v=v+Math.imul(Ve,pt)|0,o=o+Math.imul(Ve,It)|0,o=o+Math.imul(et,pt)|0,x=x+Math.imul(et,It)|0,v=v+Math.imul(ue,Pt)|0,o=o+Math.imul(ue,Ot)|0,o=o+Math.imul(qe,Pt)|0,x=x+Math.imul(qe,Ot)|0,v=v+Math.imul(ee,me)|0,o=o+Math.imul(ee,ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,ce)|0,v=v+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(L,_e)|0,x=x+Math.imul(L,Re)|0,v=v+Math.imul(R,Ze)|0,o=o+Math.imul(R,ct)|0,o=o+Math.imul(H,Ze)|0,x=x+Math.imul(H,ct)|0;var Pr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,v=Math.imul(xe,Fe),o=Math.imul(xe,Me),o=o+Math.imul(X,Fe)|0,x=Math.imul(X,Me),v=v+Math.imul(dt,yt)|0,o=o+Math.imul(dt,le)|0,o=o+Math.imul(gt,yt)|0,x=x+Math.imul(gt,le)|0,v=v+Math.imul(Le,at)|0,o=o+Math.imul(Le,Be)|0,o=o+Math.imul(Oe,at)|0,x=x+Math.imul(Oe,Be)|0,v=v+Math.imul(Ge,tt)|0,o=o+Math.imul(Ge,kt)|0,o=o+Math.imul(nt,tt)|0,x=x+Math.imul(nt,kt)|0,v=v+Math.imul(Ye,pt)|0,o=o+Math.imul(Ye,It)|0,o=o+Math.imul(We,pt)|0,x=x+Math.imul(We,It)|0,v=v+Math.imul(Ve,Pt)|0,o=o+Math.imul(Ve,Ot)|0,o=o+Math.imul(et,Pt)|0,x=x+Math.imul(et,Ot)|0,v=v+Math.imul(ue,me)|0,o=o+Math.imul(ue,ce)|0,o=o+Math.imul(qe,me)|0,x=x+Math.imul(qe,ce)|0,v=v+Math.imul(ee,_e)|0,o=o+Math.imul(ee,Re)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Re)|0,v=v+Math.imul(Z,Ze)|0,o=o+Math.imul(Z,ct)|0,o=o+Math.imul(L,Ze)|0,x=x+Math.imul(L,ct)|0;var Tr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,v=Math.imul(xe,yt),o=Math.imul(xe,le),o=o+Math.imul(X,yt)|0,x=Math.imul(X,le),v=v+Math.imul(dt,at)|0,o=o+Math.imul(dt,Be)|0,o=o+Math.imul(gt,at)|0,x=x+Math.imul(gt,Be)|0,v=v+Math.imul(Le,tt)|0,o=o+Math.imul(Le,kt)|0,o=o+Math.imul(Oe,tt)|0,x=x+Math.imul(Oe,kt)|0,v=v+Math.imul(Ge,pt)|0,o=o+Math.imul(Ge,It)|0,o=o+Math.imul(nt,pt)|0,x=x+Math.imul(nt,It)|0,v=v+Math.imul(Ye,Pt)|0,o=o+Math.imul(Ye,Ot)|0,o=o+Math.imul(We,Pt)|0,x=x+Math.imul(We,Ot)|0,v=v+Math.imul(Ve,me)|0,o=o+Math.imul(Ve,ce)|0,o=o+Math.imul(et,me)|0,x=x+Math.imul(et,ce)|0,v=v+Math.imul(ue,_e)|0,o=o+Math.imul(ue,Re)|0,o=o+Math.imul(qe,_e)|0,x=x+Math.imul(qe,Re)|0,v=v+Math.imul(ee,Ze)|0,o=o+Math.imul(ee,ct)|0,o=o+Math.imul(oe,Ze)|0,x=x+Math.imul(oe,ct)|0;var br=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(br>>>26)|0,br&=67108863,v=Math.imul(xe,at),o=Math.imul(xe,Be),o=o+Math.imul(X,at)|0,x=Math.imul(X,Be),v=v+Math.imul(dt,tt)|0,o=o+Math.imul(dt,kt)|0,o=o+Math.imul(gt,tt)|0,x=x+Math.imul(gt,kt)|0,v=v+Math.imul(Le,pt)|0,o=o+Math.imul(Le,It)|0,o=o+Math.imul(Oe,pt)|0,x=x+Math.imul(Oe,It)|0,v=v+Math.imul(Ge,Pt)|0,o=o+Math.imul(Ge,Ot)|0,o=o+Math.imul(nt,Pt)|0,x=x+Math.imul(nt,Ot)|0,v=v+Math.imul(Ye,me)|0,o=o+Math.imul(Ye,ce)|0,o=o+Math.imul(We,me)|0,x=x+Math.imul(We,ce)|0,v=v+Math.imul(Ve,_e)|0,o=o+Math.imul(Ve,Re)|0,o=o+Math.imul(et,_e)|0,x=x+Math.imul(et,Re)|0,v=v+Math.imul(ue,Ze)|0,o=o+Math.imul(ue,ct)|0,o=o+Math.imul(qe,Ze)|0,x=x+Math.imul(qe,ct)|0;var Ar=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,v=Math.imul(xe,tt),o=Math.imul(xe,kt),o=o+Math.imul(X,tt)|0,x=Math.imul(X,kt),v=v+Math.imul(dt,pt)|0,o=o+Math.imul(dt,It)|0,o=o+Math.imul(gt,pt)|0,x=x+Math.imul(gt,It)|0,v=v+Math.imul(Le,Pt)|0,o=o+Math.imul(Le,Ot)|0,o=o+Math.imul(Oe,Pt)|0,x=x+Math.imul(Oe,Ot)|0,v=v+Math.imul(Ge,me)|0,o=o+Math.imul(Ge,ce)|0,o=o+Math.imul(nt,me)|0,x=x+Math.imul(nt,ce)|0,v=v+Math.imul(Ye,_e)|0,o=o+Math.imul(Ye,Re)|0,o=o+Math.imul(We,_e)|0,x=x+Math.imul(We,Re)|0,v=v+Math.imul(Ve,Ze)|0,o=o+Math.imul(Ve,ct)|0,o=o+Math.imul(et,Ze)|0,x=x+Math.imul(et,ct)|0;var gr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,v=Math.imul(xe,pt),o=Math.imul(xe,It),o=o+Math.imul(X,pt)|0,x=Math.imul(X,It),v=v+Math.imul(dt,Pt)|0,o=o+Math.imul(dt,Ot)|0,o=o+Math.imul(gt,Pt)|0,x=x+Math.imul(gt,Ot)|0,v=v+Math.imul(Le,me)|0,o=o+Math.imul(Le,ce)|0,o=o+Math.imul(Oe,me)|0,x=x+Math.imul(Oe,ce)|0,v=v+Math.imul(Ge,_e)|0,o=o+Math.imul(Ge,Re)|0,o=o+Math.imul(nt,_e)|0,x=x+Math.imul(nt,Re)|0,v=v+Math.imul(Ye,Ze)|0,o=o+Math.imul(Ye,ct)|0,o=o+Math.imul(We,Ze)|0,x=x+Math.imul(We,ct)|0;var dr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(dr>>>26)|0,dr&=67108863,v=Math.imul(xe,Pt),o=Math.imul(xe,Ot),o=o+Math.imul(X,Pt)|0,x=Math.imul(X,Ot),v=v+Math.imul(dt,me)|0,o=o+Math.imul(dt,ce)|0,o=o+Math.imul(gt,me)|0,x=x+Math.imul(gt,ce)|0,v=v+Math.imul(Le,_e)|0,o=o+Math.imul(Le,Re)|0,o=o+Math.imul(Oe,_e)|0,x=x+Math.imul(Oe,Re)|0,v=v+Math.imul(Ge,Ze)|0,o=o+Math.imul(Ge,ct)|0,o=o+Math.imul(nt,Ze)|0,x=x+Math.imul(nt,ct)|0;var lr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(lr>>>26)|0,lr&=67108863,v=Math.imul(xe,me),o=Math.imul(xe,ce),o=o+Math.imul(X,me)|0,x=Math.imul(X,ce),v=v+Math.imul(dt,_e)|0,o=o+Math.imul(dt,Re)|0,o=o+Math.imul(gt,_e)|0,x=x+Math.imul(gt,Re)|0,v=v+Math.imul(Le,Ze)|0,o=o+Math.imul(Le,ct)|0,o=o+Math.imul(Oe,Ze)|0,x=x+Math.imul(Oe,ct)|0;var Kt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(xe,_e),o=Math.imul(xe,Re),o=o+Math.imul(X,_e)|0,x=Math.imul(X,Re),v=v+Math.imul(dt,Ze)|0,o=o+Math.imul(dt,ct)|0,o=o+Math.imul(gt,Ze)|0,x=x+Math.imul(gt,ct)|0;var Bt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(xe,Ze),o=Math.imul(xe,ct),o=o+Math.imul(X,Ze)|0,x=Math.imul(X,ct);var Ft=(w+v|0)+((o&8191)<<13)|0;return w=(x+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,y[0]=Nt,y[1]=Ut,y[2]=Mr,y[3]=Xt,y[4]=Sr,y[5]=rr,y[6]=er,y[7]=kr,y[8]=vr,y[9]=Pr,y[10]=Tr,y[11]=br,y[12]=Ar,y[13]=gr,y[14]=dr,y[15]=lr,y[16]=Kt,y[17]=Bt,y[18]=Ft,w!==0&&(y[19]=w,b.length++),b};Math.imul||(z=$);function N(T,u,p){p.negative=u.negative^T.negative,p.length=T.length+u.length;for(var b=0,e=0,c=0;c<p.length-1;c++){var y=e;e=0;for(var w=b&67108863,v=Math.min(c,u.length-1),o=Math.max(0,c-T.length+1);o<=v;o++){var x=c-o,E=T.words[x]|0,R=u.words[o]|0,H=E*R,Y=H&67108863;y=y+(H/67108864|0)|0,Y=Y+w|0,w=Y&67108863,y=y+(Y>>>26)|0,e+=y>>>26,y&=67108863}p.words[c]=w,b=y,y=e}return b!==0?p.words[c]=b:p.length--,p.strip()}function F(T,u,p){var b=new U;return b.mulp(T,u,p)}h.prototype.mulTo=function(u,p){var b,e=this.length+u.length;return this.length===10&&u.length===10?b=z(this,u,p):e<63?b=$(this,u,p):e<1024?b=N(this,u,p):b=F(this,u,p),b};function U(T,u){this.x=T,this.y=u}U.prototype.makeRBT=function(u){for(var p=new Array(u),b=h.prototype._countBits(u)-1,e=0;e<u;e++)p[e]=this.revBin(e,b,u);return p},U.prototype.revBin=function(u,p,b){if(u===0||u===b-1)return u;for(var e=0,c=0;c<p;c++)e|=(u&1)<<p-c-1,u>>=1;return e},U.prototype.permute=function(u,p,b,e,c,y){for(var w=0;w<y;w++)e[w]=p[u[w]],c[w]=b[u[w]]},U.prototype.transform=function(u,p,b,e,c,y){this.permute(y,u,p,b,e,c);for(var w=1;w<c;w<<=1)for(var v=w<<1,o=Math.cos(2*Math.PI/v),x=Math.sin(2*Math.PI/v),E=0;E<c;E+=v)for(var R=o,H=x,Y=0;Y<w;Y++){var Z=b[E+Y],L=e[E+Y],D=b[E+Y+w],ee=e[E+Y+w],oe=R*D-H*ee;ee=R*ee+H*D,D=oe,b[E+Y]=Z+D,e[E+Y]=L+ee,b[E+Y+w]=Z-D,e[E+Y+w]=L-ee,Y!==v&&(oe=o*R-x*H,H=o*H+x*R,R=oe)}},U.prototype.guessLen13b=function(u,p){var b=Math.max(p,u)|1,e=b&1,c=0;for(b=b/2|0;b;b=b>>>1)c++;return 1<<c+1+e},U.prototype.conjugate=function(u,p,b){if(!(b<=1))for(var e=0;e<b/2;e++){var c=u[e];u[e]=u[b-e-1],u[b-e-1]=c,c=p[e],p[e]=-p[b-e-1],p[b-e-1]=-c}},U.prototype.normalize13b=function(u,p){for(var b=0,e=0;e<p/2;e++){var c=Math.round(u[2*e+1]/p)*8192+Math.round(u[2*e]/p)+b;u[e]=c&67108863,c<67108864?b=0:b=c/67108864|0}return u},U.prototype.convert13b=function(u,p,b,e){for(var c=0,y=0;y<p;y++)c=c+(u[y]|0),b[2*y]=c&8191,c=c>>>13,b[2*y+1]=c&8191,c=c>>>13;for(y=2*p;y<e;++y)b[y]=0;d(c===0),d((c&-8192)===0)},U.prototype.stub=function(u){for(var p=new Array(u),b=0;b<u;b++)p[b]=0;return p},U.prototype.mulp=function(u,p,b){var e=2*this.guessLen13b(u.length,p.length),c=this.makeRBT(e),y=this.stub(e),w=new Array(e),v=new Array(e),o=new Array(e),x=new Array(e),E=new Array(e),R=new Array(e),H=b.words;H.length=e,this.convert13b(u.words,u.length,w,e),this.convert13b(p.words,p.length,x,e),this.transform(w,y,v,o,e,c),this.transform(x,y,E,R,e,c);for(var Y=0;Y<e;Y++){var Z=v[Y]*E[Y]-o[Y]*R[Y];o[Y]=v[Y]*R[Y]+o[Y]*E[Y],v[Y]=Z}return this.conjugate(v,o,e),this.transform(v,o,H,y,e,c),this.conjugate(H,y,e),this.normalize13b(H,e),b.negative=u.negative^p.negative,b.length=u.length+p.length,b.strip()},h.prototype.mul=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),this.mulTo(u,p)},h.prototype.mulf=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),F(this,u,p)},h.prototype.imul=function(u){return this.clone().mulTo(u,this)},h.prototype.imuln=function(u){d(typeof u=="number"),d(u<67108864);for(var p=0,b=0;b<this.length;b++){var e=(this.words[b]|0)*u,c=(e&67108863)+(p&67108863);p>>=26,p+=e/67108864|0,p+=c>>>26,this.words[b]=c&67108863}return p!==0&&(this.words[b]=p,this.length++),this},h.prototype.muln=function(u){return this.clone().imuln(u)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(u){var p=P(u);if(p.length===0)return new h(1);for(var b=this,e=0;e<p.length&&p[e]===0;e++,b=b.sqr());if(++e<p.length)for(var c=b.sqr();e<p.length;e++,c=c.sqr())p[e]!==0&&(b=b.mul(c));return b},h.prototype.iushln=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=67108863>>>26-p<<26-p,c;if(p!==0){var y=0;for(c=0;c<this.length;c++){var w=this.words[c]&e,v=(this.words[c]|0)-w<<p;this.words[c]=v|y,y=w>>>26-p}y&&(this.words[c]=y,this.length++)}if(b!==0){for(c=this.length-1;c>=0;c--)this.words[c+b]=this.words[c];for(c=0;c<b;c++)this.words[c]=0;this.length+=b}return this.strip()},h.prototype.ishln=function(u){return d(this.negative===0),this.iushln(u)},h.prototype.iushrn=function(u,p,b){d(typeof u=="number"&&u>=0);var e;p?e=(p-p%26)/26:e=0;var c=u%26,y=Math.min((u-c)/26,this.length),w=67108863^67108863>>>c<<c,v=b;if(e-=y,e=Math.max(0,e),v){for(var o=0;o<y;o++)v.words[o]=this.words[o];v.length=y}if(y!==0)if(this.length>y)for(this.length-=y,o=0;o<this.length;o++)this.words[o]=this.words[o+y];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=e);o--){var E=this.words[o]|0;this.words[o]=x<<26-c|E>>>c,x=E&w}return v&&x!==0&&(v.words[v.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(u,p,b){return d(this.negative===0),this.iushrn(u,p,b)},h.prototype.shln=function(u){return this.clone().ishln(u)},h.prototype.ushln=function(u){return this.clone().iushln(u)},h.prototype.shrn=function(u){return this.clone().ishrn(u)},h.prototype.ushrn=function(u){return this.clone().iushrn(u)},h.prototype.testn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return!1;var c=this.words[b];return!!(c&e)},h.prototype.imaskn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26;if(d(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(p!==0&&b++,this.length=Math.min(b,this.length),p!==0){var e=67108863^67108863>>>p<<p;this.words[this.length-1]&=e}return this.strip()},h.prototype.maskn=function(u){return this.clone().imaskn(u)},h.prototype.iaddn=function(u){return d(typeof u=="number"),d(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},h.prototype._iaddn=function(u){this.words[0]+=u;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},h.prototype.isubn=function(u){if(d(typeof u=="number"),d(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},h.prototype.addn=function(u){return this.clone().iaddn(u)},h.prototype.subn=function(u){return this.clone().isubn(u)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(u,p,b){var e=u.length+b,c;this._expand(e);var y,w=0;for(c=0;c<u.length;c++){y=(this.words[c+b]|0)+w;var v=(u.words[c]|0)*p;y-=v&67108863,w=(y>>26)-(v/67108864|0),this.words[c+b]=y&67108863}for(;c<this.length-b;c++)y=(this.words[c+b]|0)+w,w=y>>26,this.words[c+b]=y&67108863;if(w===0)return this.strip();for(d(w===-1),w=0,c=0;c<this.length;c++)y=-(this.words[c]|0)+w,w=y>>26,this.words[c]=y&67108863;return this.negative=1,this.strip()},h.prototype._wordDiv=function(u,p){var b=this.length-u.length,e=this.clone(),c=u,y=c.words[c.length-1]|0,w=this._countBits(y);b=26-w,b!==0&&(c=c.ushln(b),e.iushln(b),y=c.words[c.length-1]|0);var v=e.length-c.length,o;if(p!=="mod"){o=new h(null),o.length=v+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var E=e.clone()._ishlnsubmul(c,1,v);E.negative===0&&(e=E,o&&(o.words[v]=1));for(var R=v-1;R>=0;R--){var H=(e.words[c.length+R]|0)*67108864+(e.words[c.length+R-1]|0);for(H=Math.min(H/y|0,67108863),e._ishlnsubmul(c,H,R);e.negative!==0;)H--,e.negative=0,e._ishlnsubmul(c,1,R),e.isZero()||(e.negative^=1);o&&(o.words[R]=H)}return o&&o.strip(),e.strip(),p!=="div"&&b!==0&&e.iushrn(b),{div:o||null,mod:e}},h.prototype.divmod=function(u,p,b){if(d(!u.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var e,c,y;return this.negative!==0&&u.negative===0?(y=this.neg().divmod(u,p),p!=="mod"&&(e=y.div.neg()),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.iadd(u)),{div:e,mod:c}):this.negative===0&&u.negative!==0?(y=this.divmod(u.neg(),p),p!=="mod"&&(e=y.div.neg()),{div:e,mod:y.mod}):this.negative&u.negative?(y=this.neg().divmod(u.neg(),p),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.isub(u)),{div:y.div,mod:c}):u.length>this.length||this.cmp(u)<0?{div:new h(0),mod:this}:u.length===1?p==="div"?{div:this.divn(u.words[0]),mod:null}:p==="mod"?{div:null,mod:new h(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new h(this.modn(u.words[0]))}:this._wordDiv(u,p)},h.prototype.div=function(u){return this.divmod(u,"div",!1).div},h.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},h.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},h.prototype.divRound=function(u){var p=this.divmod(u);if(p.mod.isZero())return p.div;var b=p.div.negative!==0?p.mod.isub(u):p.mod,e=u.ushrn(1),c=u.andln(1),y=b.cmp(e);return y<0||c===1&&y===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},h.prototype.modn=function(u){d(u<=67108863);for(var p=(1<<26)%u,b=0,e=this.length-1;e>=0;e--)b=(p*b+(this.words[e]|0))%u;return b},h.prototype.idivn=function(u){d(u<=67108863);for(var p=0,b=this.length-1;b>=0;b--){var e=(this.words[b]|0)+p*67108864;this.words[b]=e/u|0,p=e%u}return this.strip()},h.prototype.divn=function(u){return this.clone().idivn(u)},h.prototype.egcd=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=new h(0),w=new h(1),v=0;p.isEven()&&b.isEven();)p.iushrn(1),b.iushrn(1),++v;for(var o=b.clone(),x=p.clone();!p.isZero();){for(var E=0,R=1;!(p.words[0]&R)&&E<26;++E,R<<=1);if(E>0)for(p.iushrn(E);E-- >0;)(e.isOdd()||c.isOdd())&&(e.iadd(o),c.isub(x)),e.iushrn(1),c.iushrn(1);for(var H=0,Y=1;!(b.words[0]&Y)&&H<26;++H,Y<<=1);if(H>0)for(b.iushrn(H);H-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(o),w.isub(x)),y.iushrn(1),w.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(y),c.isub(w)):(b.isub(p),y.isub(e),w.isub(c))}return{a:y,b:w,gcd:b.iushln(v)}},h.prototype._invmp=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=b.clone();p.cmpn(1)>0&&b.cmpn(1)>0;){for(var w=0,v=1;!(p.words[0]&v)&&w<26;++w,v<<=1);if(w>0)for(p.iushrn(w);w-- >0;)e.isOdd()&&e.iadd(y),e.iushrn(1);for(var o=0,x=1;!(b.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(b.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(y),c.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(c)):(b.isub(p),c.isub(e))}var E;return p.cmpn(1)===0?E=e:E=c,E.cmpn(0)<0&&E.iadd(u),E},h.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var p=this.clone(),b=u.clone();p.negative=0,b.negative=0;for(var e=0;p.isEven()&&b.isEven();e++)p.iushrn(1),b.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;b.isEven();)b.iushrn(1);var c=p.cmp(b);if(c<0){var y=p;p=b,b=y}else if(c===0||b.cmpn(1)===0)break;p.isub(b)}while(!0);return b.iushln(e)},h.prototype.invm=function(u){return this.egcd(u).a.umod(u)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(u){return this.words[0]&u},h.prototype.bincn=function(u){d(typeof u=="number");var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return this._expand(b+1),this.words[b]|=e,this;for(var c=e,y=b;c!==0&&y<this.length;y++){var w=this.words[y]|0;w+=c,c=w>>>26,w&=67108863,this.words[y]=w}return c!==0&&(this.words[y]=c,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(u){var p=u<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var b;if(this.length>1)b=1;else{p&&(u=-u),d(u<=67108863,"Number is too big");var e=this.words[0]|0;b=e===u?0:e<u?-1:1}return this.negative!==0?-b|0:b},h.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var p=this.ucmp(u);return this.negative!==0?-p|0:p},h.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var p=0,b=this.length-1;b>=0;b--){var e=this.words[b]|0,c=u.words[b]|0;if(e!==c){e<c?p=-1:e>c&&(p=1);break}}return p},h.prototype.gtn=function(u){return this.cmpn(u)===1},h.prototype.gt=function(u){return this.cmp(u)===1},h.prototype.gten=function(u){return this.cmpn(u)>=0},h.prototype.gte=function(u){return this.cmp(u)>=0},h.prototype.ltn=function(u){return this.cmpn(u)===-1},h.prototype.lt=function(u){return this.cmp(u)===-1},h.prototype.lten=function(u){return this.cmpn(u)<=0},h.prototype.lte=function(u){return this.cmp(u)<=0},h.prototype.eqn=function(u){return this.cmpn(u)===0},h.prototype.eq=function(u){return this.cmp(u)===0},h.red=function(u){return new he(u)},h.prototype.toRed=function(u){return d(!this.red,"Already a number in reduction context"),d(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},h.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(u){return this.red=u,this},h.prototype.forceRed=function(u){return d(!this.red,"Already a number in reduction context"),this._forceRed(u)},h.prototype.redAdd=function(u){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},h.prototype.redIAdd=function(u){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},h.prototype.redSub=function(u){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},h.prototype.redISub=function(u){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},h.prototype.redShl=function(u){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},h.prototype.redMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},h.prototype.redIMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},h.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(u){return d(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var J={k256:null,p224:null,p192:null,p25519:null};function te(T,u){this.name=T,this.p=new h(u,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}te.prototype._tmp=function(){var u=new h(null);return u.words=new Array(Math.ceil(this.n/13)),u},te.prototype.ireduce=function(u){var p=u,b;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),b=p.bitLength();while(b>this.n);var e=b<this.n?-1:p.ucmp(this.p);return e===0?(p.words[0]=0,p.length=1):e>0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},te.prototype.split=function(u,p){u.iushrn(this.n,0,p)},te.prototype.imulK=function(u){return u.imul(this.k)};function se(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(se,te),se.prototype.split=function(u,p){for(var b=4194303,e=Math.min(u.length,9),c=0;c<e;c++)p.words[c]=u.words[c];if(p.length=e,u.length<=9){u.words[0]=0,u.length=1;return}var y=u.words[9];for(p.words[p.length++]=y&b,c=10;c<u.length;c++){var w=u.words[c]|0;u.words[c-10]=(w&b)<<4|y>>>22,y=w}y>>>=22,u.words[c-10]=y,y===0&&u.length>10?u.length-=10:u.length-=9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var p=0,b=0;b<u.length;b++){var e=u.words[b]|0;p+=e*977,u.words[b]=p&67108863,p=e*64+(p/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function de(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(de,te);function Q(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(Q,te);function ve(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ve,te),ve.prototype.imulK=function(u){for(var p=0,b=0;b<u.length;b++){var e=(u.words[b]|0)*19+p,c=e&67108863;e>>>=26,u.words[b]=c,p=e}return p!==0&&(u.words[u.length++]=p),u},h._prime=function(u){if(J[u])return J[u];var p;if(u==="k256")p=new se;else if(u==="p224")p=new de;else if(u==="p192")p=new Q;else if(u==="p25519")p=new ve;else throw new Error("Unknown prime "+u);return J[u]=p,p};function he(T){if(typeof T=="string"){var u=h._prime(T);this.m=u.p,this.prime=u}else d(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}he.prototype._verify1=function(u){d(u.negative===0,"red works only with positives"),d(u.red,"red works only with red numbers")},he.prototype._verify2=function(u,p){d((u.negative|p.negative)===0,"red works only with positives"),d(u.red&&u.red===p.red,"red works only with red numbers")},he.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},he.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},he.prototype.add=function(u,p){this._verify2(u,p);var b=u.add(p);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},he.prototype.iadd=function(u,p){this._verify2(u,p);var b=u.iadd(p);return b.cmp(this.m)>=0&&b.isub(this.m),b},he.prototype.sub=function(u,p){this._verify2(u,p);var b=u.sub(p);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},he.prototype.isub=function(u,p){this._verify2(u,p);var b=u.isub(p);return b.cmpn(0)<0&&b.iadd(this.m),b},he.prototype.shl=function(u,p){return this._verify1(u),this.imod(u.ushln(p))},he.prototype.imul=function(u,p){return this._verify2(u,p),this.imod(u.imul(p))},he.prototype.mul=function(u,p){return this._verify2(u,p),this.imod(u.mul(p))},he.prototype.isqr=function(u){return this.imul(u,u.clone())},he.prototype.sqr=function(u){return this.mul(u,u)},he.prototype.sqrt=function(u){if(u.isZero())return u.clone();var p=this.m.andln(3);if(d(p%2===1),p===3){var b=this.m.add(new h(1)).iushrn(2);return this.pow(u,b)}for(var e=this.m.subn(1),c=0;!e.isZero()&&e.andln(1)===0;)c++,e.iushrn(1);d(!e.isZero());var y=new h(1).toRed(this),w=y.redNeg(),v=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new h(2*o*o).toRed(this);this.pow(o,v).cmp(w)!==0;)o.redIAdd(w);for(var x=this.pow(o,e),E=this.pow(u,e.addn(1).iushrn(1)),R=this.pow(u,e),H=c;R.cmp(y)!==0;){for(var Y=R,Z=0;Y.cmp(y)!==0;Z++)Y=Y.redSqr();d(Z<H);var L=this.pow(x,new h(1).iushln(H-Z-1));E=E.redMul(L),x=L.redSqr(),R=R.redMul(x),H=Z}return E},he.prototype.invm=function(u){var p=u._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},he.prototype.pow=function(u,p){if(p.isZero())return new h(1).toRed(this);if(p.cmpn(1)===0)return u.clone();var b=4,e=new Array(1<<b);e[0]=new h(1).toRed(this),e[1]=u;for(var c=2;c<e.length;c++)e[c]=this.mul(e[c-1],u);var y=e[0],w=0,v=0,o=p.bitLength()%26;for(o===0&&(o=26),c=p.length-1;c>=0;c--){for(var x=p.words[c],E=o-1;E>=0;E--){var R=x>>E&1;if(y!==e[0]&&(y=this.sqr(y)),R===0&&w===0){v=0;continue}w<<=1,w|=R,v++,!(v!==b&&(c!==0||E!==0))&&(y=this.mul(y,e[w]),v=0,w=0)}o=26}return y},he.prototype.convertTo=function(u){var p=u.umod(this.m);return p===u?p.clone():p},he.prototype.convertFrom=function(u){var p=u.clone();return p.red=null,p},h.mont=function(u){return new ke(u)};function ke(T){he.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(ke,he),ke.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},ke.prototype.convertFrom=function(u){var p=this.imod(u.mul(this.rinv));return p.red=null,p},ke.prototype.imul=function(u,p){if(u.isZero()||p.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.mul=function(u,p){if(u.isZero()||p.isZero())return new h(0)._forceRed(this);var b=u.mul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.invm=function(u){var p=this.imod(u._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,commonjsGlobal)}(bn$5);var bnExports$5=bn$5.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var t;brorand.exports=function(m){return t||(t=new n(null)),t.generate(m)};function n(d){this.rand=d}if(brorand.exports.Rand=n,n.prototype.generate=function(m){return this._rand(m)},n.prototype._rand=function(m){if(this.rand.getBytes)return this.rand.getBytes(m);for(var h=new Uint8Array(m),S=0;S<h.length;S++)h[S]=this.rand.getByte();return h},typeof self=="object")self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(m){var h=new Uint8Array(m);return self.crypto.getRandomValues(h),h}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(m){var h=new Uint8Array(m);return self.msCrypto.getRandomValues(h),h}:typeof window=="object"&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var l=requireCryptoBrowserify();if(typeof l.randomBytes!="function")throw new Error("Not supported");n.prototype._rand=function(m){return l.randomBytes(m)}}catch{}return brorand.exports}var mr,hasRequiredMr;function requireMr(){if(hasRequiredMr)return mr;hasRequiredMr=1;var t=bnExports$5,n=requireBrorand();function l(d){this.rand=d||new n.Rand}return mr=l,l.create=function(m){return new l(m)},l.prototype._randbelow=function(m){var h=m.bitLength(),S=Math.ceil(h/8);do var k=new t(this.rand.generate(S));while(k.cmp(m)>=0);return k},l.prototype._randrange=function(m,h){var S=h.sub(m);return m.add(this._randbelow(S))},l.prototype.test=function(m,h,S){var k=m.bitLength(),A=t.mont(m),B=new t(1).toRed(A);h||(h=Math.max(1,k/48|0));for(var M=m.subn(1),j=0;!M.testn(j);j++);for(var I=m.shrn(j),P=M.toRed(A),$=!0;h>0;h--){var z=this._randrange(new t(2),M);S&&S(z);var N=z.toRed(A).redPow(I);if(!(N.cmp(B)===0||N.cmp(P)===0)){for(var F=1;F<j;F++){if(N=N.redSqr(),N.cmp(B)===0)return!1;if(N.cmp(P)===0)break}if(F===j)return!1}}return $},l.prototype.getDivisor=function(m,h){var S=m.bitLength(),k=t.mont(m),A=new t(1).toRed(k);h||(h=Math.max(1,S/48|0));for(var B=m.subn(1),M=0;!B.testn(M);M++);for(var j=m.shrn(M),I=B.toRed(k);h>0;h--){var P=this._randrange(new t(2),B),$=m.gcd(P);if($.cmpn(1)!==0)return $;var z=P.toRed(k).redPow(j);if(!(z.cmp(A)===0||z.cmp(I)===0)){for(var N=1;N<M;N++){if(z=z.redSqr(),z.cmp(A)===0)return z.fromRed().subn(1).gcd(m);if(z.cmp(I)===0)break}if(N===M)return z=z.redSqr(),z.fromRed().subn(1).gcd(m)}}return!1},mr}var generatePrime,hasRequiredGeneratePrime;function requireGeneratePrime(){if(hasRequiredGeneratePrime)return generatePrime;hasRequiredGeneratePrime=1;var t=browserExports;generatePrime=N,N.simpleSieve=$,N.fermatTest=z;var n=bnExports$6,l=new n(24),d=requireMr(),m=new d,h=new n(1),S=new n(2),k=new n(5);new n(16),new n(8);var A=new n(10),B=new n(3);new n(7);var M=new n(11),j=new n(4);new n(12);var I=null;function P(){if(I!==null)return I;var F=1048576,U=[];U[0]=2;for(var J=1,te=3;te<F;te+=2){for(var se=Math.ceil(Math.sqrt(te)),de=0;de<J&&U[de]<=se&&te%U[de]!==0;de++);J!==de&&U[de]<=se||(U[J++]=te)}return I=U,U}function $(F){for(var U=P(),J=0;J<U.length;J++)if(F.modn(U[J])===0)return F.cmpn(U[J])===0;return!0}function z(F){var U=n.mont(F);return S.toRed(U).redPow(F.subn(1)).fromRed().cmpn(1)===0}function N(F,U){if(F<16)return U===2||U===5?new n([140,123]):new n([140,39]);U=new n(U);for(var J,te;;){for(J=new n(t(Math.ceil(F/8)));J.bitLength()>F;)J.ishrn(1);if(J.isEven()&&J.iadd(h),J.testn(1)||J.iadd(S),U.cmp(S)){if(!U.cmp(k))for(;J.mod(A).cmp(B);)J.iadd(j)}else for(;J.mod(l).cmp(M);)J.iadd(j);if(te=J.shrn(1),$(te)&&$(J)&&z(te)&&z(J)&&m.test(te)&&m.test(J))return J}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$3={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var t=bnExports$6,n=requireMr(),l=new n,d=new t(24),m=new t(11),h=new t(10),S=new t(3),k=new t(7),A=requireGeneratePrime(),B=browserExports;dh=$;function M(N,F){return F=F||"utf8",Buffer$C.isBuffer(N)||(N=new Buffer$C(N,F)),this._pub=new t(N),this}function j(N,F){return F=F||"utf8",Buffer$C.isBuffer(N)||(N=new Buffer$C(N,F)),this._priv=new t(N),this}var I={};function P(N,F){var U=F.toString("hex"),J=[U,N.toString(16)].join("_");if(J in I)return I[J];var te=0;if(N.isEven()||!A.simpleSieve||!A.fermatTest(N)||!l.test(N))return te+=1,U==="02"||U==="05"?te+=8:te+=4,I[J]=te,te;l.test(N.shrn(1))||(te+=2);var se;switch(U){case"02":N.mod(d).cmp(m)&&(te+=8);break;case"05":se=N.mod(h),se.cmp(S)&&se.cmp(k)&&(te+=8);break;default:te+=4}return I[J]=te,te}function $(N,F,U){this.setGenerator(F),this.__prime=new t(N),this._prime=t.mont(this.__prime),this._primeLen=N.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,U?(this.setPublicKey=M,this.setPrivateKey=j):this._primeCode=8}Object.defineProperty($.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=P(this.__prime,this.__gen)),this._primeCode}}),$.prototype.generateKeys=function(){return this._priv||(this._priv=new t(B(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},$.prototype.computeSecret=function(N){N=new t(N),N=N.toRed(this._prime);var F=N.redPow(this._priv).fromRed(),U=new Buffer$C(F.toArray()),J=this.getPrime();if(U.length<J.length){var te=new Buffer$C(J.length-U.length);te.fill(0),U=Buffer$C.concat([te,U])}return U},$.prototype.getPublicKey=function(F){return z(this._pub,F)},$.prototype.getPrivateKey=function(F){return z(this._priv,F)},$.prototype.getPrime=function(N){return z(this.__prime,N)},$.prototype.getGenerator=function(N){return z(this._gen,N)},$.prototype.setGenerator=function(N,F){return F=F||"utf8",Buffer$C.isBuffer(N)||(N=new Buffer$C(N,F)),this.__gen=N,this._gen=new t(N),this};function z(N,F){var U=new Buffer$C(N.toArray());return F?U.toString(F):U}return dh}var hasRequiredBrowser$4;function requireBrowser$4(){if(hasRequiredBrowser$4)return browser$6;hasRequiredBrowser$4=1;var t=requireGeneratePrime(),n=require$$1$3,l=requireDh();function d(S){var k=new Buffer$C(n[S].prime,"hex"),A=new Buffer$C(n[S].gen,"hex");return new l(k,A)}var m={binary:!0,hex:!0,base64:!0};function h(S,k,A,B){return Buffer$C.isBuffer(k)||m[k]===void 0?h(S,"binary",k,A):(k=k||"binary",B=B||"binary",A=A||new Buffer$C([2]),Buffer$C.isBuffer(A)||(A=new Buffer$C(A,B)),typeof S=="number"?new l(t(S,A),A,!0):(Buffer$C.isBuffer(S)||(S=new Buffer$C(S,k)),new l(S,A,!0)))}return browser$6.DiffieHellmanGroup=browser$6.createDiffieHellmanGroup=browser$6.getDiffieHellman=d,browser$6.createDiffieHellman=browser$6.DiffieHellman=h,browser$6}var readableBrowser$1={exports:{}},processNextickArgs={exports:{}};typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?processNextickArgs.exports={nextTick}:processNextickArgs.exports=process$1;function nextTick(t,n,l,d){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var m=arguments.length,h,S;switch(m){case 0:case 1:return process$1.nextTick(t);case 2:return process$1.nextTick(function(){t.call(null,n)});case 3:return process$1.nextTick(function(){t.call(null,n,l)});case 4:return process$1.nextTick(function(){t.call(null,n,l,d)});default:for(h=new Array(m-1),S=0;S<h.length;)h[S++]=arguments[S];return process$1.nextTick(function(){t.apply(null,h)})}}var processNextickArgsExports=processNextickArgs.exports,toString={}.toString,isarray=Array.isArray||function(t){return toString.call(t)=="[object Array]"},streamBrowser=requireEvents().EventEmitter,safeBuffer$1={exports:{}};(function(t,n){var l=require$$0$3,d=l.Buffer;function m(S,k){for(var A in S)k[A]=S[A]}d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?t.exports=l:(m(l,n),n.Buffer=h);function h(S,k,A){return d(S,k,A)}m(d,h),h.from=function(S,k,A){if(typeof S=="number")throw new TypeError("Argument must not be a number");return d(S,k,A)},h.alloc=function(S,k,A){if(typeof S!="number")throw new TypeError("Argument must be a number");var B=d(S);return k!==void 0?typeof A=="string"?B.fill(k,A):B.fill(k):B.fill(0),B},h.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return d(S)},h.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(S)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,util$3={};function isArray(t){return Array.isArray?Array.isArray(t):objectToString(t)==="[object Array]"}util$3.isArray=isArray;function isBoolean(t){return typeof t=="boolean"}util$3.isBoolean=isBoolean;function isNull(t){return t===null}util$3.isNull=isNull;function isNullOrUndefined(t){return t==null}util$3.isNullOrUndefined=isNullOrUndefined;function isNumber(t){return typeof t=="number"}util$3.isNumber=isNumber;function isString(t){return typeof t=="string"}util$3.isString=isString;function isSymbol(t){return typeof t=="symbol"}util$3.isSymbol=isSymbol;function isUndefined(t){return t===void 0}util$3.isUndefined=isUndefined;function isRegExp(t){return objectToString(t)==="[object RegExp]"}util$3.isRegExp=isRegExp;function isObject(t){return typeof t=="object"&&t!==null}util$3.isObject=isObject;function isDate(t){return objectToString(t)==="[object Date]"}util$3.isDate=isDate;function isError(t){return objectToString(t)==="[object Error]"||t instanceof Error}util$3.isError=isError;function isFunction(t){return typeof t=="function"}util$3.isFunction=isFunction;function isPrimitive(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}util$3.isPrimitive=isPrimitive,util$3.isBuffer=Buffer$C.isBuffer;function objectToString(t){return Object.prototype.toString.call(t)}var BufferList={exports:{}},hasRequiredBufferList;function requireBufferList(){return hasRequiredBufferList||(hasRequiredBufferList=1,function(t){function n(h,S){if(!(h instanceof S))throw new TypeError("Cannot call a class as a function")}var l=safeBufferExports.Buffer,d=util$6;function m(h,S,k){h.copy(S,k)}t.exports=function(){function h(){n(this,h),this.head=null,this.tail=null,this.length=0}return h.prototype.push=function(k){var A={data:k,next:null};this.length>0?this.tail.next=A:this.head=A,this.tail=A,++this.length},h.prototype.unshift=function(k){var A={data:k,next:this.head};this.length===0&&(this.tail=A),this.head=A,++this.length},h.prototype.shift=function(){if(this.length!==0){var k=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,k}},h.prototype.clear=function(){this.head=this.tail=null,this.length=0},h.prototype.join=function(k){if(this.length===0)return"";for(var A=this.head,B=""+A.data;A=A.next;)B+=k+A.data;return B},h.prototype.concat=function(k){if(this.length===0)return l.alloc(0);for(var A=l.allocUnsafe(k>>>0),B=this.head,M=0;B;)m(B.data,A,M),M+=B.data.length,B=B.next;return A},h}(),d&&d.inspect&&d.inspect.custom&&(t.exports.prototype[d.inspect.custom]=function(){var h=d.inspect({length:this.length});return this.constructor.name+" "+h})}(BufferList)),BufferList.exports}var pna=processNextickArgsExports;function destroy(t,n){var l=this,d=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return d||m?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,this,t)):pna.nextTick(emitErrorNT,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(h){!n&&h?l._writableState?l._writableState.errorEmitted||(l._writableState.errorEmitted=!0,pna.nextTick(emitErrorNT,l,h)):pna.nextTick(emitErrorNT,l,h):n&&n(h)}),this)}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(t,n){t.emit("error",n)}var destroy_1={destroy,undestroy},_stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1;var t=processNextickArgsExports;_stream_writable=z;function n(y){var w=this;this.next=null,this.entry=null,this.finish=function(){c(w,y)}}var l=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:t.nextTick,d;z.WritableState=P;var m=Object.create(util$3);m.inherits=inherits_browserExports;var h={deprecate:requireBrowser$5()},S=streamBrowser,k=safeBufferExports.Buffer,A=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function B(y){return k.from(y)}function M(y){return k.isBuffer(y)||y instanceof A}var j=destroy_1;m.inherits(z,S);function I(){}function P(y,w){d=d||require_stream_duplex(),y=y||{};var v=w instanceof d;this.objectMode=!!y.objectMode,v&&(this.objectMode=this.objectMode||!!y.writableObjectMode);var o=y.highWaterMark,x=y.writableHighWaterMark,E=this.objectMode?16:16*1024;o||o===0?this.highWaterMark=o:v&&(x||x===0)?this.highWaterMark=x:this.highWaterMark=E,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=y.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(H){Q(w,H)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}P.prototype.getBuffer=function(){for(var w=this.bufferedRequest,v=[];w;)v.push(w),w=w.next;return v},function(){try{Object.defineProperty(P.prototype,"buffer",{get:h.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var $;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(z,Symbol.hasInstance,{value:function(y){return $.call(this,y)?!0:this!==z?!1:y&&y._writableState instanceof P}})):$=function(y){return y instanceof this};function z(y){if(d=d||require_stream_duplex(),!$.call(z,this)&&!(this instanceof d))return new z(y);this._writableState=new P(y,this),this.writable=!0,y&&(typeof y.write=="function"&&(this._write=y.write),typeof y.writev=="function"&&(this._writev=y.writev),typeof y.destroy=="function"&&(this._destroy=y.destroy),typeof y.final=="function"&&(this._final=y.final)),S.call(this)}z.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function N(y,w){var v=new Error("write after end");y.emit("error",v),t.nextTick(w,v)}function F(y,w,v,o){var x=!0,E=!1;return v===null?E=new TypeError("May not write null values to stream"):typeof v!="string"&&v!==void 0&&!w.objectMode&&(E=new TypeError("Invalid non-string/buffer chunk")),E&&(y.emit("error",E),t.nextTick(o,E),x=!1),x}z.prototype.write=function(y,w,v){var o=this._writableState,x=!1,E=!o.objectMode&&M(y);return E&&!k.isBuffer(y)&&(y=B(y)),typeof w=="function"&&(v=w,w=null),E?w="buffer":w||(w=o.defaultEncoding),typeof v!="function"&&(v=I),o.ended?N(this,v):(E||F(this,o,y,v))&&(o.pendingcb++,x=J(this,o,E,y,w,v)),x},z.prototype.cork=function(){var y=this._writableState;y.corked++},z.prototype.uncork=function(){var y=this._writableState;y.corked&&(y.corked--,!y.writing&&!y.corked&&!y.bufferProcessing&&y.bufferedRequest&&ke(this,y))},z.prototype.setDefaultEncoding=function(w){if(typeof w=="string"&&(w=w.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((w+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+w);return this._writableState.defaultEncoding=w,this};function U(y,w,v){return!y.objectMode&&y.decodeStrings!==!1&&typeof w=="string"&&(w=k.from(w,v)),w}Object.defineProperty(z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function J(y,w,v,o,x,E){if(!v){var R=U(w,o,x);o!==R&&(v=!0,x="buffer",o=R)}var H=w.objectMode?1:o.length;w.length+=H;var Y=w.length<w.highWaterMark;if(Y||(w.needDrain=!0),w.writing||w.corked){var Z=w.lastBufferedRequest;w.lastBufferedRequest={chunk:o,encoding:x,isBuf:v,callback:E,next:null},Z?Z.next=w.lastBufferedRequest:w.bufferedRequest=w.lastBufferedRequest,w.bufferedRequestCount+=1}else te(y,w,!1,H,o,x,E);return Y}function te(y,w,v,o,x,E,R){w.writelen=o,w.writecb=R,w.writing=!0,w.sync=!0,v?y._writev(x,w.onwrite):y._write(x,E,w.onwrite),w.sync=!1}function se(y,w,v,o,x){--w.pendingcb,v?(t.nextTick(x,o),t.nextTick(b,y,w),y._writableState.errorEmitted=!0,y.emit("error",o)):(x(o),y._writableState.errorEmitted=!0,y.emit("error",o),b(y,w))}function de(y){y.writing=!1,y.writecb=null,y.length-=y.writelen,y.writelen=0}function Q(y,w){var v=y._writableState,o=v.sync,x=v.writecb;if(de(v),w)se(y,v,o,w,x);else{var E=T(v);!E&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&ke(y,v),o?l(ve,y,v,E,x):ve(y,v,E,x)}}function ve(y,w,v,o){v||he(y,w),w.pendingcb--,o(),b(y,w)}function he(y,w){w.length===0&&w.needDrain&&(w.needDrain=!1,y.emit("drain"))}function ke(y,w){w.bufferProcessing=!0;var v=w.bufferedRequest;if(y._writev&&v&&v.next){var o=w.bufferedRequestCount,x=new Array(o),E=w.corkedRequestsFree;E.entry=v;for(var R=0,H=!0;v;)x[R]=v,v.isBuf||(H=!1),v=v.next,R+=1;x.allBuffers=H,te(y,w,!0,w.length,x,"",E.finish),w.pendingcb++,w.lastBufferedRequest=null,E.next?(w.corkedRequestsFree=E.next,E.next=null):w.corkedRequestsFree=new n(w),w.bufferedRequestCount=0}else{for(;v;){var Y=v.chunk,Z=v.encoding,L=v.callback,D=w.objectMode?1:Y.length;if(te(y,w,!1,D,Y,Z,L),v=v.next,w.bufferedRequestCount--,w.writing)break}v===null&&(w.lastBufferedRequest=null)}w.bufferedRequest=v,w.bufferProcessing=!1}z.prototype._write=function(y,w,v){v(new Error("_write() is not implemented"))},z.prototype._writev=null,z.prototype.end=function(y,w,v){var o=this._writableState;typeof y=="function"?(v=y,y=null,w=null):typeof w=="function"&&(v=w,w=null),y!=null&&this.write(y,w),o.corked&&(o.corked=1,this.uncork()),o.ending||e(this,o,v)};function T(y){return y.ending&&y.length===0&&y.bufferedRequest===null&&!y.finished&&!y.writing}function u(y,w){y._final(function(v){w.pendingcb--,v&&y.emit("error",v),w.prefinished=!0,y.emit("prefinish"),b(y,w)})}function p(y,w){!w.prefinished&&!w.finalCalled&&(typeof y._final=="function"?(w.pendingcb++,w.finalCalled=!0,t.nextTick(u,y,w)):(w.prefinished=!0,y.emit("prefinish")))}function b(y,w){var v=T(w);return v&&(p(y,w),w.pendingcb===0&&(w.finished=!0,y.emit("finish"))),v}function e(y,w,v){w.ending=!0,b(y,w),v&&(w.finished?t.nextTick(v):y.once("finish",v)),w.ended=!0,y.writable=!1}function c(y,w,v){var o=y.entry;for(y.entry=null;o;){var x=o.callback;w.pendingcb--,x(v),o=o.next}w.corkedRequestsFree.next=y}return Object.defineProperty(z.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(y){this._writableState&&(this._writableState.destroyed=y)}}),z.prototype.destroy=j.destroy,z.prototype._undestroy=j.undestroy,z.prototype._destroy=function(y,w){this.end(),w(y)},_stream_writable}var _stream_duplex,hasRequired_stream_duplex;function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var t=processNextickArgsExports,n=Object.keys||function(j){var I=[];for(var P in j)I.push(P);return I};_stream_duplex=A;var l=Object.create(util$3);l.inherits=inherits_browserExports;var d=require_stream_readable(),m=require_stream_writable();l.inherits(A,d);for(var h=n(m.prototype),S=0;S<h.length;S++){var k=h[S];A.prototype[k]||(A.prototype[k]=m.prototype[k])}function A(j){if(!(this instanceof A))return new A(j);d.call(this,j),m.call(this,j),j&&j.readable===!1&&(this.readable=!1),j&&j.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,j&&j.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",B)}Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function B(){this.allowHalfOpen||this._writableState.ended||t.nextTick(M,this)}function M(j){j.end()}return Object.defineProperty(A.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(j){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=j,this._writableState.destroyed=j)}}),A.prototype._destroy=function(j,I){this.push(null),this.end(),t.nextTick(I,j)},_stream_duplex}var _stream_readable,hasRequired_stream_readable;function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;hasRequired_stream_readable=1;var t=processNextickArgsExports;_stream_readable=U;var n=isarray,l;U.ReadableState=F,requireEvents().EventEmitter;var d=function(L,D){return L.listeners(D).length},m=streamBrowser,h=safeBufferExports.Buffer,S=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function k(L){return h.from(L)}function A(L){return h.isBuffer(L)||L instanceof S}var B=Object.create(util$3);B.inherits=inherits_browserExports;var M=util$6,j=void 0;M&&M.debuglog?j=M.debuglog("stream"):j=function(){};var I=requireBufferList(),P=destroy_1,$;B.inherits(U,m);var z=["error","close","destroy","pause","resume"];function N(L,D,ee){if(typeof L.prependListener=="function")return L.prependListener(D,ee);!L._events||!L._events[D]?L.on(D,ee):n(L._events[D])?L._events[D].unshift(ee):L._events[D]=[ee,L._events[D]]}function F(L,D){l=l||require_stream_duplex(),L=L||{};var ee=D instanceof l;this.objectMode=!!L.objectMode,ee&&(this.objectMode=this.objectMode||!!L.readableObjectMode);var oe=L.highWaterMark,fe=L.readableHighWaterMark,ue=this.objectMode?16:16*1024;oe||oe===0?this.highWaterMark=oe:ee&&(fe||fe===0)?this.highWaterMark=fe:this.highWaterMark=ue,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new I,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&($||($=string_decoder.StringDecoder),this.decoder=new $(L.encoding),this.encoding=L.encoding)}function U(L){if(l=l||require_stream_duplex(),!(this instanceof U))return new U(L);this._readableState=new F(L,this),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),m.call(this)}Object.defineProperty(U.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),U.prototype.destroy=P.destroy,U.prototype._undestroy=P.undestroy,U.prototype._destroy=function(L,D){this.push(null),D(L)},U.prototype.push=function(L,D){var ee=this._readableState,oe;return ee.objectMode?oe=!0:typeof L=="string"&&(D=D||ee.defaultEncoding,D!==ee.encoding&&(L=h.from(L,D),D=""),oe=!0),J(this,L,D,!1,oe)},U.prototype.unshift=function(L){return J(this,L,null,!0,!1)};function J(L,D,ee,oe,fe){var ue=L._readableState;if(D===null)ue.reading=!1,ke(L,ue);else{var qe;fe||(qe=se(ue,D)),qe?L.emit("error",qe):ue.objectMode||D&&D.length>0?(typeof D!="string"&&!ue.objectMode&&Object.getPrototypeOf(D)!==h.prototype&&(D=k(D)),oe?ue.endEmitted?L.emit("error",new Error("stream.unshift() after end event")):te(L,ue,D,!0):ue.ended?L.emit("error",new Error("stream.push() after EOF")):(ue.reading=!1,ue.decoder&&!ee?(D=ue.decoder.write(D),ue.objectMode||D.length!==0?te(L,ue,D,!1):p(L,ue)):te(L,ue,D,!1))):oe||(ue.reading=!1)}return de(ue)}function te(L,D,ee,oe){D.flowing&&D.length===0&&!D.sync?(L.emit("data",ee),L.read(0)):(D.length+=D.objectMode?1:ee.length,oe?D.buffer.unshift(ee):D.buffer.push(ee),D.needReadable&&T(L)),p(L,D)}function se(L,D){var ee;return!A(D)&&typeof D!="string"&&D!==void 0&&!L.objectMode&&(ee=new TypeError("Invalid non-string/buffer chunk")),ee}function de(L){return!L.ended&&(L.needReadable||L.length<L.highWaterMark||L.length===0)}U.prototype.isPaused=function(){return this._readableState.flowing===!1},U.prototype.setEncoding=function(L){return $||($=string_decoder.StringDecoder),this._readableState.decoder=new $(L),this._readableState.encoding=L,this};var Q=8388608;function ve(L){return L>=Q?L=Q:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}function he(L,D){return L<=0||D.length===0&&D.ended?0:D.objectMode?1:L!==L?D.flowing&&D.length?D.buffer.head.data.length:D.length:(L>D.highWaterMark&&(D.highWaterMark=ve(L)),L<=D.length?L:D.ended?D.length:(D.needReadable=!0,0))}U.prototype.read=function(L){j("read",L),L=parseInt(L,10);var D=this._readableState,ee=L;if(L!==0&&(D.emittedReadable=!1),L===0&&D.needReadable&&(D.length>=D.highWaterMark||D.ended))return j("read: emitReadable",D.length,D.ended),D.length===0&&D.ended?H(this):T(this),null;if(L=he(L,D),L===0&&D.ended)return D.length===0&&H(this),null;var oe=D.needReadable;j("need readable",oe),(D.length===0||D.length-L<D.highWaterMark)&&(oe=!0,j("length less than watermark",oe)),D.ended||D.reading?(oe=!1,j("reading or ended",oe)):oe&&(j("do read"),D.reading=!0,D.sync=!0,D.length===0&&(D.needReadable=!0),this._read(D.highWaterMark),D.sync=!1,D.reading||(L=he(ee,D)));var fe;return L>0?fe=o(L,D):fe=null,fe===null?(D.needReadable=!0,L=0):D.length-=L,D.length===0&&(D.ended||(D.needReadable=!0),ee!==L&&D.ended&&H(this)),fe!==null&&this.emit("data",fe),fe};function ke(L,D){if(!D.ended){if(D.decoder){var ee=D.decoder.end();ee&&ee.length&&(D.buffer.push(ee),D.length+=D.objectMode?1:ee.length)}D.ended=!0,T(L)}}function T(L){var D=L._readableState;D.needReadable=!1,D.emittedReadable||(j("emitReadable",D.flowing),D.emittedReadable=!0,D.sync?t.nextTick(u,L):u(L))}function u(L){j("emit readable"),L.emit("readable"),v(L)}function p(L,D){D.readingMore||(D.readingMore=!0,t.nextTick(b,L,D))}function b(L,D){for(var ee=D.length;!D.reading&&!D.flowing&&!D.ended&&D.length<D.highWaterMark&&(j("maybeReadMore read 0"),L.read(0),ee!==D.length);)ee=D.length;D.readingMore=!1}U.prototype._read=function(L){this.emit("error",new Error("_read() is not implemented"))},U.prototype.pipe=function(L,D){var ee=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=L;break;case 1:oe.pipes=[oe.pipes,L];break;default:oe.pipes.push(L);break}oe.pipesCount+=1,j("pipe count=%d opts=%j",oe.pipesCount,D);var fe=(!D||D.end!==!1)&&L!==process$1.stdout&&L!==process$1.stderr,ue=fe?rt:Et;oe.endEmitted?t.nextTick(ue):ee.once("end",ue),L.on("unpipe",qe);function qe(Le,Oe){j("onunpipe"),Le===ee&&Oe&&Oe.hasUnpiped===!1&&(Oe.hasUnpiped=!0,mt())}function rt(){j("onend"),L.end()}var Ve=e(ee);L.on("drain",Ve);var et=!1;function mt(){j("cleanup"),L.removeListener("close",Ge),L.removeListener("finish",nt),L.removeListener("drain",Ve),L.removeListener("error",Xe),L.removeListener("unpipe",qe),ee.removeListener("end",rt),ee.removeListener("end",Et),ee.removeListener("data",We),et=!0,oe.awaitDrain&&(!L._writableState||L._writableState.needDrain)&&Ve()}var Ye=!1;ee.on("data",We);function We(Le){j("ondata"),Ye=!1;var Oe=L.write(Le);Oe===!1&&!Ye&&((oe.pipesCount===1&&oe.pipes===L||oe.pipesCount>1&&Z(oe.pipes,L)!==-1)&&!et&&(j("false write response, pause",oe.awaitDrain),oe.awaitDrain++,Ye=!0),ee.pause())}function Xe(Le){j("onerror",Le),Et(),L.removeListener("error",Xe),d(L,"error")===0&&L.emit("error",Le)}N(L,"error",Xe);function Ge(){L.removeListener("finish",nt),Et()}L.once("close",Ge);function nt(){j("onfinish"),L.removeListener("close",Ge),Et()}L.once("finish",nt);function Et(){j("unpipe"),ee.unpipe(L)}return L.emit("pipe",ee),oe.flowing||(j("pipe resume"),ee.resume()),L};function e(L){return function(){var D=L._readableState;j("pipeOnDrain",D.awaitDrain),D.awaitDrain&&D.awaitDrain--,D.awaitDrain===0&&d(L,"data")&&(D.flowing=!0,v(L))}}U.prototype.unpipe=function(L){var D=this._readableState,ee={hasUnpiped:!1};if(D.pipesCount===0)return this;if(D.pipesCount===1)return L&&L!==D.pipes?this:(L||(L=D.pipes),D.pipes=null,D.pipesCount=0,D.flowing=!1,L&&L.emit("unpipe",this,ee),this);if(!L){var oe=D.pipes,fe=D.pipesCount;D.pipes=null,D.pipesCount=0,D.flowing=!1;for(var ue=0;ue<fe;ue++)oe[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var qe=Z(D.pipes,L);return qe===-1?this:(D.pipes.splice(qe,1),D.pipesCount-=1,D.pipesCount===1&&(D.pipes=D.pipes[0]),L.emit("unpipe",this,ee),this)},U.prototype.on=function(L,D){var ee=m.prototype.on.call(this,L,D);if(L==="data")this._readableState.flowing!==!1&&this.resume();else if(L==="readable"){var oe=this._readableState;!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.emittedReadable=!1,oe.reading?oe.length&&T(this):t.nextTick(c,this))}return ee},U.prototype.addListener=U.prototype.on;function c(L){j("readable nexttick read 0"),L.read(0)}U.prototype.resume=function(){var L=this._readableState;return L.flowing||(j("resume"),L.flowing=!0,y(this,L)),this};function y(L,D){D.resumeScheduled||(D.resumeScheduled=!0,t.nextTick(w,L,D))}function w(L,D){D.reading||(j("resume read 0"),L.read(0)),D.resumeScheduled=!1,D.awaitDrain=0,L.emit("resume"),v(L),D.flowing&&!D.reading&&L.read(0)}U.prototype.pause=function(){return j("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(j("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function v(L){var D=L._readableState;for(j("flow",D.flowing);D.flowing&&L.read()!==null;);}U.prototype.wrap=function(L){var D=this,ee=this._readableState,oe=!1;L.on("end",function(){if(j("wrapped end"),ee.decoder&&!ee.ended){var qe=ee.decoder.end();qe&&qe.length&&D.push(qe)}D.push(null)}),L.on("data",function(qe){if(j("wrapped data"),ee.decoder&&(qe=ee.decoder.write(qe)),!(ee.objectMode&&qe==null)&&!(!ee.objectMode&&(!qe||!qe.length))){var rt=D.push(qe);rt||(oe=!0,L.pause())}});for(var fe in L)this[fe]===void 0&&typeof L[fe]=="function"&&(this[fe]=function(qe){return function(){return L[qe].apply(L,arguments)}}(fe));for(var ue=0;ue<z.length;ue++)L.on(z[ue],this.emit.bind(this,z[ue]));return this._read=function(qe){j("wrapped _read",qe),oe&&(oe=!1,L.resume())},this},Object.defineProperty(U.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),U._fromList=o;function o(L,D){if(D.length===0)return null;var ee;return D.objectMode?ee=D.buffer.shift():!L||L>=D.length?(D.decoder?ee=D.buffer.join(""):D.buffer.length===1?ee=D.buffer.head.data:ee=D.buffer.concat(D.length),D.buffer.clear()):ee=x(L,D.buffer,D.decoder),ee}function x(L,D,ee){var oe;return L<D.head.data.length?(oe=D.head.data.slice(0,L),D.head.data=D.head.data.slice(L)):L===D.head.data.length?oe=D.shift():oe=ee?E(L,D):R(L,D),oe}function E(L,D){var ee=D.head,oe=1,fe=ee.data;for(L-=fe.length;ee=ee.next;){var ue=ee.data,qe=L>ue.length?ue.length:L;if(qe===ue.length?fe+=ue:fe+=ue.slice(0,L),L-=qe,L===0){qe===ue.length?(++oe,ee.next?D.head=ee.next:D.head=D.tail=null):(D.head=ee,ee.data=ue.slice(qe));break}++oe}return D.length-=oe,fe}function R(L,D){var ee=h.allocUnsafe(L),oe=D.head,fe=1;for(oe.data.copy(ee),L-=oe.data.length;oe=oe.next;){var ue=oe.data,qe=L>ue.length?ue.length:L;if(ue.copy(ee,ee.length-L,0,qe),L-=qe,L===0){qe===ue.length?(++fe,oe.next?D.head=oe.next:D.head=D.tail=null):(D.head=oe,oe.data=ue.slice(qe));break}++fe}return D.length-=fe,ee}function H(L){var D=L._readableState;if(D.length>0)throw new Error('"endReadable()" called on non-empty stream');D.endEmitted||(D.ended=!0,t.nextTick(Y,D,L))}function Y(L,D){!L.endEmitted&&L.length===0&&(L.endEmitted=!0,D.readable=!1,D.emit("end"))}function Z(L,D){for(var ee=0,oe=L.length;ee<oe;ee++)if(L[ee]===D)return ee;return-1}return _stream_readable}var _stream_transform=Transform$1,Duplex=require_stream_duplex(),util$2=Object.create(util$3);util$2.inherits=inherits_browserExports,util$2.inherits(Transform$1,Duplex);function afterTransform(t,n){var l=this._transformState;l.transforming=!1;var d=l.writecb;if(!d)return this.emit("error",new Error("write callback called multiple times"));l.writechunk=null,l.writecb=null,n!=null&&this.push(n),d(t);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function Transform$1(t){if(!(this instanceof Transform$1))return new Transform$1(t);Duplex.call(this,t),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",prefinish)}function prefinish(){var t=this;typeof this._flush=="function"?this._flush(function(n,l){done(t,n,l)}):done(this,null,null)}Transform$1.prototype.push=function(t,n){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,t,n)},Transform$1.prototype._transform=function(t,n,l){throw new Error("_transform() is not implemented")},Transform$1.prototype._write=function(t,n,l){var d=this._transformState;if(d.writecb=l,d.writechunk=t,d.writeencoding=n,!d.transforming){var m=this._readableState;(d.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},Transform$1.prototype._read=function(t){var n=this._transformState;n.writechunk!==null&&n.writecb&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0},Transform$1.prototype._destroy=function(t,n){var l=this;Duplex.prototype._destroy.call(this,t,function(d){n(d),l.emit("close")})};function done(t,n,l){if(n)return t.emit("error",n);if(l!=null&&t.push(l),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}var _stream_passthrough=PassThrough,Transform=_stream_transform,util$1=Object.create(util$3);util$1.inherits=inherits_browserExports,util$1.inherits(PassThrough,Transform);function PassThrough(t){if(!(this instanceof PassThrough))return new PassThrough(t);Transform.call(this,t)}PassThrough.prototype._transform=function(t,n,l){l(null,t)},function(t,n){n=t.exports=require_stream_readable(),n.Stream=n,n.Readable=n,n.Writable=require_stream_writable(),n.Duplex=require_stream_duplex(),n.Transform=_stream_transform,n.PassThrough=_stream_passthrough}(readableBrowser$1,readableBrowser$1.exports);var readableBrowserExports=readableBrowser$1.exports,sign={exports:{}},bn$4={exports:{}};bn$4.exports,function(t){(function(n,l){function d(p,b){if(!p)throw new Error(b||"Assertion failed")}function m(p,b){p.super_=b;var e=function(){};e.prototype=b.prototype,p.prototype=new e,p.prototype.constructor=p}function h(p,b,e){if(h.isBN(p))return p;this.negative=0,this.words=null,this.length=0,this.red=null,p!==null&&((b==="le"||b==="be")&&(e=b,b=10),this._init(p||0,b||10,e||"be"))}typeof n=="object"?n.exports=h:l.BN=h,h.BN=h,h.wordSize=26;var S;try{typeof window<"u"&&typeof window.Buffer<"u"?S=window.Buffer:S=require$$0$3.Buffer}catch{}h.isBN=function(b){return b instanceof h?!0:b!==null&&typeof b=="object"&&b.constructor.wordSize===h.wordSize&&Array.isArray(b.words)},h.max=function(b,e){return b.cmp(e)>0?b:e},h.min=function(b,e){return b.cmp(e)<0?b:e},h.prototype._init=function(b,e,c){if(typeof b=="number")return this._initNumber(b,e,c);if(typeof b=="object")return this._initArray(b,e,c);e==="hex"&&(e=16),d(e===(e|0)&&e>=2&&e<=36),b=b.toString().replace(/\s+/g,"");var y=0;b[0]==="-"&&(y++,this.negative=1),y<b.length&&(e===16?this._parseHex(b,y,c):(this._parseBase(b,e,y),c==="le"&&this._initArray(this.toArray(),e,c)))},h.prototype._initNumber=function(b,e,c){b<0&&(this.negative=1,b=-b),b<67108864?(this.words=[b&67108863],this.length=1):b<4503599627370496?(this.words=[b&67108863,b/67108864&67108863],this.length=2):(d(b<9007199254740992),this.words=[b&67108863,b/67108864&67108863,1],this.length=3),c==="le"&&this._initArray(this.toArray(),e,c)},h.prototype._initArray=function(b,e,c){if(d(typeof b.length=="number"),b.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(b.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var w,v,o=0;if(c==="be")for(y=b.length-1,w=0;y>=0;y-=3)v=b[y]|b[y-1]<<8|b[y-2]<<16,this.words[w]|=v<<o&67108863,this.words[w+1]=v>>>26-o&67108863,o+=24,o>=26&&(o-=26,w++);else if(c==="le")for(y=0,w=0;y<b.length;y+=3)v=b[y]|b[y+1]<<8|b[y+2]<<16,this.words[w]|=v<<o&67108863,this.words[w+1]=v>>>26-o&67108863,o+=24,o>=26&&(o-=26,w++);return this._strip()};function k(p,b){var e=p.charCodeAt(b);if(e>=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;d(!1,"Invalid character in "+p)}function A(p,b,e){var c=k(p,e);return e-1>=b&&(c|=k(p,e-1)<<4),c}h.prototype._parseHex=function(b,e,c){this.length=Math.ceil((b.length-e)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var w=0,v=0,o;if(c==="be")for(y=b.length-1;y>=e;y-=2)o=A(b,e,y)<<w,this.words[v]|=o&67108863,w>=18?(w-=18,v+=1,this.words[v]|=o>>>26):w+=8;else{var x=b.length-e;for(y=x%2===0?e+1:e;y<b.length;y+=2)o=A(b,e,y)<<w,this.words[v]|=o&67108863,w>=18?(w-=18,v+=1,this.words[v]|=o>>>26):w+=8}this._strip()};function B(p,b,e,c){for(var y=0,w=0,v=Math.min(p.length,e),o=b;o<v;o++){var x=p.charCodeAt(o)-48;y*=c,x>=49?w=x-49+10:x>=17?w=x-17+10:w=x,d(x>=0&&w<c,"Invalid character"),y+=w}return y}h.prototype._parseBase=function(b,e,c){this.words=[0],this.length=1;for(var y=0,w=1;w<=67108863;w*=e)y++;y--,w=w/e|0;for(var v=b.length-c,o=v%y,x=Math.min(v,v-o)+c,E=0,R=c;R<x;R+=y)E=B(b,R,R+y,e),this.imuln(w),this.words[0]+E<67108864?this.words[0]+=E:this._iaddn(E);if(o!==0){var H=1;for(E=B(b,R,b.length,e),R=0;R<o;R++)H*=e;this.imuln(H),this.words[0]+E<67108864?this.words[0]+=E:this._iaddn(E)}this._strip()},h.prototype.copy=function(b){b.words=new Array(this.length);for(var e=0;e<this.length;e++)b.words[e]=this.words[e];b.length=this.length,b.negative=this.negative,b.red=this.red};function M(p,b){p.words=b.words,p.length=b.length,p.negative=b.negative,p.red=b.red}if(h.prototype._move=function(b){M(b,this)},h.prototype.clone=function(){var b=new h(null);return this.copy(b),b},h.prototype._expand=function(b){for(;this.length<b;)this.words[this.length++]=0;return this},h.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{h.prototype[Symbol.for("nodejs.util.inspect.custom")]=j}catch{h.prototype.inspect=j}else h.prototype.inspect=j;function j(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var I=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],P=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],$=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(b,e){b=b||10,e=e|0||1;var c;if(b===16||b==="hex"){c="";for(var y=0,w=0,v=0;v<this.length;v++){var o=this.words[v],x=((o<<y|w)&16777215).toString(16);w=o>>>24-y&16777215,y+=2,y>=26&&(y-=26,v--),w!==0||v!==this.length-1?c=I[6-x.length]+x+c:c=x+c}for(w!==0&&(c=w.toString(16)+c);c.length%e!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}if(b===(b|0)&&b>=2&&b<=36){var E=P[b],R=$[b];c="";var H=this.clone();for(H.negative=0;!H.isZero();){var Y=H.modrn(R).toString(b);H=H.idivn(R),H.isZero()?c=Y+c:c=I[E-Y.length]+Y+c}for(this.isZero()&&(c="0"+c);c.length%e!==0;)c="0"+c;return this.negative!==0&&(c="-"+c),c}d(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},h.prototype.toJSON=function(){return this.toString(16,2)},S&&(h.prototype.toBuffer=function(b,e){return this.toArrayLike(S,b,e)}),h.prototype.toArray=function(b,e){return this.toArrayLike(Array,b,e)};var z=function(b,e){return b.allocUnsafe?b.allocUnsafe(e):new b(e)};h.prototype.toArrayLike=function(b,e,c){this._strip();var y=this.byteLength(),w=c||Math.max(1,y);d(y<=w,"byte array longer than desired length"),d(w>0,"Requested array length <= 0");var v=z(b,w),o=e==="le"?"LE":"BE";return this["_toArrayLike"+o](v,y),v},h.prototype._toArrayLikeLE=function(b,e){for(var c=0,y=0,w=0,v=0;w<this.length;w++){var o=this.words[w]<<v|y;b[c++]=o&255,c<b.length&&(b[c++]=o>>8&255),c<b.length&&(b[c++]=o>>16&255),v===6?(c<b.length&&(b[c++]=o>>24&255),y=0,v=0):(y=o>>>24,v+=2)}if(c<b.length)for(b[c++]=y;c<b.length;)b[c++]=0},h.prototype._toArrayLikeBE=function(b,e){for(var c=b.length-1,y=0,w=0,v=0;w<this.length;w++){var o=this.words[w]<<v|y;b[c--]=o&255,c>=0&&(b[c--]=o>>8&255),c>=0&&(b[c--]=o>>16&255),v===6?(c>=0&&(b[c--]=o>>24&255),y=0,v=0):(y=o>>>24,v+=2)}if(c>=0)for(b[c--]=y;c>=0;)b[c--]=0},Math.clz32?h.prototype._countBits=function(b){return 32-Math.clz32(b)}:h.prototype._countBits=function(b){var e=b,c=0;return e>=4096&&(c+=13,e>>>=13),e>=64&&(c+=7,e>>>=7),e>=8&&(c+=4,e>>>=4),e>=2&&(c+=2,e>>>=2),c+e},h.prototype._zeroBits=function(b){if(b===0)return 26;var e=b,c=0;return e&8191||(c+=13,e>>>=13),e&127||(c+=7,e>>>=7),e&15||(c+=4,e>>>=4),e&3||(c+=2,e>>>=2),e&1||c++,c},h.prototype.bitLength=function(){var b=this.words[this.length-1],e=this._countBits(b);return(this.length-1)*26+e};function N(p){for(var b=new Array(p.bitLength()),e=0;e<b.length;e++){var c=e/26|0,y=e%26;b[e]=p.words[c]>>>y&1}return b}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,e=0;e<this.length;e++){var c=this._zeroBits(this.words[e]);if(b+=c,c!==26)break}return b},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(b){return this.negative!==0?this.abs().inotn(b).iaddn(1):this.clone()},h.prototype.fromTwos=function(b){return this.testn(b-1)?this.notn(b).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return this.negative!==0},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(b){for(;this.length<b.length;)this.words[this.length++]=0;for(var e=0;e<b.length;e++)this.words[e]=this.words[e]|b.words[e];return this._strip()},h.prototype.ior=function(b){return d((this.negative|b.negative)===0),this.iuor(b)},h.prototype.or=function(b){return this.length>b.length?this.clone().ior(b):b.clone().ior(this)},h.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},h.prototype.iuand=function(b){var e;this.length>b.length?e=b:e=this;for(var c=0;c<e.length;c++)this.words[c]=this.words[c]&b.words[c];return this.length=e.length,this._strip()},h.prototype.iand=function(b){return d((this.negative|b.negative)===0),this.iuand(b)},h.prototype.and=function(b){return this.length>b.length?this.clone().iand(b):b.clone().iand(this)},h.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},h.prototype.iuxor=function(b){var e,c;this.length>b.length?(e=this,c=b):(e=b,c=this);for(var y=0;y<c.length;y++)this.words[y]=e.words[y]^c.words[y];if(this!==e)for(;y<e.length;y++)this.words[y]=e.words[y];return this.length=e.length,this._strip()},h.prototype.ixor=function(b){return d((this.negative|b.negative)===0),this.iuxor(b)},h.prototype.xor=function(b){return this.length>b.length?this.clone().ixor(b):b.clone().ixor(this)},h.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},h.prototype.inotn=function(b){d(typeof b=="number"&&b>=0);var e=Math.ceil(b/26)|0,c=b%26;this._expand(e),c>0&&e--;for(var y=0;y<e;y++)this.words[y]=~this.words[y]&67108863;return c>0&&(this.words[y]=~this.words[y]&67108863>>26-c),this._strip()},h.prototype.notn=function(b){return this.clone().inotn(b)},h.prototype.setn=function(b,e){d(typeof b=="number"&&b>=0);var c=b/26|0,y=b%26;return this._expand(c+1),e?this.words[c]=this.words[c]|1<<y:this.words[c]=this.words[c]&~(1<<y),this._strip()},h.prototype.iadd=function(b){var e;if(this.negative!==0&&b.negative===0)return this.negative=0,e=this.isub(b),this.negative^=1,this._normSign();if(this.negative===0&&b.negative!==0)return b.negative=0,e=this.isub(b),b.negative=1,e._normSign();var c,y;this.length>b.length?(c=this,y=b):(c=b,y=this);for(var w=0,v=0;v<y.length;v++)e=(c.words[v]|0)+(y.words[v]|0)+w,this.words[v]=e&67108863,w=e>>>26;for(;w!==0&&v<c.length;v++)e=(c.words[v]|0)+w,this.words[v]=e&67108863,w=e>>>26;if(this.length=c.length,w!==0)this.words[this.length]=w,this.length++;else if(c!==this)for(;v<c.length;v++)this.words[v]=c.words[v];return this},h.prototype.add=function(b){var e;return b.negative!==0&&this.negative===0?(b.negative=0,e=this.sub(b),b.negative^=1,e):b.negative===0&&this.negative!==0?(this.negative=0,e=b.sub(this),this.negative=1,e):this.length>b.length?this.clone().iadd(b):b.clone().iadd(this)},h.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var e=this.iadd(b);return b.negative=1,e._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var c=this.cmp(b);if(c===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,w;c>0?(y=this,w=b):(y=b,w=this);for(var v=0,o=0;o<w.length;o++)e=(y.words[o]|0)-(w.words[o]|0)+v,v=e>>26,this.words[o]=e&67108863;for(;v!==0&&o<y.length;o++)e=(y.words[o]|0)+v,v=e>>26,this.words[o]=e&67108863;if(v===0&&o<y.length&&y!==this)for(;o<y.length;o++)this.words[o]=y.words[o];return this.length=Math.max(this.length,o),y!==this&&(this.negative=1),this._strip()},h.prototype.sub=function(b){return this.clone().isub(b)};function F(p,b,e){e.negative=b.negative^p.negative;var c=p.length+b.length|0;e.length=c,c=c-1|0;var y=p.words[0]|0,w=b.words[0]|0,v=y*w,o=v&67108863,x=v/67108864|0;e.words[0]=o;for(var E=1;E<c;E++){for(var R=x>>>26,H=x&67108863,Y=Math.min(E,b.length-1),Z=Math.max(0,E-p.length+1);Z<=Y;Z++){var L=E-Z|0;y=p.words[L]|0,w=b.words[Z]|0,v=y*w+H,R+=v/67108864|0,H=v&67108863}e.words[E]=H|0,x=R|0}return x!==0?e.words[E]=x|0:e.length--,e._strip()}var U=function(b,e,c){var y=b.words,w=e.words,v=c.words,o=0,x,E,R,H=y[0]|0,Y=H&8191,Z=H>>>13,L=y[1]|0,D=L&8191,ee=L>>>13,oe=y[2]|0,fe=oe&8191,ue=oe>>>13,qe=y[3]|0,rt=qe&8191,Ve=qe>>>13,et=y[4]|0,mt=et&8191,Ye=et>>>13,We=y[5]|0,Xe=We&8191,Ge=We>>>13,nt=y[6]|0,Et=nt&8191,Le=nt>>>13,Oe=y[7]|0,$t=Oe&8191,dt=Oe>>>13,gt=y[8]|0,Lt=gt&8191,xe=gt>>>13,X=y[9]|0,pe=X&8191,je=X>>>13,$e=w[0]|0,He=$e&8191,Fe=$e>>>13,Me=w[1]|0,Rt=Me&8191,yt=Me>>>13,le=w[2]|0,wt=le&8191,at=le>>>13,Be=w[3]|0,ot=Be&8191,tt=Be>>>13,kt=w[4]|0,Yt=kt&8191,pt=kt>>>13,It=w[5]|0,Fr=It&8191,Pt=It>>>13,Ot=w[6]|0,Te=Ot&8191,me=Ot>>>13,ce=w[7]|0,ne=ce&8191,_e=ce>>>13,Re=w[8]|0,lt=Re&8191,Ze=Re>>>13,ct=w[9]|0,Nt=ct&8191,Ut=ct>>>13;c.negative=b.negative^e.negative,c.length=19,x=Math.imul(Y,He),E=Math.imul(Y,Fe),E=E+Math.imul(Z,He)|0,R=Math.imul(Z,Fe);var Mr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,x=Math.imul(D,He),E=Math.imul(D,Fe),E=E+Math.imul(ee,He)|0,R=Math.imul(ee,Fe),x=x+Math.imul(Y,Rt)|0,E=E+Math.imul(Y,yt)|0,E=E+Math.imul(Z,Rt)|0,R=R+Math.imul(Z,yt)|0;var Xt=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,x=Math.imul(fe,He),E=Math.imul(fe,Fe),E=E+Math.imul(ue,He)|0,R=Math.imul(ue,Fe),x=x+Math.imul(D,Rt)|0,E=E+Math.imul(D,yt)|0,E=E+Math.imul(ee,Rt)|0,R=R+Math.imul(ee,yt)|0,x=x+Math.imul(Y,wt)|0,E=E+Math.imul(Y,at)|0,E=E+Math.imul(Z,wt)|0,R=R+Math.imul(Z,at)|0;var Sr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,x=Math.imul(rt,He),E=Math.imul(rt,Fe),E=E+Math.imul(Ve,He)|0,R=Math.imul(Ve,Fe),x=x+Math.imul(fe,Rt)|0,E=E+Math.imul(fe,yt)|0,E=E+Math.imul(ue,Rt)|0,R=R+Math.imul(ue,yt)|0,x=x+Math.imul(D,wt)|0,E=E+Math.imul(D,at)|0,E=E+Math.imul(ee,wt)|0,R=R+Math.imul(ee,at)|0,x=x+Math.imul(Y,ot)|0,E=E+Math.imul(Y,tt)|0,E=E+Math.imul(Z,ot)|0,R=R+Math.imul(Z,tt)|0;var rr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(rr>>>26)|0,rr&=67108863,x=Math.imul(mt,He),E=Math.imul(mt,Fe),E=E+Math.imul(Ye,He)|0,R=Math.imul(Ye,Fe),x=x+Math.imul(rt,Rt)|0,E=E+Math.imul(rt,yt)|0,E=E+Math.imul(Ve,Rt)|0,R=R+Math.imul(Ve,yt)|0,x=x+Math.imul(fe,wt)|0,E=E+Math.imul(fe,at)|0,E=E+Math.imul(ue,wt)|0,R=R+Math.imul(ue,at)|0,x=x+Math.imul(D,ot)|0,E=E+Math.imul(D,tt)|0,E=E+Math.imul(ee,ot)|0,R=R+Math.imul(ee,tt)|0,x=x+Math.imul(Y,Yt)|0,E=E+Math.imul(Y,pt)|0,E=E+Math.imul(Z,Yt)|0,R=R+Math.imul(Z,pt)|0;var er=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(er>>>26)|0,er&=67108863,x=Math.imul(Xe,He),E=Math.imul(Xe,Fe),E=E+Math.imul(Ge,He)|0,R=Math.imul(Ge,Fe),x=x+Math.imul(mt,Rt)|0,E=E+Math.imul(mt,yt)|0,E=E+Math.imul(Ye,Rt)|0,R=R+Math.imul(Ye,yt)|0,x=x+Math.imul(rt,wt)|0,E=E+Math.imul(rt,at)|0,E=E+Math.imul(Ve,wt)|0,R=R+Math.imul(Ve,at)|0,x=x+Math.imul(fe,ot)|0,E=E+Math.imul(fe,tt)|0,E=E+Math.imul(ue,ot)|0,R=R+Math.imul(ue,tt)|0,x=x+Math.imul(D,Yt)|0,E=E+Math.imul(D,pt)|0,E=E+Math.imul(ee,Yt)|0,R=R+Math.imul(ee,pt)|0,x=x+Math.imul(Y,Fr)|0,E=E+Math.imul(Y,Pt)|0,E=E+Math.imul(Z,Fr)|0,R=R+Math.imul(Z,Pt)|0;var kr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(kr>>>26)|0,kr&=67108863,x=Math.imul(Et,He),E=Math.imul(Et,Fe),E=E+Math.imul(Le,He)|0,R=Math.imul(Le,Fe),x=x+Math.imul(Xe,Rt)|0,E=E+Math.imul(Xe,yt)|0,E=E+Math.imul(Ge,Rt)|0,R=R+Math.imul(Ge,yt)|0,x=x+Math.imul(mt,wt)|0,E=E+Math.imul(mt,at)|0,E=E+Math.imul(Ye,wt)|0,R=R+Math.imul(Ye,at)|0,x=x+Math.imul(rt,ot)|0,E=E+Math.imul(rt,tt)|0,E=E+Math.imul(Ve,ot)|0,R=R+Math.imul(Ve,tt)|0,x=x+Math.imul(fe,Yt)|0,E=E+Math.imul(fe,pt)|0,E=E+Math.imul(ue,Yt)|0,R=R+Math.imul(ue,pt)|0,x=x+Math.imul(D,Fr)|0,E=E+Math.imul(D,Pt)|0,E=E+Math.imul(ee,Fr)|0,R=R+Math.imul(ee,Pt)|0,x=x+Math.imul(Y,Te)|0,E=E+Math.imul(Y,me)|0,E=E+Math.imul(Z,Te)|0,R=R+Math.imul(Z,me)|0;var vr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(vr>>>26)|0,vr&=67108863,x=Math.imul($t,He),E=Math.imul($t,Fe),E=E+Math.imul(dt,He)|0,R=Math.imul(dt,Fe),x=x+Math.imul(Et,Rt)|0,E=E+Math.imul(Et,yt)|0,E=E+Math.imul(Le,Rt)|0,R=R+Math.imul(Le,yt)|0,x=x+Math.imul(Xe,wt)|0,E=E+Math.imul(Xe,at)|0,E=E+Math.imul(Ge,wt)|0,R=R+Math.imul(Ge,at)|0,x=x+Math.imul(mt,ot)|0,E=E+Math.imul(mt,tt)|0,E=E+Math.imul(Ye,ot)|0,R=R+Math.imul(Ye,tt)|0,x=x+Math.imul(rt,Yt)|0,E=E+Math.imul(rt,pt)|0,E=E+Math.imul(Ve,Yt)|0,R=R+Math.imul(Ve,pt)|0,x=x+Math.imul(fe,Fr)|0,E=E+Math.imul(fe,Pt)|0,E=E+Math.imul(ue,Fr)|0,R=R+Math.imul(ue,Pt)|0,x=x+Math.imul(D,Te)|0,E=E+Math.imul(D,me)|0,E=E+Math.imul(ee,Te)|0,R=R+Math.imul(ee,me)|0,x=x+Math.imul(Y,ne)|0,E=E+Math.imul(Y,_e)|0,E=E+Math.imul(Z,ne)|0,R=R+Math.imul(Z,_e)|0;var Pr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,x=Math.imul(Lt,He),E=Math.imul(Lt,Fe),E=E+Math.imul(xe,He)|0,R=Math.imul(xe,Fe),x=x+Math.imul($t,Rt)|0,E=E+Math.imul($t,yt)|0,E=E+Math.imul(dt,Rt)|0,R=R+Math.imul(dt,yt)|0,x=x+Math.imul(Et,wt)|0,E=E+Math.imul(Et,at)|0,E=E+Math.imul(Le,wt)|0,R=R+Math.imul(Le,at)|0,x=x+Math.imul(Xe,ot)|0,E=E+Math.imul(Xe,tt)|0,E=E+Math.imul(Ge,ot)|0,R=R+Math.imul(Ge,tt)|0,x=x+Math.imul(mt,Yt)|0,E=E+Math.imul(mt,pt)|0,E=E+Math.imul(Ye,Yt)|0,R=R+Math.imul(Ye,pt)|0,x=x+Math.imul(rt,Fr)|0,E=E+Math.imul(rt,Pt)|0,E=E+Math.imul(Ve,Fr)|0,R=R+Math.imul(Ve,Pt)|0,x=x+Math.imul(fe,Te)|0,E=E+Math.imul(fe,me)|0,E=E+Math.imul(ue,Te)|0,R=R+Math.imul(ue,me)|0,x=x+Math.imul(D,ne)|0,E=E+Math.imul(D,_e)|0,E=E+Math.imul(ee,ne)|0,R=R+Math.imul(ee,_e)|0,x=x+Math.imul(Y,lt)|0,E=E+Math.imul(Y,Ze)|0,E=E+Math.imul(Z,lt)|0,R=R+Math.imul(Z,Ze)|0;var Tr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,x=Math.imul(pe,He),E=Math.imul(pe,Fe),E=E+Math.imul(je,He)|0,R=Math.imul(je,Fe),x=x+Math.imul(Lt,Rt)|0,E=E+Math.imul(Lt,yt)|0,E=E+Math.imul(xe,Rt)|0,R=R+Math.imul(xe,yt)|0,x=x+Math.imul($t,wt)|0,E=E+Math.imul($t,at)|0,E=E+Math.imul(dt,wt)|0,R=R+Math.imul(dt,at)|0,x=x+Math.imul(Et,ot)|0,E=E+Math.imul(Et,tt)|0,E=E+Math.imul(Le,ot)|0,R=R+Math.imul(Le,tt)|0,x=x+Math.imul(Xe,Yt)|0,E=E+Math.imul(Xe,pt)|0,E=E+Math.imul(Ge,Yt)|0,R=R+Math.imul(Ge,pt)|0,x=x+Math.imul(mt,Fr)|0,E=E+Math.imul(mt,Pt)|0,E=E+Math.imul(Ye,Fr)|0,R=R+Math.imul(Ye,Pt)|0,x=x+Math.imul(rt,Te)|0,E=E+Math.imul(rt,me)|0,E=E+Math.imul(Ve,Te)|0,R=R+Math.imul(Ve,me)|0,x=x+Math.imul(fe,ne)|0,E=E+Math.imul(fe,_e)|0,E=E+Math.imul(ue,ne)|0,R=R+Math.imul(ue,_e)|0,x=x+Math.imul(D,lt)|0,E=E+Math.imul(D,Ze)|0,E=E+Math.imul(ee,lt)|0,R=R+Math.imul(ee,Ze)|0,x=x+Math.imul(Y,Nt)|0,E=E+Math.imul(Y,Ut)|0,E=E+Math.imul(Z,Nt)|0,R=R+Math.imul(Z,Ut)|0;var br=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(br>>>26)|0,br&=67108863,x=Math.imul(pe,Rt),E=Math.imul(pe,yt),E=E+Math.imul(je,Rt)|0,R=Math.imul(je,yt),x=x+Math.imul(Lt,wt)|0,E=E+Math.imul(Lt,at)|0,E=E+Math.imul(xe,wt)|0,R=R+Math.imul(xe,at)|0,x=x+Math.imul($t,ot)|0,E=E+Math.imul($t,tt)|0,E=E+Math.imul(dt,ot)|0,R=R+Math.imul(dt,tt)|0,x=x+Math.imul(Et,Yt)|0,E=E+Math.imul(Et,pt)|0,E=E+Math.imul(Le,Yt)|0,R=R+Math.imul(Le,pt)|0,x=x+Math.imul(Xe,Fr)|0,E=E+Math.imul(Xe,Pt)|0,E=E+Math.imul(Ge,Fr)|0,R=R+Math.imul(Ge,Pt)|0,x=x+Math.imul(mt,Te)|0,E=E+Math.imul(mt,me)|0,E=E+Math.imul(Ye,Te)|0,R=R+Math.imul(Ye,me)|0,x=x+Math.imul(rt,ne)|0,E=E+Math.imul(rt,_e)|0,E=E+Math.imul(Ve,ne)|0,R=R+Math.imul(Ve,_e)|0,x=x+Math.imul(fe,lt)|0,E=E+Math.imul(fe,Ze)|0,E=E+Math.imul(ue,lt)|0,R=R+Math.imul(ue,Ze)|0,x=x+Math.imul(D,Nt)|0,E=E+Math.imul(D,Ut)|0,E=E+Math.imul(ee,Nt)|0,R=R+Math.imul(ee,Ut)|0;var Ar=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,x=Math.imul(pe,wt),E=Math.imul(pe,at),E=E+Math.imul(je,wt)|0,R=Math.imul(je,at),x=x+Math.imul(Lt,ot)|0,E=E+Math.imul(Lt,tt)|0,E=E+Math.imul(xe,ot)|0,R=R+Math.imul(xe,tt)|0,x=x+Math.imul($t,Yt)|0,E=E+Math.imul($t,pt)|0,E=E+Math.imul(dt,Yt)|0,R=R+Math.imul(dt,pt)|0,x=x+Math.imul(Et,Fr)|0,E=E+Math.imul(Et,Pt)|0,E=E+Math.imul(Le,Fr)|0,R=R+Math.imul(Le,Pt)|0,x=x+Math.imul(Xe,Te)|0,E=E+Math.imul(Xe,me)|0,E=E+Math.imul(Ge,Te)|0,R=R+Math.imul(Ge,me)|0,x=x+Math.imul(mt,ne)|0,E=E+Math.imul(mt,_e)|0,E=E+Math.imul(Ye,ne)|0,R=R+Math.imul(Ye,_e)|0,x=x+Math.imul(rt,lt)|0,E=E+Math.imul(rt,Ze)|0,E=E+Math.imul(Ve,lt)|0,R=R+Math.imul(Ve,Ze)|0,x=x+Math.imul(fe,Nt)|0,E=E+Math.imul(fe,Ut)|0,E=E+Math.imul(ue,Nt)|0,R=R+Math.imul(ue,Ut)|0;var gr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(gr>>>26)|0,gr&=67108863,x=Math.imul(pe,ot),E=Math.imul(pe,tt),E=E+Math.imul(je,ot)|0,R=Math.imul(je,tt),x=x+Math.imul(Lt,Yt)|0,E=E+Math.imul(Lt,pt)|0,E=E+Math.imul(xe,Yt)|0,R=R+Math.imul(xe,pt)|0,x=x+Math.imul($t,Fr)|0,E=E+Math.imul($t,Pt)|0,E=E+Math.imul(dt,Fr)|0,R=R+Math.imul(dt,Pt)|0,x=x+Math.imul(Et,Te)|0,E=E+Math.imul(Et,me)|0,E=E+Math.imul(Le,Te)|0,R=R+Math.imul(Le,me)|0,x=x+Math.imul(Xe,ne)|0,E=E+Math.imul(Xe,_e)|0,E=E+Math.imul(Ge,ne)|0,R=R+Math.imul(Ge,_e)|0,x=x+Math.imul(mt,lt)|0,E=E+Math.imul(mt,Ze)|0,E=E+Math.imul(Ye,lt)|0,R=R+Math.imul(Ye,Ze)|0,x=x+Math.imul(rt,Nt)|0,E=E+Math.imul(rt,Ut)|0,E=E+Math.imul(Ve,Nt)|0,R=R+Math.imul(Ve,Ut)|0;var dr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(dr>>>26)|0,dr&=67108863,x=Math.imul(pe,Yt),E=Math.imul(pe,pt),E=E+Math.imul(je,Yt)|0,R=Math.imul(je,pt),x=x+Math.imul(Lt,Fr)|0,E=E+Math.imul(Lt,Pt)|0,E=E+Math.imul(xe,Fr)|0,R=R+Math.imul(xe,Pt)|0,x=x+Math.imul($t,Te)|0,E=E+Math.imul($t,me)|0,E=E+Math.imul(dt,Te)|0,R=R+Math.imul(dt,me)|0,x=x+Math.imul(Et,ne)|0,E=E+Math.imul(Et,_e)|0,E=E+Math.imul(Le,ne)|0,R=R+Math.imul(Le,_e)|0,x=x+Math.imul(Xe,lt)|0,E=E+Math.imul(Xe,Ze)|0,E=E+Math.imul(Ge,lt)|0,R=R+Math.imul(Ge,Ze)|0,x=x+Math.imul(mt,Nt)|0,E=E+Math.imul(mt,Ut)|0,E=E+Math.imul(Ye,Nt)|0,R=R+Math.imul(Ye,Ut)|0;var lr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(lr>>>26)|0,lr&=67108863,x=Math.imul(pe,Fr),E=Math.imul(pe,Pt),E=E+Math.imul(je,Fr)|0,R=Math.imul(je,Pt),x=x+Math.imul(Lt,Te)|0,E=E+Math.imul(Lt,me)|0,E=E+Math.imul(xe,Te)|0,R=R+Math.imul(xe,me)|0,x=x+Math.imul($t,ne)|0,E=E+Math.imul($t,_e)|0,E=E+Math.imul(dt,ne)|0,R=R+Math.imul(dt,_e)|0,x=x+Math.imul(Et,lt)|0,E=E+Math.imul(Et,Ze)|0,E=E+Math.imul(Le,lt)|0,R=R+Math.imul(Le,Ze)|0,x=x+Math.imul(Xe,Nt)|0,E=E+Math.imul(Xe,Ut)|0,E=E+Math.imul(Ge,Nt)|0,R=R+Math.imul(Ge,Ut)|0;var Kt=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,x=Math.imul(pe,Te),E=Math.imul(pe,me),E=E+Math.imul(je,Te)|0,R=Math.imul(je,me),x=x+Math.imul(Lt,ne)|0,E=E+Math.imul(Lt,_e)|0,E=E+Math.imul(xe,ne)|0,R=R+Math.imul(xe,_e)|0,x=x+Math.imul($t,lt)|0,E=E+Math.imul($t,Ze)|0,E=E+Math.imul(dt,lt)|0,R=R+Math.imul(dt,Ze)|0,x=x+Math.imul(Et,Nt)|0,E=E+Math.imul(Et,Ut)|0,E=E+Math.imul(Le,Nt)|0,R=R+Math.imul(Le,Ut)|0;var Bt=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,x=Math.imul(pe,ne),E=Math.imul(pe,_e),E=E+Math.imul(je,ne)|0,R=Math.imul(je,_e),x=x+Math.imul(Lt,lt)|0,E=E+Math.imul(Lt,Ze)|0,E=E+Math.imul(xe,lt)|0,R=R+Math.imul(xe,Ze)|0,x=x+Math.imul($t,Nt)|0,E=E+Math.imul($t,Ut)|0,E=E+Math.imul(dt,Nt)|0,R=R+Math.imul(dt,Ut)|0;var Ft=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,x=Math.imul(pe,lt),E=Math.imul(pe,Ze),E=E+Math.imul(je,lt)|0,R=Math.imul(je,Ze),x=x+Math.imul(Lt,Nt)|0,E=E+Math.imul(Lt,Ut)|0,E=E+Math.imul(xe,Nt)|0,R=R+Math.imul(xe,Ut)|0;var cr=(o+x|0)+((E&8191)<<13)|0;o=(R+(E>>>13)|0)+(cr>>>26)|0,cr&=67108863,x=Math.imul(pe,Nt),E=Math.imul(pe,Ut),E=E+Math.imul(je,Nt)|0,R=Math.imul(je,Ut);var nr=(o+x|0)+((E&8191)<<13)|0;return o=(R+(E>>>13)|0)+(nr>>>26)|0,nr&=67108863,v[0]=Mr,v[1]=Xt,v[2]=Sr,v[3]=rr,v[4]=er,v[5]=kr,v[6]=vr,v[7]=Pr,v[8]=Tr,v[9]=br,v[10]=Ar,v[11]=gr,v[12]=dr,v[13]=lr,v[14]=Kt,v[15]=Bt,v[16]=Ft,v[17]=cr,v[18]=nr,o!==0&&(v[19]=o,c.length++),c};Math.imul||(U=F);function J(p,b,e){e.negative=b.negative^p.negative,e.length=p.length+b.length;for(var c=0,y=0,w=0;w<e.length-1;w++){var v=y;y=0;for(var o=c&67108863,x=Math.min(w,b.length-1),E=Math.max(0,w-p.length+1);E<=x;E++){var R=w-E,H=p.words[R]|0,Y=b.words[E]|0,Z=H*Y,L=Z&67108863;v=v+(Z/67108864|0)|0,L=L+o|0,o=L&67108863,v=v+(L>>>26)|0,y+=v>>>26,v&=67108863}e.words[w]=o,c=v,v=y}return c!==0?e.words[w]=c:e.length--,e._strip()}function te(p,b,e){return J(p,b,e)}h.prototype.mulTo=function(b,e){var c,y=this.length+b.length;return this.length===10&&b.length===10?c=U(this,b,e):y<63?c=F(this,b,e):y<1024?c=J(this,b,e):c=te(this,b,e),c},h.prototype.mul=function(b){var e=new h(null);return e.words=new Array(this.length+b.length),this.mulTo(b,e)},h.prototype.mulf=function(b){var e=new h(null);return e.words=new Array(this.length+b.length),te(this,b,e)},h.prototype.imul=function(b){return this.clone().mulTo(b,this)},h.prototype.imuln=function(b){var e=b<0;e&&(b=-b),d(typeof b=="number"),d(b<67108864);for(var c=0,y=0;y<this.length;y++){var w=(this.words[y]|0)*b,v=(w&67108863)+(c&67108863);c>>=26,c+=w/67108864|0,c+=v>>>26,this.words[y]=v&67108863}return c!==0&&(this.words[y]=c,this.length++),e?this.ineg():this},h.prototype.muln=function(b){return this.clone().imuln(b)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(b){var e=N(b);if(e.length===0)return new h(1);for(var c=this,y=0;y<e.length&&e[y]===0;y++,c=c.sqr());if(++y<e.length)for(var w=c.sqr();y<e.length;y++,w=w.sqr())e[y]!==0&&(c=c.mul(w));return c},h.prototype.iushln=function(b){d(typeof b=="number"&&b>=0);var e=b%26,c=(b-e)/26,y=67108863>>>26-e<<26-e,w;if(e!==0){var v=0;for(w=0;w<this.length;w++){var o=this.words[w]&y,x=(this.words[w]|0)-o<<e;this.words[w]=x|v,v=o>>>26-e}v&&(this.words[w]=v,this.length++)}if(c!==0){for(w=this.length-1;w>=0;w--)this.words[w+c]=this.words[w];for(w=0;w<c;w++)this.words[w]=0;this.length+=c}return this._strip()},h.prototype.ishln=function(b){return d(this.negative===0),this.iushln(b)},h.prototype.iushrn=function(b,e,c){d(typeof b=="number"&&b>=0);var y;e?y=(e-e%26)/26:y=0;var w=b%26,v=Math.min((b-w)/26,this.length),o=67108863^67108863>>>w<<w,x=c;if(y-=v,y=Math.max(0,y),x){for(var E=0;E<v;E++)x.words[E]=this.words[E];x.length=v}if(v!==0)if(this.length>v)for(this.length-=v,E=0;E<this.length;E++)this.words[E]=this.words[E+v];else this.words[0]=0,this.length=1;var R=0;for(E=this.length-1;E>=0&&(R!==0||E>=y);E--){var H=this.words[E]|0;this.words[E]=R<<26-w|H>>>w,R=H&o}return x&&R!==0&&(x.words[x.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},h.prototype.ishrn=function(b,e,c){return d(this.negative===0),this.iushrn(b,e,c)},h.prototype.shln=function(b){return this.clone().ishln(b)},h.prototype.ushln=function(b){return this.clone().iushln(b)},h.prototype.shrn=function(b){return this.clone().ishrn(b)},h.prototype.ushrn=function(b){return this.clone().iushrn(b)},h.prototype.testn=function(b){d(typeof b=="number"&&b>=0);var e=b%26,c=(b-e)/26,y=1<<e;if(this.length<=c)return!1;var w=this.words[c];return!!(w&y)},h.prototype.imaskn=function(b){d(typeof b=="number"&&b>=0);var e=b%26,c=(b-e)/26;if(d(this.negative===0,"imaskn works only with positive numbers"),this.length<=c)return this;if(e!==0&&c++,this.length=Math.min(c,this.length),e!==0){var y=67108863^67108863>>>e<<e;this.words[this.length-1]&=y}return this._strip()},h.prototype.maskn=function(b){return this.clone().imaskn(b)},h.prototype.iaddn=function(b){return d(typeof b=="number"),d(b<67108864),b<0?this.isubn(-b):this.negative!==0?this.length===1&&(this.words[0]|0)<=b?(this.words[0]=b-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(b),this.negative=1,this):this._iaddn(b)},h.prototype._iaddn=function(b){this.words[0]+=b;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},h.prototype.isubn=function(b){if(d(typeof b=="number"),d(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},h.prototype.addn=function(b){return this.clone().iaddn(b)},h.prototype.subn=function(b){return this.clone().isubn(b)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(b,e,c){var y=b.length+c,w;this._expand(y);var v,o=0;for(w=0;w<b.length;w++){v=(this.words[w+c]|0)+o;var x=(b.words[w]|0)*e;v-=x&67108863,o=(v>>26)-(x/67108864|0),this.words[w+c]=v&67108863}for(;w<this.length-c;w++)v=(this.words[w+c]|0)+o,o=v>>26,this.words[w+c]=v&67108863;if(o===0)return this._strip();for(d(o===-1),o=0,w=0;w<this.length;w++)v=-(this.words[w]|0)+o,o=v>>26,this.words[w]=v&67108863;return this.negative=1,this._strip()},h.prototype._wordDiv=function(b,e){var c=this.length-b.length,y=this.clone(),w=b,v=w.words[w.length-1]|0,o=this._countBits(v);c=26-o,c!==0&&(w=w.ushln(c),y.iushln(c),v=w.words[w.length-1]|0);var x=y.length-w.length,E;if(e!=="mod"){E=new h(null),E.length=x+1,E.words=new Array(E.length);for(var R=0;R<E.length;R++)E.words[R]=0}var H=y.clone()._ishlnsubmul(w,1,x);H.negative===0&&(y=H,E&&(E.words[x]=1));for(var Y=x-1;Y>=0;Y--){var Z=(y.words[w.length+Y]|0)*67108864+(y.words[w.length+Y-1]|0);for(Z=Math.min(Z/v|0,67108863),y._ishlnsubmul(w,Z,Y);y.negative!==0;)Z--,y.negative=0,y._ishlnsubmul(w,1,Y),y.isZero()||(y.negative^=1);E&&(E.words[Y]=Z)}return E&&E._strip(),y._strip(),e!=="div"&&c!==0&&y.iushrn(c),{div:E||null,mod:y}},h.prototype.divmod=function(b,e,c){if(d(!b.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var y,w,v;return this.negative!==0&&b.negative===0?(v=this.neg().divmod(b,e),e!=="mod"&&(y=v.div.neg()),e!=="div"&&(w=v.mod.neg(),c&&w.negative!==0&&w.iadd(b)),{div:y,mod:w}):this.negative===0&&b.negative!==0?(v=this.divmod(b.neg(),e),e!=="mod"&&(y=v.div.neg()),{div:y,mod:v.mod}):this.negative&b.negative?(v=this.neg().divmod(b.neg(),e),e!=="div"&&(w=v.mod.neg(),c&&w.negative!==0&&w.isub(b)),{div:v.div,mod:w}):b.length>this.length||this.cmp(b)<0?{div:new h(0),mod:this}:b.length===1?e==="div"?{div:this.divn(b.words[0]),mod:null}:e==="mod"?{div:null,mod:new h(this.modrn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new h(this.modrn(b.words[0]))}:this._wordDiv(b,e)},h.prototype.div=function(b){return this.divmod(b,"div",!1).div},h.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},h.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},h.prototype.divRound=function(b){var e=this.divmod(b);if(e.mod.isZero())return e.div;var c=e.div.negative!==0?e.mod.isub(b):e.mod,y=b.ushrn(1),w=b.andln(1),v=c.cmp(y);return v<0||w===1&&v===0?e.div:e.div.negative!==0?e.div.isubn(1):e.div.iaddn(1)},h.prototype.modrn=function(b){var e=b<0;e&&(b=-b),d(b<=67108863);for(var c=(1<<26)%b,y=0,w=this.length-1;w>=0;w--)y=(c*y+(this.words[w]|0))%b;return e?-y:y},h.prototype.modn=function(b){return this.modrn(b)},h.prototype.idivn=function(b){var e=b<0;e&&(b=-b),d(b<=67108863);for(var c=0,y=this.length-1;y>=0;y--){var w=(this.words[y]|0)+c*67108864;this.words[y]=w/b|0,c=w%b}return this._strip(),e?this.ineg():this},h.prototype.divn=function(b){return this.clone().idivn(b)},h.prototype.egcd=function(b){d(b.negative===0),d(!b.isZero());var e=this,c=b.clone();e.negative!==0?e=e.umod(b):e=e.clone();for(var y=new h(1),w=new h(0),v=new h(0),o=new h(1),x=0;e.isEven()&&c.isEven();)e.iushrn(1),c.iushrn(1),++x;for(var E=c.clone(),R=e.clone();!e.isZero();){for(var H=0,Y=1;!(e.words[0]&Y)&&H<26;++H,Y<<=1);if(H>0)for(e.iushrn(H);H-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(E),w.isub(R)),y.iushrn(1),w.iushrn(1);for(var Z=0,L=1;!(c.words[0]&L)&&Z<26;++Z,L<<=1);if(Z>0)for(c.iushrn(Z);Z-- >0;)(v.isOdd()||o.isOdd())&&(v.iadd(E),o.isub(R)),v.iushrn(1),o.iushrn(1);e.cmp(c)>=0?(e.isub(c),y.isub(v),w.isub(o)):(c.isub(e),v.isub(y),o.isub(w))}return{a:v,b:o,gcd:c.iushln(x)}},h.prototype._invmp=function(b){d(b.negative===0),d(!b.isZero());var e=this,c=b.clone();e.negative!==0?e=e.umod(b):e=e.clone();for(var y=new h(1),w=new h(0),v=c.clone();e.cmpn(1)>0&&c.cmpn(1)>0;){for(var o=0,x=1;!(e.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(e.iushrn(o);o-- >0;)y.isOdd()&&y.iadd(v),y.iushrn(1);for(var E=0,R=1;!(c.words[0]&R)&&E<26;++E,R<<=1);if(E>0)for(c.iushrn(E);E-- >0;)w.isOdd()&&w.iadd(v),w.iushrn(1);e.cmp(c)>=0?(e.isub(c),y.isub(w)):(c.isub(e),w.isub(y))}var H;return e.cmpn(1)===0?H=y:H=w,H.cmpn(0)<0&&H.iadd(b),H},h.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var e=this.clone(),c=b.clone();e.negative=0,c.negative=0;for(var y=0;e.isEven()&&c.isEven();y++)e.iushrn(1),c.iushrn(1);do{for(;e.isEven();)e.iushrn(1);for(;c.isEven();)c.iushrn(1);var w=e.cmp(c);if(w<0){var v=e;e=c,c=v}else if(w===0||c.cmpn(1)===0)break;e.isub(c)}while(!0);return c.iushln(y)},h.prototype.invm=function(b){return this.egcd(b).a.umod(b)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(b){return this.words[0]&b},h.prototype.bincn=function(b){d(typeof b=="number");var e=b%26,c=(b-e)/26,y=1<<e;if(this.length<=c)return this._expand(c+1),this.words[c]|=y,this;for(var w=y,v=c;w!==0&&v<this.length;v++){var o=this.words[v]|0;o+=w,w=o>>>26,o&=67108863,this.words[v]=o}return w!==0&&(this.words[v]=w,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(b){var e=b<0;if(this.negative!==0&&!e)return-1;if(this.negative===0&&e)return 1;this._strip();var c;if(this.length>1)c=1;else{e&&(b=-b),d(b<=67108863,"Number is too big");var y=this.words[0]|0;c=y===b?0:y<b?-1:1}return this.negative!==0?-c|0:c},h.prototype.cmp=function(b){if(this.negative!==0&&b.negative===0)return-1;if(this.negative===0&&b.negative!==0)return 1;var e=this.ucmp(b);return this.negative!==0?-e|0:e},h.prototype.ucmp=function(b){if(this.length>b.length)return 1;if(this.length<b.length)return-1;for(var e=0,c=this.length-1;c>=0;c--){var y=this.words[c]|0,w=b.words[c]|0;if(y!==w){y<w?e=-1:y>w&&(e=1);break}}return e},h.prototype.gtn=function(b){return this.cmpn(b)===1},h.prototype.gt=function(b){return this.cmp(b)===1},h.prototype.gten=function(b){return this.cmpn(b)>=0},h.prototype.gte=function(b){return this.cmp(b)>=0},h.prototype.ltn=function(b){return this.cmpn(b)===-1},h.prototype.lt=function(b){return this.cmp(b)===-1},h.prototype.lten=function(b){return this.cmpn(b)<=0},h.prototype.lte=function(b){return this.cmp(b)<=0},h.prototype.eqn=function(b){return this.cmpn(b)===0},h.prototype.eq=function(b){return this.cmp(b)===0},h.red=function(b){return new T(b)},h.prototype.toRed=function(b){return d(!this.red,"Already a number in reduction context"),d(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},h.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(b){return this.red=b,this},h.prototype.forceRed=function(b){return d(!this.red,"Already a number in reduction context"),this._forceRed(b)},h.prototype.redAdd=function(b){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},h.prototype.redIAdd=function(b){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},h.prototype.redSub=function(b){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},h.prototype.redISub=function(b){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},h.prototype.redShl=function(b){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},h.prototype.redMul=function(b){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},h.prototype.redIMul=function(b){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},h.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(b){return d(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var se={k256:null,p224:null,p192:null,p25519:null};function de(p,b){this.name=p,this.p=new h(b,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}de.prototype._tmp=function(){var b=new h(null);return b.words=new Array(Math.ceil(this.n/13)),b},de.prototype.ireduce=function(b){var e=b,c;do this.split(e,this.tmp),e=this.imulK(e),e=e.iadd(this.tmp),c=e.bitLength();while(c>this.n);var y=c<this.n?-1:e.ucmp(this.p);return y===0?(e.words[0]=0,e.length=1):y>0?e.isub(this.p):e.strip!==void 0?e.strip():e._strip(),e},de.prototype.split=function(b,e){b.iushrn(this.n,0,e)},de.prototype.imulK=function(b){return b.imul(this.k)};function Q(){de.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(Q,de),Q.prototype.split=function(b,e){for(var c=4194303,y=Math.min(b.length,9),w=0;w<y;w++)e.words[w]=b.words[w];if(e.length=y,b.length<=9){b.words[0]=0,b.length=1;return}var v=b.words[9];for(e.words[e.length++]=v&c,w=10;w<b.length;w++){var o=b.words[w]|0;b.words[w-10]=(o&c)<<4|v>>>22,v=o}v>>>=22,b.words[w-10]=v,v===0&&b.length>10?b.length-=10:b.length-=9},Q.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var e=0,c=0;c<b.length;c++){var y=b.words[c]|0;e+=y*977,b.words[c]=e&67108863,e=y*64+(e/67108864|0)}return b.words[b.length-1]===0&&(b.length--,b.words[b.length-1]===0&&b.length--),b};function ve(){de.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(ve,de);function he(){de.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(he,de);function ke(){de.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ke,de),ke.prototype.imulK=function(b){for(var e=0,c=0;c<b.length;c++){var y=(b.words[c]|0)*19+e,w=y&67108863;y>>>=26,b.words[c]=w,e=y}return e!==0&&(b.words[b.length++]=e),b},h._prime=function(b){if(se[b])return se[b];var e;if(b==="k256")e=new Q;else if(b==="p224")e=new ve;else if(b==="p192")e=new he;else if(b==="p25519")e=new ke;else throw new Error("Unknown prime "+b);return se[b]=e,e};function T(p){if(typeof p=="string"){var b=h._prime(p);this.m=b.p,this.prime=b}else d(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}T.prototype._verify1=function(b){d(b.negative===0,"red works only with positives"),d(b.red,"red works only with red numbers")},T.prototype._verify2=function(b,e){d((b.negative|e.negative)===0,"red works only with positives"),d(b.red&&b.red===e.red,"red works only with red numbers")},T.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):(M(b,b.umod(this.m)._forceRed(this)),b)},T.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},T.prototype.add=function(b,e){this._verify2(b,e);var c=b.add(e);return c.cmp(this.m)>=0&&c.isub(this.m),c._forceRed(this)},T.prototype.iadd=function(b,e){this._verify2(b,e);var c=b.iadd(e);return c.cmp(this.m)>=0&&c.isub(this.m),c},T.prototype.sub=function(b,e){this._verify2(b,e);var c=b.sub(e);return c.cmpn(0)<0&&c.iadd(this.m),c._forceRed(this)},T.prototype.isub=function(b,e){this._verify2(b,e);var c=b.isub(e);return c.cmpn(0)<0&&c.iadd(this.m),c},T.prototype.shl=function(b,e){return this._verify1(b),this.imod(b.ushln(e))},T.prototype.imul=function(b,e){return this._verify2(b,e),this.imod(b.imul(e))},T.prototype.mul=function(b,e){return this._verify2(b,e),this.imod(b.mul(e))},T.prototype.isqr=function(b){return this.imul(b,b.clone())},T.prototype.sqr=function(b){return this.mul(b,b)},T.prototype.sqrt=function(b){if(b.isZero())return b.clone();var e=this.m.andln(3);if(d(e%2===1),e===3){var c=this.m.add(new h(1)).iushrn(2);return this.pow(b,c)}for(var y=this.m.subn(1),w=0;!y.isZero()&&y.andln(1)===0;)w++,y.iushrn(1);d(!y.isZero());var v=new h(1).toRed(this),o=v.redNeg(),x=this.m.subn(1).iushrn(1),E=this.m.bitLength();for(E=new h(2*E*E).toRed(this);this.pow(E,x).cmp(o)!==0;)E.redIAdd(o);for(var R=this.pow(E,y),H=this.pow(b,y.addn(1).iushrn(1)),Y=this.pow(b,y),Z=w;Y.cmp(v)!==0;){for(var L=Y,D=0;L.cmp(v)!==0;D++)L=L.redSqr();d(D<Z);var ee=this.pow(R,new h(1).iushln(Z-D-1));H=H.redMul(ee),R=ee.redSqr(),Y=Y.redMul(R),Z=D}return H},T.prototype.invm=function(b){var e=b._invmp(this.m);return e.negative!==0?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},T.prototype.pow=function(b,e){if(e.isZero())return new h(1).toRed(this);if(e.cmpn(1)===0)return b.clone();var c=4,y=new Array(1<<c);y[0]=new h(1).toRed(this),y[1]=b;for(var w=2;w<y.length;w++)y[w]=this.mul(y[w-1],b);var v=y[0],o=0,x=0,E=e.bitLength()%26;for(E===0&&(E=26),w=e.length-1;w>=0;w--){for(var R=e.words[w],H=E-1;H>=0;H--){var Y=R>>H&1;if(v!==y[0]&&(v=this.sqr(v)),Y===0&&o===0){x=0;continue}o<<=1,o|=Y,x++,!(x!==c&&(w!==0||H!==0))&&(v=this.mul(v,y[o]),x=0,o=0)}E=26}return v},T.prototype.convertTo=function(b){var e=b.umod(this.m);return e===b?e.clone():e},T.prototype.convertFrom=function(b){var e=b.clone();return e.red=null,e},h.mont=function(b){return new u(b)};function u(p){T.call(this,p),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(u,T),u.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},u.prototype.convertFrom=function(b){var e=this.imod(b.mul(this.rinv));return e.red=null,e},u.prototype.imul=function(b,e){if(b.isZero()||e.isZero())return b.words[0]=0,b.length=1,b;var c=b.imul(e),y=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=c.isub(y).iushrn(this.shift),v=w;return w.cmp(this.m)>=0?v=w.isub(this.m):w.cmpn(0)<0&&(v=w.iadd(this.m)),v._forceRed(this)},u.prototype.mul=function(b,e){if(b.isZero()||e.isZero())return new h(0)._forceRed(this);var c=b.mul(e),y=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=c.isub(y).iushrn(this.shift),v=w;return w.cmp(this.m)>=0?v=w.isub(this.m):w.cmpn(0)<0&&(v=w.iadd(this.m)),v._forceRed(this)},u.prototype.invm=function(b){var e=this.imod(b._invmp(this.m).mul(this.r2));return e._forceRed(this)}})(t,commonjsGlobal)}(bn$4);var bnExports$4=bn$4.exports,BN$a=bnExports$4,randomBytes$1=browserExports;function blind(t){var n=getr(t),l=n.toRed(BN$a.mont(t.modulus)).redPow(new BN$a(t.publicExponent)).fromRed();return{blinder:l,unblinder:n.invm(t.modulus)}}function getr(t){var n=t.modulus.byteLength(),l;do l=new BN$a(randomBytes$1(n));while(l.cmp(t.modulus)>=0||!l.umod(t.prime1)||!l.umod(t.prime2));return l}function crt$2(t,n){var l=blind(n),d=n.modulus.byteLength(),m=new BN$a(t).mul(l.blinder).umod(n.modulus),h=m.toRed(BN$a.mont(n.prime1)),S=m.toRed(BN$a.mont(n.prime2)),k=n.coefficient,A=n.prime1,B=n.prime2,M=h.redPow(n.exponent1).fromRed(),j=S.redPow(n.exponent2).fromRed(),I=M.isub(j).imul(k).umod(A).imul(B);return j.iadd(I).imul(l.unblinder).umod(n.modulus).toArrayLike(Buffer$C,"be",d)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic={};const name="elliptic",version$1="6.5.7",description$1="EC cryptography",main$1="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny <fedor@indutny.com>",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies$1={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0$2={name,version:version$1,description:description$1,main:main$1,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies:dependencies$1};var utils$o={},bn$3={exports:{}};bn$3.exports,function(t){(function(n,l){function d(T,u){if(!T)throw new Error(u||"Assertion failed")}function m(T,u){T.super_=u;var p=function(){};p.prototype=u.prototype,T.prototype=new p,T.prototype.constructor=T}function h(T,u,p){if(h.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(p=u,u=10),this._init(T||0,u||10,p||"be"))}typeof n=="object"?n.exports=h:l.BN=h,h.BN=h,h.wordSize=26;var S;try{typeof window<"u"&&typeof window.Buffer<"u"?S=window.Buffer:S=require$$0$3.Buffer}catch{}h.isBN=function(u){return u instanceof h?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===h.wordSize&&Array.isArray(u.words)},h.max=function(u,p){return u.cmp(p)>0?u:p},h.min=function(u,p){return u.cmp(p)<0?u:p},h.prototype._init=function(u,p,b){if(typeof u=="number")return this._initNumber(u,p,b);if(typeof u=="object")return this._initArray(u,p,b);p==="hex"&&(p=16),d(p===(p|0)&&p>=2&&p<=36),u=u.toString().replace(/\s+/g,"");var e=0;u[0]==="-"&&(e++,this.negative=1),e<u.length&&(p===16?this._parseHex(u,e,b):(this._parseBase(u,p,e),b==="le"&&this._initArray(this.toArray(),p,b)))},h.prototype._initNumber=function(u,p,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(d(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),p,b)},h.prototype._initArray=function(u,p,b){if(d(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c,y,w=0;if(b==="be")for(e=u.length-1,c=0;e>=0;e-=3)y=u[e]|u[e-1]<<8|u[e-2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);else if(b==="le")for(e=0,c=0;e<u.length;e+=3)y=u[e]|u[e+1]<<8|u[e+2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);return this.strip()};function k(T,u){var p=T.charCodeAt(u);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function A(T,u,p){var b=k(T,p);return p-1>=u&&(b|=k(T,p-1)<<4),b}h.prototype._parseHex=function(u,p,b){this.length=Math.ceil((u.length-p)/6),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c=0,y=0,w;if(b==="be")for(e=u.length-1;e>=p;e-=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8;else{var v=u.length-p;for(e=v%2===0?p+1:p;e<u.length;e+=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8}this.strip()};function B(T,u,p,b){for(var e=0,c=Math.min(T.length,p),y=u;y<c;y++){var w=T.charCodeAt(y)-48;e*=b,w>=49?e+=w-49+10:w>=17?e+=w-17+10:e+=w}return e}h.prototype._parseBase=function(u,p,b){this.words=[0],this.length=1;for(var e=0,c=1;c<=67108863;c*=p)e++;e--,c=c/p|0;for(var y=u.length-b,w=y%e,v=Math.min(y,y-w)+b,o=0,x=b;x<v;x+=e)o=B(u,x,x+e,p),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(w!==0){var E=1;for(o=B(u,x,u.length,p),x=0;x<w;x++)E*=p;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},h.prototype.copy=function(u){u.words=new Array(this.length);for(var p=0;p<this.length;p++)u.words[p]=this.words[p];u.length=this.length,u.negative=this.negative,u.red=this.red},h.prototype.clone=function(){var u=new h(null);return this.copy(u),u},h.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(u,p){u=u||10,p=p|0||1;var b;if(u===16||u==="hex"){b="";for(var e=0,c=0,y=0;y<this.length;y++){var w=this.words[y],v=((w<<e|c)&16777215).toString(16);c=w>>>24-e&16777215,c!==0||y!==this.length-1?b=M[6-v.length]+v+b:b=v+b,e+=2,e>=26&&(e-=26,y--)}for(c!==0&&(b=c.toString(16)+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var o=j[u],x=I[u];b="";var E=this.clone();for(E.negative=0;!E.isZero();){var R=E.modn(x).toString(u);E=E.idivn(x),E.isZero()?b=R+b:b=M[o-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}d(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(u,p){return d(typeof S<"u"),this.toArrayLike(S,u,p)},h.prototype.toArray=function(u,p){return this.toArrayLike(Array,u,p)},h.prototype.toArrayLike=function(u,p,b){var e=this.byteLength(),c=b||Math.max(1,e);d(e<=c,"byte array longer than desired length"),d(c>0,"Requested array length <= 0"),this.strip();var y=p==="le",w=new u(c),v,o,x=this.clone();if(y){for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[o]=v;for(;o<c;o++)w[o]=0}else{for(o=0;o<c-e;o++)w[o]=0;for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[c-o-1]=v}return w},Math.clz32?h.prototype._countBits=function(u){return 32-Math.clz32(u)}:h.prototype._countBits=function(u){var p=u,b=0;return p>=4096&&(b+=13,p>>>=13),p>=64&&(b+=7,p>>>=7),p>=8&&(b+=4,p>>>=4),p>=2&&(b+=2,p>>>=2),b+p},h.prototype._zeroBits=function(u){if(u===0)return 26;var p=u,b=0;return p&8191||(b+=13,p>>>=13),p&127||(b+=7,p>>>=7),p&15||(b+=4,p>>>=4),p&3||(b+=2,p>>>=2),p&1||b++,b},h.prototype.bitLength=function(){var u=this.words[this.length-1],p=this._countBits(u);return(this.length-1)*26+p};function P(T){for(var u=new Array(T.bitLength()),p=0;p<u.length;p++){var b=p/26|0,e=p%26;u[p]=(T.words[b]&1<<e)>>>e}return u}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,p=0;p<this.length;p++){var b=this._zeroBits(this.words[p]);if(u+=b,b!==26)break}return u},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},h.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return this.negative!==0},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var p=0;p<u.length;p++)this.words[p]=this.words[p]|u.words[p];return this.strip()},h.prototype.ior=function(u){return d((this.negative|u.negative)===0),this.iuor(u)},h.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},h.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},h.prototype.iuand=function(u){var p;this.length>u.length?p=u:p=this;for(var b=0;b<p.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=p.length,this.strip()},h.prototype.iand=function(u){return d((this.negative|u.negative)===0),this.iuand(u)},h.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},h.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},h.prototype.iuxor=function(u){var p,b;this.length>u.length?(p=this,b=u):(p=u,b=this);for(var e=0;e<b.length;e++)this.words[e]=p.words[e]^b.words[e];if(this!==p)for(;e<p.length;e++)this.words[e]=p.words[e];return this.length=p.length,this.strip()},h.prototype.ixor=function(u){return d((this.negative|u.negative)===0),this.iuxor(u)},h.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},h.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},h.prototype.inotn=function(u){d(typeof u=="number"&&u>=0);var p=Math.ceil(u/26)|0,b=u%26;this._expand(p),b>0&&p--;for(var e=0;e<p;e++)this.words[e]=~this.words[e]&67108863;return b>0&&(this.words[e]=~this.words[e]&67108863>>26-b),this.strip()},h.prototype.notn=function(u){return this.clone().inotn(u)},h.prototype.setn=function(u,p){d(typeof u=="number"&&u>=0);var b=u/26|0,e=u%26;return this._expand(b+1),p?this.words[b]=this.words[b]|1<<e:this.words[b]=this.words[b]&~(1<<e),this.strip()},h.prototype.iadd=function(u){var p;if(this.negative!==0&&u.negative===0)return this.negative=0,p=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,p=this.isub(u),u.negative=1,p._normSign();var b,e;this.length>u.length?(b=this,e=u):(b=u,e=this);for(var c=0,y=0;y<e.length;y++)p=(b.words[y]|0)+(e.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;for(;c!==0&&y<b.length;y++)p=(b.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;if(this.length=b.length,c!==0)this.words[this.length]=c,this.length++;else if(b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this},h.prototype.add=function(u){var p;return u.negative!==0&&this.negative===0?(u.negative=0,p=this.sub(u),u.negative^=1,p):u.negative===0&&this.negative!==0?(this.negative=0,p=u.sub(this),this.negative=1,p):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},h.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var p=this.iadd(u);return u.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var e,c;b>0?(e=this,c=u):(e=u,c=this);for(var y=0,w=0;w<c.length;w++)p=(e.words[w]|0)-(c.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;for(;y!==0&&w<e.length;w++)p=(e.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;if(y===0&&w<e.length&&e!==this)for(;w<e.length;w++)this.words[w]=e.words[w];return this.length=Math.max(this.length,w),e!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(u){return this.clone().isub(u)};function $(T,u,p){p.negative=u.negative^T.negative;var b=T.length+u.length|0;p.length=b,b=b-1|0;var e=T.words[0]|0,c=u.words[0]|0,y=e*c,w=y&67108863,v=y/67108864|0;p.words[0]=w;for(var o=1;o<b;o++){for(var x=v>>>26,E=v&67108863,R=Math.min(o,u.length-1),H=Math.max(0,o-T.length+1);H<=R;H++){var Y=o-H|0;e=T.words[Y]|0,c=u.words[H]|0,y=e*c+E,x+=y/67108864|0,E=y&67108863}p.words[o]=E|0,v=x|0}return v!==0?p.words[o]=v|0:p.length--,p.strip()}var z=function(u,p,b){var e=u.words,c=p.words,y=b.words,w=0,v,o,x,E=e[0]|0,R=E&8191,H=E>>>13,Y=e[1]|0,Z=Y&8191,L=Y>>>13,D=e[2]|0,ee=D&8191,oe=D>>>13,fe=e[3]|0,ue=fe&8191,qe=fe>>>13,rt=e[4]|0,Ve=rt&8191,et=rt>>>13,mt=e[5]|0,Ye=mt&8191,We=mt>>>13,Xe=e[6]|0,Ge=Xe&8191,nt=Xe>>>13,Et=e[7]|0,Le=Et&8191,Oe=Et>>>13,$t=e[8]|0,dt=$t&8191,gt=$t>>>13,Lt=e[9]|0,xe=Lt&8191,X=Lt>>>13,pe=c[0]|0,je=pe&8191,$e=pe>>>13,He=c[1]|0,Fe=He&8191,Me=He>>>13,Rt=c[2]|0,yt=Rt&8191,le=Rt>>>13,wt=c[3]|0,at=wt&8191,Be=wt>>>13,ot=c[4]|0,tt=ot&8191,kt=ot>>>13,Yt=c[5]|0,pt=Yt&8191,It=Yt>>>13,Fr=c[6]|0,Pt=Fr&8191,Ot=Fr>>>13,Te=c[7]|0,me=Te&8191,ce=Te>>>13,ne=c[8]|0,_e=ne&8191,Re=ne>>>13,lt=c[9]|0,Ze=lt&8191,ct=lt>>>13;b.negative=u.negative^p.negative,b.length=19,v=Math.imul(R,je),o=Math.imul(R,$e),o=o+Math.imul(H,je)|0,x=Math.imul(H,$e);var Nt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,v=Math.imul(Z,je),o=Math.imul(Z,$e),o=o+Math.imul(L,je)|0,x=Math.imul(L,$e),v=v+Math.imul(R,Fe)|0,o=o+Math.imul(R,Me)|0,o=o+Math.imul(H,Fe)|0,x=x+Math.imul(H,Me)|0;var Ut=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,v=Math.imul(ee,je),o=Math.imul(ee,$e),o=o+Math.imul(oe,je)|0,x=Math.imul(oe,$e),v=v+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(L,Fe)|0,x=x+Math.imul(L,Me)|0,v=v+Math.imul(R,yt)|0,o=o+Math.imul(R,le)|0,o=o+Math.imul(H,yt)|0,x=x+Math.imul(H,le)|0;var Mr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,v=Math.imul(ue,je),o=Math.imul(ue,$e),o=o+Math.imul(qe,je)|0,x=Math.imul(qe,$e),v=v+Math.imul(ee,Fe)|0,o=o+Math.imul(ee,Me)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Me)|0,v=v+Math.imul(Z,yt)|0,o=o+Math.imul(Z,le)|0,o=o+Math.imul(L,yt)|0,x=x+Math.imul(L,le)|0,v=v+Math.imul(R,at)|0,o=o+Math.imul(R,Be)|0,o=o+Math.imul(H,at)|0,x=x+Math.imul(H,Be)|0;var Xt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(Ve,je),o=Math.imul(Ve,$e),o=o+Math.imul(et,je)|0,x=Math.imul(et,$e),v=v+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Me)|0,o=o+Math.imul(qe,Fe)|0,x=x+Math.imul(qe,Me)|0,v=v+Math.imul(ee,yt)|0,o=o+Math.imul(ee,le)|0,o=o+Math.imul(oe,yt)|0,x=x+Math.imul(oe,le)|0,v=v+Math.imul(Z,at)|0,o=o+Math.imul(Z,Be)|0,o=o+Math.imul(L,at)|0,x=x+Math.imul(L,Be)|0,v=v+Math.imul(R,tt)|0,o=o+Math.imul(R,kt)|0,o=o+Math.imul(H,tt)|0,x=x+Math.imul(H,kt)|0;var Sr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,v=Math.imul(Ye,je),o=Math.imul(Ye,$e),o=o+Math.imul(We,je)|0,x=Math.imul(We,$e),v=v+Math.imul(Ve,Fe)|0,o=o+Math.imul(Ve,Me)|0,o=o+Math.imul(et,Fe)|0,x=x+Math.imul(et,Me)|0,v=v+Math.imul(ue,yt)|0,o=o+Math.imul(ue,le)|0,o=o+Math.imul(qe,yt)|0,x=x+Math.imul(qe,le)|0,v=v+Math.imul(ee,at)|0,o=o+Math.imul(ee,Be)|0,o=o+Math.imul(oe,at)|0,x=x+Math.imul(oe,Be)|0,v=v+Math.imul(Z,tt)|0,o=o+Math.imul(Z,kt)|0,o=o+Math.imul(L,tt)|0,x=x+Math.imul(L,kt)|0,v=v+Math.imul(R,pt)|0,o=o+Math.imul(R,It)|0,o=o+Math.imul(H,pt)|0,x=x+Math.imul(H,It)|0;var rr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(Ge,je),o=Math.imul(Ge,$e),o=o+Math.imul(nt,je)|0,x=Math.imul(nt,$e),v=v+Math.imul(Ye,Fe)|0,o=o+Math.imul(Ye,Me)|0,o=o+Math.imul(We,Fe)|0,x=x+Math.imul(We,Me)|0,v=v+Math.imul(Ve,yt)|0,o=o+Math.imul(Ve,le)|0,o=o+Math.imul(et,yt)|0,x=x+Math.imul(et,le)|0,v=v+Math.imul(ue,at)|0,o=o+Math.imul(ue,Be)|0,o=o+Math.imul(qe,at)|0,x=x+Math.imul(qe,Be)|0,v=v+Math.imul(ee,tt)|0,o=o+Math.imul(ee,kt)|0,o=o+Math.imul(oe,tt)|0,x=x+Math.imul(oe,kt)|0,v=v+Math.imul(Z,pt)|0,o=o+Math.imul(Z,It)|0,o=o+Math.imul(L,pt)|0,x=x+Math.imul(L,It)|0,v=v+Math.imul(R,Pt)|0,o=o+Math.imul(R,Ot)|0,o=o+Math.imul(H,Pt)|0,x=x+Math.imul(H,Ot)|0;var er=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(Le,je),o=Math.imul(Le,$e),o=o+Math.imul(Oe,je)|0,x=Math.imul(Oe,$e),v=v+Math.imul(Ge,Fe)|0,o=o+Math.imul(Ge,Me)|0,o=o+Math.imul(nt,Fe)|0,x=x+Math.imul(nt,Me)|0,v=v+Math.imul(Ye,yt)|0,o=o+Math.imul(Ye,le)|0,o=o+Math.imul(We,yt)|0,x=x+Math.imul(We,le)|0,v=v+Math.imul(Ve,at)|0,o=o+Math.imul(Ve,Be)|0,o=o+Math.imul(et,at)|0,x=x+Math.imul(et,Be)|0,v=v+Math.imul(ue,tt)|0,o=o+Math.imul(ue,kt)|0,o=o+Math.imul(qe,tt)|0,x=x+Math.imul(qe,kt)|0,v=v+Math.imul(ee,pt)|0,o=o+Math.imul(ee,It)|0,o=o+Math.imul(oe,pt)|0,x=x+Math.imul(oe,It)|0,v=v+Math.imul(Z,Pt)|0,o=o+Math.imul(Z,Ot)|0,o=o+Math.imul(L,Pt)|0,x=x+Math.imul(L,Ot)|0,v=v+Math.imul(R,me)|0,o=o+Math.imul(R,ce)|0,o=o+Math.imul(H,me)|0,x=x+Math.imul(H,ce)|0;var kr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(kr>>>26)|0,kr&=67108863,v=Math.imul(dt,je),o=Math.imul(dt,$e),o=o+Math.imul(gt,je)|0,x=Math.imul(gt,$e),v=v+Math.imul(Le,Fe)|0,o=o+Math.imul(Le,Me)|0,o=o+Math.imul(Oe,Fe)|0,x=x+Math.imul(Oe,Me)|0,v=v+Math.imul(Ge,yt)|0,o=o+Math.imul(Ge,le)|0,o=o+Math.imul(nt,yt)|0,x=x+Math.imul(nt,le)|0,v=v+Math.imul(Ye,at)|0,o=o+Math.imul(Ye,Be)|0,o=o+Math.imul(We,at)|0,x=x+Math.imul(We,Be)|0,v=v+Math.imul(Ve,tt)|0,o=o+Math.imul(Ve,kt)|0,o=o+Math.imul(et,tt)|0,x=x+Math.imul(et,kt)|0,v=v+Math.imul(ue,pt)|0,o=o+Math.imul(ue,It)|0,o=o+Math.imul(qe,pt)|0,x=x+Math.imul(qe,It)|0,v=v+Math.imul(ee,Pt)|0,o=o+Math.imul(ee,Ot)|0,o=o+Math.imul(oe,Pt)|0,x=x+Math.imul(oe,Ot)|0,v=v+Math.imul(Z,me)|0,o=o+Math.imul(Z,ce)|0,o=o+Math.imul(L,me)|0,x=x+Math.imul(L,ce)|0,v=v+Math.imul(R,_e)|0,o=o+Math.imul(R,Re)|0,o=o+Math.imul(H,_e)|0,x=x+Math.imul(H,Re)|0;var vr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,v=Math.imul(xe,je),o=Math.imul(xe,$e),o=o+Math.imul(X,je)|0,x=Math.imul(X,$e),v=v+Math.imul(dt,Fe)|0,o=o+Math.imul(dt,Me)|0,o=o+Math.imul(gt,Fe)|0,x=x+Math.imul(gt,Me)|0,v=v+Math.imul(Le,yt)|0,o=o+Math.imul(Le,le)|0,o=o+Math.imul(Oe,yt)|0,x=x+Math.imul(Oe,le)|0,v=v+Math.imul(Ge,at)|0,o=o+Math.imul(Ge,Be)|0,o=o+Math.imul(nt,at)|0,x=x+Math.imul(nt,Be)|0,v=v+Math.imul(Ye,tt)|0,o=o+Math.imul(Ye,kt)|0,o=o+Math.imul(We,tt)|0,x=x+Math.imul(We,kt)|0,v=v+Math.imul(Ve,pt)|0,o=o+Math.imul(Ve,It)|0,o=o+Math.imul(et,pt)|0,x=x+Math.imul(et,It)|0,v=v+Math.imul(ue,Pt)|0,o=o+Math.imul(ue,Ot)|0,o=o+Math.imul(qe,Pt)|0,x=x+Math.imul(qe,Ot)|0,v=v+Math.imul(ee,me)|0,o=o+Math.imul(ee,ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,ce)|0,v=v+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(L,_e)|0,x=x+Math.imul(L,Re)|0,v=v+Math.imul(R,Ze)|0,o=o+Math.imul(R,ct)|0,o=o+Math.imul(H,Ze)|0,x=x+Math.imul(H,ct)|0;var Pr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,v=Math.imul(xe,Fe),o=Math.imul(xe,Me),o=o+Math.imul(X,Fe)|0,x=Math.imul(X,Me),v=v+Math.imul(dt,yt)|0,o=o+Math.imul(dt,le)|0,o=o+Math.imul(gt,yt)|0,x=x+Math.imul(gt,le)|0,v=v+Math.imul(Le,at)|0,o=o+Math.imul(Le,Be)|0,o=o+Math.imul(Oe,at)|0,x=x+Math.imul(Oe,Be)|0,v=v+Math.imul(Ge,tt)|0,o=o+Math.imul(Ge,kt)|0,o=o+Math.imul(nt,tt)|0,x=x+Math.imul(nt,kt)|0,v=v+Math.imul(Ye,pt)|0,o=o+Math.imul(Ye,It)|0,o=o+Math.imul(We,pt)|0,x=x+Math.imul(We,It)|0,v=v+Math.imul(Ve,Pt)|0,o=o+Math.imul(Ve,Ot)|0,o=o+Math.imul(et,Pt)|0,x=x+Math.imul(et,Ot)|0,v=v+Math.imul(ue,me)|0,o=o+Math.imul(ue,ce)|0,o=o+Math.imul(qe,me)|0,x=x+Math.imul(qe,ce)|0,v=v+Math.imul(ee,_e)|0,o=o+Math.imul(ee,Re)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Re)|0,v=v+Math.imul(Z,Ze)|0,o=o+Math.imul(Z,ct)|0,o=o+Math.imul(L,Ze)|0,x=x+Math.imul(L,ct)|0;var Tr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,v=Math.imul(xe,yt),o=Math.imul(xe,le),o=o+Math.imul(X,yt)|0,x=Math.imul(X,le),v=v+Math.imul(dt,at)|0,o=o+Math.imul(dt,Be)|0,o=o+Math.imul(gt,at)|0,x=x+Math.imul(gt,Be)|0,v=v+Math.imul(Le,tt)|0,o=o+Math.imul(Le,kt)|0,o=o+Math.imul(Oe,tt)|0,x=x+Math.imul(Oe,kt)|0,v=v+Math.imul(Ge,pt)|0,o=o+Math.imul(Ge,It)|0,o=o+Math.imul(nt,pt)|0,x=x+Math.imul(nt,It)|0,v=v+Math.imul(Ye,Pt)|0,o=o+Math.imul(Ye,Ot)|0,o=o+Math.imul(We,Pt)|0,x=x+Math.imul(We,Ot)|0,v=v+Math.imul(Ve,me)|0,o=o+Math.imul(Ve,ce)|0,o=o+Math.imul(et,me)|0,x=x+Math.imul(et,ce)|0,v=v+Math.imul(ue,_e)|0,o=o+Math.imul(ue,Re)|0,o=o+Math.imul(qe,_e)|0,x=x+Math.imul(qe,Re)|0,v=v+Math.imul(ee,Ze)|0,o=o+Math.imul(ee,ct)|0,o=o+Math.imul(oe,Ze)|0,x=x+Math.imul(oe,ct)|0;var br=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(br>>>26)|0,br&=67108863,v=Math.imul(xe,at),o=Math.imul(xe,Be),o=o+Math.imul(X,at)|0,x=Math.imul(X,Be),v=v+Math.imul(dt,tt)|0,o=o+Math.imul(dt,kt)|0,o=o+Math.imul(gt,tt)|0,x=x+Math.imul(gt,kt)|0,v=v+Math.imul(Le,pt)|0,o=o+Math.imul(Le,It)|0,o=o+Math.imul(Oe,pt)|0,x=x+Math.imul(Oe,It)|0,v=v+Math.imul(Ge,Pt)|0,o=o+Math.imul(Ge,Ot)|0,o=o+Math.imul(nt,Pt)|0,x=x+Math.imul(nt,Ot)|0,v=v+Math.imul(Ye,me)|0,o=o+Math.imul(Ye,ce)|0,o=o+Math.imul(We,me)|0,x=x+Math.imul(We,ce)|0,v=v+Math.imul(Ve,_e)|0,o=o+Math.imul(Ve,Re)|0,o=o+Math.imul(et,_e)|0,x=x+Math.imul(et,Re)|0,v=v+Math.imul(ue,Ze)|0,o=o+Math.imul(ue,ct)|0,o=o+Math.imul(qe,Ze)|0,x=x+Math.imul(qe,ct)|0;var Ar=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,v=Math.imul(xe,tt),o=Math.imul(xe,kt),o=o+Math.imul(X,tt)|0,x=Math.imul(X,kt),v=v+Math.imul(dt,pt)|0,o=o+Math.imul(dt,It)|0,o=o+Math.imul(gt,pt)|0,x=x+Math.imul(gt,It)|0,v=v+Math.imul(Le,Pt)|0,o=o+Math.imul(Le,Ot)|0,o=o+Math.imul(Oe,Pt)|0,x=x+Math.imul(Oe,Ot)|0,v=v+Math.imul(Ge,me)|0,o=o+Math.imul(Ge,ce)|0,o=o+Math.imul(nt,me)|0,x=x+Math.imul(nt,ce)|0,v=v+Math.imul(Ye,_e)|0,o=o+Math.imul(Ye,Re)|0,o=o+Math.imul(We,_e)|0,x=x+Math.imul(We,Re)|0,v=v+Math.imul(Ve,Ze)|0,o=o+Math.imul(Ve,ct)|0,o=o+Math.imul(et,Ze)|0,x=x+Math.imul(et,ct)|0;var gr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,v=Math.imul(xe,pt),o=Math.imul(xe,It),o=o+Math.imul(X,pt)|0,x=Math.imul(X,It),v=v+Math.imul(dt,Pt)|0,o=o+Math.imul(dt,Ot)|0,o=o+Math.imul(gt,Pt)|0,x=x+Math.imul(gt,Ot)|0,v=v+Math.imul(Le,me)|0,o=o+Math.imul(Le,ce)|0,o=o+Math.imul(Oe,me)|0,x=x+Math.imul(Oe,ce)|0,v=v+Math.imul(Ge,_e)|0,o=o+Math.imul(Ge,Re)|0,o=o+Math.imul(nt,_e)|0,x=x+Math.imul(nt,Re)|0,v=v+Math.imul(Ye,Ze)|0,o=o+Math.imul(Ye,ct)|0,o=o+Math.imul(We,Ze)|0,x=x+Math.imul(We,ct)|0;var dr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(dr>>>26)|0,dr&=67108863,v=Math.imul(xe,Pt),o=Math.imul(xe,Ot),o=o+Math.imul(X,Pt)|0,x=Math.imul(X,Ot),v=v+Math.imul(dt,me)|0,o=o+Math.imul(dt,ce)|0,o=o+Math.imul(gt,me)|0,x=x+Math.imul(gt,ce)|0,v=v+Math.imul(Le,_e)|0,o=o+Math.imul(Le,Re)|0,o=o+Math.imul(Oe,_e)|0,x=x+Math.imul(Oe,Re)|0,v=v+Math.imul(Ge,Ze)|0,o=o+Math.imul(Ge,ct)|0,o=o+Math.imul(nt,Ze)|0,x=x+Math.imul(nt,ct)|0;var lr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(lr>>>26)|0,lr&=67108863,v=Math.imul(xe,me),o=Math.imul(xe,ce),o=o+Math.imul(X,me)|0,x=Math.imul(X,ce),v=v+Math.imul(dt,_e)|0,o=o+Math.imul(dt,Re)|0,o=o+Math.imul(gt,_e)|0,x=x+Math.imul(gt,Re)|0,v=v+Math.imul(Le,Ze)|0,o=o+Math.imul(Le,ct)|0,o=o+Math.imul(Oe,Ze)|0,x=x+Math.imul(Oe,ct)|0;var Kt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(xe,_e),o=Math.imul(xe,Re),o=o+Math.imul(X,_e)|0,x=Math.imul(X,Re),v=v+Math.imul(dt,Ze)|0,o=o+Math.imul(dt,ct)|0,o=o+Math.imul(gt,Ze)|0,x=x+Math.imul(gt,ct)|0;var Bt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(xe,Ze),o=Math.imul(xe,ct),o=o+Math.imul(X,Ze)|0,x=Math.imul(X,ct);var Ft=(w+v|0)+((o&8191)<<13)|0;return w=(x+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,y[0]=Nt,y[1]=Ut,y[2]=Mr,y[3]=Xt,y[4]=Sr,y[5]=rr,y[6]=er,y[7]=kr,y[8]=vr,y[9]=Pr,y[10]=Tr,y[11]=br,y[12]=Ar,y[13]=gr,y[14]=dr,y[15]=lr,y[16]=Kt,y[17]=Bt,y[18]=Ft,w!==0&&(y[19]=w,b.length++),b};Math.imul||(z=$);function N(T,u,p){p.negative=u.negative^T.negative,p.length=T.length+u.length;for(var b=0,e=0,c=0;c<p.length-1;c++){var y=e;e=0;for(var w=b&67108863,v=Math.min(c,u.length-1),o=Math.max(0,c-T.length+1);o<=v;o++){var x=c-o,E=T.words[x]|0,R=u.words[o]|0,H=E*R,Y=H&67108863;y=y+(H/67108864|0)|0,Y=Y+w|0,w=Y&67108863,y=y+(Y>>>26)|0,e+=y>>>26,y&=67108863}p.words[c]=w,b=y,y=e}return b!==0?p.words[c]=b:p.length--,p.strip()}function F(T,u,p){var b=new U;return b.mulp(T,u,p)}h.prototype.mulTo=function(u,p){var b,e=this.length+u.length;return this.length===10&&u.length===10?b=z(this,u,p):e<63?b=$(this,u,p):e<1024?b=N(this,u,p):b=F(this,u,p),b};function U(T,u){this.x=T,this.y=u}U.prototype.makeRBT=function(u){for(var p=new Array(u),b=h.prototype._countBits(u)-1,e=0;e<u;e++)p[e]=this.revBin(e,b,u);return p},U.prototype.revBin=function(u,p,b){if(u===0||u===b-1)return u;for(var e=0,c=0;c<p;c++)e|=(u&1)<<p-c-1,u>>=1;return e},U.prototype.permute=function(u,p,b,e,c,y){for(var w=0;w<y;w++)e[w]=p[u[w]],c[w]=b[u[w]]},U.prototype.transform=function(u,p,b,e,c,y){this.permute(y,u,p,b,e,c);for(var w=1;w<c;w<<=1)for(var v=w<<1,o=Math.cos(2*Math.PI/v),x=Math.sin(2*Math.PI/v),E=0;E<c;E+=v)for(var R=o,H=x,Y=0;Y<w;Y++){var Z=b[E+Y],L=e[E+Y],D=b[E+Y+w],ee=e[E+Y+w],oe=R*D-H*ee;ee=R*ee+H*D,D=oe,b[E+Y]=Z+D,e[E+Y]=L+ee,b[E+Y+w]=Z-D,e[E+Y+w]=L-ee,Y!==v&&(oe=o*R-x*H,H=o*H+x*R,R=oe)}},U.prototype.guessLen13b=function(u,p){var b=Math.max(p,u)|1,e=b&1,c=0;for(b=b/2|0;b;b=b>>>1)c++;return 1<<c+1+e},U.prototype.conjugate=function(u,p,b){if(!(b<=1))for(var e=0;e<b/2;e++){var c=u[e];u[e]=u[b-e-1],u[b-e-1]=c,c=p[e],p[e]=-p[b-e-1],p[b-e-1]=-c}},U.prototype.normalize13b=function(u,p){for(var b=0,e=0;e<p/2;e++){var c=Math.round(u[2*e+1]/p)*8192+Math.round(u[2*e]/p)+b;u[e]=c&67108863,c<67108864?b=0:b=c/67108864|0}return u},U.prototype.convert13b=function(u,p,b,e){for(var c=0,y=0;y<p;y++)c=c+(u[y]|0),b[2*y]=c&8191,c=c>>>13,b[2*y+1]=c&8191,c=c>>>13;for(y=2*p;y<e;++y)b[y]=0;d(c===0),d((c&-8192)===0)},U.prototype.stub=function(u){for(var p=new Array(u),b=0;b<u;b++)p[b]=0;return p},U.prototype.mulp=function(u,p,b){var e=2*this.guessLen13b(u.length,p.length),c=this.makeRBT(e),y=this.stub(e),w=new Array(e),v=new Array(e),o=new Array(e),x=new Array(e),E=new Array(e),R=new Array(e),H=b.words;H.length=e,this.convert13b(u.words,u.length,w,e),this.convert13b(p.words,p.length,x,e),this.transform(w,y,v,o,e,c),this.transform(x,y,E,R,e,c);for(var Y=0;Y<e;Y++){var Z=v[Y]*E[Y]-o[Y]*R[Y];o[Y]=v[Y]*R[Y]+o[Y]*E[Y],v[Y]=Z}return this.conjugate(v,o,e),this.transform(v,o,H,y,e,c),this.conjugate(H,y,e),this.normalize13b(H,e),b.negative=u.negative^p.negative,b.length=u.length+p.length,b.strip()},h.prototype.mul=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),this.mulTo(u,p)},h.prototype.mulf=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),F(this,u,p)},h.prototype.imul=function(u){return this.clone().mulTo(u,this)},h.prototype.imuln=function(u){d(typeof u=="number"),d(u<67108864);for(var p=0,b=0;b<this.length;b++){var e=(this.words[b]|0)*u,c=(e&67108863)+(p&67108863);p>>=26,p+=e/67108864|0,p+=c>>>26,this.words[b]=c&67108863}return p!==0&&(this.words[b]=p,this.length++),this},h.prototype.muln=function(u){return this.clone().imuln(u)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(u){var p=P(u);if(p.length===0)return new h(1);for(var b=this,e=0;e<p.length&&p[e]===0;e++,b=b.sqr());if(++e<p.length)for(var c=b.sqr();e<p.length;e++,c=c.sqr())p[e]!==0&&(b=b.mul(c));return b},h.prototype.iushln=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=67108863>>>26-p<<26-p,c;if(p!==0){var y=0;for(c=0;c<this.length;c++){var w=this.words[c]&e,v=(this.words[c]|0)-w<<p;this.words[c]=v|y,y=w>>>26-p}y&&(this.words[c]=y,this.length++)}if(b!==0){for(c=this.length-1;c>=0;c--)this.words[c+b]=this.words[c];for(c=0;c<b;c++)this.words[c]=0;this.length+=b}return this.strip()},h.prototype.ishln=function(u){return d(this.negative===0),this.iushln(u)},h.prototype.iushrn=function(u,p,b){d(typeof u=="number"&&u>=0);var e;p?e=(p-p%26)/26:e=0;var c=u%26,y=Math.min((u-c)/26,this.length),w=67108863^67108863>>>c<<c,v=b;if(e-=y,e=Math.max(0,e),v){for(var o=0;o<y;o++)v.words[o]=this.words[o];v.length=y}if(y!==0)if(this.length>y)for(this.length-=y,o=0;o<this.length;o++)this.words[o]=this.words[o+y];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=e);o--){var E=this.words[o]|0;this.words[o]=x<<26-c|E>>>c,x=E&w}return v&&x!==0&&(v.words[v.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(u,p,b){return d(this.negative===0),this.iushrn(u,p,b)},h.prototype.shln=function(u){return this.clone().ishln(u)},h.prototype.ushln=function(u){return this.clone().iushln(u)},h.prototype.shrn=function(u){return this.clone().ishrn(u)},h.prototype.ushrn=function(u){return this.clone().iushrn(u)},h.prototype.testn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return!1;var c=this.words[b];return!!(c&e)},h.prototype.imaskn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26;if(d(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(p!==0&&b++,this.length=Math.min(b,this.length),p!==0){var e=67108863^67108863>>>p<<p;this.words[this.length-1]&=e}return this.strip()},h.prototype.maskn=function(u){return this.clone().imaskn(u)},h.prototype.iaddn=function(u){return d(typeof u=="number"),d(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},h.prototype._iaddn=function(u){this.words[0]+=u;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},h.prototype.isubn=function(u){if(d(typeof u=="number"),d(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},h.prototype.addn=function(u){return this.clone().iaddn(u)},h.prototype.subn=function(u){return this.clone().isubn(u)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(u,p,b){var e=u.length+b,c;this._expand(e);var y,w=0;for(c=0;c<u.length;c++){y=(this.words[c+b]|0)+w;var v=(u.words[c]|0)*p;y-=v&67108863,w=(y>>26)-(v/67108864|0),this.words[c+b]=y&67108863}for(;c<this.length-b;c++)y=(this.words[c+b]|0)+w,w=y>>26,this.words[c+b]=y&67108863;if(w===0)return this.strip();for(d(w===-1),w=0,c=0;c<this.length;c++)y=-(this.words[c]|0)+w,w=y>>26,this.words[c]=y&67108863;return this.negative=1,this.strip()},h.prototype._wordDiv=function(u,p){var b=this.length-u.length,e=this.clone(),c=u,y=c.words[c.length-1]|0,w=this._countBits(y);b=26-w,b!==0&&(c=c.ushln(b),e.iushln(b),y=c.words[c.length-1]|0);var v=e.length-c.length,o;if(p!=="mod"){o=new h(null),o.length=v+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var E=e.clone()._ishlnsubmul(c,1,v);E.negative===0&&(e=E,o&&(o.words[v]=1));for(var R=v-1;R>=0;R--){var H=(e.words[c.length+R]|0)*67108864+(e.words[c.length+R-1]|0);for(H=Math.min(H/y|0,67108863),e._ishlnsubmul(c,H,R);e.negative!==0;)H--,e.negative=0,e._ishlnsubmul(c,1,R),e.isZero()||(e.negative^=1);o&&(o.words[R]=H)}return o&&o.strip(),e.strip(),p!=="div"&&b!==0&&e.iushrn(b),{div:o||null,mod:e}},h.prototype.divmod=function(u,p,b){if(d(!u.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var e,c,y;return this.negative!==0&&u.negative===0?(y=this.neg().divmod(u,p),p!=="mod"&&(e=y.div.neg()),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.iadd(u)),{div:e,mod:c}):this.negative===0&&u.negative!==0?(y=this.divmod(u.neg(),p),p!=="mod"&&(e=y.div.neg()),{div:e,mod:y.mod}):this.negative&u.negative?(y=this.neg().divmod(u.neg(),p),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.isub(u)),{div:y.div,mod:c}):u.length>this.length||this.cmp(u)<0?{div:new h(0),mod:this}:u.length===1?p==="div"?{div:this.divn(u.words[0]),mod:null}:p==="mod"?{div:null,mod:new h(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new h(this.modn(u.words[0]))}:this._wordDiv(u,p)},h.prototype.div=function(u){return this.divmod(u,"div",!1).div},h.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},h.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},h.prototype.divRound=function(u){var p=this.divmod(u);if(p.mod.isZero())return p.div;var b=p.div.negative!==0?p.mod.isub(u):p.mod,e=u.ushrn(1),c=u.andln(1),y=b.cmp(e);return y<0||c===1&&y===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},h.prototype.modn=function(u){d(u<=67108863);for(var p=(1<<26)%u,b=0,e=this.length-1;e>=0;e--)b=(p*b+(this.words[e]|0))%u;return b},h.prototype.idivn=function(u){d(u<=67108863);for(var p=0,b=this.length-1;b>=0;b--){var e=(this.words[b]|0)+p*67108864;this.words[b]=e/u|0,p=e%u}return this.strip()},h.prototype.divn=function(u){return this.clone().idivn(u)},h.prototype.egcd=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=new h(0),w=new h(1),v=0;p.isEven()&&b.isEven();)p.iushrn(1),b.iushrn(1),++v;for(var o=b.clone(),x=p.clone();!p.isZero();){for(var E=0,R=1;!(p.words[0]&R)&&E<26;++E,R<<=1);if(E>0)for(p.iushrn(E);E-- >0;)(e.isOdd()||c.isOdd())&&(e.iadd(o),c.isub(x)),e.iushrn(1),c.iushrn(1);for(var H=0,Y=1;!(b.words[0]&Y)&&H<26;++H,Y<<=1);if(H>0)for(b.iushrn(H);H-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(o),w.isub(x)),y.iushrn(1),w.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(y),c.isub(w)):(b.isub(p),y.isub(e),w.isub(c))}return{a:y,b:w,gcd:b.iushln(v)}},h.prototype._invmp=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=b.clone();p.cmpn(1)>0&&b.cmpn(1)>0;){for(var w=0,v=1;!(p.words[0]&v)&&w<26;++w,v<<=1);if(w>0)for(p.iushrn(w);w-- >0;)e.isOdd()&&e.iadd(y),e.iushrn(1);for(var o=0,x=1;!(b.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(b.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(y),c.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(c)):(b.isub(p),c.isub(e))}var E;return p.cmpn(1)===0?E=e:E=c,E.cmpn(0)<0&&E.iadd(u),E},h.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var p=this.clone(),b=u.clone();p.negative=0,b.negative=0;for(var e=0;p.isEven()&&b.isEven();e++)p.iushrn(1),b.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;b.isEven();)b.iushrn(1);var c=p.cmp(b);if(c<0){var y=p;p=b,b=y}else if(c===0||b.cmpn(1)===0)break;p.isub(b)}while(!0);return b.iushln(e)},h.prototype.invm=function(u){return this.egcd(u).a.umod(u)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(u){return this.words[0]&u},h.prototype.bincn=function(u){d(typeof u=="number");var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return this._expand(b+1),this.words[b]|=e,this;for(var c=e,y=b;c!==0&&y<this.length;y++){var w=this.words[y]|0;w+=c,c=w>>>26,w&=67108863,this.words[y]=w}return c!==0&&(this.words[y]=c,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(u){var p=u<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var b;if(this.length>1)b=1;else{p&&(u=-u),d(u<=67108863,"Number is too big");var e=this.words[0]|0;b=e===u?0:e<u?-1:1}return this.negative!==0?-b|0:b},h.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var p=this.ucmp(u);return this.negative!==0?-p|0:p},h.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var p=0,b=this.length-1;b>=0;b--){var e=this.words[b]|0,c=u.words[b]|0;if(e!==c){e<c?p=-1:e>c&&(p=1);break}}return p},h.prototype.gtn=function(u){return this.cmpn(u)===1},h.prototype.gt=function(u){return this.cmp(u)===1},h.prototype.gten=function(u){return this.cmpn(u)>=0},h.prototype.gte=function(u){return this.cmp(u)>=0},h.prototype.ltn=function(u){return this.cmpn(u)===-1},h.prototype.lt=function(u){return this.cmp(u)===-1},h.prototype.lten=function(u){return this.cmpn(u)<=0},h.prototype.lte=function(u){return this.cmp(u)<=0},h.prototype.eqn=function(u){return this.cmpn(u)===0},h.prototype.eq=function(u){return this.cmp(u)===0},h.red=function(u){return new he(u)},h.prototype.toRed=function(u){return d(!this.red,"Already a number in reduction context"),d(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},h.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(u){return this.red=u,this},h.prototype.forceRed=function(u){return d(!this.red,"Already a number in reduction context"),this._forceRed(u)},h.prototype.redAdd=function(u){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},h.prototype.redIAdd=function(u){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},h.prototype.redSub=function(u){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},h.prototype.redISub=function(u){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},h.prototype.redShl=function(u){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},h.prototype.redMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},h.prototype.redIMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},h.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(u){return d(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var J={k256:null,p224:null,p192:null,p25519:null};function te(T,u){this.name=T,this.p=new h(u,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}te.prototype._tmp=function(){var u=new h(null);return u.words=new Array(Math.ceil(this.n/13)),u},te.prototype.ireduce=function(u){var p=u,b;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),b=p.bitLength();while(b>this.n);var e=b<this.n?-1:p.ucmp(this.p);return e===0?(p.words[0]=0,p.length=1):e>0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},te.prototype.split=function(u,p){u.iushrn(this.n,0,p)},te.prototype.imulK=function(u){return u.imul(this.k)};function se(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(se,te),se.prototype.split=function(u,p){for(var b=4194303,e=Math.min(u.length,9),c=0;c<e;c++)p.words[c]=u.words[c];if(p.length=e,u.length<=9){u.words[0]=0,u.length=1;return}var y=u.words[9];for(p.words[p.length++]=y&b,c=10;c<u.length;c++){var w=u.words[c]|0;u.words[c-10]=(w&b)<<4|y>>>22,y=w}y>>>=22,u.words[c-10]=y,y===0&&u.length>10?u.length-=10:u.length-=9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var p=0,b=0;b<u.length;b++){var e=u.words[b]|0;p+=e*977,u.words[b]=p&67108863,p=e*64+(p/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function de(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(de,te);function Q(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(Q,te);function ve(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ve,te),ve.prototype.imulK=function(u){for(var p=0,b=0;b<u.length;b++){var e=(u.words[b]|0)*19+p,c=e&67108863;e>>>=26,u.words[b]=c,p=e}return p!==0&&(u.words[u.length++]=p),u},h._prime=function(u){if(J[u])return J[u];var p;if(u==="k256")p=new se;else if(u==="p224")p=new de;else if(u==="p192")p=new Q;else if(u==="p25519")p=new ve;else throw new Error("Unknown prime "+u);return J[u]=p,p};function he(T){if(typeof T=="string"){var u=h._prime(T);this.m=u.p,this.prime=u}else d(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}he.prototype._verify1=function(u){d(u.negative===0,"red works only with positives"),d(u.red,"red works only with red numbers")},he.prototype._verify2=function(u,p){d((u.negative|p.negative)===0,"red works only with positives"),d(u.red&&u.red===p.red,"red works only with red numbers")},he.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},he.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},he.prototype.add=function(u,p){this._verify2(u,p);var b=u.add(p);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},he.prototype.iadd=function(u,p){this._verify2(u,p);var b=u.iadd(p);return b.cmp(this.m)>=0&&b.isub(this.m),b},he.prototype.sub=function(u,p){this._verify2(u,p);var b=u.sub(p);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},he.prototype.isub=function(u,p){this._verify2(u,p);var b=u.isub(p);return b.cmpn(0)<0&&b.iadd(this.m),b},he.prototype.shl=function(u,p){return this._verify1(u),this.imod(u.ushln(p))},he.prototype.imul=function(u,p){return this._verify2(u,p),this.imod(u.imul(p))},he.prototype.mul=function(u,p){return this._verify2(u,p),this.imod(u.mul(p))},he.prototype.isqr=function(u){return this.imul(u,u.clone())},he.prototype.sqr=function(u){return this.mul(u,u)},he.prototype.sqrt=function(u){if(u.isZero())return u.clone();var p=this.m.andln(3);if(d(p%2===1),p===3){var b=this.m.add(new h(1)).iushrn(2);return this.pow(u,b)}for(var e=this.m.subn(1),c=0;!e.isZero()&&e.andln(1)===0;)c++,e.iushrn(1);d(!e.isZero());var y=new h(1).toRed(this),w=y.redNeg(),v=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new h(2*o*o).toRed(this);this.pow(o,v).cmp(w)!==0;)o.redIAdd(w);for(var x=this.pow(o,e),E=this.pow(u,e.addn(1).iushrn(1)),R=this.pow(u,e),H=c;R.cmp(y)!==0;){for(var Y=R,Z=0;Y.cmp(y)!==0;Z++)Y=Y.redSqr();d(Z<H);var L=this.pow(x,new h(1).iushln(H-Z-1));E=E.redMul(L),x=L.redSqr(),R=R.redMul(x),H=Z}return E},he.prototype.invm=function(u){var p=u._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},he.prototype.pow=function(u,p){if(p.isZero())return new h(1).toRed(this);if(p.cmpn(1)===0)return u.clone();var b=4,e=new Array(1<<b);e[0]=new h(1).toRed(this),e[1]=u;for(var c=2;c<e.length;c++)e[c]=this.mul(e[c-1],u);var y=e[0],w=0,v=0,o=p.bitLength()%26;for(o===0&&(o=26),c=p.length-1;c>=0;c--){for(var x=p.words[c],E=o-1;E>=0;E--){var R=x>>E&1;if(y!==e[0]&&(y=this.sqr(y)),R===0&&w===0){v=0;continue}w<<=1,w|=R,v++,!(v!==b&&(c!==0||E!==0))&&(y=this.mul(y,e[w]),v=0,w=0)}o=26}return y},he.prototype.convertTo=function(u){var p=u.umod(this.m);return p===u?p.clone():p},he.prototype.convertFrom=function(u){var p=u.clone();return p.red=null,p},h.mont=function(u){return new ke(u)};function ke(T){he.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(ke,he),ke.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},ke.prototype.convertFrom=function(u){var p=this.imod(u.mul(this.rinv));return p.red=null,p},ke.prototype.imul=function(u,p){if(u.isZero()||p.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.mul=function(u,p){if(u.isZero()||p.isZero())return new h(0)._forceRed(this);var b=u.mul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.invm=function(u){var p=this.imod(u._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,commonjsGlobal)}(bn$3);var bnExports$3=bn$3.exports,utils$n={};(function(t){var n=t;function l(h,S){if(Array.isArray(h))return h.slice();if(!h)return[];var k=[];if(typeof h!="string"){for(var A=0;A<h.length;A++)k[A]=h[A]|0;return k}if(S==="hex"){h=h.replace(/[^a-z0-9]+/ig,""),h.length%2!==0&&(h="0"+h);for(var A=0;A<h.length;A+=2)k.push(parseInt(h[A]+h[A+1],16))}else for(var A=0;A<h.length;A++){var B=h.charCodeAt(A),M=B>>8,j=B&255;M?k.push(M,j):k.push(j)}return k}n.toArray=l;function d(h){return h.length===1?"0"+h:h}n.zero2=d;function m(h){for(var S="",k=0;k<h.length;k++)S+=d(h[k].toString(16));return S}n.toHex=m,n.encode=function(S,k){return k==="hex"?m(S):S}})(utils$n),function(t){var n=t,l=bnExports$3,d=minimalisticAssert,m=utils$n;n.assert=d,n.toArray=m.toArray,n.zero2=m.zero2,n.toHex=m.toHex,n.encode=m.encode;function h(M,j,I){var P=new Array(Math.max(M.bitLength(),I)+1),$;for($=0;$<P.length;$+=1)P[$]=0;var z=1<<j+1,N=M.clone();for($=0;$<P.length;$++){var F,U=N.andln(z-1);N.isOdd()?(U>(z>>1)-1?F=(z>>1)-U:F=U,N.isubn(F)):F=0,P[$]=F,N.iushrn(1)}return P}n.getNAF=h;function S(M,j){var I=[[],[]];M=M.clone(),j=j.clone();for(var P=0,$=0,z;M.cmpn(-P)>0||j.cmpn(-$)>0;){var N=M.andln(3)+P&3,F=j.andln(3)+$&3;N===3&&(N=-1),F===3&&(F=-1);var U;N&1?(z=M.andln(7)+P&7,(z===3||z===5)&&F===2?U=-N:U=N):U=0,I[0].push(U);var J;F&1?(z=j.andln(7)+$&7,(z===3||z===5)&&N===2?J=-F:J=F):J=0,I[1].push(J),2*P===U+1&&(P=1-P),2*$===J+1&&($=1-$),M.iushrn(1),j.iushrn(1)}return I}n.getJSF=S;function k(M,j,I){var P="_"+j;M.prototype[j]=function(){return this[P]!==void 0?this[P]:this[P]=I.call(this)}}n.cachedProperty=k;function A(M){return typeof M=="string"?n.toArray(M,"hex"):M}n.parseBytes=A;function B(M){return new l(M,"hex","le")}n.intFromLE=B}(utils$o);var curve={},BN$9=bnExports$3,utils$m=utils$o,getNAF=utils$m.getNAF,getJSF=utils$m.getJSF,assert$e=utils$m.assert;function BaseCurve(t,n){this.type=t,this.p=new BN$9(n.p,16),this.red=n.prime?BN$9.red(n.prime):BN$9.mont(this.p),this.zero=new BN$9(0).toRed(this.red),this.one=new BN$9(1).toRed(this.red),this.two=new BN$9(2).toRed(this.red),this.n=n.n&&new BN$9(n.n,16),this.g=n.g&&this.pointFromJSON(n.g,n.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var l=this.n&&this.p.div(this.n);!l||l.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$1=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")},BaseCurve.prototype.validate=function(){throw new Error("Not implemented")},BaseCurve.prototype._fixedNafMul=function(n,l){assert$e(n.precomputed);var d=n._getDoubles(),m=getNAF(l,1,this._bitLength),h=(1<<d.step+1)-(d.step%2===0?2:1);h/=3;var S=[],k,A;for(k=0;k<m.length;k+=d.step){A=0;for(var B=k+d.step-1;B>=k;B--)A=(A<<1)+m[B];S.push(A)}for(var M=this.jpoint(null,null,null),j=this.jpoint(null,null,null),I=h;I>0;I--){for(k=0;k<S.length;k++)A=S[k],A===I?j=j.mixedAdd(d.points[k]):A===-I&&(j=j.mixedAdd(d.points[k].neg()));M=M.add(j)}return M.toP()},BaseCurve.prototype._wnafMul=function(n,l){var d=4,m=n._getNAFPoints(d);d=m.wnd;for(var h=m.points,S=getNAF(l,d,this._bitLength),k=this.jpoint(null,null,null),A=S.length-1;A>=0;A--){for(var B=0;A>=0&&S[A]===0;A--)B++;if(A>=0&&B++,k=k.dblp(B),A<0)break;var M=S[A];assert$e(M!==0),n.type==="affine"?M>0?k=k.mixedAdd(h[M-1>>1]):k=k.mixedAdd(h[-M-1>>1].neg()):M>0?k=k.add(h[M-1>>1]):k=k.add(h[-M-1>>1].neg())}return n.type==="affine"?k.toP():k},BaseCurve.prototype._wnafMulAdd=function(n,l,d,m,h){var S=this._wnafT1,k=this._wnafT2,A=this._wnafT3,B=0,M,j,I;for(M=0;M<m;M++){I=l[M];var P=I._getNAFPoints(n);S[M]=P.wnd,k[M]=P.points}for(M=m-1;M>=1;M-=2){var $=M-1,z=M;if(S[$]!==1||S[z]!==1){A[$]=getNAF(d[$],S[$],this._bitLength),A[z]=getNAF(d[z],S[z],this._bitLength),B=Math.max(A[$].length,B),B=Math.max(A[z].length,B);continue}var N=[l[$],null,null,l[z]];l[$].y.cmp(l[z].y)===0?(N[1]=l[$].add(l[z]),N[2]=l[$].toJ().mixedAdd(l[z].neg())):l[$].y.cmp(l[z].y.redNeg())===0?(N[1]=l[$].toJ().mixedAdd(l[z]),N[2]=l[$].add(l[z].neg())):(N[1]=l[$].toJ().mixedAdd(l[z]),N[2]=l[$].toJ().mixedAdd(l[z].neg()));var F=[-3,-1,-5,-7,0,7,5,1,3],U=getJSF(d[$],d[z]);for(B=Math.max(U[0].length,B),A[$]=new Array(B),A[z]=new Array(B),j=0;j<B;j++){var J=U[0][j]|0,te=U[1][j]|0;A[$][j]=F[(J+1)*3+(te+1)],A[z][j]=0,k[$]=N}}var se=this.jpoint(null,null,null),de=this._wnafT4;for(M=B;M>=0;M--){for(var Q=0;M>=0;){var ve=!0;for(j=0;j<m;j++)de[j]=A[j][M]|0,de[j]!==0&&(ve=!1);if(!ve)break;Q++,M--}if(M>=0&&Q++,se=se.dblp(Q),M<0)break;for(j=0;j<m;j++){var he=de[j];he!==0&&(he>0?I=k[j][he-1>>1]:he<0&&(I=k[j][-he-1>>1].neg()),I.type==="affine"?se=se.mixedAdd(I):se=se.add(I))}}for(M=0;M<m;M++)k[M]=null;return h?se:se.toP()};function BasePoint(t,n){this.curve=t,this.type=n,this.precomputed=null}BaseCurve.BasePoint=BasePoint,BasePoint.prototype.eq=function(){throw new Error("Not implemented")},BasePoint.prototype.validate=function(){return this.curve.validate(this)},BaseCurve.prototype.decodePoint=function(n,l){n=utils$m.toArray(n,l);var d=this.p.byteLength();if((n[0]===4||n[0]===6||n[0]===7)&&n.length-1===2*d){n[0]===6?assert$e(n[n.length-1]%2===0):n[0]===7&&assert$e(n[n.length-1]%2===1);var m=this.point(n.slice(1,1+d),n.slice(1+d,1+2*d));return m}else if((n[0]===2||n[0]===3)&&n.length-1===d)return this.pointFromX(n.slice(1,1+d),n[0]===3);throw new Error("Unknown point format")},BasePoint.prototype.encodeCompressed=function(n){return this.encode(n,!0)},BasePoint.prototype._encode=function(n){var l=this.curve.p.byteLength(),d=this.getX().toArray("be",l);return n?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",l))},BasePoint.prototype.encode=function(n,l){return utils$m.encode(this._encode(l),n)},BasePoint.prototype.precompute=function(n){if(this.precomputed)return this;var l={doubles:null,naf:null,beta:null};return l.naf=this._getNAFPoints(8),l.doubles=this._getDoubles(4,n),l.beta=this._getBeta(),this.precomputed=l,this},BasePoint.prototype._hasDoubles=function(n){if(!this.precomputed)return!1;var l=this.precomputed.doubles;return l?l.points.length>=Math.ceil((n.bitLength()+1)/l.step):!1},BasePoint.prototype._getDoubles=function(n,l){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],m=this,h=0;h<l;h+=n){for(var S=0;S<n;S++)m=m.dbl();d.push(m)}return{step:n,points:d}},BasePoint.prototype._getNAFPoints=function(n){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var l=[this],d=(1<<n)-1,m=d===1?null:this.dbl(),h=1;h<d;h++)l[h]=l[h-1].add(m);return{wnd:n,points:l}},BasePoint.prototype._getBeta=function(){return null},BasePoint.prototype.dblp=function(n){for(var l=this,d=0;d<n;d++)l=l.dbl();return l};var utils$l=utils$o,BN$8=bnExports$3,inherits$4=inherits_browserExports,Base$2=base$1,assert$d=utils$l.assert;function ShortCurve(t){Base$2.call(this,"short",t),this.a=new BN$8(t.a,16).toRed(this.red),this.b=new BN$8(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}inherits$4(ShortCurve,Base$2);var short=ShortCurve;ShortCurve.prototype._getEndomorphism=function(n){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var l,d;if(n.beta)l=new BN$8(n.beta,16).toRed(this.red);else{var m=this._getEndoRoots(this.p);l=m[0].cmp(m[1])<0?m[0]:m[1],l=l.toRed(this.red)}if(n.lambda)d=new BN$8(n.lambda,16);else{var h=this._getEndoRoots(this.n);this.g.mul(h[0]).x.cmp(this.g.x.redMul(l))===0?d=h[0]:(d=h[1],assert$d(this.g.mul(d).x.cmp(this.g.x.redMul(l))===0))}var S;return n.basis?S=n.basis.map(function(k){return{a:new BN$8(k.a,16),b:new BN$8(k.b,16)}}):S=this._getEndoBasis(d),{beta:l,lambda:d,basis:S}}},ShortCurve.prototype._getEndoRoots=function(n){var l=n===this.p?this.red:BN$8.mont(n),d=new BN$8(2).toRed(l).redInvm(),m=d.redNeg(),h=new BN$8(3).toRed(l).redNeg().redSqrt().redMul(d),S=m.redAdd(h).fromRed(),k=m.redSub(h).fromRed();return[S,k]},ShortCurve.prototype._getEndoBasis=function(n){for(var l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=n,m=this.n.clone(),h=new BN$8(1),S=new BN$8(0),k=new BN$8(0),A=new BN$8(1),B,M,j,I,P,$,z,N=0,F,U;d.cmpn(0)!==0;){var J=m.div(d);F=m.sub(J.mul(d)),U=k.sub(J.mul(h));var te=A.sub(J.mul(S));if(!j&&F.cmp(l)<0)B=z.neg(),M=h,j=F.neg(),I=U;else if(j&&++N===2)break;z=F,m=d,d=F,k=h,h=U,A=S,S=te}P=F.neg(),$=U;var se=j.sqr().add(I.sqr()),de=P.sqr().add($.sqr());return de.cmp(se)>=0&&(P=B,$=M),j.negative&&(j=j.neg(),I=I.neg()),P.negative&&(P=P.neg(),$=$.neg()),[{a:j,b:I},{a:P,b:$}]},ShortCurve.prototype._endoSplit=function(n){var l=this.endo.basis,d=l[0],m=l[1],h=m.b.mul(n).divRound(this.n),S=d.b.neg().mul(n).divRound(this.n),k=h.mul(d.a),A=S.mul(m.a),B=h.mul(d.b),M=S.mul(m.b),j=n.sub(k).sub(A),I=B.add(M).neg();return{k1:j,k2:I}},ShortCurve.prototype.pointFromX=function(n,l){n=new BN$8(n,16),n.red||(n=n.toRed(this.red));var d=n.redSqr().redMul(n).redIAdd(n.redMul(this.a)).redIAdd(this.b),m=d.redSqrt();if(m.redSqr().redSub(d).cmp(this.zero)!==0)throw new Error("invalid point");var h=m.fromRed().isOdd();return(l&&!h||!l&&h)&&(m=m.redNeg()),this.point(n,m)},ShortCurve.prototype.validate=function(n){if(n.inf)return!0;var l=n.x,d=n.y,m=this.a.redMul(l),h=l.redSqr().redMul(l).redIAdd(m).redIAdd(this.b);return d.redSqr().redISub(h).cmpn(0)===0},ShortCurve.prototype._endoWnafMulAdd=function(n,l,d){for(var m=this._endoWnafT1,h=this._endoWnafT2,S=0;S<n.length;S++){var k=this._endoSplit(l[S]),A=n[S],B=A._getBeta();k.k1.negative&&(k.k1.ineg(),A=A.neg(!0)),k.k2.negative&&(k.k2.ineg(),B=B.neg(!0)),m[S*2]=A,m[S*2+1]=B,h[S*2]=k.k1,h[S*2+1]=k.k2}for(var M=this._wnafMulAdd(1,m,h,S*2,d),j=0;j<S*2;j++)m[j]=null,h[j]=null;return M};function Point$2(t,n,l,d){Base$2.BasePoint.call(this,t,"affine"),n===null&&l===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new BN$8(n,16),this.y=new BN$8(l,16),d&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}inherits$4(Point$2,Base$2.BasePoint),ShortCurve.prototype.point=function(n,l,d){return new Point$2(this,n,l,d)},ShortCurve.prototype.pointFromJSON=function(n,l){return Point$2.fromJSON(this,n,l)},Point$2.prototype._getBeta=function(){if(this.curve.endo){var n=this.precomputed;if(n&&n.beta)return n.beta;var l=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(n){var d=this.curve,m=function(h){return d.point(h.x.redMul(d.endo.beta),h.y)};n.beta=l,l.precomputed={beta:null,naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(m)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(m)}}}return l}},Point$2.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Point$2.fromJSON=function(n,l,d){typeof l=="string"&&(l=JSON.parse(l));var m=n.point(l[0],l[1],d);if(!l[2])return m;function h(k){return n.point(k[0],k[1],d)}var S=l[2];return m.precomputed={beta:null,doubles:S.doubles&&{step:S.doubles.step,points:[m].concat(S.doubles.points.map(h))},naf:S.naf&&{wnd:S.naf.wnd,points:[m].concat(S.naf.points.map(h))}},m},Point$2.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Point$2.prototype.isInfinity=function(){return this.inf},Point$2.prototype.add=function(n){if(this.inf)return n;if(n.inf)return this;if(this.eq(n))return this.dbl();if(this.neg().eq(n))return this.curve.point(null,null);if(this.x.cmp(n.x)===0)return this.curve.point(null,null);var l=this.y.redSub(n.y);l.cmpn(0)!==0&&(l=l.redMul(this.x.redSub(n.x).redInvm()));var d=l.redSqr().redISub(this.x).redISub(n.x),m=l.redMul(this.x.redSub(d)).redISub(this.y);return this.curve.point(d,m)},Point$2.prototype.dbl=function(){if(this.inf)return this;var n=this.y.redAdd(this.y);if(n.cmpn(0)===0)return this.curve.point(null,null);var l=this.curve.a,d=this.x.redSqr(),m=n.redInvm(),h=d.redAdd(d).redIAdd(d).redIAdd(l).redMul(m),S=h.redSqr().redISub(this.x.redAdd(this.x)),k=h.redMul(this.x.redSub(S)).redISub(this.y);return this.curve.point(S,k)},Point$2.prototype.getX=function(){return this.x.fromRed()},Point$2.prototype.getY=function(){return this.y.fromRed()},Point$2.prototype.mul=function(n){return n=new BN$8(n,16),this.isInfinity()?this:this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve.endo?this.curve._endoWnafMulAdd([this],[n]):this.curve._wnafMul(this,n)},Point$2.prototype.mulAdd=function(n,l,d){var m=[this,l],h=[n,d];return this.curve.endo?this.curve._endoWnafMulAdd(m,h):this.curve._wnafMulAdd(1,m,h,2)},Point$2.prototype.jmulAdd=function(n,l,d){var m=[this,l],h=[n,d];return this.curve.endo?this.curve._endoWnafMulAdd(m,h,!0):this.curve._wnafMulAdd(1,m,h,2,!0)},Point$2.prototype.eq=function(n){return this===n||this.inf===n.inf&&(this.inf||this.x.cmp(n.x)===0&&this.y.cmp(n.y)===0)},Point$2.prototype.neg=function(n){if(this.inf)return this;var l=this.curve.point(this.x,this.y.redNeg());if(n&&this.precomputed){var d=this.precomputed,m=function(h){return h.neg()};l.precomputed={naf:d.naf&&{wnd:d.naf.wnd,points:d.naf.points.map(m)},doubles:d.doubles&&{step:d.doubles.step,points:d.doubles.points.map(m)}}}return l},Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var n=this.curve.jpoint(this.x,this.y,this.curve.one);return n};function JPoint(t,n,l,d){Base$2.BasePoint.call(this,t,"jacobian"),n===null&&l===null&&d===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$8(0)):(this.x=new BN$8(n,16),this.y=new BN$8(l,16),this.z=new BN$8(d,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$4(JPoint,Base$2.BasePoint),ShortCurve.prototype.jpoint=function(n,l,d){return new JPoint(this,n,l,d)},JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var n=this.z.redInvm(),l=n.redSqr(),d=this.x.redMul(l),m=this.y.redMul(l).redMul(n);return this.curve.point(d,m)},JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},JPoint.prototype.add=function(n){if(this.isInfinity())return n;if(n.isInfinity())return this;var l=n.z.redSqr(),d=this.z.redSqr(),m=this.x.redMul(l),h=n.x.redMul(d),S=this.y.redMul(l.redMul(n.z)),k=n.y.redMul(d.redMul(this.z)),A=m.redSub(h),B=S.redSub(k);if(A.cmpn(0)===0)return B.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=A.redSqr(),j=M.redMul(A),I=m.redMul(M),P=B.redSqr().redIAdd(j).redISub(I).redISub(I),$=B.redMul(I.redISub(P)).redISub(S.redMul(j)),z=this.z.redMul(n.z).redMul(A);return this.curve.jpoint(P,$,z)},JPoint.prototype.mixedAdd=function(n){if(this.isInfinity())return n.toJ();if(n.isInfinity())return this;var l=this.z.redSqr(),d=this.x,m=n.x.redMul(l),h=this.y,S=n.y.redMul(l).redMul(this.z),k=d.redSub(m),A=h.redSub(S);if(k.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var B=k.redSqr(),M=B.redMul(k),j=d.redMul(B),I=A.redSqr().redIAdd(M).redISub(j).redISub(j),P=A.redMul(j.redISub(I)).redISub(h.redMul(M)),$=this.z.redMul(k);return this.curve.jpoint(I,P,$)},JPoint.prototype.dblp=function(n){if(n===0)return this;if(this.isInfinity())return this;if(!n)return this.dbl();var l;if(this.curve.zeroA||this.curve.threeA){var d=this;for(l=0;l<n;l++)d=d.dbl();return d}var m=this.curve.a,h=this.curve.tinv,S=this.x,k=this.y,A=this.z,B=A.redSqr().redSqr(),M=k.redAdd(k);for(l=0;l<n;l++){var j=S.redSqr(),I=M.redSqr(),P=I.redSqr(),$=j.redAdd(j).redIAdd(j).redIAdd(m.redMul(B)),z=S.redMul(I),N=$.redSqr().redISub(z.redAdd(z)),F=z.redISub(N),U=$.redMul(F);U=U.redIAdd(U).redISub(P);var J=M.redMul(A);l+1<n&&(B=B.redMul(P)),S=N,A=J,M=U}return this.curve.jpoint(S,M.redMul(h),A)},JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},JPoint.prototype._zeroDbl=function(){var n,l,d;if(this.zOne){var m=this.x.redSqr(),h=this.y.redSqr(),S=h.redSqr(),k=this.x.redAdd(h).redSqr().redISub(m).redISub(S);k=k.redIAdd(k);var A=m.redAdd(m).redIAdd(m),B=A.redSqr().redISub(k).redISub(k),M=S.redIAdd(S);M=M.redIAdd(M),M=M.redIAdd(M),n=B,l=A.redMul(k.redISub(B)).redISub(M),d=this.y.redAdd(this.y)}else{var j=this.x.redSqr(),I=this.y.redSqr(),P=I.redSqr(),$=this.x.redAdd(I).redSqr().redISub(j).redISub(P);$=$.redIAdd($);var z=j.redAdd(j).redIAdd(j),N=z.redSqr(),F=P.redIAdd(P);F=F.redIAdd(F),F=F.redIAdd(F),n=N.redISub($).redISub($),l=z.redMul($.redISub(n)).redISub(F),d=this.y.redMul(this.z),d=d.redIAdd(d)}return this.curve.jpoint(n,l,d)},JPoint.prototype._threeDbl=function(){var n,l,d;if(this.zOne){var m=this.x.redSqr(),h=this.y.redSqr(),S=h.redSqr(),k=this.x.redAdd(h).redSqr().redISub(m).redISub(S);k=k.redIAdd(k);var A=m.redAdd(m).redIAdd(m).redIAdd(this.curve.a),B=A.redSqr().redISub(k).redISub(k);n=B;var M=S.redIAdd(S);M=M.redIAdd(M),M=M.redIAdd(M),l=A.redMul(k.redISub(B)).redISub(M),d=this.y.redAdd(this.y)}else{var j=this.z.redSqr(),I=this.y.redSqr(),P=this.x.redMul(I),$=this.x.redSub(j).redMul(this.x.redAdd(j));$=$.redAdd($).redIAdd($);var z=P.redIAdd(P);z=z.redIAdd(z);var N=z.redAdd(z);n=$.redSqr().redISub(N),d=this.y.redAdd(this.z).redSqr().redISub(I).redISub(j);var F=I.redSqr();F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F),l=$.redMul(z.redISub(n)).redISub(F)}return this.curve.jpoint(n,l,d)},JPoint.prototype._dbl=function(){var n=this.curve.a,l=this.x,d=this.y,m=this.z,h=m.redSqr().redSqr(),S=l.redSqr(),k=d.redSqr(),A=S.redAdd(S).redIAdd(S).redIAdd(n.redMul(h)),B=l.redAdd(l);B=B.redIAdd(B);var M=B.redMul(k),j=A.redSqr().redISub(M.redAdd(M)),I=M.redISub(j),P=k.redSqr();P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var $=A.redMul(I).redISub(P),z=d.redAdd(d).redMul(m);return this.curve.jpoint(j,$,z)},JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var n=this.x.redSqr(),l=this.y.redSqr(),d=this.z.redSqr(),m=l.redSqr(),h=n.redAdd(n).redIAdd(n),S=h.redSqr(),k=this.x.redAdd(l).redSqr().redISub(n).redISub(m);k=k.redIAdd(k),k=k.redAdd(k).redIAdd(k),k=k.redISub(S);var A=k.redSqr(),B=m.redIAdd(m);B=B.redIAdd(B),B=B.redIAdd(B),B=B.redIAdd(B);var M=h.redIAdd(k).redSqr().redISub(S).redISub(A).redISub(B),j=l.redMul(M);j=j.redIAdd(j),j=j.redIAdd(j);var I=this.x.redMul(A).redISub(j);I=I.redIAdd(I),I=I.redIAdd(I);var P=this.y.redMul(M.redMul(B.redISub(M)).redISub(k.redMul(A)));P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var $=this.z.redAdd(k).redSqr().redISub(d).redISub(A);return this.curve.jpoint(I,P,$)},JPoint.prototype.mul=function(n,l){return n=new BN$8(n,l),this.curve._wnafMul(this,n)},JPoint.prototype.eq=function(n){if(n.type==="affine")return this.eq(n.toJ());if(this===n)return!0;var l=this.z.redSqr(),d=n.z.redSqr();if(this.x.redMul(d).redISub(n.x.redMul(l)).cmpn(0)!==0)return!1;var m=l.redMul(this.z),h=d.redMul(n.z);return this.y.redMul(h).redISub(n.y.redMul(m)).cmpn(0)===0},JPoint.prototype.eqXToP=function(n){var l=this.z.redSqr(),d=n.toRed(this.curve.red).redMul(l);if(this.x.cmp(d)===0)return!0;for(var m=n.clone(),h=this.curve.redN.redMul(l);;){if(m.iadd(this.curve.n),m.cmp(this.curve.p)>=0)return!1;if(d.redIAdd(h),this.x.cmp(d)===0)return!0}},JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$7=bnExports$3,inherits$3=inherits_browserExports,Base$1=base$1,utils$k=utils$o;function MontCurve(t){Base$1.call(this,"mont",t),this.a=new BN$7(t.a,16).toRed(this.red),this.b=new BN$7(t.b,16).toRed(this.red),this.i4=new BN$7(4).toRed(this.red).redInvm(),this.two=new BN$7(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$3(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(n){var l=n.normalize().x,d=l.redSqr(),m=d.redMul(l).redAdd(d.redMul(this.a)).redAdd(l),h=m.redSqrt();return h.redSqr().cmp(m)===0};function Point$1(t,n,l){Base$1.BasePoint.call(this,t,"projective"),n===null&&l===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$7(n,16),this.z=new BN$7(l,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$3(Point$1,Base$1.BasePoint),MontCurve.prototype.decodePoint=function(n,l){return this.point(utils$k.toArray(n,l),1)},MontCurve.prototype.point=function(n,l){return new Point$1(this,n,l)},MontCurve.prototype.pointFromJSON=function(n){return Point$1.fromJSON(this,n)},Point$1.prototype.precompute=function(){},Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point$1.fromJSON=function(n,l){return new Point$1(n,l[0],l[1]||n.one)},Point$1.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0},Point$1.prototype.dbl=function(){var n=this.x.redAdd(this.z),l=n.redSqr(),d=this.x.redSub(this.z),m=d.redSqr(),h=l.redSub(m),S=l.redMul(m),k=h.redMul(m.redAdd(this.curve.a24.redMul(h)));return this.curve.point(S,k)},Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.diffAdd=function(n,l){var d=this.x.redAdd(this.z),m=this.x.redSub(this.z),h=n.x.redAdd(n.z),S=n.x.redSub(n.z),k=S.redMul(d),A=h.redMul(m),B=l.z.redMul(k.redAdd(A).redSqr()),M=l.x.redMul(k.redISub(A).redSqr());return this.curve.point(B,M)},Point$1.prototype.mul=function(n){for(var l=n.clone(),d=this,m=this.curve.point(null,null),h=this,S=[];l.cmpn(0)!==0;l.iushrn(1))S.push(l.andln(1));for(var k=S.length-1;k>=0;k--)S[k]===0?(d=d.diffAdd(m,h),m=m.dbl()):(m=d.diffAdd(m,h),d=d.dbl());return m},Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},Point$1.prototype.eq=function(n){return this.getX().cmp(n.getX())===0},Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$j=utils$o,BN$6=bnExports$3,inherits$2=inherits_browserExports,Base=base$1,assert$c=utils$j.assert;function EdwardsCurve(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",t),this.a=new BN$6(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$6(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$6(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$c(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}inherits$2(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(n){return this.mOneA?n.redNeg():this.a.redMul(n)},EdwardsCurve.prototype._mulC=function(n){return this.oneC?n:this.c.redMul(n)},EdwardsCurve.prototype.jpoint=function(n,l,d,m){return this.point(n,l,d,m)},EdwardsCurve.prototype.pointFromX=function(n,l){n=new BN$6(n,16),n.red||(n=n.toRed(this.red));var d=n.redSqr(),m=this.c2.redSub(this.a.redMul(d)),h=this.one.redSub(this.c2.redMul(this.d).redMul(d)),S=m.redMul(h.redInvm()),k=S.redSqrt();if(k.redSqr().redSub(S).cmp(this.zero)!==0)throw new Error("invalid point");var A=k.fromRed().isOdd();return(l&&!A||!l&&A)&&(k=k.redNeg()),this.point(n,k)},EdwardsCurve.prototype.pointFromY=function(n,l){n=new BN$6(n,16),n.red||(n=n.toRed(this.red));var d=n.redSqr(),m=d.redSub(this.c2),h=d.redMul(this.d).redMul(this.c2).redSub(this.a),S=m.redMul(h.redInvm());if(S.cmp(this.zero)===0){if(l)throw new Error("invalid point");return this.point(this.zero,n)}var k=S.redSqrt();if(k.redSqr().redSub(S).cmp(this.zero)!==0)throw new Error("invalid point");return k.fromRed().isOdd()!==l&&(k=k.redNeg()),this.point(k,n)},EdwardsCurve.prototype.validate=function(n){if(n.isInfinity())return!0;n.normalize();var l=n.x.redSqr(),d=n.y.redSqr(),m=l.redMul(this.a).redAdd(d),h=this.c2.redMul(this.one.redAdd(this.d.redMul(l).redMul(d)));return m.cmp(h)===0};function Point(t,n,l,d,m){Base.BasePoint.call(this,t,"projective"),n===null&&l===null&&d===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$6(n,16),this.y=new BN$6(l,16),this.z=d?new BN$6(d,16):this.curve.one,this.t=m&&new BN$6(m,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$2(Point,Base.BasePoint),EdwardsCurve.prototype.pointFromJSON=function(n){return Point.fromJSON(this,n)},EdwardsCurve.prototype.point=function(n,l,d,m){return new Point(this,n,l,d,m)},Point.fromJSON=function(n,l){return new Point(n,l[0],l[1],l[2])},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},Point.prototype._extDbl=function(){var n=this.x.redSqr(),l=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var m=this.curve._mulA(n),h=this.x.redAdd(this.y).redSqr().redISub(n).redISub(l),S=m.redAdd(l),k=S.redSub(d),A=m.redSub(l),B=h.redMul(k),M=S.redMul(A),j=h.redMul(A),I=k.redMul(S);return this.curve.point(B,M,I,j)},Point.prototype._projDbl=function(){var n=this.x.redAdd(this.y).redSqr(),l=this.x.redSqr(),d=this.y.redSqr(),m,h,S,k,A,B;if(this.curve.twisted){k=this.curve._mulA(l);var M=k.redAdd(d);this.zOne?(m=n.redSub(l).redSub(d).redMul(M.redSub(this.curve.two)),h=M.redMul(k.redSub(d)),S=M.redSqr().redSub(M).redSub(M)):(A=this.z.redSqr(),B=M.redSub(A).redISub(A),m=n.redSub(l).redISub(d).redMul(B),h=M.redMul(k.redSub(d)),S=M.redMul(B))}else k=l.redAdd(d),A=this.curve._mulC(this.z).redSqr(),B=k.redSub(A).redSub(A),m=this.curve._mulC(n.redISub(k)).redMul(B),h=this.curve._mulC(k).redMul(l.redISub(d)),S=k.redMul(B);return this.curve.point(m,h,S)},Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function(n){var l=this.y.redSub(this.x).redMul(n.y.redSub(n.x)),d=this.y.redAdd(this.x).redMul(n.y.redAdd(n.x)),m=this.t.redMul(this.curve.dd).redMul(n.t),h=this.z.redMul(n.z.redAdd(n.z)),S=d.redSub(l),k=h.redSub(m),A=h.redAdd(m),B=d.redAdd(l),M=S.redMul(k),j=A.redMul(B),I=S.redMul(B),P=k.redMul(A);return this.curve.point(M,j,P,I)},Point.prototype._projAdd=function(n){var l=this.z.redMul(n.z),d=l.redSqr(),m=this.x.redMul(n.x),h=this.y.redMul(n.y),S=this.curve.d.redMul(m).redMul(h),k=d.redSub(S),A=d.redAdd(S),B=this.x.redAdd(this.y).redMul(n.x.redAdd(n.y)).redISub(m).redISub(h),M=l.redMul(k).redMul(B),j,I;return this.curve.twisted?(j=l.redMul(A).redMul(h.redSub(this.curve._mulA(m))),I=k.redMul(A)):(j=l.redMul(A).redMul(h.redSub(m)),I=this.curve._mulC(k).redMul(A)),this.curve.point(M,j,I)},Point.prototype.add=function(n){return this.isInfinity()?n:n.isInfinity()?this:this.curve.extended?this._extAdd(n):this._projAdd(n)},Point.prototype.mul=function(n){return this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve._wnafMul(this,n)},Point.prototype.mulAdd=function(n,l,d){return this.curve._wnafMulAdd(1,[this,l],[n,d],2,!1)},Point.prototype.jmulAdd=function(n,l,d){return this.curve._wnafMulAdd(1,[this,l],[n,d],2,!0)},Point.prototype.normalize=function(){if(this.zOne)return this;var n=this.z.redInvm();return this.x=this.x.redMul(n),this.y=this.y.redMul(n),this.t&&(this.t=this.t.redMul(n)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function(n){return this===n||this.getX().cmp(n.getX())===0&&this.getY().cmp(n.getY())===0},Point.prototype.eqXToP=function(n){var l=n.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(l)===0)return!0;for(var d=n.clone(),m=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(l.redIAdd(m),this.x.cmp(l)===0)return!0}},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add,function(t){var n=t;n.base=base$1,n.short=short,n.mont=mont,n.edwards=edwards}(curve);var curves$1={},hash$2={},utils$i={},assert$b=minimalisticAssert,inherits$1=inherits_browserExports;utils$i.inherits=inherits$1;function isSurrogatePair(t,n){return(t.charCodeAt(n)&64512)!==55296||n<0||n+1>=t.length?!1:(t.charCodeAt(n+1)&64512)===56320}function toArray(t,n){if(Array.isArray(t))return t.slice();if(!t)return[];var l=[];if(typeof t=="string")if(n){if(n==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),m=0;m<t.length;m+=2)l.push(parseInt(t[m]+t[m+1],16))}else for(var d=0,m=0;m<t.length;m++){var h=t.charCodeAt(m);h<128?l[d++]=h:h<2048?(l[d++]=h>>6|192,l[d++]=h&63|128):isSurrogatePair(t,m)?(h=65536+((h&1023)<<10)+(t.charCodeAt(++m)&1023),l[d++]=h>>18|240,l[d++]=h>>12&63|128,l[d++]=h>>6&63|128,l[d++]=h&63|128):(l[d++]=h>>12|224,l[d++]=h>>6&63|128,l[d++]=h&63|128)}else for(m=0;m<t.length;m++)l[m]=t[m]|0;return l}utils$i.toArray=toArray;function toHex(t){for(var n="",l=0;l<t.length;l++)n+=zero2(t[l].toString(16));return n}utils$i.toHex=toHex;function htonl(t){var n=t>>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return n>>>0}utils$i.htonl=htonl;function toHex32(t,n){for(var l="",d=0;d<t.length;d++){var m=t[d];n==="little"&&(m=htonl(m)),l+=zero8(m.toString(16))}return l}utils$i.toHex32=toHex32;function zero2(t){return t.length===1?"0"+t:t}utils$i.zero2=zero2;function zero8(t){return t.length===7?"0"+t:t.length===6?"00"+t:t.length===5?"000"+t:t.length===4?"0000"+t:t.length===3?"00000"+t:t.length===2?"000000"+t:t.length===1?"0000000"+t:t}utils$i.zero8=zero8;function join32(t,n,l,d){var m=l-n;assert$b(m%4===0);for(var h=new Array(m/4),S=0,k=n;S<h.length;S++,k+=4){var A;d==="big"?A=t[k]<<24|t[k+1]<<16|t[k+2]<<8|t[k+3]:A=t[k+3]<<24|t[k+2]<<16|t[k+1]<<8|t[k],h[S]=A>>>0}return h}utils$i.join32=join32;function split32(t,n){for(var l=new Array(t.length*4),d=0,m=0;d<t.length;d++,m+=4){var h=t[d];n==="big"?(l[m]=h>>>24,l[m+1]=h>>>16&255,l[m+2]=h>>>8&255,l[m+3]=h&255):(l[m+3]=h>>>24,l[m+2]=h>>>16&255,l[m+1]=h>>>8&255,l[m]=h&255)}return l}utils$i.split32=split32;function rotr32$1(t,n){return t>>>n|t<<32-n}utils$i.rotr32=rotr32$1;function rotl32$2(t,n){return t<<n|t>>>32-n}utils$i.rotl32=rotl32$2;function sum32$3(t,n){return t+n>>>0}utils$i.sum32=sum32$3;function sum32_3$1(t,n,l){return t+n+l>>>0}utils$i.sum32_3=sum32_3$1;function sum32_4$2(t,n,l,d){return t+n+l+d>>>0}utils$i.sum32_4=sum32_4$2;function sum32_5$2(t,n,l,d,m){return t+n+l+d+m>>>0}utils$i.sum32_5=sum32_5$2;function sum64$1(t,n,l,d){var m=t[n],h=t[n+1],S=d+h>>>0,k=(S<d?1:0)+l+m;t[n]=k>>>0,t[n+1]=S}utils$i.sum64=sum64$1;function sum64_hi$1(t,n,l,d){var m=n+d>>>0,h=(m<n?1:0)+t+l;return h>>>0}utils$i.sum64_hi=sum64_hi$1;function sum64_lo$1(t,n,l,d){var m=n+d;return m>>>0}utils$i.sum64_lo=sum64_lo$1;function sum64_4_hi$1(t,n,l,d,m,h,S,k){var A=0,B=n;B=B+d>>>0,A+=B<n?1:0,B=B+h>>>0,A+=B<h?1:0,B=B+k>>>0,A+=B<k?1:0;var M=t+l+m+S+A;return M>>>0}utils$i.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(t,n,l,d,m,h,S,k){var A=n+d+h+k;return A>>>0}utils$i.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(t,n,l,d,m,h,S,k,A,B){var M=0,j=n;j=j+d>>>0,M+=j<n?1:0,j=j+h>>>0,M+=j<h?1:0,j=j+k>>>0,M+=j<k?1:0,j=j+B>>>0,M+=j<B?1:0;var I=t+l+m+S+A+M;return I>>>0}utils$i.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(t,n,l,d,m,h,S,k,A,B){var M=n+d+h+k+B;return M>>>0}utils$i.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(t,n,l){var d=n<<32-l|t>>>l;return d>>>0}utils$i.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(t,n,l){var d=t<<32-l|n>>>l;return d>>>0}utils$i.rotr64_lo=rotr64_lo$1;function shr64_hi$1(t,n,l){return t>>>l}utils$i.shr64_hi=shr64_hi$1;function shr64_lo$1(t,n,l){var d=t<<32-l|n>>>l;return d>>>0}utils$i.shr64_lo=shr64_lo$1;var common$6={},utils$h=utils$i,assert$a=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$6.BlockHash=BlockHash$4,BlockHash$4.prototype.update=function(n,l){if(n=utils$h.toArray(n,l),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var d=n.length%this._delta8;this.pending=n.slice(n.length-d,n.length),this.pending.length===0&&(this.pending=null),n=utils$h.join32(n,0,n.length-d,this.endian);for(var m=0;m<n.length;m+=this._delta32)this._update(n,m,m+this._delta32)}return this},BlockHash$4.prototype.digest=function(n){return this.update(this._pad()),assert$a(this.pending===null),this._digest(n)},BlockHash$4.prototype._pad=function(){var n=this.pendingTotal,l=this._delta8,d=l-(n+this.padLength)%l,m=new Array(d+this.padLength);m[0]=128;for(var h=1;h<d;h++)m[h]=0;if(n<<=3,this.endian==="big"){for(var S=8;S<this.padLength;S++)m[h++]=0;m[h++]=0,m[h++]=0,m[h++]=0,m[h++]=0,m[h++]=n>>>24&255,m[h++]=n>>>16&255,m[h++]=n>>>8&255,m[h++]=n&255}else for(m[h++]=n&255,m[h++]=n>>>8&255,m[h++]=n>>>16&255,m[h++]=n>>>24&255,m[h++]=0,m[h++]=0,m[h++]=0,m[h++]=0,S=8;S<this.padLength;S++)m[h++]=0;return m};var sha={},common$5={},utils$g=utils$i,rotr32=utils$g.rotr32;function ft_1$1(t,n,l,d){if(t===0)return ch32$1(n,l,d);if(t===1||t===3)return p32(n,l,d);if(t===2)return maj32$1(n,l,d)}common$5.ft_1=ft_1$1;function ch32$1(t,n,l){return t&n^~t&l}common$5.ch32=ch32$1;function maj32$1(t,n,l){return t&n^t&l^n&l}common$5.maj32=maj32$1;function p32(t,n,l){return t^n^l}common$5.p32=p32;function s0_256$1(t){return rotr32(t,2)^rotr32(t,13)^rotr32(t,22)}common$5.s0_256=s0_256$1;function s1_256$1(t){return rotr32(t,6)^rotr32(t,11)^rotr32(t,25)}common$5.s1_256=s1_256$1;function g0_256$1(t){return rotr32(t,7)^rotr32(t,18)^t>>>3}common$5.g0_256=g0_256$1;function g1_256$1(t){return rotr32(t,17)^rotr32(t,19)^t>>>10}common$5.g1_256=g1_256$1;var utils$f=utils$i,common$4=common$6,shaCommon$1=common$5,rotl32$1=utils$f.rotl32,sum32$2=utils$f.sum32,sum32_5$1=utils$f.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$4.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$f.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512,SHA1.outSize=160,SHA1.hmacStrength=80,SHA1.padLength=64,SHA1.prototype._update=function(n,l){for(var d=this.W,m=0;m<16;m++)d[m]=n[l+m];for(;m<d.length;m++)d[m]=rotl32$1(d[m-3]^d[m-8]^d[m-14]^d[m-16],1);var h=this.h[0],S=this.h[1],k=this.h[2],A=this.h[3],B=this.h[4];for(m=0;m<d.length;m++){var M=~~(m/20),j=sum32_5$1(rotl32$1(h,5),ft_1(M,S,k,A),B,d[m],sha1_K[M]);B=A,A=k,k=rotl32$1(S,30),S=h,h=j}this.h[0]=sum32$2(this.h[0],h),this.h[1]=sum32$2(this.h[1],S),this.h[2]=sum32$2(this.h[2],k),this.h[3]=sum32$2(this.h[3],A),this.h[4]=sum32$2(this.h[4],B)},SHA1.prototype._digest=function(n){return n==="hex"?utils$f.toHex32(this.h,"big"):utils$f.split32(this.h,"big")};var utils$e=utils$i,common$3=common$6,shaCommon=common$5,assert$9=minimalisticAssert,sum32$1=utils$e.sum32,sum32_4$1=utils$e.sum32_4,sum32_5=utils$e.sum32_5,ch32=shaCommon.ch32,maj32=shaCommon.maj32,s0_256=shaCommon.s0_256,s1_256=shaCommon.s1_256,g0_256=shaCommon.g0_256,g1_256=shaCommon.g1_256,BlockHash$2=common$3.BlockHash,sha256_K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function SHA256$1(){if(!(this instanceof SHA256$1))return new SHA256$1;BlockHash$2.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=sha256_K,this.W=new Array(64)}utils$e.inherits(SHA256$1,BlockHash$2);var _256=SHA256$1;SHA256$1.blockSize=512,SHA256$1.outSize=256,SHA256$1.hmacStrength=192,SHA256$1.padLength=64,SHA256$1.prototype._update=function(n,l){for(var d=this.W,m=0;m<16;m++)d[m]=n[l+m];for(;m<d.length;m++)d[m]=sum32_4$1(g1_256(d[m-2]),d[m-7],g0_256(d[m-15]),d[m-16]);var h=this.h[0],S=this.h[1],k=this.h[2],A=this.h[3],B=this.h[4],M=this.h[5],j=this.h[6],I=this.h[7];for(assert$9(this.k.length===d.length),m=0;m<d.length;m++){var P=sum32_5(I,s1_256(B),ch32(B,M,j),this.k[m],d[m]),$=sum32$1(s0_256(h),maj32(h,S,k));I=j,j=M,M=B,B=sum32$1(A,P),A=k,k=S,S=h,h=sum32$1(P,$)}this.h[0]=sum32$1(this.h[0],h),this.h[1]=sum32$1(this.h[1],S),this.h[2]=sum32$1(this.h[2],k),this.h[3]=sum32$1(this.h[3],A),this.h[4]=sum32$1(this.h[4],B),this.h[5]=sum32$1(this.h[5],M),this.h[6]=sum32$1(this.h[6],j),this.h[7]=sum32$1(this.h[7],I)},SHA256$1.prototype._digest=function(n){return n==="hex"?utils$e.toHex32(this.h,"big"):utils$e.split32(this.h,"big")};var utils$d=utils$i,SHA256=_256;function SHA224(){if(!(this instanceof SHA224))return new SHA224;SHA256.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}utils$d.inherits(SHA224,SHA256);var _224=SHA224;SHA224.blockSize=512,SHA224.outSize=224,SHA224.hmacStrength=192,SHA224.padLength=64,SHA224.prototype._digest=function(n){return n==="hex"?utils$d.toHex32(this.h.slice(0,7),"big"):utils$d.split32(this.h.slice(0,7),"big")};var utils$c=utils$i,common$2=common$6,assert$8=minimalisticAssert,rotr64_hi=utils$c.rotr64_hi,rotr64_lo=utils$c.rotr64_lo,shr64_hi=utils$c.shr64_hi,shr64_lo=utils$c.shr64_lo,sum64=utils$c.sum64,sum64_hi=utils$c.sum64_hi,sum64_lo=utils$c.sum64_lo,sum64_4_hi=utils$c.sum64_4_hi,sum64_4_lo=utils$c.sum64_4_lo,sum64_5_hi=utils$c.sum64_5_hi,sum64_5_lo=utils$c.sum64_5_lo,BlockHash$1=common$2.BlockHash,sha512_K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function SHA512$1(){if(!(this instanceof SHA512$1))return new SHA512$1;BlockHash$1.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=sha512_K,this.W=new Array(160)}utils$c.inherits(SHA512$1,BlockHash$1);var _512=SHA512$1;SHA512$1.blockSize=1024,SHA512$1.outSize=512,SHA512$1.hmacStrength=192,SHA512$1.padLength=128,SHA512$1.prototype._prepareBlock=function(n,l){for(var d=this.W,m=0;m<32;m++)d[m]=n[l+m];for(;m<d.length;m+=2){var h=g1_512_hi(d[m-4],d[m-3]),S=g1_512_lo(d[m-4],d[m-3]),k=d[m-14],A=d[m-13],B=g0_512_hi(d[m-30],d[m-29]),M=g0_512_lo(d[m-30],d[m-29]),j=d[m-32],I=d[m-31];d[m]=sum64_4_hi(h,S,k,A,B,M,j,I),d[m+1]=sum64_4_lo(h,S,k,A,B,M,j,I)}},SHA512$1.prototype._update=function(n,l){this._prepareBlock(n,l);var d=this.W,m=this.h[0],h=this.h[1],S=this.h[2],k=this.h[3],A=this.h[4],B=this.h[5],M=this.h[6],j=this.h[7],I=this.h[8],P=this.h[9],$=this.h[10],z=this.h[11],N=this.h[12],F=this.h[13],U=this.h[14],J=this.h[15];assert$8(this.k.length===d.length);for(var te=0;te<d.length;te+=2){var se=U,de=J,Q=s1_512_hi(I,P),ve=s1_512_lo(I,P),he=ch64_hi(I,P,$,z,N),ke=ch64_lo(I,P,$,z,N,F),T=this.k[te],u=this.k[te+1],p=d[te],b=d[te+1],e=sum64_5_hi(se,de,Q,ve,he,ke,T,u,p,b),c=sum64_5_lo(se,de,Q,ve,he,ke,T,u,p,b);se=s0_512_hi(m,h),de=s0_512_lo(m,h),Q=maj64_hi(m,h,S,k,A),ve=maj64_lo(m,h,S,k,A,B);var y=sum64_hi(se,de,Q,ve),w=sum64_lo(se,de,Q,ve);U=N,J=F,N=$,F=z,$=I,z=P,I=sum64_hi(M,j,e,c),P=sum64_lo(j,j,e,c),M=A,j=B,A=S,B=k,S=m,k=h,m=sum64_hi(e,c,y,w),h=sum64_lo(e,c,y,w)}sum64(this.h,0,m,h),sum64(this.h,2,S,k),sum64(this.h,4,A,B),sum64(this.h,6,M,j),sum64(this.h,8,I,P),sum64(this.h,10,$,z),sum64(this.h,12,N,F),sum64(this.h,14,U,J)},SHA512$1.prototype._digest=function(n){return n==="hex"?utils$c.toHex32(this.h,"big"):utils$c.split32(this.h,"big")};function ch64_hi(t,n,l,d,m){var h=t&l^~t&m;return h<0&&(h+=4294967296),h}function ch64_lo(t,n,l,d,m,h){var S=n&d^~n&h;return S<0&&(S+=4294967296),S}function maj64_hi(t,n,l,d,m){var h=t&l^t&m^l&m;return h<0&&(h+=4294967296),h}function maj64_lo(t,n,l,d,m,h){var S=n&d^n&h^d&h;return S<0&&(S+=4294967296),S}function s0_512_hi(t,n){var l=rotr64_hi(t,n,28),d=rotr64_hi(n,t,2),m=rotr64_hi(n,t,7),h=l^d^m;return h<0&&(h+=4294967296),h}function s0_512_lo(t,n){var l=rotr64_lo(t,n,28),d=rotr64_lo(n,t,2),m=rotr64_lo(n,t,7),h=l^d^m;return h<0&&(h+=4294967296),h}function s1_512_hi(t,n){var l=rotr64_hi(t,n,14),d=rotr64_hi(t,n,18),m=rotr64_hi(n,t,9),h=l^d^m;return h<0&&(h+=4294967296),h}function s1_512_lo(t,n){var l=rotr64_lo(t,n,14),d=rotr64_lo(t,n,18),m=rotr64_lo(n,t,9),h=l^d^m;return h<0&&(h+=4294967296),h}function g0_512_hi(t,n){var l=rotr64_hi(t,n,1),d=rotr64_hi(t,n,8),m=shr64_hi(t,n,7),h=l^d^m;return h<0&&(h+=4294967296),h}function g0_512_lo(t,n){var l=rotr64_lo(t,n,1),d=rotr64_lo(t,n,8),m=shr64_lo(t,n,7),h=l^d^m;return h<0&&(h+=4294967296),h}function g1_512_hi(t,n){var l=rotr64_hi(t,n,19),d=rotr64_hi(n,t,29),m=shr64_hi(t,n,6),h=l^d^m;return h<0&&(h+=4294967296),h}function g1_512_lo(t,n){var l=rotr64_lo(t,n,19),d=rotr64_lo(n,t,29),m=shr64_lo(t,n,6),h=l^d^m;return h<0&&(h+=4294967296),h}var utils$b=utils$i,SHA512=_512;function SHA384(){if(!(this instanceof SHA384))return new SHA384;SHA512.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}utils$b.inherits(SHA384,SHA512);var _384=SHA384;SHA384.blockSize=1024,SHA384.outSize=384,SHA384.hmacStrength=192,SHA384.padLength=128,SHA384.prototype._digest=function(n){return n==="hex"?utils$b.toHex32(this.h.slice(0,12),"big"):utils$b.split32(this.h.slice(0,12),"big")},sha.sha1=_1,sha.sha224=_224,sha.sha256=_256,sha.sha384=_384,sha.sha512=_512;var ripemd={},utils$a=utils$i,common$1=common$6,rotl32=utils$a.rotl32,sum32=utils$a.sum32,sum32_3=utils$a.sum32_3,sum32_4=utils$a.sum32_4,BlockHash=common$1.BlockHash;function RIPEMD160(){if(!(this instanceof RIPEMD160))return new RIPEMD160;BlockHash.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}utils$a.inherits(RIPEMD160,BlockHash),ripemd.ripemd160=RIPEMD160,RIPEMD160.blockSize=512,RIPEMD160.outSize=160,RIPEMD160.hmacStrength=192,RIPEMD160.padLength=64,RIPEMD160.prototype._update=function(n,l){for(var d=this.h[0],m=this.h[1],h=this.h[2],S=this.h[3],k=this.h[4],A=d,B=m,M=h,j=S,I=k,P=0;P<80;P++){var $=sum32(rotl32(sum32_4(d,f(P,m,h,S),n[r[P]+l],K(P)),s[P]),k);d=k,k=S,S=rotl32(h,10),h=m,m=$,$=sum32(rotl32(sum32_4(A,f(79-P,B,M,j),n[rh[P]+l],Kh(P)),sh[P]),I),A=I,I=j,j=rotl32(M,10),M=B,B=$}$=sum32_3(this.h[1],h,j),this.h[1]=sum32_3(this.h[2],S,I),this.h[2]=sum32_3(this.h[3],k,A),this.h[3]=sum32_3(this.h[4],d,B),this.h[4]=sum32_3(this.h[0],m,M),this.h[0]=$},RIPEMD160.prototype._digest=function(n){return n==="hex"?utils$a.toHex32(this.h,"little"):utils$a.split32(this.h,"little")};function f(t,n,l,d){return t<=15?n^l^d:t<=31?n&l|~n&d:t<=47?(n|~l)^d:t<=63?n&d|l&~d:n^(l|~d)}function K(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function Kh(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var r=[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],rh=[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],s=[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],sh=[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],utils$9=utils$i,assert$7=minimalisticAssert;function Hmac(t,n,l){if(!(this instanceof Hmac))return new Hmac(t,n,l);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(utils$9.toArray(n,l))}var hmac=Hmac;Hmac.prototype._init=function(n){n.length>this.blockSize&&(n=new this.Hash().update(n).digest()),assert$7(n.length<=this.blockSize);for(var l=n.length;l<this.blockSize;l++)n.push(0);for(l=0;l<n.length;l++)n[l]^=54;for(this.inner=new this.Hash().update(n),l=0;l<n.length;l++)n[l]^=106;this.outer=new this.Hash().update(n)},Hmac.prototype.update=function(n,l){return this.inner.update(n,l),this},Hmac.prototype.digest=function(n){return this.outer.update(this.inner.digest()),this.outer.digest(n)},function(t){var n=t;n.utils=utils$i,n.common=common$6,n.sha=sha,n.ripemd=ripemd,n.hmac=hmac,n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160}(hash$2);var secp256k1,hasRequiredSecp256k1;function requireSecp256k1(){return hasRequiredSecp256k1||(hasRequiredSecp256k1=1,secp256k1={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),secp256k1}(function(t){var n=t,l=hash$2,d=curve,m=utils$o,h=m.assert;function S(B){B.type==="short"?this.curve=new d.short(B):B.type==="edwards"?this.curve=new d.edwards(B):this.curve=new d.mont(B),this.g=this.curve.g,this.n=this.curve.n,this.hash=B.hash,h(this.g.validate(),"Invalid curve"),h(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}n.PresetCurve=S;function k(B,M){Object.defineProperty(n,B,{configurable:!0,enumerable:!0,get:function(){var j=new S(M);return Object.defineProperty(n,B,{configurable:!0,enumerable:!0,value:j}),j}})}k("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:l.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),k("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:l.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),k("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:l.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),k("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:l.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),k("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:l.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),k("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["9"]}),k("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var A;try{A=requireSecp256k1()}catch{A=void 0}k("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:l.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",A]})})(curves$1);var hash$1=hash$2,utils$8=utils$n,assert$6=minimalisticAssert;function HmacDRBG(t){if(!(this instanceof HmacDRBG))return new HmacDRBG(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var n=utils$8.toArray(t.entropy,t.entropyEnc||"hex"),l=utils$8.toArray(t.nonce,t.nonceEnc||"hex"),d=utils$8.toArray(t.pers,t.persEnc||"hex");assert$6(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(n,l,d)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(n,l,d){var m=n.concat(l).concat(d);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(m),this._reseed=1,this.reseedInterval=281474976710656},HmacDRBG.prototype._hmac=function(){return new hash$1.hmac(this.hash,this.K)},HmacDRBG.prototype._update=function(n){var l=this._hmac().update(this.V).update([0]);n&&(l=l.update(n)),this.K=l.digest(),this.V=this._hmac().update(this.V).digest(),n&&(this.K=this._hmac().update(this.V).update([1]).update(n).digest(),this.V=this._hmac().update(this.V).digest())},HmacDRBG.prototype.reseed=function(n,l,d,m){typeof l!="string"&&(m=d,d=l,l=null),n=utils$8.toArray(n,l),d=utils$8.toArray(d,m),assert$6(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(n.concat(d||[])),this._reseed=1},HmacDRBG.prototype.generate=function(n,l,d,m){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof l!="string"&&(m=d,d=l,l=null),d&&(d=utils$8.toArray(d,m||"hex"),this._update(d));for(var h=[];h.length<n;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var S=h.slice(0,n);return this._update(d),this._reseed++,utils$8.encode(S,l)};var BN$5=bnExports$3,utils$7=utils$o,assert$5=utils$7.assert;function KeyPair$2(t,n){this.ec=t,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}var key$2=KeyPair$2;KeyPair$2.fromPublic=function(n,l,d){return l instanceof KeyPair$2?l:new KeyPair$2(n,{pub:l,pubEnc:d})},KeyPair$2.fromPrivate=function(n,l,d){return l instanceof KeyPair$2?l:new KeyPair$2(n,{priv:l,privEnc:d})},KeyPair$2.prototype.validate=function(){var n=this.getPublic();return n.isInfinity()?{result:!1,reason:"Invalid public key"}:n.validate()?n.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},KeyPair$2.prototype.getPublic=function(n,l){return typeof n=="string"&&(l=n,n=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,n):this.pub},KeyPair$2.prototype.getPrivate=function(n){return n==="hex"?this.priv.toString(16,2):this.priv},KeyPair$2.prototype._importPrivate=function(n,l){this.priv=new BN$5(n,l||16),this.priv=this.priv.umod(this.ec.curve.n)},KeyPair$2.prototype._importPublic=function(n,l){if(n.x||n.y){this.ec.curve.type==="mont"?assert$5(n.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&assert$5(n.x&&n.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(n.x,n.y);return}this.pub=this.ec.curve.decodePoint(n,l)},KeyPair$2.prototype.derive=function(n){return n.validate()||assert$5(n.validate(),"public point not validated"),n.mul(this.priv).getX()},KeyPair$2.prototype.sign=function(n,l,d){return this.ec.sign(n,this,l,d)},KeyPair$2.prototype.verify=function(n,l){return this.ec.verify(n,l,this)},KeyPair$2.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var BN$4=bnExports$3,utils$6=utils$o,assert$4=utils$6.assert;function Signature$2(t,n){if(t instanceof Signature$2)return t;this._importDER(t,n)||(assert$4(t.r&&t.s,"Signature without r or s"),this.r=new BN$4(t.r,16),this.s=new BN$4(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var signature$2=Signature$2;function Position(){this.place=0}function getLength(t,n){var l=t[n.place++];if(!(l&128))return l;var d=l&15;if(d===0||d>4||t[n.place]===0)return!1;for(var m=0,h=0,S=n.place;h<d;h++,S++)m<<=8,m|=t[S],m>>>=0;return m<=127?!1:(n.place=S,m)}function rmPadding(t){for(var n=0,l=t.length-1;!t[n]&&!(t[n+1]&128)&&n<l;)n++;return n===0?t:t.slice(n)}Signature$2.prototype._importDER=function(n,l){n=utils$6.toArray(n,l);var d=new Position;if(n[d.place++]!==48)return!1;var m=getLength(n,d);if(m===!1||m+d.place!==n.length||n[d.place++]!==2)return!1;var h=getLength(n,d);if(h===!1||n[d.place]&128)return!1;var S=n.slice(d.place,h+d.place);if(d.place+=h,n[d.place++]!==2)return!1;var k=getLength(n,d);if(k===!1||n.length!==k+d.place||n[d.place]&128)return!1;var A=n.slice(d.place,k+d.place);if(S[0]===0)if(S[1]&128)S=S.slice(1);else return!1;if(A[0]===0)if(A[1]&128)A=A.slice(1);else return!1;return this.r=new BN$4(S),this.s=new BN$4(A),this.recoveryParam=null,!0};function constructLength(t,n){if(n<128){t.push(n);return}var l=1+(Math.log(n)/Math.LN2>>>3);for(t.push(l|128);--l;)t.push(n>>>(l<<3)&255);t.push(n)}Signature$2.prototype.toDER=function(n){var l=this.r.toArray(),d=this.s.toArray();for(l[0]&128&&(l=[0].concat(l)),d[0]&128&&(d=[0].concat(d)),l=rmPadding(l),d=rmPadding(d);!d[0]&&!(d[1]&128);)d=d.slice(1);var m=[2];constructLength(m,l.length),m=m.concat(l),m.push(2),constructLength(m,d.length);var h=m.concat(d),S=[48];return constructLength(S,h.length),S=S.concat(h),utils$6.encode(S,n)};var ec$1,hasRequiredEc$1;function requireEc$1(){if(hasRequiredEc$1)return ec$1;hasRequiredEc$1=1;var t=bnExports$3,n=hmacDrbg,l=utils$o,d=curves$1,m=requireBrorand(),h=l.assert,S=key$2,k=signature$2;function A(B){if(!(this instanceof A))return new A(B);typeof B=="string"&&(h(Object.prototype.hasOwnProperty.call(d,B),"Unknown curve "+B),B=d[B]),B instanceof d.PresetCurve&&(B={curve:B}),this.curve=B.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=B.curve.g,this.g.precompute(B.curve.n.bitLength()+1),this.hash=B.hash||B.curve.hash}return ec$1=A,A.prototype.keyPair=function(M){return new S(this,M)},A.prototype.keyFromPrivate=function(M,j){return S.fromPrivate(this,M,j)},A.prototype.keyFromPublic=function(M,j){return S.fromPublic(this,M,j)},A.prototype.genKeyPair=function(M){M||(M={});for(var j=new n({hash:this.hash,pers:M.pers,persEnc:M.persEnc||"utf8",entropy:M.entropy||m(this.hash.hmacStrength),entropyEnc:M.entropy&&M.entropyEnc||"utf8",nonce:this.n.toArray()}),I=this.n.byteLength(),P=this.n.sub(new t(2));;){var $=new t(j.generate(I));if(!($.cmp(P)>0))return $.iaddn(1),this.keyFromPrivate($)}},A.prototype._truncateToN=function(M,j){var I=M.byteLength()*8-this.n.bitLength();return I>0&&(M=M.ushrn(I)),!j&&M.cmp(this.n)>=0?M.sub(this.n):M},A.prototype.sign=function(M,j,I,P){typeof I=="object"&&(P=I,I=null),P||(P={}),j=this.keyFromPrivate(j,I),M=this._truncateToN(new t(M,16));for(var $=this.n.byteLength(),z=j.getPrivate().toArray("be",$),N=M.toArray("be",$),F=new n({hash:this.hash,entropy:z,nonce:N,pers:P.pers,persEnc:P.persEnc||"utf8"}),U=this.n.sub(new t(1)),J=0;;J++){var te=P.k?P.k(J):new t(F.generate(this.n.byteLength()));if(te=this._truncateToN(te,!0),!(te.cmpn(1)<=0||te.cmp(U)>=0)){var se=this.g.mul(te);if(!se.isInfinity()){var de=se.getX(),Q=de.umod(this.n);if(Q.cmpn(0)!==0){var ve=te.invm(this.n).mul(Q.mul(j.getPrivate()).iadd(M));if(ve=ve.umod(this.n),ve.cmpn(0)!==0){var he=(se.getY().isOdd()?1:0)|(de.cmp(Q)!==0?2:0);return P.canonical&&ve.cmp(this.nh)>0&&(ve=this.n.sub(ve),he^=1),new k({r:Q,s:ve,recoveryParam:he})}}}}}},A.prototype.verify=function(M,j,I,P){M=this._truncateToN(new t(M,16)),I=this.keyFromPublic(I,P),j=new k(j,"hex");var $=j.r,z=j.s;if($.cmpn(1)<0||$.cmp(this.n)>=0||z.cmpn(1)<0||z.cmp(this.n)>=0)return!1;var N=z.invm(this.n),F=N.mul(M).umod(this.n),U=N.mul($).umod(this.n),J;return this.curve._maxwellTrick?(J=this.g.jmulAdd(F,I.getPublic(),U),J.isInfinity()?!1:J.eqXToP($)):(J=this.g.mulAdd(F,I.getPublic(),U),J.isInfinity()?!1:J.getX().umod(this.n).cmp($)===0)},A.prototype.recoverPubKey=function(B,M,j,I){h((3&j)===j,"The recovery param is more than two bits"),M=new k(M,I);var P=this.n,$=new t(B),z=M.r,N=M.s,F=j&1,U=j>>1;if(z.cmp(this.curve.p.umod(this.curve.n))>=0&&U)throw new Error("Unable to find sencond key candinate");U?z=this.curve.pointFromX(z.add(this.curve.n),F):z=this.curve.pointFromX(z,F);var J=M.r.invm(P),te=P.sub($).mul(J).umod(P),se=N.mul(J).umod(P);return this.g.mulAdd(te,z,se)},A.prototype.getKeyRecoveryParam=function(B,M,j,I){if(M=new k(M,I),M.recoveryParam!==null)return M.recoveryParam;for(var P=0;P<4;P++){var $;try{$=this.recoverPubKey(B,M,P)}catch{continue}if($.eq(j))return P}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$5=utils$o,assert$3=utils$5.assert,parseBytes$2=utils$5.parseBytes,cachedProperty$1=utils$5.cachedProperty;function KeyPair$1(t,n){this.eddsa=t,this._secret=parseBytes$2(n.secret),t.isPoint(n.pub)?this._pub=n.pub:this._pubBytes=parseBytes$2(n.pub)}KeyPair$1.fromPublic=function(n,l){return l instanceof KeyPair$1?l:new KeyPair$1(n,{pub:l})},KeyPair$1.fromSecret=function(n,l){return l instanceof KeyPair$1?l:new KeyPair$1(n,{secret:l})},KeyPair$1.prototype.secret=function(){return this._secret},cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),cachedProperty$1(KeyPair$1,"privBytes",function(){var n=this.eddsa,l=this.hash(),d=n.encodingLength-1,m=l.slice(0,n.encodingLength);return m[0]&=248,m[d]&=127,m[d]|=64,m}),cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),KeyPair$1.prototype.sign=function(n){return assert$3(this._secret,"KeyPair can only verify"),this.eddsa.sign(n,this)},KeyPair$1.prototype.verify=function(n,l){return this.eddsa.verify(n,l,this)},KeyPair$1.prototype.getSecret=function(n){return assert$3(this._secret,"KeyPair is public only"),utils$5.encode(this.secret(),n)},KeyPair$1.prototype.getPublic=function(n){return utils$5.encode(this.pubBytes(),n)};var key$1=KeyPair$1,BN$3=bnExports$3,utils$4=utils$o,assert$2=utils$4.assert,cachedProperty=utils$4.cachedProperty,parseBytes$1=utils$4.parseBytes;function Signature$1(t,n){this.eddsa=t,typeof n!="object"&&(n=parseBytes$1(n)),Array.isArray(n)&&(assert$2(n.length===t.encodingLength*2,"Signature has invalid size"),n={R:n.slice(0,t.encodingLength),S:n.slice(t.encodingLength)}),assert$2(n.R&&n.S,"Signature without R or S"),t.isPoint(n.R)&&(this._R=n.R),n.S instanceof BN$3&&(this._S=n.S),this._Rencoded=Array.isArray(n.R)?n.R:n.Rencoded,this._Sencoded=Array.isArray(n.S)?n.S:n.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Signature$1.prototype.toHex=function(){return utils$4.encode(this.toBytes(),"hex").toUpperCase()};var signature$1=Signature$1,hash=hash$2,curves=curves$1,utils$3=utils$o,assert$1=utils$3.assert,parseBytes=utils$3.parseBytes,KeyPair=key$1,Signature=signature$1;function EDDSA(t){if(assert$1(t==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(t);t=curves[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=hash.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(n,l){n=parseBytes(n);var d=this.keyFromSecret(l),m=this.hashInt(d.messagePrefix(),n),h=this.g.mul(m),S=this.encodePoint(h),k=this.hashInt(S,d.pubBytes(),n).mul(d.priv()),A=m.add(k).umod(this.curve.n);return this.makeSignature({R:h,S:A,Rencoded:S})},EDDSA.prototype.verify=function(n,l,d){if(n=parseBytes(n),l=this.makeSignature(l),l.S().gte(l.eddsa.curve.n)||l.S().isNeg())return!1;var m=this.keyFromPublic(d),h=this.hashInt(l.Rencoded(),m.pubBytes(),n),S=this.g.mul(l.S()),k=l.R().add(m.pub().mul(h));return k.eq(S)},EDDSA.prototype.hashInt=function(){for(var n=this.hash(),l=0;l<arguments.length;l++)n.update(arguments[l]);return utils$3.intFromLE(n.digest()).umod(this.curve.n)},EDDSA.prototype.keyFromPublic=function(n){return KeyPair.fromPublic(this,n)},EDDSA.prototype.keyFromSecret=function(n){return KeyPair.fromSecret(this,n)},EDDSA.prototype.makeSignature=function(n){return n instanceof Signature?n:new Signature(this,n)},EDDSA.prototype.encodePoint=function(n){var l=n.getY().toArray("le",this.encodingLength);return l[this.encodingLength-1]|=n.getX().isOdd()?128:0,l},EDDSA.prototype.decodePoint=function(n){n=utils$3.parseBytes(n);var l=n.length-1,d=n.slice(0,l).concat(n[l]&-129),m=(n[l]&128)!==0,h=utils$3.intFromLE(d);return this.curve.pointFromY(h,m)},EDDSA.prototype.encodeInt=function(n){return n.toArray("le",this.encodingLength)},EDDSA.prototype.decodeInt=function(n){return utils$3.intFromLE(n)},EDDSA.prototype.isPoint=function(n){return n instanceof this.pointClass};var hasRequiredElliptic;function requireElliptic(){return hasRequiredElliptic||(hasRequiredElliptic=1,function(t){var n=t;n.version=require$$0$2.version,n.utils=utils$o,n.rand=requireBrorand(),n.curve=curve,n.curves=curves$1,n.ec=requireEc$1(),n.eddsa=eddsa}(elliptic)),elliptic}var asn1$3={},asn1$2={},bn$2={exports:{}};bn$2.exports,function(t){(function(n,l){function d(T,u){if(!T)throw new Error(u||"Assertion failed")}function m(T,u){T.super_=u;var p=function(){};p.prototype=u.prototype,T.prototype=new p,T.prototype.constructor=T}function h(T,u,p){if(h.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(p=u,u=10),this._init(T||0,u||10,p||"be"))}typeof n=="object"?n.exports=h:l.BN=h,h.BN=h,h.wordSize=26;var S;try{typeof window<"u"&&typeof window.Buffer<"u"?S=window.Buffer:S=require$$0$3.Buffer}catch{}h.isBN=function(u){return u instanceof h?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===h.wordSize&&Array.isArray(u.words)},h.max=function(u,p){return u.cmp(p)>0?u:p},h.min=function(u,p){return u.cmp(p)<0?u:p},h.prototype._init=function(u,p,b){if(typeof u=="number")return this._initNumber(u,p,b);if(typeof u=="object")return this._initArray(u,p,b);p==="hex"&&(p=16),d(p===(p|0)&&p>=2&&p<=36),u=u.toString().replace(/\s+/g,"");var e=0;u[0]==="-"&&(e++,this.negative=1),e<u.length&&(p===16?this._parseHex(u,e,b):(this._parseBase(u,p,e),b==="le"&&this._initArray(this.toArray(),p,b)))},h.prototype._initNumber=function(u,p,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(d(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),p,b)},h.prototype._initArray=function(u,p,b){if(d(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c,y,w=0;if(b==="be")for(e=u.length-1,c=0;e>=0;e-=3)y=u[e]|u[e-1]<<8|u[e-2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);else if(b==="le")for(e=0,c=0;e<u.length;e+=3)y=u[e]|u[e+1]<<8|u[e+2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);return this.strip()};function k(T,u){var p=T.charCodeAt(u);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function A(T,u,p){var b=k(T,p);return p-1>=u&&(b|=k(T,p-1)<<4),b}h.prototype._parseHex=function(u,p,b){this.length=Math.ceil((u.length-p)/6),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c=0,y=0,w;if(b==="be")for(e=u.length-1;e>=p;e-=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8;else{var v=u.length-p;for(e=v%2===0?p+1:p;e<u.length;e+=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8}this.strip()};function B(T,u,p,b){for(var e=0,c=Math.min(T.length,p),y=u;y<c;y++){var w=T.charCodeAt(y)-48;e*=b,w>=49?e+=w-49+10:w>=17?e+=w-17+10:e+=w}return e}h.prototype._parseBase=function(u,p,b){this.words=[0],this.length=1;for(var e=0,c=1;c<=67108863;c*=p)e++;e--,c=c/p|0;for(var y=u.length-b,w=y%e,v=Math.min(y,y-w)+b,o=0,x=b;x<v;x+=e)o=B(u,x,x+e,p),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(w!==0){var E=1;for(o=B(u,x,u.length,p),x=0;x<w;x++)E*=p;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},h.prototype.copy=function(u){u.words=new Array(this.length);for(var p=0;p<this.length;p++)u.words[p]=this.words[p];u.length=this.length,u.negative=this.negative,u.red=this.red},h.prototype.clone=function(){var u=new h(null);return this.copy(u),u},h.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(u,p){u=u||10,p=p|0||1;var b;if(u===16||u==="hex"){b="";for(var e=0,c=0,y=0;y<this.length;y++){var w=this.words[y],v=((w<<e|c)&16777215).toString(16);c=w>>>24-e&16777215,c!==0||y!==this.length-1?b=M[6-v.length]+v+b:b=v+b,e+=2,e>=26&&(e-=26,y--)}for(c!==0&&(b=c.toString(16)+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var o=j[u],x=I[u];b="";var E=this.clone();for(E.negative=0;!E.isZero();){var R=E.modn(x).toString(u);E=E.idivn(x),E.isZero()?b=R+b:b=M[o-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}d(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(u,p){return d(typeof S<"u"),this.toArrayLike(S,u,p)},h.prototype.toArray=function(u,p){return this.toArrayLike(Array,u,p)},h.prototype.toArrayLike=function(u,p,b){var e=this.byteLength(),c=b||Math.max(1,e);d(e<=c,"byte array longer than desired length"),d(c>0,"Requested array length <= 0"),this.strip();var y=p==="le",w=new u(c),v,o,x=this.clone();if(y){for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[o]=v;for(;o<c;o++)w[o]=0}else{for(o=0;o<c-e;o++)w[o]=0;for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[c-o-1]=v}return w},Math.clz32?h.prototype._countBits=function(u){return 32-Math.clz32(u)}:h.prototype._countBits=function(u){var p=u,b=0;return p>=4096&&(b+=13,p>>>=13),p>=64&&(b+=7,p>>>=7),p>=8&&(b+=4,p>>>=4),p>=2&&(b+=2,p>>>=2),b+p},h.prototype._zeroBits=function(u){if(u===0)return 26;var p=u,b=0;return p&8191||(b+=13,p>>>=13),p&127||(b+=7,p>>>=7),p&15||(b+=4,p>>>=4),p&3||(b+=2,p>>>=2),p&1||b++,b},h.prototype.bitLength=function(){var u=this.words[this.length-1],p=this._countBits(u);return(this.length-1)*26+p};function P(T){for(var u=new Array(T.bitLength()),p=0;p<u.length;p++){var b=p/26|0,e=p%26;u[p]=(T.words[b]&1<<e)>>>e}return u}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,p=0;p<this.length;p++){var b=this._zeroBits(this.words[p]);if(u+=b,b!==26)break}return u},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},h.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return this.negative!==0},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var p=0;p<u.length;p++)this.words[p]=this.words[p]|u.words[p];return this.strip()},h.prototype.ior=function(u){return d((this.negative|u.negative)===0),this.iuor(u)},h.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},h.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},h.prototype.iuand=function(u){var p;this.length>u.length?p=u:p=this;for(var b=0;b<p.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=p.length,this.strip()},h.prototype.iand=function(u){return d((this.negative|u.negative)===0),this.iuand(u)},h.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},h.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},h.prototype.iuxor=function(u){var p,b;this.length>u.length?(p=this,b=u):(p=u,b=this);for(var e=0;e<b.length;e++)this.words[e]=p.words[e]^b.words[e];if(this!==p)for(;e<p.length;e++)this.words[e]=p.words[e];return this.length=p.length,this.strip()},h.prototype.ixor=function(u){return d((this.negative|u.negative)===0),this.iuxor(u)},h.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},h.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},h.prototype.inotn=function(u){d(typeof u=="number"&&u>=0);var p=Math.ceil(u/26)|0,b=u%26;this._expand(p),b>0&&p--;for(var e=0;e<p;e++)this.words[e]=~this.words[e]&67108863;return b>0&&(this.words[e]=~this.words[e]&67108863>>26-b),this.strip()},h.prototype.notn=function(u){return this.clone().inotn(u)},h.prototype.setn=function(u,p){d(typeof u=="number"&&u>=0);var b=u/26|0,e=u%26;return this._expand(b+1),p?this.words[b]=this.words[b]|1<<e:this.words[b]=this.words[b]&~(1<<e),this.strip()},h.prototype.iadd=function(u){var p;if(this.negative!==0&&u.negative===0)return this.negative=0,p=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,p=this.isub(u),u.negative=1,p._normSign();var b,e;this.length>u.length?(b=this,e=u):(b=u,e=this);for(var c=0,y=0;y<e.length;y++)p=(b.words[y]|0)+(e.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;for(;c!==0&&y<b.length;y++)p=(b.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;if(this.length=b.length,c!==0)this.words[this.length]=c,this.length++;else if(b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this},h.prototype.add=function(u){var p;return u.negative!==0&&this.negative===0?(u.negative=0,p=this.sub(u),u.negative^=1,p):u.negative===0&&this.negative!==0?(this.negative=0,p=u.sub(this),this.negative=1,p):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},h.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var p=this.iadd(u);return u.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var e,c;b>0?(e=this,c=u):(e=u,c=this);for(var y=0,w=0;w<c.length;w++)p=(e.words[w]|0)-(c.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;for(;y!==0&&w<e.length;w++)p=(e.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;if(y===0&&w<e.length&&e!==this)for(;w<e.length;w++)this.words[w]=e.words[w];return this.length=Math.max(this.length,w),e!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(u){return this.clone().isub(u)};function $(T,u,p){p.negative=u.negative^T.negative;var b=T.length+u.length|0;p.length=b,b=b-1|0;var e=T.words[0]|0,c=u.words[0]|0,y=e*c,w=y&67108863,v=y/67108864|0;p.words[0]=w;for(var o=1;o<b;o++){for(var x=v>>>26,E=v&67108863,R=Math.min(o,u.length-1),H=Math.max(0,o-T.length+1);H<=R;H++){var Y=o-H|0;e=T.words[Y]|0,c=u.words[H]|0,y=e*c+E,x+=y/67108864|0,E=y&67108863}p.words[o]=E|0,v=x|0}return v!==0?p.words[o]=v|0:p.length--,p.strip()}var z=function(u,p,b){var e=u.words,c=p.words,y=b.words,w=0,v,o,x,E=e[0]|0,R=E&8191,H=E>>>13,Y=e[1]|0,Z=Y&8191,L=Y>>>13,D=e[2]|0,ee=D&8191,oe=D>>>13,fe=e[3]|0,ue=fe&8191,qe=fe>>>13,rt=e[4]|0,Ve=rt&8191,et=rt>>>13,mt=e[5]|0,Ye=mt&8191,We=mt>>>13,Xe=e[6]|0,Ge=Xe&8191,nt=Xe>>>13,Et=e[7]|0,Le=Et&8191,Oe=Et>>>13,$t=e[8]|0,dt=$t&8191,gt=$t>>>13,Lt=e[9]|0,xe=Lt&8191,X=Lt>>>13,pe=c[0]|0,je=pe&8191,$e=pe>>>13,He=c[1]|0,Fe=He&8191,Me=He>>>13,Rt=c[2]|0,yt=Rt&8191,le=Rt>>>13,wt=c[3]|0,at=wt&8191,Be=wt>>>13,ot=c[4]|0,tt=ot&8191,kt=ot>>>13,Yt=c[5]|0,pt=Yt&8191,It=Yt>>>13,Fr=c[6]|0,Pt=Fr&8191,Ot=Fr>>>13,Te=c[7]|0,me=Te&8191,ce=Te>>>13,ne=c[8]|0,_e=ne&8191,Re=ne>>>13,lt=c[9]|0,Ze=lt&8191,ct=lt>>>13;b.negative=u.negative^p.negative,b.length=19,v=Math.imul(R,je),o=Math.imul(R,$e),o=o+Math.imul(H,je)|0,x=Math.imul(H,$e);var Nt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,v=Math.imul(Z,je),o=Math.imul(Z,$e),o=o+Math.imul(L,je)|0,x=Math.imul(L,$e),v=v+Math.imul(R,Fe)|0,o=o+Math.imul(R,Me)|0,o=o+Math.imul(H,Fe)|0,x=x+Math.imul(H,Me)|0;var Ut=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,v=Math.imul(ee,je),o=Math.imul(ee,$e),o=o+Math.imul(oe,je)|0,x=Math.imul(oe,$e),v=v+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(L,Fe)|0,x=x+Math.imul(L,Me)|0,v=v+Math.imul(R,yt)|0,o=o+Math.imul(R,le)|0,o=o+Math.imul(H,yt)|0,x=x+Math.imul(H,le)|0;var Mr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,v=Math.imul(ue,je),o=Math.imul(ue,$e),o=o+Math.imul(qe,je)|0,x=Math.imul(qe,$e),v=v+Math.imul(ee,Fe)|0,o=o+Math.imul(ee,Me)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Me)|0,v=v+Math.imul(Z,yt)|0,o=o+Math.imul(Z,le)|0,o=o+Math.imul(L,yt)|0,x=x+Math.imul(L,le)|0,v=v+Math.imul(R,at)|0,o=o+Math.imul(R,Be)|0,o=o+Math.imul(H,at)|0,x=x+Math.imul(H,Be)|0;var Xt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(Ve,je),o=Math.imul(Ve,$e),o=o+Math.imul(et,je)|0,x=Math.imul(et,$e),v=v+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Me)|0,o=o+Math.imul(qe,Fe)|0,x=x+Math.imul(qe,Me)|0,v=v+Math.imul(ee,yt)|0,o=o+Math.imul(ee,le)|0,o=o+Math.imul(oe,yt)|0,x=x+Math.imul(oe,le)|0,v=v+Math.imul(Z,at)|0,o=o+Math.imul(Z,Be)|0,o=o+Math.imul(L,at)|0,x=x+Math.imul(L,Be)|0,v=v+Math.imul(R,tt)|0,o=o+Math.imul(R,kt)|0,o=o+Math.imul(H,tt)|0,x=x+Math.imul(H,kt)|0;var Sr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,v=Math.imul(Ye,je),o=Math.imul(Ye,$e),o=o+Math.imul(We,je)|0,x=Math.imul(We,$e),v=v+Math.imul(Ve,Fe)|0,o=o+Math.imul(Ve,Me)|0,o=o+Math.imul(et,Fe)|0,x=x+Math.imul(et,Me)|0,v=v+Math.imul(ue,yt)|0,o=o+Math.imul(ue,le)|0,o=o+Math.imul(qe,yt)|0,x=x+Math.imul(qe,le)|0,v=v+Math.imul(ee,at)|0,o=o+Math.imul(ee,Be)|0,o=o+Math.imul(oe,at)|0,x=x+Math.imul(oe,Be)|0,v=v+Math.imul(Z,tt)|0,o=o+Math.imul(Z,kt)|0,o=o+Math.imul(L,tt)|0,x=x+Math.imul(L,kt)|0,v=v+Math.imul(R,pt)|0,o=o+Math.imul(R,It)|0,o=o+Math.imul(H,pt)|0,x=x+Math.imul(H,It)|0;var rr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(Ge,je),o=Math.imul(Ge,$e),o=o+Math.imul(nt,je)|0,x=Math.imul(nt,$e),v=v+Math.imul(Ye,Fe)|0,o=o+Math.imul(Ye,Me)|0,o=o+Math.imul(We,Fe)|0,x=x+Math.imul(We,Me)|0,v=v+Math.imul(Ve,yt)|0,o=o+Math.imul(Ve,le)|0,o=o+Math.imul(et,yt)|0,x=x+Math.imul(et,le)|0,v=v+Math.imul(ue,at)|0,o=o+Math.imul(ue,Be)|0,o=o+Math.imul(qe,at)|0,x=x+Math.imul(qe,Be)|0,v=v+Math.imul(ee,tt)|0,o=o+Math.imul(ee,kt)|0,o=o+Math.imul(oe,tt)|0,x=x+Math.imul(oe,kt)|0,v=v+Math.imul(Z,pt)|0,o=o+Math.imul(Z,It)|0,o=o+Math.imul(L,pt)|0,x=x+Math.imul(L,It)|0,v=v+Math.imul(R,Pt)|0,o=o+Math.imul(R,Ot)|0,o=o+Math.imul(H,Pt)|0,x=x+Math.imul(H,Ot)|0;var er=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(Le,je),o=Math.imul(Le,$e),o=o+Math.imul(Oe,je)|0,x=Math.imul(Oe,$e),v=v+Math.imul(Ge,Fe)|0,o=o+Math.imul(Ge,Me)|0,o=o+Math.imul(nt,Fe)|0,x=x+Math.imul(nt,Me)|0,v=v+Math.imul(Ye,yt)|0,o=o+Math.imul(Ye,le)|0,o=o+Math.imul(We,yt)|0,x=x+Math.imul(We,le)|0,v=v+Math.imul(Ve,at)|0,o=o+Math.imul(Ve,Be)|0,o=o+Math.imul(et,at)|0,x=x+Math.imul(et,Be)|0,v=v+Math.imul(ue,tt)|0,o=o+Math.imul(ue,kt)|0,o=o+Math.imul(qe,tt)|0,x=x+Math.imul(qe,kt)|0,v=v+Math.imul(ee,pt)|0,o=o+Math.imul(ee,It)|0,o=o+Math.imul(oe,pt)|0,x=x+Math.imul(oe,It)|0,v=v+Math.imul(Z,Pt)|0,o=o+Math.imul(Z,Ot)|0,o=o+Math.imul(L,Pt)|0,x=x+Math.imul(L,Ot)|0,v=v+Math.imul(R,me)|0,o=o+Math.imul(R,ce)|0,o=o+Math.imul(H,me)|0,x=x+Math.imul(H,ce)|0;var kr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(kr>>>26)|0,kr&=67108863,v=Math.imul(dt,je),o=Math.imul(dt,$e),o=o+Math.imul(gt,je)|0,x=Math.imul(gt,$e),v=v+Math.imul(Le,Fe)|0,o=o+Math.imul(Le,Me)|0,o=o+Math.imul(Oe,Fe)|0,x=x+Math.imul(Oe,Me)|0,v=v+Math.imul(Ge,yt)|0,o=o+Math.imul(Ge,le)|0,o=o+Math.imul(nt,yt)|0,x=x+Math.imul(nt,le)|0,v=v+Math.imul(Ye,at)|0,o=o+Math.imul(Ye,Be)|0,o=o+Math.imul(We,at)|0,x=x+Math.imul(We,Be)|0,v=v+Math.imul(Ve,tt)|0,o=o+Math.imul(Ve,kt)|0,o=o+Math.imul(et,tt)|0,x=x+Math.imul(et,kt)|0,v=v+Math.imul(ue,pt)|0,o=o+Math.imul(ue,It)|0,o=o+Math.imul(qe,pt)|0,x=x+Math.imul(qe,It)|0,v=v+Math.imul(ee,Pt)|0,o=o+Math.imul(ee,Ot)|0,o=o+Math.imul(oe,Pt)|0,x=x+Math.imul(oe,Ot)|0,v=v+Math.imul(Z,me)|0,o=o+Math.imul(Z,ce)|0,o=o+Math.imul(L,me)|0,x=x+Math.imul(L,ce)|0,v=v+Math.imul(R,_e)|0,o=o+Math.imul(R,Re)|0,o=o+Math.imul(H,_e)|0,x=x+Math.imul(H,Re)|0;var vr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,v=Math.imul(xe,je),o=Math.imul(xe,$e),o=o+Math.imul(X,je)|0,x=Math.imul(X,$e),v=v+Math.imul(dt,Fe)|0,o=o+Math.imul(dt,Me)|0,o=o+Math.imul(gt,Fe)|0,x=x+Math.imul(gt,Me)|0,v=v+Math.imul(Le,yt)|0,o=o+Math.imul(Le,le)|0,o=o+Math.imul(Oe,yt)|0,x=x+Math.imul(Oe,le)|0,v=v+Math.imul(Ge,at)|0,o=o+Math.imul(Ge,Be)|0,o=o+Math.imul(nt,at)|0,x=x+Math.imul(nt,Be)|0,v=v+Math.imul(Ye,tt)|0,o=o+Math.imul(Ye,kt)|0,o=o+Math.imul(We,tt)|0,x=x+Math.imul(We,kt)|0,v=v+Math.imul(Ve,pt)|0,o=o+Math.imul(Ve,It)|0,o=o+Math.imul(et,pt)|0,x=x+Math.imul(et,It)|0,v=v+Math.imul(ue,Pt)|0,o=o+Math.imul(ue,Ot)|0,o=o+Math.imul(qe,Pt)|0,x=x+Math.imul(qe,Ot)|0,v=v+Math.imul(ee,me)|0,o=o+Math.imul(ee,ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,ce)|0,v=v+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(L,_e)|0,x=x+Math.imul(L,Re)|0,v=v+Math.imul(R,Ze)|0,o=o+Math.imul(R,ct)|0,o=o+Math.imul(H,Ze)|0,x=x+Math.imul(H,ct)|0;var Pr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,v=Math.imul(xe,Fe),o=Math.imul(xe,Me),o=o+Math.imul(X,Fe)|0,x=Math.imul(X,Me),v=v+Math.imul(dt,yt)|0,o=o+Math.imul(dt,le)|0,o=o+Math.imul(gt,yt)|0,x=x+Math.imul(gt,le)|0,v=v+Math.imul(Le,at)|0,o=o+Math.imul(Le,Be)|0,o=o+Math.imul(Oe,at)|0,x=x+Math.imul(Oe,Be)|0,v=v+Math.imul(Ge,tt)|0,o=o+Math.imul(Ge,kt)|0,o=o+Math.imul(nt,tt)|0,x=x+Math.imul(nt,kt)|0,v=v+Math.imul(Ye,pt)|0,o=o+Math.imul(Ye,It)|0,o=o+Math.imul(We,pt)|0,x=x+Math.imul(We,It)|0,v=v+Math.imul(Ve,Pt)|0,o=o+Math.imul(Ve,Ot)|0,o=o+Math.imul(et,Pt)|0,x=x+Math.imul(et,Ot)|0,v=v+Math.imul(ue,me)|0,o=o+Math.imul(ue,ce)|0,o=o+Math.imul(qe,me)|0,x=x+Math.imul(qe,ce)|0,v=v+Math.imul(ee,_e)|0,o=o+Math.imul(ee,Re)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Re)|0,v=v+Math.imul(Z,Ze)|0,o=o+Math.imul(Z,ct)|0,o=o+Math.imul(L,Ze)|0,x=x+Math.imul(L,ct)|0;var Tr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,v=Math.imul(xe,yt),o=Math.imul(xe,le),o=o+Math.imul(X,yt)|0,x=Math.imul(X,le),v=v+Math.imul(dt,at)|0,o=o+Math.imul(dt,Be)|0,o=o+Math.imul(gt,at)|0,x=x+Math.imul(gt,Be)|0,v=v+Math.imul(Le,tt)|0,o=o+Math.imul(Le,kt)|0,o=o+Math.imul(Oe,tt)|0,x=x+Math.imul(Oe,kt)|0,v=v+Math.imul(Ge,pt)|0,o=o+Math.imul(Ge,It)|0,o=o+Math.imul(nt,pt)|0,x=x+Math.imul(nt,It)|0,v=v+Math.imul(Ye,Pt)|0,o=o+Math.imul(Ye,Ot)|0,o=o+Math.imul(We,Pt)|0,x=x+Math.imul(We,Ot)|0,v=v+Math.imul(Ve,me)|0,o=o+Math.imul(Ve,ce)|0,o=o+Math.imul(et,me)|0,x=x+Math.imul(et,ce)|0,v=v+Math.imul(ue,_e)|0,o=o+Math.imul(ue,Re)|0,o=o+Math.imul(qe,_e)|0,x=x+Math.imul(qe,Re)|0,v=v+Math.imul(ee,Ze)|0,o=o+Math.imul(ee,ct)|0,o=o+Math.imul(oe,Ze)|0,x=x+Math.imul(oe,ct)|0;var br=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(br>>>26)|0,br&=67108863,v=Math.imul(xe,at),o=Math.imul(xe,Be),o=o+Math.imul(X,at)|0,x=Math.imul(X,Be),v=v+Math.imul(dt,tt)|0,o=o+Math.imul(dt,kt)|0,o=o+Math.imul(gt,tt)|0,x=x+Math.imul(gt,kt)|0,v=v+Math.imul(Le,pt)|0,o=o+Math.imul(Le,It)|0,o=o+Math.imul(Oe,pt)|0,x=x+Math.imul(Oe,It)|0,v=v+Math.imul(Ge,Pt)|0,o=o+Math.imul(Ge,Ot)|0,o=o+Math.imul(nt,Pt)|0,x=x+Math.imul(nt,Ot)|0,v=v+Math.imul(Ye,me)|0,o=o+Math.imul(Ye,ce)|0,o=o+Math.imul(We,me)|0,x=x+Math.imul(We,ce)|0,v=v+Math.imul(Ve,_e)|0,o=o+Math.imul(Ve,Re)|0,o=o+Math.imul(et,_e)|0,x=x+Math.imul(et,Re)|0,v=v+Math.imul(ue,Ze)|0,o=o+Math.imul(ue,ct)|0,o=o+Math.imul(qe,Ze)|0,x=x+Math.imul(qe,ct)|0;var Ar=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,v=Math.imul(xe,tt),o=Math.imul(xe,kt),o=o+Math.imul(X,tt)|0,x=Math.imul(X,kt),v=v+Math.imul(dt,pt)|0,o=o+Math.imul(dt,It)|0,o=o+Math.imul(gt,pt)|0,x=x+Math.imul(gt,It)|0,v=v+Math.imul(Le,Pt)|0,o=o+Math.imul(Le,Ot)|0,o=o+Math.imul(Oe,Pt)|0,x=x+Math.imul(Oe,Ot)|0,v=v+Math.imul(Ge,me)|0,o=o+Math.imul(Ge,ce)|0,o=o+Math.imul(nt,me)|0,x=x+Math.imul(nt,ce)|0,v=v+Math.imul(Ye,_e)|0,o=o+Math.imul(Ye,Re)|0,o=o+Math.imul(We,_e)|0,x=x+Math.imul(We,Re)|0,v=v+Math.imul(Ve,Ze)|0,o=o+Math.imul(Ve,ct)|0,o=o+Math.imul(et,Ze)|0,x=x+Math.imul(et,ct)|0;var gr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,v=Math.imul(xe,pt),o=Math.imul(xe,It),o=o+Math.imul(X,pt)|0,x=Math.imul(X,It),v=v+Math.imul(dt,Pt)|0,o=o+Math.imul(dt,Ot)|0,o=o+Math.imul(gt,Pt)|0,x=x+Math.imul(gt,Ot)|0,v=v+Math.imul(Le,me)|0,o=o+Math.imul(Le,ce)|0,o=o+Math.imul(Oe,me)|0,x=x+Math.imul(Oe,ce)|0,v=v+Math.imul(Ge,_e)|0,o=o+Math.imul(Ge,Re)|0,o=o+Math.imul(nt,_e)|0,x=x+Math.imul(nt,Re)|0,v=v+Math.imul(Ye,Ze)|0,o=o+Math.imul(Ye,ct)|0,o=o+Math.imul(We,Ze)|0,x=x+Math.imul(We,ct)|0;var dr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(dr>>>26)|0,dr&=67108863,v=Math.imul(xe,Pt),o=Math.imul(xe,Ot),o=o+Math.imul(X,Pt)|0,x=Math.imul(X,Ot),v=v+Math.imul(dt,me)|0,o=o+Math.imul(dt,ce)|0,o=o+Math.imul(gt,me)|0,x=x+Math.imul(gt,ce)|0,v=v+Math.imul(Le,_e)|0,o=o+Math.imul(Le,Re)|0,o=o+Math.imul(Oe,_e)|0,x=x+Math.imul(Oe,Re)|0,v=v+Math.imul(Ge,Ze)|0,o=o+Math.imul(Ge,ct)|0,o=o+Math.imul(nt,Ze)|0,x=x+Math.imul(nt,ct)|0;var lr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(lr>>>26)|0,lr&=67108863,v=Math.imul(xe,me),o=Math.imul(xe,ce),o=o+Math.imul(X,me)|0,x=Math.imul(X,ce),v=v+Math.imul(dt,_e)|0,o=o+Math.imul(dt,Re)|0,o=o+Math.imul(gt,_e)|0,x=x+Math.imul(gt,Re)|0,v=v+Math.imul(Le,Ze)|0,o=o+Math.imul(Le,ct)|0,o=o+Math.imul(Oe,Ze)|0,x=x+Math.imul(Oe,ct)|0;var Kt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(xe,_e),o=Math.imul(xe,Re),o=o+Math.imul(X,_e)|0,x=Math.imul(X,Re),v=v+Math.imul(dt,Ze)|0,o=o+Math.imul(dt,ct)|0,o=o+Math.imul(gt,Ze)|0,x=x+Math.imul(gt,ct)|0;var Bt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(xe,Ze),o=Math.imul(xe,ct),o=o+Math.imul(X,Ze)|0,x=Math.imul(X,ct);var Ft=(w+v|0)+((o&8191)<<13)|0;return w=(x+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,y[0]=Nt,y[1]=Ut,y[2]=Mr,y[3]=Xt,y[4]=Sr,y[5]=rr,y[6]=er,y[7]=kr,y[8]=vr,y[9]=Pr,y[10]=Tr,y[11]=br,y[12]=Ar,y[13]=gr,y[14]=dr,y[15]=lr,y[16]=Kt,y[17]=Bt,y[18]=Ft,w!==0&&(y[19]=w,b.length++),b};Math.imul||(z=$);function N(T,u,p){p.negative=u.negative^T.negative,p.length=T.length+u.length;for(var b=0,e=0,c=0;c<p.length-1;c++){var y=e;e=0;for(var w=b&67108863,v=Math.min(c,u.length-1),o=Math.max(0,c-T.length+1);o<=v;o++){var x=c-o,E=T.words[x]|0,R=u.words[o]|0,H=E*R,Y=H&67108863;y=y+(H/67108864|0)|0,Y=Y+w|0,w=Y&67108863,y=y+(Y>>>26)|0,e+=y>>>26,y&=67108863}p.words[c]=w,b=y,y=e}return b!==0?p.words[c]=b:p.length--,p.strip()}function F(T,u,p){var b=new U;return b.mulp(T,u,p)}h.prototype.mulTo=function(u,p){var b,e=this.length+u.length;return this.length===10&&u.length===10?b=z(this,u,p):e<63?b=$(this,u,p):e<1024?b=N(this,u,p):b=F(this,u,p),b};function U(T,u){this.x=T,this.y=u}U.prototype.makeRBT=function(u){for(var p=new Array(u),b=h.prototype._countBits(u)-1,e=0;e<u;e++)p[e]=this.revBin(e,b,u);return p},U.prototype.revBin=function(u,p,b){if(u===0||u===b-1)return u;for(var e=0,c=0;c<p;c++)e|=(u&1)<<p-c-1,u>>=1;return e},U.prototype.permute=function(u,p,b,e,c,y){for(var w=0;w<y;w++)e[w]=p[u[w]],c[w]=b[u[w]]},U.prototype.transform=function(u,p,b,e,c,y){this.permute(y,u,p,b,e,c);for(var w=1;w<c;w<<=1)for(var v=w<<1,o=Math.cos(2*Math.PI/v),x=Math.sin(2*Math.PI/v),E=0;E<c;E+=v)for(var R=o,H=x,Y=0;Y<w;Y++){var Z=b[E+Y],L=e[E+Y],D=b[E+Y+w],ee=e[E+Y+w],oe=R*D-H*ee;ee=R*ee+H*D,D=oe,b[E+Y]=Z+D,e[E+Y]=L+ee,b[E+Y+w]=Z-D,e[E+Y+w]=L-ee,Y!==v&&(oe=o*R-x*H,H=o*H+x*R,R=oe)}},U.prototype.guessLen13b=function(u,p){var b=Math.max(p,u)|1,e=b&1,c=0;for(b=b/2|0;b;b=b>>>1)c++;return 1<<c+1+e},U.prototype.conjugate=function(u,p,b){if(!(b<=1))for(var e=0;e<b/2;e++){var c=u[e];u[e]=u[b-e-1],u[b-e-1]=c,c=p[e],p[e]=-p[b-e-1],p[b-e-1]=-c}},U.prototype.normalize13b=function(u,p){for(var b=0,e=0;e<p/2;e++){var c=Math.round(u[2*e+1]/p)*8192+Math.round(u[2*e]/p)+b;u[e]=c&67108863,c<67108864?b=0:b=c/67108864|0}return u},U.prototype.convert13b=function(u,p,b,e){for(var c=0,y=0;y<p;y++)c=c+(u[y]|0),b[2*y]=c&8191,c=c>>>13,b[2*y+1]=c&8191,c=c>>>13;for(y=2*p;y<e;++y)b[y]=0;d(c===0),d((c&-8192)===0)},U.prototype.stub=function(u){for(var p=new Array(u),b=0;b<u;b++)p[b]=0;return p},U.prototype.mulp=function(u,p,b){var e=2*this.guessLen13b(u.length,p.length),c=this.makeRBT(e),y=this.stub(e),w=new Array(e),v=new Array(e),o=new Array(e),x=new Array(e),E=new Array(e),R=new Array(e),H=b.words;H.length=e,this.convert13b(u.words,u.length,w,e),this.convert13b(p.words,p.length,x,e),this.transform(w,y,v,o,e,c),this.transform(x,y,E,R,e,c);for(var Y=0;Y<e;Y++){var Z=v[Y]*E[Y]-o[Y]*R[Y];o[Y]=v[Y]*R[Y]+o[Y]*E[Y],v[Y]=Z}return this.conjugate(v,o,e),this.transform(v,o,H,y,e,c),this.conjugate(H,y,e),this.normalize13b(H,e),b.negative=u.negative^p.negative,b.length=u.length+p.length,b.strip()},h.prototype.mul=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),this.mulTo(u,p)},h.prototype.mulf=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),F(this,u,p)},h.prototype.imul=function(u){return this.clone().mulTo(u,this)},h.prototype.imuln=function(u){d(typeof u=="number"),d(u<67108864);for(var p=0,b=0;b<this.length;b++){var e=(this.words[b]|0)*u,c=(e&67108863)+(p&67108863);p>>=26,p+=e/67108864|0,p+=c>>>26,this.words[b]=c&67108863}return p!==0&&(this.words[b]=p,this.length++),this},h.prototype.muln=function(u){return this.clone().imuln(u)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(u){var p=P(u);if(p.length===0)return new h(1);for(var b=this,e=0;e<p.length&&p[e]===0;e++,b=b.sqr());if(++e<p.length)for(var c=b.sqr();e<p.length;e++,c=c.sqr())p[e]!==0&&(b=b.mul(c));return b},h.prototype.iushln=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=67108863>>>26-p<<26-p,c;if(p!==0){var y=0;for(c=0;c<this.length;c++){var w=this.words[c]&e,v=(this.words[c]|0)-w<<p;this.words[c]=v|y,y=w>>>26-p}y&&(this.words[c]=y,this.length++)}if(b!==0){for(c=this.length-1;c>=0;c--)this.words[c+b]=this.words[c];for(c=0;c<b;c++)this.words[c]=0;this.length+=b}return this.strip()},h.prototype.ishln=function(u){return d(this.negative===0),this.iushln(u)},h.prototype.iushrn=function(u,p,b){d(typeof u=="number"&&u>=0);var e;p?e=(p-p%26)/26:e=0;var c=u%26,y=Math.min((u-c)/26,this.length),w=67108863^67108863>>>c<<c,v=b;if(e-=y,e=Math.max(0,e),v){for(var o=0;o<y;o++)v.words[o]=this.words[o];v.length=y}if(y!==0)if(this.length>y)for(this.length-=y,o=0;o<this.length;o++)this.words[o]=this.words[o+y];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=e);o--){var E=this.words[o]|0;this.words[o]=x<<26-c|E>>>c,x=E&w}return v&&x!==0&&(v.words[v.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(u,p,b){return d(this.negative===0),this.iushrn(u,p,b)},h.prototype.shln=function(u){return this.clone().ishln(u)},h.prototype.ushln=function(u){return this.clone().iushln(u)},h.prototype.shrn=function(u){return this.clone().ishrn(u)},h.prototype.ushrn=function(u){return this.clone().iushrn(u)},h.prototype.testn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return!1;var c=this.words[b];return!!(c&e)},h.prototype.imaskn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26;if(d(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(p!==0&&b++,this.length=Math.min(b,this.length),p!==0){var e=67108863^67108863>>>p<<p;this.words[this.length-1]&=e}return this.strip()},h.prototype.maskn=function(u){return this.clone().imaskn(u)},h.prototype.iaddn=function(u){return d(typeof u=="number"),d(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},h.prototype._iaddn=function(u){this.words[0]+=u;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},h.prototype.isubn=function(u){if(d(typeof u=="number"),d(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},h.prototype.addn=function(u){return this.clone().iaddn(u)},h.prototype.subn=function(u){return this.clone().isubn(u)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(u,p,b){var e=u.length+b,c;this._expand(e);var y,w=0;for(c=0;c<u.length;c++){y=(this.words[c+b]|0)+w;var v=(u.words[c]|0)*p;y-=v&67108863,w=(y>>26)-(v/67108864|0),this.words[c+b]=y&67108863}for(;c<this.length-b;c++)y=(this.words[c+b]|0)+w,w=y>>26,this.words[c+b]=y&67108863;if(w===0)return this.strip();for(d(w===-1),w=0,c=0;c<this.length;c++)y=-(this.words[c]|0)+w,w=y>>26,this.words[c]=y&67108863;return this.negative=1,this.strip()},h.prototype._wordDiv=function(u,p){var b=this.length-u.length,e=this.clone(),c=u,y=c.words[c.length-1]|0,w=this._countBits(y);b=26-w,b!==0&&(c=c.ushln(b),e.iushln(b),y=c.words[c.length-1]|0);var v=e.length-c.length,o;if(p!=="mod"){o=new h(null),o.length=v+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var E=e.clone()._ishlnsubmul(c,1,v);E.negative===0&&(e=E,o&&(o.words[v]=1));for(var R=v-1;R>=0;R--){var H=(e.words[c.length+R]|0)*67108864+(e.words[c.length+R-1]|0);for(H=Math.min(H/y|0,67108863),e._ishlnsubmul(c,H,R);e.negative!==0;)H--,e.negative=0,e._ishlnsubmul(c,1,R),e.isZero()||(e.negative^=1);o&&(o.words[R]=H)}return o&&o.strip(),e.strip(),p!=="div"&&b!==0&&e.iushrn(b),{div:o||null,mod:e}},h.prototype.divmod=function(u,p,b){if(d(!u.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var e,c,y;return this.negative!==0&&u.negative===0?(y=this.neg().divmod(u,p),p!=="mod"&&(e=y.div.neg()),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.iadd(u)),{div:e,mod:c}):this.negative===0&&u.negative!==0?(y=this.divmod(u.neg(),p),p!=="mod"&&(e=y.div.neg()),{div:e,mod:y.mod}):this.negative&u.negative?(y=this.neg().divmod(u.neg(),p),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.isub(u)),{div:y.div,mod:c}):u.length>this.length||this.cmp(u)<0?{div:new h(0),mod:this}:u.length===1?p==="div"?{div:this.divn(u.words[0]),mod:null}:p==="mod"?{div:null,mod:new h(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new h(this.modn(u.words[0]))}:this._wordDiv(u,p)},h.prototype.div=function(u){return this.divmod(u,"div",!1).div},h.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},h.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},h.prototype.divRound=function(u){var p=this.divmod(u);if(p.mod.isZero())return p.div;var b=p.div.negative!==0?p.mod.isub(u):p.mod,e=u.ushrn(1),c=u.andln(1),y=b.cmp(e);return y<0||c===1&&y===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},h.prototype.modn=function(u){d(u<=67108863);for(var p=(1<<26)%u,b=0,e=this.length-1;e>=0;e--)b=(p*b+(this.words[e]|0))%u;return b},h.prototype.idivn=function(u){d(u<=67108863);for(var p=0,b=this.length-1;b>=0;b--){var e=(this.words[b]|0)+p*67108864;this.words[b]=e/u|0,p=e%u}return this.strip()},h.prototype.divn=function(u){return this.clone().idivn(u)},h.prototype.egcd=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=new h(0),w=new h(1),v=0;p.isEven()&&b.isEven();)p.iushrn(1),b.iushrn(1),++v;for(var o=b.clone(),x=p.clone();!p.isZero();){for(var E=0,R=1;!(p.words[0]&R)&&E<26;++E,R<<=1);if(E>0)for(p.iushrn(E);E-- >0;)(e.isOdd()||c.isOdd())&&(e.iadd(o),c.isub(x)),e.iushrn(1),c.iushrn(1);for(var H=0,Y=1;!(b.words[0]&Y)&&H<26;++H,Y<<=1);if(H>0)for(b.iushrn(H);H-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(o),w.isub(x)),y.iushrn(1),w.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(y),c.isub(w)):(b.isub(p),y.isub(e),w.isub(c))}return{a:y,b:w,gcd:b.iushln(v)}},h.prototype._invmp=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=b.clone();p.cmpn(1)>0&&b.cmpn(1)>0;){for(var w=0,v=1;!(p.words[0]&v)&&w<26;++w,v<<=1);if(w>0)for(p.iushrn(w);w-- >0;)e.isOdd()&&e.iadd(y),e.iushrn(1);for(var o=0,x=1;!(b.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(b.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(y),c.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(c)):(b.isub(p),c.isub(e))}var E;return p.cmpn(1)===0?E=e:E=c,E.cmpn(0)<0&&E.iadd(u),E},h.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var p=this.clone(),b=u.clone();p.negative=0,b.negative=0;for(var e=0;p.isEven()&&b.isEven();e++)p.iushrn(1),b.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;b.isEven();)b.iushrn(1);var c=p.cmp(b);if(c<0){var y=p;p=b,b=y}else if(c===0||b.cmpn(1)===0)break;p.isub(b)}while(!0);return b.iushln(e)},h.prototype.invm=function(u){return this.egcd(u).a.umod(u)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(u){return this.words[0]&u},h.prototype.bincn=function(u){d(typeof u=="number");var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return this._expand(b+1),this.words[b]|=e,this;for(var c=e,y=b;c!==0&&y<this.length;y++){var w=this.words[y]|0;w+=c,c=w>>>26,w&=67108863,this.words[y]=w}return c!==0&&(this.words[y]=c,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(u){var p=u<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var b;if(this.length>1)b=1;else{p&&(u=-u),d(u<=67108863,"Number is too big");var e=this.words[0]|0;b=e===u?0:e<u?-1:1}return this.negative!==0?-b|0:b},h.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var p=this.ucmp(u);return this.negative!==0?-p|0:p},h.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var p=0,b=this.length-1;b>=0;b--){var e=this.words[b]|0,c=u.words[b]|0;if(e!==c){e<c?p=-1:e>c&&(p=1);break}}return p},h.prototype.gtn=function(u){return this.cmpn(u)===1},h.prototype.gt=function(u){return this.cmp(u)===1},h.prototype.gten=function(u){return this.cmpn(u)>=0},h.prototype.gte=function(u){return this.cmp(u)>=0},h.prototype.ltn=function(u){return this.cmpn(u)===-1},h.prototype.lt=function(u){return this.cmp(u)===-1},h.prototype.lten=function(u){return this.cmpn(u)<=0},h.prototype.lte=function(u){return this.cmp(u)<=0},h.prototype.eqn=function(u){return this.cmpn(u)===0},h.prototype.eq=function(u){return this.cmp(u)===0},h.red=function(u){return new he(u)},h.prototype.toRed=function(u){return d(!this.red,"Already a number in reduction context"),d(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},h.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(u){return this.red=u,this},h.prototype.forceRed=function(u){return d(!this.red,"Already a number in reduction context"),this._forceRed(u)},h.prototype.redAdd=function(u){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},h.prototype.redIAdd=function(u){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},h.prototype.redSub=function(u){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},h.prototype.redISub=function(u){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},h.prototype.redShl=function(u){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},h.prototype.redMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},h.prototype.redIMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},h.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(u){return d(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var J={k256:null,p224:null,p192:null,p25519:null};function te(T,u){this.name=T,this.p=new h(u,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}te.prototype._tmp=function(){var u=new h(null);return u.words=new Array(Math.ceil(this.n/13)),u},te.prototype.ireduce=function(u){var p=u,b;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),b=p.bitLength();while(b>this.n);var e=b<this.n?-1:p.ucmp(this.p);return e===0?(p.words[0]=0,p.length=1):e>0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},te.prototype.split=function(u,p){u.iushrn(this.n,0,p)},te.prototype.imulK=function(u){return u.imul(this.k)};function se(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(se,te),se.prototype.split=function(u,p){for(var b=4194303,e=Math.min(u.length,9),c=0;c<e;c++)p.words[c]=u.words[c];if(p.length=e,u.length<=9){u.words[0]=0,u.length=1;return}var y=u.words[9];for(p.words[p.length++]=y&b,c=10;c<u.length;c++){var w=u.words[c]|0;u.words[c-10]=(w&b)<<4|y>>>22,y=w}y>>>=22,u.words[c-10]=y,y===0&&u.length>10?u.length-=10:u.length-=9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var p=0,b=0;b<u.length;b++){var e=u.words[b]|0;p+=e*977,u.words[b]=p&67108863,p=e*64+(p/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function de(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(de,te);function Q(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(Q,te);function ve(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ve,te),ve.prototype.imulK=function(u){for(var p=0,b=0;b<u.length;b++){var e=(u.words[b]|0)*19+p,c=e&67108863;e>>>=26,u.words[b]=c,p=e}return p!==0&&(u.words[u.length++]=p),u},h._prime=function(u){if(J[u])return J[u];var p;if(u==="k256")p=new se;else if(u==="p224")p=new de;else if(u==="p192")p=new Q;else if(u==="p25519")p=new ve;else throw new Error("Unknown prime "+u);return J[u]=p,p};function he(T){if(typeof T=="string"){var u=h._prime(T);this.m=u.p,this.prime=u}else d(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}he.prototype._verify1=function(u){d(u.negative===0,"red works only with positives"),d(u.red,"red works only with red numbers")},he.prototype._verify2=function(u,p){d((u.negative|p.negative)===0,"red works only with positives"),d(u.red&&u.red===p.red,"red works only with red numbers")},he.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},he.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},he.prototype.add=function(u,p){this._verify2(u,p);var b=u.add(p);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},he.prototype.iadd=function(u,p){this._verify2(u,p);var b=u.iadd(p);return b.cmp(this.m)>=0&&b.isub(this.m),b},he.prototype.sub=function(u,p){this._verify2(u,p);var b=u.sub(p);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},he.prototype.isub=function(u,p){this._verify2(u,p);var b=u.isub(p);return b.cmpn(0)<0&&b.iadd(this.m),b},he.prototype.shl=function(u,p){return this._verify1(u),this.imod(u.ushln(p))},he.prototype.imul=function(u,p){return this._verify2(u,p),this.imod(u.imul(p))},he.prototype.mul=function(u,p){return this._verify2(u,p),this.imod(u.mul(p))},he.prototype.isqr=function(u){return this.imul(u,u.clone())},he.prototype.sqr=function(u){return this.mul(u,u)},he.prototype.sqrt=function(u){if(u.isZero())return u.clone();var p=this.m.andln(3);if(d(p%2===1),p===3){var b=this.m.add(new h(1)).iushrn(2);return this.pow(u,b)}for(var e=this.m.subn(1),c=0;!e.isZero()&&e.andln(1)===0;)c++,e.iushrn(1);d(!e.isZero());var y=new h(1).toRed(this),w=y.redNeg(),v=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new h(2*o*o).toRed(this);this.pow(o,v).cmp(w)!==0;)o.redIAdd(w);for(var x=this.pow(o,e),E=this.pow(u,e.addn(1).iushrn(1)),R=this.pow(u,e),H=c;R.cmp(y)!==0;){for(var Y=R,Z=0;Y.cmp(y)!==0;Z++)Y=Y.redSqr();d(Z<H);var L=this.pow(x,new h(1).iushln(H-Z-1));E=E.redMul(L),x=L.redSqr(),R=R.redMul(x),H=Z}return E},he.prototype.invm=function(u){var p=u._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},he.prototype.pow=function(u,p){if(p.isZero())return new h(1).toRed(this);if(p.cmpn(1)===0)return u.clone();var b=4,e=new Array(1<<b);e[0]=new h(1).toRed(this),e[1]=u;for(var c=2;c<e.length;c++)e[c]=this.mul(e[c-1],u);var y=e[0],w=0,v=0,o=p.bitLength()%26;for(o===0&&(o=26),c=p.length-1;c>=0;c--){for(var x=p.words[c],E=o-1;E>=0;E--){var R=x>>E&1;if(y!==e[0]&&(y=this.sqr(y)),R===0&&w===0){v=0;continue}w<<=1,w|=R,v++,!(v!==b&&(c!==0||E!==0))&&(y=this.mul(y,e[w]),v=0,w=0)}o=26}return y},he.prototype.convertTo=function(u){var p=u.umod(this.m);return p===u?p.clone():p},he.prototype.convertFrom=function(u){var p=u.clone();return p.red=null,p},h.mont=function(u){return new ke(u)};function ke(T){he.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(ke,he),ke.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},ke.prototype.convertFrom=function(u){var p=this.imod(u.mul(this.rinv));return p.red=null,p},ke.prototype.imul=function(u,p){if(u.isZero()||p.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.mul=function(u,p){if(u.isZero()||p.isZero())return new h(0)._forceRed(this);var b=u.mul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.invm=function(u){var p=this.imod(u._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,commonjsGlobal)}(bn$2);var bnExports$2=bn$2.exports,api={},vmBrowserify={},hasRequiredVmBrowserify;function requireVmBrowserify(){return hasRequiredVmBrowserify||(hasRequiredVmBrowserify=1,function(exports){var indexOf=function(t,n){if(t.indexOf)return t.indexOf(n);for(var l=0;l<t.length;l++)if(t[l]===n)return l;return-1},Object_keys=function(t){if(Object.keys)return Object.keys(t);var n=[];for(var l in t)n.push(l);return n},forEach=function(t,n){if(t.forEach)return t.forEach(n);for(var l=0;l<t.length;l++)n(t[l],l,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,n,l){Object.defineProperty(t,n,{writable:!0,enumerable:!1,configurable:!0,value:l})}}catch{return function(n,l,d){n[l]=d}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(n){if(!(this instanceof Script))return new Script(n);this.code=n};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var n=document.createElement("iframe");n.style||(n.style={}),n.style.display="none",document.body.appendChild(n);var l=n.contentWindow,d=l.eval,m=l.execScript;!d&&m&&(m.call(l,"null"),d=l.eval),forEach(Object_keys(t),function(k){l[k]=t[k]}),forEach(globals,function(k){t[k]&&(l[k]=t[k])});var h=Object_keys(l),S=d.call(l,this.code);return forEach(Object_keys(l),function(k){(k in t||indexOf(h,k)===-1)&&(t[k]=l[k])}),forEach(globals,function(k){k in t||defineProp(t,k,l[k])}),document.body.removeChild(n),S},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var n=Script.createContext(t),l=this.runInContext(n);return t&&forEach(Object_keys(n),function(d){t[d]=n[d]}),l},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(n){var l=Script(n);return l[t].apply(l,[].slice.call(arguments,1))}}),exports.isContext=function(t){return t instanceof Context},exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var n=new Context;return typeof t=="object"&&forEach(Object_keys(t),function(l){n[l]=t[l]}),n}}(vmBrowserify)),vmBrowserify}var hasRequiredApi;function requireApi(){return hasRequiredApi||(hasRequiredApi=1,function(t){var n=requireAsn1(),l=inherits_browserExports,d=t;d.define=function(S,k){return new m(S,k)};function m(h,S){this.name=h,this.body=S,this.decoders={},this.encoders={}}m.prototype._createNamed=function(S){var k;try{k=requireVmBrowserify().runInThisContext("(function "+this.name+`(entity) {
  this._initNamed(entity);
})`)}catch{k=function(B){this._initNamed(B)}}return l(k,S),k.prototype._initNamed=function(B){S.call(this,B)},new k(this)},m.prototype._getDecoder=function(S){return S=S||"der",this.decoders.hasOwnProperty(S)||(this.decoders[S]=this._createNamed(n.decoders[S])),this.decoders[S]},m.prototype.decode=function(S,k,A){return this._getDecoder(k).decode(S,A)},m.prototype._getEncoder=function(S){return S=S||"der",this.encoders.hasOwnProperty(S)||(this.encoders[S]=this._createNamed(n.encoders[S])),this.encoders[S]},m.prototype.encode=function(S,k,A){return this._getEncoder(k).encode(S,A)}}(api)),api}var base={},reporter={},inherits=inherits_browserExports;function Reporter(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}reporter.Reporter=Reporter,Reporter.prototype.isError=function t(n){return n instanceof ReporterError},Reporter.prototype.save=function t(){var n=this._reporterState;return{obj:n.obj,pathLen:n.path.length}},Reporter.prototype.restore=function t(n){var l=this._reporterState;l.obj=n.obj,l.path=l.path.slice(0,n.pathLen)},Reporter.prototype.enterKey=function t(n){return this._reporterState.path.push(n)},Reporter.prototype.exitKey=function t(n){var l=this._reporterState;l.path=l.path.slice(0,n-1)},Reporter.prototype.leaveKey=function t(n,l,d){var m=this._reporterState;this.exitKey(n),m.obj!==null&&(m.obj[l]=d)},Reporter.prototype.path=function t(){return this._reporterState.path.join("/")},Reporter.prototype.enterObject=function t(){var n=this._reporterState,l=n.obj;return n.obj={},l},Reporter.prototype.leaveObject=function t(n){var l=this._reporterState,d=l.obj;return l.obj=n,d},Reporter.prototype.error=function t(n){var l,d=this._reporterState,m=n instanceof ReporterError;if(m?l=n:l=new ReporterError(d.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),n.message||n,n.stack),!d.options.partial)throw l;return m||d.errors.push(l),l},Reporter.prototype.wrapResult=function t(n){var l=this._reporterState;return l.options.partial?{result:this.isError(n)?null:n,errors:l.errors}:n};function ReporterError(t,n){this.path=t,this.rethrow(n)}inherits(ReporterError,Error),ReporterError.prototype.rethrow=function t(n){if(this.message=n+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(l){this.stack=l.stack}return this};var buffer={},hasRequiredBuffer;function requireBuffer(){if(hasRequiredBuffer)return buffer;hasRequiredBuffer=1;var t=inherits_browserExports,n=requireBase().Reporter,l=require$$0$3.Buffer;function d(h,S){if(n.call(this,S),!l.isBuffer(h)){this.error("Input not Buffer");return}this.base=h,this.offset=0,this.length=h.length}t(d,n),buffer.DecoderBuffer=d,d.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},d.prototype.restore=function(S){var k=new d(this.base);return k.offset=S.offset,k.length=this.offset,this.offset=S.offset,n.prototype.restore.call(this,S.reporter),k},d.prototype.isEmpty=function(){return this.offset===this.length},d.prototype.readUInt8=function(S){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(S||"DecoderBuffer overrun")},d.prototype.skip=function(S,k){if(!(this.offset+S<=this.length))return this.error(k||"DecoderBuffer overrun");var A=new d(this.base);return A._reporterState=this._reporterState,A.offset=this.offset,A.length=this.offset+S,this.offset+=S,A},d.prototype.raw=function(S){return this.base.slice(S?S.offset:this.offset,this.length)};function m(h,S){if(Array.isArray(h))this.length=0,this.value=h.map(function(k){return k instanceof m||(k=new m(k,S)),this.length+=k.length,k},this);else if(typeof h=="number"){if(!(0<=h&&h<=255))return S.error("non-byte EncoderBuffer value");this.value=h,this.length=1}else if(typeof h=="string")this.value=h,this.length=l.byteLength(h);else if(l.isBuffer(h))this.value=h,this.length=h.length;else return S.error("Unsupported type: "+typeof h)}return buffer.EncoderBuffer=m,m.prototype.join=function(S,k){return S||(S=new l(this.length)),k||(k=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(A){A.join(S,k),k+=A.length}):(typeof this.value=="number"?S[k]=this.value:typeof this.value=="string"?S.write(this.value,k):l.isBuffer(this.value)&&this.value.copy(S,k),k+=this.length)),S},buffer}var node,hasRequiredNode;function requireNode(){if(hasRequiredNode)return node;hasRequiredNode=1;var t=requireBase().Reporter,n=requireBase().EncoderBuffer,l=requireBase().DecoderBuffer,d=minimalisticAssert,m=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],h=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(m),S=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function k(B,M){var j={};this._baseState=j,j.enc=B,j.parent=M||null,j.children=null,j.tag=null,j.args=null,j.reverseArgs=null,j.choice=null,j.optional=!1,j.any=!1,j.obj=!1,j.use=null,j.useDecoder=null,j.key=null,j.default=null,j.explicit=null,j.implicit=null,j.contains=null,j.parent||(j.children=[],this._wrap())}node=k;var A=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];return k.prototype.clone=function(){var M=this._baseState,j={};A.forEach(function(P){j[P]=M[P]});var I=new this.constructor(j.parent);return I._baseState=j,I},k.prototype._wrap=function(){var M=this._baseState;h.forEach(function(j){this[j]=function(){var P=new this.constructor(this);return M.children.push(P),P[j].apply(P,arguments)}},this)},k.prototype._init=function(M){var j=this._baseState;d(j.parent===null),M.call(this),j.children=j.children.filter(function(I){return I._baseState.parent===this},this),d.equal(j.children.length,1,"Root node can have only one child")},k.prototype._useArgs=function(M){var j=this._baseState,I=M.filter(function(P){return P instanceof this.constructor},this);M=M.filter(function(P){return!(P instanceof this.constructor)},this),I.length!==0&&(d(j.children===null),j.children=I,I.forEach(function(P){P._baseState.parent=this},this)),M.length!==0&&(d(j.args===null),j.args=M,j.reverseArgs=M.map(function(P){if(typeof P!="object"||P.constructor!==Object)return P;var $={};return Object.keys(P).forEach(function(z){z==(z|0)&&(z|=0);var N=P[z];$[N]=z}),$}))},S.forEach(function(B){k.prototype[B]=function(){var j=this._baseState;throw new Error(B+" not implemented for encoding: "+j.enc)}}),m.forEach(function(B){k.prototype[B]=function(){var j=this._baseState,I=Array.prototype.slice.call(arguments);return d(j.tag===null),j.tag=B,this._useArgs(I),this}}),k.prototype.use=function(M){d(M);var j=this._baseState;return d(j.use===null),j.use=M,this},k.prototype.optional=function(){var M=this._baseState;return M.optional=!0,this},k.prototype.def=function(M){var j=this._baseState;return d(j.default===null),j.default=M,j.optional=!0,this},k.prototype.explicit=function(M){var j=this._baseState;return d(j.explicit===null&&j.implicit===null),j.explicit=M,this},k.prototype.implicit=function(M){var j=this._baseState;return d(j.explicit===null&&j.implicit===null),j.implicit=M,this},k.prototype.obj=function(){var M=this._baseState,j=Array.prototype.slice.call(arguments);return M.obj=!0,j.length!==0&&this._useArgs(j),this},k.prototype.key=function(M){var j=this._baseState;return d(j.key===null),j.key=M,this},k.prototype.any=function(){var M=this._baseState;return M.any=!0,this},k.prototype.choice=function(M){var j=this._baseState;return d(j.choice===null),j.choice=M,this._useArgs(Object.keys(M).map(function(I){return M[I]})),this},k.prototype.contains=function(M){var j=this._baseState;return d(j.use===null),j.contains=M,this},k.prototype._decode=function(M,j){var I=this._baseState;if(I.parent===null)return M.wrapResult(I.children[0]._decode(M,j));var P=I.default,$=!0,z=null;if(I.key!==null&&(z=M.enterKey(I.key)),I.optional){var N=null;if(I.explicit!==null?N=I.explicit:I.implicit!==null?N=I.implicit:I.tag!==null&&(N=I.tag),N===null&&!I.any){var F=M.save();try{I.choice===null?this._decodeGeneric(I.tag,M,j):this._decodeChoice(M,j),$=!0}catch{$=!1}M.restore(F)}else if($=this._peekTag(M,N,I.any),M.isError($))return $}var U;if(I.obj&&$&&(U=M.enterObject()),$){if(I.explicit!==null){var J=this._decodeTag(M,I.explicit);if(M.isError(J))return J;M=J}var te=M.offset;if(I.use===null&&I.choice===null){if(I.any)var F=M.save();var se=this._decodeTag(M,I.implicit!==null?I.implicit:I.tag,I.any);if(M.isError(se))return se;I.any?P=M.raw(F):M=se}if(j&&j.track&&I.tag!==null&&j.track(M.path(),te,M.length,"tagged"),j&&j.track&&I.tag!==null&&j.track(M.path(),M.offset,M.length,"content"),I.any?P=P:I.choice===null?P=this._decodeGeneric(I.tag,M,j):P=this._decodeChoice(M,j),M.isError(P))return P;if(!I.any&&I.choice===null&&I.children!==null&&I.children.forEach(function(ve){ve._decode(M,j)}),I.contains&&(I.tag==="octstr"||I.tag==="bitstr")){var de=new l(P);P=this._getUse(I.contains,M._reporterState.obj)._decode(de,j)}}return I.obj&&$&&(P=M.leaveObject(U)),I.key!==null&&(P!==null||$===!0)?M.leaveKey(z,I.key,P):z!==null&&M.exitKey(z),P},k.prototype._decodeGeneric=function(M,j,I){var P=this._baseState;return M==="seq"||M==="set"?null:M==="seqof"||M==="setof"?this._decodeList(j,M,P.args[0],I):/str$/.test(M)?this._decodeStr(j,M,I):M==="objid"&&P.args?this._decodeObjid(j,P.args[0],P.args[1],I):M==="objid"?this._decodeObjid(j,null,null,I):M==="gentime"||M==="utctime"?this._decodeTime(j,M,I):M==="null_"?this._decodeNull(j,I):M==="bool"?this._decodeBool(j,I):M==="objDesc"?this._decodeStr(j,M,I):M==="int"||M==="enum"?this._decodeInt(j,P.args&&P.args[0],I):P.use!==null?this._getUse(P.use,j._reporterState.obj)._decode(j,I):j.error("unknown tag: "+M)},k.prototype._getUse=function(M,j){var I=this._baseState;return I.useDecoder=this._use(M,j),d(I.useDecoder._baseState.parent===null),I.useDecoder=I.useDecoder._baseState.children[0],I.implicit!==I.useDecoder._baseState.implicit&&(I.useDecoder=I.useDecoder.clone(),I.useDecoder._baseState.implicit=I.implicit),I.useDecoder},k.prototype._decodeChoice=function(M,j){var I=this._baseState,P=null,$=!1;return Object.keys(I.choice).some(function(z){var N=M.save(),F=I.choice[z];try{var U=F._decode(M,j);if(M.isError(U))return!1;P={type:z,value:U},$=!0}catch{return M.restore(N),!1}return!0},this),$?P:M.error("Choice not matched")},k.prototype._createEncoderBuffer=function(M){return new n(M,this.reporter)},k.prototype._encode=function(M,j,I){var P=this._baseState;if(!(P.default!==null&&P.default===M)){var $=this._encodeValue(M,j,I);if($!==void 0&&!this._skipDefault($,j,I))return $}},k.prototype._encodeValue=function(M,j,I){var P=this._baseState;if(P.parent===null)return P.children[0]._encode(M,j||new t);var F=null;if(this.reporter=j,P.optional&&M===void 0)if(P.default!==null)M=P.default;else return;var $=null,z=!1;if(P.any)F=this._createEncoderBuffer(M);else if(P.choice)F=this._encodeChoice(M,j);else if(P.contains)$=this._getUse(P.contains,I)._encode(M,j),z=!0;else if(P.children)$=P.children.map(function(te){if(te._baseState.tag==="null_")return te._encode(null,j,M);if(te._baseState.key===null)return j.error("Child should have a key");var se=j.enterKey(te._baseState.key);if(typeof M!="object")return j.error("Child expected, but input is not object");var de=te._encode(M[te._baseState.key],j,M);return j.leaveKey(se),de},this).filter(function(te){return te}),$=this._createEncoderBuffer($);else if(P.tag==="seqof"||P.tag==="setof"){if(!(P.args&&P.args.length===1))return j.error("Too many args for : "+P.tag);if(!Array.isArray(M))return j.error("seqof/setof, but data is not Array");var N=this.clone();N._baseState.implicit=null,$=this._createEncoderBuffer(M.map(function(te){var se=this._baseState;return this._getUse(se.args[0],M)._encode(te,j)},N))}else P.use!==null?F=this._getUse(P.use,I)._encode(M,j):($=this._encodePrimitive(P.tag,M),z=!0);var F;if(!P.any&&P.choice===null){var U=P.implicit!==null?P.implicit:P.tag,J=P.implicit===null?"universal":"context";U===null?P.use===null&&j.error("Tag could be omitted only for .use()"):P.use===null&&(F=this._encodeComposite(U,z,J,$))}return P.explicit!==null&&(F=this._encodeComposite(P.explicit,!1,"context",F)),F},k.prototype._encodeChoice=function(M,j){var I=this._baseState,P=I.choice[M.type];return P||d(!1,M.type+" not found in "+JSON.stringify(Object.keys(I.choice))),P._encode(M.value,j)},k.prototype._encodePrimitive=function(M,j){var I=this._baseState;if(/str$/.test(M))return this._encodeStr(j,M);if(M==="objid"&&I.args)return this._encodeObjid(j,I.reverseArgs[0],I.args[1]);if(M==="objid")return this._encodeObjid(j,null,null);if(M==="gentime"||M==="utctime")return this._encodeTime(j,M);if(M==="null_")return this._encodeNull();if(M==="int"||M==="enum")return this._encodeInt(j,I.args&&I.reverseArgs[0]);if(M==="bool")return this._encodeBool(j);if(M==="objDesc")return this._encodeStr(j,M);throw new Error("Unsupported tag: "+M)},k.prototype._isNumstr=function(M){return/^[0-9 ]*$/.test(M)},k.prototype._isPrintstr=function(M){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(M)},node}var hasRequiredBase;function requireBase(){return hasRequiredBase||(hasRequiredBase=1,function(t){var n=t;n.Reporter=reporter.Reporter,n.DecoderBuffer=requireBuffer().DecoderBuffer,n.EncoderBuffer=requireBuffer().EncoderBuffer,n.Node=requireNode()}(base)),base}var constants$1={},der={},hasRequiredDer$2;function requireDer$2(){return hasRequiredDer$2||(hasRequiredDer$2=1,function(t){var n=requireConstants$1();t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)}(der)),der}var hasRequiredConstants$1;function requireConstants$1(){return hasRequiredConstants$1||(hasRequiredConstants$1=1,function(t){var n=t;n._reverse=function(d){var m={};return Object.keys(d).forEach(function(h){(h|0)==h&&(h=h|0);var S=d[h];m[S]=h}),m},n.der=requireDer$2()}(constants$1)),constants$1}var decoders={},der_1$1,hasRequiredDer$1;function requireDer$1(){if(hasRequiredDer$1)return der_1$1;hasRequiredDer$1=1;var t=inherits_browserExports,n=requireAsn1(),l=n.base,d=n.bignum,m=n.constants.der;function h(B){this.enc="der",this.name=B.name,this.entity=B,this.tree=new S,this.tree._init(B.body)}der_1$1=h,h.prototype.decode=function(M,j){return M instanceof l.DecoderBuffer||(M=new l.DecoderBuffer(M,j)),this.tree._decode(M,j)};function S(B){l.Node.call(this,"der",B)}t(S,l.Node),S.prototype._peekTag=function(M,j,I){if(M.isEmpty())return!1;var P=M.save(),$=k(M,'Failed to peek tag: "'+j+'"');return M.isError($)?$:(M.restore(P),$.tag===j||$.tagStr===j||$.tagStr+"of"===j||I)},S.prototype._decodeTag=function(M,j,I){var P=k(M,'Failed to decode tag of "'+j+'"');if(M.isError(P))return P;var $=A(M,P.primitive,'Failed to get length of "'+j+'"');if(M.isError($))return $;if(!I&&P.tag!==j&&P.tagStr!==j&&P.tagStr+"of"!==j)return M.error('Failed to match tag: "'+j+'"');if(P.primitive||$!==null)return M.skip($,'Failed to match body of: "'+j+'"');var z=M.save(),N=this._skipUntilEnd(M,'Failed to skip indefinite length body: "'+this.tag+'"');return M.isError(N)?N:($=M.offset-z.offset,M.restore(z),M.skip($,'Failed to match body of: "'+j+'"'))},S.prototype._skipUntilEnd=function(M,j){for(;;){var I=k(M,j);if(M.isError(I))return I;var P=A(M,I.primitive,j);if(M.isError(P))return P;var $;if(I.primitive||P!==null?$=M.skip(P):$=this._skipUntilEnd(M,j),M.isError($))return $;if(I.tagStr==="end")break}},S.prototype._decodeList=function(M,j,I,P){for(var $=[];!M.isEmpty();){var z=this._peekTag(M,"end");if(M.isError(z))return z;var N=I.decode(M,"der",P);if(M.isError(N)&&z)break;$.push(N)}return $},S.prototype._decodeStr=function(M,j){if(j==="bitstr"){var I=M.readUInt8();return M.isError(I)?I:{unused:I,data:M.raw()}}else if(j==="bmpstr"){var P=M.raw();if(P.length%2===1)return M.error("Decoding of string type: bmpstr length mismatch");for(var $="",z=0;z<P.length/2;z++)$+=String.fromCharCode(P.readUInt16BE(z*2));return $}else if(j==="numstr"){var N=M.raw().toString("ascii");return this._isNumstr(N)?N:M.error("Decoding of string type: numstr unsupported characters")}else{if(j==="octstr")return M.raw();if(j==="objDesc")return M.raw();if(j==="printstr"){var F=M.raw().toString("ascii");return this._isPrintstr(F)?F:M.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(j)?M.raw().toString():M.error("Decoding of string type: "+j+" unsupported")}},S.prototype._decodeObjid=function(M,j,I){for(var P,$=[],z=0;!M.isEmpty();){var N=M.readUInt8();z<<=7,z|=N&127,N&128||($.push(z),z=0)}N&128&&$.push(z);var F=$[0]/40|0,U=$[0]%40;if(I?P=$:P=[F,U].concat($.slice(1)),j){var J=j[P.join(" ")];J===void 0&&(J=j[P.join(".")]),J!==void 0&&(P=J)}return P},S.prototype._decodeTime=function(M,j){var I=M.raw().toString();if(j==="gentime")var P=I.slice(0,4)|0,$=I.slice(4,6)|0,z=I.slice(6,8)|0,N=I.slice(8,10)|0,F=I.slice(10,12)|0,U=I.slice(12,14)|0;else if(j==="utctime"){var P=I.slice(0,2)|0,$=I.slice(2,4)|0,z=I.slice(4,6)|0,N=I.slice(6,8)|0,F=I.slice(8,10)|0,U=I.slice(10,12)|0;P<70?P=2e3+P:P=1900+P}else return M.error("Decoding "+j+" time is not supported yet");return Date.UTC(P,$-1,z,N,F,U,0)},S.prototype._decodeNull=function(M){return null},S.prototype._decodeBool=function(M){var j=M.readUInt8();return M.isError(j)?j:j!==0},S.prototype._decodeInt=function(M,j){var I=M.raw(),P=new d(I);return j&&(P=j[P.toString(10)]||P),P},S.prototype._use=function(M,j){return typeof M=="function"&&(M=M(j)),M._getDecoder("der").tree};function k(B,M){var j=B.readUInt8(M);if(B.isError(j))return j;var I=m.tagClass[j>>6],P=(j&32)===0;if((j&31)===31){var $=j;for(j=0;($&128)===128;){if($=B.readUInt8(M),B.isError($))return $;j<<=7,j|=$&127}}else j&=31;var z=m.tag[j];return{cls:I,primitive:P,tag:j,tagStr:z}}function A(B,M,j){var I=B.readUInt8(j);if(B.isError(I))return I;if(!M&&I===128)return null;if(!(I&128))return I;var P=I&127;if(P>4)return B.error("length octect is too long");I=0;for(var $=0;$<P;$++){I<<=8;var z=B.readUInt8(j);if(B.isError(z))return z;I|=z}return I}return der_1$1}var pem$2,hasRequiredPem$2;function requirePem$2(){if(hasRequiredPem$2)return pem$2;hasRequiredPem$2=1;var t=inherits_browserExports,n=require$$0$3.Buffer,l=requireDer$1();function d(m){l.call(this,m),this.enc="pem"}return t(d,l),pem$2=d,d.prototype.decode=function(h,S){for(var k=h.toString().split(/[\r\n]+/g),A=S.label.toUpperCase(),B=/^-----(BEGIN|END) ([^-]+)-----$/,M=-1,j=-1,I=0;I<k.length;I++){var P=k[I].match(B);if(P!==null&&P[2]===A)if(M===-1){if(P[1]!=="BEGIN")break;M=I}else{if(P[1]!=="END")break;j=I;break}}if(M===-1||j===-1)throw new Error("PEM section not found for: "+A);var $=k.slice(M+1,j).join("");$.replace(/[^a-z0-9\+\/=]+/gi,"");var z=new n($,"base64");return l.prototype.decode.call(this,z,S)},pem$2}var hasRequiredDecoders;function requireDecoders(){return hasRequiredDecoders||(hasRequiredDecoders=1,function(t){var n=t;n.der=requireDer$1(),n.pem=requirePem$2()}(decoders)),decoders}var encoders={},der_1,hasRequiredDer;function requireDer(){if(hasRequiredDer)return der_1;hasRequiredDer=1;var t=inherits_browserExports,n=require$$0$3.Buffer,l=requireAsn1(),d=l.base,m=l.constants.der;function h(B){this.enc="der",this.name=B.name,this.entity=B,this.tree=new S,this.tree._init(B.body)}der_1=h,h.prototype.encode=function(M,j){return this.tree._encode(M,j).join()};function S(B){d.Node.call(this,"der",B)}t(S,d.Node),S.prototype._encodeComposite=function(M,j,I,P){var $=A(M,j,I,this.reporter);if(P.length<128){var F=new n(2);return F[0]=$,F[1]=P.length,this._createEncoderBuffer([F,P])}for(var z=1,N=P.length;N>=256;N>>=8)z++;var F=new n(2+z);F[0]=$,F[1]=128|z;for(var N=1+z,U=P.length;U>0;N--,U>>=8)F[N]=U&255;return this._createEncoderBuffer([F,P])},S.prototype._encodeStr=function(M,j){if(j==="bitstr")return this._createEncoderBuffer([M.unused|0,M.data]);if(j==="bmpstr"){for(var I=new n(M.length*2),P=0;P<M.length;P++)I.writeUInt16BE(M.charCodeAt(P),P*2);return this._createEncoderBuffer(I)}else return j==="numstr"?this._isNumstr(M)?this._createEncoderBuffer(M):this.reporter.error("Encoding of string type: numstr supports only digits and space"):j==="printstr"?this._isPrintstr(M)?this._createEncoderBuffer(M):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(j)?this._createEncoderBuffer(M):j==="objDesc"?this._createEncoderBuffer(M):this.reporter.error("Encoding of string type: "+j+" unsupported")},S.prototype._encodeObjid=function(M,j,I){if(typeof M=="string"){if(!j)return this.reporter.error("string objid given, but no values map found");if(!j.hasOwnProperty(M))return this.reporter.error("objid not found in values map");M=j[M].split(/[\s\.]+/g);for(var P=0;P<M.length;P++)M[P]|=0}else if(Array.isArray(M)){M=M.slice();for(var P=0;P<M.length;P++)M[P]|=0}if(!Array.isArray(M))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(M));if(!I){if(M[1]>=40)return this.reporter.error("Second objid identifier OOB");M.splice(0,2,M[0]*40+M[1])}for(var $=0,P=0;P<M.length;P++){var z=M[P];for($++;z>=128;z>>=7)$++}for(var N=new n($),F=N.length-1,P=M.length-1;P>=0;P--){var z=M[P];for(N[F--]=z&127;(z>>=7)>0;)N[F--]=128|z&127}return this._createEncoderBuffer(N)};function k(B){return B<10?"0"+B:B}S.prototype._encodeTime=function(M,j){var I,P=new Date(M);return j==="gentime"?I=[k(P.getFullYear()),k(P.getUTCMonth()+1),k(P.getUTCDate()),k(P.getUTCHours()),k(P.getUTCMinutes()),k(P.getUTCSeconds()),"Z"].join(""):j==="utctime"?I=[k(P.getFullYear()%100),k(P.getUTCMonth()+1),k(P.getUTCDate()),k(P.getUTCHours()),k(P.getUTCMinutes()),k(P.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+j+" time is not supported yet"),this._encodeStr(I,"octstr")},S.prototype._encodeNull=function(){return this._createEncoderBuffer("")},S.prototype._encodeInt=function(M,j){if(typeof M=="string"){if(!j)return this.reporter.error("String int or enum given, but no values map");if(!j.hasOwnProperty(M))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(M));M=j[M]}if(typeof M!="number"&&!n.isBuffer(M)){var I=M.toArray();!M.sign&&I[0]&128&&I.unshift(0),M=new n(I)}if(n.isBuffer(M)){var P=M.length;M.length===0&&P++;var z=new n(P);return M.copy(z),M.length===0&&(z[0]=0),this._createEncoderBuffer(z)}if(M<128)return this._createEncoderBuffer(M);if(M<256)return this._createEncoderBuffer([0,M]);for(var P=1,$=M;$>=256;$>>=8)P++;for(var z=new Array(P),$=z.length-1;$>=0;$--)z[$]=M&255,M>>=8;return z[0]&128&&z.unshift(0),this._createEncoderBuffer(new n(z))},S.prototype._encodeBool=function(M){return this._createEncoderBuffer(M?255:0)},S.prototype._use=function(M,j){return typeof M=="function"&&(M=M(j)),M._getEncoder("der").tree},S.prototype._skipDefault=function(M,j,I){var P=this._baseState,$;if(P.default===null)return!1;var z=M.join();if(P.defaultBuffer===void 0&&(P.defaultBuffer=this._encodeValue(P.default,j,I).join()),z.length!==P.defaultBuffer.length)return!1;for($=0;$<z.length;$++)if(z[$]!==P.defaultBuffer[$])return!1;return!0};function A(B,M,j,I){var P;if(B==="seqof"?B="seq":B==="setof"&&(B="set"),m.tagByName.hasOwnProperty(B))P=m.tagByName[B];else if(typeof B=="number"&&(B|0)===B)P=B;else return I.error("Unknown tag: "+B);return P>=31?I.error("Multi-octet tag encoding unsupported"):(M||(P|=32),P|=m.tagClassByName[j||"universal"]<<6,P)}return der_1}var pem$1,hasRequiredPem$1;function requirePem$1(){if(hasRequiredPem$1)return pem$1;hasRequiredPem$1=1;var t=inherits_browserExports,n=requireDer();function l(d){n.call(this,d),this.enc="pem"}return t(l,n),pem$1=l,l.prototype.encode=function(m,h){for(var S=n.prototype.encode.call(this,m),k=S.toString("base64"),A=["-----BEGIN "+h.label+"-----"],B=0;B<k.length;B+=64)A.push(k.slice(B,B+64));return A.push("-----END "+h.label+"-----"),A.join(`
`)},pem$1}var hasRequiredEncoders;function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,function(t){var n=t;n.der=requireDer(),n.pem=requirePem$1()}(encoders)),encoders}var hasRequiredAsn1;function requireAsn1(){return hasRequiredAsn1||(hasRequiredAsn1=1,function(t){var n=t;n.bignum=bnExports$2,n.define=requireApi().define,n.base=requireBase(),n.constants=requireConstants$1(),n.decoders=requireDecoders(),n.encoders=requireEncoders()}(asn1$2)),asn1$2}var asn=requireAsn1(),Time=asn.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),AttributeTypeValue=asn.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),AlgorithmIdentifier$1=asn.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),SubjectPublicKeyInfo=asn.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier$1),this.key("subjectPublicKey").bitstr())}),RelativeDistinguishedName=asn.define("RelativeDistinguishedName",function(){this.setof(AttributeTypeValue)}),RDNSequence=asn.define("RDNSequence",function(){this.seqof(RelativeDistinguishedName)}),Name=asn.define("Name",function(){this.choice({rdnSequence:this.use(RDNSequence)})}),Validity=asn.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Time),this.key("notAfter").use(Time))}),Extension=asn.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),TBSCertificate=asn.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(AlgorithmIdentifier$1),this.key("issuer").use(Name),this.key("validity").use(Validity),this.key("subject").use(Name),this.key("subjectPublicKeyInfo").use(SubjectPublicKeyInfo),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(Extension).optional())}),X509Certificate=asn.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(TBSCertificate),this.key("signatureAlgorithm").use(AlgorithmIdentifier$1),this.key("signatureValue").bitstr())}),certificate$1=X509Certificate,asn1$1=requireAsn1();asn1$3.certificate=certificate$1;var RSAPrivateKey=asn1$1.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});asn1$3.RSAPrivateKey=RSAPrivateKey;var RSAPublicKey=asn1$1.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$3.RSAPublicKey=RSAPublicKey;var AlgorithmIdentifier=asn1$1.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),PublicKey=asn1$1.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPublicKey").bitstr())});asn1$3.PublicKey=PublicKey;var PrivateKeyInfo=asn1$1.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(AlgorithmIdentifier),this.key("subjectPrivateKey").octstr())});asn1$3.PrivateKey=PrivateKeyInfo;var EncryptedPrivateKeyInfo=asn1$1.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});asn1$3.EncryptedPrivateKey=EncryptedPrivateKeyInfo;var DSAPrivateKey=asn1$1.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});asn1$3.DSAPrivateKey=DSAPrivateKey,asn1$3.DSAparam=asn1$1.define("DSAparam",function(){this.int()});var ECParameters=asn1$1.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),ECPrivateKey=asn1$1.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(ECParameters),this.key("publicKey").optional().explicit(1).bitstr())});asn1$3.ECPrivateKey=ECPrivateKey,asn1$3.signature=asn1$1.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const require$$1$2={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var findProc=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,startRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,fullRegex=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,evp=evp_bytestokey,ciphers$1=browser$7,Buffer$7=safeBufferExports$1.Buffer,fixProc$1=function(t,n){var l=t.toString(),d=l.match(findProc),m;if(d){var S="aes"+d[1],k=Buffer$7.from(d[2],"hex"),A=Buffer$7.from(d[3].replace(/[\r\n]/g,""),"base64"),B=evp(n,k.slice(0,8),parseInt(d[1],10)).key,M=[],j=ciphers$1.createDecipheriv(S,B,k);M.push(j.update(A)),M.push(j.final()),m=Buffer$7.concat(M)}else{var h=l.match(fullRegex);m=Buffer$7.from(h[2].replace(/[\r\n]/g,""),"base64")}var I=l.match(startRegex)[1];return{tag:I,data:m}},asn1=asn1$3,aesid=require$$1$2,fixProc=fixProc$1,ciphers=browser$7,compat=browser$9,Buffer$6=safeBufferExports$1.Buffer;function decrypt(t,n){var l=t.algorithm.decrypt.kde.kdeparams.salt,d=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),m=aesid[t.algorithm.decrypt.cipher.algo.join(".")],h=t.algorithm.decrypt.cipher.iv,S=t.subjectPrivateKey,k=parseInt(m.split("-")[1],10)/8,A=compat.pbkdf2Sync(n,l,d,k,"sha1"),B=ciphers.createDecipheriv(m,A,h),M=[];return M.push(B.update(S)),M.push(B.final()),Buffer$6.concat(M)}function parseKeys$2(t){var n;typeof t=="object"&&!Buffer$6.isBuffer(t)&&(n=t.passphrase,t=t.key),typeof t=="string"&&(t=Buffer$6.from(t));var l=fixProc(t,n),d=l.tag,m=l.data,h,S;switch(d){case"CERTIFICATE":S=asn1.certificate.decode(m,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(S||(S=asn1.PublicKey.decode(m,"der")),h=S.algorithm.algorithm.join("."),h){case"1.2.840.113549.1.1.1":return asn1.RSAPublicKey.decode(S.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return S.subjectPrivateKey=S.subjectPublicKey,{type:"ec",data:S};case"1.2.840.10040.4.1":return S.algorithm.params.pub_key=asn1.DSAparam.decode(S.subjectPublicKey.data,"der"),{type:"dsa",data:S.algorithm.params};default:throw new Error("unknown key id "+h)}case"ENCRYPTED PRIVATE KEY":m=asn1.EncryptedPrivateKey.decode(m,"der"),m=decrypt(m,n);case"PRIVATE KEY":switch(S=asn1.PrivateKey.decode(m,"der"),h=S.algorithm.algorithm.join("."),h){case"1.2.840.113549.1.1.1":return asn1.RSAPrivateKey.decode(S.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:S.algorithm.curve,privateKey:asn1.ECPrivateKey.decode(S.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return S.algorithm.params.priv_key=asn1.DSAparam.decode(S.subjectPrivateKey,"der"),{type:"dsa",params:S.algorithm.params};default:throw new Error("unknown key id "+h)}case"RSA PUBLIC KEY":return asn1.RSAPublicKey.decode(m,"der");case"RSA PRIVATE KEY":return asn1.RSAPrivateKey.decode(m,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:asn1.DSAPrivateKey.decode(m,"der")};case"EC PRIVATE KEY":return m=asn1.ECPrivateKey.decode(m,"der"),{curve:m.parameters.value,privateKey:m.privateKey};default:throw new Error("unknown key type "+d)}}parseKeys$2.signature=asn1.signature;var parseAsn1=parseKeys$2;const require$$4$1={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var t=safeBufferExports$1.Buffer,n=browser$a,l=browserifyRsa,d=requireElliptic().ec,m=bnExports$4,h=parseAsn1,S=require$$4$1,k=1;function A(F,U,J,te,se){var de=h(U);if(de.curve){if(te!=="ecdsa"&&te!=="ecdsa/rsa")throw new Error("wrong private key type");return B(F,de)}else if(de.type==="dsa"){if(te!=="dsa")throw new Error("wrong private key type");return M(F,de,J)}if(te!=="rsa"&&te!=="ecdsa/rsa")throw new Error("wrong private key type");if(U.padding!==void 0&&U.padding!==k)throw new Error("illegal or unsupported padding mode");F=t.concat([se,F]);for(var Q=de.modulus.byteLength(),ve=[0,1];F.length+ve.length+1<Q;)ve.push(255);ve.push(0);for(var he=-1;++he<F.length;)ve.push(F[he]);var ke=l(ve,de);return ke}function B(F,U){var J=S[U.curve.join(".")];if(!J)throw new Error("unknown curve "+U.curve.join("."));var te=new d(J),se=te.keyFromPrivate(U.privateKey),de=se.sign(F);return t.from(de.toDER())}function M(F,U,J){for(var te=U.params.priv_key,se=U.params.p,de=U.params.q,Q=U.params.g,ve=new m(0),he,ke=P(F,de).mod(de),T=!1,u=I(te,de,F,J);T===!1;)he=z(de,u,J),ve=N(Q,he,se,de),T=he.invm(de).imul(ke.add(te.mul(ve))).mod(de),T.cmpn(0)===0&&(T=!1,ve=new m(0));return j(ve,T)}function j(F,U){F=F.toArray(),U=U.toArray(),F[0]&128&&(F=[0].concat(F)),U[0]&128&&(U=[0].concat(U));var J=F.length+U.length+4,te=[48,J,2,F.length];return te=te.concat(F,[2,U.length],U),t.from(te)}function I(F,U,J,te){if(F=t.from(F.toArray()),F.length<U.byteLength()){var se=t.alloc(U.byteLength()-F.length);F=t.concat([se,F])}var de=J.length,Q=$(J,U),ve=t.alloc(de);ve.fill(1);var he=t.alloc(de);return he=n(te,he).update(ve).update(t.from([0])).update(F).update(Q).digest(),ve=n(te,he).update(ve).digest(),he=n(te,he).update(ve).update(t.from([1])).update(F).update(Q).digest(),ve=n(te,he).update(ve).digest(),{k:he,v:ve}}function P(F,U){var J=new m(F),te=(F.length<<3)-U.bitLength();return te>0&&J.ishrn(te),J}function $(F,U){F=P(F,U),F=F.mod(U);var J=t.from(F.toArray());if(J.length<U.byteLength()){var te=t.alloc(U.byteLength()-J.length);J=t.concat([te,J])}return J}function z(F,U,J){var te,se;do{for(te=t.alloc(0);te.length*8<F.bitLength();)U.v=n(J,U.k).update(U.v).digest(),te=t.concat([te,U.v]);se=P(te,F),U.k=n(J,U.k).update(U.v).update(t.from([0])).digest(),U.v=n(J,U.k).update(U.v).digest()}while(se.cmp(F)!==-1);return se}function N(F,U,J,te){return F.toRed(m.mont(J)).redPow(U).fromRed().mod(te)}return sign.exports=A,sign.exports.getKey=I,sign.exports.makeKey=z,sign.exports}var verify_1,hasRequiredVerify$1;function requireVerify$1(){if(hasRequiredVerify$1)return verify_1;hasRequiredVerify$1=1;var t=safeBufferExports$1.Buffer,n=bnExports$4,l=requireElliptic().ec,d=parseAsn1,m=require$$4$1;function h(B,M,j,I,P){var $=d(j);if($.type==="ec"){if(I!=="ecdsa"&&I!=="ecdsa/rsa")throw new Error("wrong public key type");return S(B,M,$)}else if($.type==="dsa"){if(I!=="dsa")throw new Error("wrong public key type");return k(B,M,$)}if(I!=="rsa"&&I!=="ecdsa/rsa")throw new Error("wrong public key type");M=t.concat([P,M]);for(var z=$.modulus.byteLength(),N=[1],F=0;M.length+N.length+2<z;)N.push(255),F+=1;N.push(0);for(var U=-1;++U<M.length;)N.push(M[U]);N=t.from(N);var J=n.mont($.modulus);B=new n(B).toRed(J),B=B.redPow(new n($.publicExponent)),B=t.from(B.fromRed().toArray());var te=F<8?1:0;for(z=Math.min(B.length,N.length),B.length!==N.length&&(te=1),U=-1;++U<z;)te|=B[U]^N[U];return te===0}function S(B,M,j){var I=m[j.data.algorithm.curve.join(".")];if(!I)throw new Error("unknown curve "+j.data.algorithm.curve.join("."));var P=new l(I),$=j.data.subjectPrivateKey.data;return P.verify(M,B,$)}function k(B,M,j){var I=j.data.p,P=j.data.q,$=j.data.g,z=j.data.pub_key,N=d.signature.decode(B,"der"),F=N.s,U=N.r;A(F,P),A(U,P);var J=n.mont(I),te=F.invm(P),se=$.toRed(J).redPow(new n(M).mul(te).mod(P)).fromRed().mul(z.toRed(J).redPow(U.mul(te).mod(P)).fromRed()).mod(I).mod(P);return se.cmp(U)===0}function A(B,M){if(B.cmpn(0)<=0)throw new Error("invalid sig");if(B.cmp(M)>=0)throw new Error("invalid sig")}return verify_1=h,verify_1}var browser$5,hasRequiredBrowser$3;function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$5;hasRequiredBrowser$3=1;var t=safeBufferExports$1.Buffer,n=browser$b,l=readableBrowserExports,d=inherits_browserExports,m=requireSign(),h=requireVerify$1(),S=require$$6$1;Object.keys(S).forEach(function(j){S[j].id=t.from(S[j].id,"hex"),S[j.toLowerCase()]=S[j]});function k(j){l.Writable.call(this);var I=S[j];if(!I)throw new Error("Unknown message digest");this._hashType=I.hash,this._hash=n(I.hash),this._tag=I.id,this._signType=I.sign}d(k,l.Writable),k.prototype._write=function(I,P,$){this._hash.update(I),$()},k.prototype.update=function(I,P){return this._hash.update(typeof I=="string"?t.from(I,P):I),this},k.prototype.sign=function(I,P){this.end();var $=this._hash.digest(),z=m($,I,this._hashType,this._signType,this._tag);return P?z.toString(P):z};function A(j){l.Writable.call(this);var I=S[j];if(!I)throw new Error("Unknown message digest");this._hash=n(I.hash),this._tag=I.id,this._signType=I.sign}d(A,l.Writable),A.prototype._write=function(I,P,$){this._hash.update(I),$()},A.prototype.update=function(I,P){return this._hash.update(typeof I=="string"?t.from(I,P):I),this},A.prototype.verify=function(I,P,$){var z=typeof P=="string"?t.from(P,$):P;this.end();var N=this._hash.digest();return h(z,N,I,this._signType,this._tag)};function B(j){return new k(j)}function M(j){return new A(j)}return browser$5={Sign:B,Verify:M,createSign:B,createVerify:M},browser$5}var bn$1={exports:{}};bn$1.exports,function(t){(function(n,l){function d(T,u){if(!T)throw new Error(u||"Assertion failed")}function m(T,u){T.super_=u;var p=function(){};p.prototype=u.prototype,T.prototype=new p,T.prototype.constructor=T}function h(T,u,p){if(h.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(p=u,u=10),this._init(T||0,u||10,p||"be"))}typeof n=="object"?n.exports=h:l.BN=h,h.BN=h,h.wordSize=26;var S;try{typeof window<"u"&&typeof window.Buffer<"u"?S=window.Buffer:S=require$$0$3.Buffer}catch{}h.isBN=function(u){return u instanceof h?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===h.wordSize&&Array.isArray(u.words)},h.max=function(u,p){return u.cmp(p)>0?u:p},h.min=function(u,p){return u.cmp(p)<0?u:p},h.prototype._init=function(u,p,b){if(typeof u=="number")return this._initNumber(u,p,b);if(typeof u=="object")return this._initArray(u,p,b);p==="hex"&&(p=16),d(p===(p|0)&&p>=2&&p<=36),u=u.toString().replace(/\s+/g,"");var e=0;u[0]==="-"&&(e++,this.negative=1),e<u.length&&(p===16?this._parseHex(u,e,b):(this._parseBase(u,p,e),b==="le"&&this._initArray(this.toArray(),p,b)))},h.prototype._initNumber=function(u,p,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(d(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),p,b)},h.prototype._initArray=function(u,p,b){if(d(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c,y,w=0;if(b==="be")for(e=u.length-1,c=0;e>=0;e-=3)y=u[e]|u[e-1]<<8|u[e-2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);else if(b==="le")for(e=0,c=0;e<u.length;e+=3)y=u[e]|u[e+1]<<8|u[e+2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);return this.strip()};function k(T,u){var p=T.charCodeAt(u);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function A(T,u,p){var b=k(T,p);return p-1>=u&&(b|=k(T,p-1)<<4),b}h.prototype._parseHex=function(u,p,b){this.length=Math.ceil((u.length-p)/6),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c=0,y=0,w;if(b==="be")for(e=u.length-1;e>=p;e-=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8;else{var v=u.length-p;for(e=v%2===0?p+1:p;e<u.length;e+=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8}this.strip()};function B(T,u,p,b){for(var e=0,c=Math.min(T.length,p),y=u;y<c;y++){var w=T.charCodeAt(y)-48;e*=b,w>=49?e+=w-49+10:w>=17?e+=w-17+10:e+=w}return e}h.prototype._parseBase=function(u,p,b){this.words=[0],this.length=1;for(var e=0,c=1;c<=67108863;c*=p)e++;e--,c=c/p|0;for(var y=u.length-b,w=y%e,v=Math.min(y,y-w)+b,o=0,x=b;x<v;x+=e)o=B(u,x,x+e,p),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(w!==0){var E=1;for(o=B(u,x,u.length,p),x=0;x<w;x++)E*=p;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},h.prototype.copy=function(u){u.words=new Array(this.length);for(var p=0;p<this.length;p++)u.words[p]=this.words[p];u.length=this.length,u.negative=this.negative,u.red=this.red},h.prototype.clone=function(){var u=new h(null);return this.copy(u),u},h.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(u,p){u=u||10,p=p|0||1;var b;if(u===16||u==="hex"){b="";for(var e=0,c=0,y=0;y<this.length;y++){var w=this.words[y],v=((w<<e|c)&16777215).toString(16);c=w>>>24-e&16777215,c!==0||y!==this.length-1?b=M[6-v.length]+v+b:b=v+b,e+=2,e>=26&&(e-=26,y--)}for(c!==0&&(b=c.toString(16)+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var o=j[u],x=I[u];b="";var E=this.clone();for(E.negative=0;!E.isZero();){var R=E.modn(x).toString(u);E=E.idivn(x),E.isZero()?b=R+b:b=M[o-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}d(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(u,p){return d(typeof S<"u"),this.toArrayLike(S,u,p)},h.prototype.toArray=function(u,p){return this.toArrayLike(Array,u,p)},h.prototype.toArrayLike=function(u,p,b){var e=this.byteLength(),c=b||Math.max(1,e);d(e<=c,"byte array longer than desired length"),d(c>0,"Requested array length <= 0"),this.strip();var y=p==="le",w=new u(c),v,o,x=this.clone();if(y){for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[o]=v;for(;o<c;o++)w[o]=0}else{for(o=0;o<c-e;o++)w[o]=0;for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[c-o-1]=v}return w},Math.clz32?h.prototype._countBits=function(u){return 32-Math.clz32(u)}:h.prototype._countBits=function(u){var p=u,b=0;return p>=4096&&(b+=13,p>>>=13),p>=64&&(b+=7,p>>>=7),p>=8&&(b+=4,p>>>=4),p>=2&&(b+=2,p>>>=2),b+p},h.prototype._zeroBits=function(u){if(u===0)return 26;var p=u,b=0;return p&8191||(b+=13,p>>>=13),p&127||(b+=7,p>>>=7),p&15||(b+=4,p>>>=4),p&3||(b+=2,p>>>=2),p&1||b++,b},h.prototype.bitLength=function(){var u=this.words[this.length-1],p=this._countBits(u);return(this.length-1)*26+p};function P(T){for(var u=new Array(T.bitLength()),p=0;p<u.length;p++){var b=p/26|0,e=p%26;u[p]=(T.words[b]&1<<e)>>>e}return u}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,p=0;p<this.length;p++){var b=this._zeroBits(this.words[p]);if(u+=b,b!==26)break}return u},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},h.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return this.negative!==0},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var p=0;p<u.length;p++)this.words[p]=this.words[p]|u.words[p];return this.strip()},h.prototype.ior=function(u){return d((this.negative|u.negative)===0),this.iuor(u)},h.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},h.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},h.prototype.iuand=function(u){var p;this.length>u.length?p=u:p=this;for(var b=0;b<p.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=p.length,this.strip()},h.prototype.iand=function(u){return d((this.negative|u.negative)===0),this.iuand(u)},h.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},h.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},h.prototype.iuxor=function(u){var p,b;this.length>u.length?(p=this,b=u):(p=u,b=this);for(var e=0;e<b.length;e++)this.words[e]=p.words[e]^b.words[e];if(this!==p)for(;e<p.length;e++)this.words[e]=p.words[e];return this.length=p.length,this.strip()},h.prototype.ixor=function(u){return d((this.negative|u.negative)===0),this.iuxor(u)},h.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},h.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},h.prototype.inotn=function(u){d(typeof u=="number"&&u>=0);var p=Math.ceil(u/26)|0,b=u%26;this._expand(p),b>0&&p--;for(var e=0;e<p;e++)this.words[e]=~this.words[e]&67108863;return b>0&&(this.words[e]=~this.words[e]&67108863>>26-b),this.strip()},h.prototype.notn=function(u){return this.clone().inotn(u)},h.prototype.setn=function(u,p){d(typeof u=="number"&&u>=0);var b=u/26|0,e=u%26;return this._expand(b+1),p?this.words[b]=this.words[b]|1<<e:this.words[b]=this.words[b]&~(1<<e),this.strip()},h.prototype.iadd=function(u){var p;if(this.negative!==0&&u.negative===0)return this.negative=0,p=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,p=this.isub(u),u.negative=1,p._normSign();var b,e;this.length>u.length?(b=this,e=u):(b=u,e=this);for(var c=0,y=0;y<e.length;y++)p=(b.words[y]|0)+(e.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;for(;c!==0&&y<b.length;y++)p=(b.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;if(this.length=b.length,c!==0)this.words[this.length]=c,this.length++;else if(b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this},h.prototype.add=function(u){var p;return u.negative!==0&&this.negative===0?(u.negative=0,p=this.sub(u),u.negative^=1,p):u.negative===0&&this.negative!==0?(this.negative=0,p=u.sub(this),this.negative=1,p):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},h.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var p=this.iadd(u);return u.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var e,c;b>0?(e=this,c=u):(e=u,c=this);for(var y=0,w=0;w<c.length;w++)p=(e.words[w]|0)-(c.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;for(;y!==0&&w<e.length;w++)p=(e.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;if(y===0&&w<e.length&&e!==this)for(;w<e.length;w++)this.words[w]=e.words[w];return this.length=Math.max(this.length,w),e!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(u){return this.clone().isub(u)};function $(T,u,p){p.negative=u.negative^T.negative;var b=T.length+u.length|0;p.length=b,b=b-1|0;var e=T.words[0]|0,c=u.words[0]|0,y=e*c,w=y&67108863,v=y/67108864|0;p.words[0]=w;for(var o=1;o<b;o++){for(var x=v>>>26,E=v&67108863,R=Math.min(o,u.length-1),H=Math.max(0,o-T.length+1);H<=R;H++){var Y=o-H|0;e=T.words[Y]|0,c=u.words[H]|0,y=e*c+E,x+=y/67108864|0,E=y&67108863}p.words[o]=E|0,v=x|0}return v!==0?p.words[o]=v|0:p.length--,p.strip()}var z=function(u,p,b){var e=u.words,c=p.words,y=b.words,w=0,v,o,x,E=e[0]|0,R=E&8191,H=E>>>13,Y=e[1]|0,Z=Y&8191,L=Y>>>13,D=e[2]|0,ee=D&8191,oe=D>>>13,fe=e[3]|0,ue=fe&8191,qe=fe>>>13,rt=e[4]|0,Ve=rt&8191,et=rt>>>13,mt=e[5]|0,Ye=mt&8191,We=mt>>>13,Xe=e[6]|0,Ge=Xe&8191,nt=Xe>>>13,Et=e[7]|0,Le=Et&8191,Oe=Et>>>13,$t=e[8]|0,dt=$t&8191,gt=$t>>>13,Lt=e[9]|0,xe=Lt&8191,X=Lt>>>13,pe=c[0]|0,je=pe&8191,$e=pe>>>13,He=c[1]|0,Fe=He&8191,Me=He>>>13,Rt=c[2]|0,yt=Rt&8191,le=Rt>>>13,wt=c[3]|0,at=wt&8191,Be=wt>>>13,ot=c[4]|0,tt=ot&8191,kt=ot>>>13,Yt=c[5]|0,pt=Yt&8191,It=Yt>>>13,Fr=c[6]|0,Pt=Fr&8191,Ot=Fr>>>13,Te=c[7]|0,me=Te&8191,ce=Te>>>13,ne=c[8]|0,_e=ne&8191,Re=ne>>>13,lt=c[9]|0,Ze=lt&8191,ct=lt>>>13;b.negative=u.negative^p.negative,b.length=19,v=Math.imul(R,je),o=Math.imul(R,$e),o=o+Math.imul(H,je)|0,x=Math.imul(H,$e);var Nt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,v=Math.imul(Z,je),o=Math.imul(Z,$e),o=o+Math.imul(L,je)|0,x=Math.imul(L,$e),v=v+Math.imul(R,Fe)|0,o=o+Math.imul(R,Me)|0,o=o+Math.imul(H,Fe)|0,x=x+Math.imul(H,Me)|0;var Ut=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,v=Math.imul(ee,je),o=Math.imul(ee,$e),o=o+Math.imul(oe,je)|0,x=Math.imul(oe,$e),v=v+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(L,Fe)|0,x=x+Math.imul(L,Me)|0,v=v+Math.imul(R,yt)|0,o=o+Math.imul(R,le)|0,o=o+Math.imul(H,yt)|0,x=x+Math.imul(H,le)|0;var Mr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,v=Math.imul(ue,je),o=Math.imul(ue,$e),o=o+Math.imul(qe,je)|0,x=Math.imul(qe,$e),v=v+Math.imul(ee,Fe)|0,o=o+Math.imul(ee,Me)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Me)|0,v=v+Math.imul(Z,yt)|0,o=o+Math.imul(Z,le)|0,o=o+Math.imul(L,yt)|0,x=x+Math.imul(L,le)|0,v=v+Math.imul(R,at)|0,o=o+Math.imul(R,Be)|0,o=o+Math.imul(H,at)|0,x=x+Math.imul(H,Be)|0;var Xt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(Ve,je),o=Math.imul(Ve,$e),o=o+Math.imul(et,je)|0,x=Math.imul(et,$e),v=v+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Me)|0,o=o+Math.imul(qe,Fe)|0,x=x+Math.imul(qe,Me)|0,v=v+Math.imul(ee,yt)|0,o=o+Math.imul(ee,le)|0,o=o+Math.imul(oe,yt)|0,x=x+Math.imul(oe,le)|0,v=v+Math.imul(Z,at)|0,o=o+Math.imul(Z,Be)|0,o=o+Math.imul(L,at)|0,x=x+Math.imul(L,Be)|0,v=v+Math.imul(R,tt)|0,o=o+Math.imul(R,kt)|0,o=o+Math.imul(H,tt)|0,x=x+Math.imul(H,kt)|0;var Sr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,v=Math.imul(Ye,je),o=Math.imul(Ye,$e),o=o+Math.imul(We,je)|0,x=Math.imul(We,$e),v=v+Math.imul(Ve,Fe)|0,o=o+Math.imul(Ve,Me)|0,o=o+Math.imul(et,Fe)|0,x=x+Math.imul(et,Me)|0,v=v+Math.imul(ue,yt)|0,o=o+Math.imul(ue,le)|0,o=o+Math.imul(qe,yt)|0,x=x+Math.imul(qe,le)|0,v=v+Math.imul(ee,at)|0,o=o+Math.imul(ee,Be)|0,o=o+Math.imul(oe,at)|0,x=x+Math.imul(oe,Be)|0,v=v+Math.imul(Z,tt)|0,o=o+Math.imul(Z,kt)|0,o=o+Math.imul(L,tt)|0,x=x+Math.imul(L,kt)|0,v=v+Math.imul(R,pt)|0,o=o+Math.imul(R,It)|0,o=o+Math.imul(H,pt)|0,x=x+Math.imul(H,It)|0;var rr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(Ge,je),o=Math.imul(Ge,$e),o=o+Math.imul(nt,je)|0,x=Math.imul(nt,$e),v=v+Math.imul(Ye,Fe)|0,o=o+Math.imul(Ye,Me)|0,o=o+Math.imul(We,Fe)|0,x=x+Math.imul(We,Me)|0,v=v+Math.imul(Ve,yt)|0,o=o+Math.imul(Ve,le)|0,o=o+Math.imul(et,yt)|0,x=x+Math.imul(et,le)|0,v=v+Math.imul(ue,at)|0,o=o+Math.imul(ue,Be)|0,o=o+Math.imul(qe,at)|0,x=x+Math.imul(qe,Be)|0,v=v+Math.imul(ee,tt)|0,o=o+Math.imul(ee,kt)|0,o=o+Math.imul(oe,tt)|0,x=x+Math.imul(oe,kt)|0,v=v+Math.imul(Z,pt)|0,o=o+Math.imul(Z,It)|0,o=o+Math.imul(L,pt)|0,x=x+Math.imul(L,It)|0,v=v+Math.imul(R,Pt)|0,o=o+Math.imul(R,Ot)|0,o=o+Math.imul(H,Pt)|0,x=x+Math.imul(H,Ot)|0;var er=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(Le,je),o=Math.imul(Le,$e),o=o+Math.imul(Oe,je)|0,x=Math.imul(Oe,$e),v=v+Math.imul(Ge,Fe)|0,o=o+Math.imul(Ge,Me)|0,o=o+Math.imul(nt,Fe)|0,x=x+Math.imul(nt,Me)|0,v=v+Math.imul(Ye,yt)|0,o=o+Math.imul(Ye,le)|0,o=o+Math.imul(We,yt)|0,x=x+Math.imul(We,le)|0,v=v+Math.imul(Ve,at)|0,o=o+Math.imul(Ve,Be)|0,o=o+Math.imul(et,at)|0,x=x+Math.imul(et,Be)|0,v=v+Math.imul(ue,tt)|0,o=o+Math.imul(ue,kt)|0,o=o+Math.imul(qe,tt)|0,x=x+Math.imul(qe,kt)|0,v=v+Math.imul(ee,pt)|0,o=o+Math.imul(ee,It)|0,o=o+Math.imul(oe,pt)|0,x=x+Math.imul(oe,It)|0,v=v+Math.imul(Z,Pt)|0,o=o+Math.imul(Z,Ot)|0,o=o+Math.imul(L,Pt)|0,x=x+Math.imul(L,Ot)|0,v=v+Math.imul(R,me)|0,o=o+Math.imul(R,ce)|0,o=o+Math.imul(H,me)|0,x=x+Math.imul(H,ce)|0;var kr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(kr>>>26)|0,kr&=67108863,v=Math.imul(dt,je),o=Math.imul(dt,$e),o=o+Math.imul(gt,je)|0,x=Math.imul(gt,$e),v=v+Math.imul(Le,Fe)|0,o=o+Math.imul(Le,Me)|0,o=o+Math.imul(Oe,Fe)|0,x=x+Math.imul(Oe,Me)|0,v=v+Math.imul(Ge,yt)|0,o=o+Math.imul(Ge,le)|0,o=o+Math.imul(nt,yt)|0,x=x+Math.imul(nt,le)|0,v=v+Math.imul(Ye,at)|0,o=o+Math.imul(Ye,Be)|0,o=o+Math.imul(We,at)|0,x=x+Math.imul(We,Be)|0,v=v+Math.imul(Ve,tt)|0,o=o+Math.imul(Ve,kt)|0,o=o+Math.imul(et,tt)|0,x=x+Math.imul(et,kt)|0,v=v+Math.imul(ue,pt)|0,o=o+Math.imul(ue,It)|0,o=o+Math.imul(qe,pt)|0,x=x+Math.imul(qe,It)|0,v=v+Math.imul(ee,Pt)|0,o=o+Math.imul(ee,Ot)|0,o=o+Math.imul(oe,Pt)|0,x=x+Math.imul(oe,Ot)|0,v=v+Math.imul(Z,me)|0,o=o+Math.imul(Z,ce)|0,o=o+Math.imul(L,me)|0,x=x+Math.imul(L,ce)|0,v=v+Math.imul(R,_e)|0,o=o+Math.imul(R,Re)|0,o=o+Math.imul(H,_e)|0,x=x+Math.imul(H,Re)|0;var vr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,v=Math.imul(xe,je),o=Math.imul(xe,$e),o=o+Math.imul(X,je)|0,x=Math.imul(X,$e),v=v+Math.imul(dt,Fe)|0,o=o+Math.imul(dt,Me)|0,o=o+Math.imul(gt,Fe)|0,x=x+Math.imul(gt,Me)|0,v=v+Math.imul(Le,yt)|0,o=o+Math.imul(Le,le)|0,o=o+Math.imul(Oe,yt)|0,x=x+Math.imul(Oe,le)|0,v=v+Math.imul(Ge,at)|0,o=o+Math.imul(Ge,Be)|0,o=o+Math.imul(nt,at)|0,x=x+Math.imul(nt,Be)|0,v=v+Math.imul(Ye,tt)|0,o=o+Math.imul(Ye,kt)|0,o=o+Math.imul(We,tt)|0,x=x+Math.imul(We,kt)|0,v=v+Math.imul(Ve,pt)|0,o=o+Math.imul(Ve,It)|0,o=o+Math.imul(et,pt)|0,x=x+Math.imul(et,It)|0,v=v+Math.imul(ue,Pt)|0,o=o+Math.imul(ue,Ot)|0,o=o+Math.imul(qe,Pt)|0,x=x+Math.imul(qe,Ot)|0,v=v+Math.imul(ee,me)|0,o=o+Math.imul(ee,ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,ce)|0,v=v+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(L,_e)|0,x=x+Math.imul(L,Re)|0,v=v+Math.imul(R,Ze)|0,o=o+Math.imul(R,ct)|0,o=o+Math.imul(H,Ze)|0,x=x+Math.imul(H,ct)|0;var Pr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,v=Math.imul(xe,Fe),o=Math.imul(xe,Me),o=o+Math.imul(X,Fe)|0,x=Math.imul(X,Me),v=v+Math.imul(dt,yt)|0,o=o+Math.imul(dt,le)|0,o=o+Math.imul(gt,yt)|0,x=x+Math.imul(gt,le)|0,v=v+Math.imul(Le,at)|0,o=o+Math.imul(Le,Be)|0,o=o+Math.imul(Oe,at)|0,x=x+Math.imul(Oe,Be)|0,v=v+Math.imul(Ge,tt)|0,o=o+Math.imul(Ge,kt)|0,o=o+Math.imul(nt,tt)|0,x=x+Math.imul(nt,kt)|0,v=v+Math.imul(Ye,pt)|0,o=o+Math.imul(Ye,It)|0,o=o+Math.imul(We,pt)|0,x=x+Math.imul(We,It)|0,v=v+Math.imul(Ve,Pt)|0,o=o+Math.imul(Ve,Ot)|0,o=o+Math.imul(et,Pt)|0,x=x+Math.imul(et,Ot)|0,v=v+Math.imul(ue,me)|0,o=o+Math.imul(ue,ce)|0,o=o+Math.imul(qe,me)|0,x=x+Math.imul(qe,ce)|0,v=v+Math.imul(ee,_e)|0,o=o+Math.imul(ee,Re)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Re)|0,v=v+Math.imul(Z,Ze)|0,o=o+Math.imul(Z,ct)|0,o=o+Math.imul(L,Ze)|0,x=x+Math.imul(L,ct)|0;var Tr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,v=Math.imul(xe,yt),o=Math.imul(xe,le),o=o+Math.imul(X,yt)|0,x=Math.imul(X,le),v=v+Math.imul(dt,at)|0,o=o+Math.imul(dt,Be)|0,o=o+Math.imul(gt,at)|0,x=x+Math.imul(gt,Be)|0,v=v+Math.imul(Le,tt)|0,o=o+Math.imul(Le,kt)|0,o=o+Math.imul(Oe,tt)|0,x=x+Math.imul(Oe,kt)|0,v=v+Math.imul(Ge,pt)|0,o=o+Math.imul(Ge,It)|0,o=o+Math.imul(nt,pt)|0,x=x+Math.imul(nt,It)|0,v=v+Math.imul(Ye,Pt)|0,o=o+Math.imul(Ye,Ot)|0,o=o+Math.imul(We,Pt)|0,x=x+Math.imul(We,Ot)|0,v=v+Math.imul(Ve,me)|0,o=o+Math.imul(Ve,ce)|0,o=o+Math.imul(et,me)|0,x=x+Math.imul(et,ce)|0,v=v+Math.imul(ue,_e)|0,o=o+Math.imul(ue,Re)|0,o=o+Math.imul(qe,_e)|0,x=x+Math.imul(qe,Re)|0,v=v+Math.imul(ee,Ze)|0,o=o+Math.imul(ee,ct)|0,o=o+Math.imul(oe,Ze)|0,x=x+Math.imul(oe,ct)|0;var br=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(br>>>26)|0,br&=67108863,v=Math.imul(xe,at),o=Math.imul(xe,Be),o=o+Math.imul(X,at)|0,x=Math.imul(X,Be),v=v+Math.imul(dt,tt)|0,o=o+Math.imul(dt,kt)|0,o=o+Math.imul(gt,tt)|0,x=x+Math.imul(gt,kt)|0,v=v+Math.imul(Le,pt)|0,o=o+Math.imul(Le,It)|0,o=o+Math.imul(Oe,pt)|0,x=x+Math.imul(Oe,It)|0,v=v+Math.imul(Ge,Pt)|0,o=o+Math.imul(Ge,Ot)|0,o=o+Math.imul(nt,Pt)|0,x=x+Math.imul(nt,Ot)|0,v=v+Math.imul(Ye,me)|0,o=o+Math.imul(Ye,ce)|0,o=o+Math.imul(We,me)|0,x=x+Math.imul(We,ce)|0,v=v+Math.imul(Ve,_e)|0,o=o+Math.imul(Ve,Re)|0,o=o+Math.imul(et,_e)|0,x=x+Math.imul(et,Re)|0,v=v+Math.imul(ue,Ze)|0,o=o+Math.imul(ue,ct)|0,o=o+Math.imul(qe,Ze)|0,x=x+Math.imul(qe,ct)|0;var Ar=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,v=Math.imul(xe,tt),o=Math.imul(xe,kt),o=o+Math.imul(X,tt)|0,x=Math.imul(X,kt),v=v+Math.imul(dt,pt)|0,o=o+Math.imul(dt,It)|0,o=o+Math.imul(gt,pt)|0,x=x+Math.imul(gt,It)|0,v=v+Math.imul(Le,Pt)|0,o=o+Math.imul(Le,Ot)|0,o=o+Math.imul(Oe,Pt)|0,x=x+Math.imul(Oe,Ot)|0,v=v+Math.imul(Ge,me)|0,o=o+Math.imul(Ge,ce)|0,o=o+Math.imul(nt,me)|0,x=x+Math.imul(nt,ce)|0,v=v+Math.imul(Ye,_e)|0,o=o+Math.imul(Ye,Re)|0,o=o+Math.imul(We,_e)|0,x=x+Math.imul(We,Re)|0,v=v+Math.imul(Ve,Ze)|0,o=o+Math.imul(Ve,ct)|0,o=o+Math.imul(et,Ze)|0,x=x+Math.imul(et,ct)|0;var gr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,v=Math.imul(xe,pt),o=Math.imul(xe,It),o=o+Math.imul(X,pt)|0,x=Math.imul(X,It),v=v+Math.imul(dt,Pt)|0,o=o+Math.imul(dt,Ot)|0,o=o+Math.imul(gt,Pt)|0,x=x+Math.imul(gt,Ot)|0,v=v+Math.imul(Le,me)|0,o=o+Math.imul(Le,ce)|0,o=o+Math.imul(Oe,me)|0,x=x+Math.imul(Oe,ce)|0,v=v+Math.imul(Ge,_e)|0,o=o+Math.imul(Ge,Re)|0,o=o+Math.imul(nt,_e)|0,x=x+Math.imul(nt,Re)|0,v=v+Math.imul(Ye,Ze)|0,o=o+Math.imul(Ye,ct)|0,o=o+Math.imul(We,Ze)|0,x=x+Math.imul(We,ct)|0;var dr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(dr>>>26)|0,dr&=67108863,v=Math.imul(xe,Pt),o=Math.imul(xe,Ot),o=o+Math.imul(X,Pt)|0,x=Math.imul(X,Ot),v=v+Math.imul(dt,me)|0,o=o+Math.imul(dt,ce)|0,o=o+Math.imul(gt,me)|0,x=x+Math.imul(gt,ce)|0,v=v+Math.imul(Le,_e)|0,o=o+Math.imul(Le,Re)|0,o=o+Math.imul(Oe,_e)|0,x=x+Math.imul(Oe,Re)|0,v=v+Math.imul(Ge,Ze)|0,o=o+Math.imul(Ge,ct)|0,o=o+Math.imul(nt,Ze)|0,x=x+Math.imul(nt,ct)|0;var lr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(lr>>>26)|0,lr&=67108863,v=Math.imul(xe,me),o=Math.imul(xe,ce),o=o+Math.imul(X,me)|0,x=Math.imul(X,ce),v=v+Math.imul(dt,_e)|0,o=o+Math.imul(dt,Re)|0,o=o+Math.imul(gt,_e)|0,x=x+Math.imul(gt,Re)|0,v=v+Math.imul(Le,Ze)|0,o=o+Math.imul(Le,ct)|0,o=o+Math.imul(Oe,Ze)|0,x=x+Math.imul(Oe,ct)|0;var Kt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(xe,_e),o=Math.imul(xe,Re),o=o+Math.imul(X,_e)|0,x=Math.imul(X,Re),v=v+Math.imul(dt,Ze)|0,o=o+Math.imul(dt,ct)|0,o=o+Math.imul(gt,Ze)|0,x=x+Math.imul(gt,ct)|0;var Bt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(xe,Ze),o=Math.imul(xe,ct),o=o+Math.imul(X,Ze)|0,x=Math.imul(X,ct);var Ft=(w+v|0)+((o&8191)<<13)|0;return w=(x+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,y[0]=Nt,y[1]=Ut,y[2]=Mr,y[3]=Xt,y[4]=Sr,y[5]=rr,y[6]=er,y[7]=kr,y[8]=vr,y[9]=Pr,y[10]=Tr,y[11]=br,y[12]=Ar,y[13]=gr,y[14]=dr,y[15]=lr,y[16]=Kt,y[17]=Bt,y[18]=Ft,w!==0&&(y[19]=w,b.length++),b};Math.imul||(z=$);function N(T,u,p){p.negative=u.negative^T.negative,p.length=T.length+u.length;for(var b=0,e=0,c=0;c<p.length-1;c++){var y=e;e=0;for(var w=b&67108863,v=Math.min(c,u.length-1),o=Math.max(0,c-T.length+1);o<=v;o++){var x=c-o,E=T.words[x]|0,R=u.words[o]|0,H=E*R,Y=H&67108863;y=y+(H/67108864|0)|0,Y=Y+w|0,w=Y&67108863,y=y+(Y>>>26)|0,e+=y>>>26,y&=67108863}p.words[c]=w,b=y,y=e}return b!==0?p.words[c]=b:p.length--,p.strip()}function F(T,u,p){var b=new U;return b.mulp(T,u,p)}h.prototype.mulTo=function(u,p){var b,e=this.length+u.length;return this.length===10&&u.length===10?b=z(this,u,p):e<63?b=$(this,u,p):e<1024?b=N(this,u,p):b=F(this,u,p),b};function U(T,u){this.x=T,this.y=u}U.prototype.makeRBT=function(u){for(var p=new Array(u),b=h.prototype._countBits(u)-1,e=0;e<u;e++)p[e]=this.revBin(e,b,u);return p},U.prototype.revBin=function(u,p,b){if(u===0||u===b-1)return u;for(var e=0,c=0;c<p;c++)e|=(u&1)<<p-c-1,u>>=1;return e},U.prototype.permute=function(u,p,b,e,c,y){for(var w=0;w<y;w++)e[w]=p[u[w]],c[w]=b[u[w]]},U.prototype.transform=function(u,p,b,e,c,y){this.permute(y,u,p,b,e,c);for(var w=1;w<c;w<<=1)for(var v=w<<1,o=Math.cos(2*Math.PI/v),x=Math.sin(2*Math.PI/v),E=0;E<c;E+=v)for(var R=o,H=x,Y=0;Y<w;Y++){var Z=b[E+Y],L=e[E+Y],D=b[E+Y+w],ee=e[E+Y+w],oe=R*D-H*ee;ee=R*ee+H*D,D=oe,b[E+Y]=Z+D,e[E+Y]=L+ee,b[E+Y+w]=Z-D,e[E+Y+w]=L-ee,Y!==v&&(oe=o*R-x*H,H=o*H+x*R,R=oe)}},U.prototype.guessLen13b=function(u,p){var b=Math.max(p,u)|1,e=b&1,c=0;for(b=b/2|0;b;b=b>>>1)c++;return 1<<c+1+e},U.prototype.conjugate=function(u,p,b){if(!(b<=1))for(var e=0;e<b/2;e++){var c=u[e];u[e]=u[b-e-1],u[b-e-1]=c,c=p[e],p[e]=-p[b-e-1],p[b-e-1]=-c}},U.prototype.normalize13b=function(u,p){for(var b=0,e=0;e<p/2;e++){var c=Math.round(u[2*e+1]/p)*8192+Math.round(u[2*e]/p)+b;u[e]=c&67108863,c<67108864?b=0:b=c/67108864|0}return u},U.prototype.convert13b=function(u,p,b,e){for(var c=0,y=0;y<p;y++)c=c+(u[y]|0),b[2*y]=c&8191,c=c>>>13,b[2*y+1]=c&8191,c=c>>>13;for(y=2*p;y<e;++y)b[y]=0;d(c===0),d((c&-8192)===0)},U.prototype.stub=function(u){for(var p=new Array(u),b=0;b<u;b++)p[b]=0;return p},U.prototype.mulp=function(u,p,b){var e=2*this.guessLen13b(u.length,p.length),c=this.makeRBT(e),y=this.stub(e),w=new Array(e),v=new Array(e),o=new Array(e),x=new Array(e),E=new Array(e),R=new Array(e),H=b.words;H.length=e,this.convert13b(u.words,u.length,w,e),this.convert13b(p.words,p.length,x,e),this.transform(w,y,v,o,e,c),this.transform(x,y,E,R,e,c);for(var Y=0;Y<e;Y++){var Z=v[Y]*E[Y]-o[Y]*R[Y];o[Y]=v[Y]*R[Y]+o[Y]*E[Y],v[Y]=Z}return this.conjugate(v,o,e),this.transform(v,o,H,y,e,c),this.conjugate(H,y,e),this.normalize13b(H,e),b.negative=u.negative^p.negative,b.length=u.length+p.length,b.strip()},h.prototype.mul=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),this.mulTo(u,p)},h.prototype.mulf=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),F(this,u,p)},h.prototype.imul=function(u){return this.clone().mulTo(u,this)},h.prototype.imuln=function(u){d(typeof u=="number"),d(u<67108864);for(var p=0,b=0;b<this.length;b++){var e=(this.words[b]|0)*u,c=(e&67108863)+(p&67108863);p>>=26,p+=e/67108864|0,p+=c>>>26,this.words[b]=c&67108863}return p!==0&&(this.words[b]=p,this.length++),this},h.prototype.muln=function(u){return this.clone().imuln(u)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(u){var p=P(u);if(p.length===0)return new h(1);for(var b=this,e=0;e<p.length&&p[e]===0;e++,b=b.sqr());if(++e<p.length)for(var c=b.sqr();e<p.length;e++,c=c.sqr())p[e]!==0&&(b=b.mul(c));return b},h.prototype.iushln=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=67108863>>>26-p<<26-p,c;if(p!==0){var y=0;for(c=0;c<this.length;c++){var w=this.words[c]&e,v=(this.words[c]|0)-w<<p;this.words[c]=v|y,y=w>>>26-p}y&&(this.words[c]=y,this.length++)}if(b!==0){for(c=this.length-1;c>=0;c--)this.words[c+b]=this.words[c];for(c=0;c<b;c++)this.words[c]=0;this.length+=b}return this.strip()},h.prototype.ishln=function(u){return d(this.negative===0),this.iushln(u)},h.prototype.iushrn=function(u,p,b){d(typeof u=="number"&&u>=0);var e;p?e=(p-p%26)/26:e=0;var c=u%26,y=Math.min((u-c)/26,this.length),w=67108863^67108863>>>c<<c,v=b;if(e-=y,e=Math.max(0,e),v){for(var o=0;o<y;o++)v.words[o]=this.words[o];v.length=y}if(y!==0)if(this.length>y)for(this.length-=y,o=0;o<this.length;o++)this.words[o]=this.words[o+y];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=e);o--){var E=this.words[o]|0;this.words[o]=x<<26-c|E>>>c,x=E&w}return v&&x!==0&&(v.words[v.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(u,p,b){return d(this.negative===0),this.iushrn(u,p,b)},h.prototype.shln=function(u){return this.clone().ishln(u)},h.prototype.ushln=function(u){return this.clone().iushln(u)},h.prototype.shrn=function(u){return this.clone().ishrn(u)},h.prototype.ushrn=function(u){return this.clone().iushrn(u)},h.prototype.testn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return!1;var c=this.words[b];return!!(c&e)},h.prototype.imaskn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26;if(d(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(p!==0&&b++,this.length=Math.min(b,this.length),p!==0){var e=67108863^67108863>>>p<<p;this.words[this.length-1]&=e}return this.strip()},h.prototype.maskn=function(u){return this.clone().imaskn(u)},h.prototype.iaddn=function(u){return d(typeof u=="number"),d(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},h.prototype._iaddn=function(u){this.words[0]+=u;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},h.prototype.isubn=function(u){if(d(typeof u=="number"),d(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},h.prototype.addn=function(u){return this.clone().iaddn(u)},h.prototype.subn=function(u){return this.clone().isubn(u)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(u,p,b){var e=u.length+b,c;this._expand(e);var y,w=0;for(c=0;c<u.length;c++){y=(this.words[c+b]|0)+w;var v=(u.words[c]|0)*p;y-=v&67108863,w=(y>>26)-(v/67108864|0),this.words[c+b]=y&67108863}for(;c<this.length-b;c++)y=(this.words[c+b]|0)+w,w=y>>26,this.words[c+b]=y&67108863;if(w===0)return this.strip();for(d(w===-1),w=0,c=0;c<this.length;c++)y=-(this.words[c]|0)+w,w=y>>26,this.words[c]=y&67108863;return this.negative=1,this.strip()},h.prototype._wordDiv=function(u,p){var b=this.length-u.length,e=this.clone(),c=u,y=c.words[c.length-1]|0,w=this._countBits(y);b=26-w,b!==0&&(c=c.ushln(b),e.iushln(b),y=c.words[c.length-1]|0);var v=e.length-c.length,o;if(p!=="mod"){o=new h(null),o.length=v+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var E=e.clone()._ishlnsubmul(c,1,v);E.negative===0&&(e=E,o&&(o.words[v]=1));for(var R=v-1;R>=0;R--){var H=(e.words[c.length+R]|0)*67108864+(e.words[c.length+R-1]|0);for(H=Math.min(H/y|0,67108863),e._ishlnsubmul(c,H,R);e.negative!==0;)H--,e.negative=0,e._ishlnsubmul(c,1,R),e.isZero()||(e.negative^=1);o&&(o.words[R]=H)}return o&&o.strip(),e.strip(),p!=="div"&&b!==0&&e.iushrn(b),{div:o||null,mod:e}},h.prototype.divmod=function(u,p,b){if(d(!u.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var e,c,y;return this.negative!==0&&u.negative===0?(y=this.neg().divmod(u,p),p!=="mod"&&(e=y.div.neg()),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.iadd(u)),{div:e,mod:c}):this.negative===0&&u.negative!==0?(y=this.divmod(u.neg(),p),p!=="mod"&&(e=y.div.neg()),{div:e,mod:y.mod}):this.negative&u.negative?(y=this.neg().divmod(u.neg(),p),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.isub(u)),{div:y.div,mod:c}):u.length>this.length||this.cmp(u)<0?{div:new h(0),mod:this}:u.length===1?p==="div"?{div:this.divn(u.words[0]),mod:null}:p==="mod"?{div:null,mod:new h(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new h(this.modn(u.words[0]))}:this._wordDiv(u,p)},h.prototype.div=function(u){return this.divmod(u,"div",!1).div},h.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},h.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},h.prototype.divRound=function(u){var p=this.divmod(u);if(p.mod.isZero())return p.div;var b=p.div.negative!==0?p.mod.isub(u):p.mod,e=u.ushrn(1),c=u.andln(1),y=b.cmp(e);return y<0||c===1&&y===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},h.prototype.modn=function(u){d(u<=67108863);for(var p=(1<<26)%u,b=0,e=this.length-1;e>=0;e--)b=(p*b+(this.words[e]|0))%u;return b},h.prototype.idivn=function(u){d(u<=67108863);for(var p=0,b=this.length-1;b>=0;b--){var e=(this.words[b]|0)+p*67108864;this.words[b]=e/u|0,p=e%u}return this.strip()},h.prototype.divn=function(u){return this.clone().idivn(u)},h.prototype.egcd=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=new h(0),w=new h(1),v=0;p.isEven()&&b.isEven();)p.iushrn(1),b.iushrn(1),++v;for(var o=b.clone(),x=p.clone();!p.isZero();){for(var E=0,R=1;!(p.words[0]&R)&&E<26;++E,R<<=1);if(E>0)for(p.iushrn(E);E-- >0;)(e.isOdd()||c.isOdd())&&(e.iadd(o),c.isub(x)),e.iushrn(1),c.iushrn(1);for(var H=0,Y=1;!(b.words[0]&Y)&&H<26;++H,Y<<=1);if(H>0)for(b.iushrn(H);H-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(o),w.isub(x)),y.iushrn(1),w.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(y),c.isub(w)):(b.isub(p),y.isub(e),w.isub(c))}return{a:y,b:w,gcd:b.iushln(v)}},h.prototype._invmp=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=b.clone();p.cmpn(1)>0&&b.cmpn(1)>0;){for(var w=0,v=1;!(p.words[0]&v)&&w<26;++w,v<<=1);if(w>0)for(p.iushrn(w);w-- >0;)e.isOdd()&&e.iadd(y),e.iushrn(1);for(var o=0,x=1;!(b.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(b.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(y),c.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(c)):(b.isub(p),c.isub(e))}var E;return p.cmpn(1)===0?E=e:E=c,E.cmpn(0)<0&&E.iadd(u),E},h.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var p=this.clone(),b=u.clone();p.negative=0,b.negative=0;for(var e=0;p.isEven()&&b.isEven();e++)p.iushrn(1),b.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;b.isEven();)b.iushrn(1);var c=p.cmp(b);if(c<0){var y=p;p=b,b=y}else if(c===0||b.cmpn(1)===0)break;p.isub(b)}while(!0);return b.iushln(e)},h.prototype.invm=function(u){return this.egcd(u).a.umod(u)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(u){return this.words[0]&u},h.prototype.bincn=function(u){d(typeof u=="number");var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return this._expand(b+1),this.words[b]|=e,this;for(var c=e,y=b;c!==0&&y<this.length;y++){var w=this.words[y]|0;w+=c,c=w>>>26,w&=67108863,this.words[y]=w}return c!==0&&(this.words[y]=c,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(u){var p=u<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var b;if(this.length>1)b=1;else{p&&(u=-u),d(u<=67108863,"Number is too big");var e=this.words[0]|0;b=e===u?0:e<u?-1:1}return this.negative!==0?-b|0:b},h.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var p=this.ucmp(u);return this.negative!==0?-p|0:p},h.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var p=0,b=this.length-1;b>=0;b--){var e=this.words[b]|0,c=u.words[b]|0;if(e!==c){e<c?p=-1:e>c&&(p=1);break}}return p},h.prototype.gtn=function(u){return this.cmpn(u)===1},h.prototype.gt=function(u){return this.cmp(u)===1},h.prototype.gten=function(u){return this.cmpn(u)>=0},h.prototype.gte=function(u){return this.cmp(u)>=0},h.prototype.ltn=function(u){return this.cmpn(u)===-1},h.prototype.lt=function(u){return this.cmp(u)===-1},h.prototype.lten=function(u){return this.cmpn(u)<=0},h.prototype.lte=function(u){return this.cmp(u)<=0},h.prototype.eqn=function(u){return this.cmpn(u)===0},h.prototype.eq=function(u){return this.cmp(u)===0},h.red=function(u){return new he(u)},h.prototype.toRed=function(u){return d(!this.red,"Already a number in reduction context"),d(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},h.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(u){return this.red=u,this},h.prototype.forceRed=function(u){return d(!this.red,"Already a number in reduction context"),this._forceRed(u)},h.prototype.redAdd=function(u){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},h.prototype.redIAdd=function(u){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},h.prototype.redSub=function(u){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},h.prototype.redISub=function(u){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},h.prototype.redShl=function(u){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},h.prototype.redMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},h.prototype.redIMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},h.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(u){return d(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var J={k256:null,p224:null,p192:null,p25519:null};function te(T,u){this.name=T,this.p=new h(u,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}te.prototype._tmp=function(){var u=new h(null);return u.words=new Array(Math.ceil(this.n/13)),u},te.prototype.ireduce=function(u){var p=u,b;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),b=p.bitLength();while(b>this.n);var e=b<this.n?-1:p.ucmp(this.p);return e===0?(p.words[0]=0,p.length=1):e>0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},te.prototype.split=function(u,p){u.iushrn(this.n,0,p)},te.prototype.imulK=function(u){return u.imul(this.k)};function se(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(se,te),se.prototype.split=function(u,p){for(var b=4194303,e=Math.min(u.length,9),c=0;c<e;c++)p.words[c]=u.words[c];if(p.length=e,u.length<=9){u.words[0]=0,u.length=1;return}var y=u.words[9];for(p.words[p.length++]=y&b,c=10;c<u.length;c++){var w=u.words[c]|0;u.words[c-10]=(w&b)<<4|y>>>22,y=w}y>>>=22,u.words[c-10]=y,y===0&&u.length>10?u.length-=10:u.length-=9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var p=0,b=0;b<u.length;b++){var e=u.words[b]|0;p+=e*977,u.words[b]=p&67108863,p=e*64+(p/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function de(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(de,te);function Q(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(Q,te);function ve(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ve,te),ve.prototype.imulK=function(u){for(var p=0,b=0;b<u.length;b++){var e=(u.words[b]|0)*19+p,c=e&67108863;e>>>=26,u.words[b]=c,p=e}return p!==0&&(u.words[u.length++]=p),u},h._prime=function(u){if(J[u])return J[u];var p;if(u==="k256")p=new se;else if(u==="p224")p=new de;else if(u==="p192")p=new Q;else if(u==="p25519")p=new ve;else throw new Error("Unknown prime "+u);return J[u]=p,p};function he(T){if(typeof T=="string"){var u=h._prime(T);this.m=u.p,this.prime=u}else d(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}he.prototype._verify1=function(u){d(u.negative===0,"red works only with positives"),d(u.red,"red works only with red numbers")},he.prototype._verify2=function(u,p){d((u.negative|p.negative)===0,"red works only with positives"),d(u.red&&u.red===p.red,"red works only with red numbers")},he.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},he.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},he.prototype.add=function(u,p){this._verify2(u,p);var b=u.add(p);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},he.prototype.iadd=function(u,p){this._verify2(u,p);var b=u.iadd(p);return b.cmp(this.m)>=0&&b.isub(this.m),b},he.prototype.sub=function(u,p){this._verify2(u,p);var b=u.sub(p);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},he.prototype.isub=function(u,p){this._verify2(u,p);var b=u.isub(p);return b.cmpn(0)<0&&b.iadd(this.m),b},he.prototype.shl=function(u,p){return this._verify1(u),this.imod(u.ushln(p))},he.prototype.imul=function(u,p){return this._verify2(u,p),this.imod(u.imul(p))},he.prototype.mul=function(u,p){return this._verify2(u,p),this.imod(u.mul(p))},he.prototype.isqr=function(u){return this.imul(u,u.clone())},he.prototype.sqr=function(u){return this.mul(u,u)},he.prototype.sqrt=function(u){if(u.isZero())return u.clone();var p=this.m.andln(3);if(d(p%2===1),p===3){var b=this.m.add(new h(1)).iushrn(2);return this.pow(u,b)}for(var e=this.m.subn(1),c=0;!e.isZero()&&e.andln(1)===0;)c++,e.iushrn(1);d(!e.isZero());var y=new h(1).toRed(this),w=y.redNeg(),v=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new h(2*o*o).toRed(this);this.pow(o,v).cmp(w)!==0;)o.redIAdd(w);for(var x=this.pow(o,e),E=this.pow(u,e.addn(1).iushrn(1)),R=this.pow(u,e),H=c;R.cmp(y)!==0;){for(var Y=R,Z=0;Y.cmp(y)!==0;Z++)Y=Y.redSqr();d(Z<H);var L=this.pow(x,new h(1).iushln(H-Z-1));E=E.redMul(L),x=L.redSqr(),R=R.redMul(x),H=Z}return E},he.prototype.invm=function(u){var p=u._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},he.prototype.pow=function(u,p){if(p.isZero())return new h(1).toRed(this);if(p.cmpn(1)===0)return u.clone();var b=4,e=new Array(1<<b);e[0]=new h(1).toRed(this),e[1]=u;for(var c=2;c<e.length;c++)e[c]=this.mul(e[c-1],u);var y=e[0],w=0,v=0,o=p.bitLength()%26;for(o===0&&(o=26),c=p.length-1;c>=0;c--){for(var x=p.words[c],E=o-1;E>=0;E--){var R=x>>E&1;if(y!==e[0]&&(y=this.sqr(y)),R===0&&w===0){v=0;continue}w<<=1,w|=R,v++,!(v!==b&&(c!==0||E!==0))&&(y=this.mul(y,e[w]),v=0,w=0)}o=26}return y},he.prototype.convertTo=function(u){var p=u.umod(this.m);return p===u?p.clone():p},he.prototype.convertFrom=function(u){var p=u.clone();return p.red=null,p},h.mont=function(u){return new ke(u)};function ke(T){he.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(ke,he),ke.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},ke.prototype.convertFrom=function(u){var p=this.imod(u.mul(this.rinv));return p.red=null,p},ke.prototype.imul=function(u,p){if(u.isZero()||p.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.mul=function(u,p){if(u.isZero()||p.isZero())return new h(0)._forceRed(this);var b=u.mul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.invm=function(u){var p=this.imod(u._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,commonjsGlobal)}(bn$1);var bnExports$1=bn$1.exports,browser$4,hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$4;hasRequiredBrowser$2=1;var t=requireElliptic(),n=bnExports$1;browser$4=function(S){return new d(S)};var l={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};l.p224=l.secp224r1,l.p256=l.secp256r1=l.prime256v1,l.p192=l.secp192r1=l.prime192v1,l.p384=l.secp384r1,l.p521=l.secp521r1;function d(h){this.curveType=l[h],this.curveType||(this.curveType={name:h}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}d.prototype.generateKeys=function(h,S){return this.keys=this.curve.genKeyPair(),this.getPublicKey(h,S)},d.prototype.computeSecret=function(h,S,k){S=S||"utf8",Buffer$C.isBuffer(h)||(h=new Buffer$C(h,S));var A=this.curve.keyFromPublic(h).getPublic(),B=A.mul(this.keys.getPrivate()).getX();return m(B,k,this.curveType.byteLength)},d.prototype.getPublicKey=function(h,S){var k=this.keys.getPublic(S==="compressed",!0);return S==="hybrid"&&(k[k.length-1]%2?k[0]=7:k[0]=6),m(k,h)},d.prototype.getPrivateKey=function(h){return m(this.keys.getPrivate(),h)},d.prototype.setPublicKey=function(h,S){return S=S||"utf8",Buffer$C.isBuffer(h)||(h=new Buffer$C(h,S)),this.keys._importPublic(h),this},d.prototype.setPrivateKey=function(h,S){S=S||"utf8",Buffer$C.isBuffer(h)||(h=new Buffer$C(h,S));var k=new n(h);return k=k.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(k),this};function m(h,S,k){Array.isArray(h)||(h=h.toArray());var A=new Buffer$C(h);if(k&&A.length<k){var B=new Buffer$C(k-A.length);B.fill(0),A=Buffer$C.concat([B,A])}return S?A.toString(S):A}return browser$4}var browser$3={},createHash$2=browser$b,Buffer$5=safeBufferExports$1.Buffer,mgf$2=function(t,n){for(var l=Buffer$5.alloc(0),d=0,m;l.length<n;)m=i2ops(d++),l=Buffer$5.concat([l,createHash$2("sha1").update(t).update(m).digest()]);return l.slice(0,n)};function i2ops(t){var n=Buffer$5.allocUnsafe(4);return n.writeUInt32BE(t,0),n}var xor$2=function t(n,l){for(var d=n.length,m=-1;++m<d;)n[m]^=l[m];return n},bn={exports:{}};bn.exports,function(t){(function(n,l){function d(T,u){if(!T)throw new Error(u||"Assertion failed")}function m(T,u){T.super_=u;var p=function(){};p.prototype=u.prototype,T.prototype=new p,T.prototype.constructor=T}function h(T,u,p){if(h.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((u==="le"||u==="be")&&(p=u,u=10),this._init(T||0,u||10,p||"be"))}typeof n=="object"?n.exports=h:l.BN=h,h.BN=h,h.wordSize=26;var S;try{typeof window<"u"&&typeof window.Buffer<"u"?S=window.Buffer:S=require$$0$3.Buffer}catch{}h.isBN=function(u){return u instanceof h?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===h.wordSize&&Array.isArray(u.words)},h.max=function(u,p){return u.cmp(p)>0?u:p},h.min=function(u,p){return u.cmp(p)<0?u:p},h.prototype._init=function(u,p,b){if(typeof u=="number")return this._initNumber(u,p,b);if(typeof u=="object")return this._initArray(u,p,b);p==="hex"&&(p=16),d(p===(p|0)&&p>=2&&p<=36),u=u.toString().replace(/\s+/g,"");var e=0;u[0]==="-"&&(e++,this.negative=1),e<u.length&&(p===16?this._parseHex(u,e,b):(this._parseBase(u,p,e),b==="le"&&this._initArray(this.toArray(),p,b)))},h.prototype._initNumber=function(u,p,b){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(d(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),p,b)},h.prototype._initArray=function(u,p,b){if(d(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c,y,w=0;if(b==="be")for(e=u.length-1,c=0;e>=0;e-=3)y=u[e]|u[e-1]<<8|u[e-2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);else if(b==="le")for(e=0,c=0;e<u.length;e+=3)y=u[e]|u[e+1]<<8|u[e+2]<<16,this.words[c]|=y<<w&67108863,this.words[c+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,c++);return this.strip()};function k(T,u){var p=T.charCodeAt(u);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function A(T,u,p){var b=k(T,p);return p-1>=u&&(b|=k(T,p-1)<<4),b}h.prototype._parseHex=function(u,p,b){this.length=Math.ceil((u.length-p)/6),this.words=new Array(this.length);for(var e=0;e<this.length;e++)this.words[e]=0;var c=0,y=0,w;if(b==="be")for(e=u.length-1;e>=p;e-=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8;else{var v=u.length-p;for(e=v%2===0?p+1:p;e<u.length;e+=2)w=A(u,p,e)<<c,this.words[y]|=w&67108863,c>=18?(c-=18,y+=1,this.words[y]|=w>>>26):c+=8}this.strip()};function B(T,u,p,b){for(var e=0,c=Math.min(T.length,p),y=u;y<c;y++){var w=T.charCodeAt(y)-48;e*=b,w>=49?e+=w-49+10:w>=17?e+=w-17+10:e+=w}return e}h.prototype._parseBase=function(u,p,b){this.words=[0],this.length=1;for(var e=0,c=1;c<=67108863;c*=p)e++;e--,c=c/p|0;for(var y=u.length-b,w=y%e,v=Math.min(y,y-w)+b,o=0,x=b;x<v;x+=e)o=B(u,x,x+e,p),this.imuln(c),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o);if(w!==0){var E=1;for(o=B(u,x,u.length,p),x=0;x<w;x++)E*=p;this.imuln(E),this.words[0]+o<67108864?this.words[0]+=o:this._iaddn(o)}this.strip()},h.prototype.copy=function(u){u.words=new Array(this.length);for(var p=0;p<this.length;p++)u.words[p]=this.words[p];u.length=this.length,u.negative=this.negative,u.red=this.red},h.prototype.clone=function(){var u=new h(null);return this.copy(u),u},h.prototype._expand=function(u){for(;this.length<u;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},h.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],j=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],I=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(u,p){u=u||10,p=p|0||1;var b;if(u===16||u==="hex"){b="";for(var e=0,c=0,y=0;y<this.length;y++){var w=this.words[y],v=((w<<e|c)&16777215).toString(16);c=w>>>24-e&16777215,c!==0||y!==this.length-1?b=M[6-v.length]+v+b:b=v+b,e+=2,e>=26&&(e-=26,y--)}for(c!==0&&(b=c.toString(16)+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(u===(u|0)&&u>=2&&u<=36){var o=j[u],x=I[u];b="";var E=this.clone();for(E.negative=0;!E.isZero();){var R=E.modn(x).toString(u);E=E.idivn(x),E.isZero()?b=R+b:b=M[o-R.length]+R+b}for(this.isZero()&&(b="0"+b);b.length%p!==0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}d(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&d(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(u,p){return d(typeof S<"u"),this.toArrayLike(S,u,p)},h.prototype.toArray=function(u,p){return this.toArrayLike(Array,u,p)},h.prototype.toArrayLike=function(u,p,b){var e=this.byteLength(),c=b||Math.max(1,e);d(e<=c,"byte array longer than desired length"),d(c>0,"Requested array length <= 0"),this.strip();var y=p==="le",w=new u(c),v,o,x=this.clone();if(y){for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[o]=v;for(;o<c;o++)w[o]=0}else{for(o=0;o<c-e;o++)w[o]=0;for(o=0;!x.isZero();o++)v=x.andln(255),x.iushrn(8),w[c-o-1]=v}return w},Math.clz32?h.prototype._countBits=function(u){return 32-Math.clz32(u)}:h.prototype._countBits=function(u){var p=u,b=0;return p>=4096&&(b+=13,p>>>=13),p>=64&&(b+=7,p>>>=7),p>=8&&(b+=4,p>>>=4),p>=2&&(b+=2,p>>>=2),b+p},h.prototype._zeroBits=function(u){if(u===0)return 26;var p=u,b=0;return p&8191||(b+=13,p>>>=13),p&127||(b+=7,p>>>=7),p&15||(b+=4,p>>>=4),p&3||(b+=2,p>>>=2),p&1||b++,b},h.prototype.bitLength=function(){var u=this.words[this.length-1],p=this._countBits(u);return(this.length-1)*26+p};function P(T){for(var u=new Array(T.bitLength()),p=0;p<u.length;p++){var b=p/26|0,e=p%26;u[p]=(T.words[b]&1<<e)>>>e}return u}h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,p=0;p<this.length;p++){var b=this._zeroBits(this.words[p]);if(u+=b,b!==26)break}return u},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(u){return this.negative!==0?this.abs().inotn(u).iaddn(1):this.clone()},h.prototype.fromTwos=function(u){return this.testn(u-1)?this.notn(u).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return this.negative!==0},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(u){for(;this.length<u.length;)this.words[this.length++]=0;for(var p=0;p<u.length;p++)this.words[p]=this.words[p]|u.words[p];return this.strip()},h.prototype.ior=function(u){return d((this.negative|u.negative)===0),this.iuor(u)},h.prototype.or=function(u){return this.length>u.length?this.clone().ior(u):u.clone().ior(this)},h.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},h.prototype.iuand=function(u){var p;this.length>u.length?p=u:p=this;for(var b=0;b<p.length;b++)this.words[b]=this.words[b]&u.words[b];return this.length=p.length,this.strip()},h.prototype.iand=function(u){return d((this.negative|u.negative)===0),this.iuand(u)},h.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},h.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},h.prototype.iuxor=function(u){var p,b;this.length>u.length?(p=this,b=u):(p=u,b=this);for(var e=0;e<b.length;e++)this.words[e]=p.words[e]^b.words[e];if(this!==p)for(;e<p.length;e++)this.words[e]=p.words[e];return this.length=p.length,this.strip()},h.prototype.ixor=function(u){return d((this.negative|u.negative)===0),this.iuxor(u)},h.prototype.xor=function(u){return this.length>u.length?this.clone().ixor(u):u.clone().ixor(this)},h.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},h.prototype.inotn=function(u){d(typeof u=="number"&&u>=0);var p=Math.ceil(u/26)|0,b=u%26;this._expand(p),b>0&&p--;for(var e=0;e<p;e++)this.words[e]=~this.words[e]&67108863;return b>0&&(this.words[e]=~this.words[e]&67108863>>26-b),this.strip()},h.prototype.notn=function(u){return this.clone().inotn(u)},h.prototype.setn=function(u,p){d(typeof u=="number"&&u>=0);var b=u/26|0,e=u%26;return this._expand(b+1),p?this.words[b]=this.words[b]|1<<e:this.words[b]=this.words[b]&~(1<<e),this.strip()},h.prototype.iadd=function(u){var p;if(this.negative!==0&&u.negative===0)return this.negative=0,p=this.isub(u),this.negative^=1,this._normSign();if(this.negative===0&&u.negative!==0)return u.negative=0,p=this.isub(u),u.negative=1,p._normSign();var b,e;this.length>u.length?(b=this,e=u):(b=u,e=this);for(var c=0,y=0;y<e.length;y++)p=(b.words[y]|0)+(e.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;for(;c!==0&&y<b.length;y++)p=(b.words[y]|0)+c,this.words[y]=p&67108863,c=p>>>26;if(this.length=b.length,c!==0)this.words[this.length]=c,this.length++;else if(b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this},h.prototype.add=function(u){var p;return u.negative!==0&&this.negative===0?(u.negative=0,p=this.sub(u),u.negative^=1,p):u.negative===0&&this.negative!==0?(this.negative=0,p=u.sub(this),this.negative=1,p):this.length>u.length?this.clone().iadd(u):u.clone().iadd(this)},h.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var p=this.iadd(u);return u.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var b=this.cmp(u);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;var e,c;b>0?(e=this,c=u):(e=u,c=this);for(var y=0,w=0;w<c.length;w++)p=(e.words[w]|0)-(c.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;for(;y!==0&&w<e.length;w++)p=(e.words[w]|0)+y,y=p>>26,this.words[w]=p&67108863;if(y===0&&w<e.length&&e!==this)for(;w<e.length;w++)this.words[w]=e.words[w];return this.length=Math.max(this.length,w),e!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(u){return this.clone().isub(u)};function $(T,u,p){p.negative=u.negative^T.negative;var b=T.length+u.length|0;p.length=b,b=b-1|0;var e=T.words[0]|0,c=u.words[0]|0,y=e*c,w=y&67108863,v=y/67108864|0;p.words[0]=w;for(var o=1;o<b;o++){for(var x=v>>>26,E=v&67108863,R=Math.min(o,u.length-1),H=Math.max(0,o-T.length+1);H<=R;H++){var Y=o-H|0;e=T.words[Y]|0,c=u.words[H]|0,y=e*c+E,x+=y/67108864|0,E=y&67108863}p.words[o]=E|0,v=x|0}return v!==0?p.words[o]=v|0:p.length--,p.strip()}var z=function(u,p,b){var e=u.words,c=p.words,y=b.words,w=0,v,o,x,E=e[0]|0,R=E&8191,H=E>>>13,Y=e[1]|0,Z=Y&8191,L=Y>>>13,D=e[2]|0,ee=D&8191,oe=D>>>13,fe=e[3]|0,ue=fe&8191,qe=fe>>>13,rt=e[4]|0,Ve=rt&8191,et=rt>>>13,mt=e[5]|0,Ye=mt&8191,We=mt>>>13,Xe=e[6]|0,Ge=Xe&8191,nt=Xe>>>13,Et=e[7]|0,Le=Et&8191,Oe=Et>>>13,$t=e[8]|0,dt=$t&8191,gt=$t>>>13,Lt=e[9]|0,xe=Lt&8191,X=Lt>>>13,pe=c[0]|0,je=pe&8191,$e=pe>>>13,He=c[1]|0,Fe=He&8191,Me=He>>>13,Rt=c[2]|0,yt=Rt&8191,le=Rt>>>13,wt=c[3]|0,at=wt&8191,Be=wt>>>13,ot=c[4]|0,tt=ot&8191,kt=ot>>>13,Yt=c[5]|0,pt=Yt&8191,It=Yt>>>13,Fr=c[6]|0,Pt=Fr&8191,Ot=Fr>>>13,Te=c[7]|0,me=Te&8191,ce=Te>>>13,ne=c[8]|0,_e=ne&8191,Re=ne>>>13,lt=c[9]|0,Ze=lt&8191,ct=lt>>>13;b.negative=u.negative^p.negative,b.length=19,v=Math.imul(R,je),o=Math.imul(R,$e),o=o+Math.imul(H,je)|0,x=Math.imul(H,$e);var Nt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,v=Math.imul(Z,je),o=Math.imul(Z,$e),o=o+Math.imul(L,je)|0,x=Math.imul(L,$e),v=v+Math.imul(R,Fe)|0,o=o+Math.imul(R,Me)|0,o=o+Math.imul(H,Fe)|0,x=x+Math.imul(H,Me)|0;var Ut=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,v=Math.imul(ee,je),o=Math.imul(ee,$e),o=o+Math.imul(oe,je)|0,x=Math.imul(oe,$e),v=v+Math.imul(Z,Fe)|0,o=o+Math.imul(Z,Me)|0,o=o+Math.imul(L,Fe)|0,x=x+Math.imul(L,Me)|0,v=v+Math.imul(R,yt)|0,o=o+Math.imul(R,le)|0,o=o+Math.imul(H,yt)|0,x=x+Math.imul(H,le)|0;var Mr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,v=Math.imul(ue,je),o=Math.imul(ue,$e),o=o+Math.imul(qe,je)|0,x=Math.imul(qe,$e),v=v+Math.imul(ee,Fe)|0,o=o+Math.imul(ee,Me)|0,o=o+Math.imul(oe,Fe)|0,x=x+Math.imul(oe,Me)|0,v=v+Math.imul(Z,yt)|0,o=o+Math.imul(Z,le)|0,o=o+Math.imul(L,yt)|0,x=x+Math.imul(L,le)|0,v=v+Math.imul(R,at)|0,o=o+Math.imul(R,Be)|0,o=o+Math.imul(H,at)|0,x=x+Math.imul(H,Be)|0;var Xt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,v=Math.imul(Ve,je),o=Math.imul(Ve,$e),o=o+Math.imul(et,je)|0,x=Math.imul(et,$e),v=v+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Me)|0,o=o+Math.imul(qe,Fe)|0,x=x+Math.imul(qe,Me)|0,v=v+Math.imul(ee,yt)|0,o=o+Math.imul(ee,le)|0,o=o+Math.imul(oe,yt)|0,x=x+Math.imul(oe,le)|0,v=v+Math.imul(Z,at)|0,o=o+Math.imul(Z,Be)|0,o=o+Math.imul(L,at)|0,x=x+Math.imul(L,Be)|0,v=v+Math.imul(R,tt)|0,o=o+Math.imul(R,kt)|0,o=o+Math.imul(H,tt)|0,x=x+Math.imul(H,kt)|0;var Sr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,v=Math.imul(Ye,je),o=Math.imul(Ye,$e),o=o+Math.imul(We,je)|0,x=Math.imul(We,$e),v=v+Math.imul(Ve,Fe)|0,o=o+Math.imul(Ve,Me)|0,o=o+Math.imul(et,Fe)|0,x=x+Math.imul(et,Me)|0,v=v+Math.imul(ue,yt)|0,o=o+Math.imul(ue,le)|0,o=o+Math.imul(qe,yt)|0,x=x+Math.imul(qe,le)|0,v=v+Math.imul(ee,at)|0,o=o+Math.imul(ee,Be)|0,o=o+Math.imul(oe,at)|0,x=x+Math.imul(oe,Be)|0,v=v+Math.imul(Z,tt)|0,o=o+Math.imul(Z,kt)|0,o=o+Math.imul(L,tt)|0,x=x+Math.imul(L,kt)|0,v=v+Math.imul(R,pt)|0,o=o+Math.imul(R,It)|0,o=o+Math.imul(H,pt)|0,x=x+Math.imul(H,It)|0;var rr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(rr>>>26)|0,rr&=67108863,v=Math.imul(Ge,je),o=Math.imul(Ge,$e),o=o+Math.imul(nt,je)|0,x=Math.imul(nt,$e),v=v+Math.imul(Ye,Fe)|0,o=o+Math.imul(Ye,Me)|0,o=o+Math.imul(We,Fe)|0,x=x+Math.imul(We,Me)|0,v=v+Math.imul(Ve,yt)|0,o=o+Math.imul(Ve,le)|0,o=o+Math.imul(et,yt)|0,x=x+Math.imul(et,le)|0,v=v+Math.imul(ue,at)|0,o=o+Math.imul(ue,Be)|0,o=o+Math.imul(qe,at)|0,x=x+Math.imul(qe,Be)|0,v=v+Math.imul(ee,tt)|0,o=o+Math.imul(ee,kt)|0,o=o+Math.imul(oe,tt)|0,x=x+Math.imul(oe,kt)|0,v=v+Math.imul(Z,pt)|0,o=o+Math.imul(Z,It)|0,o=o+Math.imul(L,pt)|0,x=x+Math.imul(L,It)|0,v=v+Math.imul(R,Pt)|0,o=o+Math.imul(R,Ot)|0,o=o+Math.imul(H,Pt)|0,x=x+Math.imul(H,Ot)|0;var er=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(er>>>26)|0,er&=67108863,v=Math.imul(Le,je),o=Math.imul(Le,$e),o=o+Math.imul(Oe,je)|0,x=Math.imul(Oe,$e),v=v+Math.imul(Ge,Fe)|0,o=o+Math.imul(Ge,Me)|0,o=o+Math.imul(nt,Fe)|0,x=x+Math.imul(nt,Me)|0,v=v+Math.imul(Ye,yt)|0,o=o+Math.imul(Ye,le)|0,o=o+Math.imul(We,yt)|0,x=x+Math.imul(We,le)|0,v=v+Math.imul(Ve,at)|0,o=o+Math.imul(Ve,Be)|0,o=o+Math.imul(et,at)|0,x=x+Math.imul(et,Be)|0,v=v+Math.imul(ue,tt)|0,o=o+Math.imul(ue,kt)|0,o=o+Math.imul(qe,tt)|0,x=x+Math.imul(qe,kt)|0,v=v+Math.imul(ee,pt)|0,o=o+Math.imul(ee,It)|0,o=o+Math.imul(oe,pt)|0,x=x+Math.imul(oe,It)|0,v=v+Math.imul(Z,Pt)|0,o=o+Math.imul(Z,Ot)|0,o=o+Math.imul(L,Pt)|0,x=x+Math.imul(L,Ot)|0,v=v+Math.imul(R,me)|0,o=o+Math.imul(R,ce)|0,o=o+Math.imul(H,me)|0,x=x+Math.imul(H,ce)|0;var kr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(kr>>>26)|0,kr&=67108863,v=Math.imul(dt,je),o=Math.imul(dt,$e),o=o+Math.imul(gt,je)|0,x=Math.imul(gt,$e),v=v+Math.imul(Le,Fe)|0,o=o+Math.imul(Le,Me)|0,o=o+Math.imul(Oe,Fe)|0,x=x+Math.imul(Oe,Me)|0,v=v+Math.imul(Ge,yt)|0,o=o+Math.imul(Ge,le)|0,o=o+Math.imul(nt,yt)|0,x=x+Math.imul(nt,le)|0,v=v+Math.imul(Ye,at)|0,o=o+Math.imul(Ye,Be)|0,o=o+Math.imul(We,at)|0,x=x+Math.imul(We,Be)|0,v=v+Math.imul(Ve,tt)|0,o=o+Math.imul(Ve,kt)|0,o=o+Math.imul(et,tt)|0,x=x+Math.imul(et,kt)|0,v=v+Math.imul(ue,pt)|0,o=o+Math.imul(ue,It)|0,o=o+Math.imul(qe,pt)|0,x=x+Math.imul(qe,It)|0,v=v+Math.imul(ee,Pt)|0,o=o+Math.imul(ee,Ot)|0,o=o+Math.imul(oe,Pt)|0,x=x+Math.imul(oe,Ot)|0,v=v+Math.imul(Z,me)|0,o=o+Math.imul(Z,ce)|0,o=o+Math.imul(L,me)|0,x=x+Math.imul(L,ce)|0,v=v+Math.imul(R,_e)|0,o=o+Math.imul(R,Re)|0,o=o+Math.imul(H,_e)|0,x=x+Math.imul(H,Re)|0;var vr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(vr>>>26)|0,vr&=67108863,v=Math.imul(xe,je),o=Math.imul(xe,$e),o=o+Math.imul(X,je)|0,x=Math.imul(X,$e),v=v+Math.imul(dt,Fe)|0,o=o+Math.imul(dt,Me)|0,o=o+Math.imul(gt,Fe)|0,x=x+Math.imul(gt,Me)|0,v=v+Math.imul(Le,yt)|0,o=o+Math.imul(Le,le)|0,o=o+Math.imul(Oe,yt)|0,x=x+Math.imul(Oe,le)|0,v=v+Math.imul(Ge,at)|0,o=o+Math.imul(Ge,Be)|0,o=o+Math.imul(nt,at)|0,x=x+Math.imul(nt,Be)|0,v=v+Math.imul(Ye,tt)|0,o=o+Math.imul(Ye,kt)|0,o=o+Math.imul(We,tt)|0,x=x+Math.imul(We,kt)|0,v=v+Math.imul(Ve,pt)|0,o=o+Math.imul(Ve,It)|0,o=o+Math.imul(et,pt)|0,x=x+Math.imul(et,It)|0,v=v+Math.imul(ue,Pt)|0,o=o+Math.imul(ue,Ot)|0,o=o+Math.imul(qe,Pt)|0,x=x+Math.imul(qe,Ot)|0,v=v+Math.imul(ee,me)|0,o=o+Math.imul(ee,ce)|0,o=o+Math.imul(oe,me)|0,x=x+Math.imul(oe,ce)|0,v=v+Math.imul(Z,_e)|0,o=o+Math.imul(Z,Re)|0,o=o+Math.imul(L,_e)|0,x=x+Math.imul(L,Re)|0,v=v+Math.imul(R,Ze)|0,o=o+Math.imul(R,ct)|0,o=o+Math.imul(H,Ze)|0,x=x+Math.imul(H,ct)|0;var Pr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,v=Math.imul(xe,Fe),o=Math.imul(xe,Me),o=o+Math.imul(X,Fe)|0,x=Math.imul(X,Me),v=v+Math.imul(dt,yt)|0,o=o+Math.imul(dt,le)|0,o=o+Math.imul(gt,yt)|0,x=x+Math.imul(gt,le)|0,v=v+Math.imul(Le,at)|0,o=o+Math.imul(Le,Be)|0,o=o+Math.imul(Oe,at)|0,x=x+Math.imul(Oe,Be)|0,v=v+Math.imul(Ge,tt)|0,o=o+Math.imul(Ge,kt)|0,o=o+Math.imul(nt,tt)|0,x=x+Math.imul(nt,kt)|0,v=v+Math.imul(Ye,pt)|0,o=o+Math.imul(Ye,It)|0,o=o+Math.imul(We,pt)|0,x=x+Math.imul(We,It)|0,v=v+Math.imul(Ve,Pt)|0,o=o+Math.imul(Ve,Ot)|0,o=o+Math.imul(et,Pt)|0,x=x+Math.imul(et,Ot)|0,v=v+Math.imul(ue,me)|0,o=o+Math.imul(ue,ce)|0,o=o+Math.imul(qe,me)|0,x=x+Math.imul(qe,ce)|0,v=v+Math.imul(ee,_e)|0,o=o+Math.imul(ee,Re)|0,o=o+Math.imul(oe,_e)|0,x=x+Math.imul(oe,Re)|0,v=v+Math.imul(Z,Ze)|0,o=o+Math.imul(Z,ct)|0,o=o+Math.imul(L,Ze)|0,x=x+Math.imul(L,ct)|0;var Tr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,v=Math.imul(xe,yt),o=Math.imul(xe,le),o=o+Math.imul(X,yt)|0,x=Math.imul(X,le),v=v+Math.imul(dt,at)|0,o=o+Math.imul(dt,Be)|0,o=o+Math.imul(gt,at)|0,x=x+Math.imul(gt,Be)|0,v=v+Math.imul(Le,tt)|0,o=o+Math.imul(Le,kt)|0,o=o+Math.imul(Oe,tt)|0,x=x+Math.imul(Oe,kt)|0,v=v+Math.imul(Ge,pt)|0,o=o+Math.imul(Ge,It)|0,o=o+Math.imul(nt,pt)|0,x=x+Math.imul(nt,It)|0,v=v+Math.imul(Ye,Pt)|0,o=o+Math.imul(Ye,Ot)|0,o=o+Math.imul(We,Pt)|0,x=x+Math.imul(We,Ot)|0,v=v+Math.imul(Ve,me)|0,o=o+Math.imul(Ve,ce)|0,o=o+Math.imul(et,me)|0,x=x+Math.imul(et,ce)|0,v=v+Math.imul(ue,_e)|0,o=o+Math.imul(ue,Re)|0,o=o+Math.imul(qe,_e)|0,x=x+Math.imul(qe,Re)|0,v=v+Math.imul(ee,Ze)|0,o=o+Math.imul(ee,ct)|0,o=o+Math.imul(oe,Ze)|0,x=x+Math.imul(oe,ct)|0;var br=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(br>>>26)|0,br&=67108863,v=Math.imul(xe,at),o=Math.imul(xe,Be),o=o+Math.imul(X,at)|0,x=Math.imul(X,Be),v=v+Math.imul(dt,tt)|0,o=o+Math.imul(dt,kt)|0,o=o+Math.imul(gt,tt)|0,x=x+Math.imul(gt,kt)|0,v=v+Math.imul(Le,pt)|0,o=o+Math.imul(Le,It)|0,o=o+Math.imul(Oe,pt)|0,x=x+Math.imul(Oe,It)|0,v=v+Math.imul(Ge,Pt)|0,o=o+Math.imul(Ge,Ot)|0,o=o+Math.imul(nt,Pt)|0,x=x+Math.imul(nt,Ot)|0,v=v+Math.imul(Ye,me)|0,o=o+Math.imul(Ye,ce)|0,o=o+Math.imul(We,me)|0,x=x+Math.imul(We,ce)|0,v=v+Math.imul(Ve,_e)|0,o=o+Math.imul(Ve,Re)|0,o=o+Math.imul(et,_e)|0,x=x+Math.imul(et,Re)|0,v=v+Math.imul(ue,Ze)|0,o=o+Math.imul(ue,ct)|0,o=o+Math.imul(qe,Ze)|0,x=x+Math.imul(qe,ct)|0;var Ar=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,v=Math.imul(xe,tt),o=Math.imul(xe,kt),o=o+Math.imul(X,tt)|0,x=Math.imul(X,kt),v=v+Math.imul(dt,pt)|0,o=o+Math.imul(dt,It)|0,o=o+Math.imul(gt,pt)|0,x=x+Math.imul(gt,It)|0,v=v+Math.imul(Le,Pt)|0,o=o+Math.imul(Le,Ot)|0,o=o+Math.imul(Oe,Pt)|0,x=x+Math.imul(Oe,Ot)|0,v=v+Math.imul(Ge,me)|0,o=o+Math.imul(Ge,ce)|0,o=o+Math.imul(nt,me)|0,x=x+Math.imul(nt,ce)|0,v=v+Math.imul(Ye,_e)|0,o=o+Math.imul(Ye,Re)|0,o=o+Math.imul(We,_e)|0,x=x+Math.imul(We,Re)|0,v=v+Math.imul(Ve,Ze)|0,o=o+Math.imul(Ve,ct)|0,o=o+Math.imul(et,Ze)|0,x=x+Math.imul(et,ct)|0;var gr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(gr>>>26)|0,gr&=67108863,v=Math.imul(xe,pt),o=Math.imul(xe,It),o=o+Math.imul(X,pt)|0,x=Math.imul(X,It),v=v+Math.imul(dt,Pt)|0,o=o+Math.imul(dt,Ot)|0,o=o+Math.imul(gt,Pt)|0,x=x+Math.imul(gt,Ot)|0,v=v+Math.imul(Le,me)|0,o=o+Math.imul(Le,ce)|0,o=o+Math.imul(Oe,me)|0,x=x+Math.imul(Oe,ce)|0,v=v+Math.imul(Ge,_e)|0,o=o+Math.imul(Ge,Re)|0,o=o+Math.imul(nt,_e)|0,x=x+Math.imul(nt,Re)|0,v=v+Math.imul(Ye,Ze)|0,o=o+Math.imul(Ye,ct)|0,o=o+Math.imul(We,Ze)|0,x=x+Math.imul(We,ct)|0;var dr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(dr>>>26)|0,dr&=67108863,v=Math.imul(xe,Pt),o=Math.imul(xe,Ot),o=o+Math.imul(X,Pt)|0,x=Math.imul(X,Ot),v=v+Math.imul(dt,me)|0,o=o+Math.imul(dt,ce)|0,o=o+Math.imul(gt,me)|0,x=x+Math.imul(gt,ce)|0,v=v+Math.imul(Le,_e)|0,o=o+Math.imul(Le,Re)|0,o=o+Math.imul(Oe,_e)|0,x=x+Math.imul(Oe,Re)|0,v=v+Math.imul(Ge,Ze)|0,o=o+Math.imul(Ge,ct)|0,o=o+Math.imul(nt,Ze)|0,x=x+Math.imul(nt,ct)|0;var lr=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(lr>>>26)|0,lr&=67108863,v=Math.imul(xe,me),o=Math.imul(xe,ce),o=o+Math.imul(X,me)|0,x=Math.imul(X,ce),v=v+Math.imul(dt,_e)|0,o=o+Math.imul(dt,Re)|0,o=o+Math.imul(gt,_e)|0,x=x+Math.imul(gt,Re)|0,v=v+Math.imul(Le,Ze)|0,o=o+Math.imul(Le,ct)|0,o=o+Math.imul(Oe,Ze)|0,x=x+Math.imul(Oe,ct)|0;var Kt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,v=Math.imul(xe,_e),o=Math.imul(xe,Re),o=o+Math.imul(X,_e)|0,x=Math.imul(X,Re),v=v+Math.imul(dt,Ze)|0,o=o+Math.imul(dt,ct)|0,o=o+Math.imul(gt,Ze)|0,x=x+Math.imul(gt,ct)|0;var Bt=(w+v|0)+((o&8191)<<13)|0;w=(x+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(xe,Ze),o=Math.imul(xe,ct),o=o+Math.imul(X,Ze)|0,x=Math.imul(X,ct);var Ft=(w+v|0)+((o&8191)<<13)|0;return w=(x+(o>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,y[0]=Nt,y[1]=Ut,y[2]=Mr,y[3]=Xt,y[4]=Sr,y[5]=rr,y[6]=er,y[7]=kr,y[8]=vr,y[9]=Pr,y[10]=Tr,y[11]=br,y[12]=Ar,y[13]=gr,y[14]=dr,y[15]=lr,y[16]=Kt,y[17]=Bt,y[18]=Ft,w!==0&&(y[19]=w,b.length++),b};Math.imul||(z=$);function N(T,u,p){p.negative=u.negative^T.negative,p.length=T.length+u.length;for(var b=0,e=0,c=0;c<p.length-1;c++){var y=e;e=0;for(var w=b&67108863,v=Math.min(c,u.length-1),o=Math.max(0,c-T.length+1);o<=v;o++){var x=c-o,E=T.words[x]|0,R=u.words[o]|0,H=E*R,Y=H&67108863;y=y+(H/67108864|0)|0,Y=Y+w|0,w=Y&67108863,y=y+(Y>>>26)|0,e+=y>>>26,y&=67108863}p.words[c]=w,b=y,y=e}return b!==0?p.words[c]=b:p.length--,p.strip()}function F(T,u,p){var b=new U;return b.mulp(T,u,p)}h.prototype.mulTo=function(u,p){var b,e=this.length+u.length;return this.length===10&&u.length===10?b=z(this,u,p):e<63?b=$(this,u,p):e<1024?b=N(this,u,p):b=F(this,u,p),b};function U(T,u){this.x=T,this.y=u}U.prototype.makeRBT=function(u){for(var p=new Array(u),b=h.prototype._countBits(u)-1,e=0;e<u;e++)p[e]=this.revBin(e,b,u);return p},U.prototype.revBin=function(u,p,b){if(u===0||u===b-1)return u;for(var e=0,c=0;c<p;c++)e|=(u&1)<<p-c-1,u>>=1;return e},U.prototype.permute=function(u,p,b,e,c,y){for(var w=0;w<y;w++)e[w]=p[u[w]],c[w]=b[u[w]]},U.prototype.transform=function(u,p,b,e,c,y){this.permute(y,u,p,b,e,c);for(var w=1;w<c;w<<=1)for(var v=w<<1,o=Math.cos(2*Math.PI/v),x=Math.sin(2*Math.PI/v),E=0;E<c;E+=v)for(var R=o,H=x,Y=0;Y<w;Y++){var Z=b[E+Y],L=e[E+Y],D=b[E+Y+w],ee=e[E+Y+w],oe=R*D-H*ee;ee=R*ee+H*D,D=oe,b[E+Y]=Z+D,e[E+Y]=L+ee,b[E+Y+w]=Z-D,e[E+Y+w]=L-ee,Y!==v&&(oe=o*R-x*H,H=o*H+x*R,R=oe)}},U.prototype.guessLen13b=function(u,p){var b=Math.max(p,u)|1,e=b&1,c=0;for(b=b/2|0;b;b=b>>>1)c++;return 1<<c+1+e},U.prototype.conjugate=function(u,p,b){if(!(b<=1))for(var e=0;e<b/2;e++){var c=u[e];u[e]=u[b-e-1],u[b-e-1]=c,c=p[e],p[e]=-p[b-e-1],p[b-e-1]=-c}},U.prototype.normalize13b=function(u,p){for(var b=0,e=0;e<p/2;e++){var c=Math.round(u[2*e+1]/p)*8192+Math.round(u[2*e]/p)+b;u[e]=c&67108863,c<67108864?b=0:b=c/67108864|0}return u},U.prototype.convert13b=function(u,p,b,e){for(var c=0,y=0;y<p;y++)c=c+(u[y]|0),b[2*y]=c&8191,c=c>>>13,b[2*y+1]=c&8191,c=c>>>13;for(y=2*p;y<e;++y)b[y]=0;d(c===0),d((c&-8192)===0)},U.prototype.stub=function(u){for(var p=new Array(u),b=0;b<u;b++)p[b]=0;return p},U.prototype.mulp=function(u,p,b){var e=2*this.guessLen13b(u.length,p.length),c=this.makeRBT(e),y=this.stub(e),w=new Array(e),v=new Array(e),o=new Array(e),x=new Array(e),E=new Array(e),R=new Array(e),H=b.words;H.length=e,this.convert13b(u.words,u.length,w,e),this.convert13b(p.words,p.length,x,e),this.transform(w,y,v,o,e,c),this.transform(x,y,E,R,e,c);for(var Y=0;Y<e;Y++){var Z=v[Y]*E[Y]-o[Y]*R[Y];o[Y]=v[Y]*R[Y]+o[Y]*E[Y],v[Y]=Z}return this.conjugate(v,o,e),this.transform(v,o,H,y,e,c),this.conjugate(H,y,e),this.normalize13b(H,e),b.negative=u.negative^p.negative,b.length=u.length+p.length,b.strip()},h.prototype.mul=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),this.mulTo(u,p)},h.prototype.mulf=function(u){var p=new h(null);return p.words=new Array(this.length+u.length),F(this,u,p)},h.prototype.imul=function(u){return this.clone().mulTo(u,this)},h.prototype.imuln=function(u){d(typeof u=="number"),d(u<67108864);for(var p=0,b=0;b<this.length;b++){var e=(this.words[b]|0)*u,c=(e&67108863)+(p&67108863);p>>=26,p+=e/67108864|0,p+=c>>>26,this.words[b]=c&67108863}return p!==0&&(this.words[b]=p,this.length++),this},h.prototype.muln=function(u){return this.clone().imuln(u)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(u){var p=P(u);if(p.length===0)return new h(1);for(var b=this,e=0;e<p.length&&p[e]===0;e++,b=b.sqr());if(++e<p.length)for(var c=b.sqr();e<p.length;e++,c=c.sqr())p[e]!==0&&(b=b.mul(c));return b},h.prototype.iushln=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=67108863>>>26-p<<26-p,c;if(p!==0){var y=0;for(c=0;c<this.length;c++){var w=this.words[c]&e,v=(this.words[c]|0)-w<<p;this.words[c]=v|y,y=w>>>26-p}y&&(this.words[c]=y,this.length++)}if(b!==0){for(c=this.length-1;c>=0;c--)this.words[c+b]=this.words[c];for(c=0;c<b;c++)this.words[c]=0;this.length+=b}return this.strip()},h.prototype.ishln=function(u){return d(this.negative===0),this.iushln(u)},h.prototype.iushrn=function(u,p,b){d(typeof u=="number"&&u>=0);var e;p?e=(p-p%26)/26:e=0;var c=u%26,y=Math.min((u-c)/26,this.length),w=67108863^67108863>>>c<<c,v=b;if(e-=y,e=Math.max(0,e),v){for(var o=0;o<y;o++)v.words[o]=this.words[o];v.length=y}if(y!==0)if(this.length>y)for(this.length-=y,o=0;o<this.length;o++)this.words[o]=this.words[o+y];else this.words[0]=0,this.length=1;var x=0;for(o=this.length-1;o>=0&&(x!==0||o>=e);o--){var E=this.words[o]|0;this.words[o]=x<<26-c|E>>>c,x=E&w}return v&&x!==0&&(v.words[v.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(u,p,b){return d(this.negative===0),this.iushrn(u,p,b)},h.prototype.shln=function(u){return this.clone().ishln(u)},h.prototype.ushln=function(u){return this.clone().iushln(u)},h.prototype.shrn=function(u){return this.clone().ishrn(u)},h.prototype.ushrn=function(u){return this.clone().iushrn(u)},h.prototype.testn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return!1;var c=this.words[b];return!!(c&e)},h.prototype.imaskn=function(u){d(typeof u=="number"&&u>=0);var p=u%26,b=(u-p)/26;if(d(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(p!==0&&b++,this.length=Math.min(b,this.length),p!==0){var e=67108863^67108863>>>p<<p;this.words[this.length-1]&=e}return this.strip()},h.prototype.maskn=function(u){return this.clone().imaskn(u)},h.prototype.iaddn=function(u){return d(typeof u=="number"),d(u<67108864),u<0?this.isubn(-u):this.negative!==0?this.length===1&&(this.words[0]|0)<u?(this.words[0]=u-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},h.prototype._iaddn=function(u){this.words[0]+=u;for(var p=0;p<this.length&&this.words[p]>=67108864;p++)this.words[p]-=67108864,p===this.length-1?this.words[p+1]=1:this.words[p+1]++;return this.length=Math.max(this.length,p+1),this},h.prototype.isubn=function(u){if(d(typeof u=="number"),d(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p<this.length&&this.words[p]<0;p++)this.words[p]+=67108864,this.words[p+1]-=1;return this.strip()},h.prototype.addn=function(u){return this.clone().iaddn(u)},h.prototype.subn=function(u){return this.clone().isubn(u)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(u,p,b){var e=u.length+b,c;this._expand(e);var y,w=0;for(c=0;c<u.length;c++){y=(this.words[c+b]|0)+w;var v=(u.words[c]|0)*p;y-=v&67108863,w=(y>>26)-(v/67108864|0),this.words[c+b]=y&67108863}for(;c<this.length-b;c++)y=(this.words[c+b]|0)+w,w=y>>26,this.words[c+b]=y&67108863;if(w===0)return this.strip();for(d(w===-1),w=0,c=0;c<this.length;c++)y=-(this.words[c]|0)+w,w=y>>26,this.words[c]=y&67108863;return this.negative=1,this.strip()},h.prototype._wordDiv=function(u,p){var b=this.length-u.length,e=this.clone(),c=u,y=c.words[c.length-1]|0,w=this._countBits(y);b=26-w,b!==0&&(c=c.ushln(b),e.iushln(b),y=c.words[c.length-1]|0);var v=e.length-c.length,o;if(p!=="mod"){o=new h(null),o.length=v+1,o.words=new Array(o.length);for(var x=0;x<o.length;x++)o.words[x]=0}var E=e.clone()._ishlnsubmul(c,1,v);E.negative===0&&(e=E,o&&(o.words[v]=1));for(var R=v-1;R>=0;R--){var H=(e.words[c.length+R]|0)*67108864+(e.words[c.length+R-1]|0);for(H=Math.min(H/y|0,67108863),e._ishlnsubmul(c,H,R);e.negative!==0;)H--,e.negative=0,e._ishlnsubmul(c,1,R),e.isZero()||(e.negative^=1);o&&(o.words[R]=H)}return o&&o.strip(),e.strip(),p!=="div"&&b!==0&&e.iushrn(b),{div:o||null,mod:e}},h.prototype.divmod=function(u,p,b){if(d(!u.isZero()),this.isZero())return{div:new h(0),mod:new h(0)};var e,c,y;return this.negative!==0&&u.negative===0?(y=this.neg().divmod(u,p),p!=="mod"&&(e=y.div.neg()),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.iadd(u)),{div:e,mod:c}):this.negative===0&&u.negative!==0?(y=this.divmod(u.neg(),p),p!=="mod"&&(e=y.div.neg()),{div:e,mod:y.mod}):this.negative&u.negative?(y=this.neg().divmod(u.neg(),p),p!=="div"&&(c=y.mod.neg(),b&&c.negative!==0&&c.isub(u)),{div:y.div,mod:c}):u.length>this.length||this.cmp(u)<0?{div:new h(0),mod:this}:u.length===1?p==="div"?{div:this.divn(u.words[0]),mod:null}:p==="mod"?{div:null,mod:new h(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new h(this.modn(u.words[0]))}:this._wordDiv(u,p)},h.prototype.div=function(u){return this.divmod(u,"div",!1).div},h.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},h.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},h.prototype.divRound=function(u){var p=this.divmod(u);if(p.mod.isZero())return p.div;var b=p.div.negative!==0?p.mod.isub(u):p.mod,e=u.ushrn(1),c=u.andln(1),y=b.cmp(e);return y<0||c===1&&y===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},h.prototype.modn=function(u){d(u<=67108863);for(var p=(1<<26)%u,b=0,e=this.length-1;e>=0;e--)b=(p*b+(this.words[e]|0))%u;return b},h.prototype.idivn=function(u){d(u<=67108863);for(var p=0,b=this.length-1;b>=0;b--){var e=(this.words[b]|0)+p*67108864;this.words[b]=e/u|0,p=e%u}return this.strip()},h.prototype.divn=function(u){return this.clone().idivn(u)},h.prototype.egcd=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=new h(0),w=new h(1),v=0;p.isEven()&&b.isEven();)p.iushrn(1),b.iushrn(1),++v;for(var o=b.clone(),x=p.clone();!p.isZero();){for(var E=0,R=1;!(p.words[0]&R)&&E<26;++E,R<<=1);if(E>0)for(p.iushrn(E);E-- >0;)(e.isOdd()||c.isOdd())&&(e.iadd(o),c.isub(x)),e.iushrn(1),c.iushrn(1);for(var H=0,Y=1;!(b.words[0]&Y)&&H<26;++H,Y<<=1);if(H>0)for(b.iushrn(H);H-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(o),w.isub(x)),y.iushrn(1),w.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(y),c.isub(w)):(b.isub(p),y.isub(e),w.isub(c))}return{a:y,b:w,gcd:b.iushln(v)}},h.prototype._invmp=function(u){d(u.negative===0),d(!u.isZero());var p=this,b=u.clone();p.negative!==0?p=p.umod(u):p=p.clone();for(var e=new h(1),c=new h(0),y=b.clone();p.cmpn(1)>0&&b.cmpn(1)>0;){for(var w=0,v=1;!(p.words[0]&v)&&w<26;++w,v<<=1);if(w>0)for(p.iushrn(w);w-- >0;)e.isOdd()&&e.iadd(y),e.iushrn(1);for(var o=0,x=1;!(b.words[0]&x)&&o<26;++o,x<<=1);if(o>0)for(b.iushrn(o);o-- >0;)c.isOdd()&&c.iadd(y),c.iushrn(1);p.cmp(b)>=0?(p.isub(b),e.isub(c)):(b.isub(p),c.isub(e))}var E;return p.cmpn(1)===0?E=e:E=c,E.cmpn(0)<0&&E.iadd(u),E},h.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var p=this.clone(),b=u.clone();p.negative=0,b.negative=0;for(var e=0;p.isEven()&&b.isEven();e++)p.iushrn(1),b.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;b.isEven();)b.iushrn(1);var c=p.cmp(b);if(c<0){var y=p;p=b,b=y}else if(c===0||b.cmpn(1)===0)break;p.isub(b)}while(!0);return b.iushln(e)},h.prototype.invm=function(u){return this.egcd(u).a.umod(u)},h.prototype.isEven=function(){return(this.words[0]&1)===0},h.prototype.isOdd=function(){return(this.words[0]&1)===1},h.prototype.andln=function(u){return this.words[0]&u},h.prototype.bincn=function(u){d(typeof u=="number");var p=u%26,b=(u-p)/26,e=1<<p;if(this.length<=b)return this._expand(b+1),this.words[b]|=e,this;for(var c=e,y=b;c!==0&&y<this.length;y++){var w=this.words[y]|0;w+=c,c=w>>>26,w&=67108863,this.words[y]=w}return c!==0&&(this.words[y]=c,this.length++),this},h.prototype.isZero=function(){return this.length===1&&this.words[0]===0},h.prototype.cmpn=function(u){var p=u<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var b;if(this.length>1)b=1;else{p&&(u=-u),d(u<=67108863,"Number is too big");var e=this.words[0]|0;b=e===u?0:e<u?-1:1}return this.negative!==0?-b|0:b},h.prototype.cmp=function(u){if(this.negative!==0&&u.negative===0)return-1;if(this.negative===0&&u.negative!==0)return 1;var p=this.ucmp(u);return this.negative!==0?-p|0:p},h.prototype.ucmp=function(u){if(this.length>u.length)return 1;if(this.length<u.length)return-1;for(var p=0,b=this.length-1;b>=0;b--){var e=this.words[b]|0,c=u.words[b]|0;if(e!==c){e<c?p=-1:e>c&&(p=1);break}}return p},h.prototype.gtn=function(u){return this.cmpn(u)===1},h.prototype.gt=function(u){return this.cmp(u)===1},h.prototype.gten=function(u){return this.cmpn(u)>=0},h.prototype.gte=function(u){return this.cmp(u)>=0},h.prototype.ltn=function(u){return this.cmpn(u)===-1},h.prototype.lt=function(u){return this.cmp(u)===-1},h.prototype.lten=function(u){return this.cmpn(u)<=0},h.prototype.lte=function(u){return this.cmp(u)<=0},h.prototype.eqn=function(u){return this.cmpn(u)===0},h.prototype.eq=function(u){return this.cmp(u)===0},h.red=function(u){return new he(u)},h.prototype.toRed=function(u){return d(!this.red,"Already a number in reduction context"),d(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},h.prototype.fromRed=function(){return d(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(u){return this.red=u,this},h.prototype.forceRed=function(u){return d(!this.red,"Already a number in reduction context"),this._forceRed(u)},h.prototype.redAdd=function(u){return d(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},h.prototype.redIAdd=function(u){return d(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},h.prototype.redSub=function(u){return d(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},h.prototype.redISub=function(u){return d(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},h.prototype.redShl=function(u){return d(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},h.prototype.redMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},h.prototype.redIMul=function(u){return d(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},h.prototype.redSqr=function(){return d(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return d(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return d(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return d(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return d(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(u){return d(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var J={k256:null,p224:null,p192:null,p25519:null};function te(T,u){this.name=T,this.p=new h(u,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}te.prototype._tmp=function(){var u=new h(null);return u.words=new Array(Math.ceil(this.n/13)),u},te.prototype.ireduce=function(u){var p=u,b;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),b=p.bitLength();while(b>this.n);var e=b<this.n?-1:p.ucmp(this.p);return e===0?(p.words[0]=0,p.length=1):e>0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},te.prototype.split=function(u,p){u.iushrn(this.n,0,p)},te.prototype.imulK=function(u){return u.imul(this.k)};function se(){te.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(se,te),se.prototype.split=function(u,p){for(var b=4194303,e=Math.min(u.length,9),c=0;c<e;c++)p.words[c]=u.words[c];if(p.length=e,u.length<=9){u.words[0]=0,u.length=1;return}var y=u.words[9];for(p.words[p.length++]=y&b,c=10;c<u.length;c++){var w=u.words[c]|0;u.words[c-10]=(w&b)<<4|y>>>22,y=w}y>>>=22,u.words[c-10]=y,y===0&&u.length>10?u.length-=10:u.length-=9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var p=0,b=0;b<u.length;b++){var e=u.words[b]|0;p+=e*977,u.words[b]=p&67108863,p=e*64+(p/67108864|0)}return u.words[u.length-1]===0&&(u.length--,u.words[u.length-1]===0&&u.length--),u};function de(){te.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(de,te);function Q(){te.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(Q,te);function ve(){te.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ve,te),ve.prototype.imulK=function(u){for(var p=0,b=0;b<u.length;b++){var e=(u.words[b]|0)*19+p,c=e&67108863;e>>>=26,u.words[b]=c,p=e}return p!==0&&(u.words[u.length++]=p),u},h._prime=function(u){if(J[u])return J[u];var p;if(u==="k256")p=new se;else if(u==="p224")p=new de;else if(u==="p192")p=new Q;else if(u==="p25519")p=new ve;else throw new Error("Unknown prime "+u);return J[u]=p,p};function he(T){if(typeof T=="string"){var u=h._prime(T);this.m=u.p,this.prime=u}else d(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}he.prototype._verify1=function(u){d(u.negative===0,"red works only with positives"),d(u.red,"red works only with red numbers")},he.prototype._verify2=function(u,p){d((u.negative|p.negative)===0,"red works only with positives"),d(u.red&&u.red===p.red,"red works only with red numbers")},he.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},he.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},he.prototype.add=function(u,p){this._verify2(u,p);var b=u.add(p);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},he.prototype.iadd=function(u,p){this._verify2(u,p);var b=u.iadd(p);return b.cmp(this.m)>=0&&b.isub(this.m),b},he.prototype.sub=function(u,p){this._verify2(u,p);var b=u.sub(p);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},he.prototype.isub=function(u,p){this._verify2(u,p);var b=u.isub(p);return b.cmpn(0)<0&&b.iadd(this.m),b},he.prototype.shl=function(u,p){return this._verify1(u),this.imod(u.ushln(p))},he.prototype.imul=function(u,p){return this._verify2(u,p),this.imod(u.imul(p))},he.prototype.mul=function(u,p){return this._verify2(u,p),this.imod(u.mul(p))},he.prototype.isqr=function(u){return this.imul(u,u.clone())},he.prototype.sqr=function(u){return this.mul(u,u)},he.prototype.sqrt=function(u){if(u.isZero())return u.clone();var p=this.m.andln(3);if(d(p%2===1),p===3){var b=this.m.add(new h(1)).iushrn(2);return this.pow(u,b)}for(var e=this.m.subn(1),c=0;!e.isZero()&&e.andln(1)===0;)c++,e.iushrn(1);d(!e.isZero());var y=new h(1).toRed(this),w=y.redNeg(),v=this.m.subn(1).iushrn(1),o=this.m.bitLength();for(o=new h(2*o*o).toRed(this);this.pow(o,v).cmp(w)!==0;)o.redIAdd(w);for(var x=this.pow(o,e),E=this.pow(u,e.addn(1).iushrn(1)),R=this.pow(u,e),H=c;R.cmp(y)!==0;){for(var Y=R,Z=0;Y.cmp(y)!==0;Z++)Y=Y.redSqr();d(Z<H);var L=this.pow(x,new h(1).iushln(H-Z-1));E=E.redMul(L),x=L.redSqr(),R=R.redMul(x),H=Z}return E},he.prototype.invm=function(u){var p=u._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},he.prototype.pow=function(u,p){if(p.isZero())return new h(1).toRed(this);if(p.cmpn(1)===0)return u.clone();var b=4,e=new Array(1<<b);e[0]=new h(1).toRed(this),e[1]=u;for(var c=2;c<e.length;c++)e[c]=this.mul(e[c-1],u);var y=e[0],w=0,v=0,o=p.bitLength()%26;for(o===0&&(o=26),c=p.length-1;c>=0;c--){for(var x=p.words[c],E=o-1;E>=0;E--){var R=x>>E&1;if(y!==e[0]&&(y=this.sqr(y)),R===0&&w===0){v=0;continue}w<<=1,w|=R,v++,!(v!==b&&(c!==0||E!==0))&&(y=this.mul(y,e[w]),v=0,w=0)}o=26}return y},he.prototype.convertTo=function(u){var p=u.umod(this.m);return p===u?p.clone():p},he.prototype.convertFrom=function(u){var p=u.clone();return p.red=null,p},h.mont=function(u){return new ke(u)};function ke(T){he.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(ke,he),ke.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},ke.prototype.convertFrom=function(u){var p=this.imod(u.mul(this.rinv));return p.red=null,p},ke.prototype.imul=function(u,p){if(u.isZero()||p.isZero())return u.words[0]=0,u.length=1,u;var b=u.imul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.mul=function(u,p){if(u.isZero()||p.isZero())return new h(0)._forceRed(this);var b=u.mul(p),e=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),c=b.isub(e).iushrn(this.shift),y=c;return c.cmp(this.m)>=0?y=c.isub(this.m):c.cmpn(0)<0&&(y=c.iadd(this.m)),y._forceRed(this)},ke.prototype.invm=function(u){var p=this.imod(u._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,commonjsGlobal)}(bn);var bnExports=bn.exports,BN$2=bnExports,Buffer$4=safeBufferExports$1.Buffer;function withPublic$2(t,n){return Buffer$4.from(t.toRed(BN$2.mont(n.modulus)).redPow(new BN$2(n.publicExponent)).fromRed().toArray())}var withPublic_1=withPublic$2,parseKeys$1=parseAsn1,randomBytes=browserExports,createHash$1=browser$b,mgf$1=mgf$2,xor$1=xor$2,BN$1=bnExports,withPublic$1=withPublic_1,crt$1=browserifyRsa,Buffer$3=safeBufferExports$1.Buffer,publicEncrypt=function t(n,l,d){var m;n.padding?m=n.padding:d?m=1:m=4;var h=parseKeys$1(n),S;if(m===4)S=oaep$1(h,l);else if(m===1)S=pkcs1$2(h,l,d);else if(m===3){if(S=new BN$1(l),S.cmp(h.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return d?crt$1(S,h):withPublic$1(S,h)};function oaep$1(t,n){var l=t.modulus.byteLength(),d=n.length,m=createHash$1("sha1").update(Buffer$3.alloc(0)).digest(),h=m.length,S=2*h;if(d>l-S-2)throw new Error("message too long");var k=Buffer$3.alloc(l-d-S-2),A=l-h-1,B=randomBytes(h),M=xor$1(Buffer$3.concat([m,k,Buffer$3.alloc(1,1),n],A),mgf$1(B,A)),j=xor$1(B,mgf$1(M,h));return new BN$1(Buffer$3.concat([Buffer$3.alloc(1),j,M],l))}function pkcs1$2(t,n,l){var d=n.length,m=t.modulus.byteLength();if(d>m-11)throw new Error("message too long");var h;return l?h=Buffer$3.alloc(m-d-3,255):h=nonZero(m-d-3),new BN$1(Buffer$3.concat([Buffer$3.from([0,l?1:2]),h,Buffer$3.alloc(1),n],m))}function nonZero(t){for(var n=Buffer$3.allocUnsafe(t),l=0,d=randomBytes(t*2),m=0,h;l<t;)m===d.length&&(d=randomBytes(t*2),m=0),h=d[m++],h&&(n[l++]=h);return n}var parseKeys=parseAsn1,mgf=mgf$2,xor=xor$2,BN=bnExports,crt=browserifyRsa,createHash=browser$b,withPublic=withPublic_1,Buffer$2=safeBufferExports$1.Buffer,privateDecrypt=function t(n,l,d){var m;n.padding?m=n.padding:d?m=1:m=4;var h=parseKeys(n),S=h.modulus.byteLength();if(l.length>S||new BN(l).cmp(h.modulus)>=0)throw new Error("decryption error");var k;d?k=withPublic(new BN(l),h):k=crt(l,h);var A=Buffer$2.alloc(S-k.length);if(k=Buffer$2.concat([A,k],S),m===4)return oaep(h,k);if(m===1)return pkcs1$1(h,k,d);if(m===3)return k;throw new Error("unknown padding")};function oaep(t,n){var l=t.modulus.byteLength(),d=createHash("sha1").update(Buffer$2.alloc(0)).digest(),m=d.length;if(n[0]!==0)throw new Error("decryption error");var h=n.slice(1,m+1),S=n.slice(m+1),k=xor(h,mgf(S,m)),A=xor(S,mgf(k,l-m-1));if(compare(d,A.slice(0,m)))throw new Error("decryption error");for(var B=m;A[B]===0;)B++;if(A[B++]!==1)throw new Error("decryption error");return A.slice(B)}function pkcs1$1(t,n,l){for(var d=n.slice(0,2),m=2,h=0;n[m++]!==0;)if(m>=n.length){h++;break}var S=n.slice(2,m-1);if((d.toString("hex")!=="0002"&&!l||d.toString("hex")!=="0001"&&l)&&h++,S.length<8&&h++,h)throw new Error("decryption error");return n.slice(m)}function compare(t,n){t=Buffer$2.from(t),n=Buffer$2.from(n);var l=0,d=t.length;t.length!==n.length&&(l++,d=Math.min(t.length,n.length));for(var m=-1;++m<d;)l+=t[m]^n[m];return l}(function(t){t.publicEncrypt=publicEncrypt,t.privateDecrypt=privateDecrypt,t.privateEncrypt=function(l,d){return t.publicEncrypt(l,d,!0)},t.publicDecrypt=function(l,d){return t.privateDecrypt(l,d,!0)}})(browser$3);var browser$2={};function oldBrowser(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var safeBuffer=safeBufferExports$1,randombytes=browserExports,Buffer$1=safeBuffer.Buffer,kBufferMaxLength=safeBuffer.kMaxLength,crypto$2=commonjsGlobal.crypto||commonjsGlobal.msCrypto,kMaxUint32=Math.pow(2,32)-1;function assertOffset(t,n){if(typeof t!="number"||t!==t)throw new TypeError("offset must be a number");if(t>kMaxUint32||t<0)throw new TypeError("offset must be a uint32");if(t>kBufferMaxLength||t>n)throw new RangeError("offset out of range")}function assertSize(t,n,l){if(typeof t!="number"||t!==t)throw new TypeError("size must be a number");if(t>kMaxUint32||t<0)throw new TypeError("size must be a uint32");if(t+n>l||t>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$2&&crypto$2.getRandomValues||!process$1.browser?(browser$2.randomFill=randomFill,browser$2.randomFillSync=randomFillSync):(browser$2.randomFill=oldBrowser,browser$2.randomFillSync=oldBrowser);function randomFill(t,n,l,d){if(!Buffer$1.isBuffer(t)&&!(t instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof n=="function")d=n,n=0,l=t.length;else if(typeof l=="function")d=l,l=t.length-n;else if(typeof d!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(n,t.length),assertSize(l,n,t.length),actualFill(t,n,l,d)}function actualFill(t,n,l,d){if(process$1.browser){var m=t.buffer,h=new Uint8Array(m,n,l);if(crypto$2.getRandomValues(h),d){process$1.nextTick(function(){d(null,t)});return}return t}if(d){randombytes(l,function(k,A){if(k)return d(k);A.copy(t,n),d(null,t)});return}var S=randombytes(l);return S.copy(t,n),t}function randomFillSync(t,n,l){if(typeof n>"u"&&(n=0),!Buffer$1.isBuffer(t)&&!(t instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(n,t.length),l===void 0&&(l=t.length-n),assertSize(l,n,t.length),actualFill(t,n,l)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$b,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$a;var t=algos,n=Object.keys(t),l=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);cryptoBrowserify.getHashes=function(){return l};var d=browser$9;cryptoBrowserify.pbkdf2=d.pbkdf2,cryptoBrowserify.pbkdf2Sync=d.pbkdf2Sync;var m=browser$8;cryptoBrowserify.Cipher=m.Cipher,cryptoBrowserify.createCipher=m.createCipher,cryptoBrowserify.Cipheriv=m.Cipheriv,cryptoBrowserify.createCipheriv=m.createCipheriv,cryptoBrowserify.Decipher=m.Decipher,cryptoBrowserify.createDecipher=m.createDecipher,cryptoBrowserify.Decipheriv=m.Decipheriv,cryptoBrowserify.createDecipheriv=m.createDecipheriv,cryptoBrowserify.getCiphers=m.getCiphers,cryptoBrowserify.listCiphers=m.listCiphers;var h=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=h.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=h.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=h.getDiffieHellman,cryptoBrowserify.createDiffieHellman=h.createDiffieHellman,cryptoBrowserify.DiffieHellman=h.DiffieHellman;var S=requireBrowser$3();cryptoBrowserify.createSign=S.createSign,cryptoBrowserify.Sign=S.Sign,cryptoBrowserify.createVerify=S.createVerify,cryptoBrowserify.Verify=S.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var k=browser$3;cryptoBrowserify.publicEncrypt=k.publicEncrypt,cryptoBrowserify.privateEncrypt=k.privateEncrypt,cryptoBrowserify.publicDecrypt=k.publicDecrypt,cryptoBrowserify.privateDecrypt=k.privateDecrypt;var A=browser$2;return cryptoBrowserify.randomFill=A.randomFill,cryptoBrowserify.randomFillSync=A.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var jsonSafeStringify=stringifyExports,crypto$1=requireCryptoBrowserify(),Buffer=safeBufferExports$1.Buffer,defer=typeof setImmediate>"u"?process$1.nextTick:setImmediate;function paramsHaveRequestBody$1(t){return t.body||t.requestBodyStream||t.json&&typeof t.json!="boolean"||t.multipart}function safeStringify(t,n){var l;try{l=JSON.stringify(t,n)}catch{l=jsonSafeStringify(t,n)}return l}function md5(t){return crypto$1.createHash("md5").update(t).digest("hex")}function isReadStream(t){return t.readable&&t.path&&t.mode}function toBase64(t){return Buffer.from(t||"","utf8").toString("base64")}function copy(t){var n={};return Object.keys(t).forEach(function(l){n[l]=t[l]}),n}function version(){var t=process$1.version.replace("v","").split(".");return{major:parseInt(t[0],10),minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}helpers$1.paramsHaveRequestBody=paramsHaveRequestBody$1,helpers$1.safeStringify=safeStringify,helpers$1.md5=md5,helpers$1.isReadStream=isReadStream,helpers$1.toBase64=toBase64,helpers$1.copy=copy,helpers$1.version=version,helpers$1.defer=defer;var streamHttp={},request$3={exports:{}},capability={},hasRequiredCapability;function requireCapability(){return hasRequiredCapability||(hasRequiredCapability=1,function(t){t.fetch=m(commonjsGlobal.fetch)&&m(commonjsGlobal.ReadableStream),t.writableStream=m(commonjsGlobal.WritableStream),t.abortController=m(commonjsGlobal.AbortController);var n;function l(){if(n!==void 0)return n;if(commonjsGlobal.XMLHttpRequest){n=new commonjsGlobal.XMLHttpRequest;try{n.open("GET",commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{n=null}}else n=null;return n}function d(h){var S=l();if(!S)return!1;try{return S.responseType=h,S.responseType===h}catch{}return!1}t.arraybuffer=t.fetch||d("arraybuffer"),t.msstream=!t.fetch&&d("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&d("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||(l()?m(l().overrideMimeType):!1);function m(h){return typeof h=="function"}n=null}(capability)),capability}var response={},readableBrowser={exports:{}},hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,function(t,n){n=t.exports=require_stream_readable$1(),n.Stream=n,n.Readable=n,n.Writable=require_stream_writable$1(),n.Duplex=require_stream_duplex$1(),n.Transform=require_stream_transform(),n.PassThrough=require_stream_passthrough(),n.finished=requireEndOfStream(),n.pipeline=requirePipeline()}(readableBrowser,readableBrowser.exports)),readableBrowser.exports}var hasRequiredResponse;function requireResponse(){if(hasRequiredResponse)return response;hasRequiredResponse=1;var t=requireCapability(),n=inherits_browserExports,l=requireReadableBrowser(),d=response.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},m=response.IncomingMessage=function(h,S,k,A){var B=this;if(l.Readable.call(B),B._mode=k,B.headers={},B.rawHeaders=[],B.trailers={},B.rawTrailers=[],B.on("end",function(){process$1.nextTick(function(){B.emit("close")})}),k==="fetch"){let z=function(){j.read().then(function(N){if(!B._destroyed){if(A(N.done),N.done){B.push(null);return}B.push(Buffer$C.from(N.value)),z()}}).catch(function(N){A(!0),B._destroyed||B.emit("error",N)})};if(B._fetchResponse=S,B.url=S.url,B.statusCode=S.status,B.statusMessage=S.statusText,S.headers.forEach(function(N,F){B.headers[F.toLowerCase()]=N,B.rawHeaders.push(F,N)}),t.writableStream){var M=new WritableStream({write:function(N){return A(!1),new Promise(function(F,U){B._destroyed?U():B.push(Buffer$C.from(N))?F():B._resumeFetch=F})},close:function(){A(!0),B._destroyed||B.push(null)},abort:function(N){A(!0),B._destroyed||B.emit("error",N)}});try{S.body.pipeTo(M).catch(function(N){A(!0),B._destroyed||B.emit("error",N)});return}catch{}}var j=S.body.getReader();z()}else{B._xhr=h,B._pos=0,B.url=h.responseURL,B.statusCode=h.status,B.statusMessage=h.statusText;var I=h.getAllResponseHeaders().split(/\r?\n/);if(I.forEach(function(z){var N=z.match(/^([^:]+):\s*(.*)/);if(N){var F=N[1].toLowerCase();F==="set-cookie"?(B.headers[F]===void 0&&(B.headers[F]=[]),B.headers[F].push(N[2])):B.headers[F]!==void 0?B.headers[F]+=", "+N[2]:B.headers[F]=N[2],B.rawHeaders.push(N[1],N[2])}}),B._charset="x-user-defined",!t.overrideMimeType){var P=B.rawHeaders["mime-type"];if(P){var $=P.match(/;\s*charset=([^;])(;|$)/);$&&(B._charset=$[1].toLowerCase())}B._charset||(B._charset="utf-8")}}};return n(m,l.Readable),m.prototype._read=function(){var h=this,S=h._resumeFetch;S&&(h._resumeFetch=null,S())},m.prototype._onXHRProgress=function(h){var S=this,k=S._xhr,A=null;switch(S._mode){case"text":if(A=k.responseText,A.length>S._pos){var B=A.substr(S._pos);if(S._charset==="x-user-defined"){for(var M=Buffer$C.alloc(B.length),j=0;j<B.length;j++)M[j]=B.charCodeAt(j)&255;S.push(M)}else S.push(B,S._charset);S._pos=A.length}break;case"arraybuffer":if(k.readyState!==d.DONE||!k.response)break;A=k.response,S.push(Buffer$C.from(new Uint8Array(A)));break;case"moz-chunked-arraybuffer":if(A=k.response,k.readyState!==d.LOADING||!A)break;S.push(Buffer$C.from(new Uint8Array(A)));break;case"ms-stream":if(A=k.response,k.readyState!==d.LOADING)break;var I=new commonjsGlobal.MSStreamReader;I.onprogress=function(){I.result.byteLength>S._pos&&(S.push(Buffer$C.from(new Uint8Array(I.result.slice(S._pos)))),S._pos=I.result.byteLength)},I.onload=function(){h(!0),S.push(null)},I.readAsArrayBuffer(A);break}S._xhr.readyState===d.DONE&&S._mode!=="ms-stream"&&(h(!0),S.push(null))},response}var hasRequiredRequest$1;function requireRequest$1(){if(hasRequiredRequest$1)return request$3.exports;hasRequiredRequest$1=1;var t=requireCapability(),n=inherits_browserExports,l=requireResponse(),d=requireReadableBrowser(),m=l.IncomingMessage,h=l.readyStates;function S(M,j){return t.fetch&&j?"fetch":t.mozchunkedarraybuffer?"moz-chunked-arraybuffer":t.msstream?"ms-stream":t.arraybuffer&&M?"arraybuffer":"text"}var k=request$3.exports=function(M){var j=this;d.Writable.call(j),j._opts=M,j._body=[],j._headers={},M.auth&&j.setHeader("Authorization","Basic "+Buffer$C.from(M.auth).toString("base64")),Object.keys(M.headers).forEach(function($){j.setHeader($,M.headers[$])});var I,P=!0;if(M.mode==="disable-fetch"||"requestTimeout"in M&&!t.abortController)P=!1,I=!0;else if(M.mode==="prefer-streaming")I=!1;else if(M.mode==="allow-wrong-content-type")I=!t.overrideMimeType;else if(!M.mode||M.mode==="default"||M.mode==="prefer-fast")I=!0;else throw new Error("Invalid value for opts.mode");j._mode=S(I,P),j._fetchTimer=null,j._socketTimeout=null,j._socketTimer=null,j.on("finish",function(){j._onFinish()})};n(k,d.Writable),k.prototype.setHeader=function(M,j){var I=this,P=M.toLowerCase();B.indexOf(P)===-1&&(I._headers[P]={name:M,value:j})},k.prototype.getHeader=function(M){var j=this._headers[M.toLowerCase()];return j?j.value:null},k.prototype.removeHeader=function(M){var j=this;delete j._headers[M.toLowerCase()]},k.prototype._onFinish=function(){var M=this;if(!M._destroyed){var j=M._opts;"timeout"in j&&j.timeout!==0&&M.setTimeout(j.timeout);var I=M._headers,P=null;j.method!=="GET"&&j.method!=="HEAD"&&(P=new Blob(M._body,{type:(I["content-type"]||{}).value||""}));var $=[];if(Object.keys(I).forEach(function(U){var J=I[U].name,te=I[U].value;Array.isArray(te)?te.forEach(function(se){$.push([J,se])}):$.push([J,te])}),M._mode==="fetch"){var z=null;if(t.abortController){var N=new AbortController;z=N.signal,M._fetchAbortController=N,"requestTimeout"in j&&j.requestTimeout!==0&&(M._fetchTimer=commonjsGlobal.setTimeout(function(){M.emit("requestTimeout"),M._fetchAbortController&&M._fetchAbortController.abort()},j.requestTimeout))}commonjsGlobal.fetch(M._opts.url,{method:M._opts.method,headers:$,body:P||void 0,mode:"cors",credentials:j.withCredentials?"include":"same-origin",signal:z}).then(function(U){M._fetchResponse=U,M._resetTimers(!1),M._connect()},function(U){M._resetTimers(!0),M._destroyed||M.emit("error",U)})}else{var F=M._xhr=new commonjsGlobal.XMLHttpRequest;try{F.open(M._opts.method,M._opts.url,!0)}catch(U){process$1.nextTick(function(){M.emit("error",U)});return}"responseType"in F&&(F.responseType=M._mode),"withCredentials"in F&&(F.withCredentials=!!j.withCredentials),M._mode==="text"&&"overrideMimeType"in F&&F.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in j&&(F.timeout=j.requestTimeout,F.ontimeout=function(){M.emit("requestTimeout")}),$.forEach(function(U){F.setRequestHeader(U[0],U[1])}),M._response=null,F.onreadystatechange=function(){switch(F.readyState){case h.LOADING:case h.DONE:M._onXHRProgress();break}},M._mode==="moz-chunked-arraybuffer"&&(F.onprogress=function(){M._onXHRProgress()}),F.onerror=function(){M._destroyed||(M._resetTimers(!0),M.emit("error",new Error("XHR error")))};try{F.send(P)}catch(U){process$1.nextTick(function(){M.emit("error",U)});return}}}};function A(M){try{var j=M.status;return j!==null&&j!==0}catch{return!1}}k.prototype._onXHRProgress=function(){var M=this;M._resetTimers(!1),!(!A(M._xhr)||M._destroyed)&&(M._response||M._connect(),M._response._onXHRProgress(M._resetTimers.bind(M)))},k.prototype._connect=function(){var M=this;M._destroyed||(M._response=new m(M._xhr,M._fetchResponse,M._mode,M._resetTimers.bind(M)),M._response.on("error",function(j){M.emit("error",j)}),M.emit("response",M._response))},k.prototype._write=function(M,j,I){var P=this;P._body.push(M),I()},k.prototype._resetTimers=function(M){var j=this;commonjsGlobal.clearTimeout(j._socketTimer),j._socketTimer=null,M?(commonjsGlobal.clearTimeout(j._fetchTimer),j._fetchTimer=null):j._socketTimeout&&(j._socketTimer=commonjsGlobal.setTimeout(function(){j.emit("timeout")},j._socketTimeout))},k.prototype.abort=k.prototype.destroy=function(M){var j=this;j._destroyed=!0,j._resetTimers(!0),j._response&&(j._response._destroyed=!0),j._xhr?j._xhr.abort():j._fetchAbortController&&j._fetchAbortController.abort(),M&&j.emit("error",M)},k.prototype.end=function(M,j,I){var P=this;typeof M=="function"&&(I=M,M=void 0),d.Writable.prototype.end.call(P,M,j,I)},k.prototype.setTimeout=function(M,j){var I=this;j&&I.once("timeout",j),I._socketTimeout=M,I._resetTimers(!1)},k.prototype.flushHeaders=function(){},k.prototype.setNoDelay=function(){},k.prototype.setSocketKeepAlive=function(){};var B=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return request$3.exports}var immutable,hasRequiredImmutable;function requireImmutable(){if(hasRequiredImmutable)return immutable;hasRequiredImmutable=1,immutable=n;var t=Object.prototype.hasOwnProperty;function n(){for(var l={},d=0;d<arguments.length;d++){var m=arguments[d];for(var h in m)t.call(m,h)&&(l[h]=m[h])}return l}return immutable}var browser$1,hasRequiredBrowser$1;function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,browser$1={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),browser$1}var hasRequiredStreamHttp;function requireStreamHttp(){return hasRequiredStreamHttp||(hasRequiredStreamHttp=1,function(t){var n=requireRequest$1(),l=requireResponse(),d=requireImmutable(),m=requireBrowser$1(),h=require$$2$2,S=t;S.request=function(k,A){typeof k=="string"?k=h.parse(k):k=d(k);var B=commonjsGlobal.location.protocol.search(/^https?:$/)===-1?"http:":"",M=k.protocol||B,j=k.hostname||k.host,I=k.port,P=k.path||"/";j&&j.indexOf(":")!==-1&&(j="["+j+"]"),k.url=(j?M+"//"+j:"")+(I?":"+I:"")+P,k.method=(k.method||"GET").toUpperCase(),k.headers=k.headers||{};var $=new n(k);return A&&$.on("response",A),$},S.get=function(A,B){var M=S.request(A,B);return M.end(),M},S.ClientRequest=n,S.IncomingMessage=l.IncomingMessage,S.Agent=function(){},S.Agent.defaultMaxSockets=4,S.globalAgent=new S.Agent,S.STATUS_CODES=m,S.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(streamHttp)),streamHttp}var httpsBrowserify={exports:{}},hasRequiredHttpsBrowserify;function requireHttpsBrowserify(){return hasRequiredHttpsBrowserify||(hasRequiredHttpsBrowserify=1,function(t){var n=requireStreamHttp(),l=require$$2$2,d=t.exports;for(var m in n)n.hasOwnProperty(m)&&(d[m]=n[m]);d.request=function(S,k){return S=h(S),n.request.call(this,S,k)},d.get=function(S,k){return S=h(S),n.get.call(this,S,k)};function h(S){if(typeof S=="string"&&(S=l.parse(S)),S.protocol||(S.protocol="https:"),S.protocol!=="https:")throw new Error('Protocol "'+S.protocol+'" not supported. Expected "https:"');return S}}(httpsBrowserify)),httpsBrowserify.exports}var lib$5={},binding={},assert={exports:{}},errors$2={},hasRequiredErrors$2;function requireErrors$2(){if(hasRequiredErrors$2)return errors$2;hasRequiredErrors$2=1;function t(U){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},t(U)}function n(U,J,te){return Object.defineProperty(U,"prototype",{writable:!1}),U}function l(U,J){if(!(U instanceof J))throw new TypeError("Cannot call a class as a function")}function d(U,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(J&&J.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),Object.defineProperty(U,"prototype",{writable:!1}),J&&m(U,J)}function m(U,J){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(se,de){return se.__proto__=de,se},m(U,J)}function h(U){var J=A();return function(){var se=B(U),de;if(J){var Q=B(this).constructor;de=Reflect.construct(se,arguments,Q)}else de=se.apply(this,arguments);return S(this,de)}}function S(U,J){if(J&&(t(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(U)}function k(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function B(U){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(te){return te.__proto__||Object.getPrototypeOf(te)},B(U)}var M={},j,I;function P(U,J,te){te||(te=Error);function se(Q,ve,he){return typeof J=="string"?J:J(Q,ve,he)}var de=function(Q){d(he,Q);var ve=h(he);function he(ke,T,u){var p;return l(this,he),p=ve.call(this,se(ke,T,u)),p.code=U,p}return n(he)}(te);M[U]=de}function $(U,J){if(Array.isArray(U)){var te=U.length;return U=U.map(function(se){return String(se)}),te>2?"one of ".concat(J," ").concat(U.slice(0,te-1).join(", "),", or ")+U[te-1]:te===2?"one of ".concat(J," ").concat(U[0]," or ").concat(U[1]):"of ".concat(J," ").concat(U[0])}else return"of ".concat(J," ").concat(String(U))}function z(U,J,te){return U.substr(0,J.length)===J}function N(U,J,te){return(te===void 0||te>U.length)&&(te=U.length),U.substring(te-J.length,te)===J}function F(U,J,te){return typeof te!="number"&&(te=0),te+J.length>U.length?!1:U.indexOf(J,te)!==-1}return P("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),P("ERR_INVALID_ARG_TYPE",function(U,J,te){j===void 0&&(j=requireAssert$1()),j(typeof U=="string","'name' must be a string");var se;typeof J=="string"&&z(J,"not ")?(se="must not be",J=J.replace(/^not /,"")):se="must be";var de;if(N(U," argument"))de="The ".concat(U," ").concat(se," ").concat($(J,"type"));else{var Q=F(U,".")?"property":"argument";de='The "'.concat(U,'" ').concat(Q," ").concat(se," ").concat($(J,"type"))}return de+=". Received type ".concat(t(te)),de},TypeError),P("ERR_INVALID_ARG_VALUE",function(U,J){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";I===void 0&&(I=util$6);var se=I.inspect(J);return se.length>128&&(se="".concat(se.slice(0,128),"...")),"The argument '".concat(U,"' ").concat(te,". Received ").concat(se)},TypeError),P("ERR_INVALID_RETURN_VALUE",function(U,J,te){var se;return te&&te.constructor&&te.constructor.name?se="instance of ".concat(te.constructor.name):se="type ".concat(t(te)),"Expected ".concat(U,' to be returned from the "').concat(J,'"')+" function but got ".concat(se,".")},TypeError),P("ERR_MISSING_ARGS",function(){for(var U=arguments.length,J=new Array(U),te=0;te<U;te++)J[te]=arguments[te];j===void 0&&(j=requireAssert$1()),j(J.length>0,"At least one arg needs to be specified");var se="The ",de=J.length;switch(J=J.map(function(Q){return'"'.concat(Q,'"')}),de){case 1:se+="".concat(J[0]," argument");break;case 2:se+="".concat(J[0]," and ").concat(J[1]," arguments");break;default:se+=J.slice(0,de-1).join(", "),se+=", and ".concat(J[de-1]," arguments");break}return"".concat(se," must be specified")},TypeError),errors$2.codes=M,errors$2}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function t(v,o){var x=Object.keys(v);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(v);o&&(E=E.filter(function(R){return Object.getOwnPropertyDescriptor(v,R).enumerable})),x.push.apply(x,E)}return x}function n(v){for(var o=1;o<arguments.length;o++){var x=arguments[o]!=null?arguments[o]:{};o%2?t(Object(x),!0).forEach(function(E){l(v,E,x[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(x)):t(Object(x)).forEach(function(E){Object.defineProperty(v,E,Object.getOwnPropertyDescriptor(x,E))})}return v}function l(v,o,x){return o=S(o),o in v?Object.defineProperty(v,o,{value:x,enumerable:!0,configurable:!0,writable:!0}):v[o]=x,v}function d(v,o){if(!(v instanceof o))throw new TypeError("Cannot call a class as a function")}function m(v,o){for(var x=0;x<o.length;x++){var E=o[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(v,S(E.key),E)}}function h(v,o,x){return o&&m(v.prototype,o),Object.defineProperty(v,"prototype",{writable:!1}),v}function S(v){var o=k(v,"string");return U(o)==="symbol"?o:String(o)}function k(v,o){if(U(v)!=="object"||v===null)return v;var x=v[Symbol.toPrimitive];if(x!==void 0){var E=x.call(v,o||"default");if(U(E)!=="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(v)}function A(v,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(o&&o.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),o&&N(v,o)}function B(v){var o=$();return function(){var E=F(v),R;if(o){var H=F(this).constructor;R=Reflect.construct(E,arguments,H)}else R=E.apply(this,arguments);return M(this,R)}}function M(v,o){if(o&&(U(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j(v)}function j(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function I(v){var o=typeof Map=="function"?new Map:void 0;return I=function(E){if(E===null||!z(E))return E;if(typeof E!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o<"u"){if(o.has(E))return o.get(E);o.set(E,R)}function R(){return P(E,arguments,F(this).constructor)}return R.prototype=Object.create(E.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),N(R,E)},I(v)}function P(v,o,x){return $()?P=Reflect.construct.bind():P=function(R,H,Y){var Z=[null];Z.push.apply(Z,H);var L=Function.bind.apply(R,Z),D=new L;return Y&&N(D,Y.prototype),D},P.apply(null,arguments)}function $(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function z(v){return Function.toString.call(v).indexOf("[native code]")!==-1}function N(v,o){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,R){return E.__proto__=R,E},N(v,o)}function F(v){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(x){return x.__proto__||Object.getPrototypeOf(x)},F(v)}function U(v){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},U(v)}var J=util$6,te=J.inspect,se=requireErrors$2(),de=se.codes.ERR_INVALID_ARG_TYPE;function Q(v,o,x){return(x===void 0||x>v.length)&&(x=v.length),v.substring(x-o.length,x)===o}function ve(v,o){if(o=Math.floor(o),v.length==0||o==0)return"";var x=v.length*o;for(o=Math.floor(Math.log(o)/Math.log(2));o;)v+=v,o--;return v+=v.substring(0,x-v.length),v}var he="",ke="",T="",u="",p={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},b=10;function e(v){var o=Object.keys(v),x=Object.create(Object.getPrototypeOf(v));return o.forEach(function(E){x[E]=v[E]}),Object.defineProperty(x,"message",{value:v.message}),x}function c(v){return te(v,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function y(v,o,x){var E="",R="",H=0,Y="",Z=!1,L=c(v),D=L.split(`
`),ee=c(o).split(`
`),oe=0,fe="";if(x==="strictEqual"&&U(v)==="object"&&U(o)==="object"&&v!==null&&o!==null&&(x="strictEqualObject"),D.length===1&&ee.length===1&&D[0]!==ee[0]){var ue=D[0].length+ee[0].length;if(ue<=b){if((U(v)!=="object"||v===null)&&(U(o)!=="object"||o===null)&&(v!==0||o!==0))return"".concat(p[x],`

`)+"".concat(D[0]," !== ").concat(ee[0],`
`)}else if(x!=="strictEqualObject"){var qe=process$1.stderr&&process$1.stderr.isTTY?process$1.stderr.columns:80;if(ue<qe){for(;D[0][oe]===ee[0][oe];)oe++;oe>2&&(fe=`
  `.concat(ve(" ",oe),"^"),oe=0)}}}for(var rt=D[D.length-1],Ve=ee[ee.length-1];rt===Ve&&(oe++<2?Y=`
  `.concat(rt).concat(Y):E=rt,D.pop(),ee.pop(),!(D.length===0||ee.length===0));)rt=D[D.length-1],Ve=ee[ee.length-1];var et=Math.max(D.length,ee.length);if(et===0){var mt=L.split(`
`);if(mt.length>30)for(mt[26]="".concat(he,"...").concat(u);mt.length>27;)mt.pop();return"".concat(p.notIdentical,`

`).concat(mt.join(`
`),`
`)}oe>3&&(Y=`
`.concat(he,"...").concat(u).concat(Y),Z=!0),E!==""&&(Y=`
  `.concat(E).concat(Y),E="");var Ye=0,We=p[x]+`
`.concat(ke,"+ actual").concat(u," ").concat(T,"- expected").concat(u),Xe=" ".concat(he,"...").concat(u," Lines skipped");for(oe=0;oe<et;oe++){var Ge=oe-H;if(D.length<oe+1)Ge>1&&oe>2&&(Ge>4?(R+=`
`.concat(he,"...").concat(u),Z=!0):Ge>3&&(R+=`
  `.concat(ee[oe-2]),Ye++),R+=`
  `.concat(ee[oe-1]),Ye++),H=oe,E+=`
`.concat(T,"-").concat(u," ").concat(ee[oe]),Ye++;else if(ee.length<oe+1)Ge>1&&oe>2&&(Ge>4?(R+=`
`.concat(he,"...").concat(u),Z=!0):Ge>3&&(R+=`
  `.concat(D[oe-2]),Ye++),R+=`
  `.concat(D[oe-1]),Ye++),H=oe,R+=`
`.concat(ke,"+").concat(u," ").concat(D[oe]),Ye++;else{var nt=ee[oe],Et=D[oe],Le=Et!==nt&&(!Q(Et,",")||Et.slice(0,-1)!==nt);Le&&Q(nt,",")&&nt.slice(0,-1)===Et&&(Le=!1,Et+=","),Le?(Ge>1&&oe>2&&(Ge>4?(R+=`
`.concat(he,"...").concat(u),Z=!0):Ge>3&&(R+=`
  `.concat(D[oe-2]),Ye++),R+=`
  `.concat(D[oe-1]),Ye++),H=oe,R+=`
`.concat(ke,"+").concat(u," ").concat(Et),E+=`
`.concat(T,"-").concat(u," ").concat(nt),Ye+=2):(R+=E,E="",(Ge===1||oe===0)&&(R+=`
  `.concat(Et),Ye++))}if(Ye>20&&oe<et-2)return"".concat(We).concat(Xe,`
`).concat(R,`
`).concat(he,"...").concat(u).concat(E,`
`)+"".concat(he,"...").concat(u)}return"".concat(We).concat(Z?Xe:"",`
`).concat(R).concat(E).concat(Y).concat(fe)}var w=function(v,o){A(E,v);var x=B(E);function E(R){var H;if(d(this,E),U(R)!=="object"||R===null)throw new de("options","Object",R);var Y=R.message,Z=R.operator,L=R.stackStartFn,D=R.actual,ee=R.expected,oe=Error.stackTraceLimit;if(Error.stackTraceLimit=0,Y!=null)H=x.call(this,String(Y));else if(process$1.stderr&&process$1.stderr.isTTY&&(process$1.stderr&&process$1.stderr.getColorDepth&&process$1.stderr.getColorDepth()!==1?(he="\x1B[34m",ke="\x1B[32m",u="\x1B[39m",T="\x1B[31m"):(he="",ke="",u="",T="")),U(D)==="object"&&D!==null&&U(ee)==="object"&&ee!==null&&"stack"in D&&D instanceof Error&&"stack"in ee&&ee instanceof Error&&(D=e(D),ee=e(ee)),Z==="deepStrictEqual"||Z==="strictEqual")H=x.call(this,y(D,ee,Z));else if(Z==="notDeepStrictEqual"||Z==="notStrictEqual"){var fe=p[Z],ue=c(D).split(`
`);if(Z==="notStrictEqual"&&U(D)==="object"&&D!==null&&(fe=p.notStrictEqualObject),ue.length>30)for(ue[26]="".concat(he,"...").concat(u);ue.length>27;)ue.pop();ue.length===1?H=x.call(this,"".concat(fe," ").concat(ue[0])):H=x.call(this,"".concat(fe,`

`).concat(ue.join(`
`),`
`))}else{var qe=c(D),rt="",Ve=p[Z];Z==="notDeepEqual"||Z==="notEqual"?(qe="".concat(p[Z],`

`).concat(qe),qe.length>1024&&(qe="".concat(qe.slice(0,1021),"..."))):(rt="".concat(c(ee)),qe.length>512&&(qe="".concat(qe.slice(0,509),"...")),rt.length>512&&(rt="".concat(rt.slice(0,509),"...")),Z==="deepEqual"||Z==="equal"?qe="".concat(Ve,`

`).concat(qe,`

should equal

`):rt=" ".concat(Z," ").concat(rt)),H=x.call(this,"".concat(qe).concat(rt))}return Error.stackTraceLimit=oe,H.generatedMessage=!Y,Object.defineProperty(j(H),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),H.code="ERR_ASSERTION",H.actual=D,H.expected=ee,H.operator=Z,Error.captureStackTrace&&Error.captureStackTrace(j(H),L),H.stack,H.name="AssertionError",M(H)}return h(E,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:o,value:function(H,Y){return te(this,n(n({},Y),{},{customInspect:!1,depth:0}))}}]),E}(I(Error),te.custom);return assertion_error=w,assertion_error}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var t=Object.prototype.toString;return isArguments=function(l){var d=t.call(l),m=d==="[object Arguments]";return m||(m=d!=="[object Array]"&&l!==null&&typeof l=="object"&&typeof l.length=="number"&&l.length>=0&&t.call(l.callee)==="[object Function]"),m},isArguments}var implementation$3,hasRequiredImplementation$3;function requireImplementation$3(){if(hasRequiredImplementation$3)return implementation$3;hasRequiredImplementation$3=1;var t;if(!Object.keys){var n=Object.prototype.hasOwnProperty,l=Object.prototype.toString,d=requireIsArguments(),m=Object.prototype.propertyIsEnumerable,h=!m.call({toString:null},"toString"),S=m.call(function(){},"prototype"),k=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],A=function(I){var P=I.constructor;return P&&P.prototype===I},B={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},M=function(){if(typeof window>"u")return!1;for(var I in window)try{if(!B["$"+I]&&n.call(window,I)&&window[I]!==null&&typeof window[I]=="object")try{A(window[I])}catch{return!0}}catch{return!0}return!1}(),j=function(I){if(typeof window>"u"||!M)return A(I);try{return A(I)}catch{return!1}};t=function(P){var $=P!==null&&typeof P=="object",z=l.call(P)==="[object Function]",N=d(P),F=$&&l.call(P)==="[object String]",U=[];if(!$&&!z&&!N)throw new TypeError("Object.keys called on a non-object");var J=S&&z;if(F&&P.length>0&&!n.call(P,0))for(var te=0;te<P.length;++te)U.push(String(te));if(N&&P.length>0)for(var se=0;se<P.length;++se)U.push(String(se));else for(var de in P)!(J&&de==="prototype")&&n.call(P,de)&&U.push(String(de));if(h)for(var Q=j(P),ve=0;ve<k.length;++ve)!(Q&&k[ve]==="constructor")&&n.call(P,k[ve])&&U.push(k[ve]);return U}}return implementation$3=t,implementation$3}var objectKeys,hasRequiredObjectKeys;function requireObjectKeys(){if(hasRequiredObjectKeys)return objectKeys;hasRequiredObjectKeys=1;var t=Array.prototype.slice,n=requireIsArguments(),l=Object.keys,d=l?function(S){return l(S)}:requireImplementation$3(),m=Object.keys;return d.shim=function(){if(Object.keys){var S=function(){var k=Object.keys(arguments);return k&&k.length===arguments.length}(1,2);S||(Object.keys=function(A){return n(A)?m(t.call(A)):m(A)})}else Object.keys=d;return Object.keys||d},objectKeys=d,objectKeys}var implementation$2,hasRequiredImplementation$2;function requireImplementation$2(){if(hasRequiredImplementation$2)return implementation$2;hasRequiredImplementation$2=1;var t=requireObjectKeys(),n=shams$1(),l=callBound$2,d=Object,m=l("Array.prototype.push"),h=l("Object.prototype.propertyIsEnumerable"),S=n?Object.getOwnPropertySymbols:null;return implementation$2=function(A,B){if(A==null)throw new TypeError("target must be an object");var M=d(A);if(arguments.length===1)return M;for(var j=1;j<arguments.length;++j){var I=d(arguments[j]),P=t(I),$=n&&(Object.getOwnPropertySymbols||S);if($)for(var z=$(I),N=0;N<z.length;++N){var F=z[N];h(I,F)&&m(P,F)}for(var U=0;U<P.length;++U){var J=P[U];if(h(I,J)){var te=I[J];M[J]=te}}}return M},implementation$2}var polyfill$2,hasRequiredPolyfill$2;function requirePolyfill$2(){if(hasRequiredPolyfill$2)return polyfill$2;hasRequiredPolyfill$2=1;var t=requireImplementation$2(),n=function(){if(!Object.assign)return!1;for(var d="abcdefghijklmnopqrst",m=d.split(""),h={},S=0;S<m.length;++S)h[m[S]]=m[S];var k=Object.assign({},h),A="";for(var B in k)A+=B;return d!==A},l=function(){if(!Object.assign||!Object.preventExtensions)return!1;var d=Object.preventExtensions({1:2});try{Object.assign(d,"xy")}catch{return d[1]==="y"}return!1};return polyfill$2=function(){return!Object.assign||n()||l()?t:Object.assign},polyfill$2}var implementation$1,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$1;hasRequiredImplementation$1=1;var t=function(n){return n!==n};return implementation$1=function(l,d){return l===0&&d===0?1/l===1/d:!!(l===d||t(l)&&t(d))},implementation$1}var polyfill$1,hasRequiredPolyfill$1;function requirePolyfill$1(){if(hasRequiredPolyfill$1)return polyfill$1;hasRequiredPolyfill$1=1;var t=requireImplementation$1();return polyfill$1=function(){return typeof Object.is=="function"?Object.is:t},polyfill$1}var defineProperties_1,hasRequiredDefineProperties;function requireDefineProperties(){if(hasRequiredDefineProperties)return defineProperties_1;hasRequiredDefineProperties=1;var t=requireObjectKeys(),n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",l=Object.prototype.toString,d=Array.prototype.concat,m=defineDataProperty,h=function(B){return typeof B=="function"&&l.call(B)==="[object Function]"},S=hasPropertyDescriptors_1(),k=function(B,M,j,I){if(M in B){if(I===!0){if(B[M]===j)return}else if(!h(I)||!I())return}S?m(B,M,j,!0):m(B,M,j)},A=function(B,M){var j=arguments.length>2?arguments[2]:{},I=t(M);n&&(I=d.call(I,Object.getOwnPropertySymbols(M)));for(var P=0;P<I.length;P+=1)k(B,I[P],M[I[P]],j[I[P]])};return A.supportsDescriptors=!!S,defineProperties_1=A,defineProperties_1}var shim$1,hasRequiredShim$1;function requireShim$1(){if(hasRequiredShim$1)return shim$1;hasRequiredShim$1=1;var t=requirePolyfill$1(),n=requireDefineProperties();return shim$1=function(){var d=t();return n(Object,{is:d},{is:function(){return Object.is!==d}}),d},shim$1}var objectIs,hasRequiredObjectIs;function requireObjectIs(){if(hasRequiredObjectIs)return objectIs;hasRequiredObjectIs=1;var t=requireDefineProperties(),n=callBindExports,l=requireImplementation$1(),d=requirePolyfill$1(),m=requireShim$1(),h=n(d(),Object);return t(h,{getPolyfill:d,implementation:l,shim:m}),objectIs=h,objectIs}var implementation,hasRequiredImplementation;function requireImplementation(){return hasRequiredImplementation||(hasRequiredImplementation=1,implementation=function(n){return n!==n}),implementation}var polyfill,hasRequiredPolyfill;function requirePolyfill(){if(hasRequiredPolyfill)return polyfill;hasRequiredPolyfill=1;var t=requireImplementation();return polyfill=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:t},polyfill}var shim,hasRequiredShim;function requireShim(){if(hasRequiredShim)return shim;hasRequiredShim=1;var t=requireDefineProperties(),n=requirePolyfill();return shim=function(){var d=n();return t(Number,{isNaN:d},{isNaN:function(){return Number.isNaN!==d}}),d},shim}var isNan,hasRequiredIsNan;function requireIsNan(){if(hasRequiredIsNan)return isNan;hasRequiredIsNan=1;var t=callBindExports,n=requireDefineProperties(),l=requireImplementation(),d=requirePolyfill(),m=requireShim(),h=t(d(),Number);return n(h,{getPolyfill:d,implementation:l,shim:m}),isNan=h,isNan}var comparisons,hasRequiredComparisons;function requireComparisons(){if(hasRequiredComparisons)return comparisons;hasRequiredComparisons=1;function t(Le,Oe){return h(Le)||m(Le,Oe)||l(Le,Oe)||n()}function n(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l(Le,Oe){if(Le){if(typeof Le=="string")return d(Le,Oe);var $t=Object.prototype.toString.call(Le).slice(8,-1);if($t==="Object"&&Le.constructor&&($t=Le.constructor.name),$t==="Map"||$t==="Set")return Array.from(Le);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return d(Le,Oe)}}function d(Le,Oe){(Oe==null||Oe>Le.length)&&(Oe=Le.length);for(var $t=0,dt=new Array(Oe);$t<Oe;$t++)dt[$t]=Le[$t];return dt}function m(Le,Oe){var $t=Le==null?null:typeof Symbol<"u"&&Le[Symbol.iterator]||Le["@@iterator"];if($t!=null){var dt,gt,Lt,xe,X=[],pe=!0,je=!1;try{if(Lt=($t=$t.call(Le)).next,Oe!==0)for(;!(pe=(dt=Lt.call($t)).done)&&(X.push(dt.value),X.length!==Oe);pe=!0);}catch($e){je=!0,gt=$e}finally{try{if(!pe&&$t.return!=null&&(xe=$t.return(),Object(xe)!==xe))return}finally{if(je)throw gt}}return X}}function h(Le){if(Array.isArray(Le))return Le}function S(Le){"@babel/helpers - typeof";return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},S(Le)}var k=/a/g.flags!==void 0,A=function(Oe){var $t=[];return Oe.forEach(function(dt){return $t.push(dt)}),$t},B=function(Oe){var $t=[];return Oe.forEach(function(dt,gt){return $t.push([gt,dt])}),$t},M=Object.is?Object.is:requireObjectIs(),j=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},I=Number.isNaN?Number.isNaN:requireIsNan();function P(Le){return Le.call.bind(Le)}var $=P(Object.prototype.hasOwnProperty),z=P(Object.prototype.propertyIsEnumerable),N=P(Object.prototype.toString),F=util$6.types,U=F.isAnyArrayBuffer,J=F.isArrayBufferView,te=F.isDate,se=F.isMap,de=F.isRegExp,Q=F.isSet,ve=F.isNativeError,he=F.isBoxedPrimitive,ke=F.isNumberObject,T=F.isStringObject,u=F.isBooleanObject,p=F.isBigIntObject,b=F.isSymbolObject,e=F.isFloat32Array,c=F.isFloat64Array;function y(Le){if(Le.length===0||Le.length>10)return!0;for(var Oe=0;Oe<Le.length;Oe++){var $t=Le.charCodeAt(Oe);if($t<48||$t>57)return!0}return Le.length===10&&Le>=Math.pow(2,32)}function w(Le){return Object.keys(Le).filter(y).concat(j(Le).filter(Object.prototype.propertyIsEnumerable.bind(Le)))}/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function v(Le,Oe){if(Le===Oe)return 0;for(var $t=Le.length,dt=Oe.length,gt=0,Lt=Math.min($t,dt);gt<Lt;++gt)if(Le[gt]!==Oe[gt]){$t=Le[gt],dt=Oe[gt];break}return $t<dt?-1:dt<$t?1:0}var o=!0,x=!1,E=0,R=1,H=2,Y=3;function Z(Le,Oe){return k?Le.source===Oe.source&&Le.flags===Oe.flags:RegExp.prototype.toString.call(Le)===RegExp.prototype.toString.call(Oe)}function L(Le,Oe){if(Le.byteLength!==Oe.byteLength)return!1;for(var $t=0;$t<Le.byteLength;$t++)if(Le[$t]!==Oe[$t])return!1;return!0}function D(Le,Oe){return Le.byteLength!==Oe.byteLength?!1:v(new Uint8Array(Le.buffer,Le.byteOffset,Le.byteLength),new Uint8Array(Oe.buffer,Oe.byteOffset,Oe.byteLength))===0}function ee(Le,Oe){return Le.byteLength===Oe.byteLength&&v(new Uint8Array(Le),new Uint8Array(Oe))===0}function oe(Le,Oe){return ke(Le)?ke(Oe)&&M(Number.prototype.valueOf.call(Le),Number.prototype.valueOf.call(Oe)):T(Le)?T(Oe)&&String.prototype.valueOf.call(Le)===String.prototype.valueOf.call(Oe):u(Le)?u(Oe)&&Boolean.prototype.valueOf.call(Le)===Boolean.prototype.valueOf.call(Oe):p(Le)?p(Oe)&&BigInt.prototype.valueOf.call(Le)===BigInt.prototype.valueOf.call(Oe):b(Oe)&&Symbol.prototype.valueOf.call(Le)===Symbol.prototype.valueOf.call(Oe)}function fe(Le,Oe,$t,dt){if(Le===Oe)return Le!==0?!0:$t?M(Le,Oe):!0;if($t){if(S(Le)!=="object")return typeof Le=="number"&&I(Le)&&I(Oe);if(S(Oe)!=="object"||Le===null||Oe===null||Object.getPrototypeOf(Le)!==Object.getPrototypeOf(Oe))return!1}else{if(Le===null||S(Le)!=="object")return Oe===null||S(Oe)!=="object"?Le==Oe:!1;if(Oe===null||S(Oe)!=="object")return!1}var gt=N(Le),Lt=N(Oe);if(gt!==Lt)return!1;if(Array.isArray(Le)){if(Le.length!==Oe.length)return!1;var xe=w(Le),X=w(Oe);return xe.length!==X.length?!1:qe(Le,Oe,$t,dt,R,xe)}if(gt==="[object Object]"&&(!se(Le)&&se(Oe)||!Q(Le)&&Q(Oe)))return!1;if(te(Le)){if(!te(Oe)||Date.prototype.getTime.call(Le)!==Date.prototype.getTime.call(Oe))return!1}else if(de(Le)){if(!de(Oe)||!Z(Le,Oe))return!1}else if(ve(Le)||Le instanceof Error){if(Le.message!==Oe.message||Le.name!==Oe.name)return!1}else if(J(Le)){if(!$t&&(e(Le)||c(Le))){if(!L(Le,Oe))return!1}else if(!D(Le,Oe))return!1;var pe=w(Le),je=w(Oe);return pe.length!==je.length?!1:qe(Le,Oe,$t,dt,E,pe)}else{if(Q(Le))return!Q(Oe)||Le.size!==Oe.size?!1:qe(Le,Oe,$t,dt,H);if(se(Le))return!se(Oe)||Le.size!==Oe.size?!1:qe(Le,Oe,$t,dt,Y);if(U(Le)){if(!ee(Le,Oe))return!1}else if(he(Le)&&!oe(Le,Oe))return!1}return qe(Le,Oe,$t,dt,E)}function ue(Le,Oe){return Oe.filter(function($t){return z(Le,$t)})}function qe(Le,Oe,$t,dt,gt,Lt){if(arguments.length===5){Lt=Object.keys(Le);var xe=Object.keys(Oe);if(Lt.length!==xe.length)return!1}for(var X=0;X<Lt.length;X++)if(!$(Oe,Lt[X]))return!1;if($t&&arguments.length===5){var pe=j(Le);if(pe.length!==0){var je=0;for(X=0;X<pe.length;X++){var $e=pe[X];if(z(Le,$e)){if(!z(Oe,$e))return!1;Lt.push($e),je++}else if(z(Oe,$e))return!1}var He=j(Oe);if(pe.length!==He.length&&ue(Oe,He).length!==je)return!1}else{var Fe=j(Oe);if(Fe.length!==0&&ue(Oe,Fe).length!==0)return!1}}if(Lt.length===0&&(gt===E||gt===R&&Le.length===0||Le.size===0))return!0;if(dt===void 0)dt={val1:new Map,val2:new Map,position:0};else{var Me=dt.val1.get(Le);if(Me!==void 0){var Rt=dt.val2.get(Oe);if(Rt!==void 0)return Me===Rt}dt.position++}dt.val1.set(Le,dt.position),dt.val2.set(Oe,dt.position);var yt=Ge(Le,Oe,$t,Lt,dt,gt);return dt.val1.delete(Le),dt.val2.delete(Oe),yt}function rt(Le,Oe,$t,dt){for(var gt=A(Le),Lt=0;Lt<gt.length;Lt++){var xe=gt[Lt];if(fe(Oe,xe,$t,dt))return Le.delete(xe),!0}return!1}function Ve(Le){switch(S(Le)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":Le=+Le;case"number":if(I(Le))return!1}return!0}function et(Le,Oe,$t){var dt=Ve($t);return dt??(Oe.has(dt)&&!Le.has(dt))}function mt(Le,Oe,$t,dt,gt){var Lt=Ve($t);if(Lt!=null)return Lt;var xe=Oe.get(Lt);return xe===void 0&&!Oe.has(Lt)||!fe(dt,xe,!1,gt)?!1:!Le.has(Lt)&&fe(dt,xe,!1,gt)}function Ye(Le,Oe,$t,dt){for(var gt=null,Lt=A(Le),xe=0;xe<Lt.length;xe++){var X=Lt[xe];if(S(X)==="object"&&X!==null)gt===null&&(gt=new Set),gt.add(X);else if(!Oe.has(X)){if($t||!et(Le,Oe,X))return!1;gt===null&&(gt=new Set),gt.add(X)}}if(gt!==null){for(var pe=A(Oe),je=0;je<pe.length;je++){var $e=pe[je];if(S($e)==="object"&&$e!==null){if(!rt(gt,$e,$t,dt))return!1}else if(!$t&&!Le.has($e)&&!rt(gt,$e,$t,dt))return!1}return gt.size===0}return!0}function We(Le,Oe,$t,dt,gt,Lt){for(var xe=A(Le),X=0;X<xe.length;X++){var pe=xe[X];if(fe($t,pe,gt,Lt)&&fe(dt,Oe.get(pe),gt,Lt))return Le.delete(pe),!0}return!1}function Xe(Le,Oe,$t,dt){for(var gt=null,Lt=B(Le),xe=0;xe<Lt.length;xe++){var X=t(Lt[xe],2),pe=X[0],je=X[1];if(S(pe)==="object"&&pe!==null)gt===null&&(gt=new Set),gt.add(pe);else{var $e=Oe.get(pe);if($e===void 0&&!Oe.has(pe)||!fe(je,$e,$t,dt)){if($t||!mt(Le,Oe,pe,je,dt))return!1;gt===null&&(gt=new Set),gt.add(pe)}}}if(gt!==null){for(var He=B(Oe),Fe=0;Fe<He.length;Fe++){var Me=t(He[Fe],2),Rt=Me[0],yt=Me[1];if(S(Rt)==="object"&&Rt!==null){if(!We(gt,Le,Rt,yt,$t,dt))return!1}else if(!$t&&(!Le.has(Rt)||!fe(Le.get(Rt),yt,!1,dt))&&!We(gt,Le,Rt,yt,!1,dt))return!1}return gt.size===0}return!0}function Ge(Le,Oe,$t,dt,gt,Lt){var xe=0;if(Lt===H){if(!Ye(Le,Oe,$t,gt))return!1}else if(Lt===Y){if(!Xe(Le,Oe,$t,gt))return!1}else if(Lt===R)for(;xe<Le.length;xe++)if($(Le,xe)){if(!$(Oe,xe)||!fe(Le[xe],Oe[xe],$t,gt))return!1}else{if($(Oe,xe))return!1;for(var X=Object.keys(Le);xe<X.length;xe++){var pe=X[xe];if(!$(Oe,pe)||!fe(Le[pe],Oe[pe],$t,gt))return!1}return X.length===Object.keys(Oe).length}for(xe=0;xe<dt.length;xe++){var je=dt[xe];if(!fe(Le[je],Oe[je],$t,gt))return!1}return!0}function nt(Le,Oe){return fe(Le,Oe,x)}function Et(Le,Oe){return fe(Le,Oe,o)}return comparisons={isDeepEqual:nt,isDeepStrictEqual:Et},comparisons}var hasRequiredAssert$1;function requireAssert$1(){if(hasRequiredAssert$1)return assert.exports;hasRequiredAssert$1=1;function t(H){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},t(H)}function n(H,Y,Z){return Object.defineProperty(H,"prototype",{writable:!1}),H}function l(H,Y){if(!(H instanceof Y))throw new TypeError("Cannot call a class as a function")}var d=requireErrors$2(),m=d.codes,h=m.ERR_AMBIGUOUS_ARGUMENT,S=m.ERR_INVALID_ARG_TYPE,k=m.ERR_INVALID_ARG_VALUE,A=m.ERR_INVALID_RETURN_VALUE,B=m.ERR_MISSING_ARGS,M=requireAssertion_error(),j=util$6,I=j.inspect,P=util$6.types,$=P.isPromise,z=P.isRegExp,N=requirePolyfill$2()(),F=requirePolyfill$1()(),U=callBound$2("RegExp.prototype.test"),J,te;function se(){var H=requireComparisons();J=H.isDeepEqual,te=H.isDeepStrictEqual}var de=!1,Q=assert.exports=u,ve={};function he(H){throw H.message instanceof Error?H.message:new M(H)}function ke(H,Y,Z,L,D){var ee=arguments.length,oe;if(ee===0)oe="Failed";else if(ee===1)Z=H,H=void 0;else{if(de===!1){de=!0;var fe=process$1.emitWarning?process$1.emitWarning:console.warn.bind(console);fe("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}ee===2&&(L="!=")}if(Z instanceof Error)throw Z;var ue={actual:H,expected:Y,operator:L===void 0?"fail":L,stackStartFn:D||ke};Z!==void 0&&(ue.message=Z);var qe=new M(ue);throw oe&&(qe.message=oe,qe.generatedMessage=!0),qe}Q.fail=ke,Q.AssertionError=M;function T(H,Y,Z,L){if(!Z){var D=!1;if(Y===0)D=!0,L="No value argument passed to `assert.ok()`";else if(L instanceof Error)throw L;var ee=new M({actual:Z,expected:!0,message:L,operator:"==",stackStartFn:H});throw ee.generatedMessage=D,ee}}function u(){for(var H=arguments.length,Y=new Array(H),Z=0;Z<H;Z++)Y[Z]=arguments[Z];T.apply(void 0,[u,Y.length].concat(Y))}Q.ok=u,Q.equal=function H(Y,Z,L){if(arguments.length<2)throw new B("actual","expected");Y!=Z&&he({actual:Y,expected:Z,message:L,operator:"==",stackStartFn:H})},Q.notEqual=function H(Y,Z,L){if(arguments.length<2)throw new B("actual","expected");Y==Z&&he({actual:Y,expected:Z,message:L,operator:"!=",stackStartFn:H})},Q.deepEqual=function H(Y,Z,L){if(arguments.length<2)throw new B("actual","expected");J===void 0&&se(),J(Y,Z)||he({actual:Y,expected:Z,message:L,operator:"deepEqual",stackStartFn:H})},Q.notDeepEqual=function H(Y,Z,L){if(arguments.length<2)throw new B("actual","expected");J===void 0&&se(),J(Y,Z)&&he({actual:Y,expected:Z,message:L,operator:"notDeepEqual",stackStartFn:H})},Q.deepStrictEqual=function H(Y,Z,L){if(arguments.length<2)throw new B("actual","expected");J===void 0&&se(),te(Y,Z)||he({actual:Y,expected:Z,message:L,operator:"deepStrictEqual",stackStartFn:H})},Q.notDeepStrictEqual=p;function p(H,Y,Z){if(arguments.length<2)throw new B("actual","expected");J===void 0&&se(),te(H,Y)&&he({actual:H,expected:Y,message:Z,operator:"notDeepStrictEqual",stackStartFn:p})}Q.strictEqual=function H(Y,Z,L){if(arguments.length<2)throw new B("actual","expected");F(Y,Z)||he({actual:Y,expected:Z,message:L,operator:"strictEqual",stackStartFn:H})},Q.notStrictEqual=function H(Y,Z,L){if(arguments.length<2)throw new B("actual","expected");F(Y,Z)&&he({actual:Y,expected:Z,message:L,operator:"notStrictEqual",stackStartFn:H})};var b=n(function H(Y,Z,L){var D=this;l(this,H),Z.forEach(function(ee){ee in Y&&(L!==void 0&&typeof L[ee]=="string"&&z(Y[ee])&&U(Y[ee],L[ee])?D[ee]=L[ee]:D[ee]=Y[ee])})});function e(H,Y,Z,L,D,ee){if(!(Z in H)||!te(H[Z],Y[Z])){if(!L){var oe=new b(H,D),fe=new b(Y,D,H),ue=new M({actual:oe,expected:fe,operator:"deepStrictEqual",stackStartFn:ee});throw ue.actual=H,ue.expected=Y,ue.operator=ee.name,ue}he({actual:H,expected:Y,message:L,operator:ee.name,stackStartFn:ee})}}function c(H,Y,Z,L){if(typeof Y!="function"){if(z(Y))return U(Y,H);if(arguments.length===2)throw new S("expected",["Function","RegExp"],Y);if(t(H)!=="object"||H===null){var D=new M({actual:H,expected:Y,message:Z,operator:"deepStrictEqual",stackStartFn:L});throw D.operator=L.name,D}var ee=Object.keys(Y);if(Y instanceof Error)ee.push("name","message");else if(ee.length===0)throw new k("error",Y,"may not be an empty object");return J===void 0&&se(),ee.forEach(function(oe){typeof H[oe]=="string"&&z(Y[oe])&&U(Y[oe],H[oe])||e(H,Y,oe,Z,ee,L)}),!0}return Y.prototype!==void 0&&H instanceof Y?!0:Error.isPrototypeOf(Y)?!1:Y.call({},H)===!0}function y(H){if(typeof H!="function")throw new S("fn","Function",H);try{H()}catch(Y){return Y}return ve}function w(H){return $(H)||H!==null&&t(H)==="object"&&typeof H.then=="function"&&typeof H.catch=="function"}function v(H){return Promise.resolve().then(function(){var Y;if(typeof H=="function"){if(Y=H(),!w(Y))throw new A("instance of Promise","promiseFn",Y)}else if(w(H))Y=H;else throw new S("promiseFn",["Function","Promise"],H);return Promise.resolve().then(function(){return Y}).then(function(){return ve}).catch(function(Z){return Z})})}function o(H,Y,Z,L){if(typeof Z=="string"){if(arguments.length===4)throw new S("error",["Object","Error","Function","RegExp"],Z);if(t(Y)==="object"&&Y!==null){if(Y.message===Z)throw new h("error/message",'The error message "'.concat(Y.message,'" is identical to the message.'))}else if(Y===Z)throw new h("error/message",'The error "'.concat(Y,'" is identical to the message.'));L=Z,Z=void 0}else if(Z!=null&&t(Z)!=="object"&&typeof Z!="function")throw new S("error",["Object","Error","Function","RegExp"],Z);if(Y===ve){var D="";Z&&Z.name&&(D+=" (".concat(Z.name,")")),D+=L?": ".concat(L):".";var ee=H.name==="rejects"?"rejection":"exception";he({actual:void 0,expected:Z,operator:H.name,message:"Missing expected ".concat(ee).concat(D),stackStartFn:H})}if(Z&&!c(Y,Z,L,H))throw Y}function x(H,Y,Z,L){if(Y!==ve){if(typeof Z=="string"&&(L=Z,Z=void 0),!Z||c(Y,Z)){var D=L?": ".concat(L):".",ee=H.name==="doesNotReject"?"rejection":"exception";he({actual:Y,expected:Z,operator:H.name,message:"Got unwanted ".concat(ee).concat(D,`
`)+'Actual message: "'.concat(Y&&Y.message,'"'),stackStartFn:H})}throw Y}}Q.throws=function H(Y){for(var Z=arguments.length,L=new Array(Z>1?Z-1:0),D=1;D<Z;D++)L[D-1]=arguments[D];o.apply(void 0,[H,y(Y)].concat(L))},Q.rejects=function H(Y){for(var Z=arguments.length,L=new Array(Z>1?Z-1:0),D=1;D<Z;D++)L[D-1]=arguments[D];return v(Y).then(function(ee){return o.apply(void 0,[H,ee].concat(L))})},Q.doesNotThrow=function H(Y){for(var Z=arguments.length,L=new Array(Z>1?Z-1:0),D=1;D<Z;D++)L[D-1]=arguments[D];x.apply(void 0,[H,y(Y)].concat(L))},Q.doesNotReject=function H(Y){for(var Z=arguments.length,L=new Array(Z>1?Z-1:0),D=1;D<Z;D++)L[D-1]=arguments[D];return v(Y).then(function(ee){return x.apply(void 0,[H,ee].concat(L))})},Q.ifError=function H(Y){if(Y!=null){var Z="ifError got unwanted exception: ";t(Y)==="object"&&typeof Y.message=="string"?Y.message.length===0&&Y.constructor?Z+=Y.constructor.name:Z+=Y.message:Z+=I(Y);var L=new M({actual:Y,expected:null,operator:"ifError",message:Z,stackStartFn:H}),D=Y.stack;if(typeof D=="string"){var ee=D.split(`
`);ee.shift();for(var oe=L.stack.split(`
`),fe=0;fe<ee.length;fe++){var ue=oe.indexOf(ee[fe]);if(ue!==-1){oe=oe.slice(0,ue);break}}L.stack="".concat(oe.join(`
`),`
`).concat(ee.join(`
`))}throw L}};function E(H,Y,Z,L,D){if(!z(Y))throw new S("regexp","RegExp",Y);var ee=D==="match";if(typeof H!="string"||U(Y,H)!==ee){if(Z instanceof Error)throw Z;var oe=!Z;Z=Z||(typeof H!="string"?'The "string" argument must be of type string. Received type '+"".concat(t(H)," (").concat(I(H),")"):(ee?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(I(Y),`. Input:

`).concat(I(H),`
`));var fe=new M({actual:H,expected:Y,message:Z,operator:D,stackStartFn:L});throw fe.generatedMessage=oe,fe}}Q.match=function H(Y,Z,L){E(Y,Z,L,H,"match")},Q.doesNotMatch=function H(Y,Z,L){E(Y,Z,L,H,"doesNotMatch")};function R(){for(var H=arguments.length,Y=new Array(H),Z=0;Z<H;Z++)Y[Z]=arguments[Z];T.apply(void 0,[R,Y.length].concat(Y))}return Q.strict=N(R,Q,{equal:Q.strictEqual,deepEqual:Q.deepStrictEqual,notEqual:Q.notStrictEqual,notDeepEqual:Q.notDeepStrictEqual}),Q.strict.strict=Q.strict,assert.exports}var zstream,hasRequiredZstream;function requireZstream(){if(hasRequiredZstream)return zstream;hasRequiredZstream=1;function t(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return zstream=t,zstream}var deflate={},common={},hasRequiredCommon;function requireCommon(){return hasRequiredCommon||(hasRequiredCommon=1,function(t){var n=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function l(h,S){return Object.prototype.hasOwnProperty.call(h,S)}t.assign=function(h){for(var S=Array.prototype.slice.call(arguments,1);S.length;){var k=S.shift();if(k){if(typeof k!="object")throw new TypeError(k+"must be non-object");for(var A in k)l(k,A)&&(h[A]=k[A])}}return h},t.shrinkBuf=function(h,S){return h.length===S?h:h.subarray?h.subarray(0,S):(h.length=S,h)};var d={arraySet:function(h,S,k,A,B){if(S.subarray&&h.subarray){h.set(S.subarray(k,k+A),B);return}for(var M=0;M<A;M++)h[B+M]=S[k+M]},flattenChunks:function(h){var S,k,A,B,M,j;for(A=0,S=0,k=h.length;S<k;S++)A+=h[S].length;for(j=new Uint8Array(A),B=0,S=0,k=h.length;S<k;S++)M=h[S],j.set(M,B),B+=M.length;return j}},m={arraySet:function(h,S,k,A,B){for(var M=0;M<A;M++)h[B+M]=S[k+M]},flattenChunks:function(h){return[].concat.apply([],h)}};t.setTyped=function(h){h?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,d)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,m))},t.setTyped(n)}(common)),common}var trees={},hasRequiredTrees;function requireTrees(){if(hasRequiredTrees)return trees;hasRequiredTrees=1;var t=requireCommon(),n=4,l=0,d=1,m=2;function h(X){for(var pe=X.length;--pe>=0;)X[pe]=0}var S=0,k=1,A=2,B=3,M=258,j=29,I=256,P=I+1+j,$=30,z=19,N=2*P+1,F=15,U=16,J=7,te=256,se=16,de=17,Q=18,ve=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],he=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ke=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=512,p=new Array((P+2)*2);h(p);var b=new Array($*2);h(b);var e=new Array(u);h(e);var c=new Array(M-B+1);h(c);var y=new Array(j);h(y);var w=new Array($);h(w);function v(X,pe,je,$e,He){this.static_tree=X,this.extra_bits=pe,this.extra_base=je,this.elems=$e,this.max_length=He,this.has_stree=X&&X.length}var o,x,E;function R(X,pe){this.dyn_tree=X,this.max_code=0,this.stat_desc=pe}function H(X){return X<256?e[X]:e[256+(X>>>7)]}function Y(X,pe){X.pending_buf[X.pending++]=pe&255,X.pending_buf[X.pending++]=pe>>>8&255}function Z(X,pe,je){X.bi_valid>U-je?(X.bi_buf|=pe<<X.bi_valid&65535,Y(X,X.bi_buf),X.bi_buf=pe>>U-X.bi_valid,X.bi_valid+=je-U):(X.bi_buf|=pe<<X.bi_valid&65535,X.bi_valid+=je)}function L(X,pe,je){Z(X,je[pe*2],je[pe*2+1])}function D(X,pe){var je=0;do je|=X&1,X>>>=1,je<<=1;while(--pe>0);return je>>>1}function ee(X){X.bi_valid===16?(Y(X,X.bi_buf),X.bi_buf=0,X.bi_valid=0):X.bi_valid>=8&&(X.pending_buf[X.pending++]=X.bi_buf&255,X.bi_buf>>=8,X.bi_valid-=8)}function oe(X,pe){var je=pe.dyn_tree,$e=pe.max_code,He=pe.stat_desc.static_tree,Fe=pe.stat_desc.has_stree,Me=pe.stat_desc.extra_bits,Rt=pe.stat_desc.extra_base,yt=pe.stat_desc.max_length,le,wt,at,Be,ot,tt,kt=0;for(Be=0;Be<=F;Be++)X.bl_count[Be]=0;for(je[X.heap[X.heap_max]*2+1]=0,le=X.heap_max+1;le<N;le++)wt=X.heap[le],Be=je[je[wt*2+1]*2+1]+1,Be>yt&&(Be=yt,kt++),je[wt*2+1]=Be,!(wt>$e)&&(X.bl_count[Be]++,ot=0,wt>=Rt&&(ot=Me[wt-Rt]),tt=je[wt*2],X.opt_len+=tt*(Be+ot),Fe&&(X.static_len+=tt*(He[wt*2+1]+ot)));if(kt!==0){do{for(Be=yt-1;X.bl_count[Be]===0;)Be--;X.bl_count[Be]--,X.bl_count[Be+1]+=2,X.bl_count[yt]--,kt-=2}while(kt>0);for(Be=yt;Be!==0;Be--)for(wt=X.bl_count[Be];wt!==0;)at=X.heap[--le],!(at>$e)&&(je[at*2+1]!==Be&&(X.opt_len+=(Be-je[at*2+1])*je[at*2],je[at*2+1]=Be),wt--)}}function fe(X,pe,je){var $e=new Array(F+1),He=0,Fe,Me;for(Fe=1;Fe<=F;Fe++)$e[Fe]=He=He+je[Fe-1]<<1;for(Me=0;Me<=pe;Me++){var Rt=X[Me*2+1];Rt!==0&&(X[Me*2]=D($e[Rt]++,Rt))}}function ue(){var X,pe,je,$e,He,Fe=new Array(F+1);for(je=0,$e=0;$e<j-1;$e++)for(y[$e]=je,X=0;X<1<<ve[$e];X++)c[je++]=$e;for(c[je-1]=$e,He=0,$e=0;$e<16;$e++)for(w[$e]=He,X=0;X<1<<he[$e];X++)e[He++]=$e;for(He>>=7;$e<$;$e++)for(w[$e]=He<<7,X=0;X<1<<he[$e]-7;X++)e[256+He++]=$e;for(pe=0;pe<=F;pe++)Fe[pe]=0;for(X=0;X<=143;)p[X*2+1]=8,X++,Fe[8]++;for(;X<=255;)p[X*2+1]=9,X++,Fe[9]++;for(;X<=279;)p[X*2+1]=7,X++,Fe[7]++;for(;X<=287;)p[X*2+1]=8,X++,Fe[8]++;for(fe(p,P+1,Fe),X=0;X<$;X++)b[X*2+1]=5,b[X*2]=D(X,5);o=new v(p,ve,I+1,P,F),x=new v(b,he,0,$,F),E=new v(new Array(0),ke,0,z,J)}function qe(X){var pe;for(pe=0;pe<P;pe++)X.dyn_ltree[pe*2]=0;for(pe=0;pe<$;pe++)X.dyn_dtree[pe*2]=0;for(pe=0;pe<z;pe++)X.bl_tree[pe*2]=0;X.dyn_ltree[te*2]=1,X.opt_len=X.static_len=0,X.last_lit=X.matches=0}function rt(X){X.bi_valid>8?Y(X,X.bi_buf):X.bi_valid>0&&(X.pending_buf[X.pending++]=X.bi_buf),X.bi_buf=0,X.bi_valid=0}function Ve(X,pe,je,$e){rt(X),Y(X,je),Y(X,~je),t.arraySet(X.pending_buf,X.window,pe,je,X.pending),X.pending+=je}function et(X,pe,je,$e){var He=pe*2,Fe=je*2;return X[He]<X[Fe]||X[He]===X[Fe]&&$e[pe]<=$e[je]}function mt(X,pe,je){for(var $e=X.heap[je],He=je<<1;He<=X.heap_len&&(He<X.heap_len&&et(pe,X.heap[He+1],X.heap[He],X.depth)&&He++,!et(pe,$e,X.heap[He],X.depth));)X.heap[je]=X.heap[He],je=He,He<<=1;X.heap[je]=$e}function Ye(X,pe,je){var $e,He,Fe=0,Me,Rt;if(X.last_lit!==0)do $e=X.pending_buf[X.d_buf+Fe*2]<<8|X.pending_buf[X.d_buf+Fe*2+1],He=X.pending_buf[X.l_buf+Fe],Fe++,$e===0?L(X,He,pe):(Me=c[He],L(X,Me+I+1,pe),Rt=ve[Me],Rt!==0&&(He-=y[Me],Z(X,He,Rt)),$e--,Me=H($e),L(X,Me,je),Rt=he[Me],Rt!==0&&($e-=w[Me],Z(X,$e,Rt)));while(Fe<X.last_lit);L(X,te,pe)}function We(X,pe){var je=pe.dyn_tree,$e=pe.stat_desc.static_tree,He=pe.stat_desc.has_stree,Fe=pe.stat_desc.elems,Me,Rt,yt=-1,le;for(X.heap_len=0,X.heap_max=N,Me=0;Me<Fe;Me++)je[Me*2]!==0?(X.heap[++X.heap_len]=yt=Me,X.depth[Me]=0):je[Me*2+1]=0;for(;X.heap_len<2;)le=X.heap[++X.heap_len]=yt<2?++yt:0,je[le*2]=1,X.depth[le]=0,X.opt_len--,He&&(X.static_len-=$e[le*2+1]);for(pe.max_code=yt,Me=X.heap_len>>1;Me>=1;Me--)mt(X,je,Me);le=Fe;do Me=X.heap[1],X.heap[1]=X.heap[X.heap_len--],mt(X,je,1),Rt=X.heap[1],X.heap[--X.heap_max]=Me,X.heap[--X.heap_max]=Rt,je[le*2]=je[Me*2]+je[Rt*2],X.depth[le]=(X.depth[Me]>=X.depth[Rt]?X.depth[Me]:X.depth[Rt])+1,je[Me*2+1]=je[Rt*2+1]=le,X.heap[1]=le++,mt(X,je,1);while(X.heap_len>=2);X.heap[--X.heap_max]=X.heap[1],oe(X,pe),fe(je,yt,X.bl_count)}function Xe(X,pe,je){var $e,He=-1,Fe,Me=pe[0*2+1],Rt=0,yt=7,le=4;for(Me===0&&(yt=138,le=3),pe[(je+1)*2+1]=65535,$e=0;$e<=je;$e++)Fe=Me,Me=pe[($e+1)*2+1],!(++Rt<yt&&Fe===Me)&&(Rt<le?X.bl_tree[Fe*2]+=Rt:Fe!==0?(Fe!==He&&X.bl_tree[Fe*2]++,X.bl_tree[se*2]++):Rt<=10?X.bl_tree[de*2]++:X.bl_tree[Q*2]++,Rt=0,He=Fe,Me===0?(yt=138,le=3):Fe===Me?(yt=6,le=3):(yt=7,le=4))}function Ge(X,pe,je){var $e,He=-1,Fe,Me=pe[0*2+1],Rt=0,yt=7,le=4;for(Me===0&&(yt=138,le=3),$e=0;$e<=je;$e++)if(Fe=Me,Me=pe[($e+1)*2+1],!(++Rt<yt&&Fe===Me)){if(Rt<le)do L(X,Fe,X.bl_tree);while(--Rt!==0);else Fe!==0?(Fe!==He&&(L(X,Fe,X.bl_tree),Rt--),L(X,se,X.bl_tree),Z(X,Rt-3,2)):Rt<=10?(L(X,de,X.bl_tree),Z(X,Rt-3,3)):(L(X,Q,X.bl_tree),Z(X,Rt-11,7));Rt=0,He=Fe,Me===0?(yt=138,le=3):Fe===Me?(yt=6,le=3):(yt=7,le=4)}}function nt(X){var pe;for(Xe(X,X.dyn_ltree,X.l_desc.max_code),Xe(X,X.dyn_dtree,X.d_desc.max_code),We(X,X.bl_desc),pe=z-1;pe>=3&&X.bl_tree[T[pe]*2+1]===0;pe--);return X.opt_len+=3*(pe+1)+5+5+4,pe}function Et(X,pe,je,$e){var He;for(Z(X,pe-257,5),Z(X,je-1,5),Z(X,$e-4,4),He=0;He<$e;He++)Z(X,X.bl_tree[T[He]*2+1],3);Ge(X,X.dyn_ltree,pe-1),Ge(X,X.dyn_dtree,je-1)}function Le(X){var pe=4093624447,je;for(je=0;je<=31;je++,pe>>>=1)if(pe&1&&X.dyn_ltree[je*2]!==0)return l;if(X.dyn_ltree[9*2]!==0||X.dyn_ltree[10*2]!==0||X.dyn_ltree[13*2]!==0)return d;for(je=32;je<I;je++)if(X.dyn_ltree[je*2]!==0)return d;return l}var Oe=!1;function $t(X){Oe||(ue(),Oe=!0),X.l_desc=new R(X.dyn_ltree,o),X.d_desc=new R(X.dyn_dtree,x),X.bl_desc=new R(X.bl_tree,E),X.bi_buf=0,X.bi_valid=0,qe(X)}function dt(X,pe,je,$e){Z(X,(S<<1)+($e?1:0),3),Ve(X,pe,je)}function gt(X){Z(X,k<<1,3),L(X,te,p),ee(X)}function Lt(X,pe,je,$e){var He,Fe,Me=0;X.level>0?(X.strm.data_type===m&&(X.strm.data_type=Le(X)),We(X,X.l_desc),We(X,X.d_desc),Me=nt(X),He=X.opt_len+3+7>>>3,Fe=X.static_len+3+7>>>3,Fe<=He&&(He=Fe)):He=Fe=je+5,je+4<=He&&pe!==-1?dt(X,pe,je,$e):X.strategy===n||Fe===He?(Z(X,(k<<1)+($e?1:0),3),Ye(X,p,b)):(Z(X,(A<<1)+($e?1:0),3),Et(X,X.l_desc.max_code+1,X.d_desc.max_code+1,Me+1),Ye(X,X.dyn_ltree,X.dyn_dtree)),qe(X),$e&&rt(X)}function xe(X,pe,je){return X.pending_buf[X.d_buf+X.last_lit*2]=pe>>>8&255,X.pending_buf[X.d_buf+X.last_lit*2+1]=pe&255,X.pending_buf[X.l_buf+X.last_lit]=je&255,X.last_lit++,pe===0?X.dyn_ltree[je*2]++:(X.matches++,pe--,X.dyn_ltree[(c[je]+I+1)*2]++,X.dyn_dtree[H(pe)*2]++),X.last_lit===X.lit_bufsize-1}return trees._tr_init=$t,trees._tr_stored_block=dt,trees._tr_flush_block=Lt,trees._tr_tally=xe,trees._tr_align=gt,trees}var adler32_1,hasRequiredAdler32;function requireAdler32(){if(hasRequiredAdler32)return adler32_1;hasRequiredAdler32=1;function t(n,l,d,m){for(var h=n&65535|0,S=n>>>16&65535|0,k=0;d!==0;){k=d>2e3?2e3:d,d-=k;do h=h+l[m++]|0,S=S+h|0;while(--k);h%=65521,S%=65521}return h|S<<16|0}return adler32_1=t,adler32_1}var crc32_1,hasRequiredCrc32;function requireCrc32(){if(hasRequiredCrc32)return crc32_1;hasRequiredCrc32=1;function t(){for(var d,m=[],h=0;h<256;h++){d=h;for(var S=0;S<8;S++)d=d&1?3988292384^d>>>1:d>>>1;m[h]=d}return m}var n=t();function l(d,m,h,S){var k=n,A=S+h;d^=-1;for(var B=S;B<A;B++)d=d>>>8^k[(d^m[B])&255];return d^-1}return crc32_1=l,crc32_1}var messages,hasRequiredMessages;function requireMessages(){return hasRequiredMessages||(hasRequiredMessages=1,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),messages}var hasRequiredDeflate;function requireDeflate(){if(hasRequiredDeflate)return deflate;hasRequiredDeflate=1;var t=requireCommon(),n=requireTrees(),l=requireAdler32(),d=requireCrc32(),m=requireMessages(),h=0,S=1,k=3,A=4,B=5,M=0,j=1,I=-2,P=-3,$=-5,z=-1,N=1,F=2,U=3,J=4,te=0,se=2,de=8,Q=9,ve=15,he=8,ke=29,T=256,u=T+1+ke,p=30,b=19,e=2*u+1,c=15,y=3,w=258,v=w+y+1,o=32,x=42,E=69,R=73,H=91,Y=103,Z=113,L=666,D=1,ee=2,oe=3,fe=4,ue=3;function qe(le,wt){return le.msg=m[wt],wt}function rt(le){return(le<<1)-(le>4?9:0)}function Ve(le){for(var wt=le.length;--wt>=0;)le[wt]=0}function et(le){var wt=le.state,at=wt.pending;at>le.avail_out&&(at=le.avail_out),at!==0&&(t.arraySet(le.output,wt.pending_buf,wt.pending_out,at,le.next_out),le.next_out+=at,wt.pending_out+=at,le.total_out+=at,le.avail_out-=at,wt.pending-=at,wt.pending===0&&(wt.pending_out=0))}function mt(le,wt){n._tr_flush_block(le,le.block_start>=0?le.block_start:-1,le.strstart-le.block_start,wt),le.block_start=le.strstart,et(le.strm)}function Ye(le,wt){le.pending_buf[le.pending++]=wt}function We(le,wt){le.pending_buf[le.pending++]=wt>>>8&255,le.pending_buf[le.pending++]=wt&255}function Xe(le,wt,at,Be){var ot=le.avail_in;return ot>Be&&(ot=Be),ot===0?0:(le.avail_in-=ot,t.arraySet(wt,le.input,le.next_in,ot,at),le.state.wrap===1?le.adler=l(le.adler,wt,ot,at):le.state.wrap===2&&(le.adler=d(le.adler,wt,ot,at)),le.next_in+=ot,le.total_in+=ot,ot)}function Ge(le,wt){var at=le.max_chain_length,Be=le.strstart,ot,tt,kt=le.prev_length,Yt=le.nice_match,pt=le.strstart>le.w_size-v?le.strstart-(le.w_size-v):0,It=le.window,Fr=le.w_mask,Pt=le.prev,Ot=le.strstart+w,Te=It[Be+kt-1],me=It[Be+kt];le.prev_length>=le.good_match&&(at>>=2),Yt>le.lookahead&&(Yt=le.lookahead);do if(ot=wt,!(It[ot+kt]!==me||It[ot+kt-1]!==Te||It[ot]!==It[Be]||It[++ot]!==It[Be+1])){Be+=2,ot++;do;while(It[++Be]===It[++ot]&&It[++Be]===It[++ot]&&It[++Be]===It[++ot]&&It[++Be]===It[++ot]&&It[++Be]===It[++ot]&&It[++Be]===It[++ot]&&It[++Be]===It[++ot]&&It[++Be]===It[++ot]&&Be<Ot);if(tt=w-(Ot-Be),Be=Ot-w,tt>kt){if(le.match_start=wt,kt=tt,tt>=Yt)break;Te=It[Be+kt-1],me=It[Be+kt]}}while((wt=Pt[wt&Fr])>pt&&--at!==0);return kt<=le.lookahead?kt:le.lookahead}function nt(le){var wt=le.w_size,at,Be,ot,tt,kt;do{if(tt=le.window_size-le.lookahead-le.strstart,le.strstart>=wt+(wt-v)){t.arraySet(le.window,le.window,wt,wt,0),le.match_start-=wt,le.strstart-=wt,le.block_start-=wt,Be=le.hash_size,at=Be;do ot=le.head[--at],le.head[at]=ot>=wt?ot-wt:0;while(--Be);Be=wt,at=Be;do ot=le.prev[--at],le.prev[at]=ot>=wt?ot-wt:0;while(--Be);tt+=wt}if(le.strm.avail_in===0)break;if(Be=Xe(le.strm,le.window,le.strstart+le.lookahead,tt),le.lookahead+=Be,le.lookahead+le.insert>=y)for(kt=le.strstart-le.insert,le.ins_h=le.window[kt],le.ins_h=(le.ins_h<<le.hash_shift^le.window[kt+1])&le.hash_mask;le.insert&&(le.ins_h=(le.ins_h<<le.hash_shift^le.window[kt+y-1])&le.hash_mask,le.prev[kt&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=kt,kt++,le.insert--,!(le.lookahead+le.insert<y)););}while(le.lookahead<v&&le.strm.avail_in!==0)}function Et(le,wt){var at=65535;for(at>le.pending_buf_size-5&&(at=le.pending_buf_size-5);;){if(le.lookahead<=1){if(nt(le),le.lookahead===0&&wt===h)return D;if(le.lookahead===0)break}le.strstart+=le.lookahead,le.lookahead=0;var Be=le.block_start+at;if((le.strstart===0||le.strstart>=Be)&&(le.lookahead=le.strstart-Be,le.strstart=Be,mt(le,!1),le.strm.avail_out===0)||le.strstart-le.block_start>=le.w_size-v&&(mt(le,!1),le.strm.avail_out===0))return D}return le.insert=0,wt===A?(mt(le,!0),le.strm.avail_out===0?oe:fe):(le.strstart>le.block_start&&(mt(le,!1),le.strm.avail_out===0),D)}function Le(le,wt){for(var at,Be;;){if(le.lookahead<v){if(nt(le),le.lookahead<v&&wt===h)return D;if(le.lookahead===0)break}if(at=0,le.lookahead>=y&&(le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+y-1])&le.hash_mask,at=le.prev[le.strstart&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=le.strstart),at!==0&&le.strstart-at<=le.w_size-v&&(le.match_length=Ge(le,at)),le.match_length>=y)if(Be=n._tr_tally(le,le.strstart-le.match_start,le.match_length-y),le.lookahead-=le.match_length,le.match_length<=le.max_lazy_match&&le.lookahead>=y){le.match_length--;do le.strstart++,le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+y-1])&le.hash_mask,at=le.prev[le.strstart&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=le.strstart;while(--le.match_length!==0);le.strstart++}else le.strstart+=le.match_length,le.match_length=0,le.ins_h=le.window[le.strstart],le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+1])&le.hash_mask;else Be=n._tr_tally(le,0,le.window[le.strstart]),le.lookahead--,le.strstart++;if(Be&&(mt(le,!1),le.strm.avail_out===0))return D}return le.insert=le.strstart<y-1?le.strstart:y-1,wt===A?(mt(le,!0),le.strm.avail_out===0?oe:fe):le.last_lit&&(mt(le,!1),le.strm.avail_out===0)?D:ee}function Oe(le,wt){for(var at,Be,ot;;){if(le.lookahead<v){if(nt(le),le.lookahead<v&&wt===h)return D;if(le.lookahead===0)break}if(at=0,le.lookahead>=y&&(le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+y-1])&le.hash_mask,at=le.prev[le.strstart&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=le.strstart),le.prev_length=le.match_length,le.prev_match=le.match_start,le.match_length=y-1,at!==0&&le.prev_length<le.max_lazy_match&&le.strstart-at<=le.w_size-v&&(le.match_length=Ge(le,at),le.match_length<=5&&(le.strategy===N||le.match_length===y&&le.strstart-le.match_start>4096)&&(le.match_length=y-1)),le.prev_length>=y&&le.match_length<=le.prev_length){ot=le.strstart+le.lookahead-y,Be=n._tr_tally(le,le.strstart-1-le.prev_match,le.prev_length-y),le.lookahead-=le.prev_length-1,le.prev_length-=2;do++le.strstart<=ot&&(le.ins_h=(le.ins_h<<le.hash_shift^le.window[le.strstart+y-1])&le.hash_mask,at=le.prev[le.strstart&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=le.strstart);while(--le.prev_length!==0);if(le.match_available=0,le.match_length=y-1,le.strstart++,Be&&(mt(le,!1),le.strm.avail_out===0))return D}else if(le.match_available){if(Be=n._tr_tally(le,0,le.window[le.strstart-1]),Be&&mt(le,!1),le.strstart++,le.lookahead--,le.strm.avail_out===0)return D}else le.match_available=1,le.strstart++,le.lookahead--}return le.match_available&&(Be=n._tr_tally(le,0,le.window[le.strstart-1]),le.match_available=0),le.insert=le.strstart<y-1?le.strstart:y-1,wt===A?(mt(le,!0),le.strm.avail_out===0?oe:fe):le.last_lit&&(mt(le,!1),le.strm.avail_out===0)?D:ee}function $t(le,wt){for(var at,Be,ot,tt,kt=le.window;;){if(le.lookahead<=w){if(nt(le),le.lookahead<=w&&wt===h)return D;if(le.lookahead===0)break}if(le.match_length=0,le.lookahead>=y&&le.strstart>0&&(ot=le.strstart-1,Be=kt[ot],Be===kt[++ot]&&Be===kt[++ot]&&Be===kt[++ot])){tt=le.strstart+w;do;while(Be===kt[++ot]&&Be===kt[++ot]&&Be===kt[++ot]&&Be===kt[++ot]&&Be===kt[++ot]&&Be===kt[++ot]&&Be===kt[++ot]&&Be===kt[++ot]&&ot<tt);le.match_length=w-(tt-ot),le.match_length>le.lookahead&&(le.match_length=le.lookahead)}if(le.match_length>=y?(at=n._tr_tally(le,1,le.match_length-y),le.lookahead-=le.match_length,le.strstart+=le.match_length,le.match_length=0):(at=n._tr_tally(le,0,le.window[le.strstart]),le.lookahead--,le.strstart++),at&&(mt(le,!1),le.strm.avail_out===0))return D}return le.insert=0,wt===A?(mt(le,!0),le.strm.avail_out===0?oe:fe):le.last_lit&&(mt(le,!1),le.strm.avail_out===0)?D:ee}function dt(le,wt){for(var at;;){if(le.lookahead===0&&(nt(le),le.lookahead===0)){if(wt===h)return D;break}if(le.match_length=0,at=n._tr_tally(le,0,le.window[le.strstart]),le.lookahead--,le.strstart++,at&&(mt(le,!1),le.strm.avail_out===0))return D}return le.insert=0,wt===A?(mt(le,!0),le.strm.avail_out===0?oe:fe):le.last_lit&&(mt(le,!1),le.strm.avail_out===0)?D:ee}function gt(le,wt,at,Be,ot){this.good_length=le,this.max_lazy=wt,this.nice_length=at,this.max_chain=Be,this.func=ot}var Lt;Lt=[new gt(0,0,0,0,Et),new gt(4,4,8,4,Le),new gt(4,5,16,8,Le),new gt(4,6,32,32,Le),new gt(4,4,16,16,Oe),new gt(8,16,32,32,Oe),new gt(8,16,128,128,Oe),new gt(8,32,128,256,Oe),new gt(32,128,258,1024,Oe),new gt(32,258,258,4096,Oe)];function xe(le){le.window_size=2*le.w_size,Ve(le.head),le.max_lazy_match=Lt[le.level].max_lazy,le.good_match=Lt[le.level].good_length,le.nice_match=Lt[le.level].nice_length,le.max_chain_length=Lt[le.level].max_chain,le.strstart=0,le.block_start=0,le.lookahead=0,le.insert=0,le.match_length=le.prev_length=y-1,le.match_available=0,le.ins_h=0}function X(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=de,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(e*2),this.dyn_dtree=new t.Buf16((2*p+1)*2),this.bl_tree=new t.Buf16((2*b+1)*2),Ve(this.dyn_ltree),Ve(this.dyn_dtree),Ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(c+1),this.heap=new t.Buf16(2*u+1),Ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(2*u+1),Ve(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function pe(le){var wt;return!le||!le.state?qe(le,I):(le.total_in=le.total_out=0,le.data_type=se,wt=le.state,wt.pending=0,wt.pending_out=0,wt.wrap<0&&(wt.wrap=-wt.wrap),wt.status=wt.wrap?x:Z,le.adler=wt.wrap===2?0:1,wt.last_flush=h,n._tr_init(wt),M)}function je(le){var wt=pe(le);return wt===M&&xe(le.state),wt}function $e(le,wt){return!le||!le.state||le.state.wrap!==2?I:(le.state.gzhead=wt,M)}function He(le,wt,at,Be,ot,tt){if(!le)return I;var kt=1;if(wt===z&&(wt=6),Be<0?(kt=0,Be=-Be):Be>15&&(kt=2,Be-=16),ot<1||ot>Q||at!==de||Be<8||Be>15||wt<0||wt>9||tt<0||tt>J)return qe(le,I);Be===8&&(Be=9);var Yt=new X;return le.state=Yt,Yt.strm=le,Yt.wrap=kt,Yt.gzhead=null,Yt.w_bits=Be,Yt.w_size=1<<Yt.w_bits,Yt.w_mask=Yt.w_size-1,Yt.hash_bits=ot+7,Yt.hash_size=1<<Yt.hash_bits,Yt.hash_mask=Yt.hash_size-1,Yt.hash_shift=~~((Yt.hash_bits+y-1)/y),Yt.window=new t.Buf8(Yt.w_size*2),Yt.head=new t.Buf16(Yt.hash_size),Yt.prev=new t.Buf16(Yt.w_size),Yt.lit_bufsize=1<<ot+6,Yt.pending_buf_size=Yt.lit_bufsize*4,Yt.pending_buf=new t.Buf8(Yt.pending_buf_size),Yt.d_buf=1*Yt.lit_bufsize,Yt.l_buf=3*Yt.lit_bufsize,Yt.level=wt,Yt.strategy=tt,Yt.method=at,je(le)}function Fe(le,wt){return He(le,wt,de,ve,he,te)}function Me(le,wt){var at,Be,ot,tt;if(!le||!le.state||wt>B||wt<0)return le?qe(le,I):I;if(Be=le.state,!le.output||!le.input&&le.avail_in!==0||Be.status===L&&wt!==A)return qe(le,le.avail_out===0?$:I);if(Be.strm=le,at=Be.last_flush,Be.last_flush=wt,Be.status===x)if(Be.wrap===2)le.adler=0,Ye(Be,31),Ye(Be,139),Ye(Be,8),Be.gzhead?(Ye(Be,(Be.gzhead.text?1:0)+(Be.gzhead.hcrc?2:0)+(Be.gzhead.extra?4:0)+(Be.gzhead.name?8:0)+(Be.gzhead.comment?16:0)),Ye(Be,Be.gzhead.time&255),Ye(Be,Be.gzhead.time>>8&255),Ye(Be,Be.gzhead.time>>16&255),Ye(Be,Be.gzhead.time>>24&255),Ye(Be,Be.level===9?2:Be.strategy>=F||Be.level<2?4:0),Ye(Be,Be.gzhead.os&255),Be.gzhead.extra&&Be.gzhead.extra.length&&(Ye(Be,Be.gzhead.extra.length&255),Ye(Be,Be.gzhead.extra.length>>8&255)),Be.gzhead.hcrc&&(le.adler=d(le.adler,Be.pending_buf,Be.pending,0)),Be.gzindex=0,Be.status=E):(Ye(Be,0),Ye(Be,0),Ye(Be,0),Ye(Be,0),Ye(Be,0),Ye(Be,Be.level===9?2:Be.strategy>=F||Be.level<2?4:0),Ye(Be,ue),Be.status=Z);else{var kt=de+(Be.w_bits-8<<4)<<8,Yt=-1;Be.strategy>=F||Be.level<2?Yt=0:Be.level<6?Yt=1:Be.level===6?Yt=2:Yt=3,kt|=Yt<<6,Be.strstart!==0&&(kt|=o),kt+=31-kt%31,Be.status=Z,We(Be,kt),Be.strstart!==0&&(We(Be,le.adler>>>16),We(Be,le.adler&65535)),le.adler=1}if(Be.status===E)if(Be.gzhead.extra){for(ot=Be.pending;Be.gzindex<(Be.gzhead.extra.length&65535)&&!(Be.pending===Be.pending_buf_size&&(Be.gzhead.hcrc&&Be.pending>ot&&(le.adler=d(le.adler,Be.pending_buf,Be.pending-ot,ot)),et(le),ot=Be.pending,Be.pending===Be.pending_buf_size));)Ye(Be,Be.gzhead.extra[Be.gzindex]&255),Be.gzindex++;Be.gzhead.hcrc&&Be.pending>ot&&(le.adler=d(le.adler,Be.pending_buf,Be.pending-ot,ot)),Be.gzindex===Be.gzhead.extra.length&&(Be.gzindex=0,Be.status=R)}else Be.status=R;if(Be.status===R)if(Be.gzhead.name){ot=Be.pending;do{if(Be.pending===Be.pending_buf_size&&(Be.gzhead.hcrc&&Be.pending>ot&&(le.adler=d(le.adler,Be.pending_buf,Be.pending-ot,ot)),et(le),ot=Be.pending,Be.pending===Be.pending_buf_size)){tt=1;break}Be.gzindex<Be.gzhead.name.length?tt=Be.gzhead.name.charCodeAt(Be.gzindex++)&255:tt=0,Ye(Be,tt)}while(tt!==0);Be.gzhead.hcrc&&Be.pending>ot&&(le.adler=d(le.adler,Be.pending_buf,Be.pending-ot,ot)),tt===0&&(Be.gzindex=0,Be.status=H)}else Be.status=H;if(Be.status===H)if(Be.gzhead.comment){ot=Be.pending;do{if(Be.pending===Be.pending_buf_size&&(Be.gzhead.hcrc&&Be.pending>ot&&(le.adler=d(le.adler,Be.pending_buf,Be.pending-ot,ot)),et(le),ot=Be.pending,Be.pending===Be.pending_buf_size)){tt=1;break}Be.gzindex<Be.gzhead.comment.length?tt=Be.gzhead.comment.charCodeAt(Be.gzindex++)&255:tt=0,Ye(Be,tt)}while(tt!==0);Be.gzhead.hcrc&&Be.pending>ot&&(le.adler=d(le.adler,Be.pending_buf,Be.pending-ot,ot)),tt===0&&(Be.status=Y)}else Be.status=Y;if(Be.status===Y&&(Be.gzhead.hcrc?(Be.pending+2>Be.pending_buf_size&&et(le),Be.pending+2<=Be.pending_buf_size&&(Ye(Be,le.adler&255),Ye(Be,le.adler>>8&255),le.adler=0,Be.status=Z)):Be.status=Z),Be.pending!==0){if(et(le),le.avail_out===0)return Be.last_flush=-1,M}else if(le.avail_in===0&&rt(wt)<=rt(at)&&wt!==A)return qe(le,$);if(Be.status===L&&le.avail_in!==0)return qe(le,$);if(le.avail_in!==0||Be.lookahead!==0||wt!==h&&Be.status!==L){var pt=Be.strategy===F?dt(Be,wt):Be.strategy===U?$t(Be,wt):Lt[Be.level].func(Be,wt);if((pt===oe||pt===fe)&&(Be.status=L),pt===D||pt===oe)return le.avail_out===0&&(Be.last_flush=-1),M;if(pt===ee&&(wt===S?n._tr_align(Be):wt!==B&&(n._tr_stored_block(Be,0,0,!1),wt===k&&(Ve(Be.head),Be.lookahead===0&&(Be.strstart=0,Be.block_start=0,Be.insert=0))),et(le),le.avail_out===0))return Be.last_flush=-1,M}return wt!==A?M:Be.wrap<=0?j:(Be.wrap===2?(Ye(Be,le.adler&255),Ye(Be,le.adler>>8&255),Ye(Be,le.adler>>16&255),Ye(Be,le.adler>>24&255),Ye(Be,le.total_in&255),Ye(Be,le.total_in>>8&255),Ye(Be,le.total_in>>16&255),Ye(Be,le.total_in>>24&255)):(We(Be,le.adler>>>16),We(Be,le.adler&65535)),et(le),Be.wrap>0&&(Be.wrap=-Be.wrap),Be.pending!==0?M:j)}function Rt(le){var wt;return!le||!le.state?I:(wt=le.state.status,wt!==x&&wt!==E&&wt!==R&&wt!==H&&wt!==Y&&wt!==Z&&wt!==L?qe(le,I):(le.state=null,wt===Z?qe(le,P):M))}function yt(le,wt){var at=wt.length,Be,ot,tt,kt,Yt,pt,It,Fr;if(!le||!le.state||(Be=le.state,kt=Be.wrap,kt===2||kt===1&&Be.status!==x||Be.lookahead))return I;for(kt===1&&(le.adler=l(le.adler,wt,at,0)),Be.wrap=0,at>=Be.w_size&&(kt===0&&(Ve(Be.head),Be.strstart=0,Be.block_start=0,Be.insert=0),Fr=new t.Buf8(Be.w_size),t.arraySet(Fr,wt,at-Be.w_size,Be.w_size,0),wt=Fr,at=Be.w_size),Yt=le.avail_in,pt=le.next_in,It=le.input,le.avail_in=at,le.next_in=0,le.input=wt,nt(Be);Be.lookahead>=y;){ot=Be.strstart,tt=Be.lookahead-(y-1);do Be.ins_h=(Be.ins_h<<Be.hash_shift^Be.window[ot+y-1])&Be.hash_mask,Be.prev[ot&Be.w_mask]=Be.head[Be.ins_h],Be.head[Be.ins_h]=ot,ot++;while(--tt);Be.strstart=ot,Be.lookahead=y-1,nt(Be)}return Be.strstart+=Be.lookahead,Be.block_start=Be.strstart,Be.insert=Be.lookahead,Be.lookahead=0,Be.match_length=Be.prev_length=y-1,Be.match_available=0,le.next_in=pt,le.input=It,le.avail_in=Yt,Be.wrap=kt,M}return deflate.deflateInit=Fe,deflate.deflateInit2=He,deflate.deflateReset=je,deflate.deflateResetKeep=pe,deflate.deflateSetHeader=$e,deflate.deflate=Me,deflate.deflateEnd=Rt,deflate.deflateSetDictionary=yt,deflate.deflateInfo="pako deflate (from Nodeca project)",deflate}var inflate={},inffast,hasRequiredInffast;function requireInffast(){if(hasRequiredInffast)return inffast;hasRequiredInffast=1;var t=30,n=12;return inffast=function(d,m){var h,S,k,A,B,M,j,I,P,$,z,N,F,U,J,te,se,de,Q,ve,he,ke,T,u,p;h=d.state,S=d.next_in,u=d.input,k=S+(d.avail_in-5),A=d.next_out,p=d.output,B=A-(m-d.avail_out),M=A+(d.avail_out-257),j=h.dmax,I=h.wsize,P=h.whave,$=h.wnext,z=h.window,N=h.hold,F=h.bits,U=h.lencode,J=h.distcode,te=(1<<h.lenbits)-1,se=(1<<h.distbits)-1;e:do{F<15&&(N+=u[S++]<<F,F+=8,N+=u[S++]<<F,F+=8),de=U[N&te];t:for(;;){if(Q=de>>>24,N>>>=Q,F-=Q,Q=de>>>16&255,Q===0)p[A++]=de&65535;else if(Q&16){ve=de&65535,Q&=15,Q&&(F<Q&&(N+=u[S++]<<F,F+=8),ve+=N&(1<<Q)-1,N>>>=Q,F-=Q),F<15&&(N+=u[S++]<<F,F+=8,N+=u[S++]<<F,F+=8),de=J[N&se];r:for(;;){if(Q=de>>>24,N>>>=Q,F-=Q,Q=de>>>16&255,Q&16){if(he=de&65535,Q&=15,F<Q&&(N+=u[S++]<<F,F+=8,F<Q&&(N+=u[S++]<<F,F+=8)),he+=N&(1<<Q)-1,he>j){d.msg="invalid distance too far back",h.mode=t;break e}if(N>>>=Q,F-=Q,Q=A-B,he>Q){if(Q=he-Q,Q>P&&h.sane){d.msg="invalid distance too far back",h.mode=t;break e}if(ke=0,T=z,$===0){if(ke+=I-Q,Q<ve){ve-=Q;do p[A++]=z[ke++];while(--Q);ke=A-he,T=p}}else if($<Q){if(ke+=I+$-Q,Q-=$,Q<ve){ve-=Q;do p[A++]=z[ke++];while(--Q);if(ke=0,$<ve){Q=$,ve-=Q;do p[A++]=z[ke++];while(--Q);ke=A-he,T=p}}}else if(ke+=$-Q,Q<ve){ve-=Q;do p[A++]=z[ke++];while(--Q);ke=A-he,T=p}for(;ve>2;)p[A++]=T[ke++],p[A++]=T[ke++],p[A++]=T[ke++],ve-=3;ve&&(p[A++]=T[ke++],ve>1&&(p[A++]=T[ke++]))}else{ke=A-he;do p[A++]=p[ke++],p[A++]=p[ke++],p[A++]=p[ke++],ve-=3;while(ve>2);ve&&(p[A++]=p[ke++],ve>1&&(p[A++]=p[ke++]))}}else if(Q&64){d.msg="invalid distance code",h.mode=t;break e}else{de=J[(de&65535)+(N&(1<<Q)-1)];continue r}break}}else if(Q&64)if(Q&32){h.mode=n;break e}else{d.msg="invalid literal/length code",h.mode=t;break e}else{de=U[(de&65535)+(N&(1<<Q)-1)];continue t}break}}while(S<k&&A<M);ve=F>>3,S-=ve,F-=ve<<3,N&=(1<<F)-1,d.next_in=S,d.next_out=A,d.avail_in=S<k?5+(k-S):5-(S-k),d.avail_out=A<M?257+(M-A):257-(A-M),h.hold=N,h.bits=F},inffast}var inftrees,hasRequiredInftrees;function requireInftrees(){if(hasRequiredInftrees)return inftrees;hasRequiredInftrees=1;var t=requireCommon(),n=15,l=852,d=592,m=0,h=1,S=2,k=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],A=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],B=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],M=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return inftrees=function(I,P,$,z,N,F,U,J){var te=J.bits,se=0,de=0,Q=0,ve=0,he=0,ke=0,T=0,u=0,p=0,b=0,e,c,y,w,v,o=null,x=0,E,R=new t.Buf16(n+1),H=new t.Buf16(n+1),Y=null,Z=0,L,D,ee;for(se=0;se<=n;se++)R[se]=0;for(de=0;de<z;de++)R[P[$+de]]++;for(he=te,ve=n;ve>=1&&R[ve]===0;ve--);if(he>ve&&(he=ve),ve===0)return N[F++]=1<<24|64<<16|0,N[F++]=1<<24|64<<16|0,J.bits=1,0;for(Q=1;Q<ve&&R[Q]===0;Q++);for(he<Q&&(he=Q),u=1,se=1;se<=n;se++)if(u<<=1,u-=R[se],u<0)return-1;if(u>0&&(I===m||ve!==1))return-1;for(H[1]=0,se=1;se<n;se++)H[se+1]=H[se]+R[se];for(de=0;de<z;de++)P[$+de]!==0&&(U[H[P[$+de]]++]=de);if(I===m?(o=Y=U,E=19):I===h?(o=k,x-=257,Y=A,Z-=257,E=256):(o=B,Y=M,E=-1),b=0,de=0,se=Q,v=F,ke=he,T=0,y=-1,p=1<<he,w=p-1,I===h&&p>l||I===S&&p>d)return 1;for(;;){L=se-T,U[de]<E?(D=0,ee=U[de]):U[de]>E?(D=Y[Z+U[de]],ee=o[x+U[de]]):(D=96,ee=0),e=1<<se-T,c=1<<ke,Q=c;do c-=e,N[v+(b>>T)+c]=L<<24|D<<16|ee|0;while(c!==0);for(e=1<<se-1;b&e;)e>>=1;if(e!==0?(b&=e-1,b+=e):b=0,de++,--R[se]===0){if(se===ve)break;se=P[$+U[de]]}if(se>he&&(b&w)!==y){for(T===0&&(T=he),v+=Q,ke=se-T,u=1<<ke;ke+T<ve&&(u-=R[ke+T],!(u<=0));)ke++,u<<=1;if(p+=1<<ke,I===h&&p>l||I===S&&p>d)return 1;y=b&w,N[y]=he<<24|ke<<16|v-F|0}}return b!==0&&(N[v+b]=se-T<<24|64<<16|0),J.bits=he,0},inftrees}var hasRequiredInflate;function requireInflate(){if(hasRequiredInflate)return inflate;hasRequiredInflate=1;var t=requireCommon(),n=requireAdler32(),l=requireCrc32(),d=requireInffast(),m=requireInftrees(),h=0,S=1,k=2,A=4,B=5,M=6,j=0,I=1,P=2,$=-2,z=-3,N=-4,F=-5,U=8,J=1,te=2,se=3,de=4,Q=5,ve=6,he=7,ke=8,T=9,u=10,p=11,b=12,e=13,c=14,y=15,w=16,v=17,o=18,x=19,E=20,R=21,H=22,Y=23,Z=24,L=25,D=26,ee=27,oe=28,fe=29,ue=30,qe=31,rt=32,Ve=852,et=592,mt=15,Ye=mt;function We(He){return(He>>>24&255)+(He>>>8&65280)+((He&65280)<<8)+((He&255)<<24)}function Xe(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ge(He){var Fe;return!He||!He.state?$:(Fe=He.state,He.total_in=He.total_out=Fe.total=0,He.msg="",Fe.wrap&&(He.adler=Fe.wrap&1),Fe.mode=J,Fe.last=0,Fe.havedict=0,Fe.dmax=32768,Fe.head=null,Fe.hold=0,Fe.bits=0,Fe.lencode=Fe.lendyn=new t.Buf32(Ve),Fe.distcode=Fe.distdyn=new t.Buf32(et),Fe.sane=1,Fe.back=-1,j)}function nt(He){var Fe;return!He||!He.state?$:(Fe=He.state,Fe.wsize=0,Fe.whave=0,Fe.wnext=0,Ge(He))}function Et(He,Fe){var Me,Rt;return!He||!He.state||(Rt=He.state,Fe<0?(Me=0,Fe=-Fe):(Me=(Fe>>4)+1,Fe<48&&(Fe&=15)),Fe&&(Fe<8||Fe>15))?$:(Rt.window!==null&&Rt.wbits!==Fe&&(Rt.window=null),Rt.wrap=Me,Rt.wbits=Fe,nt(He))}function Le(He,Fe){var Me,Rt;return He?(Rt=new Xe,He.state=Rt,Rt.window=null,Me=Et(He,Fe),Me!==j&&(He.state=null),Me):$}function Oe(He){return Le(He,Ye)}var $t=!0,dt,gt;function Lt(He){if($t){var Fe;for(dt=new t.Buf32(512),gt=new t.Buf32(32),Fe=0;Fe<144;)He.lens[Fe++]=8;for(;Fe<256;)He.lens[Fe++]=9;for(;Fe<280;)He.lens[Fe++]=7;for(;Fe<288;)He.lens[Fe++]=8;for(m(S,He.lens,0,288,dt,0,He.work,{bits:9}),Fe=0;Fe<32;)He.lens[Fe++]=5;m(k,He.lens,0,32,gt,0,He.work,{bits:5}),$t=!1}He.lencode=dt,He.lenbits=9,He.distcode=gt,He.distbits=5}function xe(He,Fe,Me,Rt){var yt,le=He.state;return le.window===null&&(le.wsize=1<<le.wbits,le.wnext=0,le.whave=0,le.window=new t.Buf8(le.wsize)),Rt>=le.wsize?(t.arraySet(le.window,Fe,Me-le.wsize,le.wsize,0),le.wnext=0,le.whave=le.wsize):(yt=le.wsize-le.wnext,yt>Rt&&(yt=Rt),t.arraySet(le.window,Fe,Me-Rt,yt,le.wnext),Rt-=yt,Rt?(t.arraySet(le.window,Fe,Me-Rt,Rt,0),le.wnext=Rt,le.whave=le.wsize):(le.wnext+=yt,le.wnext===le.wsize&&(le.wnext=0),le.whave<le.wsize&&(le.whave+=yt))),0}function X(He,Fe){var Me,Rt,yt,le,wt,at,Be,ot,tt,kt,Yt,pt,It,Fr,Pt=0,Ot,Te,me,ce,ne,_e,Re,lt,Ze=new t.Buf8(4),ct,Nt,Ut=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!He||!He.state||!He.output||!He.input&&He.avail_in!==0)return $;Me=He.state,Me.mode===b&&(Me.mode=e),wt=He.next_out,yt=He.output,Be=He.avail_out,le=He.next_in,Rt=He.input,at=He.avail_in,ot=Me.hold,tt=Me.bits,kt=at,Yt=Be,lt=j;e:for(;;)switch(Me.mode){case J:if(Me.wrap===0){Me.mode=e;break}for(;tt<16;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(Me.wrap&2&&ot===35615){Me.check=0,Ze[0]=ot&255,Ze[1]=ot>>>8&255,Me.check=l(Me.check,Ze,2,0),ot=0,tt=0,Me.mode=te;break}if(Me.flags=0,Me.head&&(Me.head.done=!1),!(Me.wrap&1)||(((ot&255)<<8)+(ot>>8))%31){He.msg="incorrect header check",Me.mode=ue;break}if((ot&15)!==U){He.msg="unknown compression method",Me.mode=ue;break}if(ot>>>=4,tt-=4,Re=(ot&15)+8,Me.wbits===0)Me.wbits=Re;else if(Re>Me.wbits){He.msg="invalid window size",Me.mode=ue;break}Me.dmax=1<<Re,He.adler=Me.check=1,Me.mode=ot&512?u:b,ot=0,tt=0;break;case te:for(;tt<16;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(Me.flags=ot,(Me.flags&255)!==U){He.msg="unknown compression method",Me.mode=ue;break}if(Me.flags&57344){He.msg="unknown header flags set",Me.mode=ue;break}Me.head&&(Me.head.text=ot>>8&1),Me.flags&512&&(Ze[0]=ot&255,Ze[1]=ot>>>8&255,Me.check=l(Me.check,Ze,2,0)),ot=0,tt=0,Me.mode=se;case se:for(;tt<32;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}Me.head&&(Me.head.time=ot),Me.flags&512&&(Ze[0]=ot&255,Ze[1]=ot>>>8&255,Ze[2]=ot>>>16&255,Ze[3]=ot>>>24&255,Me.check=l(Me.check,Ze,4,0)),ot=0,tt=0,Me.mode=de;case de:for(;tt<16;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}Me.head&&(Me.head.xflags=ot&255,Me.head.os=ot>>8),Me.flags&512&&(Ze[0]=ot&255,Ze[1]=ot>>>8&255,Me.check=l(Me.check,Ze,2,0)),ot=0,tt=0,Me.mode=Q;case Q:if(Me.flags&1024){for(;tt<16;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}Me.length=ot,Me.head&&(Me.head.extra_len=ot),Me.flags&512&&(Ze[0]=ot&255,Ze[1]=ot>>>8&255,Me.check=l(Me.check,Ze,2,0)),ot=0,tt=0}else Me.head&&(Me.head.extra=null);Me.mode=ve;case ve:if(Me.flags&1024&&(pt=Me.length,pt>at&&(pt=at),pt&&(Me.head&&(Re=Me.head.extra_len-Me.length,Me.head.extra||(Me.head.extra=new Array(Me.head.extra_len)),t.arraySet(Me.head.extra,Rt,le,pt,Re)),Me.flags&512&&(Me.check=l(Me.check,Rt,pt,le)),at-=pt,le+=pt,Me.length-=pt),Me.length))break e;Me.length=0,Me.mode=he;case he:if(Me.flags&2048){if(at===0)break e;pt=0;do Re=Rt[le+pt++],Me.head&&Re&&Me.length<65536&&(Me.head.name+=String.fromCharCode(Re));while(Re&&pt<at);if(Me.flags&512&&(Me.check=l(Me.check,Rt,pt,le)),at-=pt,le+=pt,Re)break e}else Me.head&&(Me.head.name=null);Me.length=0,Me.mode=ke;case ke:if(Me.flags&4096){if(at===0)break e;pt=0;do Re=Rt[le+pt++],Me.head&&Re&&Me.length<65536&&(Me.head.comment+=String.fromCharCode(Re));while(Re&&pt<at);if(Me.flags&512&&(Me.check=l(Me.check,Rt,pt,le)),at-=pt,le+=pt,Re)break e}else Me.head&&(Me.head.comment=null);Me.mode=T;case T:if(Me.flags&512){for(;tt<16;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(ot!==(Me.check&65535)){He.msg="header crc mismatch",Me.mode=ue;break}ot=0,tt=0}Me.head&&(Me.head.hcrc=Me.flags>>9&1,Me.head.done=!0),He.adler=Me.check=0,Me.mode=b;break;case u:for(;tt<32;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}He.adler=Me.check=We(ot),ot=0,tt=0,Me.mode=p;case p:if(Me.havedict===0)return He.next_out=wt,He.avail_out=Be,He.next_in=le,He.avail_in=at,Me.hold=ot,Me.bits=tt,P;He.adler=Me.check=1,Me.mode=b;case b:if(Fe===B||Fe===M)break e;case e:if(Me.last){ot>>>=tt&7,tt-=tt&7,Me.mode=ee;break}for(;tt<3;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}switch(Me.last=ot&1,ot>>>=1,tt-=1,ot&3){case 0:Me.mode=c;break;case 1:if(Lt(Me),Me.mode=E,Fe===M){ot>>>=2,tt-=2;break e}break;case 2:Me.mode=v;break;case 3:He.msg="invalid block type",Me.mode=ue}ot>>>=2,tt-=2;break;case c:for(ot>>>=tt&7,tt-=tt&7;tt<32;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if((ot&65535)!==(ot>>>16^65535)){He.msg="invalid stored block lengths",Me.mode=ue;break}if(Me.length=ot&65535,ot=0,tt=0,Me.mode=y,Fe===M)break e;case y:Me.mode=w;case w:if(pt=Me.length,pt){if(pt>at&&(pt=at),pt>Be&&(pt=Be),pt===0)break e;t.arraySet(yt,Rt,le,pt,wt),at-=pt,le+=pt,Be-=pt,wt+=pt,Me.length-=pt;break}Me.mode=b;break;case v:for(;tt<14;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(Me.nlen=(ot&31)+257,ot>>>=5,tt-=5,Me.ndist=(ot&31)+1,ot>>>=5,tt-=5,Me.ncode=(ot&15)+4,ot>>>=4,tt-=4,Me.nlen>286||Me.ndist>30){He.msg="too many length or distance symbols",Me.mode=ue;break}Me.have=0,Me.mode=o;case o:for(;Me.have<Me.ncode;){for(;tt<3;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}Me.lens[Ut[Me.have++]]=ot&7,ot>>>=3,tt-=3}for(;Me.have<19;)Me.lens[Ut[Me.have++]]=0;if(Me.lencode=Me.lendyn,Me.lenbits=7,ct={bits:Me.lenbits},lt=m(h,Me.lens,0,19,Me.lencode,0,Me.work,ct),Me.lenbits=ct.bits,lt){He.msg="invalid code lengths set",Me.mode=ue;break}Me.have=0,Me.mode=x;case x:for(;Me.have<Me.nlen+Me.ndist;){for(;Pt=Me.lencode[ot&(1<<Me.lenbits)-1],Ot=Pt>>>24,Te=Pt>>>16&255,me=Pt&65535,!(Ot<=tt);){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(me<16)ot>>>=Ot,tt-=Ot,Me.lens[Me.have++]=me;else{if(me===16){for(Nt=Ot+2;tt<Nt;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(ot>>>=Ot,tt-=Ot,Me.have===0){He.msg="invalid bit length repeat",Me.mode=ue;break}Re=Me.lens[Me.have-1],pt=3+(ot&3),ot>>>=2,tt-=2}else if(me===17){for(Nt=Ot+3;tt<Nt;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}ot>>>=Ot,tt-=Ot,Re=0,pt=3+(ot&7),ot>>>=3,tt-=3}else{for(Nt=Ot+7;tt<Nt;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}ot>>>=Ot,tt-=Ot,Re=0,pt=11+(ot&127),ot>>>=7,tt-=7}if(Me.have+pt>Me.nlen+Me.ndist){He.msg="invalid bit length repeat",Me.mode=ue;break}for(;pt--;)Me.lens[Me.have++]=Re}}if(Me.mode===ue)break;if(Me.lens[256]===0){He.msg="invalid code -- missing end-of-block",Me.mode=ue;break}if(Me.lenbits=9,ct={bits:Me.lenbits},lt=m(S,Me.lens,0,Me.nlen,Me.lencode,0,Me.work,ct),Me.lenbits=ct.bits,lt){He.msg="invalid literal/lengths set",Me.mode=ue;break}if(Me.distbits=6,Me.distcode=Me.distdyn,ct={bits:Me.distbits},lt=m(k,Me.lens,Me.nlen,Me.ndist,Me.distcode,0,Me.work,ct),Me.distbits=ct.bits,lt){He.msg="invalid distances set",Me.mode=ue;break}if(Me.mode=E,Fe===M)break e;case E:Me.mode=R;case R:if(at>=6&&Be>=258){He.next_out=wt,He.avail_out=Be,He.next_in=le,He.avail_in=at,Me.hold=ot,Me.bits=tt,d(He,Yt),wt=He.next_out,yt=He.output,Be=He.avail_out,le=He.next_in,Rt=He.input,at=He.avail_in,ot=Me.hold,tt=Me.bits,Me.mode===b&&(Me.back=-1);break}for(Me.back=0;Pt=Me.lencode[ot&(1<<Me.lenbits)-1],Ot=Pt>>>24,Te=Pt>>>16&255,me=Pt&65535,!(Ot<=tt);){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(Te&&!(Te&240)){for(ce=Ot,ne=Te,_e=me;Pt=Me.lencode[_e+((ot&(1<<ce+ne)-1)>>ce)],Ot=Pt>>>24,Te=Pt>>>16&255,me=Pt&65535,!(ce+Ot<=tt);){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}ot>>>=ce,tt-=ce,Me.back+=ce}if(ot>>>=Ot,tt-=Ot,Me.back+=Ot,Me.length=me,Te===0){Me.mode=D;break}if(Te&32){Me.back=-1,Me.mode=b;break}if(Te&64){He.msg="invalid literal/length code",Me.mode=ue;break}Me.extra=Te&15,Me.mode=H;case H:if(Me.extra){for(Nt=Me.extra;tt<Nt;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}Me.length+=ot&(1<<Me.extra)-1,ot>>>=Me.extra,tt-=Me.extra,Me.back+=Me.extra}Me.was=Me.length,Me.mode=Y;case Y:for(;Pt=Me.distcode[ot&(1<<Me.distbits)-1],Ot=Pt>>>24,Te=Pt>>>16&255,me=Pt&65535,!(Ot<=tt);){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(!(Te&240)){for(ce=Ot,ne=Te,_e=me;Pt=Me.distcode[_e+((ot&(1<<ce+ne)-1)>>ce)],Ot=Pt>>>24,Te=Pt>>>16&255,me=Pt&65535,!(ce+Ot<=tt);){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}ot>>>=ce,tt-=ce,Me.back+=ce}if(ot>>>=Ot,tt-=Ot,Me.back+=Ot,Te&64){He.msg="invalid distance code",Me.mode=ue;break}Me.offset=me,Me.extra=Te&15,Me.mode=Z;case Z:if(Me.extra){for(Nt=Me.extra;tt<Nt;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}Me.offset+=ot&(1<<Me.extra)-1,ot>>>=Me.extra,tt-=Me.extra,Me.back+=Me.extra}if(Me.offset>Me.dmax){He.msg="invalid distance too far back",Me.mode=ue;break}Me.mode=L;case L:if(Be===0)break e;if(pt=Yt-Be,Me.offset>pt){if(pt=Me.offset-pt,pt>Me.whave&&Me.sane){He.msg="invalid distance too far back",Me.mode=ue;break}pt>Me.wnext?(pt-=Me.wnext,It=Me.wsize-pt):It=Me.wnext-pt,pt>Me.length&&(pt=Me.length),Fr=Me.window}else Fr=yt,It=wt-Me.offset,pt=Me.length;pt>Be&&(pt=Be),Be-=pt,Me.length-=pt;do yt[wt++]=Fr[It++];while(--pt);Me.length===0&&(Me.mode=R);break;case D:if(Be===0)break e;yt[wt++]=Me.length,Be--,Me.mode=R;break;case ee:if(Me.wrap){for(;tt<32;){if(at===0)break e;at--,ot|=Rt[le++]<<tt,tt+=8}if(Yt-=Be,He.total_out+=Yt,Me.total+=Yt,Yt&&(He.adler=Me.check=Me.flags?l(Me.check,yt,Yt,wt-Yt):n(Me.check,yt,Yt,wt-Yt)),Yt=Be,(Me.flags?ot:We(ot))!==Me.check){He.msg="incorrect data check",Me.mode=ue;break}ot=0,tt=0}Me.mode=oe;case oe:if(Me.wrap&&Me.flags){for(;tt<32;){if(at===0)break e;at--,ot+=Rt[le++]<<tt,tt+=8}if(ot!==(Me.total&4294967295)){He.msg="incorrect length check",Me.mode=ue;break}ot=0,tt=0}Me.mode=fe;case fe:lt=I;break e;case ue:lt=z;break e;case qe:return N;case rt:default:return $}return He.next_out=wt,He.avail_out=Be,He.next_in=le,He.avail_in=at,Me.hold=ot,Me.bits=tt,(Me.wsize||Yt!==He.avail_out&&Me.mode<ue&&(Me.mode<ee||Fe!==A))&&xe(He,He.output,He.next_out,Yt-He.avail_out),kt-=He.avail_in,Yt-=He.avail_out,He.total_in+=kt,He.total_out+=Yt,Me.total+=Yt,Me.wrap&&Yt&&(He.adler=Me.check=Me.flags?l(Me.check,yt,Yt,He.next_out-Yt):n(Me.check,yt,Yt,He.next_out-Yt)),He.data_type=Me.bits+(Me.last?64:0)+(Me.mode===b?128:0)+(Me.mode===E||Me.mode===y?256:0),(kt===0&&Yt===0||Fe===A)&&lt===j&&(lt=F),lt}function pe(He){if(!He||!He.state)return $;var Fe=He.state;return Fe.window&&(Fe.window=null),He.state=null,j}function je(He,Fe){var Me;return!He||!He.state||(Me=He.state,!(Me.wrap&2))?$:(Me.head=Fe,Fe.done=!1,j)}function $e(He,Fe){var Me=Fe.length,Rt,yt,le;return!He||!He.state||(Rt=He.state,Rt.wrap!==0&&Rt.mode!==p)?$:Rt.mode===p&&(yt=1,yt=n(yt,Fe,Me,0),yt!==Rt.check)?z:(le=xe(He,Fe,Me,Me),le?(Rt.mode=qe,N):(Rt.havedict=1,j))}return inflate.inflateReset=nt,inflate.inflateReset2=Et,inflate.inflateResetKeep=Ge,inflate.inflateInit=Oe,inflate.inflateInit2=Le,inflate.inflate=X,inflate.inflateEnd=pe,inflate.inflateGetHeader=je,inflate.inflateSetDictionary=$e,inflate.inflateInfo="pako inflate (from Nodeca project)",inflate}var constants,hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,constants={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),constants}var hasRequiredBinding;function requireBinding(){return hasRequiredBinding||(hasRequiredBinding=1,function(t){var n=requireAssert$1(),l=requireZstream(),d=requireDeflate(),m=requireInflate(),h=requireConstants();for(var S in h)t[S]=h[S];t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7;var k=31,A=139;function B(M){if(typeof M!="number"||M<t.DEFLATE||M>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=M,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}B.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,n(this.init_done,"close before init"),n(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?d.deflateEnd(this.strm):(this.mode===t.INFLATE||this.mode===t.GUNZIP||this.mode===t.INFLATERAW||this.mode===t.UNZIP)&&m.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null},B.prototype.write=function(M,j,I,P,$,z,N){return this._write(!0,M,j,I,P,$,z,N)},B.prototype.writeSync=function(M,j,I,P,$,z,N){return this._write(!1,M,j,I,P,$,z,N)},B.prototype._write=function(M,j,I,P,$,z,N,F){if(n.equal(arguments.length,8),n(this.init_done,"write before init"),n(this.mode!==t.NONE,"already finalized"),n.equal(!1,this.write_in_progress,"write already in progress"),n.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,n.equal(!1,j===void 0,"must provide flush value"),this.write_in_progress=!0,j!==t.Z_NO_FLUSH&&j!==t.Z_PARTIAL_FLUSH&&j!==t.Z_SYNC_FLUSH&&j!==t.Z_FULL_FLUSH&&j!==t.Z_FINISH&&j!==t.Z_BLOCK)throw new Error("Invalid flush value");if(I==null&&(I=Buffer$C.alloc(0),$=0,P=0),this.strm.avail_in=$,this.strm.input=I,this.strm.next_in=P,this.strm.avail_out=F,this.strm.output=z,this.strm.next_out=N,this.flush=j,!M)return this._process(),this._checkError()?this._afterSync():void 0;var U=this;return process$1.nextTick(function(){U._process(),U._after()}),this},B.prototype._afterSync=function(){var M=this.strm.avail_out,j=this.strm.avail_in;return this.write_in_progress=!1,[j,M]},B.prototype._process=function(){var M=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=d.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(M=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(M===null)break;if(this.strm.input[M]===k){if(this.gzip_id_bytes_read=1,M++,this.strm.avail_in===1)break}else{this.mode=t.INFLATE;break}case 1:if(M===null)break;this.strm.input[M]===A?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=m.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=m.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=m.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=m.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},B.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},B.prototype._after=function(){if(this._checkError()){var M=this.strm.avail_out,j=this.strm.avail_in;this.write_in_progress=!1,this.callback(j,M),this.pending_close&&this.close()}},B.prototype._error=function(M){this.strm.msg&&(M=this.strm.msg),this.onerror(M,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},B.prototype.init=function(M,j,I,P,$){n(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),n(M>=8&&M<=15,"invalid windowBits"),n(j>=-1&&j<=9,"invalid compression level"),n(I>=1&&I<=9,"invalid memlevel"),n(P===t.Z_FILTERED||P===t.Z_HUFFMAN_ONLY||P===t.Z_RLE||P===t.Z_FIXED||P===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(j,M,I,P,$),this._setDictionary()},B.prototype.params=function(){throw new Error("deflateParams Not supported")},B.prototype.reset=function(){this._reset(),this._setDictionary()},B.prototype._init=function(M,j,I,P,$){switch(this.level=M,this.windowBits=j,this.memLevel=I,this.strategy=P,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,(this.mode===t.GZIP||this.mode===t.GUNZIP)&&(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),(this.mode===t.DEFLATERAW||this.mode===t.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new l,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=d.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=m.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=$,this.write_in_progress=!1,this.init_done=!0},B.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=d.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},B.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=d.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=m.inflateReset(this.strm);break}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=B}(binding)),binding}var hasRequiredLib$5;function requireLib$5(){return hasRequiredLib$5||(hasRequiredLib$5=1,function(t){var n=require$$0$3.Buffer,l=requireStreamBrowserify().Transform,d=requireBinding(),m=util$6,h=requireAssert$1().ok,S=require$$0$3.kMaxLength,k="Cannot create final Buffer. It would be larger than 0x"+S.toString(16)+" bytes";d.Z_MIN_WINDOWBITS=8,d.Z_MAX_WINDOWBITS=15,d.Z_DEFAULT_WINDOWBITS=15,d.Z_MIN_CHUNK=64,d.Z_MAX_CHUNK=1/0,d.Z_DEFAULT_CHUNK=16*1024,d.Z_MIN_MEMLEVEL=1,d.Z_MAX_MEMLEVEL=9,d.Z_DEFAULT_MEMLEVEL=8,d.Z_MIN_LEVEL=-1,d.Z_MAX_LEVEL=9,d.Z_DEFAULT_LEVEL=d.Z_DEFAULT_COMPRESSION;for(var A=Object.keys(d),B=0;B<A.length;B++){var M=A[B];M.match(/^Z/)&&Object.defineProperty(t,M,{enumerable:!0,value:d[M],writable:!1})}for(var j={Z_OK:d.Z_OK,Z_STREAM_END:d.Z_STREAM_END,Z_NEED_DICT:d.Z_NEED_DICT,Z_ERRNO:d.Z_ERRNO,Z_STREAM_ERROR:d.Z_STREAM_ERROR,Z_DATA_ERROR:d.Z_DATA_ERROR,Z_MEM_ERROR:d.Z_MEM_ERROR,Z_BUF_ERROR:d.Z_BUF_ERROR,Z_VERSION_ERROR:d.Z_VERSION_ERROR},I=Object.keys(j),P=0;P<I.length;P++){var $=I[P];j[j[$]]=$}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(j),writable:!1}),t.Deflate=F,t.Inflate=U,t.Gzip=J,t.Gunzip=te,t.DeflateRaw=se,t.InflateRaw=de,t.Unzip=Q,t.createDeflate=function(u){return new F(u)},t.createInflate=function(u){return new U(u)},t.createDeflateRaw=function(u){return new se(u)},t.createInflateRaw=function(u){return new de(u)},t.createGzip=function(u){return new J(u)},t.createGunzip=function(u){return new te(u)},t.createUnzip=function(u){return new Q(u)},t.deflate=function(u,p,b){return typeof p=="function"&&(b=p,p={}),z(new F(p),u,b)},t.deflateSync=function(u,p){return N(new F(p),u)},t.gzip=function(u,p,b){return typeof p=="function"&&(b=p,p={}),z(new J(p),u,b)},t.gzipSync=function(u,p){return N(new J(p),u)},t.deflateRaw=function(u,p,b){return typeof p=="function"&&(b=p,p={}),z(new se(p),u,b)},t.deflateRawSync=function(u,p){return N(new se(p),u)},t.unzip=function(u,p,b){return typeof p=="function"&&(b=p,p={}),z(new Q(p),u,b)},t.unzipSync=function(u,p){return N(new Q(p),u)},t.inflate=function(u,p,b){return typeof p=="function"&&(b=p,p={}),z(new U(p),u,b)},t.inflateSync=function(u,p){return N(new U(p),u)},t.gunzip=function(u,p,b){return typeof p=="function"&&(b=p,p={}),z(new te(p),u,b)},t.gunzipSync=function(u,p){return N(new te(p),u)},t.inflateRaw=function(u,p,b){return typeof p=="function"&&(b=p,p={}),z(new de(p),u,b)},t.inflateRawSync=function(u,p){return N(new de(p),u)};function z(u,p,b){var e=[],c=0;u.on("error",w),u.on("end",v),u.end(p),y();function y(){for(var o;(o=u.read())!==null;)e.push(o),c+=o.length;u.once("readable",y)}function w(o){u.removeListener("end",v),u.removeListener("readable",y),b(o)}function v(){var o,x=null;c>=S?x=new RangeError(k):o=n.concat(e,c),e=[],u.close(),b(x,o)}}function N(u,p){if(typeof p=="string"&&(p=n.from(p)),!n.isBuffer(p))throw new TypeError("Not a string or buffer");var b=u._finishFlushFlag;return u._processChunk(p,b)}function F(u){if(!(this instanceof F))return new F(u);he.call(this,u,d.DEFLATE)}function U(u){if(!(this instanceof U))return new U(u);he.call(this,u,d.INFLATE)}function J(u){if(!(this instanceof J))return new J(u);he.call(this,u,d.GZIP)}function te(u){if(!(this instanceof te))return new te(u);he.call(this,u,d.GUNZIP)}function se(u){if(!(this instanceof se))return new se(u);he.call(this,u,d.DEFLATERAW)}function de(u){if(!(this instanceof de))return new de(u);he.call(this,u,d.INFLATERAW)}function Q(u){if(!(this instanceof Q))return new Q(u);he.call(this,u,d.UNZIP)}function ve(u){return u===d.Z_NO_FLUSH||u===d.Z_PARTIAL_FLUSH||u===d.Z_SYNC_FLUSH||u===d.Z_FULL_FLUSH||u===d.Z_FINISH||u===d.Z_BLOCK}function he(u,p){var b=this;if(this._opts=u=u||{},this._chunkSize=u.chunkSize||t.Z_DEFAULT_CHUNK,l.call(this,u),u.flush&&!ve(u.flush))throw new Error("Invalid flush flag: "+u.flush);if(u.finishFlush&&!ve(u.finishFlush))throw new Error("Invalid flush flag: "+u.finishFlush);if(this._flushFlag=u.flush||d.Z_NO_FLUSH,this._finishFlushFlag=typeof u.finishFlush<"u"?u.finishFlush:d.Z_FINISH,u.chunkSize&&(u.chunkSize<t.Z_MIN_CHUNK||u.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+u.chunkSize);if(u.windowBits&&(u.windowBits<t.Z_MIN_WINDOWBITS||u.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+u.windowBits);if(u.level&&(u.level<t.Z_MIN_LEVEL||u.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+u.level);if(u.memLevel&&(u.memLevel<t.Z_MIN_MEMLEVEL||u.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+u.memLevel);if(u.strategy&&u.strategy!=t.Z_FILTERED&&u.strategy!=t.Z_HUFFMAN_ONLY&&u.strategy!=t.Z_RLE&&u.strategy!=t.Z_FIXED&&u.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+u.strategy);if(u.dictionary&&!n.isBuffer(u.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new d.Zlib(p);var e=this;this._hadError=!1,this._handle.onerror=function(w,v){ke(e),e._hadError=!0;var o=new Error(w);o.errno=v,o.code=t.codes[v],e.emit("error",o)};var c=t.Z_DEFAULT_COMPRESSION;typeof u.level=="number"&&(c=u.level);var y=t.Z_DEFAULT_STRATEGY;typeof u.strategy=="number"&&(y=u.strategy),this._handle.init(u.windowBits||t.Z_DEFAULT_WINDOWBITS,c,u.memLevel||t.Z_DEFAULT_MEMLEVEL,y,u.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=y,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!b._handle},configurable:!0,enumerable:!0})}m.inherits(he,l),he.prototype.params=function(u,p,b){if(u<t.Z_MIN_LEVEL||u>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+u);if(p!=t.Z_FILTERED&&p!=t.Z_HUFFMAN_ONLY&&p!=t.Z_RLE&&p!=t.Z_FIXED&&p!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+p);if(this._level!==u||this._strategy!==p){var e=this;this.flush(d.Z_SYNC_FLUSH,function(){h(e._handle,"zlib binding closed"),e._handle.params(u,p),e._hadError||(e._level=u,e._strategy=p,b&&b())})}else process$1.nextTick(b)},he.prototype.reset=function(){return h(this._handle,"zlib binding closed"),this._handle.reset()},he.prototype._flush=function(u){this._transform(n.alloc(0),"",u)},he.prototype.flush=function(u,p){var b=this,e=this._writableState;(typeof u=="function"||u===void 0&&!p)&&(p=u,u=d.Z_FULL_FLUSH),e.ended?p&&process$1.nextTick(p):e.ending?p&&this.once("end",p):e.needDrain?p&&this.once("drain",function(){return b.flush(u,p)}):(this._flushFlag=u,this.write(n.alloc(0),"",p))},he.prototype.close=function(u){ke(this,u),process$1.nextTick(T,this)};function ke(u,p){p&&process$1.nextTick(p),u._handle&&(u._handle.close(),u._handle=null)}function T(u){u.emit("close")}he.prototype._transform=function(u,p,b){var e,c=this._writableState,y=c.ending||c.ended,w=y&&(!u||c.length===u.length);if(u!==null&&!n.isBuffer(u))return b(new Error("invalid input"));if(!this._handle)return b(new Error("zlib binding closed"));w?e=this._finishFlushFlag:(e=this._flushFlag,u.length>=c.length&&(this._flushFlag=this._opts.flush||d.Z_NO_FLUSH)),this._processChunk(u,e,b)},he.prototype._processChunk=function(u,p,b){var e=u&&u.length,c=this._chunkSize-this._offset,y=0,w=this,v=typeof b=="function";if(!v){var o=[],x=0,E;this.on("error",function(L){E=L}),h(this._handle,"zlib binding closed");do var R=this._handle.writeSync(p,u,y,e,this._buffer,this._offset,c);while(!this._hadError&&Z(R[0],R[1]));if(this._hadError)throw E;if(x>=S)throw ke(this),new RangeError(k);var H=n.concat(o,x);return ke(this),H}h(this._handle,"zlib binding closed");var Y=this._handle.write(p,u,y,e,this._buffer,this._offset,c);Y.buffer=u,Y.callback=Z;function Z(L,D){if(this&&(this.buffer=null,this.callback=null),!w._hadError){var ee=c-D;if(h(ee>=0,"have should not go down"),ee>0){var oe=w._buffer.slice(w._offset,w._offset+ee);w._offset+=ee,v?w.push(oe):(o.push(oe),x+=oe.length)}if((D===0||w._offset>=w._chunkSize)&&(c=w._chunkSize,w._offset=0,w._buffer=n.allocUnsafe(w._chunkSize)),D===0){if(y+=e-L,e=L,!v)return!0;var fe=w._handle.write(p,u,y,e,w._buffer,w._offset,w._chunkSize);fe.callback=Z,fe.buffer=u;return}if(!v)return!1;b()}}},m.inherits(F,he),m.inherits(U,he),m.inherits(J,he),m.inherits(te,he),m.inherits(se,he),m.inherits(de,he),m.inherits(Q,he)}(lib$5)),lib$5}var awsSign2={exports:{}},hasRequiredAwsSign2;function requireAwsSign2(){if(hasRequiredAwsSign2)return awsSign2.exports;hasRequiredAwsSign2=1;/*!
 *  Copyright 2010 LearnBoost <dev@learnboost.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var t=requireCryptoBrowserify(),n=require$$2$2.parse,l=["acl","location","logging","notification","partNumber","policy","requestPayment","torrent","uploadId","uploads","versionId","versioning","versions","website"];function d(j){return"AWS "+j.key+":"+h(j)}awsSign2.exports=d,awsSign2.exports.authorization=d;function m(j){return t.createHmac("sha1",j.secret).update(j.message).digest("base64")}awsSign2.exports.hmacSha1=m;function h(j){return j.message=k(j),m(j)}awsSign2.exports.sign=h;function S(j){return j.message=A(j),m(j)}awsSign2.exports.signQuery=S;function k(j){var I=j.amazonHeaders||"";I&&(I+=`
`);var P=[j.verb,j.md5,j.contentType,j.date?j.date.toUTCString():"",I+j.resource];return P.join(`
`)}awsSign2.exports.stringToSign=k;function A(j){return`GET


`+j.date+`
`+j.resource}awsSign2.exports.queryStringToSign=A;function B(j){for(var I=[],P=Object.keys(j),$=0,z=P.length;$<z;++$){var F=P[$],N=j[F],F=F.toLowerCase();F.indexOf("x-amz")===0&&I.push(F+":"+N)}return I.sort().join(`
`)}awsSign2.exports.canonicalizeHeaders=B;function M(j){var I=n(j,!0),P=I.pathname,$=[];return Object.keys(I.query).forEach(function(z){if(~l.indexOf(z)){var N=I.query[z]==""?"":"="+encodeURIComponent(I.query[z]);$.push(z+N)}}),P+($.length?"?"+$.sort().join("&"):"")}return awsSign2.exports.canonicalizeResource=M,awsSign2.exports}var aws4={};const require$$1$1=getAugmentedNamespace(querystring$2);var lru,hasRequiredLru;function requireLru(){if(hasRequiredLru)return lru;hasRequiredLru=1,lru=function(d){return new t(d)};function t(d){this.capacity=d|0,this.map=Object.create(null),this.list=new n}t.prototype.get=function(d){var m=this.map[d];if(m!=null)return this.used(m),m.val},t.prototype.set=function(d,m){var h=this.map[d];if(h!=null)h.val=m;else{if(this.capacity||this.prune(),!this.capacity)return!1;h=new l(d,m),this.map[d]=h,this.capacity--}return this.used(h),!0},t.prototype.used=function(d){this.list.moveToFront(d)},t.prototype.prune=function(){var d=this.list.pop();d!=null&&(delete this.map[d.key],this.capacity++)};function n(){this.firstNode=null,this.lastNode=null}n.prototype.moveToFront=function(d){this.firstNode!=d&&(this.remove(d),this.firstNode==null?(this.firstNode=d,this.lastNode=d,d.prev=null,d.next=null):(d.prev=null,d.next=this.firstNode,d.next.prev=d,this.firstNode=d))},n.prototype.pop=function(){var d=this.lastNode;return d!=null&&this.remove(d),d},n.prototype.remove=function(d){this.firstNode==d?this.firstNode=d.next:d.prev!=null&&(d.prev.next=d.next),this.lastNode==d?this.lastNode=d.prev:d.next!=null&&(d.next.prev=d.prev)};function l(d,m){this.key=d,this.val=m,this.prev=null,this.next=null}return lru}var hasRequiredAws4;function requireAws4(){return hasRequiredAws4||(hasRequiredAws4=1,function(t){var n=t,l=require$$2$2,d=require$$1$1,m=requireCryptoBrowserify(),h=requireLru(),S=h(1e3);function k(P,$,z){return m.createHmac("sha256",P).update($,"utf8").digest(z)}function A(P,$){return m.createHash("sha256").update(P,"utf8").digest($)}function B(P){return P.replace(/[!'()*]/g,function($){return"%"+$.charCodeAt(0).toString(16).toUpperCase()})}function M(P){return B(encodeURIComponent(P))}var j={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0};function I(P,$){typeof P=="string"&&(P=l.parse(P));var z=P.headers=Object.assign({},P.headers||{}),N=(!this.service||!this.region)&&this.matchHost(P.hostname||P.host||z.Host||z.host);this.request=P,this.credentials=$||this.defaultCredentials(),this.service=P.service||N[0]||"",this.region=P.region||N[1]||"us-east-1",this.service==="email"&&(this.service="ses"),!P.method&&P.body&&(P.method="POST"),!z.Host&&!z.host&&(z.Host=P.hostname||P.host||this.createHost(),P.port&&(z.Host+=":"+P.port)),!P.hostname&&!P.host&&(P.hostname=z.Host||z.host),this.isCodeCommitGit=this.service==="codecommit"&&P.method==="GIT",this.extraHeadersToIgnore=P.extraHeadersToIgnore||Object.create(null),this.extraHeadersToInclude=P.extraHeadersToInclude||Object.create(null)}I.prototype.matchHost=function(P){var $=(P||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/),z=($||[]).slice(1,3);if((z[1]==="es"||z[1]==="aoss")&&(z=z.reverse()),z[1]=="s3")z[0]="s3",z[1]="us-east-1";else for(var N=0;N<2;N++)if(/^s3-/.test(z[N])){z[1]=z[N].slice(3),z[0]="s3";break}return z},I.prototype.isSingleRegion=function(){return["s3","sdb"].indexOf(this.service)>=0&&this.region==="us-east-1"?!0:["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0},I.prototype.createHost=function(){var P=this.isSingleRegion()?"":"."+this.region,$=this.service==="ses"?"email":this.service;return $+P+".amazonaws.com"},I.prototype.prepareRequest=function(){this.parsePath();var P=this.request,$=P.headers,z;P.signQuery?(this.parsedPath.query=z=this.parsedPath.query||{},this.credentials.sessionToken&&(z["X-Amz-Security-Token"]=this.credentials.sessionToken),this.service==="s3"&&!z["X-Amz-Expires"]&&(z["X-Amz-Expires"]=86400),z["X-Amz-Date"]?this.datetime=z["X-Amz-Date"]:z["X-Amz-Date"]=this.getDateTime(),z["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",z["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),z["X-Amz-SignedHeaders"]=this.signedHeaders()):(!P.doNotModifyHeaders&&!this.isCodeCommitGit&&(P.body&&!$["Content-Type"]&&!$["content-type"]&&($["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),P.body&&!$["Content-Length"]&&!$["content-length"]&&($["Content-Length"]=Buffer$C.byteLength(P.body)),this.credentials.sessionToken&&!$["X-Amz-Security-Token"]&&!$["x-amz-security-token"]&&($["X-Amz-Security-Token"]=this.credentials.sessionToken),this.service==="s3"&&!$["X-Amz-Content-Sha256"]&&!$["x-amz-content-sha256"]&&($["X-Amz-Content-Sha256"]=A(this.request.body||"","hex")),$["X-Amz-Date"]||$["x-amz-date"]?this.datetime=$["X-Amz-Date"]||$["x-amz-date"]:$["X-Amz-Date"]=this.getDateTime()),delete $.Authorization,delete $.authorization)},I.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.request.headers.Authorization=this.authHeader(),this.request.path=this.formatPath(),this.request},I.prototype.getDateTime=function(){if(!this.datetime){var P=this.request.headers,$=new Date(P.Date||P.date||new Date);this.datetime=$.toISOString().replace(/[:\-]|\.\d{3}/g,""),this.isCodeCommitGit&&(this.datetime=this.datetime.slice(0,-1))}return this.datetime},I.prototype.getDate=function(){return this.getDateTime().substr(0,8)},I.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")},I.prototype.signature=function(){var P=this.getDate(),$=[this.credentials.secretAccessKey,P,this.region,this.service].join(),z,N,F,U=S.get($);return U||(z=k("AWS4"+this.credentials.secretAccessKey,P),N=k(z,this.region),F=k(N,this.service),U=k(F,"aws4_request"),S.set($,U)),k(U,this.stringToSign(),"hex")},I.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),A(this.canonicalString(),"hex")].join(`
`)},I.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var P=this.parsedPath.path,$=this.parsedPath.query,z=this.request.headers,N="",F=this.service!=="s3",U=this.service==="s3"||this.request.doNotEncodePath,J=this.service==="s3",te=this.service==="s3",se;if(this.service==="s3"&&this.request.signQuery?se="UNSIGNED-PAYLOAD":this.isCodeCommitGit?se="":se=z["X-Amz-Content-Sha256"]||z["x-amz-content-sha256"]||A(this.request.body||"","hex"),$){var de=Object.keys($).reduce(function(ve,he){return he&&(ve[M(he)]=Array.isArray($[he])&&te?$[he][0]:$[he]),ve},{}),Q=[];Object.keys(de).sort().forEach(function(ve){Array.isArray(de[ve])?de[ve].map(M).sort().forEach(function(he){Q.push(ve+"="+he)}):Q.push(ve+"="+M(de[ve]))}),N=Q.join("&")}return P!=="/"&&(F&&(P=P.replace(/\/{2,}/g,"/")),P=P.split("/").reduce(function(ve,he){return F&&he===".."?ve.pop():(!F||he!==".")&&(U&&(he=decodeURIComponent(he.replace(/\+/g," "))),ve.push(M(he))),ve},[]).join("/"),P[0]!=="/"&&(P="/"+P),J&&(P=P.replace(/%2F/g,"/"))),[this.request.method||"GET",P,N,this.canonicalHeaders()+`
`,this.signedHeaders(),se].join(`
`)},I.prototype.filterHeaders=function(){var P=this.request.headers,$=this.extraHeadersToInclude,z=this.extraHeadersToIgnore;this.filteredHeaders=Object.keys(P).map(function(N){return[N.toLowerCase(),P[N]]}).filter(function(N){return $[N[0]]||j[N[0]]==null&&!z[N[0]]}).sort(function(N,F){return N[0]<F[0]?-1:1})},I.prototype.canonicalHeaders=function(){return this.filteredHeaders||this.filterHeaders(),this.filteredHeaders.map(function(P){return P[0]+":"+P[1].toString().trim().replace(/\s+/g," ")}).join(`
`)},I.prototype.signedHeaders=function(){return this.filteredHeaders||this.filterHeaders(),this.filteredHeaders.map(function(P){return P[0]}).join(";")},I.prototype.credentialString=function(){return[this.getDate(),this.region,this.service,"aws4_request"].join("/")},I.prototype.defaultCredentials=function(){var P=process$1.env;return{accessKeyId:P.AWS_ACCESS_KEY_ID||P.AWS_ACCESS_KEY,secretAccessKey:P.AWS_SECRET_ACCESS_KEY||P.AWS_SECRET_KEY,sessionToken:P.AWS_SESSION_TOKEN}},I.prototype.parsePath=function(){var P=this.request.path||"/";/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(P)&&(P=encodeURI(decodeURI(P)));var $=P.indexOf("?"),z=null;$>=0&&(z=d.parse(P.slice($+1)),P=P.slice(0,$)),this.parsedPath={path:P,query:z}},I.prototype.formatPath=function(){var P=this.parsedPath.path,$=this.parsedPath.query;return $?($[""]!=null&&delete $[""],P+"?"+B(d.stringify($))):P},n.RequestSigner=I,n.sign=function(P,$){return new I(P,$).sign()}}(aws4)),aws4}var assert_1,hasRequiredAssert;function requireAssert(){if(hasRequiredAssert)return assert_1;hasRequiredAssert=1;var t=requireAssert$1(),n=requireStreamBrowserify().Stream,l=util$6,d=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function m(M){return M.charAt(0).toUpperCase()+M.slice(1)}function h(M,j,I,P,$){throw new t.AssertionError({message:l.format("%s (%s) is required",M,j),actual:$===void 0?typeof P:$(P),expected:j,operator:I||"===",stackStartFunction:h.caller})}function S(M){return Object.prototype.toString.call(M).slice(8,-1)}function k(){}var A={bool:{check:function(M){return typeof M=="boolean"}},func:{check:function(M){return typeof M=="function"}},string:{check:function(M){return typeof M=="string"}},object:{check:function(M){return typeof M=="object"&&M!==null}},number:{check:function(M){return typeof M=="number"&&!isNaN(M)}},finite:{check:function(M){return typeof M=="number"&&!isNaN(M)&&isFinite(M)}},buffer:{check:function(M){return Buffer$C.isBuffer(M)},operator:"Buffer.isBuffer"},array:{check:function(M){return Array.isArray(M)},operator:"Array.isArray"},stream:{check:function(M){return M instanceof n},operator:"instanceof",actual:S},date:{check:function(M){return M instanceof Date},operator:"instanceof",actual:S},regexp:{check:function(M){return M instanceof RegExp},operator:"instanceof",actual:S},uuid:{check:function(M){return typeof M=="string"&&d.test(M)},operator:"isUUID"}};function B(M){var j=Object.keys(A),I;return process$1.env.NODE_NDEBUG?I=k:I=function(P,$){P||h($,"true",P)},j.forEach(function(P){if(M){I[P]=k;return}var $=A[P];I[P]=function(z,N){$.check(z)||h(N,P,$.operator,z,$.actual)}}),j.forEach(function(P){var $="optional"+m(P);if(M){I[$]=k;return}var z=A[P];I[$]=function(N,F){N!=null&&(z.check(N)||h(F,P,z.operator,N,z.actual))}}),j.forEach(function(P){var $="arrayOf"+m(P);if(M){I[$]=k;return}var z=A[P],N="["+P+"]";I[$]=function(F,U){Array.isArray(F)||h(U,N,z.operator,F,z.actual);var J;for(J=0;J<F.length;J++)z.check(F[J])||h(U,N,z.operator,F,z.actual)}}),j.forEach(function(P){var $="optionalArrayOf"+m(P);if(M){I[$]=k;return}var z=A[P],N="["+P+"]";I[$]=function(F,U){if(F!=null){Array.isArray(F)||h(U,N,z.operator,F,z.actual);var J;for(J=0;J<F.length;J++)z.check(F[J])||h(U,N,z.operator,F,z.actual)}}}),Object.keys(t).forEach(function(P){if(P==="AssertionError"){I[P]=t[P];return}if(M){I[P]=k;return}I[P]=t[P]}),I._setExports=B,I}return assert_1=B(process$1.env.NODE_NDEBUG),assert_1}var safer_1,hasRequiredSafer;function requireSafer(){if(hasRequiredSafer)return safer_1;hasRequiredSafer=1;var t=require$$0$3,n=t.Buffer,l={},d;for(d in t)t.hasOwnProperty(d)&&(d==="SlowBuffer"||d==="Buffer"||(l[d]=t[d]));var m=l.Buffer={};for(d in n)n.hasOwnProperty(d)&&(d==="allocUnsafe"||d==="allocUnsafeSlow"||(m[d]=n[d]));if(l.Buffer.prototype=n.prototype,(!m.from||m.from===Uint8Array.from)&&(m.from=function(h,S,k){if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof h);if(h&&typeof h.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);return n(h,S,k)}),m.alloc||(m.alloc=function(h,S,k){if(typeof h!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof h);if(h<0||h>=2*(1<<30))throw new RangeError('The value "'+h+'" is invalid for option "size"');var A=n(h);return!S||S.length===0?A.fill(0):typeof k=="string"?A.fill(S,k):A.fill(S),A}),!l.kStringMaxLength)try{l.kStringMaxLength=process$1.binding("buffer").kStringMaxLength}catch{}return l.constants||(l.constants={MAX_LENGTH:l.kMaxLength},l.kStringMaxLength&&(l.constants.MAX_STRING_LENGTH=l.kStringMaxLength)),safer_1=l,safer_1}var algs,hasRequiredAlgs;function requireAlgs(){if(hasRequiredAlgs)return algs;hasRequiredAlgs=1;var t=requireSafer().Buffer,n={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}};n.curve25519=n.ed25519;var l={dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}};l.curve25519=l.ed25519;var d={md5:!0,sha1:!0,sha256:!0,sha384:!0,sha512:!0},m={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:t.from("00ffffffff 00000001 00000000 0000000000000000 ffffffff ffffffff ffffffff".replace(/ /g,""),"hex"),a:t.from("00FFFFFFFF 00000001 00000000 0000000000000000 FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:t.from("5ac635d8 aa3a93e7 b3ebbd55 769886bc651d06b0 cc53b0f6 3bce3c3e 27d2604b".replace(/ /g,""),"hex"),s:t.from("00c49d3608 86e70493 6a6678e1 139d26b7819f7e90".replace(/ /g,""),"hex"),n:t.from("00ffffffff 00000000 ffffffff ffffffffbce6faad a7179e84 f3b9cac2 fc632551".replace(/ /g,""),"hex"),G:t.from("046b17d1f2 e12c4247 f8bce6e5 63a440f277037d81 2deb33a0 f4a13945 d898c2964fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e162bce3357 6b315ece cbb64068 37bf51f5".replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:t.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffeffffffff 00000000 00000000 ffffffff".replace(/ /g,""),"hex"),a:t.from("00FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFEFFFFFFFF 00000000 00000000 FFFFFFFC".replace(/ /g,""),"hex"),b:t.from("b3312fa7 e23ee7e4 988e056b e3f82d19181d9c6e fe814112 0314088f 5013875ac656398d 8a2ed19d 2a85c8ed d3ec2aef".replace(/ /g,""),"hex"),s:t.from("00a335926a a319a27a 1d00896a 6773a4827acdac73".replace(/ /g,""),"hex"),n:t.from("00ffffffff ffffffff ffffffff ffffffffffffffff ffffffff c7634d81 f4372ddf581a0db2 48b0a77a ecec196a ccc52973".replace(/ /g,""),"hex"),G:t.from("04aa87ca22 be8b0537 8eb1c71e f320ad746e1d3b62 8ba79b98 59f741e0 82542a385502f25d bf55296c 3a545e38 72760ab73617de4a 96262c6f 5d9e98bf 9292dc29f8f41dbd 289a147c e9da3113 b5f0b8c00a60b1ce 1d7e819d 7a431d7c 90ea0e5f".replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:t.from("01ffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff ffffffffffff".replace(/ /g,""),"hex"),a:t.from("01FFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFFFFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC".replace(/ /g,""),"hex"),b:t.from("51953eb961 8e1c9a1f 929a21a0 b68540eea2da725b 99b315f3 b8b48991 8ef109e156193951 ec7e937b 1652c0bd 3bb1bf073573df88 3d2c34f1 ef451fd4 6b503f00".replace(/ /g,""),"hex"),s:t.from("00d09e8800 291cb853 96cc6717 393284aaa0da64ba".replace(/ /g,""),"hex"),n:t.from("01ffffffffff ffffffff ffffffff ffffffffffffffff ffffffff ffffffff fffffffa51868783 bf2f966b 7fcc0148 f709a5d03bb5c9b8 899c47ae bb6fb71e 91386409".replace(/ /g,""),"hex"),G:t.from("0400c6 858e06b7 0404e9cd 9e3ecb66 2395b4429c648139 053fb521 f828af60 6b4d3dbaa14b5e77 efe75928 fe1dc127 a2ffa8de3348b3c1 856a429b f97e7e31 c2e5bd660118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd998f54449 579b4468 17afbd17 273e662c97ee7299 5ef42640 c550b901 3fad0761353c7086 a272c240 88be9476 9fd16650".replace(/ /g,""),"hex")}};return algs={info:n,privInfo:l,hashAlgs:d,curves:m},algs}var errors$1,hasRequiredErrors$1;function requireErrors$1(){if(hasRequiredErrors$1)return errors$1;hasRequiredErrors$1=1,requireAssert();var t=util$6;function n(k,A){Error.captureStackTrace&&Error.captureStackTrace(this,n),this.name="FingerprintFormatError",this.fingerprint=k,this.format=A,this.message="Fingerprint format is not supported, or is invalid: ",k!==void 0&&(this.message+=" fingerprint = "+k),A!==void 0&&(this.message+=" format = "+A)}t.inherits(n,Error);function l(k){Error.captureStackTrace&&Error.captureStackTrace(this,l),this.name="InvalidAlgorithmError",this.algorithm=k,this.message='Algorithm "'+k+'" is not supported'}t.inherits(l,Error);function d(k,A,B){Error.captureStackTrace&&Error.captureStackTrace(this,d),this.name="KeyParseError",this.format=A,this.keyName=k,this.innerErr=B,this.message="Failed to parse "+k+" as a valid "+A+" format key: "+B.message}t.inherits(d,Error);function m(k,A,B){Error.captureStackTrace&&Error.captureStackTrace(this,m),this.name="SignatureParseError",this.type=k,this.format=A,this.innerErr=B,this.message="Failed to parse the given data as a "+k+" signature in "+A+" format: "+B.message}t.inherits(m,Error);function h(k,A,B){Error.captureStackTrace&&Error.captureStackTrace(this,h),this.name="CertificateParseError",this.format=A,this.certName=k,this.innerErr=B,this.message="Failed to parse "+k+" as a valid "+A+" format certificate: "+B.message}t.inherits(h,Error);function S(k,A){Error.captureStackTrace&&Error.captureStackTrace(this,S),this.name="KeyEncryptedError",this.format=A,this.keyName=k,this.message="The "+A+" format key "+k+" is encrypted (password-protected), and no passphrase was provided in `options`"}return t.inherits(S,Error),errors$1={FingerprintFormatError:n,InvalidAlgorithmError:l,KeyParseError:d,SignatureParseError:m,KeyEncryptedError:S,CertificateParseError:h},errors$1}var ber={exports:{}},errors,hasRequiredErrors;function requireErrors(){return hasRequiredErrors||(hasRequiredErrors=1,errors={newInvalidAsn1Error:function(t){var n=new Error;return n.name="InvalidAsn1Error",n.message=t||"",n}}),errors}var types,hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,types={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}),types}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1;var t=requireAssert$1(),n=requireSafer().Buffer,l=requireTypes(),d=requireErrors(),m=d.newInvalidAsn1Error;function h(S){if(!S||!n.isBuffer(S))throw new TypeError("data must be a node Buffer");this._buf=S,this._size=S.length,this._len=0,this._offset=0}return Object.defineProperty(h.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(h.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(h.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),h.prototype.readByte=function(S){if(this._size-this._offset<1)return null;var k=this._buf[this._offset]&255;return S||(this._offset+=1),k},h.prototype.peek=function(){return this.readByte(!0)},h.prototype.readLength=function(S){if(S===void 0&&(S=this._offset),S>=this._size)return null;var k=this._buf[S++]&255;if(k===null)return null;if((k&128)===128){if(k&=127,k===0)throw m("Indefinite length not supported");if(k>4)throw m("encoding too long");if(this._size-S<k)return null;this._len=0;for(var A=0;A<k;A++)this._len=(this._len<<8)+(this._buf[S++]&255)}else this._len=k;return S},h.prototype.readSequence=function(S){var k=this.peek();if(k===null)return null;if(S!==void 0&&S!==k)throw m("Expected 0x"+S.toString(16)+": got 0x"+k.toString(16));var A=this.readLength(this._offset+1);return A===null?null:(this._offset=A,k)},h.prototype.readInt=function(){return this._readTag(l.Integer)},h.prototype.readBoolean=function(){return this._readTag(l.Boolean)!==0},h.prototype.readEnumeration=function(){return this._readTag(l.Enumeration)},h.prototype.readString=function(S,k){S||(S=l.OctetString);var A=this.peek();if(A===null)return null;if(A!==S)throw m("Expected 0x"+S.toString(16)+": got 0x"+A.toString(16));var B=this.readLength(this._offset+1);if(B===null||this.length>this._size-B)return null;if(this._offset=B,this.length===0)return k?n.alloc(0):"";var M=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,k?M:M.toString("utf8")},h.prototype.readOID=function(S){S||(S=l.OID);var k=this.readString(S,!0);if(k===null)return null;for(var A=[],B=0,M=0;M<k.length;M++){var j=k[M]&255;B<<=7,B+=j&127,j&128||(A.push(B),B=0)}return B=A.shift(),A.unshift(B%40),A.unshift(B/40>>0),A.join(".")},h.prototype._readTag=function(S){t.ok(S!==void 0);var k=this.peek();if(k===null)return null;if(k!==S)throw m("Expected 0x"+S.toString(16)+": got 0x"+k.toString(16));var A=this.readLength(this._offset+1);if(A===null)return null;if(this.length>4)throw m("Integer too long: "+this.length);if(this.length>this._size-A)return null;this._offset=A;for(var B=this._buf[this._offset],M=0,j=0;j<this.length;j++)M<<=8,M|=this._buf[this._offset++]&255;return(B&128)===128&&j!==4&&(M-=1<<j*8),M>>0},reader=h,reader}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1;var t=requireAssert$1(),n=requireSafer().Buffer,l=requireTypes(),d=requireErrors(),m=d.newInvalidAsn1Error,h={size:1024,growthFactor:8};function S(A,B){t.ok(A),t.equal(typeof A,"object"),t.ok(B),t.equal(typeof B,"object");var M=Object.getOwnPropertyNames(A);return M.forEach(function(j){if(!B[j]){var I=Object.getOwnPropertyDescriptor(A,j);Object.defineProperty(B,j,I)}}),B}function k(A){A=S(h,A||{}),this._buf=n.alloc(A.size||1024),this._size=this._buf.length,this._offset=0,this._options=A,this._seq=[]}return Object.defineProperty(k.prototype,"buffer",{get:function(){if(this._seq.length)throw m(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}}),k.prototype.writeByte=function(A){if(typeof A!="number")throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=A},k.prototype.writeInt=function(A,B){if(typeof A!="number")throw new TypeError("argument must be a Number");typeof B!="number"&&(B=l.Integer);for(var M=4;(!(A&4286578688)||(A&4286578688)===-8388608)&&M>1;)M--,A<<=8;if(M>4)throw m("BER ints cannot be > 0xffffffff");for(this._ensure(2+M),this._buf[this._offset++]=B,this._buf[this._offset++]=M;M-- >0;)this._buf[this._offset++]=(A&4278190080)>>>24,A<<=8},k.prototype.writeNull=function(){this.writeByte(l.Null),this.writeByte(0)},k.prototype.writeEnumeration=function(A,B){if(typeof A!="number")throw new TypeError("argument must be a Number");return typeof B!="number"&&(B=l.Enumeration),this.writeInt(A,B)},k.prototype.writeBoolean=function(A,B){if(typeof A!="boolean")throw new TypeError("argument must be a Boolean");typeof B!="number"&&(B=l.Boolean),this._ensure(3),this._buf[this._offset++]=B,this._buf[this._offset++]=1,this._buf[this._offset++]=A?255:0},k.prototype.writeString=function(A,B){if(typeof A!="string")throw new TypeError("argument must be a string (was: "+typeof A+")");typeof B!="number"&&(B=l.OctetString);var M=n.byteLength(A);this.writeByte(B),this.writeLength(M),M&&(this._ensure(M),this._buf.write(A,this._offset),this._offset+=M)},k.prototype.writeBuffer=function(A,B){if(typeof B!="number")throw new TypeError("tag must be a number");if(!n.isBuffer(A))throw new TypeError("argument must be a buffer");this.writeByte(B),this.writeLength(A.length),this._ensure(A.length),A.copy(this._buf,this._offset,0,A.length),this._offset+=A.length},k.prototype.writeStringArray=function(A){if(!A instanceof Array)throw new TypeError("argument must be an Array[String]");var B=this;A.forEach(function(M){B.writeString(M)})},k.prototype.writeOID=function(A,B){if(typeof A!="string")throw new TypeError("argument must be a string");if(typeof B!="number"&&(B=l.OID),!/^([0-9]+\.){3,}[0-9]+$/.test(A))throw new Error("argument is not a valid OID string");function M($,z){z<128?$.push(z):z<16384?($.push(z>>>7|128),$.push(z&127)):z<2097152?($.push(z>>>14|128),$.push((z>>>7|128)&255),$.push(z&127)):z<268435456?($.push(z>>>21|128),$.push((z>>>14|128)&255),$.push((z>>>7|128)&255),$.push(z&127)):($.push((z>>>28|128)&255),$.push((z>>>21|128)&255),$.push((z>>>14|128)&255),$.push((z>>>7|128)&255),$.push(z&127))}var j=A.split("."),I=[];I.push(parseInt(j[0],10)*40+parseInt(j[1],10)),j.slice(2).forEach(function($){M(I,parseInt($,10))});var P=this;this._ensure(2+I.length),this.writeByte(B),this.writeLength(I.length),I.forEach(function($){P.writeByte($)})},k.prototype.writeLength=function(A){if(typeof A!="number")throw new TypeError("argument must be a Number");if(this._ensure(4),A<=127)this._buf[this._offset++]=A;else if(A<=255)this._buf[this._offset++]=129,this._buf[this._offset++]=A;else if(A<=65535)this._buf[this._offset++]=130,this._buf[this._offset++]=A>>8,this._buf[this._offset++]=A;else if(A<=16777215)this._buf[this._offset++]=131,this._buf[this._offset++]=A>>16,this._buf[this._offset++]=A>>8,this._buf[this._offset++]=A;else throw m("Length too long (> 4 bytes)")},k.prototype.startSequence=function(A){typeof A!="number"&&(A=l.Sequence|l.Constructor),this.writeByte(A),this._seq.push(this._offset),this._ensure(3),this._offset+=3},k.prototype.endSequence=function(){var A=this._seq.pop(),B=A+3,M=this._offset-B;if(M<=127)this._shift(B,M,-2),this._buf[A]=M;else if(M<=255)this._shift(B,M,-1),this._buf[A]=129,this._buf[A+1]=M;else if(M<=65535)this._buf[A]=130,this._buf[A+1]=M>>8,this._buf[A+2]=M;else if(M<=16777215)this._shift(B,M,1),this._buf[A]=131,this._buf[A+1]=M>>16,this._buf[A+2]=M>>8,this._buf[A+3]=M;else throw m("Sequence too long")},k.prototype._shift=function(A,B,M){t.ok(A!==void 0),t.ok(B!==void 0),t.ok(M),this._buf.copy(this._buf,A+M,A,A+B),this._offset+=M},k.prototype._ensure=function(A){if(t.ok(A),this._size-this._offset<A){var B=this._size*this._options.growthFactor;B-this._offset<A&&(B+=A);var M=n.alloc(B);this._buf.copy(M,0,0,this._offset),this._buf=M,this._size=B}},writer=k,writer}var hasRequiredBer;function requireBer(){return hasRequiredBer||(hasRequiredBer=1,function(t){var n=requireErrors(),l=requireTypes(),d=requireReader(),m=requireWriter();t.exports={Reader:d,Writer:m};for(var h in l)l.hasOwnProperty(h)&&(t.exports[h]=l[h]);for(var S in n)n.hasOwnProperty(S)&&(t.exports[S]=n[S])}(ber)),ber.exports}var lib$4,hasRequiredLib$4;function requireLib$4(){if(hasRequiredLib$4)return lib$4;hasRequiredLib$4=1;var t=requireBer();return lib$4={Ber:t,BerReader:t.Reader,BerWriter:t.Writer},lib$4}var jsbn={exports:{}},hasRequiredJsbn;function requireJsbn(){return hasRequiredJsbn||(hasRequiredJsbn=1,function(t,n){(function(){var l,d=0xdeadbeefcafe,m=(d&16777215)==15715070;function h(ge,we,Ae){ge!=null&&(typeof ge=="number"?this.fromNumber(ge,we,Ae):we==null&&typeof ge!="string"?this.fromString(ge,256):this.fromString(ge,we))}function S(){return new h(null)}function k(ge,we,Ae,Ue,ht,_t){for(;--_t>=0;){var Ct=we*this[ge++]+Ae[Ue]+ht;ht=Math.floor(Ct/67108864),Ae[Ue++]=Ct&67108863}return ht}function A(ge,we,Ae,Ue,ht,_t){for(var Ct=we&32767,At=we>>15;--_t>=0;){var Qt=this[ge]&32767,ir=this[ge++]>>15,tr=At*Qt+ir*Ct;Qt=Ct*Qt+((tr&32767)<<15)+Ae[Ue]+(ht&1073741823),ht=(Qt>>>30)+(tr>>>15)+At*ir+(ht>>>30),Ae[Ue++]=Qt&1073741823}return ht}function B(ge,we,Ae,Ue,ht,_t){for(var Ct=we&16383,At=we>>14;--_t>=0;){var Qt=this[ge]&16383,ir=this[ge++]>>14,tr=At*Qt+ir*Ct;Qt=Ct*Qt+((tr&16383)<<14)+Ae[Ue]+ht,ht=(Qt>>28)+(tr>>14)+At*ir,Ae[Ue++]=Qt&268435455}return ht}var M=typeof navigator<"u";M&&m&&navigator.appName=="Microsoft Internet Explorer"?(h.prototype.am=A,l=30):M&&m&&navigator.appName!="Netscape"?(h.prototype.am=k,l=26):(h.prototype.am=B,l=28),h.prototype.DB=l,h.prototype.DM=(1<<l)-1,h.prototype.DV=1<<l;var j=52;h.prototype.FV=Math.pow(2,j),h.prototype.F1=j-l,h.prototype.F2=2*l-j;var I="0123456789abcdefghijklmnopqrstuvwxyz",P=new Array,$,z;for($=48,z=0;z<=9;++z)P[$++]=z;for($=97,z=10;z<36;++z)P[$++]=z;for($=65,z=10;z<36;++z)P[$++]=z;function N(ge){return I.charAt(ge)}function F(ge,we){var Ae=P[ge.charCodeAt(we)];return Ae??-1}function U(ge){for(var we=this.t-1;we>=0;--we)ge[we]=this[we];ge.t=this.t,ge.s=this.s}function J(ge){this.t=1,this.s=ge<0?-1:0,ge>0?this[0]=ge:ge<-1?this[0]=ge+this.DV:this.t=0}function te(ge){var we=S();return we.fromInt(ge),we}function se(ge,we){var Ae;if(we==16)Ae=4;else if(we==8)Ae=3;else if(we==256)Ae=8;else if(we==2)Ae=1;else if(we==32)Ae=5;else if(we==4)Ae=2;else{this.fromRadix(ge,we);return}this.t=0,this.s=0;for(var Ue=ge.length,ht=!1,_t=0;--Ue>=0;){var Ct=Ae==8?ge[Ue]&255:F(ge,Ue);if(Ct<0){ge.charAt(Ue)=="-"&&(ht=!0);continue}ht=!1,_t==0?this[this.t++]=Ct:_t+Ae>this.DB?(this[this.t-1]|=(Ct&(1<<this.DB-_t)-1)<<_t,this[this.t++]=Ct>>this.DB-_t):this[this.t-1]|=Ct<<_t,_t+=Ae,_t>=this.DB&&(_t-=this.DB)}Ae==8&&ge[0]&128&&(this.s=-1,_t>0&&(this[this.t-1]|=(1<<this.DB-_t)-1<<_t)),this.clamp(),ht&&h.ZERO.subTo(this,this)}function de(){for(var ge=this.s&this.DM;this.t>0&&this[this.t-1]==ge;)--this.t}function Q(ge){if(this.s<0)return"-"+this.negate().toString(ge);var we;if(ge==16)we=4;else if(ge==8)we=3;else if(ge==2)we=1;else if(ge==32)we=5;else if(ge==4)we=2;else return this.toRadix(ge);var Ae=(1<<we)-1,Ue,ht=!1,_t="",Ct=this.t,At=this.DB-Ct*this.DB%we;if(Ct-- >0)for(At<this.DB&&(Ue=this[Ct]>>At)>0&&(ht=!0,_t=N(Ue));Ct>=0;)At<we?(Ue=(this[Ct]&(1<<At)-1)<<we-At,Ue|=this[--Ct]>>(At+=this.DB-we)):(Ue=this[Ct]>>(At-=we)&Ae,At<=0&&(At+=this.DB,--Ct)),Ue>0&&(ht=!0),ht&&(_t+=N(Ue));return ht?_t:"0"}function ve(){var ge=S();return h.ZERO.subTo(this,ge),ge}function he(){return this.s<0?this.negate():this}function ke(ge){var we=this.s-ge.s;if(we!=0)return we;var Ae=this.t;if(we=Ae-ge.t,we!=0)return this.s<0?-we:we;for(;--Ae>=0;)if((we=this[Ae]-ge[Ae])!=0)return we;return 0}function T(ge){var we=1,Ae;return(Ae=ge>>>16)!=0&&(ge=Ae,we+=16),(Ae=ge>>8)!=0&&(ge=Ae,we+=8),(Ae=ge>>4)!=0&&(ge=Ae,we+=4),(Ae=ge>>2)!=0&&(ge=Ae,we+=2),(Ae=ge>>1)!=0&&(ge=Ae,we+=1),we}function u(){return this.t<=0?0:this.DB*(this.t-1)+T(this[this.t-1]^this.s&this.DM)}function p(ge,we){var Ae;for(Ae=this.t-1;Ae>=0;--Ae)we[Ae+ge]=this[Ae];for(Ae=ge-1;Ae>=0;--Ae)we[Ae]=0;we.t=this.t+ge,we.s=this.s}function b(ge,we){for(var Ae=ge;Ae<this.t;++Ae)we[Ae-ge]=this[Ae];we.t=Math.max(this.t-ge,0),we.s=this.s}function e(ge,we){var Ae=ge%this.DB,Ue=this.DB-Ae,ht=(1<<Ue)-1,_t=Math.floor(ge/this.DB),Ct=this.s<<Ae&this.DM,At;for(At=this.t-1;At>=0;--At)we[At+_t+1]=this[At]>>Ue|Ct,Ct=(this[At]&ht)<<Ae;for(At=_t-1;At>=0;--At)we[At]=0;we[_t]=Ct,we.t=this.t+_t+1,we.s=this.s,we.clamp()}function c(ge,we){we.s=this.s;var Ae=Math.floor(ge/this.DB);if(Ae>=this.t){we.t=0;return}var Ue=ge%this.DB,ht=this.DB-Ue,_t=(1<<Ue)-1;we[0]=this[Ae]>>Ue;for(var Ct=Ae+1;Ct<this.t;++Ct)we[Ct-Ae-1]|=(this[Ct]&_t)<<ht,we[Ct-Ae]=this[Ct]>>Ue;Ue>0&&(we[this.t-Ae-1]|=(this.s&_t)<<ht),we.t=this.t-Ae,we.clamp()}function y(ge,we){for(var Ae=0,Ue=0,ht=Math.min(ge.t,this.t);Ae<ht;)Ue+=this[Ae]-ge[Ae],we[Ae++]=Ue&this.DM,Ue>>=this.DB;if(ge.t<this.t){for(Ue-=ge.s;Ae<this.t;)Ue+=this[Ae],we[Ae++]=Ue&this.DM,Ue>>=this.DB;Ue+=this.s}else{for(Ue+=this.s;Ae<ge.t;)Ue-=ge[Ae],we[Ae++]=Ue&this.DM,Ue>>=this.DB;Ue-=ge.s}we.s=Ue<0?-1:0,Ue<-1?we[Ae++]=this.DV+Ue:Ue>0&&(we[Ae++]=Ue),we.t=Ae,we.clamp()}function w(ge,we){var Ae=this.abs(),Ue=ge.abs(),ht=Ae.t;for(we.t=ht+Ue.t;--ht>=0;)we[ht]=0;for(ht=0;ht<Ue.t;++ht)we[ht+Ae.t]=Ae.am(0,Ue[ht],we,ht,0,Ae.t);we.s=0,we.clamp(),this.s!=ge.s&&h.ZERO.subTo(we,we)}function v(ge){for(var we=this.abs(),Ae=ge.t=2*we.t;--Ae>=0;)ge[Ae]=0;for(Ae=0;Ae<we.t-1;++Ae){var Ue=we.am(Ae,we[Ae],ge,2*Ae,0,1);(ge[Ae+we.t]+=we.am(Ae+1,2*we[Ae],ge,2*Ae+1,Ue,we.t-Ae-1))>=we.DV&&(ge[Ae+we.t]-=we.DV,ge[Ae+we.t+1]=1)}ge.t>0&&(ge[ge.t-1]+=we.am(Ae,we[Ae],ge,2*Ae,0,1)),ge.s=0,ge.clamp()}function o(ge,we,Ae){var Ue=ge.abs();if(!(Ue.t<=0)){var ht=this.abs();if(ht.t<Ue.t){we!=null&&we.fromInt(0),Ae!=null&&this.copyTo(Ae);return}Ae==null&&(Ae=S());var _t=S(),Ct=this.s,At=ge.s,Qt=this.DB-T(Ue[Ue.t-1]);Qt>0?(Ue.lShiftTo(Qt,_t),ht.lShiftTo(Qt,Ae)):(Ue.copyTo(_t),ht.copyTo(Ae));var ir=_t.t,tr=_t[ir-1];if(tr!=0){var Zt=tr*(1<<this.F1)+(ir>1?_t[ir-2]>>this.F2:0),Br=this.FV/Zt,pr=(1<<this.F1)/Zt,_r=1<<this.F2,fr=Ae.t,Gr=fr-ir,Nr=we??S();for(_t.dlShiftTo(Gr,Nr),Ae.compareTo(Nr)>=0&&(Ae[Ae.t++]=1,Ae.subTo(Nr,Ae)),h.ONE.dlShiftTo(ir,Nr),Nr.subTo(_t,_t);_t.t<ir;)_t[_t.t++]=0;for(;--Gr>=0;){var Zr=Ae[--fr]==tr?this.DM:Math.floor(Ae[fr]*Br+(Ae[fr-1]+_r)*pr);if((Ae[fr]+=_t.am(0,Zr,Ae,Gr,0,ir))<Zr)for(_t.dlShiftTo(Gr,Nr),Ae.subTo(Nr,Ae);Ae[fr]<--Zr;)Ae.subTo(Nr,Ae)}we!=null&&(Ae.drShiftTo(ir,we),Ct!=At&&h.ZERO.subTo(we,we)),Ae.t=ir,Ae.clamp(),Qt>0&&Ae.rShiftTo(Qt,Ae),Ct<0&&h.ZERO.subTo(Ae,Ae)}}}function x(ge){var we=S();return this.abs().divRemTo(ge,null,we),this.s<0&&we.compareTo(h.ZERO)>0&&ge.subTo(we,we),we}function E(ge){this.m=ge}function R(ge){return ge.s<0||ge.compareTo(this.m)>=0?ge.mod(this.m):ge}function H(ge){return ge}function Y(ge){ge.divRemTo(this.m,null,ge)}function Z(ge,we,Ae){ge.multiplyTo(we,Ae),this.reduce(Ae)}function L(ge,we){ge.squareTo(we),this.reduce(we)}E.prototype.convert=R,E.prototype.revert=H,E.prototype.reduce=Y,E.prototype.mulTo=Z,E.prototype.sqrTo=L;function D(){if(this.t<1)return 0;var ge=this[0];if(!(ge&1))return 0;var we=ge&3;return we=we*(2-(ge&15)*we)&15,we=we*(2-(ge&255)*we)&255,we=we*(2-((ge&65535)*we&65535))&65535,we=we*(2-ge*we%this.DV)%this.DV,we>0?this.DV-we:-we}function ee(ge){this.m=ge,this.mp=ge.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<ge.DB-15)-1,this.mt2=2*ge.t}function oe(ge){var we=S();return ge.abs().dlShiftTo(this.m.t,we),we.divRemTo(this.m,null,we),ge.s<0&&we.compareTo(h.ZERO)>0&&this.m.subTo(we,we),we}function fe(ge){var we=S();return ge.copyTo(we),this.reduce(we),we}function ue(ge){for(;ge.t<=this.mt2;)ge[ge.t++]=0;for(var we=0;we<this.m.t;++we){var Ae=ge[we]&32767,Ue=Ae*this.mpl+((Ae*this.mph+(ge[we]>>15)*this.mpl&this.um)<<15)&ge.DM;for(Ae=we+this.m.t,ge[Ae]+=this.m.am(0,Ue,ge,we,0,this.m.t);ge[Ae]>=ge.DV;)ge[Ae]-=ge.DV,ge[++Ae]++}ge.clamp(),ge.drShiftTo(this.m.t,ge),ge.compareTo(this.m)>=0&&ge.subTo(this.m,ge)}function qe(ge,we){ge.squareTo(we),this.reduce(we)}function rt(ge,we,Ae){ge.multiplyTo(we,Ae),this.reduce(Ae)}ee.prototype.convert=oe,ee.prototype.revert=fe,ee.prototype.reduce=ue,ee.prototype.mulTo=rt,ee.prototype.sqrTo=qe;function Ve(){return(this.t>0?this[0]&1:this.s)==0}function et(ge,we){if(ge>4294967295||ge<1)return h.ONE;var Ae=S(),Ue=S(),ht=we.convert(this),_t=T(ge)-1;for(ht.copyTo(Ae);--_t>=0;)if(we.sqrTo(Ae,Ue),(ge&1<<_t)>0)we.mulTo(Ue,ht,Ae);else{var Ct=Ae;Ae=Ue,Ue=Ct}return we.revert(Ae)}function mt(ge,we){var Ae;return ge<256||we.isEven()?Ae=new E(we):Ae=new ee(we),this.exp(ge,Ae)}h.prototype.copyTo=U,h.prototype.fromInt=J,h.prototype.fromString=se,h.prototype.clamp=de,h.prototype.dlShiftTo=p,h.prototype.drShiftTo=b,h.prototype.lShiftTo=e,h.prototype.rShiftTo=c,h.prototype.subTo=y,h.prototype.multiplyTo=w,h.prototype.squareTo=v,h.prototype.divRemTo=o,h.prototype.invDigit=D,h.prototype.isEven=Ve,h.prototype.exp=et,h.prototype.toString=Q,h.prototype.negate=ve,h.prototype.abs=he,h.prototype.compareTo=ke,h.prototype.bitLength=u,h.prototype.mod=x,h.prototype.modPowInt=mt,h.ZERO=te(0),h.ONE=te(1);function Ye(){var ge=S();return this.copyTo(ge),ge}function We(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function Xe(){return this.t==0?this.s:this[0]<<24>>24}function Ge(){return this.t==0?this.s:this[0]<<16>>16}function nt(ge){return Math.floor(Math.LN2*this.DB/Math.log(ge))}function Et(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Le(ge){if(ge==null&&(ge=10),this.signum()==0||ge<2||ge>36)return"0";var we=this.chunkSize(ge),Ae=Math.pow(ge,we),Ue=te(Ae),ht=S(),_t=S(),Ct="";for(this.divRemTo(Ue,ht,_t);ht.signum()>0;)Ct=(Ae+_t.intValue()).toString(ge).substr(1)+Ct,ht.divRemTo(Ue,ht,_t);return _t.intValue().toString(ge)+Ct}function Oe(ge,we){this.fromInt(0),we==null&&(we=10);for(var Ae=this.chunkSize(we),Ue=Math.pow(we,Ae),ht=!1,_t=0,Ct=0,At=0;At<ge.length;++At){var Qt=F(ge,At);if(Qt<0){ge.charAt(At)=="-"&&this.signum()==0&&(ht=!0);continue}Ct=we*Ct+Qt,++_t>=Ae&&(this.dMultiply(Ue),this.dAddOffset(Ct,0),_t=0,Ct=0)}_t>0&&(this.dMultiply(Math.pow(we,_t)),this.dAddOffset(Ct,0)),ht&&h.ZERO.subTo(this,this)}function $t(ge,we,Ae){if(typeof we=="number")if(ge<2)this.fromInt(1);else for(this.fromNumber(ge,Ae),this.testBit(ge-1)||this.bitwiseTo(h.ONE.shiftLeft(ge-1),$e,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(we);)this.dAddOffset(2,0),this.bitLength()>ge&&this.subTo(h.ONE.shiftLeft(ge-1),this);else{var Ue=new Array,ht=ge&7;Ue.length=(ge>>3)+1,we.nextBytes(Ue),ht>0?Ue[0]&=(1<<ht)-1:Ue[0]=0,this.fromString(Ue,256)}}function dt(){var ge=this.t,we=new Array;we[0]=this.s;var Ae=this.DB-ge*this.DB%8,Ue,ht=0;if(ge-- >0)for(Ae<this.DB&&(Ue=this[ge]>>Ae)!=(this.s&this.DM)>>Ae&&(we[ht++]=Ue|this.s<<this.DB-Ae);ge>=0;)Ae<8?(Ue=(this[ge]&(1<<Ae)-1)<<8-Ae,Ue|=this[--ge]>>(Ae+=this.DB-8)):(Ue=this[ge]>>(Ae-=8)&255,Ae<=0&&(Ae+=this.DB,--ge)),Ue&128&&(Ue|=-256),ht==0&&(this.s&128)!=(Ue&128)&&++ht,(ht>0||Ue!=this.s)&&(we[ht++]=Ue);return we}function gt(ge){return this.compareTo(ge)==0}function Lt(ge){return this.compareTo(ge)<0?this:ge}function xe(ge){return this.compareTo(ge)>0?this:ge}function X(ge,we,Ae){var Ue,ht,_t=Math.min(ge.t,this.t);for(Ue=0;Ue<_t;++Ue)Ae[Ue]=we(this[Ue],ge[Ue]);if(ge.t<this.t){for(ht=ge.s&this.DM,Ue=_t;Ue<this.t;++Ue)Ae[Ue]=we(this[Ue],ht);Ae.t=this.t}else{for(ht=this.s&this.DM,Ue=_t;Ue<ge.t;++Ue)Ae[Ue]=we(ht,ge[Ue]);Ae.t=ge.t}Ae.s=we(this.s,ge.s),Ae.clamp()}function pe(ge,we){return ge&we}function je(ge){var we=S();return this.bitwiseTo(ge,pe,we),we}function $e(ge,we){return ge|we}function He(ge){var we=S();return this.bitwiseTo(ge,$e,we),we}function Fe(ge,we){return ge^we}function Me(ge){var we=S();return this.bitwiseTo(ge,Fe,we),we}function Rt(ge,we){return ge&~we}function yt(ge){var we=S();return this.bitwiseTo(ge,Rt,we),we}function le(){for(var ge=S(),we=0;we<this.t;++we)ge[we]=this.DM&~this[we];return ge.t=this.t,ge.s=~this.s,ge}function wt(ge){var we=S();return ge<0?this.rShiftTo(-ge,we):this.lShiftTo(ge,we),we}function at(ge){var we=S();return ge<0?this.lShiftTo(-ge,we):this.rShiftTo(ge,we),we}function Be(ge){if(ge==0)return-1;var we=0;return ge&65535||(ge>>=16,we+=16),ge&255||(ge>>=8,we+=8),ge&15||(ge>>=4,we+=4),ge&3||(ge>>=2,we+=2),ge&1||++we,we}function ot(){for(var ge=0;ge<this.t;++ge)if(this[ge]!=0)return ge*this.DB+Be(this[ge]);return this.s<0?this.t*this.DB:-1}function tt(ge){for(var we=0;ge!=0;)ge&=ge-1,++we;return we}function kt(){for(var ge=0,we=this.s&this.DM,Ae=0;Ae<this.t;++Ae)ge+=tt(this[Ae]^we);return ge}function Yt(ge){var we=Math.floor(ge/this.DB);return we>=this.t?this.s!=0:(this[we]&1<<ge%this.DB)!=0}function pt(ge,we){var Ae=h.ONE.shiftLeft(ge);return this.bitwiseTo(Ae,we,Ae),Ae}function It(ge){return this.changeBit(ge,$e)}function Fr(ge){return this.changeBit(ge,Rt)}function Pt(ge){return this.changeBit(ge,Fe)}function Ot(ge,we){for(var Ae=0,Ue=0,ht=Math.min(ge.t,this.t);Ae<ht;)Ue+=this[Ae]+ge[Ae],we[Ae++]=Ue&this.DM,Ue>>=this.DB;if(ge.t<this.t){for(Ue+=ge.s;Ae<this.t;)Ue+=this[Ae],we[Ae++]=Ue&this.DM,Ue>>=this.DB;Ue+=this.s}else{for(Ue+=this.s;Ae<ge.t;)Ue+=ge[Ae],we[Ae++]=Ue&this.DM,Ue>>=this.DB;Ue+=ge.s}we.s=Ue<0?-1:0,Ue>0?we[Ae++]=Ue:Ue<-1&&(we[Ae++]=this.DV+Ue),we.t=Ae,we.clamp()}function Te(ge){var we=S();return this.addTo(ge,we),we}function me(ge){var we=S();return this.subTo(ge,we),we}function ce(ge){var we=S();return this.multiplyTo(ge,we),we}function ne(){var ge=S();return this.squareTo(ge),ge}function _e(ge){var we=S();return this.divRemTo(ge,we,null),we}function Re(ge){var we=S();return this.divRemTo(ge,null,we),we}function lt(ge){var we=S(),Ae=S();return this.divRemTo(ge,we,Ae),new Array(we,Ae)}function Ze(ge){this[this.t]=this.am(0,ge-1,this,0,0,this.t),++this.t,this.clamp()}function ct(ge,we){if(ge!=0){for(;this.t<=we;)this[this.t++]=0;for(this[we]+=ge;this[we]>=this.DV;)this[we]-=this.DV,++we>=this.t&&(this[this.t++]=0),++this[we]}}function Nt(){}function Ut(ge){return ge}function Mr(ge,we,Ae){ge.multiplyTo(we,Ae)}function Xt(ge,we){ge.squareTo(we)}Nt.prototype.convert=Ut,Nt.prototype.revert=Ut,Nt.prototype.mulTo=Mr,Nt.prototype.sqrTo=Xt;function Sr(ge){return this.exp(ge,new Nt)}function rr(ge,we,Ae){var Ue=Math.min(this.t+ge.t,we);for(Ae.s=0,Ae.t=Ue;Ue>0;)Ae[--Ue]=0;var ht;for(ht=Ae.t-this.t;Ue<ht;++Ue)Ae[Ue+this.t]=this.am(0,ge[Ue],Ae,Ue,0,this.t);for(ht=Math.min(ge.t,we);Ue<ht;++Ue)this.am(0,ge[Ue],Ae,Ue,0,we-Ue);Ae.clamp()}function er(ge,we,Ae){--we;var Ue=Ae.t=this.t+ge.t-we;for(Ae.s=0;--Ue>=0;)Ae[Ue]=0;for(Ue=Math.max(we-this.t,0);Ue<ge.t;++Ue)Ae[this.t+Ue-we]=this.am(we-Ue,ge[Ue],Ae,0,0,this.t+Ue-we);Ae.clamp(),Ae.drShiftTo(1,Ae)}function kr(ge){this.r2=S(),this.q3=S(),h.ONE.dlShiftTo(2*ge.t,this.r2),this.mu=this.r2.divide(ge),this.m=ge}function vr(ge){if(ge.s<0||ge.t>2*this.m.t)return ge.mod(this.m);if(ge.compareTo(this.m)<0)return ge;var we=S();return ge.copyTo(we),this.reduce(we),we}function Pr(ge){return ge}function Tr(ge){for(ge.drShiftTo(this.m.t-1,this.r2),ge.t>this.m.t+1&&(ge.t=this.m.t+1,ge.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);ge.compareTo(this.r2)<0;)ge.dAddOffset(1,this.m.t+1);for(ge.subTo(this.r2,ge);ge.compareTo(this.m)>=0;)ge.subTo(this.m,ge)}function br(ge,we){ge.squareTo(we),this.reduce(we)}function Ar(ge,we,Ae){ge.multiplyTo(we,Ae),this.reduce(Ae)}kr.prototype.convert=vr,kr.prototype.revert=Pr,kr.prototype.reduce=Tr,kr.prototype.mulTo=Ar,kr.prototype.sqrTo=br;function gr(ge,we){var Ae=ge.bitLength(),Ue,ht=te(1),_t;if(Ae<=0)return ht;Ae<18?Ue=1:Ae<48?Ue=3:Ae<144?Ue=4:Ae<768?Ue=5:Ue=6,Ae<8?_t=new E(we):we.isEven()?_t=new kr(we):_t=new ee(we);var Ct=new Array,At=3,Qt=Ue-1,ir=(1<<Ue)-1;if(Ct[1]=_t.convert(this),Ue>1){var tr=S();for(_t.sqrTo(Ct[1],tr);At<=ir;)Ct[At]=S(),_t.mulTo(tr,Ct[At-2],Ct[At]),At+=2}var Zt=ge.t-1,Br,pr=!0,_r=S(),fr;for(Ae=T(ge[Zt])-1;Zt>=0;){for(Ae>=Qt?Br=ge[Zt]>>Ae-Qt&ir:(Br=(ge[Zt]&(1<<Ae+1)-1)<<Qt-Ae,Zt>0&&(Br|=ge[Zt-1]>>this.DB+Ae-Qt)),At=Ue;!(Br&1);)Br>>=1,--At;if((Ae-=At)<0&&(Ae+=this.DB,--Zt),pr)Ct[Br].copyTo(ht),pr=!1;else{for(;At>1;)_t.sqrTo(ht,_r),_t.sqrTo(_r,ht),At-=2;At>0?_t.sqrTo(ht,_r):(fr=ht,ht=_r,_r=fr),_t.mulTo(_r,Ct[Br],ht)}for(;Zt>=0&&!(ge[Zt]&1<<Ae);)_t.sqrTo(ht,_r),fr=ht,ht=_r,_r=fr,--Ae<0&&(Ae=this.DB-1,--Zt)}return _t.revert(ht)}function dr(ge){var we=this.s<0?this.negate():this.clone(),Ae=ge.s<0?ge.negate():ge.clone();if(we.compareTo(Ae)<0){var Ue=we;we=Ae,Ae=Ue}var ht=we.getLowestSetBit(),_t=Ae.getLowestSetBit();if(_t<0)return we;for(ht<_t&&(_t=ht),_t>0&&(we.rShiftTo(_t,we),Ae.rShiftTo(_t,Ae));we.signum()>0;)(ht=we.getLowestSetBit())>0&&we.rShiftTo(ht,we),(ht=Ae.getLowestSetBit())>0&&Ae.rShiftTo(ht,Ae),we.compareTo(Ae)>=0?(we.subTo(Ae,we),we.rShiftTo(1,we)):(Ae.subTo(we,Ae),Ae.rShiftTo(1,Ae));return _t>0&&Ae.lShiftTo(_t,Ae),Ae}function lr(ge){if(ge<=0)return 0;var we=this.DV%ge,Ae=this.s<0?ge-1:0;if(this.t>0)if(we==0)Ae=this[0]%ge;else for(var Ue=this.t-1;Ue>=0;--Ue)Ae=(we*Ae+this[Ue])%ge;return Ae}function Kt(ge){var we=ge.isEven();if(this.isEven()&&we||ge.signum()==0)return h.ZERO;for(var Ae=ge.clone(),Ue=this.clone(),ht=te(1),_t=te(0),Ct=te(0),At=te(1);Ae.signum()!=0;){for(;Ae.isEven();)Ae.rShiftTo(1,Ae),we?((!ht.isEven()||!_t.isEven())&&(ht.addTo(this,ht),_t.subTo(ge,_t)),ht.rShiftTo(1,ht)):_t.isEven()||_t.subTo(ge,_t),_t.rShiftTo(1,_t);for(;Ue.isEven();)Ue.rShiftTo(1,Ue),we?((!Ct.isEven()||!At.isEven())&&(Ct.addTo(this,Ct),At.subTo(ge,At)),Ct.rShiftTo(1,Ct)):At.isEven()||At.subTo(ge,At),At.rShiftTo(1,At);Ae.compareTo(Ue)>=0?(Ae.subTo(Ue,Ae),we&&ht.subTo(Ct,ht),_t.subTo(At,_t)):(Ue.subTo(Ae,Ue),we&&Ct.subTo(ht,Ct),At.subTo(_t,At))}if(Ue.compareTo(h.ONE)!=0)return h.ZERO;if(At.compareTo(ge)>=0)return At.subtract(ge);if(At.signum()<0)At.addTo(ge,At);else return At;return At.signum()<0?At.add(ge):At}var Bt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Ft=(1<<26)/Bt[Bt.length-1];function cr(ge){var we,Ae=this.abs();if(Ae.t==1&&Ae[0]<=Bt[Bt.length-1]){for(we=0;we<Bt.length;++we)if(Ae[0]==Bt[we])return!0;return!1}if(Ae.isEven())return!1;for(we=1;we<Bt.length;){for(var Ue=Bt[we],ht=we+1;ht<Bt.length&&Ue<Ft;)Ue*=Bt[ht++];for(Ue=Ae.modInt(Ue);we<ht;)if(Ue%Bt[we++]==0)return!1}return Ae.millerRabin(ge)}function nr(ge){var we=this.subtract(h.ONE),Ae=we.getLowestSetBit();if(Ae<=0)return!1;var Ue=we.shiftRight(Ae);ge=ge+1>>1,ge>Bt.length&&(ge=Bt.length);for(var ht=S(),_t=0;_t<ge;++_t){ht.fromInt(Bt[Math.floor(Math.random()*Bt.length)]);var Ct=ht.modPow(Ue,this);if(Ct.compareTo(h.ONE)!=0&&Ct.compareTo(we)!=0){for(var At=1;At++<Ae&&Ct.compareTo(we)!=0;)if(Ct=Ct.modPowInt(2,this),Ct.compareTo(h.ONE)==0)return!1;if(Ct.compareTo(we)!=0)return!1}}return!0}h.prototype.chunkSize=nt,h.prototype.toRadix=Le,h.prototype.fromRadix=Oe,h.prototype.fromNumber=$t,h.prototype.bitwiseTo=X,h.prototype.changeBit=pt,h.prototype.addTo=Ot,h.prototype.dMultiply=Ze,h.prototype.dAddOffset=ct,h.prototype.multiplyLowerTo=rr,h.prototype.multiplyUpperTo=er,h.prototype.modInt=lr,h.prototype.millerRabin=nr,h.prototype.clone=Ye,h.prototype.intValue=We,h.prototype.byteValue=Xe,h.prototype.shortValue=Ge,h.prototype.signum=Et,h.prototype.toByteArray=dt,h.prototype.equals=gt,h.prototype.min=Lt,h.prototype.max=xe,h.prototype.and=je,h.prototype.or=He,h.prototype.xor=Me,h.prototype.andNot=yt,h.prototype.not=le,h.prototype.shiftLeft=wt,h.prototype.shiftRight=at,h.prototype.getLowestSetBit=ot,h.prototype.bitCount=kt,h.prototype.testBit=Yt,h.prototype.setBit=It,h.prototype.clearBit=Fr,h.prototype.flipBit=Pt,h.prototype.add=Te,h.prototype.subtract=me,h.prototype.multiply=ce,h.prototype.divide=_e,h.prototype.remainder=Re,h.prototype.divideAndRemainder=lt,h.prototype.modPow=gr,h.prototype.modInverse=Kt,h.prototype.pow=Sr,h.prototype.gcd=dr,h.prototype.isProbablePrime=cr,h.prototype.square=ne,h.prototype.Barrett=kr;var Vt,ar,qr;function Vr(ge){ar[qr++]^=ge&255,ar[qr++]^=ge>>8&255,ar[qr++]^=ge>>16&255,ar[qr++]^=ge>>24&255,qr>=Je&&(qr-=Je)}function Wr(){Vr(new Date().getTime())}if(ar==null){ar=new Array,qr=0;var Rr;if(typeof window<"u"&&window.crypto){if(window.crypto.getRandomValues){var bt=new Uint8Array(32);for(window.crypto.getRandomValues(bt),Rr=0;Rr<32;++Rr)ar[qr++]=bt[Rr]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var Kr=window.crypto.random(32);for(Rr=0;Rr<Kr.length;++Rr)ar[qr++]=Kr.charCodeAt(Rr)&255}}for(;qr<Je;)Rr=Math.floor(65536*Math.random()),ar[qr++]=Rr>>>8,ar[qr++]=Rr&255;qr=0,Wr()}function Ur(){if(Vt==null){for(Wr(),Vt=ze(),Vt.init(ar),qr=0;qr<ar.length;++qr)ar[qr]=0;qr=0}return Vt.next()}function ti(ge){var we;for(we=0;we<ge.length;++we)ge[we]=Ur()}function ae(){}ae.prototype.nextBytes=ti;function ye(){this.i=0,this.j=0,this.S=new Array}function Ce(ge){var we,Ae,Ue;for(we=0;we<256;++we)this.S[we]=we;for(Ae=0,we=0;we<256;++we)Ae=Ae+this.S[we]+ge[we%ge.length]&255,Ue=this.S[we],this.S[we]=this.S[Ae],this.S[Ae]=Ue;this.i=0,this.j=0}function Pe(){var ge;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,ge=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=ge,this.S[ge+this.S[this.i]&255]}ye.prototype.init=Ce,ye.prototype.next=Pe;function ze(){return new ye}var Je=256;h.SecureRandom=ae,h.BigInteger=h,t.exports=h}).call(commonjsGlobal)}(jsbn)),jsbn.exports}var ec,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec;hasRequiredEc=1;var t=requireJsbn().BigInteger,n=t.prototype.Barrett;function l(e,c){this.x=c,this.q=e}function d(e){return e==this?!0:this.q.equals(e.q)&&this.x.equals(e.x)}function m(){return this.x}function h(){return new l(this.q,this.x.negate().mod(this.q))}function S(e){return new l(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function k(e){return new l(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function A(e){return new l(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function B(){return new l(this.q,this.x.square().mod(this.q))}function M(e){return new l(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}l.prototype.equals=d,l.prototype.toBigInteger=m,l.prototype.negate=h,l.prototype.add=S,l.prototype.subtract=k,l.prototype.multiply=A,l.prototype.square=B,l.prototype.divide=M;function j(e,c,y,w){this.curve=e,this.x=c,this.y=y,w==null?this.z=t.ONE:this.z=w,this.zinv=null}function I(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)}function P(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var e=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(e),this.curve.fromBigInteger(e)}function $(e){if(e==this)return!0;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();var c,y;return c=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),c.equals(t.ZERO)?(y=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q),y.equals(t.ZERO)):!1}function z(){return this.x==null&&this.y==null?!0:this.z.equals(t.ZERO)&&!this.y.toBigInteger().equals(t.ZERO)}function N(){return new j(this.curve,this.x,this.y.negate(),this.z)}function F(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var c=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),y=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(t.ZERO.equals(y))return t.ZERO.equals(c)?this.twice():this.curve.getInfinity();var w=new t("3"),v=this.x.toBigInteger(),o=this.y.toBigInteger();e.x.toBigInteger(),e.y.toBigInteger();var x=y.square(),E=x.multiply(y),R=v.multiply(x),H=c.square().multiply(this.z),Y=H.subtract(R.shiftLeft(1)).multiply(e.z).subtract(E).multiply(y).mod(this.curve.q),Z=R.multiply(w).multiply(c).subtract(o.multiply(E)).subtract(H.multiply(c)).multiply(e.z).add(c.multiply(E)).mod(this.curve.q),L=E.multiply(this.z).multiply(e.z).mod(this.curve.q);return new j(this.curve,this.curve.fromBigInteger(Y),this.curve.fromBigInteger(Z),L)}function U(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new t("3"),c=this.x.toBigInteger(),y=this.y.toBigInteger(),w=y.multiply(this.z),v=w.multiply(y).mod(this.curve.q),o=this.curve.a.toBigInteger(),x=c.square().multiply(e);t.ZERO.equals(o)||(x=x.add(this.z.square().multiply(o))),x=x.mod(this.curve.q);var E=x.square().subtract(c.shiftLeft(3).multiply(v)).shiftLeft(1).multiply(w).mod(this.curve.q),R=x.multiply(e).multiply(c).subtract(v.shiftLeft(1)).shiftLeft(2).multiply(v).subtract(x.square().multiply(x)).mod(this.curve.q),H=w.square().multiply(w).shiftLeft(3).mod(this.curve.q);return new j(this.curve,this.curve.fromBigInteger(E),this.curve.fromBigInteger(R),H)}function J(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var c=e,y=c.multiply(new t("3")),w=this.negate(),v=this,o;for(o=y.bitLength()-2;o>0;--o){v=v.twice();var x=y.testBit(o),E=c.testBit(o);x!=E&&(v=v.add(x?this:w))}return v}function te(e,c,y){var w;e.bitLength()>y.bitLength()?w=e.bitLength()-1:w=y.bitLength()-1;for(var v=this.curve.getInfinity(),o=this.add(c);w>=0;)v=v.twice(),e.testBit(w)?y.testBit(w)?v=v.add(o):v=v.add(this):y.testBit(w)&&(v=v.add(c)),--w;return v}j.prototype.getX=I,j.prototype.getY=P,j.prototype.equals=$,j.prototype.isInfinity=z,j.prototype.negate=N,j.prototype.add=F,j.prototype.twice=U,j.prototype.multiply=J,j.prototype.multiplyTwo=te;function se(e,c,y){this.q=e,this.a=this.fromBigInteger(c),this.b=this.fromBigInteger(y),this.infinity=new j(this,null,null),this.reducer=new n(this.q)}function de(){return this.q}function Q(){return this.a}function ve(){return this.b}function he(e){return e==this?!0:this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function ke(){return this.infinity}function T(e){return new l(this.q,e)}function u(e){this.reducer.reduce(e)}function p(e){if(e.isInfinity())return"00";var c=e.getX().toBigInteger().toString(16),y=e.getY().toBigInteger().toString(16),w=this.getQ().toString(16).length;for(w%2!=0&&w++;c.length<w;)c="0"+c;for(;y.length<w;)y="0"+y;return"04"+c+y}se.prototype.getQ=de,se.prototype.getA=Q,se.prototype.getB=ve,se.prototype.equals=he,se.prototype.getInfinity=ke,se.prototype.fromBigInteger=T,se.prototype.reduce=u,se.prototype.encodePointHex=p,se.prototype.decodePointHex=function(e){var c;switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:c=!1;case 3:c==null&&(c=!0);var x=e.length-2,E=e.substr(2,x),y=this.fromBigInteger(new t(E,16)),w=y.multiply(y.square().add(this.getA())).add(this.getB()),v=w.sqrt();if(v==null)throw"Invalid point compression";var o=v.toBigInteger();return o.testBit(0)!=c&&(v=this.fromBigInteger(this.getQ().subtract(o))),new j(this,y,v);case 4:case 6:case 7:var x=(e.length-2)/2,E=e.substr(2,x),R=e.substr(x+2,x);return new j(this,this.fromBigInteger(new t(E,16)),this.fromBigInteger(new t(R,16)));default:return null}},se.prototype.encodeCompressedPointHex=function(e){if(e.isInfinity())return"00";var c=e.getX().toBigInteger().toString(16),y=this.getQ().toString(16).length;for(y%2!=0&&y++;c.length<y;)c="0"+c;var w;return e.getY().toBigInteger().isEven()?w="02":w="03",w+c},l.prototype.getR=function(){if(this.r!=null)return this.r;this.r=null;var e=this.q.bitLength();if(e>128){var c=this.q.shiftRight(e-64);c.intValue()==-1&&(this.r=t.ONE.shiftLeft(e).subtract(this.q))}return this.r},l.prototype.modMult=function(e,c){return this.modReduce(e.multiply(c))},l.prototype.modReduce=function(e){if(this.getR()!=null){for(var c=q.bitLength();e.bitLength()>c+1;){var y=e.shiftRight(c),w=e.subtract(y.shiftLeft(c));this.getR().equals(t.ONE)||(y=y.multiply(this.getR())),e=y.add(w)}for(;e.compareTo(q)>=0;)e=e.subtract(q)}else e=e.mod(q);return e},l.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new l(this.q,this.x.modPow(this.q.shiftRight(2).add(t.ONE),this.q));return e.square().equals(this)?e:null}var c=this.q.subtract(t.ONE),y=c.shiftRight(1);if(!this.x.modPow(y,this.q).equals(t.ONE))return null;var w=c.shiftRight(2),v=w.shiftLeft(1).add(t.ONE),o=this.x,x=modDouble(modDouble(o)),E,R;do{var H;do H=new t(this.q.bitLength(),new SecureRandom);while(H.compareTo(this.q)>=0||!H.multiply(H).subtract(x).modPow(y,this.q).equals(c));var Y=this.lucasSequence(H,o,v);if(E=Y[0],R=Y[1],this.modMult(R,R).equals(x))return R.testBit(0)&&(R=R.add(q)),R=R.shiftRight(1),new l(q,R)}while(E.equals(t.ONE)||E.equals(c));return null},l.prototype.lucasSequence=function(e,c,y){for(var w=y.bitLength(),v=y.getLowestSetBit(),o=t.ONE,x=t.TWO,E=e,R=t.ONE,H=t.ONE,Y=w-1;Y>=v+1;--Y)R=this.modMult(R,H),y.testBit(Y)?(H=this.modMult(R,c),o=this.modMult(o,E),x=this.modReduce(E.multiply(x).subtract(e.multiply(R))),E=this.modReduce(E.multiply(E).subtract(H.shiftLeft(1)))):(H=R,o=this.modReduce(o.multiply(x).subtract(R)),E=this.modReduce(E.multiply(x).subtract(e.multiply(R))),x=this.modReduce(x.multiply(x).subtract(R.shiftLeft(1))));R=this.modMult(R,H),H=this.modMult(R,c),o=this.modReduce(o.multiply(x).subtract(R)),x=this.modReduce(E.multiply(x).subtract(e.multiply(R))),R=this.modMult(R,H);for(var Y=1;Y<=v;++Y)o=this.modMult(o,x),x=this.modReduce(x.multiply(x).subtract(R.shiftLeft(1))),R=this.modMult(R,R);return[o,x]};var b={ECCurveFp:se,ECPointFp:j,ECFieldElementFp:l};return ec=b,ec}function commonjsRequire(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var naclFast={exports:{}},hasRequiredNaclFast;function requireNaclFast(){return hasRequiredNaclFast||(hasRequiredNaclFast=1,function(t){(function(n){var l=function(Te){var me,ce=new Float64Array(16);if(Te)for(me=0;me<Te.length;me++)ce[me]=Te[me];return ce},d=function(){throw new Error("no PRNG")},m=new Uint8Array(16),h=new Uint8Array(32);h[0]=9;var S=l(),k=l([1]),A=l([56129,1]),B=l([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),M=l([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),j=l([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),I=l([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),P=l([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function $(Te,me,ce,ne){Te[me]=ce>>24&255,Te[me+1]=ce>>16&255,Te[me+2]=ce>>8&255,Te[me+3]=ce&255,Te[me+4]=ne>>24&255,Te[me+5]=ne>>16&255,Te[me+6]=ne>>8&255,Te[me+7]=ne&255}function z(Te,me,ce,ne,_e){var Re,lt=0;for(Re=0;Re<_e;Re++)lt|=Te[me+Re]^ce[ne+Re];return(1&lt-1>>>8)-1}function N(Te,me,ce,ne){return z(Te,me,ce,ne,16)}function F(Te,me,ce,ne){return z(Te,me,ce,ne,32)}function U(Te,me,ce,ne){for(var _e=ne[0]&255|(ne[1]&255)<<8|(ne[2]&255)<<16|(ne[3]&255)<<24,Re=ce[0]&255|(ce[1]&255)<<8|(ce[2]&255)<<16|(ce[3]&255)<<24,lt=ce[4]&255|(ce[5]&255)<<8|(ce[6]&255)<<16|(ce[7]&255)<<24,Ze=ce[8]&255|(ce[9]&255)<<8|(ce[10]&255)<<16|(ce[11]&255)<<24,ct=ce[12]&255|(ce[13]&255)<<8|(ce[14]&255)<<16|(ce[15]&255)<<24,Nt=ne[4]&255|(ne[5]&255)<<8|(ne[6]&255)<<16|(ne[7]&255)<<24,Ut=me[0]&255|(me[1]&255)<<8|(me[2]&255)<<16|(me[3]&255)<<24,Mr=me[4]&255|(me[5]&255)<<8|(me[6]&255)<<16|(me[7]&255)<<24,Xt=me[8]&255|(me[9]&255)<<8|(me[10]&255)<<16|(me[11]&255)<<24,Sr=me[12]&255|(me[13]&255)<<8|(me[14]&255)<<16|(me[15]&255)<<24,rr=ne[8]&255|(ne[9]&255)<<8|(ne[10]&255)<<16|(ne[11]&255)<<24,er=ce[16]&255|(ce[17]&255)<<8|(ce[18]&255)<<16|(ce[19]&255)<<24,kr=ce[20]&255|(ce[21]&255)<<8|(ce[22]&255)<<16|(ce[23]&255)<<24,vr=ce[24]&255|(ce[25]&255)<<8|(ce[26]&255)<<16|(ce[27]&255)<<24,Pr=ce[28]&255|(ce[29]&255)<<8|(ce[30]&255)<<16|(ce[31]&255)<<24,Tr=ne[12]&255|(ne[13]&255)<<8|(ne[14]&255)<<16|(ne[15]&255)<<24,br=_e,Ar=Re,gr=lt,dr=Ze,lr=ct,Kt=Nt,Bt=Ut,Ft=Mr,cr=Xt,nr=Sr,Vt=rr,ar=er,qr=kr,Vr=vr,Wr=Pr,Rr=Tr,bt,Kr=0;Kr<20;Kr+=2)bt=br+qr|0,lr^=bt<<7|bt>>>25,bt=lr+br|0,cr^=bt<<9|bt>>>23,bt=cr+lr|0,qr^=bt<<13|bt>>>19,bt=qr+cr|0,br^=bt<<18|bt>>>14,bt=Kt+Ar|0,nr^=bt<<7|bt>>>25,bt=nr+Kt|0,Vr^=bt<<9|bt>>>23,bt=Vr+nr|0,Ar^=bt<<13|bt>>>19,bt=Ar+Vr|0,Kt^=bt<<18|bt>>>14,bt=Vt+Bt|0,Wr^=bt<<7|bt>>>25,bt=Wr+Vt|0,gr^=bt<<9|bt>>>23,bt=gr+Wr|0,Bt^=bt<<13|bt>>>19,bt=Bt+gr|0,Vt^=bt<<18|bt>>>14,bt=Rr+ar|0,dr^=bt<<7|bt>>>25,bt=dr+Rr|0,Ft^=bt<<9|bt>>>23,bt=Ft+dr|0,ar^=bt<<13|bt>>>19,bt=ar+Ft|0,Rr^=bt<<18|bt>>>14,bt=br+dr|0,Ar^=bt<<7|bt>>>25,bt=Ar+br|0,gr^=bt<<9|bt>>>23,bt=gr+Ar|0,dr^=bt<<13|bt>>>19,bt=dr+gr|0,br^=bt<<18|bt>>>14,bt=Kt+lr|0,Bt^=bt<<7|bt>>>25,bt=Bt+Kt|0,Ft^=bt<<9|bt>>>23,bt=Ft+Bt|0,lr^=bt<<13|bt>>>19,bt=lr+Ft|0,Kt^=bt<<18|bt>>>14,bt=Vt+nr|0,ar^=bt<<7|bt>>>25,bt=ar+Vt|0,cr^=bt<<9|bt>>>23,bt=cr+ar|0,nr^=bt<<13|bt>>>19,bt=nr+cr|0,Vt^=bt<<18|bt>>>14,bt=Rr+Wr|0,qr^=bt<<7|bt>>>25,bt=qr+Rr|0,Vr^=bt<<9|bt>>>23,bt=Vr+qr|0,Wr^=bt<<13|bt>>>19,bt=Wr+Vr|0,Rr^=bt<<18|bt>>>14;br=br+_e|0,Ar=Ar+Re|0,gr=gr+lt|0,dr=dr+Ze|0,lr=lr+ct|0,Kt=Kt+Nt|0,Bt=Bt+Ut|0,Ft=Ft+Mr|0,cr=cr+Xt|0,nr=nr+Sr|0,Vt=Vt+rr|0,ar=ar+er|0,qr=qr+kr|0,Vr=Vr+vr|0,Wr=Wr+Pr|0,Rr=Rr+Tr|0,Te[0]=br>>>0&255,Te[1]=br>>>8&255,Te[2]=br>>>16&255,Te[3]=br>>>24&255,Te[4]=Ar>>>0&255,Te[5]=Ar>>>8&255,Te[6]=Ar>>>16&255,Te[7]=Ar>>>24&255,Te[8]=gr>>>0&255,Te[9]=gr>>>8&255,Te[10]=gr>>>16&255,Te[11]=gr>>>24&255,Te[12]=dr>>>0&255,Te[13]=dr>>>8&255,Te[14]=dr>>>16&255,Te[15]=dr>>>24&255,Te[16]=lr>>>0&255,Te[17]=lr>>>8&255,Te[18]=lr>>>16&255,Te[19]=lr>>>24&255,Te[20]=Kt>>>0&255,Te[21]=Kt>>>8&255,Te[22]=Kt>>>16&255,Te[23]=Kt>>>24&255,Te[24]=Bt>>>0&255,Te[25]=Bt>>>8&255,Te[26]=Bt>>>16&255,Te[27]=Bt>>>24&255,Te[28]=Ft>>>0&255,Te[29]=Ft>>>8&255,Te[30]=Ft>>>16&255,Te[31]=Ft>>>24&255,Te[32]=cr>>>0&255,Te[33]=cr>>>8&255,Te[34]=cr>>>16&255,Te[35]=cr>>>24&255,Te[36]=nr>>>0&255,Te[37]=nr>>>8&255,Te[38]=nr>>>16&255,Te[39]=nr>>>24&255,Te[40]=Vt>>>0&255,Te[41]=Vt>>>8&255,Te[42]=Vt>>>16&255,Te[43]=Vt>>>24&255,Te[44]=ar>>>0&255,Te[45]=ar>>>8&255,Te[46]=ar>>>16&255,Te[47]=ar>>>24&255,Te[48]=qr>>>0&255,Te[49]=qr>>>8&255,Te[50]=qr>>>16&255,Te[51]=qr>>>24&255,Te[52]=Vr>>>0&255,Te[53]=Vr>>>8&255,Te[54]=Vr>>>16&255,Te[55]=Vr>>>24&255,Te[56]=Wr>>>0&255,Te[57]=Wr>>>8&255,Te[58]=Wr>>>16&255,Te[59]=Wr>>>24&255,Te[60]=Rr>>>0&255,Te[61]=Rr>>>8&255,Te[62]=Rr>>>16&255,Te[63]=Rr>>>24&255}function J(Te,me,ce,ne){for(var _e=ne[0]&255|(ne[1]&255)<<8|(ne[2]&255)<<16|(ne[3]&255)<<24,Re=ce[0]&255|(ce[1]&255)<<8|(ce[2]&255)<<16|(ce[3]&255)<<24,lt=ce[4]&255|(ce[5]&255)<<8|(ce[6]&255)<<16|(ce[7]&255)<<24,Ze=ce[8]&255|(ce[9]&255)<<8|(ce[10]&255)<<16|(ce[11]&255)<<24,ct=ce[12]&255|(ce[13]&255)<<8|(ce[14]&255)<<16|(ce[15]&255)<<24,Nt=ne[4]&255|(ne[5]&255)<<8|(ne[6]&255)<<16|(ne[7]&255)<<24,Ut=me[0]&255|(me[1]&255)<<8|(me[2]&255)<<16|(me[3]&255)<<24,Mr=me[4]&255|(me[5]&255)<<8|(me[6]&255)<<16|(me[7]&255)<<24,Xt=me[8]&255|(me[9]&255)<<8|(me[10]&255)<<16|(me[11]&255)<<24,Sr=me[12]&255|(me[13]&255)<<8|(me[14]&255)<<16|(me[15]&255)<<24,rr=ne[8]&255|(ne[9]&255)<<8|(ne[10]&255)<<16|(ne[11]&255)<<24,er=ce[16]&255|(ce[17]&255)<<8|(ce[18]&255)<<16|(ce[19]&255)<<24,kr=ce[20]&255|(ce[21]&255)<<8|(ce[22]&255)<<16|(ce[23]&255)<<24,vr=ce[24]&255|(ce[25]&255)<<8|(ce[26]&255)<<16|(ce[27]&255)<<24,Pr=ce[28]&255|(ce[29]&255)<<8|(ce[30]&255)<<16|(ce[31]&255)<<24,Tr=ne[12]&255|(ne[13]&255)<<8|(ne[14]&255)<<16|(ne[15]&255)<<24,br=_e,Ar=Re,gr=lt,dr=Ze,lr=ct,Kt=Nt,Bt=Ut,Ft=Mr,cr=Xt,nr=Sr,Vt=rr,ar=er,qr=kr,Vr=vr,Wr=Pr,Rr=Tr,bt,Kr=0;Kr<20;Kr+=2)bt=br+qr|0,lr^=bt<<7|bt>>>25,bt=lr+br|0,cr^=bt<<9|bt>>>23,bt=cr+lr|0,qr^=bt<<13|bt>>>19,bt=qr+cr|0,br^=bt<<18|bt>>>14,bt=Kt+Ar|0,nr^=bt<<7|bt>>>25,bt=nr+Kt|0,Vr^=bt<<9|bt>>>23,bt=Vr+nr|0,Ar^=bt<<13|bt>>>19,bt=Ar+Vr|0,Kt^=bt<<18|bt>>>14,bt=Vt+Bt|0,Wr^=bt<<7|bt>>>25,bt=Wr+Vt|0,gr^=bt<<9|bt>>>23,bt=gr+Wr|0,Bt^=bt<<13|bt>>>19,bt=Bt+gr|0,Vt^=bt<<18|bt>>>14,bt=Rr+ar|0,dr^=bt<<7|bt>>>25,bt=dr+Rr|0,Ft^=bt<<9|bt>>>23,bt=Ft+dr|0,ar^=bt<<13|bt>>>19,bt=ar+Ft|0,Rr^=bt<<18|bt>>>14,bt=br+dr|0,Ar^=bt<<7|bt>>>25,bt=Ar+br|0,gr^=bt<<9|bt>>>23,bt=gr+Ar|0,dr^=bt<<13|bt>>>19,bt=dr+gr|0,br^=bt<<18|bt>>>14,bt=Kt+lr|0,Bt^=bt<<7|bt>>>25,bt=Bt+Kt|0,Ft^=bt<<9|bt>>>23,bt=Ft+Bt|0,lr^=bt<<13|bt>>>19,bt=lr+Ft|0,Kt^=bt<<18|bt>>>14,bt=Vt+nr|0,ar^=bt<<7|bt>>>25,bt=ar+Vt|0,cr^=bt<<9|bt>>>23,bt=cr+ar|0,nr^=bt<<13|bt>>>19,bt=nr+cr|0,Vt^=bt<<18|bt>>>14,bt=Rr+Wr|0,qr^=bt<<7|bt>>>25,bt=qr+Rr|0,Vr^=bt<<9|bt>>>23,bt=Vr+qr|0,Wr^=bt<<13|bt>>>19,bt=Wr+Vr|0,Rr^=bt<<18|bt>>>14;Te[0]=br>>>0&255,Te[1]=br>>>8&255,Te[2]=br>>>16&255,Te[3]=br>>>24&255,Te[4]=Kt>>>0&255,Te[5]=Kt>>>8&255,Te[6]=Kt>>>16&255,Te[7]=Kt>>>24&255,Te[8]=Vt>>>0&255,Te[9]=Vt>>>8&255,Te[10]=Vt>>>16&255,Te[11]=Vt>>>24&255,Te[12]=Rr>>>0&255,Te[13]=Rr>>>8&255,Te[14]=Rr>>>16&255,Te[15]=Rr>>>24&255,Te[16]=Bt>>>0&255,Te[17]=Bt>>>8&255,Te[18]=Bt>>>16&255,Te[19]=Bt>>>24&255,Te[20]=Ft>>>0&255,Te[21]=Ft>>>8&255,Te[22]=Ft>>>16&255,Te[23]=Ft>>>24&255,Te[24]=cr>>>0&255,Te[25]=cr>>>8&255,Te[26]=cr>>>16&255,Te[27]=cr>>>24&255,Te[28]=nr>>>0&255,Te[29]=nr>>>8&255,Te[30]=nr>>>16&255,Te[31]=nr>>>24&255}function te(Te,me,ce,ne){U(Te,me,ce,ne)}function se(Te,me,ce,ne){J(Te,me,ce,ne)}var de=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Q(Te,me,ce,ne,_e,Re,lt){var Ze=new Uint8Array(16),ct=new Uint8Array(64),Nt,Ut;for(Ut=0;Ut<16;Ut++)Ze[Ut]=0;for(Ut=0;Ut<8;Ut++)Ze[Ut]=Re[Ut];for(;_e>=64;){for(te(ct,Ze,lt,de),Ut=0;Ut<64;Ut++)Te[me+Ut]=ce[ne+Ut]^ct[Ut];for(Nt=1,Ut=8;Ut<16;Ut++)Nt=Nt+(Ze[Ut]&255)|0,Ze[Ut]=Nt&255,Nt>>>=8;_e-=64,me+=64,ne+=64}if(_e>0)for(te(ct,Ze,lt,de),Ut=0;Ut<_e;Ut++)Te[me+Ut]=ce[ne+Ut]^ct[Ut];return 0}function ve(Te,me,ce,ne,_e){var Re=new Uint8Array(16),lt=new Uint8Array(64),Ze,ct;for(ct=0;ct<16;ct++)Re[ct]=0;for(ct=0;ct<8;ct++)Re[ct]=ne[ct];for(;ce>=64;){for(te(lt,Re,_e,de),ct=0;ct<64;ct++)Te[me+ct]=lt[ct];for(Ze=1,ct=8;ct<16;ct++)Ze=Ze+(Re[ct]&255)|0,Re[ct]=Ze&255,Ze>>>=8;ce-=64,me+=64}if(ce>0)for(te(lt,Re,_e,de),ct=0;ct<ce;ct++)Te[me+ct]=lt[ct];return 0}function he(Te,me,ce,ne,_e){var Re=new Uint8Array(32);se(Re,ne,_e,de);for(var lt=new Uint8Array(8),Ze=0;Ze<8;Ze++)lt[Ze]=ne[Ze+16];return ve(Te,me,ce,lt,Re)}function ke(Te,me,ce,ne,_e,Re,lt){var Ze=new Uint8Array(32);se(Ze,Re,lt,de);for(var ct=new Uint8Array(8),Nt=0;Nt<8;Nt++)ct[Nt]=Re[Nt+16];return Q(Te,me,ce,ne,_e,ct,Ze)}var T=function(Te){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var me,ce,ne,_e,Re,lt,Ze,ct;me=Te[0]&255|(Te[1]&255)<<8,this.r[0]=me&8191,ce=Te[2]&255|(Te[3]&255)<<8,this.r[1]=(me>>>13|ce<<3)&8191,ne=Te[4]&255|(Te[5]&255)<<8,this.r[2]=(ce>>>10|ne<<6)&7939,_e=Te[6]&255|(Te[7]&255)<<8,this.r[3]=(ne>>>7|_e<<9)&8191,Re=Te[8]&255|(Te[9]&255)<<8,this.r[4]=(_e>>>4|Re<<12)&255,this.r[5]=Re>>>1&8190,lt=Te[10]&255|(Te[11]&255)<<8,this.r[6]=(Re>>>14|lt<<2)&8191,Ze=Te[12]&255|(Te[13]&255)<<8,this.r[7]=(lt>>>11|Ze<<5)&8065,ct=Te[14]&255|(Te[15]&255)<<8,this.r[8]=(Ze>>>8|ct<<8)&8191,this.r[9]=ct>>>5&127,this.pad[0]=Te[16]&255|(Te[17]&255)<<8,this.pad[1]=Te[18]&255|(Te[19]&255)<<8,this.pad[2]=Te[20]&255|(Te[21]&255)<<8,this.pad[3]=Te[22]&255|(Te[23]&255)<<8,this.pad[4]=Te[24]&255|(Te[25]&255)<<8,this.pad[5]=Te[26]&255|(Te[27]&255)<<8,this.pad[6]=Te[28]&255|(Te[29]&255)<<8,this.pad[7]=Te[30]&255|(Te[31]&255)<<8};T.prototype.blocks=function(Te,me,ce){for(var ne=this.fin?0:2048,_e,Re,lt,Ze,ct,Nt,Ut,Mr,Xt,Sr,rr,er,kr,vr,Pr,Tr,br,Ar,gr,dr=this.h[0],lr=this.h[1],Kt=this.h[2],Bt=this.h[3],Ft=this.h[4],cr=this.h[5],nr=this.h[6],Vt=this.h[7],ar=this.h[8],qr=this.h[9],Vr=this.r[0],Wr=this.r[1],Rr=this.r[2],bt=this.r[3],Kr=this.r[4],Ur=this.r[5],ti=this.r[6],ae=this.r[7],ye=this.r[8],Ce=this.r[9];ce>=16;)_e=Te[me+0]&255|(Te[me+1]&255)<<8,dr+=_e&8191,Re=Te[me+2]&255|(Te[me+3]&255)<<8,lr+=(_e>>>13|Re<<3)&8191,lt=Te[me+4]&255|(Te[me+5]&255)<<8,Kt+=(Re>>>10|lt<<6)&8191,Ze=Te[me+6]&255|(Te[me+7]&255)<<8,Bt+=(lt>>>7|Ze<<9)&8191,ct=Te[me+8]&255|(Te[me+9]&255)<<8,Ft+=(Ze>>>4|ct<<12)&8191,cr+=ct>>>1&8191,Nt=Te[me+10]&255|(Te[me+11]&255)<<8,nr+=(ct>>>14|Nt<<2)&8191,Ut=Te[me+12]&255|(Te[me+13]&255)<<8,Vt+=(Nt>>>11|Ut<<5)&8191,Mr=Te[me+14]&255|(Te[me+15]&255)<<8,ar+=(Ut>>>8|Mr<<8)&8191,qr+=Mr>>>5|ne,Xt=0,Sr=Xt,Sr+=dr*Vr,Sr+=lr*(5*Ce),Sr+=Kt*(5*ye),Sr+=Bt*(5*ae),Sr+=Ft*(5*ti),Xt=Sr>>>13,Sr&=8191,Sr+=cr*(5*Ur),Sr+=nr*(5*Kr),Sr+=Vt*(5*bt),Sr+=ar*(5*Rr),Sr+=qr*(5*Wr),Xt+=Sr>>>13,Sr&=8191,rr=Xt,rr+=dr*Wr,rr+=lr*Vr,rr+=Kt*(5*Ce),rr+=Bt*(5*ye),rr+=Ft*(5*ae),Xt=rr>>>13,rr&=8191,rr+=cr*(5*ti),rr+=nr*(5*Ur),rr+=Vt*(5*Kr),rr+=ar*(5*bt),rr+=qr*(5*Rr),Xt+=rr>>>13,rr&=8191,er=Xt,er+=dr*Rr,er+=lr*Wr,er+=Kt*Vr,er+=Bt*(5*Ce),er+=Ft*(5*ye),Xt=er>>>13,er&=8191,er+=cr*(5*ae),er+=nr*(5*ti),er+=Vt*(5*Ur),er+=ar*(5*Kr),er+=qr*(5*bt),Xt+=er>>>13,er&=8191,kr=Xt,kr+=dr*bt,kr+=lr*Rr,kr+=Kt*Wr,kr+=Bt*Vr,kr+=Ft*(5*Ce),Xt=kr>>>13,kr&=8191,kr+=cr*(5*ye),kr+=nr*(5*ae),kr+=Vt*(5*ti),kr+=ar*(5*Ur),kr+=qr*(5*Kr),Xt+=kr>>>13,kr&=8191,vr=Xt,vr+=dr*Kr,vr+=lr*bt,vr+=Kt*Rr,vr+=Bt*Wr,vr+=Ft*Vr,Xt=vr>>>13,vr&=8191,vr+=cr*(5*Ce),vr+=nr*(5*ye),vr+=Vt*(5*ae),vr+=ar*(5*ti),vr+=qr*(5*Ur),Xt+=vr>>>13,vr&=8191,Pr=Xt,Pr+=dr*Ur,Pr+=lr*Kr,Pr+=Kt*bt,Pr+=Bt*Rr,Pr+=Ft*Wr,Xt=Pr>>>13,Pr&=8191,Pr+=cr*Vr,Pr+=nr*(5*Ce),Pr+=Vt*(5*ye),Pr+=ar*(5*ae),Pr+=qr*(5*ti),Xt+=Pr>>>13,Pr&=8191,Tr=Xt,Tr+=dr*ti,Tr+=lr*Ur,Tr+=Kt*Kr,Tr+=Bt*bt,Tr+=Ft*Rr,Xt=Tr>>>13,Tr&=8191,Tr+=cr*Wr,Tr+=nr*Vr,Tr+=Vt*(5*Ce),Tr+=ar*(5*ye),Tr+=qr*(5*ae),Xt+=Tr>>>13,Tr&=8191,br=Xt,br+=dr*ae,br+=lr*ti,br+=Kt*Ur,br+=Bt*Kr,br+=Ft*bt,Xt=br>>>13,br&=8191,br+=cr*Rr,br+=nr*Wr,br+=Vt*Vr,br+=ar*(5*Ce),br+=qr*(5*ye),Xt+=br>>>13,br&=8191,Ar=Xt,Ar+=dr*ye,Ar+=lr*ae,Ar+=Kt*ti,Ar+=Bt*Ur,Ar+=Ft*Kr,Xt=Ar>>>13,Ar&=8191,Ar+=cr*bt,Ar+=nr*Rr,Ar+=Vt*Wr,Ar+=ar*Vr,Ar+=qr*(5*Ce),Xt+=Ar>>>13,Ar&=8191,gr=Xt,gr+=dr*Ce,gr+=lr*ye,gr+=Kt*ae,gr+=Bt*ti,gr+=Ft*Ur,Xt=gr>>>13,gr&=8191,gr+=cr*Kr,gr+=nr*bt,gr+=Vt*Rr,gr+=ar*Wr,gr+=qr*Vr,Xt+=gr>>>13,gr&=8191,Xt=(Xt<<2)+Xt|0,Xt=Xt+Sr|0,Sr=Xt&8191,Xt=Xt>>>13,rr+=Xt,dr=Sr,lr=rr,Kt=er,Bt=kr,Ft=vr,cr=Pr,nr=Tr,Vt=br,ar=Ar,qr=gr,me+=16,ce-=16;this.h[0]=dr,this.h[1]=lr,this.h[2]=Kt,this.h[3]=Bt,this.h[4]=Ft,this.h[5]=cr,this.h[6]=nr,this.h[7]=Vt,this.h[8]=ar,this.h[9]=qr},T.prototype.finish=function(Te,me){var ce=new Uint16Array(10),ne,_e,Re,lt;if(this.leftover){for(lt=this.leftover,this.buffer[lt++]=1;lt<16;lt++)this.buffer[lt]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(ne=this.h[1]>>>13,this.h[1]&=8191,lt=2;lt<10;lt++)this.h[lt]+=ne,ne=this.h[lt]>>>13,this.h[lt]&=8191;for(this.h[0]+=ne*5,ne=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=ne,ne=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=ne,ce[0]=this.h[0]+5,ne=ce[0]>>>13,ce[0]&=8191,lt=1;lt<10;lt++)ce[lt]=this.h[lt]+ne,ne=ce[lt]>>>13,ce[lt]&=8191;for(ce[9]-=8192,_e=(ne^1)-1,lt=0;lt<10;lt++)ce[lt]&=_e;for(_e=~_e,lt=0;lt<10;lt++)this.h[lt]=this.h[lt]&_e|ce[lt];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Re=this.h[0]+this.pad[0],this.h[0]=Re&65535,lt=1;lt<8;lt++)Re=(this.h[lt]+this.pad[lt]|0)+(Re>>>16)|0,this.h[lt]=Re&65535;Te[me+0]=this.h[0]>>>0&255,Te[me+1]=this.h[0]>>>8&255,Te[me+2]=this.h[1]>>>0&255,Te[me+3]=this.h[1]>>>8&255,Te[me+4]=this.h[2]>>>0&255,Te[me+5]=this.h[2]>>>8&255,Te[me+6]=this.h[3]>>>0&255,Te[me+7]=this.h[3]>>>8&255,Te[me+8]=this.h[4]>>>0&255,Te[me+9]=this.h[4]>>>8&255,Te[me+10]=this.h[5]>>>0&255,Te[me+11]=this.h[5]>>>8&255,Te[me+12]=this.h[6]>>>0&255,Te[me+13]=this.h[6]>>>8&255,Te[me+14]=this.h[7]>>>0&255,Te[me+15]=this.h[7]>>>8&255},T.prototype.update=function(Te,me,ce){var ne,_e;if(this.leftover){for(_e=16-this.leftover,_e>ce&&(_e=ce),ne=0;ne<_e;ne++)this.buffer[this.leftover+ne]=Te[me+ne];if(ce-=_e,me+=_e,this.leftover+=_e,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(ce>=16&&(_e=ce-ce%16,this.blocks(Te,me,_e),me+=_e,ce-=_e),ce){for(ne=0;ne<ce;ne++)this.buffer[this.leftover+ne]=Te[me+ne];this.leftover+=ce}};function u(Te,me,ce,ne,_e,Re){var lt=new T(Re);return lt.update(ce,ne,_e),lt.finish(Te,me),0}function p(Te,me,ce,ne,_e,Re){var lt=new Uint8Array(16);return u(lt,0,ce,ne,_e,Re),N(Te,me,lt,0)}function b(Te,me,ce,ne,_e){var Re;if(ce<32)return-1;for(ke(Te,0,me,0,ce,ne,_e),u(Te,16,Te,32,ce-32,Te),Re=0;Re<16;Re++)Te[Re]=0;return 0}function e(Te,me,ce,ne,_e){var Re,lt=new Uint8Array(32);if(ce<32||(he(lt,0,32,ne,_e),p(me,16,me,32,ce-32,lt)!==0))return-1;for(ke(Te,0,me,0,ce,ne,_e),Re=0;Re<32;Re++)Te[Re]=0;return 0}function c(Te,me){var ce;for(ce=0;ce<16;ce++)Te[ce]=me[ce]|0}function y(Te){var me,ce,ne=1;for(me=0;me<16;me++)ce=Te[me]+ne+65535,ne=Math.floor(ce/65536),Te[me]=ce-ne*65536;Te[0]+=ne-1+37*(ne-1)}function w(Te,me,ce){for(var ne,_e=~(ce-1),Re=0;Re<16;Re++)ne=_e&(Te[Re]^me[Re]),Te[Re]^=ne,me[Re]^=ne}function v(Te,me){var ce,ne,_e,Re=l(),lt=l();for(ce=0;ce<16;ce++)lt[ce]=me[ce];for(y(lt),y(lt),y(lt),ne=0;ne<2;ne++){for(Re[0]=lt[0]-65517,ce=1;ce<15;ce++)Re[ce]=lt[ce]-65535-(Re[ce-1]>>16&1),Re[ce-1]&=65535;Re[15]=lt[15]-32767-(Re[14]>>16&1),_e=Re[15]>>16&1,Re[14]&=65535,w(lt,Re,1-_e)}for(ce=0;ce<16;ce++)Te[2*ce]=lt[ce]&255,Te[2*ce+1]=lt[ce]>>8}function o(Te,me){var ce=new Uint8Array(32),ne=new Uint8Array(32);return v(ce,Te),v(ne,me),F(ce,0,ne,0)}function x(Te){var me=new Uint8Array(32);return v(me,Te),me[0]&1}function E(Te,me){var ce;for(ce=0;ce<16;ce++)Te[ce]=me[2*ce]+(me[2*ce+1]<<8);Te[15]&=32767}function R(Te,me,ce){for(var ne=0;ne<16;ne++)Te[ne]=me[ne]+ce[ne]}function H(Te,me,ce){for(var ne=0;ne<16;ne++)Te[ne]=me[ne]-ce[ne]}function Y(Te,me,ce){var ne,_e,Re=0,lt=0,Ze=0,ct=0,Nt=0,Ut=0,Mr=0,Xt=0,Sr=0,rr=0,er=0,kr=0,vr=0,Pr=0,Tr=0,br=0,Ar=0,gr=0,dr=0,lr=0,Kt=0,Bt=0,Ft=0,cr=0,nr=0,Vt=0,ar=0,qr=0,Vr=0,Wr=0,Rr=0,bt=ce[0],Kr=ce[1],Ur=ce[2],ti=ce[3],ae=ce[4],ye=ce[5],Ce=ce[6],Pe=ce[7],ze=ce[8],Je=ce[9],ge=ce[10],we=ce[11],Ae=ce[12],Ue=ce[13],ht=ce[14],_t=ce[15];ne=me[0],Re+=ne*bt,lt+=ne*Kr,Ze+=ne*Ur,ct+=ne*ti,Nt+=ne*ae,Ut+=ne*ye,Mr+=ne*Ce,Xt+=ne*Pe,Sr+=ne*ze,rr+=ne*Je,er+=ne*ge,kr+=ne*we,vr+=ne*Ae,Pr+=ne*Ue,Tr+=ne*ht,br+=ne*_t,ne=me[1],lt+=ne*bt,Ze+=ne*Kr,ct+=ne*Ur,Nt+=ne*ti,Ut+=ne*ae,Mr+=ne*ye,Xt+=ne*Ce,Sr+=ne*Pe,rr+=ne*ze,er+=ne*Je,kr+=ne*ge,vr+=ne*we,Pr+=ne*Ae,Tr+=ne*Ue,br+=ne*ht,Ar+=ne*_t,ne=me[2],Ze+=ne*bt,ct+=ne*Kr,Nt+=ne*Ur,Ut+=ne*ti,Mr+=ne*ae,Xt+=ne*ye,Sr+=ne*Ce,rr+=ne*Pe,er+=ne*ze,kr+=ne*Je,vr+=ne*ge,Pr+=ne*we,Tr+=ne*Ae,br+=ne*Ue,Ar+=ne*ht,gr+=ne*_t,ne=me[3],ct+=ne*bt,Nt+=ne*Kr,Ut+=ne*Ur,Mr+=ne*ti,Xt+=ne*ae,Sr+=ne*ye,rr+=ne*Ce,er+=ne*Pe,kr+=ne*ze,vr+=ne*Je,Pr+=ne*ge,Tr+=ne*we,br+=ne*Ae,Ar+=ne*Ue,gr+=ne*ht,dr+=ne*_t,ne=me[4],Nt+=ne*bt,Ut+=ne*Kr,Mr+=ne*Ur,Xt+=ne*ti,Sr+=ne*ae,rr+=ne*ye,er+=ne*Ce,kr+=ne*Pe,vr+=ne*ze,Pr+=ne*Je,Tr+=ne*ge,br+=ne*we,Ar+=ne*Ae,gr+=ne*Ue,dr+=ne*ht,lr+=ne*_t,ne=me[5],Ut+=ne*bt,Mr+=ne*Kr,Xt+=ne*Ur,Sr+=ne*ti,rr+=ne*ae,er+=ne*ye,kr+=ne*Ce,vr+=ne*Pe,Pr+=ne*ze,Tr+=ne*Je,br+=ne*ge,Ar+=ne*we,gr+=ne*Ae,dr+=ne*Ue,lr+=ne*ht,Kt+=ne*_t,ne=me[6],Mr+=ne*bt,Xt+=ne*Kr,Sr+=ne*Ur,rr+=ne*ti,er+=ne*ae,kr+=ne*ye,vr+=ne*Ce,Pr+=ne*Pe,Tr+=ne*ze,br+=ne*Je,Ar+=ne*ge,gr+=ne*we,dr+=ne*Ae,lr+=ne*Ue,Kt+=ne*ht,Bt+=ne*_t,ne=me[7],Xt+=ne*bt,Sr+=ne*Kr,rr+=ne*Ur,er+=ne*ti,kr+=ne*ae,vr+=ne*ye,Pr+=ne*Ce,Tr+=ne*Pe,br+=ne*ze,Ar+=ne*Je,gr+=ne*ge,dr+=ne*we,lr+=ne*Ae,Kt+=ne*Ue,Bt+=ne*ht,Ft+=ne*_t,ne=me[8],Sr+=ne*bt,rr+=ne*Kr,er+=ne*Ur,kr+=ne*ti,vr+=ne*ae,Pr+=ne*ye,Tr+=ne*Ce,br+=ne*Pe,Ar+=ne*ze,gr+=ne*Je,dr+=ne*ge,lr+=ne*we,Kt+=ne*Ae,Bt+=ne*Ue,Ft+=ne*ht,cr+=ne*_t,ne=me[9],rr+=ne*bt,er+=ne*Kr,kr+=ne*Ur,vr+=ne*ti,Pr+=ne*ae,Tr+=ne*ye,br+=ne*Ce,Ar+=ne*Pe,gr+=ne*ze,dr+=ne*Je,lr+=ne*ge,Kt+=ne*we,Bt+=ne*Ae,Ft+=ne*Ue,cr+=ne*ht,nr+=ne*_t,ne=me[10],er+=ne*bt,kr+=ne*Kr,vr+=ne*Ur,Pr+=ne*ti,Tr+=ne*ae,br+=ne*ye,Ar+=ne*Ce,gr+=ne*Pe,dr+=ne*ze,lr+=ne*Je,Kt+=ne*ge,Bt+=ne*we,Ft+=ne*Ae,cr+=ne*Ue,nr+=ne*ht,Vt+=ne*_t,ne=me[11],kr+=ne*bt,vr+=ne*Kr,Pr+=ne*Ur,Tr+=ne*ti,br+=ne*ae,Ar+=ne*ye,gr+=ne*Ce,dr+=ne*Pe,lr+=ne*ze,Kt+=ne*Je,Bt+=ne*ge,Ft+=ne*we,cr+=ne*Ae,nr+=ne*Ue,Vt+=ne*ht,ar+=ne*_t,ne=me[12],vr+=ne*bt,Pr+=ne*Kr,Tr+=ne*Ur,br+=ne*ti,Ar+=ne*ae,gr+=ne*ye,dr+=ne*Ce,lr+=ne*Pe,Kt+=ne*ze,Bt+=ne*Je,Ft+=ne*ge,cr+=ne*we,nr+=ne*Ae,Vt+=ne*Ue,ar+=ne*ht,qr+=ne*_t,ne=me[13],Pr+=ne*bt,Tr+=ne*Kr,br+=ne*Ur,Ar+=ne*ti,gr+=ne*ae,dr+=ne*ye,lr+=ne*Ce,Kt+=ne*Pe,Bt+=ne*ze,Ft+=ne*Je,cr+=ne*ge,nr+=ne*we,Vt+=ne*Ae,ar+=ne*Ue,qr+=ne*ht,Vr+=ne*_t,ne=me[14],Tr+=ne*bt,br+=ne*Kr,Ar+=ne*Ur,gr+=ne*ti,dr+=ne*ae,lr+=ne*ye,Kt+=ne*Ce,Bt+=ne*Pe,Ft+=ne*ze,cr+=ne*Je,nr+=ne*ge,Vt+=ne*we,ar+=ne*Ae,qr+=ne*Ue,Vr+=ne*ht,Wr+=ne*_t,ne=me[15],br+=ne*bt,Ar+=ne*Kr,gr+=ne*Ur,dr+=ne*ti,lr+=ne*ae,Kt+=ne*ye,Bt+=ne*Ce,Ft+=ne*Pe,cr+=ne*ze,nr+=ne*Je,Vt+=ne*ge,ar+=ne*we,qr+=ne*Ae,Vr+=ne*Ue,Wr+=ne*ht,Rr+=ne*_t,Re+=38*Ar,lt+=38*gr,Ze+=38*dr,ct+=38*lr,Nt+=38*Kt,Ut+=38*Bt,Mr+=38*Ft,Xt+=38*cr,Sr+=38*nr,rr+=38*Vt,er+=38*ar,kr+=38*qr,vr+=38*Vr,Pr+=38*Wr,Tr+=38*Rr,_e=1,ne=Re+_e+65535,_e=Math.floor(ne/65536),Re=ne-_e*65536,ne=lt+_e+65535,_e=Math.floor(ne/65536),lt=ne-_e*65536,ne=Ze+_e+65535,_e=Math.floor(ne/65536),Ze=ne-_e*65536,ne=ct+_e+65535,_e=Math.floor(ne/65536),ct=ne-_e*65536,ne=Nt+_e+65535,_e=Math.floor(ne/65536),Nt=ne-_e*65536,ne=Ut+_e+65535,_e=Math.floor(ne/65536),Ut=ne-_e*65536,ne=Mr+_e+65535,_e=Math.floor(ne/65536),Mr=ne-_e*65536,ne=Xt+_e+65535,_e=Math.floor(ne/65536),Xt=ne-_e*65536,ne=Sr+_e+65535,_e=Math.floor(ne/65536),Sr=ne-_e*65536,ne=rr+_e+65535,_e=Math.floor(ne/65536),rr=ne-_e*65536,ne=er+_e+65535,_e=Math.floor(ne/65536),er=ne-_e*65536,ne=kr+_e+65535,_e=Math.floor(ne/65536),kr=ne-_e*65536,ne=vr+_e+65535,_e=Math.floor(ne/65536),vr=ne-_e*65536,ne=Pr+_e+65535,_e=Math.floor(ne/65536),Pr=ne-_e*65536,ne=Tr+_e+65535,_e=Math.floor(ne/65536),Tr=ne-_e*65536,ne=br+_e+65535,_e=Math.floor(ne/65536),br=ne-_e*65536,Re+=_e-1+37*(_e-1),_e=1,ne=Re+_e+65535,_e=Math.floor(ne/65536),Re=ne-_e*65536,ne=lt+_e+65535,_e=Math.floor(ne/65536),lt=ne-_e*65536,ne=Ze+_e+65535,_e=Math.floor(ne/65536),Ze=ne-_e*65536,ne=ct+_e+65535,_e=Math.floor(ne/65536),ct=ne-_e*65536,ne=Nt+_e+65535,_e=Math.floor(ne/65536),Nt=ne-_e*65536,ne=Ut+_e+65535,_e=Math.floor(ne/65536),Ut=ne-_e*65536,ne=Mr+_e+65535,_e=Math.floor(ne/65536),Mr=ne-_e*65536,ne=Xt+_e+65535,_e=Math.floor(ne/65536),Xt=ne-_e*65536,ne=Sr+_e+65535,_e=Math.floor(ne/65536),Sr=ne-_e*65536,ne=rr+_e+65535,_e=Math.floor(ne/65536),rr=ne-_e*65536,ne=er+_e+65535,_e=Math.floor(ne/65536),er=ne-_e*65536,ne=kr+_e+65535,_e=Math.floor(ne/65536),kr=ne-_e*65536,ne=vr+_e+65535,_e=Math.floor(ne/65536),vr=ne-_e*65536,ne=Pr+_e+65535,_e=Math.floor(ne/65536),Pr=ne-_e*65536,ne=Tr+_e+65535,_e=Math.floor(ne/65536),Tr=ne-_e*65536,ne=br+_e+65535,_e=Math.floor(ne/65536),br=ne-_e*65536,Re+=_e-1+37*(_e-1),Te[0]=Re,Te[1]=lt,Te[2]=Ze,Te[3]=ct,Te[4]=Nt,Te[5]=Ut,Te[6]=Mr,Te[7]=Xt,Te[8]=Sr,Te[9]=rr,Te[10]=er,Te[11]=kr,Te[12]=vr,Te[13]=Pr,Te[14]=Tr,Te[15]=br}function Z(Te,me){Y(Te,me,me)}function L(Te,me){var ce=l(),ne;for(ne=0;ne<16;ne++)ce[ne]=me[ne];for(ne=253;ne>=0;ne--)Z(ce,ce),ne!==2&&ne!==4&&Y(ce,ce,me);for(ne=0;ne<16;ne++)Te[ne]=ce[ne]}function D(Te,me){var ce=l(),ne;for(ne=0;ne<16;ne++)ce[ne]=me[ne];for(ne=250;ne>=0;ne--)Z(ce,ce),ne!==1&&Y(ce,ce,me);for(ne=0;ne<16;ne++)Te[ne]=ce[ne]}function ee(Te,me,ce){var ne=new Uint8Array(32),_e=new Float64Array(80),Re,lt,Ze=l(),ct=l(),Nt=l(),Ut=l(),Mr=l(),Xt=l();for(lt=0;lt<31;lt++)ne[lt]=me[lt];for(ne[31]=me[31]&127|64,ne[0]&=248,E(_e,ce),lt=0;lt<16;lt++)ct[lt]=_e[lt],Ut[lt]=Ze[lt]=Nt[lt]=0;for(Ze[0]=Ut[0]=1,lt=254;lt>=0;--lt)Re=ne[lt>>>3]>>>(lt&7)&1,w(Ze,ct,Re),w(Nt,Ut,Re),R(Mr,Ze,Nt),H(Ze,Ze,Nt),R(Nt,ct,Ut),H(ct,ct,Ut),Z(Ut,Mr),Z(Xt,Ze),Y(Ze,Nt,Ze),Y(Nt,ct,Mr),R(Mr,Ze,Nt),H(Ze,Ze,Nt),Z(ct,Ze),H(Nt,Ut,Xt),Y(Ze,Nt,A),R(Ze,Ze,Ut),Y(Nt,Nt,Ze),Y(Ze,Ut,Xt),Y(Ut,ct,_e),Z(ct,Mr),w(Ze,ct,Re),w(Nt,Ut,Re);for(lt=0;lt<16;lt++)_e[lt+16]=Ze[lt],_e[lt+32]=Nt[lt],_e[lt+48]=ct[lt],_e[lt+64]=Ut[lt];var Sr=_e.subarray(32),rr=_e.subarray(16);return L(Sr,Sr),Y(rr,rr,Sr),v(Te,rr),0}function oe(Te,me){return ee(Te,me,h)}function fe(Te,me){return d(me,32),oe(Te,me)}function ue(Te,me,ce){var ne=new Uint8Array(32);return ee(ne,ce,me),se(Te,m,ne,de)}var qe=b,rt=e;function Ve(Te,me,ce,ne,_e,Re){var lt=new Uint8Array(32);return ue(lt,_e,Re),qe(Te,me,ce,ne,lt)}function et(Te,me,ce,ne,_e,Re){var lt=new Uint8Array(32);return ue(lt,_e,Re),rt(Te,me,ce,ne,lt)}var mt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Ye(Te,me,ce,ne){for(var _e=new Int32Array(16),Re=new Int32Array(16),lt,Ze,ct,Nt,Ut,Mr,Xt,Sr,rr,er,kr,vr,Pr,Tr,br,Ar,gr,dr,lr,Kt,Bt,Ft,cr,nr,Vt,ar,qr=Te[0],Vr=Te[1],Wr=Te[2],Rr=Te[3],bt=Te[4],Kr=Te[5],Ur=Te[6],ti=Te[7],ae=me[0],ye=me[1],Ce=me[2],Pe=me[3],ze=me[4],Je=me[5],ge=me[6],we=me[7],Ae=0;ne>=128;){for(lr=0;lr<16;lr++)Kt=8*lr+Ae,_e[lr]=ce[Kt+0]<<24|ce[Kt+1]<<16|ce[Kt+2]<<8|ce[Kt+3],Re[lr]=ce[Kt+4]<<24|ce[Kt+5]<<16|ce[Kt+6]<<8|ce[Kt+7];for(lr=0;lr<80;lr++)if(lt=qr,Ze=Vr,ct=Wr,Nt=Rr,Ut=bt,Mr=Kr,Xt=Ur,Sr=ti,rr=ae,er=ye,kr=Ce,vr=Pe,Pr=ze,Tr=Je,br=ge,Ar=we,Bt=ti,Ft=we,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=(bt>>>14|ze<<18)^(bt>>>18|ze<<14)^(ze>>>9|bt<<23),Ft=(ze>>>14|bt<<18)^(ze>>>18|bt<<14)^(bt>>>9|ze<<23),cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,Bt=bt&Kr^~bt&Ur,Ft=ze&Je^~ze&ge,cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,Bt=mt[lr*2],Ft=mt[lr*2+1],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,Bt=_e[lr%16],Ft=Re[lr%16],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,gr=Vt&65535|ar<<16,dr=cr&65535|nr<<16,Bt=gr,Ft=dr,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=(qr>>>28|ae<<4)^(ae>>>2|qr<<30)^(ae>>>7|qr<<25),Ft=(ae>>>28|qr<<4)^(qr>>>2|ae<<30)^(qr>>>7|ae<<25),cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,Bt=qr&Vr^qr&Wr^Vr&Wr,Ft=ae&ye^ae&Ce^ye&Ce,cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Sr=Vt&65535|ar<<16,Ar=cr&65535|nr<<16,Bt=Nt,Ft=vr,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=gr,Ft=dr,cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Nt=Vt&65535|ar<<16,vr=cr&65535|nr<<16,Vr=lt,Wr=Ze,Rr=ct,bt=Nt,Kr=Ut,Ur=Mr,ti=Xt,qr=Sr,ye=rr,Ce=er,Pe=kr,ze=vr,Je=Pr,ge=Tr,we=br,ae=Ar,lr%16===15)for(Kt=0;Kt<16;Kt++)Bt=_e[Kt],Ft=Re[Kt],cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=_e[(Kt+9)%16],Ft=Re[(Kt+9)%16],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,gr=_e[(Kt+1)%16],dr=Re[(Kt+1)%16],Bt=(gr>>>1|dr<<31)^(gr>>>8|dr<<24)^gr>>>7,Ft=(dr>>>1|gr<<31)^(dr>>>8|gr<<24)^(dr>>>7|gr<<25),cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,gr=_e[(Kt+14)%16],dr=Re[(Kt+14)%16],Bt=(gr>>>19|dr<<13)^(dr>>>29|gr<<3)^gr>>>6,Ft=(dr>>>19|gr<<13)^(gr>>>29|dr<<3)^(dr>>>6|gr<<26),cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,_e[Kt]=Vt&65535|ar<<16,Re[Kt]=cr&65535|nr<<16;Bt=qr,Ft=ae,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=Te[0],Ft=me[0],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Te[0]=qr=Vt&65535|ar<<16,me[0]=ae=cr&65535|nr<<16,Bt=Vr,Ft=ye,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=Te[1],Ft=me[1],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Te[1]=Vr=Vt&65535|ar<<16,me[1]=ye=cr&65535|nr<<16,Bt=Wr,Ft=Ce,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=Te[2],Ft=me[2],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Te[2]=Wr=Vt&65535|ar<<16,me[2]=Ce=cr&65535|nr<<16,Bt=Rr,Ft=Pe,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=Te[3],Ft=me[3],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Te[3]=Rr=Vt&65535|ar<<16,me[3]=Pe=cr&65535|nr<<16,Bt=bt,Ft=ze,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=Te[4],Ft=me[4],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Te[4]=bt=Vt&65535|ar<<16,me[4]=ze=cr&65535|nr<<16,Bt=Kr,Ft=Je,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=Te[5],Ft=me[5],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Te[5]=Kr=Vt&65535|ar<<16,me[5]=Je=cr&65535|nr<<16,Bt=Ur,Ft=ge,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=Te[6],Ft=me[6],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Te[6]=Ur=Vt&65535|ar<<16,me[6]=ge=cr&65535|nr<<16,Bt=ti,Ft=we,cr=Ft&65535,nr=Ft>>>16,Vt=Bt&65535,ar=Bt>>>16,Bt=Te[7],Ft=me[7],cr+=Ft&65535,nr+=Ft>>>16,Vt+=Bt&65535,ar+=Bt>>>16,nr+=cr>>>16,Vt+=nr>>>16,ar+=Vt>>>16,Te[7]=ti=Vt&65535|ar<<16,me[7]=we=cr&65535|nr<<16,Ae+=128,ne-=128}return ne}function We(Te,me,ce){var ne=new Int32Array(8),_e=new Int32Array(8),Re=new Uint8Array(256),lt,Ze=ce;for(ne[0]=1779033703,ne[1]=3144134277,ne[2]=1013904242,ne[3]=2773480762,ne[4]=1359893119,ne[5]=2600822924,ne[6]=528734635,ne[7]=1541459225,_e[0]=4089235720,_e[1]=2227873595,_e[2]=4271175723,_e[3]=1595750129,_e[4]=2917565137,_e[5]=725511199,_e[6]=4215389547,_e[7]=327033209,Ye(ne,_e,me,ce),ce%=128,lt=0;lt<ce;lt++)Re[lt]=me[Ze-ce+lt];for(Re[ce]=128,ce=256-128*(ce<112?1:0),Re[ce-9]=0,$(Re,ce-8,Ze/536870912|0,Ze<<3),Ye(ne,_e,Re,ce),lt=0;lt<8;lt++)$(Te,8*lt,ne[lt],_e[lt]);return 0}function Xe(Te,me){var ce=l(),ne=l(),_e=l(),Re=l(),lt=l(),Ze=l(),ct=l(),Nt=l(),Ut=l();H(ce,Te[1],Te[0]),H(Ut,me[1],me[0]),Y(ce,ce,Ut),R(ne,Te[0],Te[1]),R(Ut,me[0],me[1]),Y(ne,ne,Ut),Y(_e,Te[3],me[3]),Y(_e,_e,M),Y(Re,Te[2],me[2]),R(Re,Re,Re),H(lt,ne,ce),H(Ze,Re,_e),R(ct,Re,_e),R(Nt,ne,ce),Y(Te[0],lt,Ze),Y(Te[1],Nt,ct),Y(Te[2],ct,Ze),Y(Te[3],lt,Nt)}function Ge(Te,me,ce){var ne;for(ne=0;ne<4;ne++)w(Te[ne],me[ne],ce)}function nt(Te,me){var ce=l(),ne=l(),_e=l();L(_e,me[2]),Y(ce,me[0],_e),Y(ne,me[1],_e),v(Te,ne),Te[31]^=x(ce)<<7}function Et(Te,me,ce){var ne,_e;for(c(Te[0],S),c(Te[1],k),c(Te[2],k),c(Te[3],S),_e=255;_e>=0;--_e)ne=ce[_e/8|0]>>(_e&7)&1,Ge(Te,me,ne),Xe(me,Te),Xe(Te,Te),Ge(Te,me,ne)}function Le(Te,me){var ce=[l(),l(),l(),l()];c(ce[0],j),c(ce[1],I),c(ce[2],k),Y(ce[3],j,I),Et(Te,ce,me)}function Oe(Te,me,ce){var ne=new Uint8Array(64),_e=[l(),l(),l(),l()],Re;for(ce||d(me,32),We(ne,me,32),ne[0]&=248,ne[31]&=127,ne[31]|=64,Le(_e,ne),nt(Te,_e),Re=0;Re<32;Re++)me[Re+32]=Te[Re];return 0}var $t=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function dt(Te,me){var ce,ne,_e,Re;for(ne=63;ne>=32;--ne){for(ce=0,_e=ne-32,Re=ne-12;_e<Re;++_e)me[_e]+=ce-16*me[ne]*$t[_e-(ne-32)],ce=me[_e]+128>>8,me[_e]-=ce*256;me[_e]+=ce,me[ne]=0}for(ce=0,_e=0;_e<32;_e++)me[_e]+=ce-(me[31]>>4)*$t[_e],ce=me[_e]>>8,me[_e]&=255;for(_e=0;_e<32;_e++)me[_e]-=ce*$t[_e];for(ne=0;ne<32;ne++)me[ne+1]+=me[ne]>>8,Te[ne]=me[ne]&255}function gt(Te){var me=new Float64Array(64),ce;for(ce=0;ce<64;ce++)me[ce]=Te[ce];for(ce=0;ce<64;ce++)Te[ce]=0;dt(Te,me)}function Lt(Te,me,ce,ne){var _e=new Uint8Array(64),Re=new Uint8Array(64),lt=new Uint8Array(64),Ze,ct,Nt=new Float64Array(64),Ut=[l(),l(),l(),l()];We(_e,ne,32),_e[0]&=248,_e[31]&=127,_e[31]|=64;var Mr=ce+64;for(Ze=0;Ze<ce;Ze++)Te[64+Ze]=me[Ze];for(Ze=0;Ze<32;Ze++)Te[32+Ze]=_e[32+Ze];for(We(lt,Te.subarray(32),ce+32),gt(lt),Le(Ut,lt),nt(Te,Ut),Ze=32;Ze<64;Ze++)Te[Ze]=ne[Ze];for(We(Re,Te,ce+64),gt(Re),Ze=0;Ze<64;Ze++)Nt[Ze]=0;for(Ze=0;Ze<32;Ze++)Nt[Ze]=lt[Ze];for(Ze=0;Ze<32;Ze++)for(ct=0;ct<32;ct++)Nt[Ze+ct]+=Re[Ze]*_e[ct];return dt(Te.subarray(32),Nt),Mr}function xe(Te,me){var ce=l(),ne=l(),_e=l(),Re=l(),lt=l(),Ze=l(),ct=l();return c(Te[2],k),E(Te[1],me),Z(_e,Te[1]),Y(Re,_e,B),H(_e,_e,Te[2]),R(Re,Te[2],Re),Z(lt,Re),Z(Ze,lt),Y(ct,Ze,lt),Y(ce,ct,_e),Y(ce,ce,Re),D(ce,ce),Y(ce,ce,_e),Y(ce,ce,Re),Y(ce,ce,Re),Y(Te[0],ce,Re),Z(ne,Te[0]),Y(ne,ne,Re),o(ne,_e)&&Y(Te[0],Te[0],P),Z(ne,Te[0]),Y(ne,ne,Re),o(ne,_e)?-1:(x(Te[0])===me[31]>>7&&H(Te[0],S,Te[0]),Y(Te[3],Te[0],Te[1]),0)}function X(Te,me,ce,ne){var _e,Re,lt=new Uint8Array(32),Ze=new Uint8Array(64),ct=[l(),l(),l(),l()],Nt=[l(),l(),l(),l()];if(Re=-1,ce<64||xe(Nt,ne))return-1;for(_e=0;_e<ce;_e++)Te[_e]=me[_e];for(_e=0;_e<32;_e++)Te[_e+32]=ne[_e];if(We(Ze,Te,ce),gt(Ze),Et(ct,Nt,Ze),Le(Nt,me.subarray(32)),Xe(ct,Nt),nt(lt,ct),ce-=64,F(me,0,lt,0)){for(_e=0;_e<ce;_e++)Te[_e]=0;return-1}for(_e=0;_e<ce;_e++)Te[_e]=me[_e+64];return Re=ce,Re}var pe=32,je=24,$e=32,He=16,Fe=32,Me=32,Rt=32,yt=32,le=32,wt=je,at=$e,Be=He,ot=64,tt=32,kt=64,Yt=32,pt=64;n.lowlevel={crypto_core_hsalsa20:se,crypto_stream_xor:ke,crypto_stream:he,crypto_stream_salsa20_xor:Q,crypto_stream_salsa20:ve,crypto_onetimeauth:u,crypto_onetimeauth_verify:p,crypto_verify_16:N,crypto_verify_32:F,crypto_secretbox:b,crypto_secretbox_open:e,crypto_scalarmult:ee,crypto_scalarmult_base:oe,crypto_box_beforenm:ue,crypto_box_afternm:qe,crypto_box:Ve,crypto_box_open:et,crypto_box_keypair:fe,crypto_hash:We,crypto_sign:Lt,crypto_sign_keypair:Oe,crypto_sign_open:X,crypto_secretbox_KEYBYTES:pe,crypto_secretbox_NONCEBYTES:je,crypto_secretbox_ZEROBYTES:$e,crypto_secretbox_BOXZEROBYTES:He,crypto_scalarmult_BYTES:Fe,crypto_scalarmult_SCALARBYTES:Me,crypto_box_PUBLICKEYBYTES:Rt,crypto_box_SECRETKEYBYTES:yt,crypto_box_BEFORENMBYTES:le,crypto_box_NONCEBYTES:wt,crypto_box_ZEROBYTES:at,crypto_box_BOXZEROBYTES:Be,crypto_sign_BYTES:ot,crypto_sign_PUBLICKEYBYTES:tt,crypto_sign_SECRETKEYBYTES:kt,crypto_sign_SEEDBYTES:Yt,crypto_hash_BYTES:pt};function It(Te,me){if(Te.length!==pe)throw new Error("bad key size");if(me.length!==je)throw new Error("bad nonce size")}function Fr(Te,me){if(Te.length!==Rt)throw new Error("bad public key size");if(me.length!==yt)throw new Error("bad secret key size")}function Pt(){var Te,me;for(me=0;me<arguments.length;me++)if((Te=Object.prototype.toString.call(arguments[me]))!=="[object Uint8Array]")throw new TypeError("unexpected type "+Te+", use Uint8Array")}function Ot(Te){for(var me=0;me<Te.length;me++)Te[me]=0}n.util||(n.util={},n.util.decodeUTF8=n.util.encodeUTF8=n.util.encodeBase64=n.util.decodeBase64=function(){throw new Error("nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js")}),n.randomBytes=function(Te){var me=new Uint8Array(Te);return d(me,Te),me},n.secretbox=function(Te,me,ce){Pt(Te,me,ce),It(ce,me);for(var ne=new Uint8Array($e+Te.length),_e=new Uint8Array(ne.length),Re=0;Re<Te.length;Re++)ne[Re+$e]=Te[Re];return b(_e,ne,ne.length,me,ce),_e.subarray(He)},n.secretbox.open=function(Te,me,ce){Pt(Te,me,ce),It(ce,me);for(var ne=new Uint8Array(He+Te.length),_e=new Uint8Array(ne.length),Re=0;Re<Te.length;Re++)ne[Re+He]=Te[Re];return ne.length<32||e(_e,ne,ne.length,me,ce)!==0?!1:_e.subarray($e)},n.secretbox.keyLength=pe,n.secretbox.nonceLength=je,n.secretbox.overheadLength=He,n.scalarMult=function(Te,me){if(Pt(Te,me),Te.length!==Me)throw new Error("bad n size");if(me.length!==Fe)throw new Error("bad p size");var ce=new Uint8Array(Fe);return ee(ce,Te,me),ce},n.scalarMult.base=function(Te){if(Pt(Te),Te.length!==Me)throw new Error("bad n size");var me=new Uint8Array(Fe);return oe(me,Te),me},n.scalarMult.scalarLength=Me,n.scalarMult.groupElementLength=Fe,n.box=function(Te,me,ce,ne){var _e=n.box.before(ce,ne);return n.secretbox(Te,me,_e)},n.box.before=function(Te,me){Pt(Te,me),Fr(Te,me);var ce=new Uint8Array(le);return ue(ce,Te,me),ce},n.box.after=n.secretbox,n.box.open=function(Te,me,ce,ne){var _e=n.box.before(ce,ne);return n.secretbox.open(Te,me,_e)},n.box.open.after=n.secretbox.open,n.box.keyPair=function(){var Te=new Uint8Array(Rt),me=new Uint8Array(yt);return fe(Te,me),{publicKey:Te,secretKey:me}},n.box.keyPair.fromSecretKey=function(Te){if(Pt(Te),Te.length!==yt)throw new Error("bad secret key size");var me=new Uint8Array(Rt);return oe(me,Te),{publicKey:me,secretKey:new Uint8Array(Te)}},n.box.publicKeyLength=Rt,n.box.secretKeyLength=yt,n.box.sharedKeyLength=le,n.box.nonceLength=wt,n.box.overheadLength=n.secretbox.overheadLength,n.sign=function(Te,me){if(Pt(Te,me),me.length!==kt)throw new Error("bad secret key size");var ce=new Uint8Array(ot+Te.length);return Lt(ce,Te,Te.length,me),ce},n.sign.open=function(Te,me){if(arguments.length!==2)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(Pt(Te,me),me.length!==tt)throw new Error("bad public key size");var ce=new Uint8Array(Te.length),ne=X(ce,Te,Te.length,me);if(ne<0)return null;for(var _e=new Uint8Array(ne),Re=0;Re<_e.length;Re++)_e[Re]=ce[Re];return _e},n.sign.detached=function(Te,me){for(var ce=n.sign(Te,me),ne=new Uint8Array(ot),_e=0;_e<ne.length;_e++)ne[_e]=ce[_e];return ne},n.sign.detached.verify=function(Te,me,ce){if(Pt(Te,me,ce),me.length!==ot)throw new Error("bad signature size");if(ce.length!==tt)throw new Error("bad public key size");var ne=new Uint8Array(ot+Te.length),_e=new Uint8Array(ot+Te.length),Re;for(Re=0;Re<ot;Re++)ne[Re]=me[Re];for(Re=0;Re<Te.length;Re++)ne[Re+ot]=Te[Re];return X(_e,ne,ne.length,ce)>=0},n.sign.keyPair=function(){var Te=new Uint8Array(tt),me=new Uint8Array(kt);return Oe(Te,me),{publicKey:Te,secretKey:me}},n.sign.keyPair.fromSecretKey=function(Te){if(Pt(Te),Te.length!==kt)throw new Error("bad secret key size");for(var me=new Uint8Array(tt),ce=0;ce<me.length;ce++)me[ce]=Te[32+ce];return{publicKey:me,secretKey:new Uint8Array(Te)}},n.sign.keyPair.fromSeed=function(Te){if(Pt(Te),Te.length!==Yt)throw new Error("bad seed size");for(var me=new Uint8Array(tt),ce=new Uint8Array(kt),ne=0;ne<32;ne++)ce[ne]=Te[ne];return Oe(me,ce,!0),{publicKey:me,secretKey:ce}},n.sign.publicKeyLength=tt,n.sign.secretKeyLength=kt,n.sign.seedLength=Yt,n.sign.signatureLength=ot,n.hash=function(Te){Pt(Te);var me=new Uint8Array(pt);return We(me,Te,Te.length),me},n.hash.hashLength=pt,n.verify=function(Te,me){return Pt(Te,me),Te.length===0||me.length===0||Te.length!==me.length?!1:z(Te,0,me,0,Te.length)===0},n.setPRNG=function(Te){d=Te},function(){var Te=typeof self<"u"?self.crypto||self.msCrypto:null;if(Te&&Te.getRandomValues){var me=65536;n.setPRNG(function(ce,ne){var _e,Re=new Uint8Array(ne);for(_e=0;_e<ne;_e+=me)Te.getRandomValues(Re.subarray(_e,_e+Math.min(ne-_e,me)));for(_e=0;_e<ne;_e++)ce[_e]=Re[_e];Ot(Re)})}else typeof commonjsRequire<"u"&&(Te=requireCryptoBrowserify(),Te&&Te.randomBytes&&n.setPRNG(function(ce,ne){var _e,Re=Te.randomBytes(ne);for(_e=0;_e<ne;_e++)ce[_e]=Re[_e];Ot(Re)}))}()})(t.exports?t.exports:self.nacl=self.nacl||{})}(naclFast)),naclFast.exports}var utils$2,hasRequiredUtils$2;function requireUtils$2(){if(hasRequiredUtils$2)return utils$2;hasRequiredUtils$2=1,utils$2={bufferSplit:U,addRSAMissing:p,calculateDSAPublic:ke,calculateED25519Public:T,calculateX25519Public:u,mpNormalize:de,mpDenormalize:Q,ecNormalize:J,countZeros:F,assertCompatible:I,isCompatible:j,opensslKeyDeriv:z,opensshCipherInfo:e,publicFromPrivateECDSA:b,zeroPadToLength:ve,writeBitString:se,readBitString:te,pbkdf2:N};var t=requireAssert(),n=requireSafer().Buffer,l=requirePrivateKey(),d=requireKey(),m=requireCryptoBrowserify(),h=requireAlgs(),S=requireLib$4(),k=requireEc(),A=requireJsbn().BigInteger,B=requireNaclFast(),M=3;function j(c,y,w){if(c===null||typeof c!="object")return!1;if(w===void 0&&(w=y.prototype._sshpkApiVersion),c instanceof y&&y.prototype._sshpkApiVersion[0]==w[0])return!0;for(var v=Object.getPrototypeOf(c),o=0;v.constructor.name!==y.name;)if(v=Object.getPrototypeOf(v),!v||++o>M)return!1;if(v.constructor.name!==y.name)return!1;var x=v._sshpkApiVersion;return x===void 0&&(x=y._oldVersionDetect(c)),!(x[0]!=w[0]||x[1]<w[1])}function I(c,y,w,v){if(v===void 0&&(v="object"),t.ok(c,v+" must not be null"),t.object(c,v+" must be an object"),w===void 0&&(w=y.prototype._sshpkApiVersion),!(c instanceof y&&y.prototype._sshpkApiVersion[0]==w[0])){for(var o=Object.getPrototypeOf(c),x=0;o.constructor.name!==y.name;)o=Object.getPrototypeOf(o),t.ok(o&&++x<=M,v+" must be a "+y.name+" instance");t.strictEqual(o.constructor.name,y.name,v+" must be a "+y.name+" instance");var E=o._sshpkApiVersion;E===void 0&&(E=y._oldVersionDetect(c)),t.ok(E[0]==w[0]&&E[1]>=w[1],v+" must be compatible with "+y.name+" klass version "+w[0]+"."+w[1])}}var P={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}},$=8;function z(c,y,w,v){t.buffer(y,"salt"),t.buffer(w,"passphrase"),t.number(v,"iteration count");var o=P[c];t.object(o,"supported cipher"),y=y.slice(0,$);for(var x,E,R,H=n.alloc(0);H.length<o.key+o.iv;){R=[],E&&R.push(E),R.push(w),R.push(y),x=n.concat(R);for(var Y=0;Y<v;++Y)x=m.createHash("md5").update(x).digest();H=n.concat([H,x]),E=x}return{key:H.slice(0,o.key),iv:H.slice(o.key,o.key+o.iv)}}function N(c,y,w,v,o){var x=n.alloc(y.length+4);y.copy(x);for(var E=0,R=[],H=1;E<v;){var Y=Z(H++);E+=Y.length,R.push(Y)}return n.concat(R).slice(0,v);function Z(L){x.writeUInt32BE(L,x.length-4);var D=m.createHmac(c,o);D.update(x);for(var ee=D.digest(),oe=ee,fe=1;fe++<w;){D=m.createHmac(c,o),D.update(oe),oe=D.digest();for(var ue=0;ue<ee.length;++ue)ee[ue]^=oe[ue]}return ee}}function F(c){for(var y=0,w=8;y<c.length;){var v=1<<w;if((c[y]&v)===v)break;w--,w<0&&(y++,w=8)}return y*8+(8-w)-1}function U(c,y){t.buffer(c),t.string(y);for(var w=[],v=0,o=0,x=0;x<c.length;++x)if(c[x]===y.charCodeAt(o)?++o:c[x]===y.charCodeAt(0)?o=1:o=0,o>=y.length){var E=x+1;w.push(c.slice(v,E-o)),v=E,o=0}return v<=c.length&&w.push(c.slice(v,c.length)),w}function J(c,y){if(t.buffer(c),c[0]===0&&c[1]===4)return y?c:c.slice(1);if(c[0]===4){if(!y)return c}else{for(;c[0]===0;)c=c.slice(1);if(c[0]===2||c[0]===3)throw new Error("Compressed elliptic curve points are not supported");if(c[0]!==4)throw new Error("Not a valid elliptic curve point");if(!y)return c}var w=n.alloc(c.length+1);return w[0]=0,c.copy(w,1),w}function te(c,y){y===void 0&&(y=S.Ber.BitString);var w=c.readString(y,!0);return t.strictEqual(w[0],0,"bit strings with unused bits are not supported (0x"+w[0].toString(16)+")"),w.slice(1)}function se(c,y,w){w===void 0&&(w=S.Ber.BitString);var v=n.alloc(y.length+1);v[0]=0,y.copy(v,1),c.writeBuffer(v,w)}function de(c){for(t.buffer(c);c.length>1&&c[0]===0&&!(c[1]&128);)c=c.slice(1);if((c[0]&128)===128){var y=n.alloc(c.length+1);y[0]=0,c.copy(y,1),c=y}return c}function Q(c){for(t.buffer(c);c.length>1&&c[0]===0;)c=c.slice(1);return c}function ve(c,y){for(t.buffer(c),t.number(y);c.length>y;)t.equal(c[0],0),c=c.slice(1);for(;c.length<y;){var w=n.alloc(c.length+1);w[0]=0,c.copy(w,1),c=w}return c}function he(c){var y=n.from(c.toByteArray());return y=de(y),y}function ke(c,y,w){t.buffer(c),t.buffer(y),t.buffer(w),c=new A(c),y=new A(y),w=new A(w);var v=c.modPow(w,y),o=he(v);return o}function T(c){t.buffer(c);var y=B.sign.keyPair.fromSeed(new Uint8Array(c));return n.from(y.publicKey)}function u(c){t.buffer(c);var y=B.box.keyPair.fromSeed(new Uint8Array(c));return n.from(y.publicKey)}function p(c){t.object(c),I(c,l,[1,1]);var y=new A(c.part.d.data),w;if(!c.part.dmodp){var v=new A(c.part.p.data),o=y.mod(v.subtract(1));w=he(o),c.part.dmodp={name:"dmodp",data:w},c.parts.push(c.part.dmodp)}if(!c.part.dmodq){var x=new A(c.part.q.data),E=y.mod(x.subtract(1));w=he(E),c.part.dmodq={name:"dmodq",data:w},c.parts.push(c.part.dmodq)}}function b(c,y){t.string(c,"curveName"),t.buffer(y);var w=h.curves[c],v=new A(w.p),o=new A(w.a),x=new A(w.b),E=new k.ECCurveFp(v,o,x),R=E.decodePointHex(w.G.toString("hex")),H=new A(de(y)),Y=R.multiply(H);Y=n.from(E.encodePointHex(Y),"hex");var Z=[];Z.push({name:"curve",data:n.from(c)}),Z.push({name:"Q",data:Y});var L=new d({type:"ecdsa",curve:E,parts:Z});return L}function e(c){var y={};switch(c){case"3des-cbc":y.keySize=24,y.blockSize=8,y.opensslName="des-ede3-cbc";break;case"blowfish-cbc":y.keySize=16,y.blockSize=8,y.opensslName="bf-cbc";break;case"aes128-cbc":case"aes128-ctr":case"aes128-gcm@openssh.com":y.keySize=16,y.blockSize=16,y.opensslName="aes-128-"+c.slice(7,10);break;case"aes192-cbc":case"aes192-ctr":case"aes192-gcm@openssh.com":y.keySize=24,y.blockSize=16,y.opensslName="aes-192-"+c.slice(7,10);break;case"aes256-cbc":case"aes256-ctr":case"aes256-gcm@openssh.com":y.keySize=32,y.blockSize=16,y.opensslName="aes-256-"+c.slice(7,10);break;default:throw new Error('Unsupported openssl cipher "'+c+'"')}return y}return utils$2}var sshBuffer,hasRequiredSshBuffer;function requireSshBuffer(){if(hasRequiredSshBuffer)return sshBuffer;hasRequiredSshBuffer=1,sshBuffer=l;var t=requireAssert(),n=requireSafer().Buffer;function l(d){t.object(d,"options"),d.buffer!==void 0&&t.buffer(d.buffer,"options.buffer"),this._size=d.buffer?d.buffer.length:1024,this._buffer=d.buffer||n.alloc(this._size),this._offset=0}return l.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset)},l.prototype.atEnd=function(){return this._offset>=this._buffer.length},l.prototype.remainder=function(){return this._buffer.slice(this._offset)},l.prototype.skip=function(d){this._offset+=d},l.prototype.expand=function(){this._size*=2;var d=n.alloc(this._size);this._buffer.copy(d,0),this._buffer=d},l.prototype.readPart=function(){return{data:this.readBuffer()}},l.prototype.readBuffer=function(){var d=this._buffer.readUInt32BE(this._offset);this._offset+=4,t.ok(this._offset+d<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var m=this._buffer.slice(this._offset,this._offset+d);return this._offset+=d,m},l.prototype.readString=function(){return this.readBuffer().toString()},l.prototype.readCString=function(){for(var d=this._offset;d<this._buffer.length&&this._buffer[d]!==0;)d++;t.ok(d<this._buffer.length,"c string does not terminate");var m=this._buffer.slice(this._offset,d).toString();return this._offset=d+1,m},l.prototype.readInt=function(){var d=this._buffer.readUInt32BE(this._offset);return this._offset+=4,d},l.prototype.readInt64=function(){t.ok(this._offset+8<this._buffer.length,"buffer not long enough to read Int64");var d=this._buffer.slice(this._offset,this._offset+8);return this._offset+=8,d},l.prototype.readChar=function(){var d=this._buffer[this._offset++];return d},l.prototype.writeBuffer=function(d){for(;this._offset+4+d.length>this._size;)this.expand();this._buffer.writeUInt32BE(d.length,this._offset),this._offset+=4,d.copy(this._buffer,this._offset),this._offset+=d.length},l.prototype.writeString=function(d){this.writeBuffer(n.from(d,"utf8"))},l.prototype.writeCString=function(d){for(;this._offset+1+d.length>this._size;)this.expand();this._buffer.write(d,this._offset),this._offset+=d.length,this._buffer[this._offset++]=0},l.prototype.writeInt=function(d){for(;this._offset+4>this._size;)this.expand();this._buffer.writeUInt32BE(d,this._offset),this._offset+=4},l.prototype.writeInt64=function(d){if(t.buffer(d,"value"),d.length>8){for(var m=d.slice(0,d.length-8),h=0;h<m.length;++h)t.strictEqual(m[h],0,"must fit in 64 bits of precision");d=d.slice(d.length-8,d.length)}for(;this._offset+8>this._size;)this.expand();d.copy(this._buffer,this._offset),this._offset+=8},l.prototype.writeChar=function(d){for(;this._offset+1>this._size;)this.expand();this._buffer[this._offset++]=d},l.prototype.writePart=function(d){this.writeBuffer(d.data)},l.prototype.write=function(d){for(;this._offset+d.length>this._size;)this.expand();d.copy(this._buffer,this._offset),this._offset+=d.length},sshBuffer}var signature,hasRequiredSignature;function requireSignature(){if(hasRequiredSignature)return signature;hasRequiredSignature=1,signature=A;var t=requireAssert(),n=requireSafer().Buffer;requireAlgs(),requireCryptoBrowserify();var l=requireErrors$1(),d=requireUtils$2(),m=requireLib$4(),h=requireSshBuffer(),S=l.InvalidAlgorithmError,k=l.SignatureParseError;function A(P){t.object(P,"options"),t.arrayOfObject(P.parts,"options.parts"),t.string(P.type,"options.type");for(var $={},z=0;z<P.parts.length;++z){var N=P.parts[z];$[N.name]=N}this.type=P.type,this.hashAlgorithm=P.hashAlgo,this.curve=P.curve,this.parts=P.parts,this.part=$}A.prototype.toBuffer=function(P){P===void 0&&(P="asn1"),t.string(P,"format");var $,z="ssh-"+this.type;switch(this.type){case"rsa":switch(this.hashAlgorithm){case"sha256":z="rsa-sha2-256";break;case"sha512":z="rsa-sha2-512";break;case"sha1":case void 0:break;default:throw new Error("SSH signature format does not support hash algorithm "+this.hashAlgorithm)}return P==="ssh"?($=new h({}),$.writeString(z),$.writePart(this.part.sig),$.toBuffer()):this.part.sig.data;case"ed25519":return P==="ssh"?($=new h({}),$.writeString(z),$.writePart(this.part.sig),$.toBuffer()):this.part.sig.data;case"dsa":case"ecdsa":var N,F;if(P==="asn1"){var U=new m.BerWriter;return U.startSequence(),N=d.mpNormalize(this.part.r.data),F=d.mpNormalize(this.part.s.data),U.writeBuffer(N,m.Ber.Integer),U.writeBuffer(F,m.Ber.Integer),U.endSequence(),U.buffer}else if(P==="ssh"&&this.type==="dsa"){if($=new h({}),$.writeString("ssh-dss"),N=this.part.r.data,N.length>20&&N[0]===0&&(N=N.slice(1)),F=this.part.s.data,F.length>20&&F[0]===0&&(F=F.slice(1)),this.hashAlgorithm&&this.hashAlgorithm!=="sha1"||N.length+F.length!==40)throw new Error("OpenSSH only supports DSA signatures with SHA1 hash");return $.writeBuffer(n.concat([N,F])),$.toBuffer()}else if(P==="ssh"&&this.type==="ecdsa"){var J=new h({});N=this.part.r.data,J.writeBuffer(N),J.writePart(this.part.s),$=new h({});var te;N[0]===0&&(N=N.slice(1));var se=N.length*8;return se===256?te="nistp256":se===384?te="nistp384":se===528&&(te="nistp521"),$.writeString("ecdsa-sha2-"+te),$.writeBuffer(J.toBuffer()),$.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}},A.prototype.toString=function(P){return t.optionalString(P,"format"),this.toBuffer(P).toString("base64")},A.parse=function(P,$,z){typeof P=="string"&&(P=n.from(P,"base64")),t.buffer(P,"data"),t.string(z,"format"),t.string($,"type");var N={};N.type=$.toLowerCase(),N.parts=[];try{switch(t.ok(P.length>0,"signature must not be empty"),N.type){case"rsa":return B(P,$,z,N);case"ed25519":return B(P,$,z,N);case"dsa":case"ecdsa":return z==="asn1"?M(P,$,z,N):N.type==="dsa"?j(P,$,z,N):I(P,$,z,N);default:throw new S($)}}catch(F){throw F instanceof S?F:new k($,z,F)}};function B(P,$,z,N){if(z==="ssh"){try{var F=new h({buffer:P}),U=F.readString()}catch{}if(F!==void 0){var J="SSH signature does not match expected type (expected "+$+", got "+U+")";switch(U){case"ssh-rsa":t.strictEqual($,"rsa",J),N.hashAlgo="sha1";break;case"rsa-sha2-256":t.strictEqual($,"rsa",J),N.hashAlgo="sha256";break;case"rsa-sha2-512":t.strictEqual($,"rsa",J),N.hashAlgo="sha512";break;case"ssh-ed25519":t.strictEqual($,"ed25519",J),N.hashAlgo="sha512";break;default:throw new Error("Unknown SSH signature type: "+U)}var te=F.readPart();return t.ok(F.atEnd(),"extra trailing bytes"),te.name="sig",N.parts.push(te),new A(N)}}return N.parts.push({name:"sig",data:P}),new A(N)}function M(P,$,z,N){var F=new m.BerReader(P);F.readSequence();var U=F.readString(m.Ber.Integer,!0),J=F.readString(m.Ber.Integer,!0);return N.parts.push({name:"r",data:d.mpNormalize(U)}),N.parts.push({name:"s",data:d.mpNormalize(J)}),new A(N)}function j(P,$,z,N){if(P.length!=40){var F=new h({buffer:P}),U=F.readBuffer();U.toString("ascii")==="ssh-dss"&&(U=F.readBuffer()),t.ok(F.atEnd(),"extra trailing bytes"),t.strictEqual(U.length,40,"invalid inner length"),P=U}return N.parts.push({name:"r",data:P.slice(0,20)}),N.parts.push({name:"s",data:P.slice(20,40)}),new A(N)}function I(P,$,z,N){var F=new h({buffer:P}),U,J,te=F.readBuffer(),se=te.toString("ascii");if(se.slice(0,6)==="ecdsa-"){var de=se.split("-");switch(t.strictEqual(de[0],"ecdsa"),t.strictEqual(de[1],"sha2"),N.curve=de[2],N.curve){case"nistp256":N.hashAlgo="sha256";break;case"nistp384":N.hashAlgo="sha384";break;case"nistp521":N.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+N.curve)}te=F.readBuffer(),t.ok(F.atEnd(),"extra trailing bytes on outer"),F=new h({buffer:te}),U=F.readPart()}else U={data:te};return J=F.readPart(),t.ok(F.atEnd(),"extra trailing bytes"),U.name="r",J.name="s",N.parts.push(U),N.parts.push(J),new A(N)}return A.isSignature=function(P,$){return d.isCompatible(P,A,$)},A.prototype._sshpkApiVersion=[2,1],A._oldVersionDetect=function(P){return t.func(P.toBuffer),P.hasOwnProperty("hashAlgorithm")?[2,0]:[1,0]},signature}var eccJsbn={},sec,hasRequiredSec;function requireSec(){if(hasRequiredSec)return sec;hasRequiredSec=1;var t=requireJsbn().BigInteger,n=requireEc().ECCurveFp;function l(z,N,F,U){this.curve=z,this.g=N,this.n=F,this.h=U}function d(){return this.curve}function m(){return this.g}function h(){return this.n}function S(){return this.h}l.prototype.getCurve=d,l.prototype.getG=m,l.prototype.getN=h,l.prototype.getH=S;function k(z){return new t(z,16)}function A(){var z=k("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF"),N=k("FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC"),F=k("E87579C11079F43DD824993C2CEE5ED3"),U=k("FFFFFFFE0000000075A30D1B9038A115"),J=t.ONE,te=new n(z,N,F),se=te.decodePointHex("04161FF7528B899B2D0C28607CA52C5B86CF5AC8395BAFEB13C02DA292DDED7A83");return new l(te,se,U,J)}function B(){var z=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73"),N=t.ZERO,F=k("7"),U=k("0100000000000000000001B8FA16DFAB9ACA16B6B3"),J=t.ONE,te=new n(z,N,F),se=te.decodePointHex("043B4C382CE37AA192A4019E763036F4F5DD4D7EBB938CF935318FDCED6BC28286531733C3F03C4FEE");return new l(te,se,U,J)}function M(){var z=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF"),N=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC"),F=k("1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45"),U=k("0100000000000000000001F4C8F927AED3CA752257"),J=t.ONE,te=new n(z,N,F),se=te.decodePointHex("044A96B5688EF573284664698968C38BB913CBFC8223A628553168947D59DCC912042351377AC5FB32");return new l(te,se,U,J)}function j(){var z=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37"),N=t.ZERO,F=k("3"),U=k("FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D"),J=t.ONE,te=new n(z,N,F),se=te.decodePointHex("04DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D");return new l(te,se,U,J)}function I(){var z=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF"),N=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC"),F=k("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1"),U=k("FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831"),J=t.ONE,te=new n(z,N,F),se=te.decodePointHex("04188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF101207192B95FFC8DA78631011ED6B24CDD573F977A11E794811");return new l(te,se,U,J)}function P(){var z=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001"),N=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE"),F=k("B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4"),U=k("FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D"),J=t.ONE,te=new n(z,N,F),se=te.decodePointHex("04B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34");return new l(te,se,U,J)}function $(){var z=k("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF"),N=k("FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC"),F=k("5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B"),U=k("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551"),J=t.ONE,te=new n(z,N,F),se=te.decodePointHex("046B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C2964FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5");return new l(te,se,U,J)}return sec={secp128r1:A,secp160k1:B,secp160r1:M,secp192k1:j,secp192r1:I,secp224r1:P,secp256r1:$},sec}var hasRequiredEccJsbn;function requireEccJsbn(){if(hasRequiredEccJsbn)return eccJsbn;hasRequiredEccJsbn=1;var t=requireCryptoBrowserify(),n=requireJsbn().BigInteger;requireEc().ECPointFp;var l=requireSafer().Buffer;eccJsbn.ECCurves=requireSec();function d(m,h){return m.length>=h?m:d("0"+m,h)}return eccJsbn.ECKey=function(m,h,S){var k,A=m(),B=A.getN(),M=Math.floor(B.bitLength()/8);if(h)if(S){var m=A.getCurve();this.P=m.decodePointHex(h.toString("hex"))}else{if(h.length!=M)return!1;k=new n(h.toString("hex"),16)}else{var j=B.subtract(n.ONE),I=new n(t.randomBytes(B.bitLength()));k=I.mod(j).add(n.ONE),this.P=A.getG().multiply(k)}this.P&&(this.PublicKey=l.from(A.getCurve().encodeCompressedPointHex(this.P),"hex")),k&&(this.PrivateKey=l.from(d(k.toString(16),M*2),"hex"),this.deriveSharedSecret=function(P){if(!P||!P.P)return!1;var $=P.P.multiply(k);return l.from(d($.getX().toBigInteger().toString(16),M*2),"hex")})},eccJsbn}var dhe,hasRequiredDhe;function requireDhe(){if(hasRequiredDhe)return dhe;hasRequiredDhe=1,dhe={DiffieHellman:j,generateECDSA:N,generateED25519:z};var t=requireAssert(),n=requireCryptoBrowserify(),l=requireSafer().Buffer,d=requireAlgs(),m=requireUtils$2(),h=requireNaclFast(),S=requireKey(),k=requirePrivateKey(),A=n.createECDH!==void 0;requireEccJsbn();var B=requireEc(),M=requireJsbn().BigInteger;function j(F){if(m.assertCompatible(F,S,[1,4],"key"),this._isPriv=k.isPrivateKey(F,[1,3]),this._algo=F.type,this._curve=F.curve,this._key=F,F.type==="dsa"){if(!A)throw new Error("Due to bugs in the node 0.10 crypto API, node 0.12.x or later is required to use DH");this._dh=n.createDiffieHellman(F.part.p.data,void 0,F.part.g.data,void 0),this._p=F.part.p,this._g=F.part.g,this._isPriv&&this._dh.setPrivateKey(F.part.x.data),this._dh.setPublicKey(F.part.y.data)}else if(F.type==="ecdsa"){if(!A){this._ecParams=new I(this._curve),this._isPriv&&(this._priv=new $(this._ecParams,F.part.d.data));return}var U={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[F.curve];if(this._dh=n.createECDH(U),typeof this._dh!="object"||typeof this._dh.setPrivateKey!="function"){A=!1,j.call(this,F);return}this._isPriv&&this._dh.setPrivateKey(F.part.d.data),this._dh.setPublicKey(F.part.Q.data)}else if(F.type==="curve25519")this._isPriv&&(m.assertCompatible(F,k,[1,5],"key"),this._priv=F.part.k.data);else throw new Error("DH not supported for "+F.type+" keys")}j.prototype.getPublicKey=function(){return this._isPriv?this._key.toPublic():this._key},j.prototype.getPrivateKey=function(){if(this._isPriv)return this._key},j.prototype.getKey=j.prototype.getPrivateKey,j.prototype._keyCheck=function(F,U){if(t.object(F,"key"),U||m.assertCompatible(F,k,[1,3],"key"),m.assertCompatible(F,S,[1,4],"key"),F.type!==this._algo)throw new Error("A "+F.type+" key cannot be used in "+this._algo+" Diffie-Hellman");if(F.curve!==this._curve)throw new Error("A key from the "+F.curve+" curve cannot be used with a "+this._curve+" Diffie-Hellman");F.type==="dsa"&&(t.deepEqual(F.part.p,this._p,"DSA key prime does not match"),t.deepEqual(F.part.g,this._g,"DSA key generator does not match"))},j.prototype.setKey=function(F){if(this._keyCheck(F),F.type==="dsa")this._dh.setPrivateKey(F.part.x.data),this._dh.setPublicKey(F.part.y.data);else if(F.type==="ecdsa")A?(this._dh.setPrivateKey(F.part.d.data),this._dh.setPublicKey(F.part.Q.data)):this._priv=new $(this._ecParams,F.part.d.data);else if(F.type==="curve25519"){var U=F.part.k;F.part.k||(U=F.part.r),this._priv=U.data,this._priv[0]===0&&(this._priv=this._priv.slice(1)),this._priv=this._priv.slice(0,32)}this._key=F,this._isPriv=!0},j.prototype.setPrivateKey=j.prototype.setKey,j.prototype.computeSecret=function(F){if(this._keyCheck(F,!0),!this._isPriv)throw new Error("DH exchange has not been initialized with a private key yet");var U;if(this._algo==="dsa")return this._dh.computeSecret(F.part.y.data);if(this._algo==="ecdsa")return A?this._dh.computeSecret(F.part.Q.data):(U=new P(this._ecParams,F.part.Q.data),this._priv.deriveSharedSecret(U));if(this._algo==="curve25519"){for(U=F.part.A.data;U[0]===0&&U.length>32;)U=U.slice(1);var J=this._priv;t.strictEqual(U.length,32),t.strictEqual(J.length,32);var te=h.box.before(new Uint8Array(U),new Uint8Array(J));return l.from(te)}throw new Error("Invalid algorithm: "+this._algo)},j.prototype.generateKey=function(){var F=[],U,J;if(this._algo==="dsa")return this._dh.generateKeys(),F.push({name:"p",data:this._p.data}),F.push({name:"q",data:this._key.part.q.data}),F.push({name:"g",data:this._g.data}),F.push({name:"y",data:this._dh.getPublicKey()}),F.push({name:"x",data:this._dh.getPrivateKey()}),this._key=new k({type:"dsa",parts:F}),this._isPriv=!0,this._key;if(this._algo==="ecdsa"){if(A)return this._dh.generateKeys(),F.push({name:"curve",data:l.from(this._curve)}),F.push({name:"Q",data:this._dh.getPublicKey()}),F.push({name:"d",data:this._dh.getPrivateKey()}),this._key=new k({type:"ecdsa",curve:this._curve,parts:F}),this._isPriv=!0,this._key;var te=this._ecParams.getN(),se=new M(n.randomBytes(te.bitLength())),de=te.subtract(M.ONE);return U=se.mod(de).add(M.ONE),J=this._ecParams.getG().multiply(U),U=l.from(U.toByteArray()),J=l.from(this._ecParams.getCurve().encodePointHex(J),"hex"),this._priv=new $(this._ecParams,U),F.push({name:"curve",data:l.from(this._curve)}),F.push({name:"Q",data:J}),F.push({name:"d",data:U}),this._key=new k({type:"ecdsa",curve:this._curve,parts:F}),this._isPriv=!0,this._key}else if(this._algo==="curve25519"){var Q=h.box.keyPair();return U=l.from(Q.secretKey),J=l.from(Q.publicKey),U=l.concat([U,J]),t.strictEqual(U.length,64),t.strictEqual(J.length,32),F.push({name:"A",data:J}),F.push({name:"k",data:U}),this._key=new k({type:"curve25519",parts:F}),this._isPriv=!0,this._key}throw new Error("Invalid algorithm: "+this._algo)},j.prototype.generateKeys=j.prototype.generateKey;function I(F){var U=d.curves[F];t.object(U);var J=new M(U.p),te=new M(U.a),se=new M(U.b),de=new M(U.n),Q=M.ONE,ve=new B.ECCurveFp(J,te,se),he=ve.decodePointHex(U.G.toString("hex"));this.curve=ve,this.g=he,this.n=de,this.h=Q}I.prototype.getCurve=function(){return this.curve},I.prototype.getG=function(){return this.g},I.prototype.getN=function(){return this.n},I.prototype.getH=function(){return this.h};function P(F,U){this._params=F,U[0]===0&&(U=U.slice(1)),this._pub=F.getCurve().decodePointHex(U.toString("hex"))}function $(F,U){this._params=F,this._priv=new M(m.mpNormalize(U))}$.prototype.deriveSharedSecret=function(F){t.ok(F instanceof P);var U=F._pub.multiply(this._priv);return l.from(U.getX().toBigInteger().toByteArray())};function z(){var F=h.sign.keyPair(),U=l.from(F.secretKey),J=l.from(F.publicKey);t.strictEqual(U.length,64),t.strictEqual(J.length,32);var te=[];te.push({name:"A",data:J}),te.push({name:"k",data:U.slice(0,32)});var se=new k({type:"ed25519",parts:te});return se}function N(F){var U=[],J;if(A){var te={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[F],se=n.createECDH(te);return se.generateKeys(),U.push({name:"curve",data:l.from(F)}),U.push({name:"Q",data:se.getPublicKey()}),U.push({name:"d",data:se.getPrivateKey()}),J=new k({type:"ecdsa",curve:F,parts:U}),J}else{var de=new I(F),Q=de.getN(),ve=Math.ceil((Q.bitLength()+64)/8),he=new M(n.randomBytes(ve)),ke=Q.subtract(M.ONE),T=he.mod(ke).add(M.ONE),u=de.getG().multiply(T);return T=l.from(T.toByteArray()),u=l.from(de.getCurve().encodePointHex(u),"hex"),U.push({name:"curve",data:l.from(F)}),U.push({name:"Q",data:u}),U.push({name:"d",data:T}),J=new k({type:"ecdsa",curve:F,parts:U}),J}}return dhe}var edCompat,hasRequiredEdCompat;function requireEdCompat(){if(hasRequiredEdCompat)return edCompat;hasRequiredEdCompat=1,edCompat={Verifier:S,Signer:k};var t=requireNaclFast(),n=requireStreamBrowserify(),l=util$6,d=requireAssert(),m=requireSafer().Buffer,h=requireSignature();function S(A,B){if(B.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=A,this.chunks=[],n.Writable.call(this,{})}l.inherits(S,n.Writable),S.prototype._write=function(A,B,M){this.chunks.push(A),M()},S.prototype.update=function(A){typeof A=="string"&&(A=m.from(A,"binary")),this.chunks.push(A)},S.prototype.verify=function(A,B){var M;if(h.isSignature(A,[2,0])){if(A.type!=="ed25519")return!1;M=A.toBuffer("raw")}else if(typeof A=="string")M=m.from(A,"base64");else if(h.isSignature(A,[1,0]))throw new Error("signature was created by too old a version of sshpk and cannot be verified");return d.buffer(M),t.sign.detached.verify(new Uint8Array(m.concat(this.chunks)),new Uint8Array(M),new Uint8Array(this.key.part.A.data))};function k(A,B){if(B.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of SHA-512 hashes");this.key=A,this.chunks=[],n.Writable.call(this,{})}return l.inherits(k,n.Writable),k.prototype._write=function(A,B,M){this.chunks.push(A),M()},k.prototype.update=function(A){typeof A=="string"&&(A=m.from(A,"binary")),this.chunks.push(A)},k.prototype.sign=function(){var A=t.sign.detached(new Uint8Array(m.concat(this.chunks)),new Uint8Array(m.concat([this.key.part.k.data,this.key.part.A.data]))),B=m.from(A),M=h.parse(B,"ed25519","raw");return M.hashAlgorithm="sha512",M},edCompat}var pkcs8,hasRequiredPkcs8;function requirePkcs8(){if(hasRequiredPkcs8)return pkcs8;hasRequiredPkcs8=1,pkcs8={read:A,readPkcs8:j,write:B,writePkcs8:ve,pkcs8ToBuffer:Q,readECDSACurve:N,writeECDSACurve:p};var t=requireAssert(),n=requireLib$4(),l=requireSafer().Buffer,d=requireAlgs(),m=requireUtils$2(),h=requireKey(),S=requirePrivateKey(),k=requirePem();function A(w,v){return k.read(w,v,"pkcs8")}function B(w,v){return k.write(w,v,"pkcs8")}function M(w,v){return t.strictEqual(w.peek(),n.Ber.Integer,v+" is not an Integer"),m.mpNormalize(w.readString(n.Ber.Integer,!0))}function j(w,v,o){o.peek()===n.Ber.Integer&&(t.strictEqual(v,"private","unexpected Integer at start of public key"),o.readString(n.Ber.Integer,!0)),o.readSequence();var x=o.offset+o.length,E=o.readOID();switch(E){case"1.2.840.113549.1.1.1":return o._offset=x,v==="public"?I(o):P(o);case"1.2.840.10040.4.1":return v==="public"?$(o):z(o);case"1.2.840.10045.2.1":return v==="public"?U(o):F(o);case"1.3.101.112":return v==="public"?J(o):se(o);case"1.3.101.110":return v==="public"?te(o):de(o);default:throw new Error("Unknown key type OID "+E)}}function I(w){w.readSequence(n.Ber.BitString),w.readByte(),w.readSequence();var v=M(w,"modulus"),o=M(w,"exponent"),x={type:"rsa",source:w.originalInput,parts:[{name:"e",data:o},{name:"n",data:v}]};return new h(x)}function P(w){w.readSequence(n.Ber.OctetString),w.readSequence();var v=M(w,"version");t.equal(v[0],0,"unknown RSA private key version");var o=M(w,"modulus"),x=M(w,"public exponent"),E=M(w,"private exponent"),R=M(w,"prime1"),H=M(w,"prime2"),Y=M(w,"exponent1"),Z=M(w,"exponent2"),L=M(w,"iqmp"),D={type:"rsa",parts:[{name:"n",data:o},{name:"e",data:x},{name:"d",data:E},{name:"iqmp",data:L},{name:"p",data:R},{name:"q",data:H},{name:"dmodp",data:Y},{name:"dmodq",data:Z}]};return new S(D)}function $(w){w.readSequence();var v=M(w,"p"),o=M(w,"q"),x=M(w,"g");w.readSequence(n.Ber.BitString),w.readByte();var E=M(w,"y"),R={type:"dsa",parts:[{name:"p",data:v},{name:"q",data:o},{name:"g",data:x},{name:"y",data:E}]};return new h(R)}function z(w){w.readSequence();var v=M(w,"p"),o=M(w,"q"),x=M(w,"g");w.readSequence(n.Ber.OctetString);var E=M(w,"x"),R=m.calculateDSAPublic(x,v,E),H={type:"dsa",parts:[{name:"p",data:v},{name:"q",data:o},{name:"g",data:x},{name:"y",data:R},{name:"x",data:E}]};return new S(H)}function N(w){var v,o,x,E,R;if(w.peek()===n.Ber.OID){var H=w.readOID();for(o=Object.keys(d.curves),x=0;x<o.length;++x)if(E=o[x],R=d.curves[E],R.pkcs8oid===H){v=E;break}}else{w.readSequence();var Y=w.readString(n.Ber.Integer,!0);t.strictEqual(Y[0],1,"ECDSA key not version 1");var Z={};w.readSequence();var L=w.readOID();t.strictEqual(L,"1.2.840.10045.1.1","ECDSA key is not from a prime-field");var D=Z.p=m.mpNormalize(w.readString(n.Ber.Integer,!0));Z.size=D.length*8-m.countZeros(D),w.readSequence(),Z.a=m.mpNormalize(w.readString(n.Ber.OctetString,!0)),Z.b=m.mpNormalize(w.readString(n.Ber.OctetString,!0)),w.peek()===n.Ber.BitString&&(Z.s=w.readString(n.Ber.BitString,!0)),Z.G=w.readString(n.Ber.OctetString,!0),t.strictEqual(Z.G[0],4,"uncompressed G is required"),Z.n=m.mpNormalize(w.readString(n.Ber.Integer,!0)),Z.h=m.mpNormalize(w.readString(n.Ber.Integer,!0)),t.strictEqual(Z.h[0],1,"a cofactor=1 curve is required"),o=Object.keys(d.curves);var ee=Object.keys(Z);for(x=0;x<o.length;++x){E=o[x],R=d.curves[E];for(var oe=!0,fe=0;fe<ee.length;++fe){var ue=ee[fe];if(R[ue]!==void 0){if(typeof R[ue]=="object"&&R[ue].equals!==void 0){if(!R[ue].equals(Z[ue])){oe=!1;break}}else if(l.isBuffer(R[ue])){if(R[ue].toString("binary")!==Z[ue].toString("binary")){oe=!1;break}}else if(R[ue]!==Z[ue]){oe=!1;break}}}if(oe){v=E;break}}}return v}function F(w){var v=N(w);t.string(v,"a known elliptic curve"),w.readSequence(n.Ber.OctetString),w.readSequence();var o=M(w,"version");t.equal(o[0],1,"unknown version of ECDSA key");var x=w.readString(n.Ber.OctetString,!0),E;if(w.peek()==160&&(w.readSequence(160),w._offset+=w.length),w.peek()==161&&(w.readSequence(161),E=w.readString(n.Ber.BitString,!0),E=m.ecNormalize(E)),E===void 0){var R=m.publicFromPrivateECDSA(v,x);E=R.part.Q.data}var H={type:"ecdsa",parts:[{name:"curve",data:l.from(v)},{name:"Q",data:E},{name:"d",data:x}]};return new S(H)}function U(w){var v=N(w);t.string(v,"a known elliptic curve");var o=w.readString(n.Ber.BitString,!0);o=m.ecNormalize(o);var x={type:"ecdsa",parts:[{name:"curve",data:l.from(v)},{name:"Q",data:o}]};return new h(x)}function J(w){w.peek()===0&&w.readByte();var v=m.readBitString(w),o={type:"ed25519",parts:[{name:"A",data:m.zeroPadToLength(v,32)}]};return new h(o)}function te(w){var v=m.readBitString(w),o={type:"curve25519",parts:[{name:"A",data:m.zeroPadToLength(v,32)}]};return new h(o)}function se(w){w.peek()===0&&w.readByte(),w.readSequence(n.Ber.OctetString);var v=w.readString(n.Ber.OctetString,!0);v=m.zeroPadToLength(v,32);for(var o,x;(x=w.peek())!==null;)x===(n.Ber.Context|1)?o=m.readBitString(w,x):(w.readSequence(x),w._offset+=w.length);o===void 0&&(o=m.calculateED25519Public(v));var E={type:"ed25519",parts:[{name:"A",data:m.zeroPadToLength(o,32)},{name:"k",data:m.zeroPadToLength(v,32)}]};return new S(E)}function de(w){w.peek()===0&&w.readByte(),w.readSequence(n.Ber.OctetString);var v=w.readString(n.Ber.OctetString,!0);v=m.zeroPadToLength(v,32);var o=m.calculateX25519Public(v),x={type:"curve25519",parts:[{name:"A",data:m.zeroPadToLength(o,32)},{name:"k",data:m.zeroPadToLength(v,32)}]};return new S(x)}function Q(w){var v=new n.BerWriter;return ve(v,w),v.buffer}function ve(w,v){if(w.startSequence(),S.isPrivateKey(v)){var o=0;v.type==="ed25519"&&(o=1);var x=l.from([o]);w.writeBuffer(x,n.Ber.Integer)}switch(w.startSequence(),v.type){case"rsa":w.writeOID("1.2.840.113549.1.1.1"),S.isPrivateKey(v)?he(v,w):ke(v,w);break;case"dsa":w.writeOID("1.2.840.10040.4.1"),S.isPrivateKey(v)?T(v,w):u(v,w);break;case"ecdsa":w.writeOID("1.2.840.10045.2.1"),S.isPrivateKey(v)?e(v,w):b(v,w);break;case"ed25519":w.writeOID("1.3.101.112"),S.isPrivateKey(v)?y(v,w):c(v,w);break;default:throw new Error("Unsupported key type: "+v.type)}w.endSequence()}function he(w,v){v.writeNull(),v.endSequence(),v.startSequence(n.Ber.OctetString),v.startSequence();var o=l.from([0]);v.writeBuffer(o,n.Ber.Integer),v.writeBuffer(w.part.n.data,n.Ber.Integer),v.writeBuffer(w.part.e.data,n.Ber.Integer),v.writeBuffer(w.part.d.data,n.Ber.Integer),v.writeBuffer(w.part.p.data,n.Ber.Integer),v.writeBuffer(w.part.q.data,n.Ber.Integer),(!w.part.dmodp||!w.part.dmodq)&&m.addRSAMissing(w),v.writeBuffer(w.part.dmodp.data,n.Ber.Integer),v.writeBuffer(w.part.dmodq.data,n.Ber.Integer),v.writeBuffer(w.part.iqmp.data,n.Ber.Integer),v.endSequence(),v.endSequence()}function ke(w,v){v.writeNull(),v.endSequence(),v.startSequence(n.Ber.BitString),v.writeByte(0),v.startSequence(),v.writeBuffer(w.part.n.data,n.Ber.Integer),v.writeBuffer(w.part.e.data,n.Ber.Integer),v.endSequence(),v.endSequence()}function T(w,v){v.startSequence(),v.writeBuffer(w.part.p.data,n.Ber.Integer),v.writeBuffer(w.part.q.data,n.Ber.Integer),v.writeBuffer(w.part.g.data,n.Ber.Integer),v.endSequence(),v.endSequence(),v.startSequence(n.Ber.OctetString),v.writeBuffer(w.part.x.data,n.Ber.Integer),v.endSequence()}function u(w,v){v.startSequence(),v.writeBuffer(w.part.p.data,n.Ber.Integer),v.writeBuffer(w.part.q.data,n.Ber.Integer),v.writeBuffer(w.part.g.data,n.Ber.Integer),v.endSequence(),v.endSequence(),v.startSequence(n.Ber.BitString),v.writeByte(0),v.writeBuffer(w.part.y.data,n.Ber.Integer),v.endSequence()}function p(w,v){var o=d.curves[w.curve];if(o.pkcs8oid)v.writeOID(o.pkcs8oid);else{v.startSequence();var x=l.from([1]);v.writeBuffer(x,n.Ber.Integer),v.startSequence(),v.writeOID("1.2.840.10045.1.1"),v.writeBuffer(o.p,n.Ber.Integer),v.endSequence(),v.startSequence();var E=o.p;E[0]===0&&(E=E.slice(1)),v.writeBuffer(E,n.Ber.OctetString),v.writeBuffer(o.b,n.Ber.OctetString),v.writeBuffer(o.s,n.Ber.BitString),v.endSequence(),v.writeBuffer(o.G,n.Ber.OctetString),v.writeBuffer(o.n,n.Ber.Integer);var R=o.h;R||(R=l.from([1])),v.writeBuffer(R,n.Ber.Integer),v.endSequence()}}function b(w,v){p(w,v),v.endSequence();var o=m.ecNormalize(w.part.Q.data,!0);v.writeBuffer(o,n.Ber.BitString)}function e(w,v){p(w,v),v.endSequence(),v.startSequence(n.Ber.OctetString),v.startSequence();var o=l.from([1]);v.writeBuffer(o,n.Ber.Integer),v.writeBuffer(w.part.d.data,n.Ber.OctetString),v.startSequence(161);var x=m.ecNormalize(w.part.Q.data,!0);v.writeBuffer(x,n.Ber.BitString),v.endSequence(),v.endSequence(),v.endSequence()}function c(w,v){v.endSequence(),m.writeBitString(v,w.part.A.data)}function y(w,v){v.endSequence(),v.startSequence(n.Ber.OctetString);for(var o=m.mpNormalize(w.part.k.data);o.length>32&&o[0]===0;)o=o.slice(1);v.writeBuffer(o,n.Ber.OctetString),v.endSequence(),m.writeBitString(v,w.part.A.data,n.Ber.Context|1)}return pkcs8}var pkcs1,hasRequiredPkcs1;function requirePkcs1(){if(hasRequiredPkcs1)return pkcs1;hasRequiredPkcs1=1,pkcs1={read:M,readPkcs1:P,write:j,writePkcs1:se};var t=requireAssert(),n=requireLib$4(),l=requireSafer().Buffer,d=requireAlgs(),m=requireUtils$2(),h=requireKey(),S=requirePrivateKey(),k=requirePem(),A=requirePkcs8(),B=A.readECDSACurve;function M(b,e){return k.read(b,e,"pkcs1")}function j(b,e){return k.write(b,e,"pkcs1")}function I(b,e){return t.strictEqual(b.peek(),n.Ber.Integer,e+" is not an Integer"),m.mpNormalize(b.readString(n.Ber.Integer,!0))}function P(b,e,c){switch(b){case"RSA":if(e==="public")return $(c);if(e==="private")return z(c);throw new Error("Unknown key type: "+e);case"DSA":if(e==="public")return U(c);if(e==="private")return N(c);throw new Error("Unknown key type: "+e);case"EC":case"ECDSA":if(e==="private")return te(c);if(e==="public")return J(c);throw new Error("Unknown key type: "+e);case"EDDSA":case"EdDSA":if(e==="private")return F(c);throw new Error(e+" keys not supported with EdDSA");default:throw new Error("Unknown key algo: "+b)}}function $(b){var e=I(b,"modulus"),c=I(b,"exponent"),y={type:"rsa",parts:[{name:"e",data:c},{name:"n",data:e}]};return new h(y)}function z(b){var e=I(b,"version");t.strictEqual(e[0],0);var c=I(b,"modulus"),y=I(b,"public exponent"),w=I(b,"private exponent"),v=I(b,"prime1"),o=I(b,"prime2"),x=I(b,"exponent1"),E=I(b,"exponent2"),R=I(b,"iqmp"),H={type:"rsa",parts:[{name:"n",data:c},{name:"e",data:y},{name:"d",data:w},{name:"iqmp",data:R},{name:"p",data:v},{name:"q",data:o},{name:"dmodp",data:x},{name:"dmodq",data:E}]};return new S(H)}function N(b){var e=I(b,"version");t.strictEqual(e.readUInt8(0),0);var c=I(b,"p"),y=I(b,"q"),w=I(b,"g"),v=I(b,"y"),o=I(b,"x"),x={type:"dsa",parts:[{name:"p",data:c},{name:"q",data:y},{name:"g",data:w},{name:"y",data:v},{name:"x",data:o}]};return new S(x)}function F(b){var e=I(b,"version");t.strictEqual(e.readUInt8(0),1);var c=b.readString(n.Ber.OctetString,!0);b.readSequence(160);var y=b.readOID();t.strictEqual(y,"1.3.101.112","the ed25519 curve identifier"),b.readSequence(161);var w=m.readBitString(b),v={type:"ed25519",parts:[{name:"A",data:m.zeroPadToLength(w,32)},{name:"k",data:c}]};return new S(v)}function U(b){var e=I(b,"y"),c=I(b,"p"),y=I(b,"q"),w=I(b,"g"),v={type:"dsa",parts:[{name:"y",data:e},{name:"p",data:c},{name:"q",data:y},{name:"g",data:w}]};return new h(v)}function J(b){b.readSequence();var e=b.readOID();t.strictEqual(e,"1.2.840.10045.2.1","must be ecPublicKey");for(var c=b.readOID(),y,w=Object.keys(d.curves),v=0;v<w.length;++v){var o=w[v],x=d.curves[o];if(x.pkcs8oid===c){y=o;break}}t.string(y,"a known ECDSA named curve");var E=b.readString(n.Ber.BitString,!0);E=m.ecNormalize(E);var R={type:"ecdsa",parts:[{name:"curve",data:l.from(y)},{name:"Q",data:E}]};return new h(R)}function te(b){var e=I(b,"version");t.strictEqual(e.readUInt8(0),1);var c=b.readString(n.Ber.OctetString,!0);b.readSequence(160);var y=B(b);t.string(y,"a known elliptic curve"),b.readSequence(161);var w=b.readString(n.Ber.BitString,!0);w=m.ecNormalize(w);var v={type:"ecdsa",parts:[{name:"curve",data:l.from(y)},{name:"Q",data:w},{name:"d",data:c}]};return new S(v)}function se(b,e){switch(b.startSequence(),e.type){case"rsa":S.isPrivateKey(e)?Q(b,e):de(b,e);break;case"dsa":S.isPrivateKey(e)?ve(b,e):he(b,e);break;case"ecdsa":S.isPrivateKey(e)?T(b,e):ke(b,e);break;case"ed25519":S.isPrivateKey(e)?u(b,e):p();break;default:throw new Error("Unknown key algo: "+e.type)}b.endSequence()}function de(b,e){b.writeBuffer(e.part.n.data,n.Ber.Integer),b.writeBuffer(e.part.e.data,n.Ber.Integer)}function Q(b,e){var c=l.from([0]);b.writeBuffer(c,n.Ber.Integer),b.writeBuffer(e.part.n.data,n.Ber.Integer),b.writeBuffer(e.part.e.data,n.Ber.Integer),b.writeBuffer(e.part.d.data,n.Ber.Integer),b.writeBuffer(e.part.p.data,n.Ber.Integer),b.writeBuffer(e.part.q.data,n.Ber.Integer),(!e.part.dmodp||!e.part.dmodq)&&m.addRSAMissing(e),b.writeBuffer(e.part.dmodp.data,n.Ber.Integer),b.writeBuffer(e.part.dmodq.data,n.Ber.Integer),b.writeBuffer(e.part.iqmp.data,n.Ber.Integer)}function ve(b,e){var c=l.from([0]);b.writeBuffer(c,n.Ber.Integer),b.writeBuffer(e.part.p.data,n.Ber.Integer),b.writeBuffer(e.part.q.data,n.Ber.Integer),b.writeBuffer(e.part.g.data,n.Ber.Integer),b.writeBuffer(e.part.y.data,n.Ber.Integer),b.writeBuffer(e.part.x.data,n.Ber.Integer)}function he(b,e){b.writeBuffer(e.part.y.data,n.Ber.Integer),b.writeBuffer(e.part.p.data,n.Ber.Integer),b.writeBuffer(e.part.q.data,n.Ber.Integer),b.writeBuffer(e.part.g.data,n.Ber.Integer)}function ke(b,e){b.startSequence(),b.writeOID("1.2.840.10045.2.1");var c=e.part.curve.data.toString(),y=d.curves[c].pkcs8oid;t.string(y,"a known ECDSA named curve"),b.writeOID(y),b.endSequence();var w=m.ecNormalize(e.part.Q.data,!0);b.writeBuffer(w,n.Ber.BitString)}function T(b,e){var c=l.from([1]);b.writeBuffer(c,n.Ber.Integer),b.writeBuffer(e.part.d.data,n.Ber.OctetString),b.startSequence(160);var y=e.part.curve.data.toString(),w=d.curves[y].pkcs8oid;t.string(w,"a known ECDSA named curve"),b.writeOID(w),b.endSequence(),b.startSequence(161);var v=m.ecNormalize(e.part.Q.data,!0);b.writeBuffer(v,n.Ber.BitString),b.endSequence()}function u(b,e){var c=l.from([1]);b.writeBuffer(c,n.Ber.Integer),b.writeBuffer(e.part.k.data,n.Ber.OctetString),b.startSequence(160),b.writeOID("1.3.101.112"),b.endSequence(),b.startSequence(161),m.writeBitString(b,e.part.A.data),b.endSequence()}function p(b,e){throw new Error("Public keys are not supported for EdDSA PKCS#1")}return pkcs1}var rfc4253,hasRequiredRfc4253;function requireRfc4253(){if(hasRequiredRfc4253)return rfc4253;hasRequiredRfc4253=1,rfc4253={read:B.bind(void 0,!1,void 0),readType:B.bind(void 0,!1),write:M,readPartial:B.bind(void 0,!0),readInternal:B,keyTypeToAlg:A,algToKeyType:k};var t=requireAssert(),n=requireSafer().Buffer,l=requireAlgs(),d=requireUtils$2(),m=requireKey(),h=requirePrivateKey(),S=requireSshBuffer();function k(j){if(t.string(j),j==="ssh-dss")return"dsa";if(j==="ssh-rsa")return"rsa";if(j==="ssh-ed25519")return"ed25519";if(j==="ssh-curve25519")return"curve25519";if(j.match(/^ecdsa-sha2-/))return"ecdsa";throw new Error("Unknown algorithm "+j)}function A(j){if(t.object(j),j.type==="dsa")return"ssh-dss";if(j.type==="rsa")return"ssh-rsa";if(j.type==="ed25519")return"ssh-ed25519";if(j.type==="curve25519")return"ssh-curve25519";if(j.type==="ecdsa")return"ecdsa-sha2-"+j.part.curve.data.toString();throw new Error("Unknown key type "+j.type)}function B(j,I,P,$){typeof P=="string"&&(P=n.from(P)),t.buffer(P,"buf");var z={},N=z.parts=[],F=new S({buffer:P}),U=F.readString();t.ok(!F.atEnd(),"key must have at least one part"),z.type=k(U);var J=l.info[z.type].parts.length;for(I&&I==="private"&&(J=l.privInfo[z.type].parts.length);!F.atEnd()&&N.length<J;)N.push(F.readPart());for(;!j&&!F.atEnd();)N.push(F.readPart());t.ok(N.length>=1,"key must have at least one part"),t.ok(j||F.atEnd(),"leftover bytes at end of key");var te=m,se=l.info[z.type];if((I==="private"||se.parts.length!==N.length)&&(se=l.privInfo[z.type],te=h),t.strictEqual(se.parts.length,N.length),z.type==="ecdsa"){var de=/^ecdsa-sha2-(.+)$/.exec(U);t.ok(de!==null),t.strictEqual(de[1],N[0].data.toString())}for(var Q=!0,ve=0;ve<se.parts.length;++ve){var he=N[ve];if(he.name=se.parts[ve],z.type==="ed25519"&&he.name==="k"&&(he.data=he.data.slice(0,32)),he.name!=="curve"&&se.normalize!==!1){var ke;z.type==="ed25519"?ke=d.zeroPadToLength(he.data,32):ke=d.mpNormalize(he.data),ke.toString("binary")!==he.data.toString("binary")&&(he.data=ke,Q=!1)}}return Q&&(z._rfc4253Cache=F.toBuffer()),j&&typeof j=="object"&&(j.remainder=F.remainder(),j.consumed=F._offset),new te(z)}function M(j,I){t.object(j);var P=A(j),$,z=l.info[j.type];h.isPrivateKey(j)&&(z=l.privInfo[j.type]);var N=z.parts,F=new S({});for(F.writeString(P),$=0;$<N.length;++$){var U=j.part[N[$]].data;z.normalize!==!1&&(j.type==="ed25519"?U=d.zeroPadToLength(U,32):U=d.mpNormalize(U)),j.type==="ed25519"&&N[$]==="k"&&(U=n.concat([U,j.part.A.data])),F.writeBuffer(U)}return F.toBuffer()}return rfc4253}var bcryptPbkdf,hasRequiredBcryptPbkdf;function requireBcryptPbkdf(){if(hasRequiredBcryptPbkdf)return bcryptPbkdf;hasRequiredBcryptPbkdf=1;var t=requireNaclFast().lowlevel.crypto_hash,n=0,l=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])],this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function d(B,M,j){return(B[0][M[j+3]]+B[1][M[j+2]]^B[2][M[j+1]])+B[3][M[j]]}l.prototype.encipher=function(B,M){M===void 0&&(M=new Uint8Array(B.buffer),B.byteOffset!==0&&(M=M.subarray(B.byteOffset))),B[0]^=this.P[0];for(var j=1;j<16;j+=2)B[1]^=d(this.S,M,0)^this.P[j],B[0]^=d(this.S,M,4)^this.P[j+1];var I=B[0];B[0]=B[1]^this.P[17],B[1]=I},l.prototype.decipher=function(B){var M=new Uint8Array(B.buffer);B.byteOffset!==0&&(M=M.subarray(B.byteOffset)),B[0]^=this.P[17];for(var j=16;j>0;j-=2)B[1]^=d(this.S,M,0)^this.P[j],B[0]^=d(this.S,M,4)^this.P[j-1];var I=B[0];B[0]=B[1]^this.P[0],B[1]=I};function m(B,M){var j,I=0;for(j=0;j<4;j++,n++)n>=M&&(n=0),I=I<<8|B[n];return I}l.prototype.expand0state=function(B,M){var j=new Uint32Array(2),I,P,$=new Uint8Array(j.buffer);for(I=0,n=0;I<18;I++)this.P[I]^=m(B,M);for(n=0,I=0;I<18;I+=2)this.encipher(j,$),this.P[I]=j[0],this.P[I+1]=j[1];for(I=0;I<4;I++)for(P=0;P<256;P+=2)this.encipher(j,$),this.S[I][P]=j[0],this.S[I][P+1]=j[1]},l.prototype.expandstate=function(B,M,j,I){var P=new Uint32Array(2),$,z;for($=0,n=0;$<18;$++)this.P[$]^=m(j,I);for($=0,n=0;$<18;$+=2)P[0]^=m(B,M),P[1]^=m(B,M),this.encipher(P),this.P[$]=P[0],this.P[$+1]=P[1];for($=0;$<4;$++)for(z=0;z<256;z+=2)P[0]^=m(B,M),P[1]^=m(B,M),this.encipher(P),this.S[$][z]=P[0],this.S[$][z+1]=P[1];n=0},l.prototype.enc=function(B,M){for(var j=0;j<M;j++)this.encipher(B.subarray(j*2))},l.prototype.dec=function(B,M){for(var j=0;j<M;j++)this.decipher(B.subarray(j*2))};var h=8,S=32;function k(B,M,j){var I=new l,P=new Uint32Array(h),$,z=new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,105,116,101]);for(I.expandstate(M,64,B,64),$=0;$<64;$++)I.expand0state(M,64),I.expand0state(B,64);for($=0;$<h;$++)P[$]=m(z,z.byteLength);for($=0;$<64;$++)I.enc(P,P.byteLength/8);for($=0;$<h;$++)j[4*$+3]=P[$]>>>24,j[4*$+2]=P[$]>>>16,j[4*$+1]=P[$]>>>8,j[4*$+0]=P[$]}function A(B,M,j,I,P,$,z){var N=new Uint8Array(64),F=new Uint8Array(64),U=new Uint8Array(S),J=new Uint8Array(S),te=new Uint8Array(I+4),se,de,Q,ve,he,ke,T=$;if(z<1||M===0||I===0||$===0||$>U.byteLength*U.byteLength||I>1<<20)return-1;for(ve=Math.floor(($+U.byteLength-1)/U.byteLength),Q=Math.floor(($+ve-1)/ve),se=0;se<I;se++)te[se]=j[se];for(t(N,B,M),ke=1;$>0;ke++){for(te[I+0]=ke>>>24,te[I+1]=ke>>>16,te[I+2]=ke>>>8,te[I+3]=ke,t(F,te,I+4),k(N,F,J),se=U.byteLength;se--;)U[se]=J[se];for(se=1;se<z;se++)for(t(F,J,J.byteLength),k(N,F,J),de=0;de<U.byteLength;de++)U[de]^=J[de];for(Q=Math.min(Q,$),se=0;se<Q&&(he=se*ve+(ke-1),!(he>=T));se++)P[he]=U[se];$-=se}return 0}return bcryptPbkdf={BLOCKS:h,HASHSIZE:S,hash:k,pbkdf:A},bcryptPbkdf}var sshPrivate,hasRequiredSshPrivate;function requireSshPrivate(){if(hasRequiredSshPrivate)return sshPrivate;hasRequiredSshPrivate=1,sshPrivate={read:M,readSSHPrivate:I,write:P};var t=requireAssert();requireLib$4();var n=requireSafer().Buffer;requireAlgs();var l=requireUtils$2(),d=requireCryptoBrowserify();requireKey();var m=requirePrivateKey(),h=requirePem(),S=requireRfc4253(),k=requireSshBuffer(),A=requireErrors$1(),B;function M($,z){return h.read($,z)}var j="openssh-key-v1";function I($,z,N){z=new k({buffer:z});var F=z.readCString();t.strictEqual(F,j,"bad magic string");var U=z.readString(),J=z.readString(),te=z.readBuffer(),se=z.readInt();if(se!==1)throw new Error("OpenSSH-format key file contains multiple keys: this is unsupported.");var de=z.readBuffer();if($==="public")return t.ok(z.atEnd(),"excess bytes left after key"),S.read(de);var Q=z.readBuffer();t.ok(z.atEnd(),"excess bytes left after key");var ve=new k({buffer:te});switch(J){case"none":if(U!=="none")throw new Error('OpenSSH-format key uses KDF "none" but specifies a cipher other than "none"');break;case"bcrypt":var he=ve.readBuffer(),ke=ve.readInt(),T=l.opensshCipherInfo(U);if(B===void 0&&(B=requireBcryptPbkdf()),typeof N.passphrase=="string"&&(N.passphrase=n.from(N.passphrase,"utf-8")),!n.isBuffer(N.passphrase))throw new A.KeyEncryptedError(N.filename,"OpenSSH");var u=new Uint8Array(N.passphrase),p=new Uint8Array(he),b=new Uint8Array(T.keySize+T.blockSize),e=B.pbkdf(u,u.length,p,p.length,b,b.length,ke);if(e!==0)throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");b=n.from(b);var c=b.slice(0,T.keySize),y=b.slice(T.keySize,T.keySize+T.blockSize),w=d.createDecipheriv(T.opensslName,c,y);w.setAutoPadding(!1);var v,o=[];for(w.once("error",function(Z){throw Z.toString().indexOf("bad decrypt")!==-1?new Error("Incorrect passphrase supplied, could not decrypt key"):Z}),w.write(Q),w.end();(v=w.read())!==null;)o.push(v);Q=n.concat(o);break;default:throw new Error('OpenSSH-format key uses unknown KDF "'+J+'"')}z=new k({buffer:Q});var x=z.readInt(),E=z.readInt();if(x!==E)throw new Error("Incorrect passphrase supplied, could not decrypt key");var R={},H=S.readInternal(R,"private",z.remainder());z.skip(R.consumed);var Y=z.readString();return H.comment=Y,H}function P($,z){var N;m.isPrivateKey($)?N=$.toPublic():N=$;var F="none",U="none",J=n.alloc(0),te={blockSize:8},se;z!==void 0&&(se=z.passphrase,typeof se=="string"&&(se=n.from(se,"utf-8")),se!==void 0&&(t.buffer(se,"options.passphrase"),t.optionalString(z.cipher,"options.cipher"),F=z.cipher,F===void 0&&(F="aes128-ctr"),te=l.opensshCipherInfo(F),U="bcrypt"));var de;if(m.isPrivateKey($)){de=new k({});var Q=d.randomBytes(4).readUInt32BE(0);de.writeInt(Q),de.writeInt(Q),de.write($.toBuffer("rfc4253")),de.writeString($.comment||"");for(var ve=1;de._offset%te.blockSize!==0;)de.writeChar(ve++);de=de.toBuffer()}switch(U){case"none":break;case"bcrypt":var he=d.randomBytes(16),ke=16,T=new k({});T.writeBuffer(he),T.writeInt(ke),J=T.toBuffer(),B===void 0&&(B=requireBcryptPbkdf());var u=new Uint8Array(se),p=new Uint8Array(he),b=new Uint8Array(te.keySize+te.blockSize),e=B.pbkdf(u,u.length,p,p.length,b,b.length,ke);if(e!==0)throw new Error("bcrypt_pbkdf function returned failure, parameters invalid");b=n.from(b);var c=b.slice(0,te.keySize),y=b.slice(te.keySize,te.keySize+te.blockSize),w=d.createCipheriv(te.opensslName,c,y);w.setAutoPadding(!1);var v,o=[];for(w.once("error",function(D){throw D}),w.write(de),w.end();(v=w.read())!==null;)o.push(v);de=n.concat(o);break;default:throw new Error("Unsupported kdf "+U)}var x=new k({});x.writeCString(j),x.writeString(F),x.writeString(U),x.writeBuffer(J),x.writeInt(1),x.writeBuffer(N.toBuffer("rfc4253")),de&&x.writeBuffer(de),x=x.toBuffer();var E;m.isPrivateKey($)?E="OPENSSH PRIVATE KEY":E="OPENSSH PUBLIC KEY";var R=x.toString("base64"),H=R.length+R.length/70+18+16+E.length*2+10;x=n.alloc(H);var Y=0;Y+=x.write("-----BEGIN "+E+`-----
`,Y);for(var Z=0;Z<R.length;){var L=Z+70;L>R.length&&(L=R.length),Y+=x.write(R.slice(Z,L),Y),x[Y++]=10,Z=L}return Y+=x.write("-----END "+E+`-----
`,Y),x.slice(0,Y)}return sshPrivate}var pem,hasRequiredPem;function requirePem(){if(hasRequiredPem)return pem;hasRequiredPem=1,pem={read:N,write:F};var t=requireAssert(),n=requireLib$4(),l=requireCryptoBrowserify(),d=requireSafer().Buffer;requireAlgs();var m=requireUtils$2(),h=requireKey(),S=requirePrivateKey(),k=requirePkcs1(),A=requirePkcs8(),B=requireSshPrivate(),M=requireRfc4253(),j=requireErrors$1(),I="1.2.840.113549.1.5.13",P="1.2.840.113549.1.5.12",$={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"};Object.keys($).forEach(function(U){});var z={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"};Object.keys(z).forEach(function(U){});function N(U,J,te){var se=U;typeof U!="string"&&(t.buffer(U,"buf"),U=U.toString("ascii"));for(var de=U.trim().split(/[\r\n]+/g),Q,ve=-1;!Q&&ve<de.length;)Q=de[++ve].match(/[-]+[ ]*BEGIN ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);t.ok(Q,"invalid PEM header");for(var he,ke=de.length;!he&&ke>0;)he=de[--ke].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/);t.ok(he,"invalid PEM footer"),t.equal(Q[2],he[2]);var T=Q[2].toLowerCase(),u;Q[1]&&(t.equal(Q[1],he[1],"PEM header and footer mismatch"),u=Q[1].trim()),de=de.slice(ve,ke+1);for(var p={};de=de.slice(1),Q=de[0].match(/^([A-Za-z0-9-]+): (.+)$/),!!Q;)p[Q[1].toLowerCase()]=Q[2];de=de.slice(0,-1).join(""),U=d.from(de,"base64");var b,e,c;if(p["proc-type"]){var y=p["proc-type"].split(",");if(y[0]==="4"&&y[1]==="ENCRYPTED")if(typeof J.passphrase=="string"&&(J.passphrase=d.from(J.passphrase,"utf-8")),d.isBuffer(J.passphrase))y=p["dek-info"].split(","),t.ok(y.length===2),b=y[0].toLowerCase(),c=d.from(y[1],"hex"),e=m.opensslKeyDeriv(b,c,J.passphrase,1).key;else throw new j.KeyEncryptedError(J.filename,"PEM")}if(u&&u.toLowerCase()==="encrypted"){var w=new n.BerReader(U),v;w.readSequence(),w.readSequence(),v=w.offset+w.length;var o=w.readOID();if(o!==I)throw new Error("Unsupported PEM/PKCS8 encryption scheme: "+o);w.readSequence(),w.readSequence();var x=w.offset+w.length,E=w.readOID();if(E!==P)throw new Error("Unsupported PBES2 KDF: "+E);w.readSequence();var R=w.readString(n.Ber.OctetString,!0),H=w.readInt(),Y="sha1";if(w.offset<x){w.readSequence();var Z=w.readOID();if(Y=z[Z],Y===void 0)throw new Error("Unsupported PBKDF2 hash: "+Z)}w._offset=x,w.readSequence();var L=w.readOID();if(b=$[L],b===void 0)throw new Error("Unsupported PBES2 cipher: "+L);if(c=w.readString(n.Ber.OctetString,!0),w._offset=v,U=w.readString(n.Ber.OctetString,!0),typeof J.passphrase=="string"&&(J.passphrase=d.from(J.passphrase,"utf-8")),!d.isBuffer(J.passphrase))throw new j.KeyEncryptedError(J.filename,"PEM");var D=m.opensshCipherInfo(b);b=D.opensslName,e=m.pbkdf2(Y,R,H,D.keySize,J.passphrase),u=void 0}if(b&&e&&c){var ee=l.createDecipheriv(b,e,c),oe,fe=[];for(ee.once("error",function(qe){throw qe.toString().indexOf("bad decrypt")!==-1?new Error("Incorrect passphrase supplied, could not decrypt key"):qe}),ee.write(U),ee.end();(oe=ee.read())!==null;)fe.push(oe);U=d.concat(fe)}if(u&&u.toLowerCase()==="openssh")return B.readSSHPrivate(T,U,J);if(u&&u.toLowerCase()==="ssh2")return M.readType(T,U,J);var ue=new n.BerReader(U);return ue.originalInput=se,ue.readSequence(),u?(te&&t.strictEqual(te,"pkcs1"),k.readPkcs1(u,T,ue)):(te&&t.strictEqual(te,"pkcs8"),A.readPkcs8(u,T,ue))}function F(U,J,te){t.object(U);var se={ecdsa:"EC",rsa:"RSA",dsa:"DSA",ed25519:"EdDSA"}[U.type],de,Q=new n.BerWriter;if(S.isPrivateKey(U))te&&te==="pkcs8"?(de="PRIVATE KEY",A.writePkcs8(Q,U)):(te&&t.strictEqual(te,"pkcs1"),de=se+" PRIVATE KEY",k.writePkcs1(Q,U));else if(h.isKey(U))te&&te==="pkcs1"?(de=se+" PUBLIC KEY",k.writePkcs1(Q,U)):(te&&t.strictEqual(te,"pkcs8"),de="PUBLIC KEY",A.writePkcs8(Q,U));else throw new Error("key is not a Key or PrivateKey");var ve=Q.buffer.toString("base64"),he=ve.length+ve.length/64+18+16+de.length*2+10,ke=d.alloc(he),T=0;T+=ke.write("-----BEGIN "+de+`-----
`,T);for(var u=0;u<ve.length;){var p=u+64;p>ve.length&&(p=ve.length),T+=ke.write(ve.slice(u,p),T),ke[T++]=10,u=p}return T+=ke.write("-----END "+de+`-----
`,T),ke.slice(0,T)}return pem}var ssh,hasRequiredSsh;function requireSsh(){if(hasRequiredSsh)return ssh;hasRequiredSsh=1,ssh={read:S,write:k};var t=requireAssert(),n=requireSafer().Buffer,l=requireRfc4253();requireUtils$2();var d=requireKey();requirePrivateKey(),requireSshPrivate();var m=/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/,h=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/;function S(A,B){typeof A!="string"&&(t.buffer(A,"buf"),A=A.toString("ascii"));var M=A.trim().replace(/[\\\r]/g,""),j=M.match(m);j||(j=M.match(h)),t.ok(j,"key must match regex");var I=l.algToKeyType(j[1]),P=n.from(j[2],"base64"),$,z={};if(j[4])try{$=l.read(P)}catch{j=M.match(h),t.ok(j,"key must match regex"),P=n.from(j[2],"base64"),$=l.readInternal(z,"public",P)}else $=l.readInternal(z,"public",P);if(t.strictEqual(I,$.type),j[4]&&j[4].length>0)$.comment=j[4];else if(z.consumed){var N=j[2]+(j[3]?j[3]:""),F=Math.ceil(z.consumed/3)*4;N=N.slice(0,F-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+N.slice(F-2);var U=z.consumed%3;for(U>0&&N.slice(F-1,F)!=="="&&F--;N.slice(F,F+1)==="=";)F++;var J=N.slice(F);J=J.replace(/[\r\n]/g," ").replace(/^\s+/,""),J.match(/^[a-zA-Z0-9]/)&&($.comment=J)}return $}function k(A,B){if(t.object(A),!d.isKey(A))throw new Error("Must be a public key");var M=[],j=l.keyTypeToAlg(A);M.push(j);var I=l.write(A);return M.push(I.toString("base64")),A.comment&&M.push(A.comment),n.from(M.join(" "))}return ssh}var dnssec,hasRequiredDnssec;function requireDnssec(){if(hasRequiredDnssec)return dnssec;hasRequiredDnssec=1,dnssec={read:k,write:N};var t=requireAssert(),n=requireSafer().Buffer,l=requireKey(),d=requirePrivateKey(),m=requireUtils$2();requireSshBuffer(),requireDhe();var h={"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14},S={};Object.keys(h).forEach(function(F){S[h[F]]=F.toUpperCase()});function k(F,U){typeof F!="string"&&(t.buffer(F,"buf"),F=F.toString("ascii"));var J=F.split(`
`);if(J[0].match(/^Private-key-format\: v1/)){var te=J[1].split(" "),se=parseInt(te[1],10),de=te[2];if(!S[se])throw new Error("Unsupported algorithm: "+de);return j(se,J.slice(2))}for(var Q=0;J[Q].match(/^\;/);)Q++;if((J[Q].match(/\. IN KEY /)||J[Q].match(/\. IN DNSKEY /))&&J[Q+1].length===0)return A(J[Q]);throw new Error("Cannot parse dnssec key")}function A(F){var U=F.split(" "),J=parseInt(U[5],10);if(!S[J])throw new Error("Unsupported algorithm: "+J);var te=U.slice(6,U.length).join(),se=n.from(te,"base64");if(S[J].match(/^RSA-/)){var de=se.readUInt8(0);if(de!=3&&de!=1)throw new Error("Cannot parse dnssec key: unsupported exponent length");var Q=se.slice(1,de+1);Q=m.mpNormalize(Q);var ve=se.slice(1+de);ve=m.mpNormalize(ve);var he={type:"rsa",parts:[]};return he.parts.push({name:"e",data:Q}),he.parts.push({name:"n",data:ve}),new l(he)}if(S[J]==="ECDSA-P384-SHA384"||S[J]==="ECDSA-P256-SHA256"){var ke="nistp384",T=384;S[J].match(/^ECDSA-P256-SHA256/)&&(ke="nistp256",T=256);var u={type:"ecdsa",curve:ke,size:T,parts:[{name:"curve",data:n.from(ke)},{name:"Q",data:m.ecNormalize(se)}]};return new l(u)}throw new Error("Unsupported algorithm: "+S[J])}function B(F){return n.from(F.split(" ")[1],"base64")}function M(F){var U={};F.forEach(function(te){te.split(" ")[0]==="Modulus:"?U.n=B(te):te.split(" ")[0]==="PublicExponent:"?U.e=B(te):te.split(" ")[0]==="PrivateExponent:"?U.d=B(te):te.split(" ")[0]==="Prime1:"?U.p=B(te):te.split(" ")[0]==="Prime2:"?U.q=B(te):te.split(" ")[0]==="Exponent1:"?U.dmodp=B(te):te.split(" ")[0]==="Exponent2:"?U.dmodq=B(te):te.split(" ")[0]==="Coefficient:"&&(U.iqmp=B(te))});var J={type:"rsa",parts:[{name:"e",data:m.mpNormalize(U.e)},{name:"n",data:m.mpNormalize(U.n)},{name:"d",data:m.mpNormalize(U.d)},{name:"p",data:m.mpNormalize(U.p)},{name:"q",data:m.mpNormalize(U.q)},{name:"dmodp",data:m.mpNormalize(U.dmodp)},{name:"dmodq",data:m.mpNormalize(U.dmodq)},{name:"iqmp",data:m.mpNormalize(U.iqmp)}]};return new d(J)}function j(F,U){if(S[F].match(/^RSA-/))return M(U);if(S[F]==="ECDSA-P384-SHA384"||S[F]==="ECDSA-P256-SHA256"){var J=n.from(U[0].split(" ")[1],"base64"),te="nistp384",se=384;S[F]==="ECDSA-P256-SHA256"&&(te="nistp256",se=256);var de=m.publicFromPrivateECDSA(te,J),Q=de.part.Q.data,ve={type:"ecdsa",curve:te,size:se,parts:[{name:"curve",data:n.from(te)},{name:"d",data:J},{name:"Q",data:Q}]};return new d(ve)}throw new Error("Unsupported algorithm: "+S[F])}function I(F){var U=F.getFullYear()+"",J=F.getMonth()+1,te=U+J+F.getUTCDate();return te+=""+F.getUTCHours()+F.getUTCMinutes(),te+=F.getUTCSeconds(),te}function P(F){if(!F||!F.hashAlgo||F.hashAlgo==="sha1")return"5 (RSASHA1)";if(F.hashAlgo==="sha256")return"8 (RSASHA256)";if(F.hashAlgo==="sha512")return"10 (RSASHA512)";throw new Error("Unknown or unsupported hash: "+F.hashAlgo)}function $(F,U){(!F.part.dmodp||!F.part.dmodq)&&m.addRSAMissing(F);var J="";J+=`Private-key-format: v1.3
`,J+="Algorithm: "+P(U)+`
`;var te=m.mpDenormalize(F.part.n.data);J+="Modulus: "+te.toString("base64")+`
`;var se=m.mpDenormalize(F.part.e.data);J+="PublicExponent: "+se.toString("base64")+`
`;var de=m.mpDenormalize(F.part.d.data);J+="PrivateExponent: "+de.toString("base64")+`
`;var Q=m.mpDenormalize(F.part.p.data);J+="Prime1: "+Q.toString("base64")+`
`;var ve=m.mpDenormalize(F.part.q.data);J+="Prime2: "+ve.toString("base64")+`
`;var he=m.mpDenormalize(F.part.dmodp.data);J+="Exponent1: "+he.toString("base64")+`
`;var ke=m.mpDenormalize(F.part.dmodq.data);J+="Exponent2: "+ke.toString("base64")+`
`;var T=m.mpDenormalize(F.part.iqmp.data);J+="Coefficient: "+T.toString("base64")+`
`;var u=new Date;return J+="Created: "+I(u)+`
`,J+="Publish: "+I(u)+`
`,J+="Activate: "+I(u)+`
`,n.from(J,"ascii")}function z(F,U){var J="";if(J+=`Private-key-format: v1.3
`,F.curve==="nistp256")J+=`Algorithm: 13 (ECDSAP256SHA256)
`;else if(F.curve==="nistp384")J+=`Algorithm: 14 (ECDSAP384SHA384)
`;else throw new Error("Unsupported curve");var te=F.part.d.data.toString("base64");J+="PrivateKey: "+te+`
`;var se=new Date;return J+="Created: "+I(se)+`
`,J+="Publish: "+I(se)+`
`,J+="Activate: "+I(se)+`
`,n.from(J,"ascii")}function N(F,U){if(d.isPrivateKey(F)){if(F.type==="rsa")return $(F,U);if(F.type==="ecdsa")return z(F);throw new Error("Unsupported algorithm: "+F.type)}else throw l.isKey(F)?new Error('Format "dnssec" only supports writing private keys'):new Error("key is not a Key or PrivateKey")}return dnssec}var putty,hasRequiredPutty;function requirePutty(){if(hasRequiredPutty)return putty;hasRequiredPutty=1,putty={read:A,write:j};var t=requireAssert(),n=requireSafer().Buffer,l=requireRfc4253(),d=requireKey(),m=requireSshBuffer(),h=requireCryptoBrowserify(),S=requirePrivateKey(),k=requireErrors$1();function A(P,$){for(var z=P.toString("ascii").split(/[\r\n]+/),N=!1,F,U=0,J;U<z.length;)if(F=M(z[U++]),F&&(J={"putty-user-key-file-2":2,"putty-user-key-file-3":3}[F[0].toLowerCase()],J)){N=!0;break}if(!N)throw new Error("No PuTTY format first line found");var te=F[1];F=M(z[U++]),t.equal(F[0].toLowerCase(),"encryption");var se=F[1];F=M(z[U++]),t.equal(F[0].toLowerCase(),"comment");var de=F[1];F=M(z[U++]),t.equal(F[0].toLowerCase(),"public-lines");var Q=parseInt(F[1],10);if(!isFinite(Q)||Q<0||Q>z.length)throw new Error("Invalid public-lines count");var ve=n.from(z.slice(U,U+Q).join(""),"base64"),he=l.algToKeyType(te),ke=l.read(ve);if(ke.type!==he)throw new Error("Outer key algorithm mismatch");if(U+=Q,z[U]){F=M(z[U++]),t.equal(F[0].toLowerCase(),"private-lines");var T=parseInt(F[1],10);if(!isFinite(T)||T<0||T>z.length)throw new Error("Invalid private-lines count");var u=n.from(z.slice(U,U+T).join(""),"base64");if(se!=="none"&&J===3)throw new Error("Encrypted keys arenot supported for PuTTY format version 3");if(se==="aes256-cbc"){if(!$.passphrase)throw new k.KeyEncryptedError($.filename,"PEM");var p=n.alloc(16,0),b=h.createDecipheriv("aes-256-cbc",B($.passphrase),p);b.setAutoPadding(!1),u=n.concat([b.update(u),b.final()])}if(ke=new S(ke),ke.type!==he)throw new Error("Outer key algorithm mismatch");var e=new m({buffer:u}),c;if(te==="ssh-dss")c=[{name:"x",data:e.readBuffer()}];else if(te==="ssh-rsa")c=[{name:"d",data:e.readBuffer()},{name:"p",data:e.readBuffer()},{name:"q",data:e.readBuffer()},{name:"iqmp",data:e.readBuffer()}];else if(te.match(/^ecdsa-sha2-nistp/))c=[{name:"d",data:e.readBuffer()}];else if(te==="ssh-ed25519")c=[{name:"k",data:e.readBuffer()}];else throw new Error("Unsupported PPK key type: "+te);ke=new S({type:ke.type,parts:ke.parts.concat(c)})}return ke.comment=de,ke}function B(P){var $=h.createHash("sha1").update(n.concat([n.from([0,0,0,0]),n.from(P)])).digest(),z=h.createHash("sha1").update(n.concat([n.from([0,0,0,1]),n.from(P)])).digest();return n.concat([$,z]).slice(0,32)}function M(P){var $=P.indexOf(":");if($===-1)return null;var z=P.slice(0,$);for(++$;P[$]===" ";)++$;var N=P.slice($);return[z,N]}function j(P,$){if(t.object(P),!d.isKey(P))throw new Error("Must be a public key");var z=l.keyTypeToAlg(P),N=l.write(P),F=P.comment||"",U=N.toString("base64"),J=I(U);return J.unshift("Public-Lines: "+J.length),J.unshift("Comment: "+F),J.unshift("Encryption: none"),J.unshift("PuTTY-User-Key-File-2: "+z),n.from(J.join(`
`)+`
`)}function I(P,$){for(var z=[],N=0;N<P.length;)z.push(P.slice(N,N+64)),N+=64;return z}return putty}var auto,hasRequiredAuto;function requireAuto(){if(hasRequiredAuto)return auto;hasRequiredAuto=1,auto={read:A,write:P};var t=requireAssert(),n=requireSafer().Buffer;requireUtils$2(),requireKey(),requirePrivateKey();var l=requirePem(),d=requireSsh(),m=requireRfc4253(),h=requireDnssec(),S=requirePutty(),k="Private-key-format: v1";function A($,z){if(typeof $=="string"){if($.trim().match(/^[-]+[ ]*BEGIN/))return l.read($,z);if($.match(/^\s*ssh-[a-z]/)||$.match(/^\s*ecdsa-/))return d.read($,z);if($.match(/^putty-user-key-file-2:/i))return S.read($,z);if(I($))return h.read($,z);$=n.from($,"binary")}else{if(t.buffer($),j($))return l.read($,z);if(M($))return d.read($,z);if(B($))return S.read($,z);if(I($))return h.read($,z)}if($.readUInt32BE(0)<$.length)return m.read($,z);throw new Error("Failed to auto-detect format of key")}function B($){for(var z=0;z<$.length&&($[z]===32||$[z]===10||$[z]===9);)++z;return z+22<=$.length&&$.slice(z,z+22).toString("ascii").toLowerCase()==="putty-user-key-file-2:"}function M($){for(var z=0;z<$.length&&($[z]===32||$[z]===10||$[z]===9);)++z;return z+4<=$.length&&$.slice(z,z+4).toString("ascii")==="ssh-"||z+6<=$.length&&$.slice(z,z+6).toString("ascii")==="ecdsa-"}function j($){for(var z=0;z<$.length&&($[z]===32||$[z]===10);)++z;if($[z]!==45)return!1;for(;z<$.length&&$[z]===45;)++z;for(;z<$.length&&$[z]===32;)++z;return!(z+5>$.length||$.slice(z,z+5).toString("ascii")!=="BEGIN")}function I($){if($.length<=k.length)return!1;var z=$.slice(0,k.length);if(z.toString("ascii")===k)return!0;typeof $!="string"&&($=$.toString("ascii"));for(var N=$.split(`
`),F=0;N[F].match(/^\;/);)F++;return!!(N[F].toString("ascii").match(/\. IN KEY /)||N[F].toString("ascii").match(/\. IN DNSKEY /))}function P($,z){throw new Error('"auto" format cannot be used for writing')}return auto}var privateKey,hasRequiredPrivateKey;function requirePrivateKey(){if(hasRequiredPrivateKey)return privateKey;hasRequiredPrivateKey=1,privateKey=N;var t=requireAssert(),n=requireSafer().Buffer,l=requireAlgs(),d=requireCryptoBrowserify();requireFingerprint();var m=requireSignature(),h=requireErrors$1(),S=util$6,k=requireUtils$2(),A=requireDhe(),B=A.generateECDSA,M=A.generateED25519,j=requireEdCompat(),I=requireNaclFast(),P=requireKey();h.InvalidAlgorithmError;var $=h.KeyParseError;h.KeyEncryptedError;var z={};z.auto=requireAuto(),z.pem=requirePem(),z.pkcs1=requirePkcs1(),z.pkcs8=requirePkcs8(),z.rfc4253=requireRfc4253(),z["ssh-private"]=requireSshPrivate(),z.openssh=z["ssh-private"],z.ssh=z["ssh-private"],z.dnssec=requireDnssec(),z.putty=requirePutty();function N(F){t.object(F,"options"),P.call(this,F),this._pubCache=void 0}return S.inherits(N,P),N.formats=z,N.prototype.toBuffer=function(F,U){return F===void 0&&(F="pkcs1"),t.string(F,"format"),t.object(z[F],"formats[format]"),t.optionalObject(U,"options"),z[F].write(this,U)},N.prototype.hash=function(F,U){return this.toPublic().hash(F,U)},N.prototype.fingerprint=function(F,U){return this.toPublic().fingerprint(F,U)},N.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;for(var F=l.info[this.type],U=[],J=0;J<F.parts.length;++J){var te=F.parts[J];U.push(this.part[te])}return this._pubCache=new P({type:this.type,source:this,parts:U}),this.comment&&(this._pubCache.comment=this.comment),this._pubCache},N.prototype.derive=function(F){t.string(F,"type");var U,J,te;if(this.type==="ed25519"&&F==="curve25519")return U=this.part.k.data,U[0]===0&&(U=U.slice(1)),te=I.box.keyPair.fromSecretKey(new Uint8Array(U)),J=n.from(te.publicKey),new N({type:"curve25519",parts:[{name:"A",data:k.mpNormalize(J)},{name:"k",data:k.mpNormalize(U)}]});if(this.type==="curve25519"&&F==="ed25519")return U=this.part.k.data,U[0]===0&&(U=U.slice(1)),te=I.sign.keyPair.fromSeed(new Uint8Array(U)),J=n.from(te.publicKey),new N({type:"ed25519",parts:[{name:"A",data:k.mpNormalize(J)},{name:"k",data:k.mpNormalize(U)}]});throw new Error("Key derivation not supported from "+this.type+" to "+F)},N.prototype.createVerify=function(F){return this.toPublic().createVerify(F)},N.prototype.createSign=function(F){if(F===void 0&&(F=this.defaultHashAlgorithm()),t.string(F,"hash algorithm"),this.type==="ed25519"&&j!==void 0)return new j.Signer(this,F);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for signing or verification");var U,J,te;try{J=F.toUpperCase(),U=d.createSign(J)}catch(he){te=he}(U===void 0||te instanceof Error&&te.message.match(/Unknown message digest/))&&(J="RSA-",J+=F.toUpperCase(),U=d.createSign(J)),t.ok(U,"failed to create verifier");var se=U.sign.bind(U),de=this.toBuffer("pkcs1"),Q=this.type,ve=this.curve;return U.sign=function(){var he=se(de);return typeof he=="string"&&(he=n.from(he,"binary")),he=m.parse(he,Q,"asn1"),he.hashAlgorithm=F,he.curve=ve,he},U},N.parse=function(F,U,J){typeof F!="string"&&t.buffer(F,"data"),U===void 0&&(U="auto"),t.string(U,"format"),typeof J=="string"&&(J={filename:J}),t.optionalObject(J,"options"),J===void 0&&(J={}),t.optionalString(J.filename,"options.filename"),J.filename===void 0&&(J.filename="(unnamed)"),t.object(z[U],"formats[format]");try{var te=z[U].read(F,J);return t.ok(te instanceof N,"key is not a private key"),te.comment||(te.comment=J.filename),te}catch(se){throw se.name==="KeyEncryptedError"?se:new $(J.filename,U,se)}},N.isPrivateKey=function(F,U){return k.isCompatible(F,N,U)},N.generate=function(F,U){switch(U===void 0&&(U={}),t.object(U,"options"),F){case"ecdsa":return U.curve===void 0&&(U.curve="nistp256"),t.string(U.curve,"options.curve"),B(U.curve);case"ed25519":return M();default:throw new Error('Key generation not supported with key type "'+F+'"')}},N.prototype._sshpkApiVersion=[1,6],N._oldVersionDetect=function(F){return t.func(F.toPublic),t.func(F.createSign),F.derive?[1,3]:F.defaultHashAlgorithm?[1,2]:F.formats.auto?[1,1]:[1,0]},privateKey}var identity,hasRequiredIdentity;function requireIdentity(){if(hasRequiredIdentity)return identity;hasRequiredIdentity=1,identity=k;var t=requireAssert();requireAlgs(),requireCryptoBrowserify(),requireFingerprint(),requireSignature(),requireErrors$1();var n=requireUtils$2(),l=requireLib$4(),d=requireSafer().Buffer,m=/^([*]|[a-z0-9][a-z0-9\-]{0,62})(?:\.([*]|[a-z0-9][a-z0-9\-]{0,62}))*$/i,h={};h.cn="2.5.4.3",h.o="2.5.4.10",h.ou="2.5.4.11",h.l="2.5.4.7",h.s="2.5.4.8",h.c="2.5.4.6",h.sn="2.5.4.4",h.postalCode="2.5.4.17",h.serialNumber="2.5.4.5",h.street="2.5.4.9",h.x500UniqueIdentifier="2.5.4.45",h.role="2.5.4.72",h.telephoneNumber="2.5.4.20",h.description="2.5.4.13",h.dc="0.9.2342.19200300.100.1.25",h.uid="0.9.2342.19200300.100.1.1",h.mail="0.9.2342.19200300.100.1.3",h.title="2.5.4.12",h.gn="2.5.4.42",h.initials="2.5.4.43",h.pseudonym="2.5.4.65",h.emailAddress="1.2.840.113549.1.9.1";var S={};Object.keys(h).forEach(function(j){S[h[j]]=j});function k(j){var I=this;if(t.object(j,"options"),t.arrayOfObject(j.components,"options.components"),this.components=j.components,this.componentLookup={},this.components.forEach(function(P){P.name&&!P.oid&&(P.oid=h[P.name]),P.oid&&!P.name&&(P.name=S[P.oid]),I.componentLookup[P.name]===void 0&&(I.componentLookup[P.name]=[]),I.componentLookup[P.name].push(P)}),this.componentLookup.cn&&this.componentLookup.cn.length>0&&(this.cn=this.componentLookup.cn[0].value),t.optionalString(j.type,"options.type"),j.type===void 0)this.components.length===1&&this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(m)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length?(this.type="host",this.hostname=this.componentLookup.dc.map(function(P){return P.value}).join(".")):this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(m)?(this.type="host",this.hostname=this.componentLookup.cn[0].value):this.componentLookup.uid&&this.componentLookup.uid.length===1?(this.type="user",this.uid=this.componentLookup.uid[0].value):this.componentLookup.mail&&this.componentLookup.mail.length===1?(this.type="email",this.email=this.componentLookup.mail[0].value):this.componentLookup.cn&&this.componentLookup.cn.length===1?(this.type="user",this.uid=this.componentLookup.cn[0].value):this.type="unknown";else if(this.type=j.type,this.type==="host")this.hostname=j.hostname;else if(this.type==="user")this.uid=j.uid;else if(this.type==="email")this.email=j.email;else throw new Error("Unknown type "+this.type)}k.prototype.toString=function(){return this.components.map(function(j){var I=j.name.toUpperCase();I=I.replace(/=/g,"\\=");var P=j.value;return P=P.replace(/,/g,"\\,"),I+"="+P}).join(", ")},k.prototype.get=function(j,I){t.string(j,"name");var P=this.componentLookup[j];if(!(P===void 0||P.length===0)){if(!I&&P.length>1)throw new Error("Multiple values for attribute "+j);return I?P.map(function($){return $.value}):P[0].value}},k.prototype.toArray=function(j){return this.components.map(function(I){return{name:I.name,value:I.value}})};var A=/[^a-zA-Z0-9 '(),+.\/:=?-]/,B=/[^\x00-\x7f]/;k.prototype.toAsn1=function(j,I){j.startSequence(I),this.components.forEach(function(P){if(j.startSequence(l.Ber.Constructor|l.Ber.Set),j.startSequence(),j.writeOID(P.oid),P.asn1type===l.Ber.Utf8String||P.value.match(B)){var $=d.from(P.value,"utf8");j.writeBuffer($,l.Ber.Utf8String)}else if(P.asn1type===l.Ber.IA5String||P.value.match(A))j.writeString(P.value,l.Ber.IA5String);else{var z=l.Ber.PrintableString;P.asn1type!==void 0&&(z=P.asn1type),j.writeString(P.value,z)}j.endSequence(),j.endSequence()}),j.endSequence()};function M(j,I){if(j==="**"||I==="**")return!0;var P=j.split("."),$=I.split(".");if(P.length!==$.length)return!1;for(var z=0;z<P.length;++z)if(!(P[z]==="*"||$[z]==="*")&&P[z]!==$[z])return!1;return!0}return k.prototype.equals=function(j){if(!k.isIdentity(j,[1,0])||j.components.length!==this.components.length)return!1;for(var I=0;I<this.components.length;++I)if(this.components[I].oid!==j.components[I].oid||!M(this.components[I].value,j.components[I].value))return!1;return!0},k.forHost=function(j){return t.string(j,"hostname"),new k({type:"host",hostname:j,components:[{name:"cn",value:j}]})},k.forUser=function(j){return t.string(j,"uid"),new k({type:"user",uid:j,components:[{name:"uid",value:j}]})},k.forEmail=function(j){return t.string(j,"email"),new k({type:"email",email:j,components:[{name:"mail",value:j}]})},k.parseDN=function(j){t.string(j,"dn");for(var I=[""],P=0,$=j;$.length>0;){var z;if((z=/^,/.exec($))!==null)I[++P]="",$=$.slice(z[0].length);else if((z=/^\\,/.exec($))!==null)I[P]+=",",$=$.slice(z[0].length);else if((z=/^\\./.exec($))!==null)I[P]+=z[0],$=$.slice(z[0].length);else if((z=/^[^\\,]+/.exec($))!==null)I[P]+=z[0],$=$.slice(z[0].length);else throw new Error("Failed to parse DN")}var N=I.map(function(F){F=F.trim();for(var U=F.indexOf("=");U>0&&F.charAt(U-1)==="\\";)U=F.indexOf("=",U+1);if(U===-1)throw new Error("Failed to parse DN");var J=F.slice(0,U).toLowerCase().replace(/\\=/g,"="),te=F.slice(U+1);return{name:J,value:te}});return new k({components:N})},k.fromArray=function(j){return t.arrayOfObject(j,"components"),j.forEach(function(I){if(t.object(I,"component"),t.string(I.name,"component.name"),!d.isBuffer(I.value)&&typeof I.value!="string")throw new Error("Invalid component value")}),new k({components:j})},k.parseAsn1=function(j,I){var P=[];j.readSequence(I);for(var $=j.offset+j.length;j.offset<$;){j.readSequence(l.Ber.Constructor|l.Ber.Set);var z=j.offset+j.length;j.readSequence();var N=j.readOID(),F=j.peek(),U;switch(F){case l.Ber.PrintableString:case l.Ber.IA5String:case l.Ber.OctetString:case l.Ber.T61String:U=j.readString(F);break;case l.Ber.Utf8String:U=j.readString(F,!0),U=U.toString("utf8");break;case l.Ber.CharacterString:case l.Ber.BMPString:U=j.readString(F,!0),U=U.toString("utf16le");break;default:throw new Error("Unknown asn1 type "+F)}P.push({oid:N,asn1type:F,value:U}),j._offset=z}return j._offset=$,new k({components:P})},k.isIdentity=function(j,I){return n.isCompatible(j,k,I)},k.prototype._sshpkApiVersion=[1,0],k._oldVersionDetect=function(j){return[1,0]},identity}var opensshCert,hasRequiredOpensshCert;function requireOpensshCert(){if(hasRequiredOpensshCert)return opensshCert;hasRequiredOpensshCert=1,opensshCert={read:$,verify:j,sign:U,signAsync:J,write:te,fromBuffer:z,toBuffer:se};var t=requireAssert(),n=requireSshBuffer(),l=requireCryptoBrowserify(),d=requireSafer().Buffer,m=requireAlgs(),h=requireKey();requirePrivateKey();var S=requireIdentity(),k=requireRfc4253(),A=requireSignature(),B=requireUtils$2(),M=requireCertificate();function j(ve,he){return!1}var I={user:1,host:2};Object.keys(I).forEach(function(ve){I[I[ve]]=ve});var P=/^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;function $(ve,he){d.isBuffer(ve)&&(ve=ve.toString("ascii"));var ke=ve.trim().split(/[ \t\n]+/g);if(ke.length<2||ke.length>3)throw new Error("Not a valid SSH certificate line");var T=ke[0],u=ke[1];return u=d.from(u,"base64"),z(u,T)}function z(ve,he,ke){var T=new n({buffer:ve}),u=T.readString();if(he!==void 0&&u!==he)throw new Error("SSH certificate algorithm mismatch");he===void 0&&(he=u);var p={};p.signatures={},p.signatures.openssh={},p.signatures.openssh.nonce=T.readBuffer();var b={},e=b.parts=[];b.type=de(he);for(var c=m.info[b.type].parts.length;e.length<c;)e.push(T.readPart());t.ok(e.length>=1,"key must have at least one part");var y=m.info[b.type];if(b.type==="ecdsa"){var w=P.exec(he);t.ok(w!==null),t.strictEqual(w[1],e[0].data.toString())}for(var v=0;v<y.parts.length;++v)if(e[v].name=y.parts[v],e[v].name!=="curve"&&y.normalize!==!1){var o=e[v];o.data=B.mpNormalize(o.data)}p.subjectKey=new h(b),p.serial=T.readInt64();var x=I[T.readInt()];t.string(x,"valid cert type"),p.signatures.openssh.keyId=T.readString();for(var E=[],R=T.readBuffer(),H=new n({buffer:R});!H.atEnd();)E.push(H.readString());E.length===0&&(E=["*"]),p.subjects=E.map(function(oe){if(x==="user")return S.forUser(oe);if(x==="host")return S.forHost(oe);throw new Error("Unknown identity type "+x)}),p.validFrom=N(T.readInt64()),p.validUntil=N(T.readInt64());for(var Y=[],Z=new n({buffer:T.readBuffer()}),L;!Z.atEnd();)L={critical:!0},L.name=Z.readString(),L.data=Z.readBuffer(),Y.push(L);for(Z=new n({buffer:T.readBuffer()});!Z.atEnd();)L={critical:!1},L.name=Z.readString(),L.data=Z.readBuffer(),Y.push(L);p.signatures.openssh.exts=Y,T.readBuffer();var D=T.readBuffer();p.issuerKey=k.read(D),p.issuer=S.forHost("**");var ee=T.readBuffer();return p.signatures.openssh.signature=A.parse(ee,p.issuerKey.type,"ssh"),ke!==void 0&&(ke.remainder=T.remainder(),ke.consumed=T._offset),new M(p)}function N(ve){var he=ve.readUInt32BE(0)*4294967296;he+=ve.readUInt32BE(4);var ke=new Date;return ke.setTime(he*1e3),ke.sourceInt64=ve,ke}function F(ve){if(ve.sourceInt64!==void 0)return ve.sourceInt64;var he=Math.round(ve.getTime()/1e3),ke=Math.floor(he/4294967296),T=Math.floor(he%4294967296),u=d.alloc(8);return u.writeUInt32BE(ke,0),u.writeUInt32BE(T,4),u}function U(ve,he){ve.signatures.openssh===void 0&&(ve.signatures.openssh={});try{var ke=se(ve,!0)}catch{return delete ve.signatures.openssh,!1}var T=ve.signatures.openssh,u=void 0;(he.type==="rsa"||he.type==="dsa")&&(u="sha1");var p=he.createSign(u);return p.write(ke),T.signature=p.sign(),!0}function J(ve,he,ke){ve.signatures.openssh===void 0&&(ve.signatures.openssh={});try{var T=se(ve,!0)}catch(p){delete ve.signatures.openssh,ke(p);return}var u=ve.signatures.openssh;he(T,function(p,b){if(p){ke(p);return}try{b.toBuffer("ssh")}catch(e){ke(e);return}u.signature=b,ke()})}function te(ve,he){he===void 0&&(he={});var ke=se(ve),T=Q(ve.subjectKey)+" "+ke.toString("base64");return he.comment&&(T=T+" "+he.comment),T}function se(ve,he){t.object(ve.signatures.openssh,"signature for openssh format");var ke=ve.signatures.openssh;ke.nonce===void 0&&(ke.nonce=l.randomBytes(16));var T=new n({});T.writeString(Q(ve.subjectKey)),T.writeBuffer(ke.nonce);var u=ve.subjectKey,p=m.info[u.type];p.parts.forEach(function(w){T.writePart(u.part[w])}),T.writeInt64(ve.serial);var b=ve.subjects[0].type;t.notStrictEqual(b,"unknown"),ve.subjects.forEach(function(w){t.strictEqual(w.type,b)}),b=I[b],T.writeInt(b),ke.keyId===void 0&&(ke.keyId=ve.subjects[0].type+"_"+(ve.subjects[0].uid||ve.subjects[0].hostname)),T.writeString(ke.keyId);var e=new n({});ve.subjects.forEach(function(w){b===I.host?e.writeString(w.hostname):b===I.user&&e.writeString(w.uid)}),T.writeBuffer(e.toBuffer()),T.writeInt64(F(ve.validFrom)),T.writeInt64(F(ve.validUntil));var c=ke.exts;c===void 0&&(c=[]);var y=new n({});return c.forEach(function(w){w.critical===!0&&(y.writeString(w.name),y.writeBuffer(w.data))}),T.writeBuffer(y.toBuffer()),y=new n({}),c.forEach(function(w){w.critical!==!0&&(y.writeString(w.name),y.writeBuffer(w.data))}),T.writeBuffer(y.toBuffer()),T.writeBuffer(d.alloc(0)),e=k.write(ve.issuerKey),T.writeBuffer(e),he||T.writeBuffer(ke.signature.toBuffer("ssh")),T.toBuffer()}function de(ve){if(ve==="ssh-rsa-cert-v01@openssh.com")return"rsa";if(ve==="ssh-dss-cert-v01@openssh.com")return"dsa";if(ve.match(P))return"ecdsa";if(ve==="ssh-ed25519-cert-v01@openssh.com")return"ed25519";throw new Error("Unsupported cert type "+ve)}function Q(ve){if(ve.type==="rsa")return"ssh-rsa-cert-v01@openssh.com";if(ve.type==="dsa")return"ssh-dss-cert-v01@openssh.com";if(ve.type==="ecdsa")return"ecdsa-sha2-"+ve.curve+"-cert-v01@openssh.com";if(ve.type==="ed25519")return"ssh-ed25519-cert-v01@openssh.com";throw new Error("Unsupported key type "+ve.type)}return opensshCert}var x509,hasRequiredX509;function requireX509(){if(hasRequiredX509)return x509;hasRequiredX509=1,x509={read:$,verify:B,sign:p,signAsync:b,write:e};var t=requireAssert(),n=requireLib$4(),l=requireSafer().Buffer;requireAlgs();var d=requireUtils$2();requireKey(),requirePrivateKey(),requirePem();var m=requireIdentity(),h=requireSignature(),S=requireCertificate(),k=requirePkcs8();function A(v,o){return t.strictEqual(v.peek(),n.Ber.Integer,o+" is not an Integer"),d.mpNormalize(v.readString(n.Ber.Integer,!0))}function B(v,o){var x=v.signatures.x509;t.object(x,"x509 signature");var E=x.algo.split("-");if(E[0]!==o.type)return!1;var R=x.cache;if(R===void 0){var H=new n.BerWriter;c(v,H),R=H.buffer}var Y=o.createVerify(E[1]);return Y.write(R),Y.verify(x.signature)}function M(v){return n.Ber.Context|n.Ber.Constructor|v}function j(v){return n.Ber.Context|v}var I={"rsa-md5":"1.2.840.113549.1.1.4","rsa-sha1":"1.2.840.113549.1.1.5","rsa-sha256":"1.2.840.113549.1.1.11","rsa-sha384":"1.2.840.113549.1.1.12","rsa-sha512":"1.2.840.113549.1.1.13","dsa-sha1":"1.2.840.10040.4.3","dsa-sha256":"2.16.840.1.101.3.4.3.2","ecdsa-sha1":"1.2.840.10045.4.1","ecdsa-sha256":"1.2.840.10045.4.3.2","ecdsa-sha384":"1.2.840.10045.4.3.3","ecdsa-sha512":"1.2.840.10045.4.3.4","ed25519-sha512":"1.3.101.112"};Object.keys(I).forEach(function(v){I[I[v]]=v}),I["1.3.14.3.2.3"]="rsa-md5",I["1.3.14.3.2.29"]="rsa-sha1";var P={issuerKeyId:"2.5.29.35",altName:"2.5.29.17",basicConstraints:"2.5.29.19",keyUsage:"2.5.29.15",extKeyUsage:"2.5.29.37"};function $(v,o){typeof v=="string"&&(v=l.from(v,"binary")),t.buffer(v,"buf");var x=new n.BerReader(v);if(x.readSequence(),Math.abs(x.length-x.remain)>1)throw new Error("DER sequence does not contain whole byte stream");var E=x.offset;x.readSequence();var R=x.offset+x.length,H=R;if(x.peek()===M(0)){x.readSequence(M(0));var Y=x.readInt();t.ok(Y<=3,"only x.509 versions up to v3 supported")}var Z={};Z.signatures={};var L=Z.signatures.x509={};L.extras={},Z.serial=A(x,"serial"),x.readSequence();var D=x.offset+x.length,ee=x.readOID(),oe=I[ee];if(oe===void 0)throw new Error("unknown signature algorithm "+ee);if(x._offset=D,Z.issuer=m.parseAsn1(x),x.readSequence(),Z.validFrom=z(x),Z.validUntil=z(x),Z.subjects=[m.parseAsn1(x)],x.readSequence(),D=x.offset+x.length,Z.subjectKey=k.readPkcs8(void 0,"public",x),x._offset=D,x.peek()===M(1)&&(x.readSequence(M(1)),L.extras.issuerUniqueID=v.slice(x.offset,x.offset+x.length),x._offset+=x.length),x.peek()===M(2)&&(x.readSequence(M(2)),L.extras.subjectUniqueID=v.slice(x.offset,x.offset+x.length),x._offset+=x.length),x.peek()===M(3)){x.readSequence(M(3));var fe=x.offset+x.length;for(x.readSequence();x.offset<fe;)se(Z,v,x);t.strictEqual(x.offset,fe)}t.strictEqual(x.offset,R),x.readSequence(),D=x.offset+x.length;var ue=x.readOID(),qe=I[ue];if(qe===void 0)throw new Error("unknown signature algorithm "+ue);x._offset=D;var rt=x.readString(n.Ber.BitString,!0);rt[0]===0&&(rt=rt.slice(1));var Ve=qe.split("-");return L.signature=h.parse(rt,Ve[0],"asn1"),L.signature.hashAlgorithm=Ve[1],L.algo=qe,L.cache=v.slice(E,H),new S(Z)}function z(v){if(v.peek()===n.Ber.UTCTime)return Q(v.readString(n.Ber.UTCTime));if(v.peek()===n.Ber.GeneralizedTime)return he(v.readString(n.Ber.GeneralizedTime));throw new Error("Unsupported date format")}function N(v,o){o.getUTCFullYear()>=2050||o.getUTCFullYear()<1950?v.writeString(u(o),n.Ber.GeneralizedTime):v.writeString(T(o),n.Ber.UTCTime)}var F={OtherName:M(0),RFC822Name:j(1),DNSName:j(2),X400Address:M(3),DirectoryName:M(4),EDIPartyName:M(5),URI:j(6),IPAddress:j(7),OID:j(8)},U={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"},J={};Object.keys(U).forEach(function(v){J[U[v]]=v});var te=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];function se(v,o,x){x.readSequence();var E=x.offset+x.length,R=x.readOID(),H,Y=v.signatures.x509;Y.extras.exts||(Y.extras.exts=[]);var Z;switch(x.peek()===n.Ber.Boolean&&(Z=x.readBoolean()),R){case P.basicConstraints:x.readSequence(n.Ber.OctetString),x.readSequence();var L=x.offset+x.length,D=!1;x.peek()===n.Ber.Boolean&&(D=x.readBoolean()),v.purposes===void 0&&(v.purposes=[]),D===!0&&v.purposes.push("ca");var ee={oid:R,critical:Z};x.offset<L&&x.peek()===n.Ber.Integer&&(ee.pathLen=x.readInt()),Y.extras.exts.push(ee);break;case P.extKeyUsage:x.readSequence(n.Ber.OctetString),x.readSequence(),v.purposes===void 0&&(v.purposes=[]);for(var oe=x.offset+x.length;x.offset<oe;){var fe=x.readOID();v.purposes.push(J[fe]||fe)}v.purposes.indexOf("serverAuth")!==-1&&v.purposes.indexOf("clientAuth")===-1?v.subjects.forEach(function(mt){mt.type!=="host"&&(mt.type="host",mt.hostname=mt.uid||mt.email||mt.components[0].value)}):v.purposes.indexOf("clientAuth")!==-1&&v.purposes.indexOf("serverAuth")===-1&&v.subjects.forEach(function(mt){mt.type!=="user"&&(mt.type="user",mt.uid=mt.hostname||mt.email||mt.components[0].value)}),Y.extras.exts.push({oid:R,critical:Z});break;case P.keyUsage:x.readSequence(n.Ber.OctetString);var ue=x.readString(n.Ber.BitString,!0),qe=y(ue,te);qe.forEach(function(mt){v.purposes===void 0&&(v.purposes=[]),v.purposes.indexOf(mt)===-1&&v.purposes.push(mt)}),Y.extras.exts.push({oid:R,critical:Z,bits:ue});break;case P.altName:x.readSequence(n.Ber.OctetString),x.readSequence();for(var rt=x.offset+x.length;x.offset<rt;)switch(x.peek()){case F.OtherName:case F.EDIPartyName:x.readSequence(),x._offset+=x.length;break;case F.OID:x.readOID(F.OID);break;case F.RFC822Name:var Ve=x.readString(F.RFC822Name);H=m.forEmail(Ve),v.subjects[0].equals(H)||v.subjects.push(H);break;case F.DirectoryName:x.readSequence(F.DirectoryName),H=m.parseAsn1(x),v.subjects[0].equals(H)||v.subjects.push(H);break;case F.DNSName:var et=x.readString(F.DNSName);H=m.forHost(et),v.subjects[0].equals(H)||v.subjects.push(H);break;default:x.readString(x.peek());break}Y.extras.exts.push({oid:R,critical:Z});break;default:Y.extras.exts.push({oid:R,critical:Z,data:x.readString(n.Ber.OctetString,!0)});break}x._offset=E}var de=/^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function Q(v){var o=v.match(de);t.ok(o,"timestamps must be in UTC");var x=new Date,E=x.getUTCFullYear(),R=Math.floor(E/100)*100,H=parseInt(o[1],10);return E%100<50&&H>=60?H+=R-1:H+=R,x.setUTCFullYear(H,parseInt(o[2],10)-1,parseInt(o[3],10)),x.setUTCHours(parseInt(o[4],10),parseInt(o[5],10)),o[6]&&o[6].length>0&&x.setUTCSeconds(parseInt(o[6],10)),x}var ve=/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function he(v){var o=v.match(ve);t.ok(o);var x=new Date;return x.setUTCFullYear(parseInt(o[1],10),parseInt(o[2],10)-1,parseInt(o[3],10)),x.setUTCHours(parseInt(o[4],10),parseInt(o[5],10)),o[6]&&o[6].length>0&&x.setUTCSeconds(parseInt(o[6],10)),x}function ke(v,o){o===void 0&&(o=2);for(var x=""+v;x.length<o;)x="0"+x;return x}function T(v){var o="";return o+=ke(v.getUTCFullYear()%100),o+=ke(v.getUTCMonth()+1),o+=ke(v.getUTCDate()),o+=ke(v.getUTCHours()),o+=ke(v.getUTCMinutes()),o+=ke(v.getUTCSeconds()),o+="Z",o}function u(v){var o="";return o+=ke(v.getUTCFullYear(),4),o+=ke(v.getUTCMonth()+1),o+=ke(v.getUTCDate()),o+=ke(v.getUTCHours()),o+=ke(v.getUTCMinutes()),o+=ke(v.getUTCSeconds()),o+="Z",o}function p(v,o){v.signatures.x509===void 0&&(v.signatures.x509={});var x=v.signatures.x509;if(x.algo=o.type+"-"+o.defaultHashAlgorithm(),I[x.algo]===void 0)return!1;var E=new n.BerWriter;c(v,E);var R=E.buffer;x.cache=R;var H=o.createSign();return H.write(R),v.signatures.x509.signature=H.sign(),!0}function b(v,o,x){v.signatures.x509===void 0&&(v.signatures.x509={});var E=v.signatures.x509,R=new n.BerWriter;c(v,R);var H=R.buffer;E.cache=H,o(H,function(Y,Z){if(Y){x(Y);return}if(E.algo=Z.type+"-"+Z.hashAlgorithm,I[E.algo]===void 0){x(new Error('Invalid signing algorithm "'+E.algo+'"'));return}E.signature=Z,x()})}function e(v,o){var x=v.signatures.x509;t.object(x,"x509 signature");var E=new n.BerWriter;E.startSequence(),x.cache?(E._ensure(x.cache.length),x.cache.copy(E._buf,E._offset),E._offset+=x.cache.length):c(v,E),E.startSequence(),E.writeOID(I[x.algo]),x.algo.match(/^rsa-/)&&E.writeNull(),E.endSequence();var R=x.signature.toBuffer("asn1"),H=l.alloc(R.length+1);return H[0]=0,R.copy(H,1),E.writeBuffer(H,n.Ber.BitString),E.endSequence(),E.buffer}function c(v,o){var x=v.signatures.x509;t.object(x,"x509 signature"),o.startSequence(),o.startSequence(M(0)),o.writeInt(2),o.endSequence(),o.writeBuffer(d.mpNormalize(v.serial),n.Ber.Integer),o.startSequence(),o.writeOID(I[x.algo]),x.algo.match(/^rsa-/)&&o.writeNull(),o.endSequence(),v.issuer.toAsn1(o),o.startSequence(),N(o,v.validFrom),N(o,v.validUntil),o.endSequence();var E=v.subjects[0],R=v.subjects.slice(1);if(E.toAsn1(o),k.writePkcs8(o,v.subjectKey),x.extras&&x.extras.issuerUniqueID&&o.writeBuffer(x.extras.issuerUniqueID,M(1)),x.extras&&x.extras.subjectUniqueID&&o.writeBuffer(x.extras.subjectUniqueID,M(2)),R.length>0||E.type==="host"||v.purposes!==void 0&&v.purposes.length>0||x.extras&&x.extras.exts){o.startSequence(M(3)),o.startSequence();var H=[];v.purposes!==void 0&&v.purposes.length>0&&(H.push({oid:P.basicConstraints,critical:!0}),H.push({oid:P.keyUsage,critical:!0}),H.push({oid:P.extKeyUsage,critical:!0})),H.push({oid:P.altName}),x.extras&&x.extras.exts&&(H=x.extras.exts);for(var Y=0;Y<H.length;++Y){if(o.startSequence(),o.writeOID(H[Y].oid),H[Y].critical!==void 0&&o.writeBoolean(H[Y].critical),H[Y].oid===P.altName){o.startSequence(n.Ber.OctetString),o.startSequence(),E.type==="host"&&o.writeString(E.hostname,j(2));for(var Z=0;Z<R.length;++Z)R[Z].type==="host"?o.writeString(R[Z].hostname,F.DNSName):R[Z].type==="email"?o.writeString(R[Z].email,F.RFC822Name):(o.startSequence(F.DirectoryName),R[Z].toAsn1(o),o.endSequence());o.endSequence(),o.endSequence()}else if(H[Y].oid===P.basicConstraints){o.startSequence(n.Ber.OctetString),o.startSequence();var L=v.purposes.indexOf("ca")!==-1,D=H[Y].pathLen;o.writeBoolean(L),D!==void 0&&o.writeInt(D),o.endSequence(),o.endSequence()}else if(H[Y].oid===P.extKeyUsage)o.startSequence(n.Ber.OctetString),o.startSequence(),v.purposes.forEach(function(oe){if(oe!=="ca"&&te.indexOf(oe)===-1){var fe=oe;U[oe]!==void 0&&(fe=U[oe]),o.writeOID(fe)}}),o.endSequence(),o.endSequence();else if(H[Y].oid===P.keyUsage){if(o.startSequence(n.Ber.OctetString),H[Y].bits!==void 0)o.writeBuffer(H[Y].bits,n.Ber.BitString);else{var ee=w(v.purposes,te);o.writeBuffer(ee,n.Ber.BitString)}o.endSequence()}else o.writeBuffer(H[Y].data,n.Ber.OctetString);o.endSequence()}o.endSequence(),o.endSequence()}o.endSequence()}function y(v,o){for(var x=8*(v.length-1)-v[0],E={},R=0;R<x;++R){var H=1+Math.floor(R/8),Y=7-R%8,Z=1<<Y,L=(v[H]&Z)!==0,D=o[R];L&&typeof D=="string"&&(E[D]=!0)}return Object.keys(E)}function w(v,o){var x=o.length,E=Math.ceil(x/8),R=E*8-x,H=l.alloc(1+E);H[0]=R;for(var Y=0;Y<x;++Y){var Z=1+Math.floor(Y/8),L=7-Y%8,D=1<<L,ee=o[Y];if(ee!==void 0){var oe=v.indexOf(ee)!==-1;oe&&(H[Z]|=D)}}return H}return x509}var x509Pem,hasRequiredX509Pem;function requireX509Pem(){if(hasRequiredX509Pem)return x509Pem;hasRequiredX509Pem=1;var t=requireX509();x509Pem={read:d,verify:t.verify,sign:t.sign,write:m};var n=requireAssert();requireLib$4();var l=requireSafer().Buffer;requireAlgs(),requireUtils$2(),requireKey(),requirePrivateKey(),requirePem(),requireIdentity(),requireSignature(),requireCertificate();function d(h,S){typeof h!="string"&&(n.buffer(h,"buf"),h=h.toString("ascii"));for(var k=h.trim().split(/[\r\n]+/g),A,B=-1;!A&&B<k.length;)A=k[++B].match(/[-]+[ ]*BEGIN CERTIFICATE[ ]*[-]+/);n.ok(A,"invalid PEM header");for(var M,j=k.length;!M&&j>0;)M=k[--j].match(/[-]+[ ]*END CERTIFICATE[ ]*[-]+/);n.ok(M,"invalid PEM footer"),k=k.slice(B,j+1);for(var I={};k=k.slice(1),A=k[0].match(/^([A-Za-z0-9-]+): (.+)$/),!!A;)I[A[1].toLowerCase()]=A[2];return k=k.slice(0,-1).join(""),h=l.from(k,"base64"),t.read(h,S)}function m(h,S){var k=t.write(h,S),A="CERTIFICATE",B=k.toString("base64"),M=B.length+B.length/64+18+16+A.length*2+10,j=l.alloc(M),I=0;I+=j.write("-----BEGIN "+A+`-----
`,I);for(var P=0;P<B.length;){var $=P+64;$>B.length&&($=B.length),I+=j.write(B.slice(P,$),I),j[I++]=10,P=$}return I+=j.write("-----END "+A+`-----
`,I),j.slice(0,I)}return x509Pem}var certificate,hasRequiredCertificate;function requireCertificate(){if(hasRequiredCertificate)return certificate;hasRequiredCertificate=1,certificate=P;var t=requireAssert(),n=requireSafer().Buffer,l=requireAlgs(),d=requireCryptoBrowserify(),m=requireFingerprint();requireSignature();var h=requireErrors$1(),S=requireUtils$2(),k=requireKey(),A=requirePrivateKey(),B=requireIdentity(),M={};M.openssh=requireOpensshCert(),M.x509=requireX509(),M.pem=requireX509Pem();var j=h.CertificateParseError,I=h.InvalidAlgorithmError;function P($){t.object($,"options"),t.arrayOfObject($.subjects,"options.subjects"),S.assertCompatible($.subjects[0],B,[1,0],"options.subjects"),S.assertCompatible($.subjectKey,k,[1,0],"options.subjectKey"),S.assertCompatible($.issuer,B,[1,0],"options.issuer"),$.issuerKey!==void 0&&S.assertCompatible($.issuerKey,k,[1,0],"options.issuerKey"),t.object($.signatures,"options.signatures"),t.buffer($.serial,"options.serial"),t.date($.validFrom,"options.validFrom"),t.date($.validUntil,"optons.validUntil"),t.optionalArrayOfString($.purposes,"options.purposes"),this._hashCache={},this.subjects=$.subjects,this.issuer=$.issuer,this.subjectKey=$.subjectKey,this.issuerKey=$.issuerKey,this.signatures=$.signatures,this.serial=$.serial,this.validFrom=$.validFrom,this.validUntil=$.validUntil,this.purposes=$.purposes}return P.formats=M,P.prototype.toBuffer=function($,z){return $===void 0&&($="x509"),t.string($,"format"),t.object(M[$],"formats[format]"),t.optionalObject(z,"options"),M[$].write(this,z)},P.prototype.toString=function($,z){return $===void 0&&($="pem"),this.toBuffer($,z).toString()},P.prototype.fingerprint=function($){$===void 0&&($="sha256"),t.string($,"algorithm");var z={type:"certificate",hash:this.hash($),algorithm:$};return new m(z)},P.prototype.hash=function($){if(t.string($,"algorithm"),$=$.toLowerCase(),l.hashAlgs[$]===void 0)throw new I($);if(this._hashCache[$])return this._hashCache[$];var z=d.createHash($).update(this.toBuffer("x509")).digest();return this._hashCache[$]=z,z},P.prototype.isExpired=function($){return $===void 0&&($=new Date),!($.getTime()>=this.validFrom.getTime()&&$.getTime()<this.validUntil.getTime())},P.prototype.isSignedBy=function($){return S.assertCompatible($,P,[1,0],"issuer"),!this.issuer.equals($.subjects[0])||this.issuer.purposes&&this.issuer.purposes.length>0&&this.issuer.purposes.indexOf("ca")===-1?!1:this.isSignedByKey($.subjectKey)},P.prototype.getExtension=function($){t.string($,"keyOrOid");var z=this.getExtensions().filter(function(N){return N.format==="x509"?N.oid===$:N.format==="openssh"?N.name===$:!1})[0];return z},P.prototype.getExtensions=function(){var $=[],z=this.signatures.x509;z&&z.extras&&z.extras.exts&&z.extras.exts.forEach(function(F){F.format="x509",$.push(F)});var N=this.signatures.openssh;return N&&N.exts&&N.exts.forEach(function(F){F.format="openssh",$.push(F)}),$},P.prototype.isSignedByKey=function($){if(S.assertCompatible($,k,[1,2],"issuerKey"),this.issuerKey!==void 0)return this.issuerKey.fingerprint("sha512").matches($);var z=Object.keys(this.signatures)[0],N=M[z].verify(this,$);return N&&(this.issuerKey=$),N},P.prototype.signWith=function($){S.assertCompatible($,A,[1,2],"key");for(var z=Object.keys(M),N=!1,F=0;F<z.length;++F)if(z[F]!=="pem"){var U=M[z[F]].sign(this,$);U===!0&&(N=!0)}if(!N)throw new Error("Failed to sign the certificate for any available certificate formats")},P.createSelfSigned=function($,z,N){var F;Array.isArray($)?F=$:F=[$],t.arrayOfObject(F),F.forEach(function(ke){S.assertCompatible(ke,B,[1,0],"subject")}),S.assertCompatible(z,A,[1,2],"private key"),t.optionalObject(N,"options"),N===void 0&&(N={}),t.optionalObject(N.validFrom,"options.validFrom"),t.optionalObject(N.validUntil,"options.validUntil");var U=N.validFrom,J=N.validUntil;if(U===void 0&&(U=new Date),J===void 0){t.optionalNumber(N.lifetime,"options.lifetime");var te=N.lifetime;te===void 0&&(te=10*365*24*3600),J=new Date,J.setTime(J.getTime()+te*1e3)}t.optionalBuffer(N.serial,"options.serial");var se=N.serial;se===void 0&&(se=n.from("0000000000000001","hex"));var de=N.purposes;if(de===void 0&&(de=[]),de.indexOf("signature")===-1&&de.push("signature"),de.indexOf("ca")===-1&&de.push("ca"),de.indexOf("crl")===-1&&de.push("crl"),de.length<=3){var Q=F.filter(function(ke){return ke.type==="host"}),ve=F.filter(function(ke){return ke.type==="user"});Q.length>0&&de.indexOf("serverAuth")===-1&&de.push("serverAuth"),ve.length>0&&de.indexOf("clientAuth")===-1&&de.push("clientAuth"),(ve.length>0||Q.length>0)&&(de.indexOf("keyAgreement")===-1&&de.push("keyAgreement"),z.type==="rsa"&&de.indexOf("encryption")===-1&&de.push("encryption"))}var he=new P({subjects:F,issuer:F[0],subjectKey:z.toPublic(),issuerKey:z.toPublic(),signatures:{},serial:se,validFrom:U,validUntil:J,purposes:de});return he.signWith(z),he},P.create=function($,z,N,F,U){var J;Array.isArray($)?J=$:J=[$],t.arrayOfObject(J),J.forEach(function(u){S.assertCompatible(u,B,[1,0],"subject")}),S.assertCompatible(z,k,[1,0],"key"),A.isPrivateKey(z)&&(z=z.toPublic()),S.assertCompatible(N,B,[1,0],"issuer"),S.assertCompatible(F,A,[1,2],"issuer key"),t.optionalObject(U,"options"),U===void 0&&(U={}),t.optionalObject(U.validFrom,"options.validFrom"),t.optionalObject(U.validUntil,"options.validUntil");var te=U.validFrom,se=U.validUntil;if(te===void 0&&(te=new Date),se===void 0){t.optionalNumber(U.lifetime,"options.lifetime");var de=U.lifetime;de===void 0&&(de=10*365*24*3600),se=new Date,se.setTime(se.getTime()+de*1e3)}t.optionalBuffer(U.serial,"options.serial");var Q=U.serial;Q===void 0&&(Q=n.from("0000000000000001","hex"));var ve=U.purposes;ve===void 0&&(ve=[]),ve.indexOf("signature")===-1&&ve.push("signature"),U.ca===!0&&(ve.indexOf("ca")===-1&&ve.push("ca"),ve.indexOf("crl")===-1&&ve.push("crl"));var he=J.filter(function(u){return u.type==="host"}),ke=J.filter(function(u){return u.type==="user"});he.length>0&&ve.indexOf("serverAuth")===-1&&ve.push("serverAuth"),ke.length>0&&ve.indexOf("clientAuth")===-1&&ve.push("clientAuth"),(ke.length>0||he.length>0)&&(ve.indexOf("keyAgreement")===-1&&ve.push("keyAgreement"),z.type==="rsa"&&ve.indexOf("encryption")===-1&&ve.push("encryption"));var T=new P({subjects:J,issuer:N,subjectKey:z,issuerKey:F.toPublic(),signatures:{},serial:Q,validFrom:te,validUntil:se,purposes:ve});return T.signWith(F),T},P.parse=function($,z,N){typeof $!="string"&&t.buffer($,"data"),z===void 0&&(z="auto"),t.string(z,"format"),typeof N=="string"&&(N={filename:N}),t.optionalObject(N,"options"),N===void 0&&(N={}),t.optionalString(N.filename,"options.filename"),N.filename===void 0&&(N.filename="(unnamed)"),t.object(M[z],"formats[format]");try{var F=M[z].read($,N);return F}catch(U){throw new j(N.filename,z,U)}},P.isCertificate=function($,z){return S.isCompatible($,P,z)},P.prototype._sshpkApiVersion=[1,1],P._oldVersionDetect=function($){return[1,0]},certificate}var fingerprint,hasRequiredFingerprint;function requireFingerprint(){if(hasRequiredFingerprint)return fingerprint;hasRequiredFingerprint=1,fingerprint=j;var t=requireAssert(),n=requireSafer().Buffer,l=requireAlgs(),d=requireCryptoBrowserify(),m=requireErrors$1(),h=requireKey(),S=requirePrivateKey(),k=requireCertificate(),A=requireUtils$2(),B=m.FingerprintFormatError,M=m.InvalidAlgorithmError;function j(F){if(t.object(F,"options"),t.string(F.type,"options.type"),t.buffer(F.hash,"options.hash"),t.string(F.algorithm,"options.algorithm"),this.algorithm=F.algorithm.toLowerCase(),l.hashAlgs[this.algorithm]!==!0)throw new M(this.algorithm);this.hash=F.hash,this.type=F.type,this.hashType=F.hashType}j.prototype.toString=function(F){switch(F===void 0&&(this.algorithm==="md5"||this.hashType==="spki"?F="hex":F="base64"),t.string(F),F){case"hex":return this.hashType==="spki"?this.hash.toString("hex"):$(this.hash.toString("hex"));case"base64":return this.hashType==="spki"?this.hash.toString("base64"):N(this.algorithm,this.hash.toString("base64"));default:throw new B(void 0,F)}},j.prototype.matches=function(F){t.object(F,"key or certificate"),this.type==="key"&&this.hashType!=="ssh"?(A.assertCompatible(F,h,[1,7],"key with spki"),S.isPrivateKey(F)&&A.assertCompatible(F,S,[1,6],"privatekey with spki support")):this.type==="key"?A.assertCompatible(F,h,[1,0],"key"):A.assertCompatible(F,k,[1,0],"certificate");var U=F.hash(this.algorithm,this.hashType),J=d.createHash(this.algorithm).update(U).digest("base64");return this.hash2===void 0&&(this.hash2=d.createHash(this.algorithm).update(this.hash).digest("base64")),this.hash2===J};var I=/^[A-Za-z0-9+\/=]+$/,P=/^[a-fA-F0-9]+$/;j.parse=function(F,U){t.string(F,"fingerprint");var J,te,se;Array.isArray(U)&&(se=U,U={}),t.optionalObject(U,"options"),U===void 0&&(U={}),U.enAlgs!==void 0&&(se=U.enAlgs),U.algorithms!==void 0&&(se=U.algorithms),t.optionalArrayOfString(se,"algorithms");var de="ssh";U.hashType!==void 0&&(de=U.hashType),t.string(de,"options.hashType");var Q=F.split(":");if(Q.length==2){if(J=Q[0].toLowerCase(),!I.test(Q[1]))throw new B(F);try{te=n.from(Q[1],"base64")}catch{throw new B(F)}}else if(Q.length>2){if(J="md5",Q[0].toLowerCase()==="md5"&&(Q=Q.slice(1)),Q=Q.map(function(ve){for(;ve.length<2;)ve="0"+ve;if(ve.length>2)throw new B(F);return ve}),Q=Q.join(""),!P.test(Q)||Q.length%2!==0)throw new B(F);try{te=n.from(Q,"hex")}catch{throw new B(F)}}else{if(P.test(F))te=n.from(F,"hex");else if(I.test(F))te=n.from(F,"base64");else throw new B(F);switch(te.length){case 32:J="sha256";break;case 16:J="md5";break;case 20:J="sha1";break;case 64:J="sha512";break;default:throw new B(F)}U.hashType===void 0&&(de="spki")}if(J===void 0)throw new B(F);if(l.hashAlgs[J]===void 0)throw new M(J);if(se!==void 0&&(se=se.map(function(ve){return ve.toLowerCase()}),se.indexOf(J)===-1))throw new M(J);return new j({algorithm:J,hash:te,type:U.type||"key",hashType:de})};function $(F){return F.replace(/(.{2})(?=.)/g,"$1:")}function z(F){return F.replace(/=*$/,"")}function N(F,U){return F.toUpperCase()+":"+z(U)}return j.isFingerprint=function(F,U){return A.isCompatible(F,j,U)},j.prototype._sshpkApiVersion=[1,2],j._oldVersionDetect=function(F){return t.func(F.toString),t.func(F.matches),[1,0]},fingerprint}var key,hasRequiredKey;function requireKey(){if(hasRequiredKey)return key;hasRequiredKey=1,key=P;var t=requireAssert(),n=requireAlgs(),l=requireCryptoBrowserify(),d=requireFingerprint(),m=requireSignature(),h=requireDhe().DiffieHellman,S=requireErrors$1(),k=requireUtils$2(),A=requirePrivateKey(),B;try{B=requireEdCompat()}catch{}var M=S.InvalidAlgorithmError,j=S.KeyParseError,I={};I.auto=requireAuto(),I.pem=requirePem(),I.pkcs1=requirePkcs1(),I.pkcs8=requirePkcs8(),I.rfc4253=requireRfc4253(),I.ssh=requireSsh(),I["ssh-private"]=requireSshPrivate(),I.openssh=I["ssh-private"],I.dnssec=requireDnssec(),I.putty=requirePutty(),I.ppk=I.putty;function P($){t.object($,"options"),t.arrayOfObject($.parts,"options.parts"),t.string($.type,"options.type"),t.optionalString($.comment,"options.comment");var z=n.info[$.type];if(typeof z!="object")throw new M($.type);for(var N={},F=0;F<$.parts.length;++F){var U=$.parts[F];N[U.name]=U}this.type=$.type,this.parts=$.parts,this.part=N,this.comment=void 0,this.source=$.source,this._rfc4253Cache=$._rfc4253Cache,this._hashCache={};var J;if(this.curve=void 0,this.type==="ecdsa"){var te=this.part.curve.data.toString();this.curve=te,J=n.curves[te].size}else if(this.type==="ed25519"||this.type==="curve25519")J=256,this.curve="curve25519";else{var se=this.part[z.sizePart];J=se.data.length,J=J*8-k.countZeros(se.data)}this.size=J}return P.formats=I,P.prototype.toBuffer=function($,z){return $===void 0&&($="ssh"),t.string($,"format"),t.object(I[$],"formats[format]"),t.optionalObject(z,"options"),$==="rfc4253"?(this._rfc4253Cache===void 0&&(this._rfc4253Cache=I.rfc4253.write(this)),this._rfc4253Cache):I[$].write(this,z)},P.prototype.toString=function($,z){return this.toBuffer($,z).toString()},P.prototype.hash=function($,z){if(t.string($,"algorithm"),t.optionalString(z,"type"),z===void 0&&(z="ssh"),$=$.toLowerCase(),n.hashAlgs[$]===void 0)throw new M($);var N=$+"||"+z;if(this._hashCache[N])return this._hashCache[N];var F;if(z==="ssh")F=this.toBuffer("rfc4253");else if(z==="spki")F=I.pkcs8.pkcs8ToBuffer(this);else throw new Error("Hash type "+z+" not supported");var U=l.createHash($).update(F).digest();return this._hashCache[N]=U,U},P.prototype.fingerprint=function($,z){$===void 0&&($="sha256"),z===void 0&&(z="ssh"),t.string($,"algorithm"),t.string(z,"type");var N={type:"key",hash:this.hash($,z),algorithm:$,hashType:z};return new d(N)},P.prototype.defaultHashAlgorithm=function(){var $="sha1";return this.type==="rsa"&&($="sha256"),this.type==="dsa"&&this.size>1024&&($="sha256"),this.type==="ed25519"&&($="sha512"),this.type==="ecdsa"&&(this.size<=256?$="sha256":this.size<=384?$="sha384":$="sha512"),$},P.prototype.createVerify=function($){if($===void 0&&($=this.defaultHashAlgorithm()),t.string($,"hash algorithm"),this.type==="ed25519"&&B!==void 0)return new B.Verifier(this,$);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for signing or verification");var z,N,F;try{N=$.toUpperCase(),z=l.createVerify(N)}catch(de){F=de}(z===void 0||F instanceof Error&&F.message.match(/Unknown message digest/))&&(N="RSA-",N+=$.toUpperCase(),z=l.createVerify(N)),t.ok(z,"failed to create verifier");var U=z.verify.bind(z),J=this.toBuffer("pkcs8"),te=this.curve,se=this;return z.verify=function(de,Q){if(m.isSignature(de,[2,0]))return de.type!==se.type||de.hashAlgorithm&&de.hashAlgorithm!==$||de.curve&&se.type==="ecdsa"&&de.curve!==te?!1:U(J,de.toBuffer("asn1"));if(typeof de=="string"||Buffer$C.isBuffer(de))return U(J,de,Q);throw m.isSignature(de,[1,0])?new Error("signature was created by too old a version of sshpk and cannot be verified"):new TypeError("signature must be a string, Buffer, or Signature object")},z},P.prototype.createDiffieHellman=function(){if(this.type==="rsa")throw new Error("RSA keys do not support Diffie-Hellman");return new h(this)},P.prototype.createDH=P.prototype.createDiffieHellman,P.parse=function($,z,N){typeof $!="string"&&t.buffer($,"data"),z===void 0&&(z="auto"),t.string(z,"format"),typeof N=="string"&&(N={filename:N}),t.optionalObject(N,"options"),N===void 0&&(N={}),t.optionalString(N.filename,"options.filename"),N.filename===void 0&&(N.filename="(unnamed)"),t.object(I[z],"formats[format]");try{var F=I[z].read($,N);return F instanceof A&&(F=F.toPublic()),F.comment||(F.comment=N.filename),F}catch(U){throw U.name==="KeyEncryptedError"?U:new j(N.filename,z,U)}},P.isKey=function($,z){return k.isCompatible($,P,z)},P.prototype._sshpkApiVersion=[1,7],P._oldVersionDetect=function($){return t.func($.toBuffer),t.func($.fingerprint),$.createDH?[1,4]:$.defaultHashAlgorithm?[1,3]:$.formats.auto?[1,2]:$.formats.pkcs1?[1,1]:[1,0]},key}var lib$3,hasRequiredLib$3;function requireLib$3(){if(hasRequiredLib$3)return lib$3;hasRequiredLib$3=1;var t=requireKey(),n=requireFingerprint(),l=requireSignature(),d=requirePrivateKey(),m=requireCertificate(),h=requireIdentity(),S=requireErrors$1();return lib$3={Key:t,parseKey:t.parse,Fingerprint:n,parseFingerprint:n.parse,Signature:l,parseSignature:l.parse,PrivateKey:d,parsePrivateKey:d.parse,generatePrivateKey:d.generate,Certificate:m,parseCertificate:m.parse,createSelfSignedCertificate:m.createSelfSigned,createCertificate:m.create,Identity:h,identityFromDN:h.parseDN,identityForHost:h.forHost,identityForUser:h.forUser,identityForEmail:h.forEmail,identityFromArray:h.fromArray,FingerprintFormatError:S.FingerprintFormatError,InvalidAlgorithmError:S.InvalidAlgorithmError,KeyParseError:S.KeyParseError,SignatureParseError:S.SignatureParseError,KeyEncryptedError:S.KeyEncryptedError,CertificateParseError:S.CertificateParseError},lib$3}var utils$1,hasRequiredUtils$1;function requireUtils$1(){if(hasRequiredUtils$1)return utils$1;hasRequiredUtils$1=1;var t=requireAssert(),n=requireLib$3(),l=util$6,d={sha1:!0,sha256:!0,sha512:!0},m={rsa:!0,dsa:!0,ecdsa:!0};function h(A,B){Error.captureStackTrace&&Error.captureStackTrace(this,B||h),this.message=A,this.name=B.name}l.inherits(h,Error);function S(A){h.call(this,A,S)}l.inherits(S,h);function k(A){var B=A.toLowerCase().split("-");if(B.length!==2)throw new S(B[0].toUpperCase()+" is not a valid algorithm");if(B[0]!=="hmac"&&!m[B[0]])throw new S(B[0].toUpperCase()+" type keys are not supported");if(!d[B[1]])throw new S(B[1].toUpperCase()+" is not a supported hash algorithm");return B}return utils$1={HASH_ALGOS:d,PK_ALGOS:m,HttpSignatureError:h,InvalidAlgorithmError:S,validateAlgorithm:k,sshKeyToPEM:function(B){t.string(B,"ssh_key");var M=n.parseKey(B,"ssh");return M.toString("pem")},fingerprint:function(B){t.string(B,"ssh_key");var M=n.parseKey(B,"ssh");return M.fingerprint("md5").toString("hex")},pemToRsaSSHKey:function(B,M){t.equal("string",typeof B,"typeof pem");var j=n.parseKey(B,"pem");return j.comment=M,j.toString("ssh")}},utils$1}var parser,hasRequiredParser;function requireParser(){if(hasRequiredParser)return parser;hasRequiredParser=1;var t=requireAssert(),n=util$6,l=requireUtils$1();l.HASH_ALGOS,l.PK_ALGOS;var d=l.HttpSignatureError,m=l.InvalidAlgorithmError,h=l.validateAlgorithm,S={New:0,Params:1},k={Name:0,Quote:1,Value:2,Comma:3};function A(P){d.call(this,P,A)}n.inherits(A,d);function B(P){d.call(this,P,B)}n.inherits(B,d);function M(P){d.call(this,P,M)}n.inherits(M,d);function j(P){d.call(this,P,j)}n.inherits(j,d);function I(P){d.call(this,P,I)}return n.inherits(I,d),parser={parseRequest:function($,z){t.object($,"request"),t.object($.headers,"request.headers"),z===void 0&&(z={}),z.headers===void 0&&(z.headers=[$.headers["x-date"]?"x-date":"date"]),t.object(z,"options"),t.arrayOfString(z.headers,"options.headers"),t.optionalFinite(z.clockSkew,"options.clockSkew");var N=z.authorizationHeaderName||"authorization";if(!$.headers[N])throw new j("no "+N+" header present in the request");z.clockSkew=z.clockSkew||300;var F=0,U=S.New,J=k.Name,te="",se="",de={scheme:"",params:{},signingString:""},Q=$.headers[N];for(F=0;F<Q.length;F++){var ve=Q.charAt(F);switch(Number(U)){case S.New:ve!==" "?de.scheme+=ve:U=S.Params;break;case S.Params:switch(Number(J)){case k.Name:var he=ve.charCodeAt(0);if(he>=65&&he<=90||he>=97&&he<=122)te+=ve;else if(ve==="="){if(te.length===0)throw new B("bad param format");J=k.Quote}else throw new B("bad param format");break;case k.Quote:if(ve==='"')se="",J=k.Value;else throw new B("bad param format");break;case k.Value:ve==='"'?(de.params[te]=se,J=k.Comma):se+=ve;break;case k.Comma:if(ve===",")te="",J=k.Name;else throw new B("bad param format");break;default:throw new Error("Invalid substate")}break;default:throw new Error("Invalid substate")}}if(!de.params.headers||de.params.headers===""?$.headers["x-date"]?de.params.headers=["x-date"]:de.params.headers=["date"]:de.params.headers=de.params.headers.split(" "),!de.scheme||de.scheme!=="Signature")throw new B('scheme was not "Signature"');if(!de.params.keyId)throw new B("keyId was not specified");if(!de.params.algorithm)throw new B("algorithm was not specified");if(!de.params.signature)throw new B("signature was not specified");de.params.algorithm=de.params.algorithm.toLowerCase();try{h(de.params.algorithm)}catch(e){throw e instanceof m?new M(de.params.algorithm+" is not supported"):e}for(F=0;F<de.params.headers.length;F++){var ke=de.params.headers[F].toLowerCase();if(de.params.headers[F]=ke,ke==="request-line")if(!z.strict)de.signingString+=$.method+" "+$.url+" HTTP/"+$.httpVersion;else throw new I("request-line is not a valid header with strict parsing enabled.");else if(ke==="(request-target)")de.signingString+="(request-target): "+$.method.toLowerCase()+" "+$.url;else{var T=$.headers[ke];if(T===void 0)throw new j(ke+" was not in the request");de.signingString+=ke+": "+T}F+1<de.params.headers.length&&(de.signingString+=`
`)}var u;if($.headers.date||$.headers["x-date"]){$.headers["x-date"]?u=new Date($.headers["x-date"]):u=new Date($.headers.date);var p=new Date,b=Math.abs(p.getTime()-u.getTime());if(b>z.clockSkew*1e3)throw new A("clock skew of "+b/1e3+"s was greater than "+z.clockSkew+"s")}if(z.headers.forEach(function(e){if(de.params.headers.indexOf(e.toLowerCase())<0)throw new j(e+" was not a signed header")}),z.algorithms&&z.algorithms.indexOf(de.params.algorithm)===-1)throw new M(de.params.algorithm+" is not a supported algorithm");return de.algorithm=de.params.algorithm.toUpperCase(),de.keyId=de.params.keyId,de}},parser}var jsprim={},extsprintf={},hasRequiredExtsprintf;function requireExtsprintf(){if(hasRequiredExtsprintf)return extsprintf;hasRequiredExtsprintf=1;var t=requireAssert$1(),n=util$6;extsprintf.sprintf=l,extsprintf.printf=d,extsprintf.fprintf=m;function l(k){var A=["([^%]*)","%","(['\\-+ #0]*?)","([1-9]\\d*)?","(\\.([1-9]\\d*))?","[lhjztL]*?","([diouxXfFeEgGaAcCsSp%jr])"].join(""),B=new RegExp(A),M=Array.prototype.slice.call(arguments,1),j,I,P,$,z,N,F,U,J,te="",se=1;for(t.equal("string",typeof k);(J=B.exec(k))!==null;){if(te+=J[1],k=k.substring(J[0].length),j=J[2]||"",I=J[3]||0,P=J[4]||"",$=J[6],z=!1,F=!1,N=" ",$=="%"){te+="%";continue}if(M.length===0)throw new Error("too few args to sprintf");if(U=M.shift(),se++,j.match(/[\' #]/))throw new Error("unsupported flags: "+j);if(P.length>0)throw new Error("non-zero precision not supported");switch(j.match(/-/)&&(z=!0),j.match(/0/)&&(N="0"),j.match(/\+/)&&(F=!0),$){case"s":if(U==null)throw new Error("argument "+se+": attempted to print undefined or null as a string");te+=h(N,I,z,U.toString());break;case"d":U=Math.floor(U);case"f":F=F&&U>0?"+":"",te+=F+h(N,I,z,U.toString());break;case"x":te+=h(N,I,z,U.toString(16));break;case"j":I===0&&(I=10),te+=n.inspect(U,!1,I);break;case"r":te+=S(U);break;default:throw new Error("unsupported conversion: "+$)}}return te+=k,te}function d(){var k=Array.prototype.slice.call(arguments);k.unshift(process$1.stdout),m.apply(null,k)}function m(k){var A=Array.prototype.slice.call(arguments,1);return k.write(l.apply(this,A))}function h(k,A,B,M){for(var j=M;j.length<A;)B?j+=k:j=k+j;return j}function S(k){var A;if(!(k instanceof Error))throw new Error(l("invalid type for %%r: %j",k));if(A="EXCEPTION: "+k.constructor.name+": "+k.stack,k.cause&&typeof k.cause=="function"){var B=k.cause();B&&(A+=`
Caused by: `+S(B))}return A}return extsprintf}var verror,hasRequiredVerror;function requireVerror(){if(hasRequiredVerror)return verror;hasRequiredVerror=1;var t=requireAssert(),n=util$6,l=requireExtsprintf(),d=util$3.isError,m=l.sprintf;verror=S,S.VError=S,S.SError=k,S.WError=B,S.MultiError=A;function h(M){var j,I,P,$,z;if(t.object(M,"args"),t.bool(M.strict,"args.strict"),t.array(M.argv,"args.argv"),j=M.argv,j.length===0)I={},P=[];else if(d(j[0]))I={cause:j[0]},P=j.slice(1);else if(typeof j[0]=="object"){I={};for(z in j[0])I[z]=j[0][z];P=j.slice(1)}else t.string(j[0],"first argument to VError, SError, or WError constructor must be a string, object, or Error"),I={},P=j;return t.object(I),!I.strict&&!M.strict&&(P=P.map(function(N){return N===null?"null":N===void 0?"undefined":N})),P.length===0?$="":$=m.apply(null,P),{options:I,shortmessage:$}}function S(){var M,j,I,P,$,z,N;if(M=Array.prototype.slice.call(arguments,0),!(this instanceof S))return j=Object.create(S.prototype),S.apply(j,arguments),j;if(I=h({argv:M,strict:!1}),I.options.name&&(t.string(I.options.name,`error's "name" must be a string`),this.name=I.options.name),this.jse_shortmsg=I.shortmessage,z=I.shortmessage,P=I.options.cause,P&&(t.ok(d(P),"cause is not an Error"),this.jse_cause=P,I.options.skipCauseMessage||(z+=": "+P.message)),this.jse_info={},I.options.info)for(N in I.options.info)this.jse_info[N]=I.options.info[N];return this.message=z,Error.call(this,z),Error.captureStackTrace&&($=I.options.constructorOpt||this.constructor,Error.captureStackTrace(this,$)),this}n.inherits(S,Error),S.prototype.name="VError",S.prototype.toString=function(){var j=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(j+=": "+this.message),j},S.prototype.cause=function(){var j=S.cause(this);return j===null?void 0:j},S.cause=function(M){return t.ok(d(M),"err must be an Error"),d(M.jse_cause)?M.jse_cause:null},S.info=function(M){var j,I,P;if(t.ok(d(M),"err must be an Error"),I=S.cause(M),I!==null?j=S.info(I):j={},typeof M.jse_info=="object"&&M.jse_info!==null)for(P in M.jse_info)j[P]=M.jse_info[P];return j},S.findCauseByName=function(M,j){var I;for(t.ok(d(M),"err must be an Error"),t.string(j,"name"),t.ok(j.length>0,"name cannot be empty"),I=M;I!==null;I=S.cause(I))if(t.ok(d(I)),I.name==j)return I;return null},S.hasCauseWithName=function(M,j){return S.findCauseByName(M,j)!==null},S.fullStack=function(M){t.ok(d(M),"err must be an Error");var j=S.cause(M);return j?M.stack+`
caused by: `+S.fullStack(j):M.stack},S.errorFromList=function(M){return t.arrayOfObject(M,"errors"),M.length===0?null:(M.forEach(function(j){t.ok(d(j))}),M.length==1?M[0]:new A(M))},S.errorForEach=function(M,j){t.ok(d(M),"err must be an Error"),t.func(j,"func"),M instanceof A?M.errors().forEach(function(P){j(P)}):j(M)};function k(){var M,j,I,P;return M=Array.prototype.slice.call(arguments,0),this instanceof k?(I=h({argv:M,strict:!0}),P=I.options,S.call(this,P,"%s",I.shortmessage),this):(j=Object.create(k.prototype),k.apply(j,arguments),j)}n.inherits(k,S);function A(M){t.array(M,"list of errors"),t.ok(M.length>0,"must be at least one error"),this.ase_errors=M,S.call(this,{cause:M[0]},"first of %d error%s",M.length,M.length==1?"":"s")}n.inherits(A,S),A.prototype.name="MultiError",A.prototype.errors=function(){return this.ase_errors.slice(0)};function B(){var M,j,I,P;return M=Array.prototype.slice.call(arguments,0),this instanceof B?(I=h({argv:M,strict:!1}),P=I.options,P.skipCauseMessage=!0,S.call(this,P,"%s",I.shortmessage),this):(j=Object.create(B.prototype),B.apply(j,M),j)}return n.inherits(B,S),B.prototype.name="WError",B.prototype.toString=function(){var j=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(j+=": "+this.message),this.jse_cause&&this.jse_cause.message&&(j+="; caused by "+this.jse_cause.toString()),j},B.prototype.cause=function(j){return d(j)&&(this.jse_cause=j),this.jse_cause},verror}var validate$1={exports:{}},hasRequiredValidate$1;function requireValidate$1(){return hasRequiredValidate$1||(hasRequiredValidate$1=1,function(t){(function(n,l){t.exports?t.exports=l():n.jsonSchema=l()})(commonjsGlobal,function(){var n=d;n.Integer={type:"integer"};var l={String,Boolean,Number,Object,Array,Date};n.validate=d;function d(m,h){return d(m,h,{changing:!1})}n.checkPropertyChange=function(m,h,S){return d(m,h,{changing:S||"property"})};var d=n._validate=function(m,h,S){S||(S={});var k=S.changing;function A(I){return I.type||l[I.name]==I&&I.name.toLowerCase()}var B=[];function M(I,P,$,z){var N;$+=$?typeof z=="number"?"["+z+"]":typeof z>"u"?"":"."+z:z;function F(ve){B.push({property:$,message:ve})}if((typeof P!="object"||P instanceof Array)&&($||typeof P!="function")&&!(P&&A(P)))return typeof P=="function"?I instanceof P||F("is not an instance of the class/constructor "+P.name):P&&F("Invalid schema/property definition "+P),null;k&&P.readonly&&F("is a readonly field, it can not be changed"),P.extends&&M(I,P.extends,$,z);function U(ve,he){if(ve){if(typeof ve=="string"&&ve!="any"&&(ve=="null"?he!==null:typeof he!=ve)&&!(he instanceof Array&&ve=="array")&&!(he instanceof Date&&ve=="date")&&!(ve=="integer"&&he%1===0))return[{property:$,message:he+" - "+typeof he+" value found, but a "+ve+" is required"}];if(ve instanceof Array){for(var ke=[],T=0;T<ve.length&&(ke=U(ve[T],he)).length;T++);if(ke.length)return ke}else if(typeof ve=="object"){var u=B;B=[],M(he,ve,$);var p=B;return B=u,p}}return[]}if(I===void 0)P.required&&F("is missing and it is required");else if(B=B.concat(U(A(P),I)),P.disallow&&!U(P.disallow,I).length&&F(" disallowed value was matched"),I!==null){if(I instanceof Array){if(P.items){var J=P.items instanceof Array,te=P.items;for(z=0,N=I.length;z<N;z+=1)J&&(te=P.items[z]),S.coerce&&(I[z]=S.coerce(I[z],te)),B.concat(M(I[z],te,$,z))}P.minItems&&I.length<P.minItems&&F("There must be a minimum of "+P.minItems+" in the array"),P.maxItems&&I.length>P.maxItems&&F("There must be a maximum of "+P.maxItems+" in the array")}else(P.properties||P.additionalProperties)&&B.concat(j(I,P.properties,$,P.additionalProperties));if(P.pattern&&typeof I=="string"&&!I.match(P.pattern)&&F("does not match the regex pattern "+P.pattern),P.maxLength&&typeof I=="string"&&I.length>P.maxLength&&F("may only be "+P.maxLength+" characters long"),P.minLength&&typeof I=="string"&&I.length<P.minLength&&F("must be at least "+P.minLength+" characters long"),typeof P.minimum<"u"&&typeof I==typeof P.minimum&&P.minimum>I&&F("must have a minimum value of "+P.minimum),typeof P.maximum<"u"&&typeof I==typeof P.maximum&&P.maximum<I&&F("must have a maximum value of "+P.maximum),P.enum){var se=P.enum;N=se.length;for(var de,Q=0;Q<N;Q++)if(se[Q]===I){de=1;break}de||F("does not have a value in the enumeration "+se.join(", "))}typeof P.maxDecimal=="number"&&I.toString().match(new RegExp("\\.[0-9]{"+(P.maxDecimal+1)+",}"))&&F("may only have "+P.maxDecimal+" digits of decimal places")}return null}function j(I,P,$,z){if(typeof P=="object"){(typeof I!="object"||I instanceof Array)&&B.push({property:$,message:"an object is required"});for(var N in P)if(P.hasOwnProperty(N)&&N!="__proto__"&&N!="constructor"){var F=I.hasOwnProperty(N)?I[N]:void 0;if(F===void 0&&S.existingOnly)continue;var U=P[N];F===void 0&&U.default&&(F=I[N]=U.default),S.coerce&&N in I&&(F=I[N]=S.coerce(F,U)),M(F,U,$,N)}}for(N in I){if(I.hasOwnProperty(N)&&!(N.charAt(0)=="_"&&N.charAt(1)=="_")&&P&&!P[N]&&z===!1)if(S.filter){delete I[N];continue}else B.push({property:$,message:"The property "+N+" is not defined in the schema and the schema does not allow additional properties"});var J=P&&P[N]&&P[N].requires;J&&!(J in I)&&B.push({property:$,message:"the presence of the property "+N+" requires that "+J+" also be present"}),F=I[N],z&&(!(P&&typeof P=="object")||!(N in P))&&(S.coerce&&(F=I[N]=S.coerce(F,z)),M(F,z,$,N)),!k&&F&&F.$schema&&(B=B.concat(M(F,F.$schema,$,N)))}return B}return h&&M(m,h,"",k||""),!k&&m&&m.$schema&&M(m,m.$schema,"",""),{valid:!B.length,errors:B}};return n.mustBeValid=function(m){if(!m.valid)throw new TypeError(m.errors.map(function(h){return"for property "+h.property+": "+h.message}).join(`, 
`))},n})}(validate$1)),validate$1.exports}var hasRequiredJsprim;function requireJsprim(){if(hasRequiredJsprim)return jsprim;hasRequiredJsprim=1;var t=requireAssert(),n=requireExtsprintf(),l=requireVerror(),d=requireValidate$1();jsprim.deepCopy=m,jsprim.deepEqual=h,jsprim.isEmpty=S,jsprim.hasKey=k,jsprim.forEachKey=A,jsprim.pluck=B,jsprim.flattenObject=P,jsprim.flattenIter=j,jsprim.validateJsonObject=ee,jsprim.validateJsonObjectJS=ee,jsprim.randElt=oe,jsprim.extraProperties=Ye,jsprim.mergeObjects=We,jsprim.startsWith=$,jsprim.endsWith=z,jsprim.parseInteger=Y,jsprim.iso8601=N,jsprim.rfc1123=J,jsprim.parseDateTime=te,jsprim.hrtimediff=ue,jsprim.hrtimeDiff=ue,jsprim.hrtimeAccum=et,jsprim.hrtimeAdd=mt,jsprim.hrtimeNanosec=qe,jsprim.hrtimeMicrosec=rt,jsprim.hrtimeMillisec=Ve;function m(Xe){var Ge,nt,Et="__deepCopy";if(Xe&&Xe[Et])throw new Error("attempted deep copy of cyclic object");if(Xe&&Xe.constructor==Object){Ge={},Xe[Et]=!0;for(nt in Xe)nt!=Et&&(Ge[nt]=m(Xe[nt]));return delete Xe[Et],Ge}if(Xe&&Xe.constructor==Array){for(Ge=[],Xe[Et]=!0,nt=0;nt<Xe.length;nt++)Ge.push(m(Xe[nt]));return delete Xe[Et],Ge}return Xe}function h(Xe,Ge){if(typeof Xe!=typeof Ge)return!1;if(Xe===null||Ge===null||typeof Xe!="object")return Xe===Ge;if(Xe.constructor!=Ge.constructor)return!1;var nt;for(nt in Xe)if(!Ge.hasOwnProperty(nt)||!h(Xe[nt],Ge[nt]))return!1;for(nt in Ge)if(!Xe.hasOwnProperty(nt))return!1;return!0}function S(Xe){var Ge;for(Ge in Xe)return!1;return!0}function k(Xe,Ge){return t.equal(typeof Ge,"string"),Object.prototype.hasOwnProperty.call(Xe,Ge)}function A(Xe,Ge){for(var nt in Xe)k(Xe,nt)&&Ge(nt,Xe[nt])}function B(Xe,Ge){return t.equal(typeof Ge,"string"),M(Xe,Ge)}function M(Xe,Ge){if(!(Xe===null||typeof Xe!="object")){if(Xe.hasOwnProperty(Ge))return Xe[Ge];var nt=Ge.indexOf(".");if(nt!=-1){var Et=Ge.substr(0,nt);if(Xe.hasOwnProperty(Et))return M(Xe[Et],Ge.substr(nt+1))}}}function j(Xe,Ge,nt){I(Xe,Ge,[],nt)}function I(Xe,Ge,nt,Et){var Le,Oe;if(Ge===0){Le=nt.slice(0),Le.push(Xe),Et(Le);return}t.ok(Xe!==null),t.equal(typeof Xe,"object"),t.equal(typeof Ge,"number"),t.ok(Ge>=0);for(Oe in Xe)Le=nt.slice(0),Le.push(Oe),I(Xe[Oe],Ge-1,Le,Et)}function P(Xe,Ge){if(Ge===0)return[Xe];t.ok(Xe!==null),t.equal(typeof Xe,"object"),t.equal(typeof Ge,"number"),t.ok(Ge>=0);var nt=[],Et;for(Et in Xe)P(Xe[Et],Ge-1).forEach(function(Le){nt.push([Et].concat(Le))});return nt}function $(Xe,Ge){return Xe.substr(0,Ge.length)==Ge}function z(Xe,Ge){return Xe.substr(Xe.length-Ge.length,Ge.length)==Ge}function N(Xe){return typeof Xe=="number"&&(Xe=new Date(Xe)),t.ok(Xe.constructor===Date),n.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",Xe.getUTCFullYear(),Xe.getUTCMonth()+1,Xe.getUTCDate(),Xe.getUTCHours(),Xe.getUTCMinutes(),Xe.getUTCSeconds(),Xe.getUTCMilliseconds())}var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],U=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function J(Xe){return n.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",U[Xe.getUTCDay()],Xe.getUTCDate(),F[Xe.getUTCMonth()],Xe.getUTCFullYear(),Xe.getUTCHours(),Xe.getUTCMinutes(),Xe.getUTCSeconds())}function te(Xe){var Ge=+Xe;return isNaN(Ge)?new Date(Xe):new Date(Ge)}var se=Number.MAX_SAFE_INTEGER||9007199254740991,de=Number.MIN_SAFE_INTEGER||-9007199254740991,Q={base:10,allowSign:!0,allowPrefix:!1,allowTrailing:!1,allowImprecise:!1,trimWhitespace:!1,leadingZeroIsOctal:!1},ve=48,he=57,ke=65,T=66,u=79,p=84,b=88,e=90,c=97,y=98,w=111,v=116,o=120,x=122,E=48,R=55,H=87;function Y(Xe,Ge){t.string(Xe,"str"),t.optionalObject(Ge,"options");var nt=!1,Et=Q;Ge&&(nt=k(Ge,"base"),Et=We(Et,Ge),t.number(Et.base,"options.base"),t.ok(Et.base>=2,"options.base >= 2"),t.ok(Et.base<=36,"options.base <= 36"),t.bool(Et.allowSign,"options.allowSign"),t.bool(Et.allowPrefix,"options.allowPrefix"),t.bool(Et.allowTrailing,"options.allowTrailing"),t.bool(Et.allowImprecise,"options.allowImprecise"),t.bool(Et.trimWhitespace,"options.trimWhitespace"),t.bool(Et.leadingZeroIsOctal,"options.leadingZeroIsOctal"),Et.leadingZeroIsOctal&&t.ok(!nt,'"base" and "leadingZeroIsOctal" are mutually exclusive'));var Le,Oe=-1,$t=Et.base,dt,gt=1,Lt=0,xe=0,X=Xe.length;if(Et.trimWhitespace)for(;xe<X&&L(Xe.charCodeAt(xe));)++xe;for(Et.allowSign&&(Xe[xe]==="-"?(xe+=1,gt=-1):Xe[xe]==="+"&&(xe+=1)),Xe[xe]==="0"&&(Et.allowPrefix&&(Oe=D(Xe.charCodeAt(xe+1)),Oe!==-1&&(!nt||Oe===$t)&&($t=Oe,xe+=2)),Oe===-1&&Et.leadingZeroIsOctal&&($t=8)),dt=xe;xe<X&&(Le=Z(Xe.charCodeAt(xe)),Le!==-1&&Le<$t);++xe)Lt*=$t,Lt+=Le;if(dt===xe)return new Error("invalid number: "+JSON.stringify(Xe));if(Et.trimWhitespace)for(;xe<X&&L(Xe.charCodeAt(xe));)++xe;if(xe<X&&!Et.allowTrailing)return new Error("trailing characters after number: "+JSON.stringify(Xe.slice(xe)));if(Lt===0)return 0;var pe=Lt*gt;return!Et.allowImprecise&&(Lt>se||pe<de)?new Error("number is outside of the supported range: "+JSON.stringify(Xe.slice(dt,xe))):pe}function Z(Xe){return Xe>=ve&&Xe<=he?Xe-E:Xe>=ke&&Xe<=e?Xe-R:Xe>=c&&Xe<=x?Xe-H:-1}function L(Xe){return Xe===32||Xe>=9&&Xe<=13||Xe===160||Xe===5760||Xe===6158||Xe>=8192&&Xe<=8202||Xe===8232||Xe===8233||Xe===8239||Xe===8287||Xe===12288||Xe===65279}function D(Xe){return Xe===y||Xe===T?2:Xe===w||Xe===u?8:Xe===v||Xe===p?10:Xe===o||Xe===b?16:-1}function ee(Xe,Ge){var nt=d.validate(Ge,Xe);if(nt.errors.length===0)return null;var Et=nt.errors[0],Le=Et.property,Oe=Et.message.toLowerCase(),$t,dt;($t=Oe.indexOf("the property "))!=-1&&(dt=Oe.indexOf(" is not defined in the schema and the schema does not allow additional properties"))!=-1&&($t+=13,Le===""?Le=Oe.substr($t,dt-$t):Le=Le+"."+Oe.substr($t,dt-$t),Oe="unsupported property");var gt=new l.VError('property "%s": %s',Le,Oe);return gt.jsv_details=Et,gt}function oe(Xe){return t.ok(Array.isArray(Xe)&&Xe.length>0,"randElt argument must be a non-empty array"),Xe[Math.floor(Math.random()*Xe.length)]}function fe(Xe){t.ok(Xe[0]>=0&&Xe[1]>=0,"negative numbers not allowed in hrtimes"),t.ok(Xe[1]<1e9,"nanoseconds column overflow")}function ue(Xe,Ge){fe(Xe),fe(Ge),t.ok(Xe[0]>Ge[0]||Xe[0]==Ge[0]&&Xe[1]>=Ge[1],"negative differences not allowed");var nt=[Xe[0]-Ge[0],0];return Xe[1]>=Ge[1]?nt[1]=Xe[1]-Ge[1]:(nt[0]--,nt[1]=1e9-(Ge[1]-Xe[1])),nt}function qe(Xe){return fe(Xe),Math.floor(Xe[0]*1e9+Xe[1])}function rt(Xe){return fe(Xe),Math.floor(Xe[0]*1e6+Xe[1]/1e3)}function Ve(Xe){return fe(Xe),Math.floor(Xe[0]*1e3+Xe[1]/1e6)}function et(Xe,Ge){return fe(Xe),fe(Ge),Xe[1]+=Ge[1],Xe[1]>=1e9&&(Xe[0]++,Xe[1]-=1e9),Xe[0]+=Ge[0],Xe}function mt(Xe,Ge){fe(Xe);var nt=[Xe[0],Xe[1]];return et(nt,Ge)}function Ye(Xe,Ge){t.ok(typeof Xe=="object"&&Xe!==null,"obj argument must be a non-null object"),t.ok(Array.isArray(Ge),"allowed argument must be an array of strings");for(var nt=0;nt<Ge.length;nt++)t.ok(typeof Ge[nt]=="string","allowed argument must be an array of strings");return Object.keys(Xe).filter(function(Et){return Ge.indexOf(Et)===-1})}function We(Xe,Ge,nt){var Et,Le;if(Et={},nt)for(Le in nt)Et[Le]=nt[Le];if(Xe)for(Le in Xe)Et[Le]=Xe[Le];if(Ge)for(Le in Ge)Et[Le]=Ge[Le];return Et}return jsprim}var signer,hasRequiredSigner;function requireSigner(){if(hasRequiredSigner)return signer;hasRequiredSigner=1;var t=requireAssert(),n=requireCryptoBrowserify();requireStreamHttp();var l=util$6,d=requireLib$3(),m=requireJsprim(),h=requireUtils$1(),S=util$6.format,k=h.HASH_ALGOS,A=h.PK_ALGOS,B=h.InvalidAlgorithmError,M=h.HttpSignatureError,j=h.validateAlgorithm,I='Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"';function P(N){M.call(this,N,P)}l.inherits(P,M);function $(N){M.call(this,N,$)}l.inherits($,M);function z(N){t.object(N,"options");var F=[];if(N.algorithm!==void 0&&(t.string(N.algorithm,"options.algorithm"),F=j(N.algorithm)),this.rs_alg=F,N.sign!==void 0)t.func(N.sign,"options.sign"),this.rs_signFunc=N.sign;else if(F[0]==="hmac"&&N.key!==void 0){if(t.string(N.keyId,"options.keyId"),this.rs_keyId=N.keyId,typeof N.key!="string"&&!Buffer$C.isBuffer(N.key))throw new TypeError("options.key for HMAC must be a string or Buffer");this.rs_signer=n.createHmac(F[1].toUpperCase(),N.key),this.rs_signer.sign=function(){var J=this.digest("base64");return{hashAlgorithm:F[1],toString:function(){return J}}}}else if(N.key!==void 0){var U=N.key;if((typeof U=="string"||Buffer$C.isBuffer(U))&&(U=d.parsePrivateKey(U)),t.ok(d.PrivateKey.isPrivateKey(U,[1,2]),"options.key must be a sshpk.PrivateKey"),this.rs_key=U,t.string(N.keyId,"options.keyId"),this.rs_keyId=N.keyId,!A[U.type])throw new B(U.type.toUpperCase()+" type keys are not supported");if(F[0]!==void 0&&U.type!==F[0])throw new B("options.key must be a "+F[0].toUpperCase()+" key, was given a "+U.type.toUpperCase()+" key instead");this.rs_signer=U.createSign(F[1])}else throw new TypeError("options.sign (func) or options.key is required");this.rs_headers=[],this.rs_lines=[]}return z.prototype.writeHeader=function(N,F){if(t.string(N,"header"),N=N.toLowerCase(),t.string(F,"value"),this.rs_headers.push(N),this.rs_signFunc)this.rs_lines.push(N+": "+F);else{var U=N+": "+F;this.rs_headers.length>0&&(U=`
`+U),this.rs_signer.update(U)}return F},z.prototype.writeDateHeader=function(){return this.writeHeader("date",m.rfc1123(new Date))},z.prototype.writeTarget=function(N,F){t.string(N,"method"),t.string(F,"path"),N=N.toLowerCase(),this.writeHeader("(request-target)",N+" "+F)},z.prototype.sign=function(N){if(t.func(N,"callback"),this.rs_headers.length<1)throw new Error("At least one header must be signed");var F,U;if(this.rs_signFunc){var J=this.rs_lines.join(`
`),te=this;this.rs_signFunc(J,function(Q,ve){if(Q){N(Q);return}try{t.object(ve,"signature"),t.string(ve.keyId,"signature.keyId"),t.string(ve.algorithm,"signature.algorithm"),t.string(ve.signature,"signature.signature"),F=j(ve.algorithm),U=S(I,ve.keyId,ve.algorithm,te.rs_headers.join(" "),ve.signature)}catch(he){N(he);return}N(null,U)})}else{try{var se=this.rs_signer.sign()}catch(Q){N(Q);return}F=(this.rs_alg[0]||this.rs_key.type)+"-"+se.hashAlgorithm;var de=se.toString();U=S(I,this.rs_keyId,F,this.rs_headers.join(" "),de),N(null,U)}},signer={isSigner:function(N){return typeof N=="object"&&N instanceof z},createSigner:function(F){return new z(F)},signRequest:function(F,U){t.object(F,"request"),t.object(U,"options"),t.optionalString(U.algorithm,"options.algorithm"),t.string(U.keyId,"options.keyId"),t.optionalArrayOfString(U.headers,"options.headers"),t.optionalString(U.httpVersion,"options.httpVersion"),F.getHeader("Date")||F.setHeader("Date",m.rfc1123(new Date)),U.headers||(U.headers=["date"]),U.httpVersion||(U.httpVersion="1.1");var J=[];U.algorithm&&(U.algorithm=U.algorithm.toLowerCase(),J=j(U.algorithm));var te,se="";for(te=0;te<U.headers.length;te++){if(typeof U.headers[te]!="string")throw new TypeError("options.headers must be an array of Strings");var de=U.headers[te].toLowerCase();if(de==="request-line")if(!U.strict)se+=F.method+" "+F.path+" HTTP/"+U.httpVersion;else throw new $("request-line is not a valid header with strict parsing enabled.");else if(de==="(request-target)")se+="(request-target): "+F.method.toLowerCase()+" "+F.path;else{var Q=F.getHeader(de);if(Q===void 0||Q==="")throw new P(de+" was not in the request");se+=de+": "+Q}te+1<U.headers.length&&(se+=`
`)}F.hasOwnProperty("_stringToSign")&&(F._stringToSign=se);var ve;if(J[0]==="hmac"){if(typeof U.key!="string"&&!Buffer$C.isBuffer(U.key))throw new TypeError("options.key must be a string or Buffer");var he=n.createHmac(J[1].toUpperCase(),U.key);he.update(se),ve=he.digest("base64")}else{var ke=U.key;if((typeof ke=="string"||Buffer$C.isBuffer(ke))&&(ke=d.parsePrivateKey(U.key)),t.ok(d.PrivateKey.isPrivateKey(ke,[1,2]),"options.key must be a sshpk.PrivateKey"),!A[ke.type])throw new B(ke.type.toUpperCase()+" type keys are not supported");if(J[0]!==void 0&&ke.type!==J[0])throw new B("options.key must be a "+J[0].toUpperCase()+" key, was given a "+ke.type.toUpperCase()+" key instead");var T=ke.createSign(J[1]);T.update(se);var u=T.sign();if(!k[u.hashAlgorithm])throw new B(u.hashAlgorithm.toUpperCase()+" is not a supported hash algorithm");U.algorithm=ke.type+"-"+u.hashAlgorithm,ve=u.toString(),t.notStrictEqual(ve,"","empty signature produced")}var p=U.authorizationHeaderName||"Authorization";return F.setHeader(p,S(I,U.keyId,U.algorithm,U.headers.join(" "),ve)),!0}},signer}var verify,hasRequiredVerify;function requireVerify(){if(hasRequiredVerify)return verify;hasRequiredVerify=1;var t=requireAssert(),n=requireCryptoBrowserify(),l=requireLib$3(),d=requireUtils$1();d.HASH_ALGOS,d.PK_ALGOS,d.InvalidAlgorithmError,d.HttpSignatureError;var m=d.validateAlgorithm;return verify={verifySignature:function(S,k){t.object(S,"parsedSignature"),(typeof k=="string"||Buffer$C.isBuffer(k))&&(k=l.parseKey(k)),t.ok(l.Key.isKey(k,[1,1]),"pubkey must be a sshpk.Key");var A=m(S.algorithm);if(A[0]==="hmac"||A[0]!==k.type)return!1;var B=k.createVerify(A[1]);return B.update(S.signingString),B.verify(S.params.signature,"base64")},verifyHMAC:function(S,k){t.object(S,"parsedHMAC"),t.string(k,"secret");var A=m(S.algorithm);if(A[0]!=="hmac")return!1;var B=A[1].toUpperCase(),M=n.createHmac(B,k);M.update(S.signingString);var j=n.createHmac(B,k);j.update(M.digest()),j=j.digest();var I=n.createHmac(B,k);return I.update(new Buffer$C(S.params.signature,"base64")),I=I.digest(),typeof j=="string"?j===I:Buffer$C.isBuffer(j)&&!j.equals?j.toString("binary")===I.toString("binary"):j.equals(I)}},verify}var lib$2,hasRequiredLib$2;function requireLib$2(){if(hasRequiredLib$2)return lib$2;hasRequiredLib$2=1;var t=requireParser(),n=requireSigner(),l=requireVerify(),d=requireUtils$1();return lib$2={parse:t.parseRequest,parseRequest:t.parseRequest,sign:n.signRequest,signRequest:n.signRequest,createSigner:n.createSigner,isSigner:n.isSigner,sshKeyToPEM:d.sshKeyToPEM,sshKeyFingerprint:d.fingerprint,pemToRsaSSHKey:d.pemToRsaSSHKey,verify:l.verifySignature,verifySignature:l.verifySignature,verifyHMAC:l.verifyHMAC},lib$2}var mimeTypes={};const require$$0$1={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};/*!
 * mime-db
 * Copyright(c) 2014 Jonathan Ong
 * Copyright(c) 2015-2022 Douglas Christopher Wilson
 * MIT Licensed
 */var mimeDb,hasRequiredMimeDb;function requireMimeDb(){return hasRequiredMimeDb||(hasRequiredMimeDb=1,mimeDb=require$$0$1),mimeDb}var pathBrowserify,hasRequiredPathBrowserify;function requirePathBrowserify(){if(hasRequiredPathBrowserify)return pathBrowserify;hasRequiredPathBrowserify=1;function t(m){if(typeof m!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(m))}function n(m,h){for(var S="",k=0,A=-1,B=0,M,j=0;j<=m.length;++j){if(j<m.length)M=m.charCodeAt(j);else{if(M===47)break;M=47}if(M===47){if(!(A===j-1||B===1))if(A!==j-1&&B===2){if(S.length<2||k!==2||S.charCodeAt(S.length-1)!==46||S.charCodeAt(S.length-2)!==46){if(S.length>2){var I=S.lastIndexOf("/");if(I!==S.length-1){I===-1?(S="",k=0):(S=S.slice(0,I),k=S.length-1-S.lastIndexOf("/")),A=j,B=0;continue}}else if(S.length===2||S.length===1){S="",k=0,A=j,B=0;continue}}h&&(S.length>0?S+="/..":S="..",k=2)}else S.length>0?S+="/"+m.slice(A+1,j):S=m.slice(A+1,j),k=j-A-1;A=j,B=0}else M===46&&B!==-1?++B:B=-1}return S}function l(m,h){var S=h.dir||h.root,k=h.base||(h.name||"")+(h.ext||"");return S?S===h.root?S+k:S+m+k:k}var d={resolve:function(){for(var h="",S=!1,k,A=arguments.length-1;A>=-1&&!S;A--){var B;A>=0?B=arguments[A]:(k===void 0&&(k=process$1.cwd()),B=k),t(B),B.length!==0&&(h=B+"/"+h,S=B.charCodeAt(0)===47)}return h=n(h,!S),S?h.length>0?"/"+h:"/":h.length>0?h:"."},normalize:function(h){if(t(h),h.length===0)return".";var S=h.charCodeAt(0)===47,k=h.charCodeAt(h.length-1)===47;return h=n(h,!S),h.length===0&&!S&&(h="."),h.length>0&&k&&(h+="/"),S?"/"+h:h},isAbsolute:function(h){return t(h),h.length>0&&h.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var h,S=0;S<arguments.length;++S){var k=arguments[S];t(k),k.length>0&&(h===void 0?h=k:h+="/"+k)}return h===void 0?".":d.normalize(h)},relative:function(h,S){if(t(h),t(S),h===S||(h=d.resolve(h),S=d.resolve(S),h===S))return"";for(var k=1;k<h.length&&h.charCodeAt(k)===47;++k);for(var A=h.length,B=A-k,M=1;M<S.length&&S.charCodeAt(M)===47;++M);for(var j=S.length,I=j-M,P=B<I?B:I,$=-1,z=0;z<=P;++z){if(z===P){if(I>P){if(S.charCodeAt(M+z)===47)return S.slice(M+z+1);if(z===0)return S.slice(M+z)}else B>P&&(h.charCodeAt(k+z)===47?$=z:z===0&&($=0));break}var N=h.charCodeAt(k+z),F=S.charCodeAt(M+z);if(N!==F)break;N===47&&($=z)}var U="";for(z=k+$+1;z<=A;++z)(z===A||h.charCodeAt(z)===47)&&(U.length===0?U+="..":U+="/..");return U.length>0?U+S.slice(M+$):(M+=$,S.charCodeAt(M)===47&&++M,S.slice(M))},_makeLong:function(h){return h},dirname:function(h){if(t(h),h.length===0)return".";for(var S=h.charCodeAt(0),k=S===47,A=-1,B=!0,M=h.length-1;M>=1;--M)if(S=h.charCodeAt(M),S===47){if(!B){A=M;break}}else B=!1;return A===-1?k?"/":".":k&&A===1?"//":h.slice(0,A)},basename:function(h,S){if(S!==void 0&&typeof S!="string")throw new TypeError('"ext" argument must be a string');t(h);var k=0,A=-1,B=!0,M;if(S!==void 0&&S.length>0&&S.length<=h.length){if(S.length===h.length&&S===h)return"";var j=S.length-1,I=-1;for(M=h.length-1;M>=0;--M){var P=h.charCodeAt(M);if(P===47){if(!B){k=M+1;break}}else I===-1&&(B=!1,I=M+1),j>=0&&(P===S.charCodeAt(j)?--j===-1&&(A=M):(j=-1,A=I))}return k===A?A=I:A===-1&&(A=h.length),h.slice(k,A)}else{for(M=h.length-1;M>=0;--M)if(h.charCodeAt(M)===47){if(!B){k=M+1;break}}else A===-1&&(B=!1,A=M+1);return A===-1?"":h.slice(k,A)}},extname:function(h){t(h);for(var S=-1,k=0,A=-1,B=!0,M=0,j=h.length-1;j>=0;--j){var I=h.charCodeAt(j);if(I===47){if(!B){k=j+1;break}continue}A===-1&&(B=!1,A=j+1),I===46?S===-1?S=j:M!==1&&(M=1):S!==-1&&(M=-1)}return S===-1||A===-1||M===0||M===1&&S===A-1&&S===k+1?"":h.slice(S,A)},format:function(h){if(h===null||typeof h!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof h);return l("/",h)},parse:function(h){t(h);var S={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return S;var k=h.charCodeAt(0),A=k===47,B;A?(S.root="/",B=1):B=0;for(var M=-1,j=0,I=-1,P=!0,$=h.length-1,z=0;$>=B;--$){if(k=h.charCodeAt($),k===47){if(!P){j=$+1;break}continue}I===-1&&(P=!1,I=$+1),k===46?M===-1?M=$:z!==1&&(z=1):M!==-1&&(z=-1)}return M===-1||I===-1||z===0||z===1&&M===I-1&&M===j+1?I!==-1&&(j===0&&A?S.base=S.name=h.slice(1,I):S.base=S.name=h.slice(j,I)):(j===0&&A?(S.name=h.slice(1,M),S.base=h.slice(1,I)):(S.name=h.slice(j,M),S.base=h.slice(j,I)),S.ext=h.slice(M,I)),j>0?S.dir=h.slice(0,j-1):A&&(S.dir="/"),S},sep:"/",delimiter:":",win32:null,posix:null};return d.posix=d,pathBrowserify=d,pathBrowserify}/*!
 * mime-types
 * Copyright(c) 2014 Jonathan Ong
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */var hasRequiredMimeTypes;function requireMimeTypes(){return hasRequiredMimeTypes||(hasRequiredMimeTypes=1,function(t){var n=requireMimeDb(),l=requirePathBrowserify().extname,d=/^\s*([^;\s]*)(?:;|\s|$)/,m=/^text\//i;t.charset=h,t.charsets={lookup:h},t.contentType=S,t.extension=k,t.extensions=Object.create(null),t.lookup=A,t.types=Object.create(null),B(t.extensions,t.types);function h(M){if(!M||typeof M!="string")return!1;var j=d.exec(M),I=j&&n[j[1].toLowerCase()];return I&&I.charset?I.charset:j&&m.test(j[1])?"UTF-8":!1}function S(M){if(!M||typeof M!="string")return!1;var j=M.indexOf("/")===-1?t.lookup(M):M;if(!j)return!1;if(j.indexOf("charset")===-1){var I=t.charset(j);I&&(j+="; charset="+I.toLowerCase())}return j}function k(M){if(!M||typeof M!="string")return!1;var j=d.exec(M),I=j&&t.extensions[j[1].toLowerCase()];return!I||!I.length?!1:I[0]}function A(M){if(!M||typeof M!="string")return!1;var j=l("x."+M).toLowerCase().substr(1);return j&&t.types[j]||!1}function B(M,j){var I=["nginx","apache",void 0,"iana"];Object.keys(n).forEach(function($){var z=n[$],N=z.extensions;if(!(!N||!N.length)){M[$]=N;for(var F=0;F<N.length;F++){var U=N[F];if(j[U]){var J=I.indexOf(n[j[U]].source),te=I.indexOf(z.source);if(j[U]!=="application/octet-stream"&&(J>te||J===te&&j[U].substr(0,12)==="application/"))continue}j[U]=$}}})}}(mimeTypes)),mimeTypes}var caseless={exports:{}},hasRequiredCaseless;function requireCaseless(){if(hasRequiredCaseless)return caseless.exports;hasRequiredCaseless=1;function t(n){this.dict=n||{}}return t.prototype.set=function(n,l,d){if(typeof n=="object")for(var m in n)this.set(m,n[m],l);else{typeof d>"u"&&(d=!0);var h=this.has(n);return!d&&h?this.dict[h]=this.dict[h]+","+l:this.dict[h||n]=l,h}},t.prototype.has=function(d){for(var l=Object.keys(this.dict),d=d.toLowerCase(),m=0;m<l.length;m++)if(l[m].toLowerCase()===d)return l[m];return!1},t.prototype.get=function(n){n=n.toLowerCase();var l,d,m=this.dict;return Object.keys(m).forEach(function(h){d=h.toLowerCase(),n===d&&(l=m[h])}),l},t.prototype.swap=function(n){var l=this.has(n);if(l!==n){if(!l)throw new Error('There is no header than matches "'+n+'"');this.dict[n]=this.dict[l],delete this.dict[l]}},t.prototype.del=function(n){var l=this.has(n);return delete this.dict[l||n]},caseless.exports=function(n){return new t(n)},caseless.exports.httpify=function(n,l){var d=new t(l);return n.setHeader=function(m,h,S){if(!(typeof h>"u"))return d.set(m,h,S)},n.hasHeader=function(m){return d.has(m)},n.getHeader=function(m){return d.get(m)},n.removeHeader=function(m){return d.del(m)},n.headers=d.dict,d},caseless.exports}var foreverAgent,hasRequiredForeverAgent;function requireForeverAgent(){if(hasRequiredForeverAgent)return foreverAgent;hasRequiredForeverAgent=1,foreverAgent=S,S.SSL=k;var t=util$6,n=requireStreamHttp().Agent,l=require$$1$5,d=require$$1$5,m=requireHttpsBrowserify().Agent;function h(B,M){var j="";return typeof B=="string"?j=B+":"+M:j=B.host+":"+B.port+":"+(B.localAddress?B.localAddress+":":":"),j}function S(B){var M=this;M.options=B||{},M.requests={},M.sockets={},M.freeSockets={},M.maxSockets=M.options.maxSockets||n.defaultMaxSockets,M.minSockets=M.options.minSockets||S.defaultMinSockets,M.on("free",function(j,I,P){var $=h(I,P);if(M.requests[$]&&M.requests[$].length)M.requests[$].shift().onSocket(j);else if(M.sockets[$].length<M.minSockets){M.freeSockets[$]||(M.freeSockets[$]=[]),M.freeSockets[$].push(j);var z=function(){j.destroy()};j._onIdleError=z,j.on("error",z)}else j.destroy()})}t.inherits(S,n),S.defaultMinSockets=5,S.prototype.createConnection=l.createConnection,S.prototype.addRequestNoreuse=n.prototype.addRequest,S.prototype.addRequest=function(B,M,j){var I=h(M,j);if(typeof M!="string"){var P=M;j=P.port,M=P.host}if(this.freeSockets[I]&&this.freeSockets[I].length>0&&!B.useChunkedEncodingByDefault){var $=this.freeSockets[I].pop();$.removeListener("error",$._onIdleError),delete $._onIdleError,B._reusedSocket=!0,B.onSocket($)}else this.addRequestNoreuse(B,M,j)},S.prototype.removeSocket=function(B,M,j,I){if(this.sockets[M]){var P=this.sockets[M].indexOf(B);P!==-1&&this.sockets[M].splice(P,1)}else this.sockets[M]&&this.sockets[M].length===0&&(delete this.sockets[M],delete this.requests[M]);if(this.freeSockets[M]){var P=this.freeSockets[M].indexOf(B);P!==-1&&(this.freeSockets[M].splice(P,1),this.freeSockets[M].length===0&&delete this.freeSockets[M])}this.requests[M]&&this.requests[M].length&&this.createSocket(M,j,I).emit("free")};function k(B){S.call(this,B)}t.inherits(k,S),k.prototype.createConnection=A,k.prototype.addRequestNoreuse=m.prototype.addRequest;function A(B,M,j){return typeof B=="object"?j=B:typeof M=="object"?j=M:typeof j=="object"?j=j:j={},typeof B=="number"&&(j.port=B),typeof M=="string"&&(j.host=M),d.connect(j)}return foreverAgent}var browser,hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,browser=typeof self=="object"?self.FormData:window.FormData),browser}var isstream={exports:{}},hasRequiredIsstream;function requireIsstream(){if(hasRequiredIsstream)return isstream.exports;hasRequiredIsstream=1;var t=requireStreamBrowserify();function n(h){return h instanceof t.Stream}function l(h){return n(h)&&typeof h._read=="function"&&typeof h._readableState=="object"}function d(h){return n(h)&&typeof h._write=="function"&&typeof h._writableState=="object"}function m(h){return l(h)&&d(h)}return isstream.exports=n,isstream.exports.isReadable=l,isstream.exports.isWritable=d,isstream.exports.isDuplex=m,isstream.exports}var isTypedarray,hasRequiredIsTypedarray;function requireIsTypedarray(){if(hasRequiredIsTypedarray)return isTypedarray;hasRequiredIsTypedarray=1,isTypedarray=l,l.strict=d,l.loose=m;var t=Object.prototype.toString,n={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function l(h){return d(h)||m(h)}function d(h){return h instanceof Int8Array||h instanceof Int16Array||h instanceof Int32Array||h instanceof Uint8Array||h instanceof Uint8ClampedArray||h instanceof Uint16Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array}function m(h){return n[t.call(h)]}return isTypedarray}var getProxyFromURI_1,hasRequiredGetProxyFromURI;function requireGetProxyFromURI(){if(hasRequiredGetProxyFromURI)return getProxyFromURI_1;hasRequiredGetProxyFromURI=1;function t(m){return m.replace(/^\.*/,".").toLowerCase()}function n(m){m=m.trim().toLowerCase();var h=m.split(":",2),S=t(h[0]),k=h[1],A=m.indexOf(":")>-1;return{hostname:S,port:k,hasPort:A}}function l(m,h){var S=m.port||(m.protocol==="https:"?"443":"80"),k=t(m.hostname),A=h.split(",");return A.map(n).some(function(B){var M=k.indexOf(B.hostname),j=M>-1&&M===k.length-B.hostname.length;return B.hasPort?S===B.port&&j:j})}function d(m){var h=process$1.env.NO_PROXY||process$1.env.no_proxy||"";return h==="*"||h!==""&&l(m,h)?null:m.protocol==="http:"?process$1.env.HTTP_PROXY||process$1.env.http_proxy||null:m.protocol==="https:"&&(process$1.env.HTTPS_PROXY||process$1.env.https_proxy||process$1.env.HTTP_PROXY||process$1.env.http_proxy)||null}return getProxyFromURI_1=d,getProxyFromURI_1}var querystring={},utils,hasRequiredUtils;function requireUtils(){if(hasRequiredUtils)return utils;hasRequiredUtils=1;var t=Object.prototype.hasOwnProperty,n=function(){for(var j=[],I=0;I<256;++I)j.push("%"+((I<16?"0":"")+I.toString(16)).toUpperCase());return j}(),l=function(I){for(var P;I.length;){var $=I.pop();if(P=$.obj[$.prop],Array.isArray(P)){for(var z=[],N=0;N<P.length;++N)typeof P[N]<"u"&&z.push(P[N]);$.obj[$.prop]=z}}return P},d=function(I,P){for(var $=P&&P.plainObjects?Object.create(null):{},z=0;z<I.length;++z)typeof I[z]<"u"&&($[z]=I[z]);return $},m=function j(I,P,$){if(!P)return I;if(typeof P!="object"){if(Array.isArray(I))I.push(P);else if(I&&typeof I=="object")($&&($.plainObjects||$.allowPrototypes)||!t.call(Object.prototype,P))&&(I[P]=!0);else return[I,P];return I}if(!I||typeof I!="object")return[I].concat(P);var z=I;return Array.isArray(I)&&!Array.isArray(P)&&(z=d(I,$)),Array.isArray(I)&&Array.isArray(P)?(P.forEach(function(N,F){if(t.call(I,F)){var U=I[F];U&&typeof U=="object"&&N&&typeof N=="object"?I[F]=j(U,N,$):I.push(N)}else I[F]=N}),I):Object.keys(P).reduce(function(N,F){var U=P[F];return t.call(N,F)?N[F]=j(N[F],U,$):N[F]=U,N},z)},h=function(I,P){return Object.keys(P).reduce(function($,z){return $[z]=P[z],$},I)},S=function(j){try{return decodeURIComponent(j.replace(/\+/g," "))}catch{return j}},k=function(I){if(I.length===0)return I;for(var P=typeof I=="string"?I:String(I),$="",z=0;z<P.length;++z){var N=P.charCodeAt(z);if(N===45||N===46||N===95||N===126||N>=48&&N<=57||N>=65&&N<=90||N>=97&&N<=122){$+=P.charAt(z);continue}if(N<128){$=$+n[N];continue}if(N<2048){$=$+(n[192|N>>6]+n[128|N&63]);continue}if(N<55296||N>=57344){$=$+(n[224|N>>12]+n[128|N>>6&63]+n[128|N&63]);continue}z+=1,N=65536+((N&1023)<<10|P.charCodeAt(z)&1023),$+=n[240|N>>18]+n[128|N>>12&63]+n[128|N>>6&63]+n[128|N&63]}return $},A=function(I){for(var P=[{obj:{o:I},prop:"o"}],$=[],z=0;z<P.length;++z)for(var N=P[z],F=N.obj[N.prop],U=Object.keys(F),J=0;J<U.length;++J){var te=U[J],se=F[te];typeof se=="object"&&se!==null&&$.indexOf(se)===-1&&(P.push({obj:F,prop:te}),$.push(se))}return l(P)},B=function(I){return Object.prototype.toString.call(I)==="[object RegExp]"},M=function(I){return I===null||typeof I>"u"?!1:!!(I.constructor&&I.constructor.isBuffer&&I.constructor.isBuffer(I))};return utils={arrayToObject:d,assign:h,compact:A,decode:S,encode:k,isBuffer:M,isRegExp:B,merge:m},utils}var formats,hasRequiredFormats$1;function requireFormats$1(){if(hasRequiredFormats$1)return formats;hasRequiredFormats$1=1;var t=String.prototype.replace,n=/%20/g;return formats={default:"RFC3986",formatters:{RFC1738:function(l){return t.call(l,n,"+")},RFC3986:function(l){return String(l)}},RFC1738:"RFC1738",RFC3986:"RFC3986"},formats}var stringify_1,hasRequiredStringify;function requireStringify(){if(hasRequiredStringify)return stringify_1;hasRequiredStringify=1;var t=requireUtils(),n=requireFormats$1(),l={brackets:function(M){return M+"[]"},indices:function(M,j){return M+"["+j+"]"},repeat:function(M){return M}},d=Array.isArray,m=Array.prototype.push,h=function(B,M){m.apply(B,d(M)?M:[M])},S=Date.prototype.toISOString,k={delimiter:"&",encode:!0,encoder:t.encode,encodeValuesOnly:!1,serializeDate:function(M){return S.call(M)},skipNulls:!1,strictNullHandling:!1},A=function B(M,j,I,P,$,z,N,F,U,J,te,se){var de=M;if(typeof N=="function"?de=N(j,de):de instanceof Date&&(de=J(de)),de===null){if(P)return z&&!se?z(j,k.encoder):j;de=""}if(typeof de=="string"||typeof de=="number"||typeof de=="boolean"||t.isBuffer(de)){if(z){var Q=se?j:z(j,k.encoder);return[te(Q)+"="+te(z(de,k.encoder))]}return[te(j)+"="+te(String(de))]}var ve=[];if(typeof de>"u")return ve;var he;if(d(N))he=N;else{var ke=Object.keys(de);he=F?ke.sort(F):ke}for(var T=0;T<he.length;++T){var u=he[T];$&&de[u]===null||(d(de)?h(ve,B(de[u],I(j,u),I,P,$,z,N,F,U,J,te,se)):h(ve,B(de[u],j+(U?"."+u:"["+u+"]"),I,P,$,z,N,F,U,J,te,se)))}return ve};return stringify_1=function(B,M){var j=B,I=M?t.assign({},M):{};if(I.encoder!==null&&typeof I.encoder<"u"&&typeof I.encoder!="function")throw new TypeError("Encoder has to be a function.");var P=typeof I.delimiter>"u"?k.delimiter:I.delimiter,$=typeof I.strictNullHandling=="boolean"?I.strictNullHandling:k.strictNullHandling,z=typeof I.skipNulls=="boolean"?I.skipNulls:k.skipNulls,N=typeof I.encode=="boolean"?I.encode:k.encode,F=typeof I.encoder=="function"?I.encoder:k.encoder,U=typeof I.sort=="function"?I.sort:null,J=typeof I.allowDots>"u"?!1:I.allowDots,te=typeof I.serializeDate=="function"?I.serializeDate:k.serializeDate,se=typeof I.encodeValuesOnly=="boolean"?I.encodeValuesOnly:k.encodeValuesOnly;if(typeof I.format>"u")I.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,I.format))throw new TypeError("Unknown format option provided.");var de=n.formatters[I.format],Q,ve;typeof I.filter=="function"?(ve=I.filter,j=ve("",j)):d(I.filter)&&(ve=I.filter,Q=ve);var he=[];if(typeof j!="object"||j===null)return"";var ke;I.arrayFormat in l?ke=I.arrayFormat:"indices"in I?ke=I.indices?"indices":"repeat":ke="indices";var T=l[ke];Q||(Q=Object.keys(j)),U&&Q.sort(U);for(var u=0;u<Q.length;++u){var p=Q[u];z&&j[p]===null||h(he,A(j[p],p,T,$,z,N?F:null,ve,U,J,te,de,se))}var b=he.join(P),e=I.addQueryPrefix===!0?"?":"";return b.length>0?e+b:""},stringify_1}var parse,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;var t=requireUtils(),n=Object.prototype.hasOwnProperty,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:t.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},d=function(k,A){for(var B={},M=A.ignoreQueryPrefix?k.replace(/^\?/,""):k,j=A.parameterLimit===1/0?void 0:A.parameterLimit,I=M.split(A.delimiter,j),P=0;P<I.length;++P){var $=I[P],z=$.indexOf("]="),N=z===-1?$.indexOf("="):z+1,F,U;N===-1?(F=A.decoder($,l.decoder),U=A.strictNullHandling?null:""):(F=A.decoder($.slice(0,N),l.decoder),U=A.decoder($.slice(N+1),l.decoder)),n.call(B,F)?B[F]=[].concat(B[F]).concat(U):B[F]=U}return B},m=function(S,k,A){for(var B=k,M=S.length-1;M>=0;--M){var j,I=S[M];if(I==="[]"&&A.parseArrays)j=[].concat(B);else{j=A.plainObjects?Object.create(null):{};var P=I.charAt(0)==="["&&I.charAt(I.length-1)==="]"?I.slice(1,-1):I,$=parseInt(P,10);!A.parseArrays&&P===""?j={0:B}:!isNaN($)&&I!==P&&String($)===P&&$>=0&&A.parseArrays&&$<=A.arrayLimit?(j=[],j[$]=B):P!=="__proto__"&&(j[P]=B)}B=j}return B},h=function(k,A,B){if(k){var M=B.allowDots?k.replace(/\.([^.[]+)/g,"[$1]"):k,j=/(\[[^[\]]*])/,I=/(\[[^[\]]*])/g,P=j.exec(M),$=P?M.slice(0,P.index):M,z=[];if($){if(!B.plainObjects&&n.call(Object.prototype,$)&&!B.allowPrototypes)return;z.push($)}for(var N=0;(P=I.exec(M))!==null&&N<B.depth;){if(N+=1,!B.plainObjects&&n.call(Object.prototype,P[1].slice(1,-1))&&!B.allowPrototypes)return;z.push(P[1])}return P&&z.push("["+M.slice(P.index)+"]"),m(z,A,B)}};return parse=function(S,k){var A=k?t.assign({},k):{};if(A.decoder!==null&&A.decoder!==void 0&&typeof A.decoder!="function")throw new TypeError("Decoder has to be a function.");if(A.ignoreQueryPrefix=A.ignoreQueryPrefix===!0,A.delimiter=typeof A.delimiter=="string"||t.isRegExp(A.delimiter)?A.delimiter:l.delimiter,A.depth=typeof A.depth=="number"?A.depth:l.depth,A.arrayLimit=typeof A.arrayLimit=="number"?A.arrayLimit:l.arrayLimit,A.parseArrays=A.parseArrays!==!1,A.decoder=typeof A.decoder=="function"?A.decoder:l.decoder,A.allowDots=typeof A.allowDots=="boolean"?A.allowDots:l.allowDots,A.plainObjects=typeof A.plainObjects=="boolean"?A.plainObjects:l.plainObjects,A.allowPrototypes=typeof A.allowPrototypes=="boolean"?A.allowPrototypes:l.allowPrototypes,A.parameterLimit=typeof A.parameterLimit=="number"?A.parameterLimit:l.parameterLimit,A.strictNullHandling=typeof A.strictNullHandling=="boolean"?A.strictNullHandling:l.strictNullHandling,S===""||S===null||typeof S>"u")return A.plainObjects?Object.create(null):{};for(var B=typeof S=="string"?d(S,A):S,M=A.plainObjects?Object.create(null):{},j=Object.keys(B),I=0;I<j.length;++I){var P=j[I],$=h(P,B[P],A);M=t.merge(M,$,A)}return t.compact(M)},parse}var lib$1,hasRequiredLib$1;function requireLib$1(){if(hasRequiredLib$1)return lib$1;hasRequiredLib$1=1;var t=requireStringify(),n=requireParse(),l=requireFormats$1();return lib$1={formats:l,parse:n,stringify:t},lib$1}var hasRequiredQuerystring;function requireQuerystring(){if(hasRequiredQuerystring)return querystring;hasRequiredQuerystring=1;var t=requireLib$1(),n=require$$1$1;function l(d){this.request=d,this.lib=null,this.useQuerystring=null,this.parseOptions=null,this.stringifyOptions=null}return l.prototype.init=function(d){this.lib||(this.useQuerystring=d.useQuerystring,this.lib=this.useQuerystring?n:t,this.parseOptions=d.qsParseOptions||{},this.stringifyOptions=d.qsStringifyOptions||{})},l.prototype.stringify=function(d){return this.useQuerystring?this.rfc3986(this.lib.stringify(d,this.stringifyOptions.sep||null,this.stringifyOptions.eq||null,this.stringifyOptions)):this.lib.stringify(d,this.stringifyOptions)},l.prototype.parse=function(d){return this.useQuerystring?this.lib.parse(d,this.parseOptions.sep||null,this.parseOptions.eq||null,this.parseOptions):this.lib.parse(d,this.parseOptions)},l.prototype.rfc3986=function(d){return d.replace(/[!'()*]/g,function(m){return"%"+m.charCodeAt(0).toString(16).toUpperCase()})},l.prototype.unescape=n.unescape,querystring.Querystring=l,querystring}var har={},promise={},uri_all={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */var hasRequiredUri_all;function requireUri_all(){return hasRequiredUri_all||(hasRequiredUri_all=1,function(t,n){(function(l,d){d(n)})(commonjsGlobal,function(l){function d(){for(var me=arguments.length,ce=Array(me),ne=0;ne<me;ne++)ce[ne]=arguments[ne];if(ce.length>1){ce[0]=ce[0].slice(0,-1);for(var _e=ce.length-1,Re=1;Re<_e;++Re)ce[Re]=ce[Re].slice(1,-1);return ce[_e]=ce[_e].slice(1),ce.join("")}else return ce[0]}function m(me){return"(?:"+me+")"}function h(me){return me===void 0?"undefined":me===null?"null":Object.prototype.toString.call(me).split(" ").pop().split("]").shift().toLowerCase()}function S(me){return me.toUpperCase()}function k(me){return me!=null?me instanceof Array?me:typeof me.length!="number"||me.split||me.setInterval||me.call?[me]:Array.prototype.slice.call(me):[]}function A(me,ce){var ne=me;if(ce)for(var _e in ce)ne[_e]=ce[_e];return ne}function B(me){var ce="[A-Za-z]",ne="[0-9]",_e=d(ne,"[A-Fa-f]"),Re=m(m("%[EFef]"+_e+"%"+_e+_e+"%"+_e+_e)+"|"+m("%[89A-Fa-f]"+_e+"%"+_e+_e)+"|"+m("%"+_e+_e)),lt="[\\:\\/\\?\\#\\[\\]\\@]",Ze="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ct=d(lt,Ze),Nt=me?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ut=me?"[\\uE000-\\uF8FF]":"[]",Mr=d(ce,ne,"[\\-\\.\\_\\~]",Nt);m(ce+d(ce,ne,"[\\+\\-\\.]")+"*"),m(m(Re+"|"+d(Mr,Ze,"[\\:]"))+"*");var Xt=m(m("25[0-5]")+"|"+m("2[0-4]"+ne)+"|"+m("1"+ne+ne)+"|"+m("0?[1-9]"+ne)+"|0?0?"+ne),Sr=m(Xt+"\\."+Xt+"\\."+Xt+"\\."+Xt),rr=m(_e+"{1,4}"),er=m(m(rr+"\\:"+rr)+"|"+Sr),kr=m(m(rr+"\\:")+"{6}"+er),vr=m("\\:\\:"+m(rr+"\\:")+"{5}"+er),Pr=m(m(rr)+"?\\:\\:"+m(rr+"\\:")+"{4}"+er),Tr=m(m(m(rr+"\\:")+"{0,1}"+rr)+"?\\:\\:"+m(rr+"\\:")+"{3}"+er),br=m(m(m(rr+"\\:")+"{0,2}"+rr)+"?\\:\\:"+m(rr+"\\:")+"{2}"+er),Ar=m(m(m(rr+"\\:")+"{0,3}"+rr)+"?\\:\\:"+rr+"\\:"+er),gr=m(m(m(rr+"\\:")+"{0,4}"+rr)+"?\\:\\:"+er),dr=m(m(m(rr+"\\:")+"{0,5}"+rr)+"?\\:\\:"+rr),lr=m(m(m(rr+"\\:")+"{0,6}"+rr)+"?\\:\\:"),Kt=m([kr,vr,Pr,Tr,br,Ar,gr,dr,lr].join("|")),Bt=m(m(Mr+"|"+Re)+"+");m("[vV]"+_e+"+\\."+d(Mr,Ze,"[\\:]")+"+"),m(m(Re+"|"+d(Mr,Ze))+"*");var Ft=m(Re+"|"+d(Mr,Ze,"[\\:\\@]"));return m(m(Re+"|"+d(Mr,Ze,"[\\@]"))+"+"),m(m(Ft+"|"+d("[\\/\\?]",Ut))+"*"),{NOT_SCHEME:new RegExp(d("[^]",ce,ne,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(d("[^\\%\\:]",Mr,Ze),"g"),NOT_HOST:new RegExp(d("[^\\%\\[\\]\\:]",Mr,Ze),"g"),NOT_PATH:new RegExp(d("[^\\%\\/\\:\\@]",Mr,Ze),"g"),NOT_PATH_NOSCHEME:new RegExp(d("[^\\%\\/\\@]",Mr,Ze),"g"),NOT_QUERY:new RegExp(d("[^\\%]",Mr,Ze,"[\\:\\@\\/\\?]",Ut),"g"),NOT_FRAGMENT:new RegExp(d("[^\\%]",Mr,Ze,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(d("[^]",Mr,Ze),"g"),UNRESERVED:new RegExp(Mr,"g"),OTHER_CHARS:new RegExp(d("[^\\%]",Mr,ct),"g"),PCT_ENCODED:new RegExp(Re,"g"),IPV4ADDRESS:new RegExp("^("+Sr+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Kt+")"+m(m("\\%25|\\%(?!"+_e+"{2})")+"("+Bt+")")+"?\\]?$")}}var M=B(!1),j=B(!0),I=function(){function me(ce,ne){var _e=[],Re=!0,lt=!1,Ze=void 0;try{for(var ct=ce[Symbol.iterator](),Nt;!(Re=(Nt=ct.next()).done)&&(_e.push(Nt.value),!(ne&&_e.length===ne));Re=!0);}catch(Ut){lt=!0,Ze=Ut}finally{try{!Re&&ct.return&&ct.return()}finally{if(lt)throw Ze}}return _e}return function(ce,ne){if(Array.isArray(ce))return ce;if(Symbol.iterator in Object(ce))return me(ce,ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(me){if(Array.isArray(me)){for(var ce=0,ne=Array(me.length);ce<me.length;ce++)ne[ce]=me[ce];return ne}else return Array.from(me)},$=2147483647,z=36,N=1,F=26,U=38,J=700,te=72,se=128,de="-",Q=/^xn--/,ve=/[^\0-\x7E]/,he=/[\x2E\u3002\uFF0E\uFF61]/g,ke={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=z-N,u=Math.floor,p=String.fromCharCode;function b(me){throw new RangeError(ke[me])}function e(me,ce){for(var ne=[],_e=me.length;_e--;)ne[_e]=ce(me[_e]);return ne}function c(me,ce){var ne=me.split("@"),_e="";ne.length>1&&(_e=ne[0]+"@",me=ne[1]),me=me.replace(he,".");var Re=me.split("."),lt=e(Re,ce).join(".");return _e+lt}function y(me){for(var ce=[],ne=0,_e=me.length;ne<_e;){var Re=me.charCodeAt(ne++);if(Re>=55296&&Re<=56319&&ne<_e){var lt=me.charCodeAt(ne++);(lt&64512)==56320?ce.push(((Re&1023)<<10)+(lt&1023)+65536):(ce.push(Re),ne--)}else ce.push(Re)}return ce}var w=function(ce){return String.fromCodePoint.apply(String,P(ce))},v=function(ce){return ce-48<10?ce-22:ce-65<26?ce-65:ce-97<26?ce-97:z},o=function(ce,ne){return ce+22+75*(ce<26)-((ne!=0)<<5)},x=function(ce,ne,_e){var Re=0;for(ce=_e?u(ce/J):ce>>1,ce+=u(ce/ne);ce>T*F>>1;Re+=z)ce=u(ce/T);return u(Re+(T+1)*ce/(ce+U))},E=function(ce){var ne=[],_e=ce.length,Re=0,lt=se,Ze=te,ct=ce.lastIndexOf(de);ct<0&&(ct=0);for(var Nt=0;Nt<ct;++Nt)ce.charCodeAt(Nt)>=128&&b("not-basic"),ne.push(ce.charCodeAt(Nt));for(var Ut=ct>0?ct+1:0;Ut<_e;){for(var Mr=Re,Xt=1,Sr=z;;Sr+=z){Ut>=_e&&b("invalid-input");var rr=v(ce.charCodeAt(Ut++));(rr>=z||rr>u(($-Re)/Xt))&&b("overflow"),Re+=rr*Xt;var er=Sr<=Ze?N:Sr>=Ze+F?F:Sr-Ze;if(rr<er)break;var kr=z-er;Xt>u($/kr)&&b("overflow"),Xt*=kr}var vr=ne.length+1;Ze=x(Re-Mr,vr,Mr==0),u(Re/vr)>$-lt&&b("overflow"),lt+=u(Re/vr),Re%=vr,ne.splice(Re++,0,lt)}return String.fromCodePoint.apply(String,ne)},R=function(ce){var ne=[];ce=y(ce);var _e=ce.length,Re=se,lt=0,Ze=te,ct=!0,Nt=!1,Ut=void 0;try{for(var Mr=ce[Symbol.iterator](),Xt;!(ct=(Xt=Mr.next()).done);ct=!0){var Sr=Xt.value;Sr<128&&ne.push(p(Sr))}}catch(Rr){Nt=!0,Ut=Rr}finally{try{!ct&&Mr.return&&Mr.return()}finally{if(Nt)throw Ut}}var rr=ne.length,er=rr;for(rr&&ne.push(de);er<_e;){var kr=$,vr=!0,Pr=!1,Tr=void 0;try{for(var br=ce[Symbol.iterator](),Ar;!(vr=(Ar=br.next()).done);vr=!0){var gr=Ar.value;gr>=Re&&gr<kr&&(kr=gr)}}catch(Rr){Pr=!0,Tr=Rr}finally{try{!vr&&br.return&&br.return()}finally{if(Pr)throw Tr}}var dr=er+1;kr-Re>u(($-lt)/dr)&&b("overflow"),lt+=(kr-Re)*dr,Re=kr;var lr=!0,Kt=!1,Bt=void 0;try{for(var Ft=ce[Symbol.iterator](),cr;!(lr=(cr=Ft.next()).done);lr=!0){var nr=cr.value;if(nr<Re&&++lt>$&&b("overflow"),nr==Re){for(var Vt=lt,ar=z;;ar+=z){var qr=ar<=Ze?N:ar>=Ze+F?F:ar-Ze;if(Vt<qr)break;var Vr=Vt-qr,Wr=z-qr;ne.push(p(o(qr+Vr%Wr,0))),Vt=u(Vr/Wr)}ne.push(p(o(Vt,0))),Ze=x(lt,dr,er==rr),lt=0,++er}}}catch(Rr){Kt=!0,Bt=Rr}finally{try{!lr&&Ft.return&&Ft.return()}finally{if(Kt)throw Bt}}++lt,++Re}return ne.join("")},H=function(ce){return c(ce,function(ne){return Q.test(ne)?E(ne.slice(4).toLowerCase()):ne})},Y=function(ce){return c(ce,function(ne){return ve.test(ne)?"xn--"+R(ne):ne})},Z={version:"2.1.0",ucs2:{decode:y,encode:w},decode:E,encode:R,toASCII:Y,toUnicode:H},L={};function D(me){var ce=me.charCodeAt(0),ne=void 0;return ce<16?ne="%0"+ce.toString(16).toUpperCase():ce<128?ne="%"+ce.toString(16).toUpperCase():ce<2048?ne="%"+(ce>>6|192).toString(16).toUpperCase()+"%"+(ce&63|128).toString(16).toUpperCase():ne="%"+(ce>>12|224).toString(16).toUpperCase()+"%"+(ce>>6&63|128).toString(16).toUpperCase()+"%"+(ce&63|128).toString(16).toUpperCase(),ne}function ee(me){for(var ce="",ne=0,_e=me.length;ne<_e;){var Re=parseInt(me.substr(ne+1,2),16);if(Re<128)ce+=String.fromCharCode(Re),ne+=3;else if(Re>=194&&Re<224){if(_e-ne>=6){var lt=parseInt(me.substr(ne+4,2),16);ce+=String.fromCharCode((Re&31)<<6|lt&63)}else ce+=me.substr(ne,6);ne+=6}else if(Re>=224){if(_e-ne>=9){var Ze=parseInt(me.substr(ne+4,2),16),ct=parseInt(me.substr(ne+7,2),16);ce+=String.fromCharCode((Re&15)<<12|(Ze&63)<<6|ct&63)}else ce+=me.substr(ne,9);ne+=9}else ce+=me.substr(ne,3),ne+=3}return ce}function oe(me,ce){function ne(_e){var Re=ee(_e);return Re.match(ce.UNRESERVED)?Re:_e}return me.scheme&&(me.scheme=String(me.scheme).replace(ce.PCT_ENCODED,ne).toLowerCase().replace(ce.NOT_SCHEME,"")),me.userinfo!==void 0&&(me.userinfo=String(me.userinfo).replace(ce.PCT_ENCODED,ne).replace(ce.NOT_USERINFO,D).replace(ce.PCT_ENCODED,S)),me.host!==void 0&&(me.host=String(me.host).replace(ce.PCT_ENCODED,ne).toLowerCase().replace(ce.NOT_HOST,D).replace(ce.PCT_ENCODED,S)),me.path!==void 0&&(me.path=String(me.path).replace(ce.PCT_ENCODED,ne).replace(me.scheme?ce.NOT_PATH:ce.NOT_PATH_NOSCHEME,D).replace(ce.PCT_ENCODED,S)),me.query!==void 0&&(me.query=String(me.query).replace(ce.PCT_ENCODED,ne).replace(ce.NOT_QUERY,D).replace(ce.PCT_ENCODED,S)),me.fragment!==void 0&&(me.fragment=String(me.fragment).replace(ce.PCT_ENCODED,ne).replace(ce.NOT_FRAGMENT,D).replace(ce.PCT_ENCODED,S)),me}function fe(me){return me.replace(/^0*(.*)/,"$1")||"0"}function ue(me,ce){var ne=me.match(ce.IPV4ADDRESS)||[],_e=I(ne,2),Re=_e[1];return Re?Re.split(".").map(fe).join("."):me}function qe(me,ce){var ne=me.match(ce.IPV6ADDRESS)||[],_e=I(ne,3),Re=_e[1],lt=_e[2];if(Re){for(var Ze=Re.toLowerCase().split("::").reverse(),ct=I(Ze,2),Nt=ct[0],Ut=ct[1],Mr=Ut?Ut.split(":").map(fe):[],Xt=Nt.split(":").map(fe),Sr=ce.IPV4ADDRESS.test(Xt[Xt.length-1]),rr=Sr?7:8,er=Xt.length-rr,kr=Array(rr),vr=0;vr<rr;++vr)kr[vr]=Mr[vr]||Xt[er+vr]||"";Sr&&(kr[rr-1]=ue(kr[rr-1],ce));var Pr=kr.reduce(function(dr,lr,Kt){if(!lr||lr==="0"){var Bt=dr[dr.length-1];Bt&&Bt.index+Bt.length===Kt?Bt.length++:dr.push({index:Kt,length:1})}return dr},[]),Tr=Pr.sort(function(dr,lr){return lr.length-dr.length})[0],br=void 0;if(Tr&&Tr.length>1){var Ar=kr.slice(0,Tr.index),gr=kr.slice(Tr.index+Tr.length);br=Ar.join(":")+"::"+gr.join(":")}else br=kr.join(":");return lt&&(br+="%"+lt),br}else return me}var rt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Ve="".match(/(){0}/)[1]===void 0;function et(me){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne={},_e=ce.iri!==!1?j:M;ce.reference==="suffix"&&(me=(ce.scheme?ce.scheme+":":"")+"//"+me);var Re=me.match(rt);if(Re){Ve?(ne.scheme=Re[1],ne.userinfo=Re[3],ne.host=Re[4],ne.port=parseInt(Re[5],10),ne.path=Re[6]||"",ne.query=Re[7],ne.fragment=Re[8],isNaN(ne.port)&&(ne.port=Re[5])):(ne.scheme=Re[1]||void 0,ne.userinfo=me.indexOf("@")!==-1?Re[3]:void 0,ne.host=me.indexOf("//")!==-1?Re[4]:void 0,ne.port=parseInt(Re[5],10),ne.path=Re[6]||"",ne.query=me.indexOf("?")!==-1?Re[7]:void 0,ne.fragment=me.indexOf("#")!==-1?Re[8]:void 0,isNaN(ne.port)&&(ne.port=me.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Re[4]:void 0)),ne.host&&(ne.host=qe(ue(ne.host,_e),_e)),ne.scheme===void 0&&ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0&&!ne.path&&ne.query===void 0?ne.reference="same-document":ne.scheme===void 0?ne.reference="relative":ne.fragment===void 0?ne.reference="absolute":ne.reference="uri",ce.reference&&ce.reference!=="suffix"&&ce.reference!==ne.reference&&(ne.error=ne.error||"URI is not a "+ce.reference+" reference.");var lt=L[(ce.scheme||ne.scheme||"").toLowerCase()];if(!ce.unicodeSupport&&(!lt||!lt.unicodeSupport)){if(ne.host&&(ce.domainHost||lt&&lt.domainHost))try{ne.host=Z.toASCII(ne.host.replace(_e.PCT_ENCODED,ee).toLowerCase())}catch(Ze){ne.error=ne.error||"Host's domain name can not be converted to ASCII via punycode: "+Ze}oe(ne,M)}else oe(ne,_e);lt&&lt.parse&&lt.parse(ne,ce)}else ne.error=ne.error||"URI can not be parsed.";return ne}function mt(me,ce){var ne=ce.iri!==!1?j:M,_e=[];return me.userinfo!==void 0&&(_e.push(me.userinfo),_e.push("@")),me.host!==void 0&&_e.push(qe(ue(String(me.host),ne),ne).replace(ne.IPV6ADDRESS,function(Re,lt,Ze){return"["+lt+(Ze?"%25"+Ze:"")+"]"})),(typeof me.port=="number"||typeof me.port=="string")&&(_e.push(":"),_e.push(String(me.port))),_e.length?_e.join(""):void 0}var Ye=/^\.\.?\//,We=/^\/\.(\/|$)/,Xe=/^\/\.\.(\/|$)/,Ge=/^\/?(?:.|\n)*?(?=\/|$)/;function nt(me){for(var ce=[];me.length;)if(me.match(Ye))me=me.replace(Ye,"");else if(me.match(We))me=me.replace(We,"/");else if(me.match(Xe))me=me.replace(Xe,"/"),ce.pop();else if(me==="."||me==="..")me="";else{var ne=me.match(Ge);if(ne){var _e=ne[0];me=me.slice(_e.length),ce.push(_e)}else throw new Error("Unexpected dot segment condition")}return ce.join("")}function Et(me){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=ce.iri?j:M,_e=[],Re=L[(ce.scheme||me.scheme||"").toLowerCase()];if(Re&&Re.serialize&&Re.serialize(me,ce),me.host&&!ne.IPV6ADDRESS.test(me.host)){if(ce.domainHost||Re&&Re.domainHost)try{me.host=ce.iri?Z.toUnicode(me.host):Z.toASCII(me.host.replace(ne.PCT_ENCODED,ee).toLowerCase())}catch(ct){me.error=me.error||"Host's domain name can not be converted to "+(ce.iri?"Unicode":"ASCII")+" via punycode: "+ct}}oe(me,ne),ce.reference!=="suffix"&&me.scheme&&(_e.push(me.scheme),_e.push(":"));var lt=mt(me,ce);if(lt!==void 0&&(ce.reference!=="suffix"&&_e.push("//"),_e.push(lt),me.path&&me.path.charAt(0)!=="/"&&_e.push("/")),me.path!==void 0){var Ze=me.path;!ce.absolutePath&&(!Re||!Re.absolutePath)&&(Ze=nt(Ze)),lt===void 0&&(Ze=Ze.replace(/^\/\//,"/%2F")),_e.push(Ze)}return me.query!==void 0&&(_e.push("?"),_e.push(me.query)),me.fragment!==void 0&&(_e.push("#"),_e.push(me.fragment)),_e.join("")}function Le(me,ce){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_e=arguments[3],Re={};return _e||(me=et(Et(me,ne),ne),ce=et(Et(ce,ne),ne)),ne=ne||{},!ne.tolerant&&ce.scheme?(Re.scheme=ce.scheme,Re.userinfo=ce.userinfo,Re.host=ce.host,Re.port=ce.port,Re.path=nt(ce.path||""),Re.query=ce.query):(ce.userinfo!==void 0||ce.host!==void 0||ce.port!==void 0?(Re.userinfo=ce.userinfo,Re.host=ce.host,Re.port=ce.port,Re.path=nt(ce.path||""),Re.query=ce.query):(ce.path?(ce.path.charAt(0)==="/"?Re.path=nt(ce.path):((me.userinfo!==void 0||me.host!==void 0||me.port!==void 0)&&!me.path?Re.path="/"+ce.path:me.path?Re.path=me.path.slice(0,me.path.lastIndexOf("/")+1)+ce.path:Re.path=ce.path,Re.path=nt(Re.path)),Re.query=ce.query):(Re.path=me.path,ce.query!==void 0?Re.query=ce.query:Re.query=me.query),Re.userinfo=me.userinfo,Re.host=me.host,Re.port=me.port),Re.scheme=me.scheme),Re.fragment=ce.fragment,Re}function Oe(me,ce,ne){var _e=A({scheme:"null"},ne);return Et(Le(et(me,_e),et(ce,_e),_e,!0),_e)}function $t(me,ce){return typeof me=="string"?me=Et(et(me,ce),ce):h(me)==="object"&&(me=et(Et(me,ce),ce)),me}function dt(me,ce,ne){return typeof me=="string"?me=Et(et(me,ne),ne):h(me)==="object"&&(me=Et(me,ne)),typeof ce=="string"?ce=Et(et(ce,ne),ne):h(ce)==="object"&&(ce=Et(ce,ne)),me===ce}function gt(me,ce){return me&&me.toString().replace(!ce||!ce.iri?M.ESCAPE:j.ESCAPE,D)}function Lt(me,ce){return me&&me.toString().replace(!ce||!ce.iri?M.PCT_ENCODED:j.PCT_ENCODED,ee)}var xe={scheme:"http",domainHost:!0,parse:function(ce,ne){return ce.host||(ce.error=ce.error||"HTTP URIs must have a host."),ce},serialize:function(ce,ne){var _e=String(ce.scheme).toLowerCase()==="https";return(ce.port===(_e?443:80)||ce.port==="")&&(ce.port=void 0),ce.path||(ce.path="/"),ce}},X={scheme:"https",domainHost:xe.domainHost,parse:xe.parse,serialize:xe.serialize};function pe(me){return typeof me.secure=="boolean"?me.secure:String(me.scheme).toLowerCase()==="wss"}var je={scheme:"ws",domainHost:!0,parse:function(ce,ne){var _e=ce;return _e.secure=pe(_e),_e.resourceName=(_e.path||"/")+(_e.query?"?"+_e.query:""),_e.path=void 0,_e.query=void 0,_e},serialize:function(ce,ne){if((ce.port===(pe(ce)?443:80)||ce.port==="")&&(ce.port=void 0),typeof ce.secure=="boolean"&&(ce.scheme=ce.secure?"wss":"ws",ce.secure=void 0),ce.resourceName){var _e=ce.resourceName.split("?"),Re=I(_e,2),lt=Re[0],Ze=Re[1];ce.path=lt&&lt!=="/"?lt:void 0,ce.query=Ze,ce.resourceName=void 0}return ce.fragment=void 0,ce}},$e={scheme:"wss",domainHost:je.domainHost,parse:je.parse,serialize:je.serialize},He={},Fe="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Me="[0-9A-Fa-f]",Rt=m(m("%[EFef]"+Me+"%"+Me+Me+"%"+Me+Me)+"|"+m("%[89A-Fa-f]"+Me+"%"+Me+Me)+"|"+m("%"+Me+Me)),yt="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",le="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",wt=d(le,'[\\"\\\\]'),at="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Be=new RegExp(Fe,"g"),ot=new RegExp(Rt,"g"),tt=new RegExp(d("[^]",yt,"[\\.]",'[\\"]',wt),"g"),kt=new RegExp(d("[^]",Fe,at),"g"),Yt=kt;function pt(me){var ce=ee(me);return ce.match(Be)?ce:me}var It={scheme:"mailto",parse:function(ce,ne){var _e=ce,Re=_e.to=_e.path?_e.path.split(","):[];if(_e.path=void 0,_e.query){for(var lt=!1,Ze={},ct=_e.query.split("&"),Nt=0,Ut=ct.length;Nt<Ut;++Nt){var Mr=ct[Nt].split("=");switch(Mr[0]){case"to":for(var Xt=Mr[1].split(","),Sr=0,rr=Xt.length;Sr<rr;++Sr)Re.push(Xt[Sr]);break;case"subject":_e.subject=Lt(Mr[1],ne);break;case"body":_e.body=Lt(Mr[1],ne);break;default:lt=!0,Ze[Lt(Mr[0],ne)]=Lt(Mr[1],ne);break}}lt&&(_e.headers=Ze)}_e.query=void 0;for(var er=0,kr=Re.length;er<kr;++er){var vr=Re[er].split("@");if(vr[0]=Lt(vr[0]),ne.unicodeSupport)vr[1]=Lt(vr[1],ne).toLowerCase();else try{vr[1]=Z.toASCII(Lt(vr[1],ne).toLowerCase())}catch(Pr){_e.error=_e.error||"Email address's domain name can not be converted to ASCII via punycode: "+Pr}Re[er]=vr.join("@")}return _e},serialize:function(ce,ne){var _e=ce,Re=k(ce.to);if(Re){for(var lt=0,Ze=Re.length;lt<Ze;++lt){var ct=String(Re[lt]),Nt=ct.lastIndexOf("@"),Ut=ct.slice(0,Nt).replace(ot,pt).replace(ot,S).replace(tt,D),Mr=ct.slice(Nt+1);try{Mr=ne.iri?Z.toUnicode(Mr):Z.toASCII(Lt(Mr,ne).toLowerCase())}catch(er){_e.error=_e.error||"Email address's domain name can not be converted to "+(ne.iri?"Unicode":"ASCII")+" via punycode: "+er}Re[lt]=Ut+"@"+Mr}_e.path=Re.join(",")}var Xt=ce.headers=ce.headers||{};ce.subject&&(Xt.subject=ce.subject),ce.body&&(Xt.body=ce.body);var Sr=[];for(var rr in Xt)Xt[rr]!==He[rr]&&Sr.push(rr.replace(ot,pt).replace(ot,S).replace(kt,D)+"="+Xt[rr].replace(ot,pt).replace(ot,S).replace(Yt,D));return Sr.length&&(_e.query=Sr.join("&")),_e}},Fr=/^([^\:]+)\:(.*)/,Pt={scheme:"urn",parse:function(ce,ne){var _e=ce.path&&ce.path.match(Fr),Re=ce;if(_e){var lt=ne.scheme||Re.scheme||"urn",Ze=_e[1].toLowerCase(),ct=_e[2],Nt=lt+":"+(ne.nid||Ze),Ut=L[Nt];Re.nid=Ze,Re.nss=ct,Re.path=void 0,Ut&&(Re=Ut.parse(Re,ne))}else Re.error=Re.error||"URN can not be parsed.";return Re},serialize:function(ce,ne){var _e=ne.scheme||ce.scheme||"urn",Re=ce.nid,lt=_e+":"+(ne.nid||Re),Ze=L[lt];Ze&&(ce=Ze.serialize(ce,ne));var ct=ce,Nt=ce.nss;return ct.path=(Re||ne.nid)+":"+Nt,ct}},Ot=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(ce,ne){var _e=ce;return _e.uuid=_e.nss,_e.nss=void 0,!ne.tolerant&&(!_e.uuid||!_e.uuid.match(Ot))&&(_e.error=_e.error||"UUID is not valid."),_e},serialize:function(ce,ne){var _e=ce;return _e.nss=(ce.uuid||"").toLowerCase(),_e}};L[xe.scheme]=xe,L[X.scheme]=X,L[je.scheme]=je,L[$e.scheme]=$e,L[It.scheme]=It,L[Pt.scheme]=Pt,L[Te.scheme]=Te,l.SCHEMES=L,l.pctEncChar=D,l.pctDecChars=ee,l.parse=et,l.removeDotSegments=nt,l.serialize=Et,l.resolveComponents=Le,l.resolve=Oe,l.normalize=$t,l.equal=dt,l.escapeComponent=gt,l.unescapeComponent=Lt,Object.defineProperty(l,"__esModule",{value:!0})})}(uri_all,uri_all.exports)),uri_all.exports}var fastDeepEqual,hasRequiredFastDeepEqual;function requireFastDeepEqual(){return hasRequiredFastDeepEqual||(hasRequiredFastDeepEqual=1,fastDeepEqual=function t(n,l){if(n===l)return!0;if(n&&l&&typeof n=="object"&&typeof l=="object"){if(n.constructor!==l.constructor)return!1;var d,m,h;if(Array.isArray(n)){if(d=n.length,d!=l.length)return!1;for(m=d;m--!==0;)if(!t(n[m],l[m]))return!1;return!0}if(n.constructor===RegExp)return n.source===l.source&&n.flags===l.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===l.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===l.toString();if(h=Object.keys(n),d=h.length,d!==Object.keys(l).length)return!1;for(m=d;m--!==0;)if(!Object.prototype.hasOwnProperty.call(l,h[m]))return!1;for(m=d;m--!==0;){var S=h[m];if(!t(n[S],l[S]))return!1}return!0}return n!==n&&l!==l}),fastDeepEqual}var ucs2length,hasRequiredUcs2length;function requireUcs2length(){return hasRequiredUcs2length||(hasRequiredUcs2length=1,ucs2length=function(n){for(var l=0,d=n.length,m=0,h;m<d;)l++,h=n.charCodeAt(m++),h>=55296&&h<=56319&&m<d&&(h=n.charCodeAt(m),(h&64512)==56320&&m++);return l}),ucs2length}var util,hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1,util={copy:t,checkDataType:n,checkDataTypes:l,coerceToTypes:m,toHash:h,getProperty:A,escapeQuotes:B,equal:requireFastDeepEqual(),ucs2length:requireUcs2length(),varOccurences:M,varReplace:j,schemaHasRules:I,schemaHasRulesExcept:P,schemaUnknownRules:$,toQuotedString:z,getPathExpr:N,getPath:F,getData:te,unescapeFragment:de,unescapeJsonPointer:he,escapeFragment:Q,escapeJsonPointer:ve};function t(ke,T){T=T||{};for(var u in ke)T[u]=ke[u];return T}function n(ke,T,u,p){var b=p?" !== ":" === ",e=p?" || ":" && ",c=p?"!":"",y=p?"":"!";switch(ke){case"null":return T+b+"null";case"array":return c+"Array.isArray("+T+")";case"object":return"("+c+T+e+"typeof "+T+b+'"object"'+e+y+"Array.isArray("+T+"))";case"integer":return"(typeof "+T+b+'"number"'+e+y+"("+T+" % 1)"+e+T+b+T+(u?e+c+"isFinite("+T+")":"")+")";case"number":return"(typeof "+T+b+'"'+ke+'"'+(u?e+c+"isFinite("+T+")":"")+")";default:return"typeof "+T+b+'"'+ke+'"'}}function l(ke,T,u){switch(ke.length){case 1:return n(ke[0],T,u,!0);default:var p="",b=h(ke);b.array&&b.object&&(p=b.null?"(":"(!"+T+" || ",p+="typeof "+T+' !== "object")',delete b.null,delete b.array,delete b.object),b.number&&delete b.integer;for(var e in b)p+=(p?" && ":"")+n(e,T,u,!0);return p}}var d=h(["string","number","integer","boolean","null"]);function m(ke,T){if(Array.isArray(T)){for(var u=[],p=0;p<T.length;p++){var b=T[p];(d[b]||ke==="array"&&b==="array")&&(u[u.length]=b)}if(u.length)return u}else{if(d[T])return[T];if(ke==="array"&&T==="array")return["array"]}}function h(ke){for(var T={},u=0;u<ke.length;u++)T[ke[u]]=!0;return T}var S=/^[a-z$_][a-z$_0-9]*$/i,k=/'|\\/g;function A(ke){return typeof ke=="number"?"["+ke+"]":S.test(ke)?"."+ke:"['"+B(ke)+"']"}function B(ke){return ke.replace(k,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function M(ke,T){T+="[^0-9]";var u=ke.match(new RegExp(T,"g"));return u?u.length:0}function j(ke,T,u){return T+="([^0-9])",u=u.replace(/\$/g,"$$$$"),ke.replace(new RegExp(T,"g"),u+"$1")}function I(ke,T){if(typeof ke=="boolean")return!ke;for(var u in ke)if(T[u])return!0}function P(ke,T,u){if(typeof ke=="boolean")return!ke&&u!="not";for(var p in ke)if(p!=u&&T[p])return!0}function $(ke,T){if(typeof ke!="boolean"){for(var u in ke)if(!T[u])return u}}function z(ke){return"'"+B(ke)+"'"}function N(ke,T,u,p){var b=u?"'/' + "+T+(p?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):p?"'[' + "+T+" + ']'":"'[\\'' + "+T+" + '\\']'";return se(ke,b)}function F(ke,T,u){var p=z(u?"/"+ve(T):A(T));return se(ke,p)}var U=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function te(ke,T,u){var p,b,e,c;if(ke==="")return"rootData";if(ke[0]=="/"){if(!U.test(ke))throw new Error("Invalid JSON-pointer: "+ke);b=ke,e="rootData"}else{if(c=ke.match(J),!c)throw new Error("Invalid JSON-pointer: "+ke);if(p=+c[1],b=c[2],b=="#"){if(p>=T)throw new Error("Cannot access property/index "+p+" levels up, current level is "+T);return u[T-p]}if(p>T)throw new Error("Cannot access data "+p+" levels up, current level is "+T);if(e="data"+(T-p||""),!b)return e}for(var y=e,w=b.split("/"),v=0;v<w.length;v++){var o=w[v];o&&(e+=A(he(o)),y+=" && "+e)}return y}function se(ke,T){return ke=='""'?T:(ke+" + "+T).replace(/([^\\])' \+ '/g,"$1")}function de(ke){return he(decodeURIComponent(ke))}function Q(ke){return encodeURIComponent(ve(ke))}function ve(ke){return ke.replace(/~/g,"~0").replace(/\//g,"~1")}function he(ke){return ke.replace(/~1/g,"/").replace(/~0/g,"~")}return util}var schema_obj,hasRequiredSchema_obj;function requireSchema_obj(){if(hasRequiredSchema_obj)return schema_obj;hasRequiredSchema_obj=1;var t=requireUtil();schema_obj=n;function n(l){t.copy(l,this)}return schema_obj}var jsonSchemaTraverse={exports:{}},hasRequiredJsonSchemaTraverse;function requireJsonSchemaTraverse(){if(hasRequiredJsonSchemaTraverse)return jsonSchemaTraverse.exports;hasRequiredJsonSchemaTraverse=1;var t=jsonSchemaTraverse.exports=function(d,m,h){typeof m=="function"&&(h=m,m={}),h=m.cb||h;var S=typeof h=="function"?h:h.pre||function(){},k=h.post||function(){};n(m,S,k,d,"",d)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function n(d,m,h,S,k,A,B,M,j,I){if(S&&typeof S=="object"&&!Array.isArray(S)){m(S,k,A,B,M,j,I);for(var P in S){var $=S[P];if(Array.isArray($)){if(P in t.arrayKeywords)for(var z=0;z<$.length;z++)n(d,m,h,$[z],k+"/"+P+"/"+z,A,k,P,S,z)}else if(P in t.propsKeywords){if($&&typeof $=="object")for(var N in $)n(d,m,h,$[N],k+"/"+P+"/"+l(N),A,k,P,S,N)}else(P in t.keywords||d.allKeys&&!(P in t.skipKeywords))&&n(d,m,h,$,k+"/"+P,A,k,P,S)}h(S,k,A,B,M,j,I)}}function l(d){return d.replace(/~/g,"~0").replace(/\//g,"~1")}return jsonSchemaTraverse.exports}var resolve_1,hasRequiredResolve;function requireResolve(){if(hasRequiredResolve)return resolve_1;hasRequiredResolve=1;var t=requireUri_all(),n=requireFastDeepEqual(),l=requireUtil(),d=requireSchema_obj(),m=requireJsonSchemaTraverse();resolve_1=h,h.normalizeId=F,h.fullPath=$,h.url=U,h.ids=J,h.inlineRef=j,h.schema=S;function h(te,se,de){var Q=this._refs[de];if(typeof Q=="string")if(this._refs[Q])Q=this._refs[Q];else return h.call(this,te,se,Q);if(Q=Q||this._schemas[de],Q instanceof d)return j(Q.schema,this._opts.inlineRefs)?Q.schema:Q.validate||this._compile(Q);var ve=S.call(this,se,de),he,ke,T;return ve&&(he=ve.schema,se=ve.root,T=ve.baseId),he instanceof d?ke=he.validate||te.call(this,he.schema,se,void 0,T):he!==void 0&&(ke=j(he,this._opts.inlineRefs)?he:te.call(this,he,se,void 0,T)),ke}function S(te,se){var de=t.parse(se),Q=z(de),ve=$(this._getId(te.schema));if(Object.keys(te.schema).length===0||Q!==ve){var he=F(Q),ke=this._refs[he];if(typeof ke=="string")return k.call(this,te,ke,de);if(ke instanceof d)ke.validate||this._compile(ke),te=ke;else if(ke=this._schemas[he],ke instanceof d){if(ke.validate||this._compile(ke),he==F(se))return{schema:ke,root:te,baseId:ve};te=ke}else return;if(!te.schema)return;ve=$(this._getId(te.schema))}return B.call(this,de,ve,te.schema,te)}function k(te,se,de){var Q=S.call(this,te,se);if(Q){var ve=Q.schema,he=Q.baseId;te=Q.root;var ke=this._getId(ve);return ke&&(he=U(he,ke)),B.call(this,de,he,ve,te)}}var A=l.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function B(te,se,de,Q){if(te.fragment=te.fragment||"",te.fragment.slice(0,1)=="/"){for(var ve=te.fragment.split("/"),he=1;he<ve.length;he++){var ke=ve[he];if(ke){if(ke=l.unescapeFragment(ke),de=de[ke],de===void 0)break;var T;if(!A[ke]&&(T=this._getId(de),T&&(se=U(se,T)),de.$ref)){var u=U(se,de.$ref),p=S.call(this,Q,u);p&&(de=p.schema,Q=p.root,se=p.baseId)}}}if(de!==void 0&&de!==Q.schema)return{schema:de,root:Q,baseId:se}}}var M=l.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function j(te,se){if(se===!1)return!1;if(se===void 0||se===!0)return I(te);if(se)return P(te)<=se}function I(te){var se;if(Array.isArray(te)){for(var de=0;de<te.length;de++)if(se=te[de],typeof se=="object"&&!I(se))return!1}else for(var Q in te)if(Q=="$ref"||(se=te[Q],typeof se=="object"&&!I(se)))return!1;return!0}function P(te){var se=0,de;if(Array.isArray(te)){for(var Q=0;Q<te.length;Q++)if(de=te[Q],typeof de=="object"&&(se+=P(de)),se==1/0)return 1/0}else for(var ve in te){if(ve=="$ref")return 1/0;if(M[ve])se++;else if(de=te[ve],typeof de=="object"&&(se+=P(de)+1),se==1/0)return 1/0}return se}function $(te,se){se!==!1&&(te=F(te));var de=t.parse(te);return z(de)}function z(te){return t.serialize(te).split("#")[0]+"#"}var N=/#\/?$/;function F(te){return te?te.replace(N,""):""}function U(te,se){return se=F(se),t.resolve(te,se)}function J(te){var se=F(this._getId(te)),de={"":se},Q={"":$(se,!1)},ve={},he=this;return m(te,{allKeys:!0},function(ke,T,u,p,b,e,c){if(T!==""){var y=he._getId(ke),w=de[p],v=Q[p]+"/"+b;if(c!==void 0&&(v+="/"+(typeof c=="number"?c:l.escapeFragment(c))),typeof y=="string"){y=w=F(w?t.resolve(w,y):y);var o=he._refs[y];if(typeof o=="string"&&(o=he._refs[o]),o&&o.schema){if(!n(ke,o.schema))throw new Error('id "'+y+'" resolves to more than one schema')}else if(y!=F(v))if(y[0]=="#"){if(ve[y]&&!n(ke,ve[y]))throw new Error('id "'+y+'" resolves to more than one schema');ve[y]=ke}else he._refs[y]=v}de[T]=w,Q[T]=v}}),ve}return resolve_1}var error_classes,hasRequiredError_classes;function requireError_classes(){if(hasRequiredError_classes)return error_classes;hasRequiredError_classes=1;var t=requireResolve();error_classes={Validation:d(n),MissingRef:d(l)};function n(m){this.message="validation failed",this.errors=m,this.ajv=this.validation=!0}l.message=function(m,h){return"can't resolve reference "+h+" from id "+m};function l(m,h,S){this.message=S||l.message(m,h),this.missingRef=t.url(m,h),this.missingSchema=t.normalizeId(t.fullPath(this.missingRef))}function d(m){return m.prototype=Object.create(Error.prototype),m.prototype.constructor=m,m}return error_classes}var fastJsonStableStringify,hasRequiredFastJsonStableStringify;function requireFastJsonStableStringify(){return hasRequiredFastJsonStableStringify||(hasRequiredFastJsonStableStringify=1,fastJsonStableStringify=function(t,n){n||(n={}),typeof n=="function"&&(n={cmp:n});var l=typeof n.cycles=="boolean"?n.cycles:!1,d=n.cmp&&function(h){return function(S){return function(k,A){var B={key:k,value:S[k]},M={key:A,value:S[A]};return h(B,M)}}}(n.cmp),m=[];return function h(S){if(S&&S.toJSON&&typeof S.toJSON=="function"&&(S=S.toJSON()),S!==void 0){if(typeof S=="number")return isFinite(S)?""+S:"null";if(typeof S!="object")return JSON.stringify(S);var k,A;if(Array.isArray(S)){for(A="[",k=0;k<S.length;k++)k&&(A+=","),A+=h(S[k])||"null";return A+"]"}if(S===null)return"null";if(m.indexOf(S)!==-1){if(l)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var B=m.push(S)-1,M=Object.keys(S).sort(d&&d(S));for(A="",k=0;k<M.length;k++){var j=M[k],I=h(S[j]);I&&(A&&(A+=","),A+=JSON.stringify(j)+":"+I)}return m.splice(B,1),"{"+A+"}"}}(t)}),fastJsonStableStringify}var validate,hasRequiredValidate;function requireValidate(){return hasRequiredValidate||(hasRequiredValidate=1,validate=function(n,l,d){var m="",h=n.schema.$async===!0,S=n.util.schemaHasRulesExcept(n.schema,n.RULES.all,"$ref"),k=n.self._getId(n.schema);if(n.opts.strictKeywords){var A=n.util.schemaUnknownRules(n.schema,n.RULES.keywords);if(A){var B="unknown keyword: "+A;if(n.opts.strictKeywords==="log")n.logger.warn(B);else throw new Error(B)}}if(n.isTop&&(m+=" var validate = ",h&&(n.async=!0,m+="async "),m+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",k&&(n.opts.sourceCode||n.opts.processCode)&&(m+=" "+("/*# sourceURL="+k+" */")+" ")),typeof n.schema=="boolean"||!(S||n.schema.$ref)){var l="false schema",M=n.level,j=n.dataLevel,I=n.schema[l],P=n.schemaPath+n.util.getProperty(l),$=n.errSchemaPath+"/"+l,se=!n.opts.allErrors,ve,z="data"+(j||""),te="valid"+M;if(n.schema===!1){n.isTop?se=!0:m+=" var "+te+" = false; ";var N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(ve||"false schema")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString($)+" , params: {} ",n.opts.messages!==!1&&(m+=" , message: 'boolean schema is false' "),n.opts.verbose&&(m+=" , schema: false , parentSchema: validate.schema"+n.schemaPath+" , data: "+z+" "),m+=" } "):m+=" {} ";var F=m;m=N.pop(),!n.compositeRule&&se?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else n.isTop?h?m+=" return data; ":m+=" validate.errors = null; return true; ":m+=" var "+te+" = true; ";return n.isTop&&(m+=" }; return validate; "),m}if(n.isTop){var U=n.isTop,M=n.level=0,j=n.dataLevel=0,z="data";if(n.rootId=n.resolve.fullPath(n.self._getId(n.root.schema)),n.baseId=n.baseId||n.rootId,delete n.isTop,n.dataPathArr=[""],n.schema.default!==void 0&&n.opts.useDefaults&&n.opts.strictDefaults){var J="default is ignored in the schema root";if(n.opts.strictDefaults==="log")n.logger.warn(J);else throw new Error(J)}m+=" var vErrors = null; ",m+=" var errors = 0;     ",m+=" if (rootData === undefined) rootData = data; "}else{var M=n.level,j=n.dataLevel,z="data"+(j||"");if(k&&(n.baseId=n.resolve.url(n.baseId,k)),h&&!n.async)throw new Error("async schema in sync schema");m+=" var errs_"+M+" = errors;"}var te="valid"+M,se=!n.opts.allErrors,de="",Q="",ve,he=n.schema.type,ke=Array.isArray(he);if(he&&n.opts.nullable&&n.schema.nullable===!0&&(ke?he.indexOf("null")==-1&&(he=he.concat("null")):he!="null"&&(he=[he,"null"],ke=!0)),ke&&he.length==1&&(he=he[0],ke=!1),n.schema.$ref&&S){if(n.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+n.errSchemaPath+'" (see option extendRefs)');n.opts.extendRefs!==!0&&(S=!1,n.logger.warn('$ref: keywords ignored in schema at path "'+n.errSchemaPath+'"'))}if(n.schema.$comment&&n.opts.$comment&&(m+=" "+n.RULES.all.$comment.code(n,"$comment")),he){if(n.opts.coerceTypes)var T=n.util.coerceToTypes(n.opts.coerceTypes,he);var u=n.RULES.types[he];if(T||ke||u===!0||u&&!We(u)){var P=n.schemaPath+".type",$=n.errSchemaPath+"/type",P=n.schemaPath+".type",$=n.errSchemaPath+"/type",p=ke?"checkDataTypes":"checkDataType";if(m+=" if ("+n.util[p](he,z,n.opts.strictNumbers,!0)+") { ",T){var b="dataType"+M,e="coerced"+M;m+=" var "+b+" = typeof "+z+"; var "+e+" = undefined; ",n.opts.coerceTypes=="array"&&(m+=" if ("+b+" == 'object' && Array.isArray("+z+") && "+z+".length == 1) { "+z+" = "+z+"[0]; "+b+" = typeof "+z+"; if ("+n.util.checkDataType(n.schema.type,z,n.opts.strictNumbers)+") "+e+" = "+z+"; } "),m+=" if ("+e+" !== undefined) ; ";var c=T;if(c)for(var y,w=-1,v=c.length-1;w<v;)y=c[w+=1],y=="string"?m+=" else if ("+b+" == 'number' || "+b+" == 'boolean') "+e+" = '' + "+z+"; else if ("+z+" === null) "+e+" = ''; ":y=="number"||y=="integer"?(m+=" else if ("+b+" == 'boolean' || "+z+" === null || ("+b+" == 'string' && "+z+" && "+z+" == +"+z+" ",y=="integer"&&(m+=" && !("+z+" % 1)"),m+=")) "+e+" = +"+z+"; "):y=="boolean"?m+=" else if ("+z+" === 'false' || "+z+" === 0 || "+z+" === null) "+e+" = false; else if ("+z+" === 'true' || "+z+" === 1) "+e+" = true; ":y=="null"?m+=" else if ("+z+" === '' || "+z+" === 0 || "+z+" === false) "+e+" = null; ":n.opts.coerceTypes=="array"&&y=="array"&&(m+=" else if ("+b+" == 'string' || "+b+" == 'number' || "+b+" == 'boolean' || "+z+" == null) "+e+" = ["+z+"]; ");m+=" else {   ";var N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(ve||"type")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString($)+" , params: { type: '",ke?m+=""+he.join(","):m+=""+he,m+="' } ",n.opts.messages!==!1&&(m+=" , message: 'should be ",ke?m+=""+he.join(","):m+=""+he,m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+P+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+z+" "),m+=" } "):m+=" {} ";var F=m;m=N.pop(),!n.compositeRule&&se?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } if ("+e+" !== undefined) {  ";var o=j?"data"+(j-1||""):"parentData",x=j?n.dataPathArr[j]:"parentDataProperty";m+=" "+z+" = "+e+"; ",j||(m+="if ("+o+" !== undefined)"),m+=" "+o+"["+x+"] = "+e+"; } "}else{var N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(ve||"type")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString($)+" , params: { type: '",ke?m+=""+he.join(","):m+=""+he,m+="' } ",n.opts.messages!==!1&&(m+=" , message: 'should be ",ke?m+=""+he.join(","):m+=""+he,m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+P+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+z+" "),m+=" } "):m+=" {} ";var F=m;m=N.pop(),!n.compositeRule&&se?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}m+=" } "}}if(n.schema.$ref&&!S)m+=" "+n.RULES.all.$ref.code(n,"$ref")+" ",se&&(m+=" } if (errors === ",U?m+="0":m+="errs_"+M,m+=") { ",Q+="}");else{var E=n.RULES;if(E){for(var u,R=-1,H=E.length-1;R<H;)if(u=E[R+=1],We(u)){if(u.type&&(m+=" if ("+n.util.checkDataType(u.type,z,n.opts.strictNumbers)+") { "),n.opts.useDefaults){if(u.type=="object"&&n.schema.properties){var I=n.schema.properties,Y=Object.keys(I),Z=Y;if(Z)for(var L,D=-1,ee=Z.length-1;D<ee;){L=Z[D+=1];var oe=I[L];if(oe.default!==void 0){var fe=z+n.util.getProperty(L);if(n.compositeRule){if(n.opts.strictDefaults){var J="default is ignored for: "+fe;if(n.opts.strictDefaults==="log")n.logger.warn(J);else throw new Error(J)}}else m+=" if ("+fe+" === undefined ",n.opts.useDefaults=="empty"&&(m+=" || "+fe+" === null || "+fe+" === '' "),m+=" ) "+fe+" = ",n.opts.useDefaults=="shared"?m+=" "+n.useDefault(oe.default)+" ":m+=" "+JSON.stringify(oe.default)+" ",m+="; "}}}else if(u.type=="array"&&Array.isArray(n.schema.items)){var ue=n.schema.items;if(ue){for(var oe,w=-1,qe=ue.length-1;w<qe;)if(oe=ue[w+=1],oe.default!==void 0){var fe=z+"["+w+"]";if(n.compositeRule){if(n.opts.strictDefaults){var J="default is ignored for: "+fe;if(n.opts.strictDefaults==="log")n.logger.warn(J);else throw new Error(J)}}else m+=" if ("+fe+" === undefined ",n.opts.useDefaults=="empty"&&(m+=" || "+fe+" === null || "+fe+" === '' "),m+=" ) "+fe+" = ",n.opts.useDefaults=="shared"?m+=" "+n.useDefault(oe.default)+" ":m+=" "+JSON.stringify(oe.default)+" ",m+="; "}}}}var rt=u.rules;if(rt){for(var Ve,et=-1,mt=rt.length-1;et<mt;)if(Ve=rt[et+=1],Xe(Ve)){var Ye=Ve.code(n,Ve.keyword,u.type);Ye&&(m+=" "+Ye+" ",se&&(de+="}"))}}if(se&&(m+=" "+de+" ",de=""),u.type&&(m+=" } ",he&&he===u.type&&!T)){m+=" else { ";var P=n.schemaPath+".type",$=n.errSchemaPath+"/type",N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(ve||"type")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString($)+" , params: { type: '",ke?m+=""+he.join(","):m+=""+he,m+="' } ",n.opts.messages!==!1&&(m+=" , message: 'should be ",ke?m+=""+he.join(","):m+=""+he,m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+P+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+z+" "),m+=" } "):m+=" {} ";var F=m;m=N.pop(),!n.compositeRule&&se?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } "}se&&(m+=" if (errors === ",U?m+="0":m+="errs_"+M,m+=") { ",Q+="}")}}}se&&(m+=" "+Q+" "),U?(h?(m+=" if (errors === 0) return data;           ",m+=" else throw new ValidationError(vErrors); "):(m+=" validate.errors = vErrors; ",m+=" return errors === 0;       "),m+=" }; return validate;"):m+=" var "+te+" = errors === errs_"+M+";";function We(nt){for(var Et=nt.rules,Le=0;Le<Et.length;Le++)if(Xe(Et[Le]))return!0}function Xe(nt){return n.schema[nt.keyword]!==void 0||nt.implements&&Ge(nt)}function Ge(nt){for(var Et=nt.implements,Le=0;Le<Et.length;Le++)if(n.schema[Et[Le]]!==void 0)return!0}return m}),validate}var compile_1,hasRequiredCompile;function requireCompile(){if(hasRequiredCompile)return compile_1;hasRequiredCompile=1;var t=requireResolve(),n=requireUtil(),l=requireError_classes(),d=requireFastJsonStableStringify(),m=requireValidate(),h=n.ucs2length,S=requireFastDeepEqual(),k=l.Validation;compile_1=A;function A(F,U,J,te){var se=this,de=this._opts,Q=[void 0],ve={},he=[],ke={},T=[],u={},p=[];U=U||{schema:F,refVal:Q,refs:ve};var b=B.call(this,F,U,te),e=this._compilations[b.index];if(b.compiling)return e.callValidate=o;var c=this._formats,y=this.RULES;try{var w=x(F,U,J,te);e.validate=w;var v=e.callValidate;return v&&(v.schema=w.schema,v.errors=null,v.refs=w.refs,v.refVal=w.refVal,v.root=w.root,v.$async=w.$async,de.sourceCode&&(v.source=w.source)),w}finally{M.call(this,F,U,te)}function o(){var oe=e.validate,fe=oe.apply(this,arguments);return o.errors=oe.errors,fe}function x(oe,fe,ue,qe){var rt=!fe||fe&&fe.schema==oe;if(fe.schema!=U.schema)return A.call(se,oe,fe,ue,qe);var Ve=oe.$async===!0,et=m({isTop:!0,schema:oe,isRoot:rt,baseId:qe,root:fe,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:l.MissingRef,RULES:y,validate:m,util:n,resolve:t,resolveRef:E,usePattern:L,useDefault:D,useCustomRule:ee,opts:de,formats:c,logger:se.logger,self:se});et=N(Q,$)+N(he,I)+N(T,P)+N(p,z)+et,de.processCode&&(et=de.processCode(et,oe));var mt;try{var Ye=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",et);mt=Ye(se,y,c,U,Q,T,p,S,h,k),Q[0]=mt}catch(We){throw se.logger.error("Error compiling schema, function code:",et),We}return mt.schema=oe,mt.errors=null,mt.refs=ve,mt.refVal=Q,mt.root=rt?mt:fe,Ve&&(mt.$async=!0),de.sourceCode===!0&&(mt.source={code:et,patterns:he,defaults:T}),mt}function E(oe,fe,ue){fe=t.url(oe,fe);var qe=ve[fe],rt,Ve;if(qe!==void 0)return rt=Q[qe],Ve="refVal["+qe+"]",Z(rt,Ve);if(!ue&&U.refs){var et=U.refs[fe];if(et!==void 0)return rt=U.refVal[et],Ve=R(fe,rt),Z(rt,Ve)}Ve=R(fe);var mt=t.call(se,x,U,fe);if(mt===void 0){var Ye=J&&J[fe];Ye&&(mt=t.inlineRef(Ye,de.inlineRefs)?Ye:A.call(se,Ye,U,J,oe))}if(mt===void 0)H(fe);else return Y(fe,mt),Z(mt,Ve)}function R(oe,fe){var ue=Q.length;return Q[ue]=fe,ve[oe]=ue,"refVal"+ue}function H(oe){delete ve[oe]}function Y(oe,fe){var ue=ve[oe];Q[ue]=fe}function Z(oe,fe){return typeof oe=="object"||typeof oe=="boolean"?{code:fe,schema:oe,inline:!0}:{code:fe,$async:oe&&!!oe.$async}}function L(oe){var fe=ke[oe];return fe===void 0&&(fe=ke[oe]=he.length,he[fe]=oe),"pattern"+fe}function D(oe){switch(typeof oe){case"boolean":case"number":return""+oe;case"string":return n.toQuotedString(oe);case"object":if(oe===null)return"null";var fe=d(oe),ue=u[fe];return ue===void 0&&(ue=u[fe]=T.length,T[ue]=oe),"default"+ue}}function ee(oe,fe,ue,qe){if(se._opts.validateSchema!==!1){var rt=oe.definition.dependencies;if(rt&&!rt.every(function(Et){return Object.prototype.hasOwnProperty.call(ue,Et)}))throw new Error("parent schema must have all required keywords: "+rt.join(","));var Ve=oe.definition.validateSchema;if(Ve){var et=Ve(fe);if(!et){var mt="keyword schema is invalid: "+se.errorsText(Ve.errors);if(se._opts.validateSchema=="log")se.logger.error(mt);else throw new Error(mt)}}}var Ye=oe.definition.compile,We=oe.definition.inline,Xe=oe.definition.macro,Ge;if(Ye)Ge=Ye.call(se,fe,ue,qe);else if(Xe)Ge=Xe.call(se,fe,ue,qe),de.validateSchema!==!1&&se.validateSchema(Ge,!0);else if(We)Ge=We.call(se,qe,oe.keyword,fe,ue);else if(Ge=oe.definition.validate,!Ge)return;if(Ge===void 0)throw new Error('custom keyword "'+oe.keyword+'"failed to compile');var nt=p.length;return p[nt]=Ge,{code:"customRule"+nt,validate:Ge}}}function B(F,U,J){var te=j.call(this,F,U,J);return te>=0?{index:te,compiling:!0}:(te=this._compilations.length,this._compilations[te]={schema:F,root:U,baseId:J},{index:te,compiling:!1})}function M(F,U,J){var te=j.call(this,F,U,J);te>=0&&this._compilations.splice(te,1)}function j(F,U,J){for(var te=0;te<this._compilations.length;te++){var se=this._compilations[te];if(se.schema==F&&se.root==U&&se.baseId==J)return te}return-1}function I(F,U){return"var pattern"+F+" = new RegExp("+n.toQuotedString(U[F])+");"}function P(F){return"var default"+F+" = defaults["+F+"];"}function $(F,U){return U[F]===void 0?"":"var refVal"+F+" = refVal["+F+"];"}function z(F){return"var customRule"+F+" = customRules["+F+"];"}function N(F,U){if(!F.length)return"";for(var J="",te=0;te<F.length;te++)J+=U(te,F);return J}return compile_1}var cache={exports:{}},hasRequiredCache;function requireCache(){if(hasRequiredCache)return cache.exports;hasRequiredCache=1;var t=cache.exports=function(){this._cache={}};return t.prototype.put=function(l,d){this._cache[l]=d},t.prototype.get=function(l){return this._cache[l]},t.prototype.del=function(l){delete this._cache[l]},t.prototype.clear=function(){this._cache={}},cache.exports}var formats_1,hasRequiredFormats;function requireFormats(){if(hasRequiredFormats)return formats_1;hasRequiredFormats=1;var t=requireUtil(),n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,l=[0,31,28,31,30,31,30,31,31,30,31,30,31],d=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,m=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,h=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,S=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,k=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,A=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,B=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,M=/^(?:\/(?:[^~/]|~0|~1)*)*$/,j=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,I=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;formats_1=P;function P(Q){return Q=Q=="full"?"full":"fast",t.copy(P[Q])}P.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":k,url:A,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:m,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:de,uuid:B,"json-pointer":M,"json-pointer-uri-fragment":j,"relative-json-pointer":I},P.full={date:z,time:N,"date-time":U,uri:te,"uri-reference":S,"uri-template":k,url:A,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:m,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:de,uuid:B,"json-pointer":M,"json-pointer-uri-fragment":j,"relative-json-pointer":I};function $(Q){return Q%4===0&&(Q%100!==0||Q%400===0)}function z(Q){var ve=Q.match(n);if(!ve)return!1;var he=+ve[1],ke=+ve[2],T=+ve[3];return ke>=1&&ke<=12&&T>=1&&T<=(ke==2&&$(he)?29:l[ke])}function N(Q,ve){var he=Q.match(d);if(!he)return!1;var ke=he[1],T=he[2],u=he[3],p=he[5];return(ke<=23&&T<=59&&u<=59||ke==23&&T==59&&u==60)&&(!ve||p)}var F=/t|\s/i;function U(Q){var ve=Q.split(F);return ve.length==2&&z(ve[0])&&N(ve[1],!0)}var J=/\/|:/;function te(Q){return J.test(Q)&&h.test(Q)}var se=/[^\\]\\Z/;function de(Q){if(se.test(Q))return!1;try{return new RegExp(Q),!0}catch{return!1}}return formats_1}var ref,hasRequiredRef;function requireRef(){return hasRequiredRef||(hasRequiredRef=1,ref=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.errSchemaPath+"/"+l,B=!n.opts.allErrors,M="data"+(S||""),j="valid"+h,I,P;if(k=="#"||k=="#/")n.isRoot?(I=n.async,P="validate"):(I=n.root.schema.$async===!0,P="root.refVal[0]");else{var $=n.resolveRef(n.baseId,k,n.isRoot);if($===void 0){var z=n.MissingRefError.message(n.baseId,k);if(n.opts.missingRefs=="fail"){n.logger.error(z);var N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(A)+" , params: { ref: '"+n.util.escapeQuotes(k)+"' } ",n.opts.messages!==!1&&(m+=" , message: 'can\\'t resolve reference "+n.util.escapeQuotes(k)+"' "),n.opts.verbose&&(m+=" , schema: "+n.util.toQuotedString(k)+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+M+" "),m+=" } "):m+=" {} ";var F=m;m=N.pop(),!n.compositeRule&&B?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",B&&(m+=" if (false) { ")}else if(n.opts.missingRefs=="ignore")n.logger.warn(z),B&&(m+=" if (true) { ");else throw new n.MissingRefError(n.baseId,k,z)}else if($.inline){var U=n.util.copy(n);U.level++;var J="valid"+U.level;U.schema=$.schema,U.schemaPath="",U.errSchemaPath=k;var te=n.validate(U).replace(/validate\.schema/g,$.code);m+=" "+te+" ",B&&(m+=" if ("+J+") { ")}else I=$.$async===!0||n.async&&$.$async!==!1,P=$.code}if(P){var N=N||[];N.push(m),m="",n.opts.passContext?m+=" "+P+".call(this, ":m+=" "+P+"( ",m+=" "+M+", (dataPath || '')",n.errorPath!='""'&&(m+=" + "+n.errorPath);var se=S?"data"+(S-1||""):"parentData",de=S?n.dataPathArr[S]:"parentDataProperty";m+=" , "+se+" , "+de+", rootData)  ";var Q=m;if(m=N.pop(),I){if(!n.async)throw new Error("async schema referenced by sync schema");B&&(m+=" var "+j+"; "),m+=" try { await "+Q+"; ",B&&(m+=" "+j+" = true; "),m+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",B&&(m+=" "+j+" = false; "),m+=" } ",B&&(m+=" if ("+j+") { ")}else m+=" if (!"+Q+") { if (vErrors === null) vErrors = "+P+".errors; else vErrors = vErrors.concat("+P+".errors); errors = vErrors.length; } ",B&&(m+=" else { ")}return m}),ref}var allOf,hasRequiredAllOf;function requireAllOf(){return hasRequiredAllOf||(hasRequiredAllOf=1,allOf=function(n,l,d){var m=" ",h=n.schema[l],S=n.schemaPath+n.util.getProperty(l),k=n.errSchemaPath+"/"+l,A=!n.opts.allErrors,B=n.util.copy(n),M="";B.level++;var j="valid"+B.level,I=B.baseId,P=!0,$=h;if($)for(var z,N=-1,F=$.length-1;N<F;)z=$[N+=1],(n.opts.strictKeywords?typeof z=="object"&&Object.keys(z).length>0||z===!1:n.util.schemaHasRules(z,n.RULES.all))&&(P=!1,B.schema=z,B.schemaPath=S+"["+N+"]",B.errSchemaPath=k+"/"+N,m+="  "+n.validate(B)+" ",B.baseId=I,A&&(m+=" if ("+j+") { ",M+="}"));return A&&(P?m+=" if (true) { ":m+=" "+M.slice(0,-1)+" "),m}),allOf}var anyOf,hasRequiredAnyOf;function requireAnyOf(){return hasRequiredAnyOf||(hasRequiredAnyOf=1,anyOf=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P="errs__"+h,$=n.util.copy(n),z="";$.level++;var N="valid"+$.level,F=k.every(function(ve){return n.opts.strictKeywords?typeof ve=="object"&&Object.keys(ve).length>0||ve===!1:n.util.schemaHasRules(ve,n.RULES.all)});if(F){var U=$.baseId;m+=" var "+P+" = errors; var "+I+" = false;  ";var J=n.compositeRule;n.compositeRule=$.compositeRule=!0;var te=k;if(te)for(var se,de=-1,Q=te.length-1;de<Q;)se=te[de+=1],$.schema=se,$.schemaPath=A+"["+de+"]",$.errSchemaPath=B+"/"+de,m+="  "+n.validate($)+" ",$.baseId=U,m+=" "+I+" = "+I+" || "+N+"; if (!"+I+") { ",z+="}";n.compositeRule=$.compositeRule=J,m+=" "+z+" if (!"+I+") {   var err =   ",n.createErrors!==!1?(m+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: {} ",n.opts.messages!==!1&&(m+=" , message: 'should match some schema in anyOf' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!n.compositeRule&&M&&(n.async?m+=" throw new ValidationError(vErrors); ":m+=" validate.errors = vErrors; return false; "),m+=" } else {  errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; } ",n.opts.allErrors&&(m+=" } ")}else M&&(m+=" if (true) { ");return m}),anyOf}var comment,hasRequiredComment;function requireComment(){return hasRequiredComment||(hasRequiredComment=1,comment=function(n,l,d){var m=" ",h=n.schema[l],S=n.errSchemaPath+"/"+l;n.opts.allErrors;var k=n.util.toQuotedString(h);return n.opts.$comment===!0?m+=" console.log("+k+");":typeof n.opts.$comment=="function"&&(m+=" self._opts.$comment("+k+", "+n.util.toQuotedString(S)+", validate.root.schema);"),m}),comment}var _const,hasRequired_const;function require_const(){return hasRequired_const||(hasRequired_const=1,_const=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P=n.opts.$data&&k&&k.$data;P&&(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; "),P||(m+=" var schema"+h+" = validate.schema"+A+";"),m+="var "+I+" = equal("+j+", schema"+h+"); if (!"+I+") {   ";var $=$||[];$.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'const' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { allowedValue: schema"+h+" } ",n.opts.messages!==!1&&(m+=" , message: 'should be equal to constant' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var z=m;return m=$.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+z+"]); ":m+=" validate.errors = ["+z+"]; return false; ":m+=" var err = "+z+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" }",M&&(m+=" else { "),m}),_const}var contains,hasRequiredContains;function requireContains(){return hasRequiredContains||(hasRequiredContains=1,contains=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P="errs__"+h,$=n.util.copy(n),z="";$.level++;var N="valid"+$.level,F="i"+h,U=$.dataLevel=n.dataLevel+1,J="data"+U,te=n.baseId,se=n.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:n.util.schemaHasRules(k,n.RULES.all);if(m+="var "+P+" = errors;var "+I+";",se){var de=n.compositeRule;n.compositeRule=$.compositeRule=!0,$.schema=k,$.schemaPath=A,$.errSchemaPath=B,m+=" var "+N+" = false; for (var "+F+" = 0; "+F+" < "+j+".length; "+F+"++) { ",$.errorPath=n.util.getPathExpr(n.errorPath,F,n.opts.jsonPointers,!0);var Q=j+"["+F+"]";$.dataPathArr[U]=F;var ve=n.validate($);$.baseId=te,n.util.varOccurences(ve,J)<2?m+=" "+n.util.varReplace(ve,J,Q)+" ":m+=" var "+J+" = "+Q+"; "+ve+" ",m+=" if ("+N+") break; }  ",n.compositeRule=$.compositeRule=de,m+=" "+z+" if (!"+N+") {"}else m+=" if ("+j+".length == 0) {";var he=he||[];he.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: {} ",n.opts.messages!==!1&&(m+=" , message: 'should contain a valid item' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var ke=m;return m=he.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+ke+"]); ":m+=" validate.errors = ["+ke+"]; return false; ":m+=" var err = "+ke+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } else { ",se&&(m+="  errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; } "),n.opts.allErrors&&(m+=" } "),m}),contains}var dependencies,hasRequiredDependencies;function requireDependencies(){return hasRequiredDependencies||(hasRequiredDependencies=1,dependencies=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="errs__"+h,P=n.util.copy(n),$="";P.level++;var z="valid"+P.level,N={},F={},U=n.opts.ownProperties;for(de in k)if(de!="__proto__"){var J=k[de],te=Array.isArray(J)?F:N;te[de]=J}m+="var "+I+" = errors;";var se=n.errorPath;m+="var missing"+h+";";for(var de in F)if(te=F[de],te.length){if(m+=" if ( "+j+n.util.getProperty(de)+" !== undefined ",U&&(m+=" && Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(de)+"') "),M){m+=" && ( ";var Q=te;if(Q)for(var ve,he=-1,ke=Q.length-1;he<ke;){ve=Q[he+=1],he&&(m+=" || ");var T=n.util.getProperty(ve),u=j+T;m+=" ( ( "+u+" === undefined ",U&&(m+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(ve)+"') "),m+=") && (missing"+h+" = "+n.util.toQuotedString(n.opts.jsonPointers?ve:T)+") ) "}m+=")) {  ";var p="missing"+h,b="' + "+p+" + '";n.opts._errorDataPathProperty&&(n.errorPath=n.opts.jsonPointers?n.util.getPathExpr(se,p,!0):se+" + "+p);var e=e||[];e.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { property: '"+n.util.escapeQuotes(de)+"', missingProperty: '"+b+"', depsCount: "+te.length+", deps: '"+n.util.escapeQuotes(te.length==1?te[0]:te.join(", "))+"' } ",n.opts.messages!==!1&&(m+=" , message: 'should have ",te.length==1?m+="property "+n.util.escapeQuotes(te[0]):m+="properties "+n.util.escapeQuotes(te.join(", ")),m+=" when property "+n.util.escapeQuotes(de)+" is present' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var c=m;m=e.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+c+"]); ":m+=" validate.errors = ["+c+"]; return false; ":m+=" var err = "+c+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{m+=" ) { ";var y=te;if(y)for(var ve,w=-1,v=y.length-1;w<v;){ve=y[w+=1];var T=n.util.getProperty(ve),b=n.util.escapeQuotes(ve),u=j+T;n.opts._errorDataPathProperty&&(n.errorPath=n.util.getPath(se,ve,n.opts.jsonPointers)),m+=" if ( "+u+" === undefined ",U&&(m+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(ve)+"') "),m+=") {  var err =   ",n.createErrors!==!1?(m+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { property: '"+n.util.escapeQuotes(de)+"', missingProperty: '"+b+"', depsCount: "+te.length+", deps: '"+n.util.escapeQuotes(te.length==1?te[0]:te.join(", "))+"' } ",n.opts.messages!==!1&&(m+=" , message: 'should have ",te.length==1?m+="property "+n.util.escapeQuotes(te[0]):m+="properties "+n.util.escapeQuotes(te.join(", ")),m+=" when property "+n.util.escapeQuotes(de)+" is present' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}m+=" }   ",M&&($+="}",m+=" else { ")}n.errorPath=se;var o=P.baseId;for(var de in N){var J=N[de];(n.opts.strictKeywords?typeof J=="object"&&Object.keys(J).length>0||J===!1:n.util.schemaHasRules(J,n.RULES.all))&&(m+=" "+z+" = true; if ( "+j+n.util.getProperty(de)+" !== undefined ",U&&(m+=" && Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(de)+"') "),m+=") { ",P.schema=J,P.schemaPath=A+n.util.getProperty(de),P.errSchemaPath=B+"/"+n.util.escapeFragment(de),m+="  "+n.validate(P)+" ",P.baseId=o,m+=" }  ",M&&(m+=" if ("+z+") { ",$+="}"))}return M&&(m+="   "+$+" if ("+I+" == errors) {"),m}),dependencies}var _enum,hasRequired_enum;function require_enum(){return hasRequired_enum||(hasRequired_enum=1,_enum=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P=n.opts.$data&&k&&k.$data;P&&(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ");var $="i"+h,z="schema"+h;P||(m+=" var "+z+" = validate.schema"+A+";"),m+="var "+I+";",P&&(m+=" if (schema"+h+" === undefined) "+I+" = true; else if (!Array.isArray(schema"+h+")) "+I+" = false; else {"),m+=""+I+" = false;for (var "+$+"=0; "+$+"<"+z+".length; "+$+"++) if (equal("+j+", "+z+"["+$+"])) { "+I+" = true; break; }",P&&(m+="  }  "),m+=" if (!"+I+") {   ";var N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { allowedValues: schema"+h+" } ",n.opts.messages!==!1&&(m+=" , message: 'should be equal to one of the allowed values' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var F=m;return m=N.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" }",M&&(m+=" else { "),m}),_enum}var format,hasRequiredFormat;function requireFormat(){return hasRequiredFormat||(hasRequiredFormat=1,format=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||"");if(n.opts.format===!1)return M&&(m+=" if (true) { "),m;var I=n.opts.$data&&k&&k.$data,P;I?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",P="schema"+h):P=k;var $=n.opts.unknownFormats,z=Array.isArray($);if(I){var N="format"+h,F="isObject"+h,U="formatType"+h;m+=" var "+N+" = formats["+P+"]; var "+F+" = typeof "+N+" == 'object' && !("+N+" instanceof RegExp) && "+N+".validate; var "+U+" = "+F+" && "+N+".type || 'string'; if ("+F+") { ",n.async&&(m+=" var async"+h+" = "+N+".async; "),m+=" "+N+" = "+N+".validate; } if (  ",I&&(m+=" ("+P+" !== undefined && typeof "+P+" != 'string') || "),m+=" (",$!="ignore"&&(m+=" ("+P+" && !"+N+" ",z&&(m+=" && self._opts.unknownFormats.indexOf("+P+") == -1 "),m+=") || "),m+=" ("+N+" && "+U+" == '"+d+"' && !(typeof "+N+" == 'function' ? ",n.async?m+=" (async"+h+" ? await "+N+"("+j+") : "+N+"("+j+")) ":m+=" "+N+"("+j+") ",m+=" : "+N+".test("+j+"))))) {"}else{var N=n.formats[k];if(!N){if($=="ignore")return n.logger.warn('unknown format "'+k+'" ignored in schema at path "'+n.errSchemaPath+'"'),M&&(m+=" if (true) { "),m;if(z&&$.indexOf(k)>=0)return M&&(m+=" if (true) { "),m;throw new Error('unknown format "'+k+'" is used in schema at path "'+n.errSchemaPath+'"')}var F=typeof N=="object"&&!(N instanceof RegExp)&&N.validate,U=F&&N.type||"string";if(F){var J=N.async===!0;N=N.validate}if(U!=d)return M&&(m+=" if (true) { "),m;if(J){if(!n.async)throw new Error("async format in sync schema");var te="formats"+n.util.getProperty(k)+".validate";m+=" if (!(await "+te+"("+j+"))) { "}else{m+=" if (! ";var te="formats"+n.util.getProperty(k);F&&(te+=".validate"),typeof N=="function"?m+=" "+te+"("+j+") ":m+=" "+te+".test("+j+") ",m+=") { "}}var se=se||[];se.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'format' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { format:  ",I?m+=""+P:m+=""+n.util.toQuotedString(k),m+="  } ",n.opts.messages!==!1&&(m+=` , message: 'should match format "`,I?m+="' + "+P+" + '":m+=""+n.util.escapeQuotes(k),m+=`"' `),n.opts.verbose&&(m+=" , schema:  ",I?m+="validate.schema"+A:m+=""+n.util.toQuotedString(k),m+="         , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var de=m;return m=se.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+de+"]); ":m+=" validate.errors = ["+de+"]; return false; ":m+=" var err = "+de+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } ",M&&(m+=" else { "),m}),format}var _if,hasRequired_if;function require_if(){return hasRequired_if||(hasRequired_if=1,_if=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P="errs__"+h,$=n.util.copy(n);$.level++;var z="valid"+$.level,N=n.schema.then,F=n.schema.else,U=N!==void 0&&(n.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:n.util.schemaHasRules(N,n.RULES.all)),J=F!==void 0&&(n.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:n.util.schemaHasRules(F,n.RULES.all)),te=$.baseId;if(U||J){var se;$.createErrors=!1,$.schema=k,$.schemaPath=A,$.errSchemaPath=B,m+=" var "+P+" = errors; var "+I+" = true;  ";var de=n.compositeRule;n.compositeRule=$.compositeRule=!0,m+="  "+n.validate($)+" ",$.baseId=te,$.createErrors=!0,m+="  errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; }  ",n.compositeRule=$.compositeRule=de,U?(m+=" if ("+z+") {  ",$.schema=n.schema.then,$.schemaPath=n.schemaPath+".then",$.errSchemaPath=n.errSchemaPath+"/then",m+="  "+n.validate($)+" ",$.baseId=te,m+=" "+I+" = "+z+"; ",U&&J?(se="ifClause"+h,m+=" var "+se+" = 'then'; "):se="'then'",m+=" } ",J&&(m+=" else { ")):m+=" if (!"+z+") { ",J&&($.schema=n.schema.else,$.schemaPath=n.schemaPath+".else",$.errSchemaPath=n.errSchemaPath+"/else",m+="  "+n.validate($)+" ",$.baseId=te,m+=" "+I+" = "+z+"; ",U&&J?(se="ifClause"+h,m+=" var "+se+" = 'else'; "):se="'else'",m+=" } "),m+=" if (!"+I+") {   var err =   ",n.createErrors!==!1?(m+=" { keyword: 'if' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { failingKeyword: "+se+" } ",n.opts.messages!==!1&&(m+=` , message: 'should match "' + `+se+` + '" schema' `),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!n.compositeRule&&M&&(n.async?m+=" throw new ValidationError(vErrors); ":m+=" validate.errors = vErrors; return false; "),m+=" }   ",M&&(m+=" else { ")}else M&&(m+=" if (true) { ");return m}),_if}var items,hasRequiredItems;function requireItems(){return hasRequiredItems||(hasRequiredItems=1,items=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P="errs__"+h,$=n.util.copy(n),z="";$.level++;var N="valid"+$.level,F="i"+h,U=$.dataLevel=n.dataLevel+1,J="data"+U,te=n.baseId;if(m+="var "+P+" = errors;var "+I+";",Array.isArray(k)){var se=n.schema.additionalItems;if(se===!1){m+=" "+I+" = "+j+".length <= "+k.length+"; ";var de=B;B=n.errSchemaPath+"/additionalItems",m+="  if (!"+I+") {   ";var Q=Q||[];Q.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { limit: "+k.length+" } ",n.opts.messages!==!1&&(m+=" , message: 'should NOT have more than "+k.length+" items' "),n.opts.verbose&&(m+=" , schema: false , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var ve=m;m=Q.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+ve+"]); ":m+=" validate.errors = ["+ve+"]; return false; ":m+=" var err = "+ve+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } ",B=de,M&&(z+="}",m+=" else { ")}var he=k;if(he){for(var ke,T=-1,u=he.length-1;T<u;)if(ke=he[T+=1],n.opts.strictKeywords?typeof ke=="object"&&Object.keys(ke).length>0||ke===!1:n.util.schemaHasRules(ke,n.RULES.all)){m+=" "+N+" = true; if ("+j+".length > "+T+") { ";var p=j+"["+T+"]";$.schema=ke,$.schemaPath=A+"["+T+"]",$.errSchemaPath=B+"/"+T,$.errorPath=n.util.getPathExpr(n.errorPath,T,n.opts.jsonPointers,!0),$.dataPathArr[U]=T;var b=n.validate($);$.baseId=te,n.util.varOccurences(b,J)<2?m+=" "+n.util.varReplace(b,J,p)+" ":m+=" var "+J+" = "+p+"; "+b+" ",m+=" }  ",M&&(m+=" if ("+N+") { ",z+="}")}}if(typeof se=="object"&&(n.opts.strictKeywords?typeof se=="object"&&Object.keys(se).length>0||se===!1:n.util.schemaHasRules(se,n.RULES.all))){$.schema=se,$.schemaPath=n.schemaPath+".additionalItems",$.errSchemaPath=n.errSchemaPath+"/additionalItems",m+=" "+N+" = true; if ("+j+".length > "+k.length+") {  for (var "+F+" = "+k.length+"; "+F+" < "+j+".length; "+F+"++) { ",$.errorPath=n.util.getPathExpr(n.errorPath,F,n.opts.jsonPointers,!0);var p=j+"["+F+"]";$.dataPathArr[U]=F;var b=n.validate($);$.baseId=te,n.util.varOccurences(b,J)<2?m+=" "+n.util.varReplace(b,J,p)+" ":m+=" var "+J+" = "+p+"; "+b+" ",M&&(m+=" if (!"+N+") break; "),m+=" } }  ",M&&(m+=" if ("+N+") { ",z+="}")}}else if(n.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:n.util.schemaHasRules(k,n.RULES.all)){$.schema=k,$.schemaPath=A,$.errSchemaPath=B,m+="  for (var "+F+" = 0; "+F+" < "+j+".length; "+F+"++) { ",$.errorPath=n.util.getPathExpr(n.errorPath,F,n.opts.jsonPointers,!0);var p=j+"["+F+"]";$.dataPathArr[U]=F;var b=n.validate($);$.baseId=te,n.util.varOccurences(b,J)<2?m+=" "+n.util.varReplace(b,J,p)+" ":m+=" var "+J+" = "+p+"; "+b+" ",M&&(m+=" if (!"+N+") break; "),m+=" }"}return M&&(m+=" "+z+" if ("+P+" == errors) {"),m}),items}var _limit,hasRequired_limit;function require_limit(){return hasRequired_limit||(hasRequired_limit=1,_limit=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,te,j="data"+(S||""),I=n.opts.$data&&k&&k.$data,P;I?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",P="schema"+h):P=k;var $=l=="maximum",z=$?"exclusiveMaximum":"exclusiveMinimum",N=n.schema[z],F=n.opts.$data&&N&&N.$data,U=$?"<":">",J=$?">":"<",te=void 0;if(!(I||typeof k=="number"||k===void 0))throw new Error(l+" must be number");if(!(F||N===void 0||typeof N=="number"||typeof N=="boolean"))throw new Error(z+" must be number or boolean");if(F){var se=n.util.getData(N.$data,S,n.dataPathArr),de="exclusive"+h,Q="exclType"+h,ve="exclIsNumber"+h,he="op"+h,ke="' + "+he+" + '";m+=" var schemaExcl"+h+" = "+se+"; ",se="schemaExcl"+h,m+=" var "+de+"; var "+Q+" = typeof "+se+"; if ("+Q+" != 'boolean' && "+Q+" != 'undefined' && "+Q+" != 'number') { ";var te=z,T=T||[];T.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(te||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: {} ",n.opts.messages!==!1&&(m+=" , message: '"+z+" should be boolean' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var u=m;m=T.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+u+"]); ":m+=" validate.errors = ["+u+"]; return false; ":m+=" var err = "+u+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } else if ( ",I&&(m+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),m+=" "+Q+" == 'number' ? ( ("+de+" = "+P+" === undefined || "+se+" "+U+"= "+P+") ? "+j+" "+J+"= "+se+" : "+j+" "+J+" "+P+" ) : ( ("+de+" = "+se+" === true) ? "+j+" "+J+"= "+P+" : "+j+" "+J+" "+P+" ) || "+j+" !== "+j+") { var op"+h+" = "+de+" ? '"+U+"' : '"+U+"='; ",k===void 0&&(te=z,B=n.errSchemaPath+"/"+z,P=se,I=F)}else{var ve=typeof N=="number",ke=U;if(ve&&I){var he="'"+ke+"'";m+=" if ( ",I&&(m+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),m+=" ( "+P+" === undefined || "+N+" "+U+"= "+P+" ? "+j+" "+J+"= "+N+" : "+j+" "+J+" "+P+" ) || "+j+" !== "+j+") { "}else{ve&&k===void 0?(de=!0,te=z,B=n.errSchemaPath+"/"+z,P=N,J+="="):(ve&&(P=Math[$?"min":"max"](N,k)),N===(ve?P:!0)?(de=!0,te=z,B=n.errSchemaPath+"/"+z,J+="="):(de=!1,ke+="="));var he="'"+ke+"'";m+=" if ( ",I&&(m+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),m+=" "+j+" "+J+" "+P+" || "+j+" !== "+j+") { "}}te=te||l;var T=T||[];T.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(te||"_limit")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { comparison: "+he+", limit: "+P+", exclusive: "+de+" } ",n.opts.messages!==!1&&(m+=" , message: 'should be "+ke+" ",I?m+="' + "+P:m+=""+P+"'"),n.opts.verbose&&(m+=" , schema:  ",I?m+="validate.schema"+A:m+=""+k,m+="         , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var u=m;return m=T.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+u+"]); ":m+=" validate.errors = ["+u+"]; return false; ":m+=" var err = "+u+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } ",M&&(m+=" else { "),m}),_limit}var _limitItems,hasRequired_limitItems;function require_limitItems(){return hasRequired_limitItems||(hasRequired_limitItems=1,_limitItems=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,z,j="data"+(S||""),I=n.opts.$data&&k&&k.$data,P;if(I?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",P="schema"+h):P=k,!(I||typeof k=="number"))throw new Error(l+" must be number");var $=l=="maxItems"?">":"<";m+="if ( ",I&&(m+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),m+=" "+j+".length "+$+" "+P+") { ";var z=l,N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(z||"_limitItems")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { limit: "+P+" } ",n.opts.messages!==!1&&(m+=" , message: 'should NOT have ",l=="maxItems"?m+="more":m+="fewer",m+=" than ",I?m+="' + "+P+" + '":m+=""+k,m+=" items' "),n.opts.verbose&&(m+=" , schema:  ",I?m+="validate.schema"+A:m+=""+k,m+="         , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var F=m;return m=N.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+="} ",M&&(m+=" else { "),m}),_limitItems}var _limitLength,hasRequired_limitLength;function require_limitLength(){return hasRequired_limitLength||(hasRequired_limitLength=1,_limitLength=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,z,j="data"+(S||""),I=n.opts.$data&&k&&k.$data,P;if(I?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",P="schema"+h):P=k,!(I||typeof k=="number"))throw new Error(l+" must be number");var $=l=="maxLength"?">":"<";m+="if ( ",I&&(m+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),n.opts.unicode===!1?m+=" "+j+".length ":m+=" ucs2length("+j+") ",m+=" "+$+" "+P+") { ";var z=l,N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(z||"_limitLength")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { limit: "+P+" } ",n.opts.messages!==!1&&(m+=" , message: 'should NOT be ",l=="maxLength"?m+="longer":m+="shorter",m+=" than ",I?m+="' + "+P+" + '":m+=""+k,m+=" characters' "),n.opts.verbose&&(m+=" , schema:  ",I?m+="validate.schema"+A:m+=""+k,m+="         , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var F=m;return m=N.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+="} ",M&&(m+=" else { "),m}),_limitLength}var _limitProperties,hasRequired_limitProperties;function require_limitProperties(){return hasRequired_limitProperties||(hasRequired_limitProperties=1,_limitProperties=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,z,j="data"+(S||""),I=n.opts.$data&&k&&k.$data,P;if(I?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",P="schema"+h):P=k,!(I||typeof k=="number"))throw new Error(l+" must be number");var $=l=="maxProperties"?">":"<";m+="if ( ",I&&(m+=" ("+P+" !== undefined && typeof "+P+" != 'number') || "),m+=" Object.keys("+j+").length "+$+" "+P+") { ";var z=l,N=N||[];N.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(z||"_limitProperties")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { limit: "+P+" } ",n.opts.messages!==!1&&(m+=" , message: 'should NOT have ",l=="maxProperties"?m+="more":m+="fewer",m+=" than ",I?m+="' + "+P+" + '":m+=""+k,m+=" properties' "),n.opts.verbose&&(m+=" , schema:  ",I?m+="validate.schema"+A:m+=""+k,m+="         , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var F=m;return m=N.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+F+"]); ":m+=" validate.errors = ["+F+"]; return false; ":m+=" var err = "+F+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+="} ",M&&(m+=" else { "),m}),_limitProperties}var multipleOf,hasRequiredMultipleOf;function requireMultipleOf(){return hasRequiredMultipleOf||(hasRequiredMultipleOf=1,multipleOf=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I=n.opts.$data&&k&&k.$data,P;if(I?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",P="schema"+h):P=k,!(I||typeof k=="number"))throw new Error(l+" must be number");m+="var division"+h+";if (",I&&(m+=" "+P+" !== undefined && ( typeof "+P+" != 'number' || "),m+=" (division"+h+" = "+j+" / "+P+", ",n.opts.multipleOfPrecision?m+=" Math.abs(Math.round(division"+h+") - division"+h+") > 1e-"+n.opts.multipleOfPrecision+" ":m+=" division"+h+" !== parseInt(division"+h+") ",m+=" ) ",I&&(m+="  )  "),m+=" ) {   ";var $=$||[];$.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { multipleOf: "+P+" } ",n.opts.messages!==!1&&(m+=" , message: 'should be multiple of ",I?m+="' + "+P:m+=""+P+"'"),n.opts.verbose&&(m+=" , schema:  ",I?m+="validate.schema"+A:m+=""+k,m+="         , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var z=m;return m=$.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+z+"]); ":m+=" validate.errors = ["+z+"]; return false; ":m+=" var err = "+z+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+="} ",M&&(m+=" else { "),m}),multipleOf}var not,hasRequiredNot;function requireNot(){return hasRequiredNot||(hasRequiredNot=1,not=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="errs__"+h,P=n.util.copy(n);P.level++;var $="valid"+P.level;if(n.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:n.util.schemaHasRules(k,n.RULES.all)){P.schema=k,P.schemaPath=A,P.errSchemaPath=B,m+=" var "+I+" = errors;  ";var z=n.compositeRule;n.compositeRule=P.compositeRule=!0,P.createErrors=!1;var N;P.opts.allErrors&&(N=P.opts.allErrors,P.opts.allErrors=!1),m+=" "+n.validate(P)+" ",P.createErrors=!0,N&&(P.opts.allErrors=N),n.compositeRule=P.compositeRule=z,m+=" if ("+$+") {   ";var F=F||[];F.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'not' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: {} ",n.opts.messages!==!1&&(m+=" , message: 'should NOT be valid' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var U=m;m=F.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+U+"]); ":m+=" validate.errors = ["+U+"]; return false; ":m+=" var err = "+U+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } else {  errors = "+I+"; if (vErrors !== null) { if ("+I+") vErrors.length = "+I+"; else vErrors = null; } ",n.opts.allErrors&&(m+=" } ")}else m+="  var err =   ",n.createErrors!==!1?(m+=" { keyword: 'not' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: {} ",n.opts.messages!==!1&&(m+=" , message: 'should NOT be valid' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",M&&(m+=" if (false) { ");return m}),not}var oneOf,hasRequiredOneOf;function requireOneOf(){return hasRequiredOneOf||(hasRequiredOneOf=1,oneOf=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P="errs__"+h,$=n.util.copy(n),z="";$.level++;var N="valid"+$.level,F=$.baseId,U="prevValid"+h,J="passingSchemas"+h;m+="var "+P+" = errors , "+U+" = false , "+I+" = false , "+J+" = null; ";var te=n.compositeRule;n.compositeRule=$.compositeRule=!0;var se=k;if(se)for(var de,Q=-1,ve=se.length-1;Q<ve;)de=se[Q+=1],(n.opts.strictKeywords?typeof de=="object"&&Object.keys(de).length>0||de===!1:n.util.schemaHasRules(de,n.RULES.all))?($.schema=de,$.schemaPath=A+"["+Q+"]",$.errSchemaPath=B+"/"+Q,m+="  "+n.validate($)+" ",$.baseId=F):m+=" var "+N+" = true; ",Q&&(m+=" if ("+N+" && "+U+") { "+I+" = false; "+J+" = ["+J+", "+Q+"]; } else { ",z+="}"),m+=" if ("+N+") { "+I+" = "+U+" = true; "+J+" = "+Q+"; }";return n.compositeRule=$.compositeRule=te,m+=""+z+"if (!"+I+") {   var err =   ",n.createErrors!==!1?(m+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { passingSchemas: "+J+" } ",n.opts.messages!==!1&&(m+=" , message: 'should match exactly one schema in oneOf' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!n.compositeRule&&M&&(n.async?m+=" throw new ValidationError(vErrors); ":m+=" validate.errors = vErrors; return false; "),m+="} else {  errors = "+P+"; if (vErrors !== null) { if ("+P+") vErrors.length = "+P+"; else vErrors = null; }",n.opts.allErrors&&(m+=" } "),m}),oneOf}var pattern,hasRequiredPattern;function requirePattern(){return hasRequiredPattern||(hasRequiredPattern=1,pattern=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I=n.opts.$data&&k&&k.$data,P;I?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",P="schema"+h):P=k;var $=I?"(new RegExp("+P+"))":n.usePattern(k);m+="if ( ",I&&(m+=" ("+P+" !== undefined && typeof "+P+" != 'string') || "),m+=" !"+$+".test("+j+") ) {   ";var z=z||[];z.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { pattern:  ",I?m+=""+P:m+=""+n.util.toQuotedString(k),m+="  } ",n.opts.messages!==!1&&(m+=` , message: 'should match pattern "`,I?m+="' + "+P+" + '":m+=""+n.util.escapeQuotes(k),m+=`"' `),n.opts.verbose&&(m+=" , schema:  ",I?m+="validate.schema"+A:m+=""+n.util.toQuotedString(k),m+="         , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var N=m;return m=z.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+N+"]); ":m+=" validate.errors = ["+N+"]; return false; ":m+=" var err = "+N+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+="} ",M&&(m+=" else { "),m}),pattern}var properties$l,hasRequiredProperties;function requireProperties(){return hasRequiredProperties||(hasRequiredProperties=1,properties$l=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="errs__"+h,P=n.util.copy(n),$="";P.level++;var z="valid"+P.level,N="key"+h,F="idx"+h,U=P.dataLevel=n.dataLevel+1,J="data"+U,te="dataProperties"+h,se=Object.keys(k||{}).filter(w),de=n.schema.patternProperties||{},Q=Object.keys(de).filter(w),ve=n.schema.additionalProperties,he=se.length||Q.length,ke=ve===!1,T=typeof ve=="object"&&Object.keys(ve).length,u=n.opts.removeAdditional,p=ke||T||u,b=n.opts.ownProperties,e=n.baseId,c=n.schema.required;if(c&&!(n.opts.$data&&c.$data)&&c.length<n.opts.loopRequired)var y=n.util.toHash(c);function w(dt){return dt!=="__proto__"}if(m+="var "+I+" = errors;var "+z+" = true;",b&&(m+=" var "+te+" = undefined;"),p){if(b?m+=" "+te+" = "+te+" || Object.keys("+j+"); for (var "+F+"=0; "+F+"<"+te+".length; "+F+"++) { var "+N+" = "+te+"["+F+"]; ":m+=" for (var "+N+" in "+j+") { ",he){if(m+=" var isAdditional"+h+" = !(false ",se.length)if(se.length>8)m+=" || validate.schema"+A+".hasOwnProperty("+N+") ";else{var v=se;if(v)for(var o,x=-1,E=v.length-1;x<E;)o=v[x+=1],m+=" || "+N+" == "+n.util.toQuotedString(o)+" "}if(Q.length){var R=Q;if(R)for(var H,Y=-1,Z=R.length-1;Y<Z;)H=R[Y+=1],m+=" || "+n.usePattern(H)+".test("+N+") "}m+=" ); if (isAdditional"+h+") { "}if(u=="all")m+=" delete "+j+"["+N+"]; ";else{var L=n.errorPath,D="' + "+N+" + '";if(n.opts._errorDataPathProperty&&(n.errorPath=n.util.getPathExpr(n.errorPath,N,n.opts.jsonPointers)),ke)if(u)m+=" delete "+j+"["+N+"]; ";else{m+=" "+z+" = false; ";var ee=B;B=n.errSchemaPath+"/additionalProperties";var oe=oe||[];oe.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { additionalProperty: '"+D+"' } ",n.opts.messages!==!1&&(m+=" , message: '",n.opts._errorDataPathProperty?m+="is an invalid additional property":m+="should NOT have additional properties",m+="' "),n.opts.verbose&&(m+=" , schema: false , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var fe=m;m=oe.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+fe+"]); ":m+=" validate.errors = ["+fe+"]; return false; ":m+=" var err = "+fe+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",B=ee,M&&(m+=" break; ")}else if(T)if(u=="failing"){m+=" var "+I+" = errors;  ";var ue=n.compositeRule;n.compositeRule=P.compositeRule=!0,P.schema=ve,P.schemaPath=n.schemaPath+".additionalProperties",P.errSchemaPath=n.errSchemaPath+"/additionalProperties",P.errorPath=n.opts._errorDataPathProperty?n.errorPath:n.util.getPathExpr(n.errorPath,N,n.opts.jsonPointers);var qe=j+"["+N+"]";P.dataPathArr[U]=N;var rt=n.validate(P);P.baseId=e,n.util.varOccurences(rt,J)<2?m+=" "+n.util.varReplace(rt,J,qe)+" ":m+=" var "+J+" = "+qe+"; "+rt+" ",m+=" if (!"+z+") { errors = "+I+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+j+"["+N+"]; }  ",n.compositeRule=P.compositeRule=ue}else{P.schema=ve,P.schemaPath=n.schemaPath+".additionalProperties",P.errSchemaPath=n.errSchemaPath+"/additionalProperties",P.errorPath=n.opts._errorDataPathProperty?n.errorPath:n.util.getPathExpr(n.errorPath,N,n.opts.jsonPointers);var qe=j+"["+N+"]";P.dataPathArr[U]=N;var rt=n.validate(P);P.baseId=e,n.util.varOccurences(rt,J)<2?m+=" "+n.util.varReplace(rt,J,qe)+" ":m+=" var "+J+" = "+qe+"; "+rt+" ",M&&(m+=" if (!"+z+") break; ")}n.errorPath=L}he&&(m+=" } "),m+=" }  ",M&&(m+=" if ("+z+") { ",$+="}")}var Ve=n.opts.useDefaults&&!n.compositeRule;if(se.length){var et=se;if(et)for(var o,mt=-1,Ye=et.length-1;mt<Ye;){o=et[mt+=1];var We=k[o];if(n.opts.strictKeywords?typeof We=="object"&&Object.keys(We).length>0||We===!1:n.util.schemaHasRules(We,n.RULES.all)){var Xe=n.util.getProperty(o),qe=j+Xe,Ge=Ve&&We.default!==void 0;P.schema=We,P.schemaPath=A+Xe,P.errSchemaPath=B+"/"+n.util.escapeFragment(o),P.errorPath=n.util.getPath(n.errorPath,o,n.opts.jsonPointers),P.dataPathArr[U]=n.util.toQuotedString(o);var rt=n.validate(P);if(P.baseId=e,n.util.varOccurences(rt,J)<2){rt=n.util.varReplace(rt,J,qe);var nt=qe}else{var nt=J;m+=" var "+J+" = "+qe+"; "}if(Ge)m+=" "+rt+" ";else{if(y&&y[o]){m+=" if ( "+nt+" === undefined ",b&&(m+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(o)+"') "),m+=") { "+z+" = false; ";var L=n.errorPath,ee=B,Et=n.util.escapeQuotes(o);n.opts._errorDataPathProperty&&(n.errorPath=n.util.getPath(L,o,n.opts.jsonPointers)),B=n.errSchemaPath+"/required";var oe=oe||[];oe.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'required' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { missingProperty: '"+Et+"' } ",n.opts.messages!==!1&&(m+=" , message: '",n.opts._errorDataPathProperty?m+="is a required property":m+="should have required property \\'"+Et+"\\'",m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var fe=m;m=oe.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+fe+"]); ":m+=" validate.errors = ["+fe+"]; return false; ":m+=" var err = "+fe+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",B=ee,n.errorPath=L,m+=" } else { "}else M?(m+=" if ( "+nt+" === undefined ",b&&(m+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(o)+"') "),m+=") { "+z+" = true; } else { "):(m+=" if ("+nt+" !== undefined ",b&&(m+=" &&   Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(o)+"') "),m+=" ) { ");m+=" "+rt+" } "}}M&&(m+=" if ("+z+") { ",$+="}")}}if(Q.length){var Le=Q;if(Le)for(var H,Oe=-1,$t=Le.length-1;Oe<$t;){H=Le[Oe+=1];var We=de[H];if(n.opts.strictKeywords?typeof We=="object"&&Object.keys(We).length>0||We===!1:n.util.schemaHasRules(We,n.RULES.all)){P.schema=We,P.schemaPath=n.schemaPath+".patternProperties"+n.util.getProperty(H),P.errSchemaPath=n.errSchemaPath+"/patternProperties/"+n.util.escapeFragment(H),b?m+=" "+te+" = "+te+" || Object.keys("+j+"); for (var "+F+"=0; "+F+"<"+te+".length; "+F+"++) { var "+N+" = "+te+"["+F+"]; ":m+=" for (var "+N+" in "+j+") { ",m+=" if ("+n.usePattern(H)+".test("+N+")) { ",P.errorPath=n.util.getPathExpr(n.errorPath,N,n.opts.jsonPointers);var qe=j+"["+N+"]";P.dataPathArr[U]=N;var rt=n.validate(P);P.baseId=e,n.util.varOccurences(rt,J)<2?m+=" "+n.util.varReplace(rt,J,qe)+" ":m+=" var "+J+" = "+qe+"; "+rt+" ",M&&(m+=" if (!"+z+") break; "),m+=" } ",M&&(m+=" else "+z+" = true; "),m+=" }  ",M&&(m+=" if ("+z+") { ",$+="}")}}}return M&&(m+=" "+$+" if ("+I+" == errors) {"),m}),properties$l}var propertyNames,hasRequiredPropertyNames;function requirePropertyNames(){return hasRequiredPropertyNames||(hasRequiredPropertyNames=1,propertyNames=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="errs__"+h,P=n.util.copy(n),$="";P.level++;var z="valid"+P.level;if(m+="var "+I+" = errors;",n.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:n.util.schemaHasRules(k,n.RULES.all)){P.schema=k,P.schemaPath=A,P.errSchemaPath=B;var N="key"+h,F="idx"+h,U="i"+h,J="' + "+N+" + '",te=P.dataLevel=n.dataLevel+1,se="data"+te,de="dataProperties"+h,Q=n.opts.ownProperties,ve=n.baseId;Q&&(m+=" var "+de+" = undefined; "),Q?m+=" "+de+" = "+de+" || Object.keys("+j+"); for (var "+F+"=0; "+F+"<"+de+".length; "+F+"++) { var "+N+" = "+de+"["+F+"]; ":m+=" for (var "+N+" in "+j+") { ",m+=" var startErrs"+h+" = errors; ";var he=N,ke=n.compositeRule;n.compositeRule=P.compositeRule=!0;var T=n.validate(P);P.baseId=ve,n.util.varOccurences(T,se)<2?m+=" "+n.util.varReplace(T,se,he)+" ":m+=" var "+se+" = "+he+"; "+T+" ",n.compositeRule=P.compositeRule=ke,m+=" if (!"+z+") { for (var "+U+"=startErrs"+h+"; "+U+"<errors; "+U+"++) { vErrors["+U+"].propertyName = "+N+"; }   var err =   ",n.createErrors!==!1?(m+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { propertyName: '"+J+"' } ",n.opts.messages!==!1&&(m+=" , message: 'property name \\'"+J+"\\' is invalid' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!n.compositeRule&&M&&(n.async?m+=" throw new ValidationError(vErrors); ":m+=" validate.errors = vErrors; return false; "),M&&(m+=" break; "),m+=" } }"}return M&&(m+=" "+$+" if ("+I+" == errors) {"),m}),propertyNames}var required$h,hasRequiredRequired;function requireRequired(){return hasRequiredRequired||(hasRequiredRequired=1,required$h=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P=n.opts.$data&&k&&k.$data;P&&(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ");var $="schema"+h;if(!P)if(k.length<n.opts.loopRequired&&n.schema.properties&&Object.keys(n.schema.properties).length){var z=[],N=k;if(N)for(var F,U=-1,J=N.length-1;U<J;){F=N[U+=1];var te=n.schema.properties[F];te&&(n.opts.strictKeywords?typeof te=="object"&&Object.keys(te).length>0||te===!1:n.util.schemaHasRules(te,n.RULES.all))||(z[z.length]=F)}}else var z=k;if(P||z.length){var se=n.errorPath,de=P||z.length>=n.opts.loopRequired,Q=n.opts.ownProperties;if(M)if(m+=" var missing"+h+"; ",de){P||(m+=" var "+$+" = validate.schema"+A+"; ");var ve="i"+h,he="schema"+h+"["+ve+"]",ke="' + "+he+" + '";n.opts._errorDataPathProperty&&(n.errorPath=n.util.getPathExpr(se,he,n.opts.jsonPointers)),m+=" var "+I+" = true; ",P&&(m+=" if (schema"+h+" === undefined) "+I+" = true; else if (!Array.isArray(schema"+h+")) "+I+" = false; else {"),m+=" for (var "+ve+" = 0; "+ve+" < "+$+".length; "+ve+"++) { "+I+" = "+j+"["+$+"["+ve+"]] !== undefined ",Q&&(m+=" &&   Object.prototype.hasOwnProperty.call("+j+", "+$+"["+ve+"]) "),m+="; if (!"+I+") break; } ",P&&(m+="  }  "),m+="  if (!"+I+") {   ";var T=T||[];T.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'required' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { missingProperty: '"+ke+"' } ",n.opts.messages!==!1&&(m+=" , message: '",n.opts._errorDataPathProperty?m+="is a required property":m+="should have required property \\'"+ke+"\\'",m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var u=m;m=T.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+u+"]); ":m+=" validate.errors = ["+u+"]; return false; ":m+=" var err = "+u+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } else { "}else{m+=" if ( ";var p=z;if(p)for(var b,ve=-1,e=p.length-1;ve<e;){b=p[ve+=1],ve&&(m+=" || ");var c=n.util.getProperty(b),y=j+c;m+=" ( ( "+y+" === undefined ",Q&&(m+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(b)+"') "),m+=") && (missing"+h+" = "+n.util.toQuotedString(n.opts.jsonPointers?b:c)+") ) "}m+=") {  ";var he="missing"+h,ke="' + "+he+" + '";n.opts._errorDataPathProperty&&(n.errorPath=n.opts.jsonPointers?n.util.getPathExpr(se,he,!0):se+" + "+he);var T=T||[];T.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'required' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { missingProperty: '"+ke+"' } ",n.opts.messages!==!1&&(m+=" , message: '",n.opts._errorDataPathProperty?m+="is a required property":m+="should have required property \\'"+ke+"\\'",m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var u=m;m=T.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+u+"]); ":m+=" validate.errors = ["+u+"]; return false; ":m+=" var err = "+u+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } else { "}else if(de){P||(m+=" var "+$+" = validate.schema"+A+"; ");var ve="i"+h,he="schema"+h+"["+ve+"]",ke="' + "+he+" + '";n.opts._errorDataPathProperty&&(n.errorPath=n.util.getPathExpr(se,he,n.opts.jsonPointers)),P&&(m+=" if ("+$+" && !Array.isArray("+$+")) {  var err =   ",n.createErrors!==!1?(m+=" { keyword: 'required' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { missingProperty: '"+ke+"' } ",n.opts.messages!==!1&&(m+=" , message: '",n.opts._errorDataPathProperty?m+="is a required property":m+="should have required property \\'"+ke+"\\'",m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+$+" !== undefined) { "),m+=" for (var "+ve+" = 0; "+ve+" < "+$+".length; "+ve+"++) { if ("+j+"["+$+"["+ve+"]] === undefined ",Q&&(m+=" || ! Object.prototype.hasOwnProperty.call("+j+", "+$+"["+ve+"]) "),m+=") {  var err =   ",n.createErrors!==!1?(m+=" { keyword: 'required' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { missingProperty: '"+ke+"' } ",n.opts.messages!==!1&&(m+=" , message: '",n.opts._errorDataPathProperty?m+="is a required property":m+="should have required property \\'"+ke+"\\'",m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",P&&(m+="  }  ")}else{var w=z;if(w)for(var b,v=-1,o=w.length-1;v<o;){b=w[v+=1];var c=n.util.getProperty(b),ke=n.util.escapeQuotes(b),y=j+c;n.opts._errorDataPathProperty&&(n.errorPath=n.util.getPath(se,b,n.opts.jsonPointers)),m+=" if ( "+y+" === undefined ",Q&&(m+=" || ! Object.prototype.hasOwnProperty.call("+j+", '"+n.util.escapeQuotes(b)+"') "),m+=") {  var err =   ",n.createErrors!==!1?(m+=" { keyword: 'required' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { missingProperty: '"+ke+"' } ",n.opts.messages!==!1&&(m+=" , message: '",n.opts._errorDataPathProperty?m+="is a required property":m+="should have required property \\'"+ke+"\\'",m+="' "),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n.errorPath=se}else M&&(m+=" if (true) {");return m}),required$h}var uniqueItems,hasRequiredUniqueItems;function requireUniqueItems(){return hasRequiredUniqueItems||(hasRequiredUniqueItems=1,uniqueItems=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j="data"+(S||""),I="valid"+h,P=n.opts.$data&&k&&k.$data,$;if(P?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",$="schema"+h):$=k,(k||P)&&n.opts.uniqueItems!==!1){P&&(m+=" var "+I+"; if ("+$+" === false || "+$+" === undefined) "+I+" = true; else if (typeof "+$+" != 'boolean') "+I+" = false; else { "),m+=" var i = "+j+".length , "+I+" = true , j; if (i > 1) { ";var z=n.schema.items&&n.schema.items.type,N=Array.isArray(z);if(!z||z=="object"||z=="array"||N&&(z.indexOf("object")>=0||z.indexOf("array")>=0))m+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+j+"[i], "+j+"[j])) { "+I+" = false; break outer; } } } ";else{m+=" var itemIndices = {}, item; for (;i--;) { var item = "+j+"[i]; ";var F="checkDataType"+(N?"s":"");m+=" if ("+n.util[F](z,"item",n.opts.strictNumbers,!0)+") continue; ",N&&(m+=` if (typeof item == 'string') item = '"' + item; `),m+=" if (typeof itemIndices[item] == 'number') { "+I+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}m+=" } ",P&&(m+="  }  "),m+=" if (!"+I+") {   ";var U=U||[];U.push(m),m="",n.createErrors!==!1?(m+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { i: i, j: j } ",n.opts.messages!==!1&&(m+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),n.opts.verbose&&(m+=" , schema:  ",P?m+="validate.schema"+A:m+=""+k,m+="         , parentSchema: validate.schema"+n.schemaPath+" , data: "+j+" "),m+=" } "):m+=" {} ";var J=m;m=U.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+J+"]); ":m+=" validate.errors = ["+J+"]; return false; ":m+=" var err = "+J+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m+=" } ",M&&(m+=" else { ")}else M&&(m+=" if (true) { ");return m}),uniqueItems}var dotjs,hasRequiredDotjs;function requireDotjs(){return hasRequiredDotjs||(hasRequiredDotjs=1,dotjs={$ref:requireRef(),allOf:requireAllOf(),anyOf:requireAnyOf(),$comment:requireComment(),const:require_const(),contains:requireContains(),dependencies:requireDependencies(),enum:require_enum(),format:requireFormat(),if:require_if(),items:requireItems(),maximum:require_limit(),minimum:require_limit(),maxItems:require_limitItems(),minItems:require_limitItems(),maxLength:require_limitLength(),minLength:require_limitLength(),maxProperties:require_limitProperties(),minProperties:require_limitProperties(),multipleOf:requireMultipleOf(),not:requireNot(),oneOf:requireOneOf(),pattern:requirePattern(),properties:requireProperties(),propertyNames:requirePropertyNames(),required:requireRequired(),uniqueItems:requireUniqueItems(),validate:requireValidate()}),dotjs}var rules,hasRequiredRules;function requireRules(){if(hasRequiredRules)return rules;hasRequiredRules=1;var t=requireDotjs(),n=requireUtil().toHash;return rules=function(){var d=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],m=["type","$comment"],h=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],S=["number","integer","string","array","object","boolean","null"];return d.all=n(m),d.types=n(S),d.forEach(function(k){k.rules=k.rules.map(function(A){var B;if(typeof A=="object"){var M=Object.keys(A)[0];B=A[M],A=M,B.forEach(function(I){m.push(I),d.all[I]=!0})}m.push(A);var j=d.all[A]={keyword:A,code:t[A],implements:B};return j}),d.all.$comment={keyword:"$comment",code:t.$comment},k.type&&(d.types[k.type]=k)}),d.keywords=n(m.concat(h)),d.custom={},d},rules}var data,hasRequiredData;function requireData(){if(hasRequiredData)return data;hasRequiredData=1;var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return data=function(n,l){for(var d=0;d<l.length;d++){n=JSON.parse(JSON.stringify(n));var m=l[d].split("/"),h=n,S;for(S=1;S<m.length;S++)h=h[m[S]];for(S=0;S<t.length;S++){var k=t[S],A=h[k];A&&(h[k]={anyOf:[A,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return n},data}var async,hasRequiredAsync;function requireAsync(){if(hasRequiredAsync)return async;hasRequiredAsync=1;var t=requireError_classes().MissingRef;async=n;function n(l,d,m){var h=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof d=="function"&&(m=d,d=void 0);var S=k(l).then(function(){var B=h._addSchema(l,void 0,d);return B.validate||A(B)});return m&&S.then(function(B){m(null,B)},m),S;function k(B){var M=B.$schema;return M&&!h.getSchema(M)?n.call(h,{$ref:M},!0):Promise.resolve()}function A(B){try{return h._compile(B)}catch(j){if(j instanceof t)return M(j);throw j}function M(j){var I=j.missingSchema;if(z(I))throw new Error("Schema "+I+" is loaded but "+j.missingRef+" cannot be resolved");var P=h._loadingSchemas[I];return P||(P=h._loadingSchemas[I]=h._opts.loadSchema(I),P.then($,$)),P.then(function(N){if(!z(I))return k(N).then(function(){z(I)||h.addSchema(N,I,void 0,d)})}).then(function(){return A(B)});function $(){delete h._loadingSchemas[I]}function z(N){return h._refs[N]||h._schemas[N]}}}}return async}var custom,hasRequiredCustom;function requireCustom(){return hasRequiredCustom||(hasRequiredCustom=1,custom=function(n,l,d){var m=" ",h=n.level,S=n.dataLevel,k=n.schema[l],A=n.schemaPath+n.util.getProperty(l),B=n.errSchemaPath+"/"+l,M=!n.opts.allErrors,j,I="data"+(S||""),P="valid"+h,$="errs__"+h,z=n.opts.$data&&k&&k.$data,N;z?(m+=" var schema"+h+" = "+n.util.getData(k.$data,S,n.dataPathArr)+"; ",N="schema"+h):N=k;var F=this,U="definition"+h,J=F.definition,te="",se,de,Q,ve,he;if(z&&J.$data){he="keywordValidate"+h;var ke=J.validateSchema;m+=" var "+U+" = RULES.custom['"+l+"'].definition; var "+he+" = "+U+".validate;"}else{if(ve=n.useCustomRule(F,k,n.schema,n),!ve)return;N="validate.schema"+A,he=ve.code,se=J.compile,de=J.inline,Q=J.macro}var T=he+".errors",u="i"+h,p="ruleErr"+h,b=J.async;if(b&&!n.async)throw new Error("async keyword in sync schema");if(de||Q||(m+=""+T+" = null;"),m+="var "+$+" = errors;var "+P+";",z&&J.$data&&(te+="}",m+=" if ("+N+" === undefined) { "+P+" = true; } else { ",ke&&(te+="}",m+=" "+P+" = "+U+".validateSchema("+N+"); if ("+P+") { ")),de)J.statements?m+=" "+ve.validate+" ":m+=" "+P+" = "+ve.validate+"; ";else if(Q){var e=n.util.copy(n),te="";e.level++;var c="valid"+e.level;e.schema=ve.validate,e.schemaPath="";var y=n.compositeRule;n.compositeRule=e.compositeRule=!0;var w=n.validate(e).replace(/validate\.schema/g,he);n.compositeRule=e.compositeRule=y,m+=" "+w}else{var v=v||[];v.push(m),m="",m+="  "+he+".call( ",n.opts.passContext?m+="this":m+="self",se||J.schema===!1?m+=" , "+I+" ":m+=" , "+N+" , "+I+" , validate.schema"+n.schemaPath+" ",m+=" , (dataPath || '')",n.errorPath!='""'&&(m+=" + "+n.errorPath);var o=S?"data"+(S-1||""):"parentData",x=S?n.dataPathArr[S]:"parentDataProperty";m+=" , "+o+" , "+x+" , rootData )  ";var E=m;m=v.pop(),J.errors===!1?(m+=" "+P+" = ",b&&(m+="await "),m+=""+E+"; "):b?(T="customErrors"+h,m+=" var "+T+" = null; try { "+P+" = await "+E+"; } catch (e) { "+P+" = false; if (e instanceof ValidationError) "+T+" = e.errors; else throw e; } "):m+=" "+T+" = null; "+P+" = "+E+"; "}if(J.modifying&&(m+=" if ("+o+") "+I+" = "+o+"["+x+"];"),m+=""+te,J.valid)M&&(m+=" if (true) { ");else{m+=" if ( ",J.valid===void 0?(m+=" !",Q?m+=""+c:m+=""+P):m+=" "+!J.valid+" ",m+=") { ",j=F.keyword;var v=v||[];v.push(m),m="";var v=v||[];v.push(m),m="",n.createErrors!==!1?(m+=" { keyword: '"+(j||"custom")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { keyword: '"+F.keyword+"' } ",n.opts.messages!==!1&&(m+=` , message: 'should pass "`+F.keyword+`" keyword validation' `),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+I+" "),m+=" } "):m+=" {} ";var R=m;m=v.pop(),!n.compositeRule&&M?n.async?m+=" throw new ValidationError(["+R+"]); ":m+=" validate.errors = ["+R+"]; return false; ":m+=" var err = "+R+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var H=m;m=v.pop(),de?J.errors?J.errors!="full"&&(m+="  for (var "+u+"="+$+"; "+u+"<errors; "+u+"++) { var "+p+" = vErrors["+u+"]; if ("+p+".dataPath === undefined) "+p+".dataPath = (dataPath || '') + "+n.errorPath+"; if ("+p+".schemaPath === undefined) { "+p+'.schemaPath = "'+B+'"; } ',n.opts.verbose&&(m+=" "+p+".schema = "+N+"; "+p+".data = "+I+"; "),m+=" } "):J.errors===!1?m+=" "+H+" ":(m+=" if ("+$+" == errors) { "+H+" } else {  for (var "+u+"="+$+"; "+u+"<errors; "+u+"++) { var "+p+" = vErrors["+u+"]; if ("+p+".dataPath === undefined) "+p+".dataPath = (dataPath || '') + "+n.errorPath+"; if ("+p+".schemaPath === undefined) { "+p+'.schemaPath = "'+B+'"; } ',n.opts.verbose&&(m+=" "+p+".schema = "+N+"; "+p+".data = "+I+"; "),m+=" } } "):Q?(m+="   var err =   ",n.createErrors!==!1?(m+=" { keyword: '"+(j||"custom")+"' , dataPath: (dataPath || '') + "+n.errorPath+" , schemaPath: "+n.util.toQuotedString(B)+" , params: { keyword: '"+F.keyword+"' } ",n.opts.messages!==!1&&(m+=` , message: 'should pass "`+F.keyword+`" keyword validation' `),n.opts.verbose&&(m+=" , schema: validate.schema"+A+" , parentSchema: validate.schema"+n.schemaPath+" , data: "+I+" "),m+=" } "):m+=" {} ",m+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!n.compositeRule&&M&&(n.async?m+=" throw new ValidationError(vErrors); ":m+=" validate.errors = vErrors; return false; ")):J.errors===!1?m+=" "+H+" ":(m+=" if (Array.isArray("+T+")) { if (vErrors === null) vErrors = "+T+"; else vErrors = vErrors.concat("+T+"); errors = vErrors.length;  for (var "+u+"="+$+"; "+u+"<errors; "+u+"++) { var "+p+" = vErrors["+u+"]; if ("+p+".dataPath === undefined) "+p+".dataPath = (dataPath || '') + "+n.errorPath+";  "+p+'.schemaPath = "'+B+'";  ',n.opts.verbose&&(m+=" "+p+".schema = "+N+"; "+p+".data = "+I+"; "),m+=" } } else { "+H+" } "),m+=" } ",M&&(m+=" else { ")}return m}),custom}const $schema$k="http://json-schema.org/draft-07/schema#",$id$k="http://json-schema.org/draft-07/schema#",title$1="Core schema meta-schema",definitions$1={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type$i=["object","boolean"],properties$k={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},require$$13$1={$schema:$schema$k,$id:$id$k,title:title$1,definitions:definitions$1,type:type$i,properties:properties$k,default:!0};var definition_schema,hasRequiredDefinition_schema;function requireDefinition_schema(){if(hasRequiredDefinition_schema)return definition_schema;hasRequiredDefinition_schema=1;var t=require$$13$1;return definition_schema={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:t.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:t.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},definition_schema}var keyword,hasRequiredKeyword;function requireKeyword(){if(hasRequiredKeyword)return keyword;hasRequiredKeyword=1;var t=/^[a-z_$][a-z0-9_$-]*$/i,n=requireCustom(),l=requireDefinition_schema();keyword={add:d,get:m,remove:h,validate:S};function d(k,A){var B=this.RULES;if(B.keywords[k])throw new Error("Keyword "+k+" is already defined");if(!t.test(k))throw new Error("Keyword "+k+" is not a valid identifier");if(A){this.validateKeyword(A,!0);var M=A.type;if(Array.isArray(M))for(var j=0;j<M.length;j++)P(k,M[j],A);else P(k,M,A);var I=A.metaSchema;I&&(A.$data&&this._opts.$data&&(I={anyOf:[I,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),A.validateSchema=this.compile(I,!0))}B.keywords[k]=B.all[k]=!0;function P($,z,N){for(var F,U=0;U<B.length;U++){var J=B[U];if(J.type==z){F=J;break}}F||(F={type:z,rules:[]},B.push(F));var te={keyword:$,definition:N,custom:!0,code:n,implements:N.implements};F.rules.push(te),B.custom[$]=te}return this}function m(k){var A=this.RULES.custom[k];return A?A.definition:this.RULES.keywords[k]||!1}function h(k){var A=this.RULES;delete A.keywords[k],delete A.all[k],delete A.custom[k];for(var B=0;B<A.length;B++)for(var M=A[B].rules,j=0;j<M.length;j++)if(M[j].keyword==k){M.splice(j,1);break}return this}function S(k,A){S.errors=null;var B=this._validateKeyword=this._validateKeyword||this.compile(l,!0);if(B(k))return!0;if(S.errors=B.errors,A)throw new Error("custom keyword definition is invalid: "+this.errorsText(B.errors));return!1}return keyword}const $schema$j="http://json-schema.org/draft-07/schema#",$id$j="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description="Meta-schema for $data reference (JSON Schema extension proposal)",type$h="object",required$g=["$data"],properties$j={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties=!1,require$$12$1={$schema:$schema$j,$id:$id$j,description,type:type$h,required:required$g,properties:properties$j,additionalProperties};var ajv,hasRequiredAjv;function requireAjv(){if(hasRequiredAjv)return ajv;hasRequiredAjv=1;var t=requireCompile(),n=requireResolve(),l=requireCache(),d=requireSchema_obj(),m=requireFastJsonStableStringify(),h=requireFormats(),S=requireRules(),k=requireData(),A=requireUtil();ajv=$,$.prototype.validate=z,$.prototype.compile=N,$.prototype.addSchema=F,$.prototype.addMetaSchema=U,$.prototype.validateSchema=J,$.prototype.getSchema=se,$.prototype.removeSchema=ve,$.prototype.addFormat=y,$.prototype.errorsText=c,$.prototype._addSchema=ke,$.prototype._compile=T,$.prototype.compileAsync=requireAsync();var B=requireKeyword();$.prototype.addKeyword=B.add,$.prototype.getKeyword=B.get,$.prototype.removeKeyword=B.remove,$.prototype.validateKeyword=B.validate;var M=requireError_classes();$.ValidationError=M.Validation,$.MissingRefError=M.MissingRef,$.$dataMetaSchema=k;var j="http://json-schema.org/draft-07/schema",I=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],P=["/properties"];function $(Z){if(!(this instanceof $))return new $(Z);Z=this._opts=A.copy(Z)||{},H(this),this._schemas={},this._refs={},this._fragments={},this._formats=h(Z.format),this._cache=Z.cache||new l,this._loadingSchemas={},this._compilations=[],this.RULES=S(),this._getId=u(Z),Z.loopRequired=Z.loopRequired||1/0,Z.errorDataPath=="property"&&(Z._errorDataPathProperty=!0),Z.serialize===void 0&&(Z.serialize=m),this._metaOpts=R(this),Z.formats&&o(this),Z.keywords&&x(this),w(this),typeof Z.meta=="object"&&this.addMetaSchema(Z.meta),Z.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),v(this)}function z(Z,L){var D;if(typeof Z=="string"){if(D=this.getSchema(Z),!D)throw new Error('no schema with key or ref "'+Z+'"')}else{var ee=this._addSchema(Z);D=ee.validate||this._compile(ee)}var oe=D(L);return D.$async!==!0&&(this.errors=D.errors),oe}function N(Z,L){var D=this._addSchema(Z,void 0,L);return D.validate||this._compile(D)}function F(Z,L,D,ee){if(Array.isArray(Z)){for(var oe=0;oe<Z.length;oe++)this.addSchema(Z[oe],void 0,D,ee);return this}var fe=this._getId(Z);if(fe!==void 0&&typeof fe!="string")throw new Error("schema id must be string");return L=n.normalizeId(L||fe),E(this,L),this._schemas[L]=this._addSchema(Z,D,ee,!0),this}function U(Z,L,D){return this.addSchema(Z,L,D,!0),this}function J(Z,L){var D=Z.$schema;if(D!==void 0&&typeof D!="string")throw new Error("$schema must be a string");if(D=D||this._opts.defaultMeta||te(this),!D)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var ee=this.validate(D,Z);if(!ee&&L){var oe="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(oe);else throw new Error(oe)}return ee}function te(Z){var L=Z._opts.meta;return Z._opts.defaultMeta=typeof L=="object"?Z._getId(L)||L:Z.getSchema(j)?j:void 0,Z._opts.defaultMeta}function se(Z){var L=Q(this,Z);switch(typeof L){case"object":return L.validate||this._compile(L);case"string":return this.getSchema(L);case"undefined":return de(this,Z)}}function de(Z,L){var D=n.schema.call(Z,{schema:{}},L);if(D){var ee=D.schema,oe=D.root,fe=D.baseId,ue=t.call(Z,ee,oe,void 0,fe);return Z._fragments[L]=new d({ref:L,fragment:!0,schema:ee,root:oe,baseId:fe,validate:ue}),ue}}function Q(Z,L){return L=n.normalizeId(L),Z._schemas[L]||Z._refs[L]||Z._fragments[L]}function ve(Z){if(Z instanceof RegExp)return he(this,this._schemas,Z),he(this,this._refs,Z),this;switch(typeof Z){case"undefined":return he(this,this._schemas),he(this,this._refs),this._cache.clear(),this;case"string":var L=Q(this,Z);return L&&this._cache.del(L.cacheKey),delete this._schemas[Z],delete this._refs[Z],this;case"object":var D=this._opts.serialize,ee=D?D(Z):Z;this._cache.del(ee);var oe=this._getId(Z);oe&&(oe=n.normalizeId(oe),delete this._schemas[oe],delete this._refs[oe])}return this}function he(Z,L,D){for(var ee in L){var oe=L[ee];!oe.meta&&(!D||D.test(ee))&&(Z._cache.del(oe.cacheKey),delete L[ee])}}function ke(Z,L,D,ee){if(typeof Z!="object"&&typeof Z!="boolean")throw new Error("schema should be object or boolean");var oe=this._opts.serialize,fe=oe?oe(Z):Z,ue=this._cache.get(fe);if(ue)return ue;ee=ee||this._opts.addUsedSchema!==!1;var qe=n.normalizeId(this._getId(Z));qe&&ee&&E(this,qe);var rt=this._opts.validateSchema!==!1&&!L,Ve;rt&&!(Ve=qe&&qe==n.normalizeId(Z.$schema))&&this.validateSchema(Z,!0);var et=n.ids.call(this,Z),mt=new d({id:qe,schema:Z,localRefs:et,cacheKey:fe,meta:D});return qe[0]!="#"&&ee&&(this._refs[qe]=mt),this._cache.put(fe,mt),rt&&Ve&&this.validateSchema(Z,!0),mt}function T(Z,L){if(Z.compiling)return Z.validate=oe,oe.schema=Z.schema,oe.errors=null,oe.root=L||oe,Z.schema.$async===!0&&(oe.$async=!0),oe;Z.compiling=!0;var D;Z.meta&&(D=this._opts,this._opts=this._metaOpts);var ee;try{ee=t.call(this,Z.schema,L,Z.localRefs)}catch(fe){throw delete Z.validate,fe}finally{Z.compiling=!1,Z.meta&&(this._opts=D)}return Z.validate=ee,Z.refs=ee.refs,Z.refVal=ee.refVal,Z.root=ee.root,ee;function oe(){var fe=Z.validate,ue=fe.apply(this,arguments);return oe.errors=fe.errors,ue}}function u(Z){switch(Z.schemaId){case"auto":return e;case"id":return p;default:return b}}function p(Z){return Z.$id&&this.logger.warn("schema $id ignored",Z.$id),Z.id}function b(Z){return Z.id&&this.logger.warn("schema id ignored",Z.id),Z.$id}function e(Z){if(Z.$id&&Z.id&&Z.$id!=Z.id)throw new Error("schema $id is different from id");return Z.$id||Z.id}function c(Z,L){if(Z=Z||this.errors,!Z)return"No errors";L=L||{};for(var D=L.separator===void 0?", ":L.separator,ee=L.dataVar===void 0?"data":L.dataVar,oe="",fe=0;fe<Z.length;fe++){var ue=Z[fe];ue&&(oe+=ee+ue.dataPath+" "+ue.message+D)}return oe.slice(0,-D.length)}function y(Z,L){return typeof L=="string"&&(L=new RegExp(L)),this._formats[Z]=L,this}function w(Z){var L;if(Z._opts.$data&&(L=require$$12$1,Z.addMetaSchema(L,L.$id,!0)),Z._opts.meta!==!1){var D=require$$13$1;Z._opts.$data&&(D=k(D,P)),Z.addMetaSchema(D,j,!0),Z._refs["http://json-schema.org/schema"]=j}}function v(Z){var L=Z._opts.schemas;if(L)if(Array.isArray(L))Z.addSchema(L);else for(var D in L)Z.addSchema(L[D],D)}function o(Z){for(var L in Z._opts.formats){var D=Z._opts.formats[L];Z.addFormat(L,D)}}function x(Z){for(var L in Z._opts.keywords){var D=Z._opts.keywords[L];Z.addKeyword(L,D)}}function E(Z,L){if(Z._schemas[L]||Z._refs[L])throw new Error('schema with key or id "'+L+'" already exists')}function R(Z){for(var L=A.copy(Z._opts),D=0;D<I.length;D++)delete L[I[D]];return L}function H(Z){var L=Z._opts.logger;if(L===!1)Z.logger={log:Y,warn:Y,error:Y};else{if(L===void 0&&(L=console),!(typeof L=="object"&&L.log&&L.warn&&L.error))throw new Error("logger must implement log, warn and error methods");Z.logger=L}}function Y(){}return ajv}var error,hasRequiredError;function requireError(){if(hasRequiredError)return error;hasRequiredError=1;function t(n){var l="validation failed";this.name="HARError",this.message=l,this.errors=n,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(l).stack}return t.prototype=Error.prototype,error=t,error}const $id$i="afterRequest.json#",$schema$i="http://json-schema.org/draft-06/schema#",type$g="object",optional$4=!0,required$f=["lastAccess","eTag","hitCount"],properties$i={expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}},require$$0={$id:$id$i,$schema:$schema$i,type:type$g,optional:optional$4,required:required$f,properties:properties$i},$id$h="beforeRequest.json#",$schema$h="http://json-schema.org/draft-06/schema#",type$f="object",optional$3=!0,required$e=["lastAccess","eTag","hitCount"],properties$h={expires:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},lastAccess:{type:"string",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))?"},eTag:{type:"string"},hitCount:{type:"integer"},comment:{type:"string"}},require$$1={$id:$id$h,$schema:$schema$h,type:type$f,optional:optional$3,required:required$e,properties:properties$h},$id$g="browser.json#",$schema$g="http://json-schema.org/draft-06/schema#",type$e="object",required$d=["name","version"],properties$g={name:{type:"string"},version:{type:"string"},comment:{type:"string"}},require$$2={$id:$id$g,$schema:$schema$g,type:type$e,required:required$d,properties:properties$g},$id$f="cache.json#",$schema$f="http://json-schema.org/draft-06/schema#",properties$f={beforeRequest:{oneOf:[{type:"null"},{$ref:"beforeRequest.json#"}]},afterRequest:{oneOf:[{type:"null"},{$ref:"afterRequest.json#"}]},comment:{type:"string"}},require$$3$1={$id:$id$f,$schema:$schema$f,properties:properties$f},$id$e="content.json#",$schema$e="http://json-schema.org/draft-06/schema#",type$d="object",required$c=["size","mimeType"],properties$e={size:{type:"integer"},compression:{type:"integer"},mimeType:{type:"string"},text:{type:"string"},encoding:{type:"string"},comment:{type:"string"}},require$$4={$id:$id$e,$schema:$schema$e,type:type$d,required:required$c,properties:properties$e},$id$d="cookie.json#",$schema$d="http://json-schema.org/draft-06/schema#",type$c="object",required$b=["name","value"],properties$d={name:{type:"string"},value:{type:"string"},path:{type:"string"},domain:{type:"string"},expires:{type:["string","null"],format:"date-time"},httpOnly:{type:"boolean"},secure:{type:"boolean"},comment:{type:"string"}},require$$5={$id:$id$d,$schema:$schema$d,type:type$c,required:required$b,properties:properties$d},$id$c="creator.json#",$schema$c="http://json-schema.org/draft-06/schema#",type$b="object",required$a=["name","version"],properties$c={name:{type:"string"},version:{type:"string"},comment:{type:"string"}},require$$6={$id:$id$c,$schema:$schema$c,type:type$b,required:required$a,properties:properties$c},$id$b="entry.json#",$schema$b="http://json-schema.org/draft-06/schema#",type$a="object",optional$2=!0,required$9=["startedDateTime","time","request","response","cache","timings"],properties$b={pageref:{type:"string"},startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},time:{type:"number",min:0},request:{$ref:"request.json#"},response:{$ref:"response.json#"},cache:{$ref:"cache.json#"},timings:{$ref:"timings.json#"},serverIPAddress:{type:"string",oneOf:[{format:"ipv4"},{format:"ipv6"}]},connection:{type:"string"},comment:{type:"string"}},require$$7={$id:$id$b,$schema:$schema$b,type:type$a,optional:optional$2,required:required$9,properties:properties$b},$id$a="har.json#",$schema$a="http://json-schema.org/draft-06/schema#",type$9="object",required$8=["log"],properties$a={log:{$ref:"log.json#"}},require$$8={$id:$id$a,$schema:$schema$a,type:type$9,required:required$8,properties:properties$a},$id$9="header.json#",$schema$9="http://json-schema.org/draft-06/schema#",type$8="object",required$7=["name","value"],properties$9={name:{type:"string"},value:{type:"string"},comment:{type:"string"}},require$$9={$id:$id$9,$schema:$schema$9,type:type$8,required:required$7,properties:properties$9},$id$8="log.json#",$schema$8="http://json-schema.org/draft-06/schema#",type$7="object",required$6=["version","creator","entries"],properties$8={version:{type:"string"},creator:{$ref:"creator.json#"},browser:{$ref:"browser.json#"},pages:{type:"array",items:{$ref:"page.json#"}},entries:{type:"array",items:{$ref:"entry.json#"}},comment:{type:"string"}},require$$10={$id:$id$8,$schema:$schema$8,type:type$7,required:required$6,properties:properties$8},$id$7="page.json#",$schema$7="http://json-schema.org/draft-06/schema#",type$6="object",optional$1=!0,required$5=["startedDateTime","id","title","pageTimings"],properties$7={startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},id:{type:"string",unique:!0},title:{type:"string"},pageTimings:{$ref:"pageTimings.json#"},comment:{type:"string"}},require$$11={$id:$id$7,$schema:$schema$7,type:type$6,optional:optional$1,required:required$5,properties:properties$7},$id$6="pageTimings.json#",$schema$6="http://json-schema.org/draft-06/schema#",type$5="object",properties$6={onContentLoad:{type:"number",min:-1},onLoad:{type:"number",min:-1},comment:{type:"string"}},require$$12={$id:$id$6,$schema:$schema$6,type:type$5,properties:properties$6},$id$5="postData.json#",$schema$5="http://json-schema.org/draft-06/schema#",type$4="object",optional=!0,required$4=["mimeType"],properties$5={mimeType:{type:"string"},text:{type:"string"},params:{type:"array",required:["name"],properties:{name:{type:"string"},value:{type:"string"},fileName:{type:"string"},contentType:{type:"string"},comment:{type:"string"}}},comment:{type:"string"}},require$$13={$id:$id$5,$schema:$schema$5,type:type$4,optional,required:required$4,properties:properties$5},$id$4="query.json#",$schema$4="http://json-schema.org/draft-06/schema#",type$3="object",required$3=["name","value"],properties$4={name:{type:"string"},value:{type:"string"},comment:{type:"string"}},require$$14={$id:$id$4,$schema:$schema$4,type:type$3,required:required$3,properties:properties$4},$id$3="request.json#",$schema$3="http://json-schema.org/draft-06/schema#",type$2="object",required$2=["method","url","httpVersion","cookies","headers","queryString","headersSize","bodySize"],properties$3={method:{type:"string"},url:{type:"string",format:"uri"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},queryString:{type:"array",items:{$ref:"query.json#"}},postData:{$ref:"postData.json#"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}},require$$15={$id:$id$3,$schema:$schema$3,type:type$2,required:required$2,properties:properties$3},$id$2="response.json#",$schema$2="http://json-schema.org/draft-06/schema#",type$1="object",required$1=["status","statusText","httpVersion","cookies","headers","content","redirectURL","headersSize","bodySize"],properties$2={status:{type:"integer"},statusText:{type:"string"},httpVersion:{type:"string"},cookies:{type:"array",items:{$ref:"cookie.json#"}},headers:{type:"array",items:{$ref:"header.json#"}},content:{$ref:"content.json#"},redirectURL:{type:"string"},headersSize:{type:"integer"},bodySize:{type:"integer"},comment:{type:"string"}},require$$16={$id:$id$2,$schema:$schema$2,type:type$1,required:required$1,properties:properties$2},$id$1="timings.json#",$schema$1="http://json-schema.org/draft-06/schema#",required=["send","wait","receive"],properties$1={dns:{type:"number",min:-1},connect:{type:"number",min:-1},blocked:{type:"number",min:-1},send:{type:"number",min:-1},wait:{type:"number",min:-1},receive:{type:"number",min:-1},ssl:{type:"number",min:-1},comment:{type:"string"}},require$$17={$id:$id$1,$schema:$schema$1,required,properties:properties$1};var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={afterRequest:require$$0,beforeRequest:require$$1,browser:require$$2,cache:require$$3$1,content:require$$4,cookie:require$$5,creator:require$$6,entry:require$$7,har:require$$8,header:require$$9,log:require$$10,page:require$$11,pageTimings:require$$12,postData:require$$13,query:require$$14,request:require$$15,response:require$$16,timings:require$$17}),lib}const $schema="http://json-schema.org/draft-06/schema#",$id="http://json-schema.org/draft-06/schema#",title="Core schema meta-schema",definitions={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type=["object","boolean"],properties={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},title:{type:"string"},description:{type:"string"},default:{},examples:{type:"array",items:{}},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:{},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},require$$3={$schema,$id,title,definitions,type,properties,default:{}};var hasRequiredPromise;function requirePromise(){if(hasRequiredPromise)return promise;hasRequiredPromise=1;var t=requireAjv(),n=requireError(),l=requireLib(),d;function m(){var S=new t({allErrors:!0});return S.addMetaSchema(require$$3),S.addSchema(l),S}function h(S,k){k=k||{},d=d||m();var A=d.getSchema(S+".json");return new Promise(function(B,M){var j=A(k);j?B(k):M(new n(A.errors))})}return promise.afterRequest=function(S){return h("afterRequest",S)},promise.beforeRequest=function(S){return h("beforeRequest",S)},promise.browser=function(S){return h("browser",S)},promise.cache=function(S){return h("cache",S)},promise.content=function(S){return h("content",S)},promise.cookie=function(S){return h("cookie",S)},promise.creator=function(S){return h("creator",S)},promise.entry=function(S){return h("entry",S)},promise.har=function(S){return h("har",S)},promise.header=function(S){return h("header",S)},promise.log=function(S){return h("log",S)},promise.page=function(S){return h("page",S)},promise.pageTimings=function(S){return h("pageTimings",S)},promise.postData=function(S){return h("postData",S)},promise.query=function(S){return h("query",S)},promise.request=function(S){return h("request",S)},promise.response=function(S){return h("response",S)},promise.timings=function(S){return h("timings",S)},promise}var hasRequiredHar;function requireHar(){if(hasRequiredHar)return har;hasRequiredHar=1;var t=require$$1$5,n=require$$1$1,l=requirePromise(),d=extend$1;function m(h){this.request=h}return m.prototype.reducer=function(h,S){if(h[S.name]===void 0)return h[S.name]=S.value,h;var k=[h[S.name],S.value];return h[S.name]=k,h},m.prototype.prep=function(h){if(h.queryObj={},h.headersObj={},h.postData.jsonObj=!1,h.postData.paramsObj=!1,h.queryString&&h.queryString.length&&(h.queryObj=h.queryString.reduce(this.reducer,{})),h.headers&&h.headers.length&&(h.headersObj=h.headers.reduceRight(function(A,B){return A[B.name]=B.value,A},{})),h.cookies&&h.cookies.length){var S=h.cookies.map(function(A){return A.name+"="+A.value});S.length&&(h.headersObj.cookie=S.join("; "))}function k(A){return A.some(function(B){return h.postData.mimeType.indexOf(B)===0})}if(k(["multipart/mixed","multipart/related","multipart/form-data","multipart/alternative"]))h.postData.mimeType="multipart/form-data";else if(k(["application/x-www-form-urlencoded"]))h.postData.params?(h.postData.paramsObj=h.postData.params.reduce(this.reducer,{}),h.postData.text=n.stringify(h.postData.paramsObj)):h.postData.text="";else if(k(["text/json","text/x-json","application/json","application/x-json"])&&(h.postData.mimeType="application/json",h.postData.text))try{h.postData.jsonObj=JSON.parse(h.postData.text)}catch(A){this.request.debug(A),h.postData.mimeType="text/plain"}return h},m.prototype.options=function(h){if(!h.har)return h;var S={};if(d(S,h.har),S.log&&S.log.entries&&(S=S.log.entries[0]),S.url=S.url||h.url||h.uri||h.baseUrl||"/",S.httpVersion=S.httpVersion||"HTTP/1.1",S.queryString=S.queryString||[],S.headers=S.headers||[],S.cookies=S.cookies||[],S.postData=S.postData||{},S.postData.mimeType=S.postData.mimeType||"application/octet-stream",S.bodySize=0,S.headersSize=0,S.postData.size=0,!l.request(S))return h;var k=this.prep(S);k.url&&(h.url=k.url),k.method&&(h.method=k.method),Object.keys(k.queryObj).length&&(h.qs=k.queryObj),Object.keys(k.headersObj).length&&(h.headers=k.headersObj);function A(B){return k.postData.mimeType.indexOf(B)===0}return A("application/x-www-form-urlencoded")?h.form=k.postData.paramsObj:A("application/json")?k.postData.jsonObj&&(h.body=k.postData.jsonObj,h.json=!0):A("multipart/form-data")?(h.formData={},k.postData.params.forEach(function(B){var M={};if(!B.fileName&&!B.contentType){h.formData[B.name]=B.value;return}B.fileName&&!B.value?M.value=t.createReadStream(B.fileName):B.value&&(M.value=B.value),B.fileName&&(M.options={filename:B.fileName,contentType:B.contentType?B.contentType:null}),h.formData[B.name]=M})):k.postData.text&&(h.body=k.postData.text),h},har.Har=m,har}var auth={},rngBrowser={exports:{}},hasRequiredRngBrowser;function requireRngBrowser(){if(hasRequiredRngBrowser)return rngBrowser.exports;hasRequiredRngBrowser=1;var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);rngBrowser.exports=function(){return t(n),n}}else{var l=new Array(16);rngBrowser.exports=function(){for(var m=0,h;m<16;m++)m&3||(h=Math.random()*4294967296),l[m]=h>>>((m&3)<<3)&255;return l}}return rngBrowser.exports}var bytesToUuid_1,hasRequiredBytesToUuid;function requireBytesToUuid(){if(hasRequiredBytesToUuid)return bytesToUuid_1;hasRequiredBytesToUuid=1;for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);function l(d,m){var h=m||0,S=t;return[S[d[h++]],S[d[h++]],S[d[h++]],S[d[h++]],"-",S[d[h++]],S[d[h++]],"-",S[d[h++]],S[d[h++]],"-",S[d[h++]],S[d[h++]],"-",S[d[h++]],S[d[h++]],S[d[h++]],S[d[h++]],S[d[h++]],S[d[h++]]].join("")}return bytesToUuid_1=l,bytesToUuid_1}var v4_1,hasRequiredV4;function requireV4(){if(hasRequiredV4)return v4_1;hasRequiredV4=1;var t=requireRngBrowser(),n=requireBytesToUuid();function l(d,m,h){var S=m&&h||0;typeof d=="string"&&(m=d==="binary"?new Array(16):null,d=null),d=d||{};var k=d.random||(d.rng||t)();if(k[6]=k[6]&15|64,k[8]=k[8]&63|128,m)for(var A=0;A<16;++A)m[S+A]=k[A];return m||n(k)}return v4_1=l,v4_1}var hasRequiredAuth;function requireAuth(){if(hasRequiredAuth)return auth;hasRequiredAuth=1;var t=requireCaseless(),n=requireV4(),l=helpers$1,d=l.md5,m=l.toBase64;function h(S){this.request=S,this.hasAuth=!1,this.sentAuth=!1,this.bearerToken=null,this.user=null,this.pass=null}return h.prototype.basic=function(S,k,A){var B=this;(typeof S!="string"||k!==void 0&&typeof k!="string")&&B.request.emit("error",new Error("auth() received invalid user or password")),B.user=S,B.pass=k,B.hasAuth=!0;var M=S+":"+(k||"");if(A||typeof A>"u"){var j="Basic "+m(M);return B.sentAuth=!0,j}},h.prototype.bearer=function(S,k){var A=this;if(A.bearerToken=S,A.hasAuth=!0,k||typeof k>"u"){typeof S=="function"&&(S=S());var B="Bearer "+(S||"");return A.sentAuth=!0,B}},h.prototype.digest=function(S,k,A){for(var B=this,M={},j=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;;){var I=j.exec(A);if(!I)break;M[I[1]]=I[2]||I[3]}var P=function(de,Q,ve,he,ke,T){var u=d(Q+":"+ve+":"+he);return de&&de.toLowerCase()==="md5-sess"?d(u+":"+ke+":"+T):u},$=/(^|,)\s*auth\s*($|,)/.test(M.qop)&&"auth",z=$&&"00000001",N=$&&n().replace(/-/g,""),F=P(M.algorithm,B.user,M.realm,B.pass,M.nonce,N),U=d(S+":"+k),J=d($?F+":"+M.nonce+":"+z+":"+N+":"+$+":"+U:F+":"+M.nonce+":"+U),te={username:B.user,realm:M.realm,nonce:M.nonce,uri:k,qop:$,response:J,nc:z,cnonce:N,algorithm:M.algorithm,opaque:M.opaque};A=[];for(var se in te)te[se]&&(se==="qop"||se==="nc"||se==="algorithm"?A.push(se+"="+te[se]):A.push(se+'="'+te[se]+'"'));return A="Digest "+A.join(", "),B.sentAuth=!0,A},h.prototype.onRequest=function(S,k,A,B){var M=this,j=M.request,I;B===void 0&&S===void 0?M.request.emit("error",new Error("no auth mechanism defined")):B!==void 0?I=M.bearer(B,A):I=M.basic(S,k,A),I&&j.setHeader("authorization",I)},h.prototype.onResponse=function(S){var k=this,A=k.request;if(!k.hasAuth||k.sentAuth)return null;var B=t(S.headers),M=B.get("www-authenticate"),j=M&&M.split(" ")[0].toLowerCase();switch(A.debug("reauth",j),j){case"basic":return k.basic(k.user,k.pass,!0);case"bearer":return k.bearer(k.bearerToken,!0);case"digest":return k.digest(A.method,A.path,M)}},auth.Auth=h,auth}var oauth={},oauthSign={},hasRequiredOauthSign;function requireOauthSign(){if(hasRequiredOauthSign)return oauthSign;hasRequiredOauthSign=1;var t=requireCryptoBrowserify();function n(I,P,$){return t.createHmac($,I).update(P).digest("base64")}function l(I,P){return t.createSign("RSA-SHA1").update(P).sign(I,"base64")}function d(I){return encodeURIComponent(I).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}function m(I){var P,$,z=[];for(P in I)if($=I[P],Array.isArray($))for(var N=0;N<$.length;N++)z.push([P,$[N]]);else if(typeof $=="object")for(var F in $)z.push([P+"["+F+"]",$[F]]);else z.push([P,$]);return z}function h(I,P){return I>P?1:I<P?-1:0}function S(I,P,$){var z=m($).map(function(F){return[d(F[0]),d(F[1]||"")]}).sort(function(F,U){return h(F[0],U[0])||h(F[1],U[1])}).map(function(F){return F.join("=")}).join("&"),N=[d(I?I.toUpperCase():"GET"),d(P),d(z)].join("&");return N}function k(I,P,$,z,N){var F=S(I,P,$),U=[z||"",N||""].map(d).join("&");return n(U,F,"sha1")}function A(I,P,$,z,N){var F=S(I,P,$),U=[z||"",N||""].map(d).join("&");return n(U,F,"sha256")}function B(I,P,$,z,N){var F=S(I,P,$),U=z||"";return l(U,F)}function M(I,P){var $=[I||"",P||""].map(d).join("&");return $}function j(I,P,$,z,N,F){var U,J=1;switch(I){case"RSA-SHA1":U=B;break;case"HMAC-SHA1":U=k;break;case"HMAC-SHA256":U=A;break;case"PLAINTEXT":U=M,J=4;break;default:throw new Error("Signature method not supported: "+I)}return U.apply(null,[].slice.call(arguments,J))}return oauthSign.hmacsign=k,oauthSign.hmacsign256=A,oauthSign.rsasign=B,oauthSign.plaintext=M,oauthSign.sign=j,oauthSign.rfc3986=d,oauthSign.generateBase=S,oauthSign}var hasRequiredOauth;function requireOauth(){if(hasRequiredOauth)return oauth;hasRequiredOauth=1;var t=require$$2$2,n=requireLib$1(),l=requireCaseless(),d=requireV4(),m=requireOauthSign(),h=requireCryptoBrowserify(),S=safeBufferExports$1.Buffer;function k(A){this.request=A,this.params=null}return k.prototype.buildParams=function(A,B,M,j,I,P){var $={};for(var z in A)$["oauth_"+z]=A[z];$.oauth_version||($.oauth_version="1.0"),$.oauth_timestamp||($.oauth_timestamp=Math.floor(Date.now()/1e3).toString()),$.oauth_nonce||($.oauth_nonce=d().replace(/-/g,"")),$.oauth_signature_method||($.oauth_signature_method="HMAC-SHA1");var N=$.oauth_consumer_secret||$.oauth_private_key;delete $.oauth_consumer_secret,delete $.oauth_private_key;var F=$.oauth_token_secret;delete $.oauth_token_secret;var U=$.oauth_realm;delete $.oauth_realm,delete $.oauth_transport_method;var J=B.protocol+"//"+B.host+B.pathname,te=P.parse([].concat(j,I,P.stringify($)).join("&"));return $.oauth_signature=m.sign($.oauth_signature_method,M,J,te,N,F),U&&($.realm=U),$},k.prototype.buildBodyHash=function(A,B){["HMAC-SHA1","RSA-SHA1"].indexOf(A.signature_method||"HMAC-SHA1")<0&&this.request.emit("error",new Error("oauth: "+A.signature_method+" signature_method not supported with body_hash signing."));var M=h.createHash("sha1");M.update(B||"");var j=M.digest("hex");return S.from(j,"hex").toString("base64")},k.prototype.concatParams=function(A,B,M){M=M||"";var j=Object.keys(A).filter(function(I){return I!=="realm"&&I!=="oauth_signature"}).sort();return A.realm&&j.splice(0,0,"realm"),j.push("oauth_signature"),j.map(function(I){return I+"="+M+m.rfc3986(A[I])+M}).join(B)},k.prototype.onRequest=function(A){var B=this;B.params=A;var M=B.request.uri||{},j=B.request.method||"",I=l(B.request.headers),P=B.request.body||"",$=B.request.qsLib||n,z,N,F=I.get("content-type")||"",U="application/x-www-form-urlencoded",J=A.transport_method||"header";F.slice(0,U.length)===U&&(F=U,z=P),M.query&&(N=M.query),J==="body"&&(j!=="POST"||F!==U)&&B.request.emit("error",new Error("oauth: transport_method of body requires POST and content-type "+U)),!z&&typeof A.body_hash=="boolean"&&(A.body_hash=B.buildBodyHash(A,B.request.body.toString()));var te=B.buildParams(A,M,j,N,z,$);switch(J){case"header":B.request.setHeader("Authorization","OAuth "+B.concatParams(te,",",'"'));break;case"query":var se=B.request.uri.href+=(N?"&":"?")+B.concatParams(te,"&");B.request.uri=t.parse(se),B.request.path=B.request.uri.path;break;case"body":B.request.body=(z?z+"&":"")+B.concatParams(te,"&");break;default:B.request.emit("error",new Error("oauth: transport_method invalid"))}},oauth.OAuth=k,oauth}var hawk={},hasRequiredHawk;function requireHawk(){return hasRequiredHawk||(hasRequiredHawk=1,function(t){var n=requireCryptoBrowserify();function l(m){var h=(m+1)*6,S=n.randomBytes(Math.ceil(h/8)),k=S.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");return k.slice(0,m)}function d(m,h,S){var k=n.createHash(h);return k.update(`hawk.1.payload
`),k.update((S?S.split(";")[0].trim().toLowerCase():"")+`
`),k.update(m||""),k.update(`
`),k.digest("base64")}t.calculateMac=function(m,h){var S=`hawk.1.header
`+h.ts+`
`+h.nonce+`
`+(h.method||"").toUpperCase()+`
`+h.resource+`
`+h.host.toLowerCase()+`
`+h.port+`
`+(h.hash||"")+`
`;h.ext&&(S=S+h.ext.replace("\\","\\\\").replace(`
`,"\\n")),S=S+`
`,h.app&&(S=S+h.app+`
`+(h.dlg||"")+`
`);var k=n.createHmac(m.algorithm,m.key).update(S),A=k.digest("base64");return A},t.header=function(m,h,S){var k=S.timestamp||Math.floor((Date.now()+(S.localtimeOffsetMsec||0))/1e3),A=S.credentials;if(!A||!A.id||!A.key||!A.algorithm||["sha1","sha256"].indexOf(A.algorithm)===-1)return"";var B={ts:k,nonce:S.nonce||l(6),method:h,resource:m.pathname+(m.search||""),host:m.hostname,port:m.port||(m.protocol==="http:"?80:443),hash:S.hash,ext:S.ext,app:S.app,dlg:S.dlg};!B.hash&&(S.payload||S.payload==="")&&(B.hash=d(S.payload,A.algorithm,S.contentType));var M=t.calculateMac(A,B),j=B.ext!==null&&B.ext!==void 0&&B.ext!=="",I='Hawk id="'+A.id+'", ts="'+B.ts+'", nonce="'+B.nonce+(B.hash?'", hash="'+B.hash:"")+(j?'", ext="'+B.ext.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):"")+'", mac="'+M+'"';return B.app&&(I=I+', app="'+B.app+(B.dlg?'", dlg="'+B.dlg:"")+'"'),I}}(hawk)),hawk}var multipart={},delayed_stream,hasRequiredDelayed_stream;function requireDelayed_stream(){if(hasRequiredDelayed_stream)return delayed_stream;hasRequiredDelayed_stream=1;var t=requireStreamBrowserify().Stream,n=util$6;delayed_stream=l;function l(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}return n.inherits(l,t),l.create=function(d,m){var h=new this;m=m||{};for(var S in m)h[S]=m[S];h.source=d;var k=d.emit;return d.emit=function(){return h._handleEmit(arguments),k.apply(d,arguments)},d.on("error",function(){}),h.pauseStream&&d.pause(),h},Object.defineProperty(l.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),l.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},l.prototype.resume=function(){this._released||this.release(),this.source.resume()},l.prototype.pause=function(){this.source.pause()},l.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach((function(d){this.emit.apply(this,d)}).bind(this)),this._bufferedEvents=[]},l.prototype.pipe=function(){var d=t.prototype.pipe.apply(this,arguments);return this.resume(),d},l.prototype._handleEmit=function(d){if(this._released){this.emit.apply(this,d);return}d[0]==="data"&&(this.dataSize+=d[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(d)},l.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var d="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(d))}},delayed_stream}var combined_stream,hasRequiredCombined_stream;function requireCombined_stream(){if(hasRequiredCombined_stream)return combined_stream;hasRequiredCombined_stream=1;var t=util$6,n=requireStreamBrowserify().Stream,l=requireDelayed_stream();combined_stream=d;function d(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}return t.inherits(d,n),d.create=function(m){var h=new this;m=m||{};for(var S in m)h[S]=m[S];return h},d.isStreamLike=function(m){return typeof m!="function"&&typeof m!="string"&&typeof m!="boolean"&&typeof m!="number"&&!Buffer$C.isBuffer(m)},d.prototype.append=function(m){var h=d.isStreamLike(m);if(h){if(!(m instanceof l)){var S=l.create(m,{maxDataSize:1/0,pauseStream:this.pauseStreams});m.on("data",this._checkDataSize.bind(this)),m=S}this._handleErrors(m),this.pauseStreams&&m.pause()}return this._streams.push(m),this},d.prototype.pipe=function(m,h){return n.prototype.pipe.call(this,m,h),this.resume(),m},d.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},d.prototype._realGetNext=function(){var m=this._streams.shift();if(typeof m>"u"){this.end();return}if(typeof m!="function"){this._pipeNext(m);return}var h=m;h((function(S){var k=d.isStreamLike(S);k&&(S.on("data",this._checkDataSize.bind(this)),this._handleErrors(S)),this._pipeNext(S)}).bind(this))},d.prototype._pipeNext=function(m){this._currentStream=m;var h=d.isStreamLike(m);if(h){m.on("end",this._getNext.bind(this)),m.pipe(this,{end:!1});return}var S=m;this.write(S),this._getNext()},d.prototype._handleErrors=function(m){var h=this;m.on("error",function(S){h._emitError(S)})},d.prototype.write=function(m){this.emit("data",m)},d.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))},d.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")},d.prototype.end=function(){this._reset(),this.emit("end")},d.prototype.destroy=function(){this._reset(),this.emit("close")},d.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},d.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var m="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(m))}},d.prototype._updateDataSize=function(){this.dataSize=0;var m=this;this._streams.forEach(function(h){h.dataSize&&(m.dataSize+=h.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},d.prototype._emitError=function(m){this._reset(),this.emit("error",m)},combined_stream}var hasRequiredMultipart;function requireMultipart(){if(hasRequiredMultipart)return multipart;hasRequiredMultipart=1;var t=requireV4(),n=requireCombined_stream(),l=requireIsstream(),d=safeBufferExports$1.Buffer;function m(h){this.request=h,this.boundary=t(),this.chunked=!1,this.body=null}return m.prototype.isChunked=function(h){var S=this,k=!1,A=h.data||h;return A.forEach||S.request.emit("error",new Error("Argument error, options.multipart.")),h.chunked!==void 0&&(k=h.chunked),S.request.getHeader("transfer-encoding")==="chunked"&&(k=!0),k||A.forEach(function(B){typeof B.body>"u"&&S.request.emit("error",new Error("Body attribute missing in multipart.")),l(B.body)&&(k=!0)}),k},m.prototype.setHeaders=function(h){var S=this;h&&!S.request.hasHeader("transfer-encoding")&&S.request.setHeader("transfer-encoding","chunked");var k=S.request.getHeader("content-type");!k||k.indexOf("multipart")===-1?S.request.setHeader("content-type","multipart/related; boundary="+S.boundary):k.indexOf("boundary")!==-1?S.boundary=k.replace(/.*boundary=([^\s;]+).*/,"$1"):S.request.setHeader("content-type",k+"; boundary="+S.boundary)},m.prototype.build=function(h,S){var k=this,A=S?new n:[];function B(M){return typeof M=="number"&&(M=M.toString()),S?A.append(M):A.push(d.from(M))}return k.request.preambleCRLF&&B(`\r
`),h.forEach(function(M){var j="--"+k.boundary+`\r
`;Object.keys(M).forEach(function(I){I!=="body"&&(j+=I+": "+M[I]+`\r
`)}),j+=`\r
`,B(j),B(M.body),B(`\r
`)}),B("--"+k.boundary+"--"),k.request.postambleCRLF&&B(`\r
`),A},m.prototype.onRequest=function(h){var S=this,k=S.isChunked(h),A=h.data||h;S.setHeaders(k),S.chunked=k,S.body=S.build(A,k)},multipart.Multipart=m,multipart}var redirect={},hasRequiredRedirect;function requireRedirect(){if(hasRequiredRedirect)return redirect;hasRequiredRedirect=1;var t=require$$2$2,n=/^https?:/;function l(d){this.request=d,this.followRedirect=!0,this.followRedirects=!0,this.followAllRedirects=!1,this.followOriginalHttpMethod=!1,this.allowRedirect=function(){return!0},this.maxRedirects=10,this.redirects=[],this.redirectsFollowed=0,this.removeRefererHeader=!1}return l.prototype.onRequest=function(d){var m=this;d.maxRedirects!==void 0&&(m.maxRedirects=d.maxRedirects),typeof d.followRedirect=="function"&&(m.allowRedirect=d.followRedirect),d.followRedirect!==void 0&&(m.followRedirects=!!d.followRedirect),d.followAllRedirects!==void 0&&(m.followAllRedirects=d.followAllRedirects),(m.followRedirects||m.followAllRedirects)&&(m.redirects=m.redirects||[]),d.removeRefererHeader!==void 0&&(m.removeRefererHeader=d.removeRefererHeader),d.followOriginalHttpMethod!==void 0&&(m.followOriginalHttpMethod=d.followOriginalHttpMethod)},l.prototype.redirectTo=function(d){var m=this,h=m.request,S=null;if(d.statusCode>=300&&d.statusCode<400&&d.caseless.has("location")){var k=d.caseless.get("location");if(h.debug("redirect",k),m.followAllRedirects)S=k;else if(m.followRedirects)switch(h.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:S=k;break}}else if(d.statusCode===401){var A=h._auth.onResponse(d);A&&(h.setHeader("authorization",A),S=h.uri)}return S},l.prototype.onResponse=function(d){var m=this,h=m.request,S=m.redirectTo(d);if(!S||!m.allowRedirect.call(h,d))return!1;if(h.debug("redirect to",S),d.resume&&d.resume(),m.redirectsFollowed>=m.maxRedirects)return h.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+h.uri.href)),!1;m.redirectsFollowed+=1,n.test(S)||(S=t.resolve(h.uri.href,S));var k=h.uri;return h.uri=t.parse(S),h.uri.protocol!==k.protocol&&delete h.agent,m.redirects.push({statusCode:d.statusCode,redirectUri:S}),m.followAllRedirects&&h.method!=="HEAD"&&d.statusCode!==401&&d.statusCode!==307&&(h.method=m.followOriginalHttpMethod?h.method:"GET"),delete h.src,delete h.req,delete h._started,d.statusCode!==401&&d.statusCode!==307&&(delete h.body,delete h._form,h.headers&&(h.removeHeader("host"),h.removeHeader("content-type"),h.removeHeader("content-length"),h.uri.hostname!==h.originalHost.split(":")[0]&&h.removeHeader("authorization"))),m.removeRefererHeader||h.setHeader("referer",k.href),h.emit("redirect"),h.init(),!0},redirect.Redirect=l,redirect}var tunnel={},tunnelAgent={},hasRequiredTunnelAgent;function requireTunnelAgent(){if(hasRequiredTunnelAgent)return tunnelAgent;hasRequiredTunnelAgent=1;var t=require$$1$5,n=requireStreamHttp(),l=requireHttpsBrowserify(),d=requireEvents(),m=requireAssert$1(),h=util$6,S=safeBufferExports$1.Buffer;tunnelAgent.httpOverHttp=k,tunnelAgent.httpsOverHttp=A,tunnelAgent.httpOverHttps=B,tunnelAgent.httpsOverHttps=M;function k(z){var N=new j(z);return N.request=n.request,N}function A(z){var N=new j(z);return N.request=n.request,N.createSocket=I,N.defaultPort=443,N}function B(z){var N=new j(z);return N.request=l.request,N}function M(z){var N=new j(z);return N.request=l.request,N.createSocket=I,N.defaultPort=443,N}function j(z){var N=this;N.options=z||{},N.proxyOptions=N.options.proxy||{},N.maxSockets=N.options.maxSockets||n.Agent.defaultMaxSockets,N.requests=[],N.sockets=[],N.on("free",function(U,J,te){for(var se=0,de=N.requests.length;se<de;++se){var Q=N.requests[se];if(Q.host===J&&Q.port===te){N.requests.splice(se,1),Q.request.onSocket(U);return}}U.destroy(),N.removeSocket(U)})}h.inherits(j,d.EventEmitter),j.prototype.addRequest=function(N,F){var U=this;if(typeof F=="string"&&(F={host:F,port:arguments[2],path:arguments[3]}),U.sockets.length>=this.maxSockets){U.requests.push({host:F.host,port:F.port,request:N});return}U.createConnection({host:F.host,port:F.port,request:N})},j.prototype.createConnection=function(N){var F=this;F.createSocket(N,function(U){U.on("free",J),U.on("close",te),U.on("agentRemove",te),N.request.onSocket(U);function J(){F.emit("free",U,N.host,N.port)}function te(se){F.removeSocket(U),U.removeListener("free",J),U.removeListener("close",te),U.removeListener("agentRemove",te)}})},j.prototype.createSocket=function(N,F){var U=this,J={};U.sockets.push(J);var te=P({},U.proxyOptions,{method:"CONNECT",path:N.host+":"+N.port,agent:!1});te.proxyAuth&&(te.headers=te.headers||{},te.headers["Proxy-Authorization"]="Basic "+S.from(te.proxyAuth).toString("base64")),$("making CONNECT request");var se=U.request(te);se.useChunkedEncodingByDefault=!1,se.once("response",de),se.once("upgrade",Q),se.once("connect",ve),se.once("error",he),se.end();function de(ke){ke.upgrade=!0}function Q(ke,T,u){process$1.nextTick(function(){ve(ke,T,u)})}function ve(ke,T,u){if(se.removeAllListeners(),T.removeAllListeners(),ke.statusCode===200)m.equal(u.length,0),$("tunneling connection has established"),U.sockets[U.sockets.indexOf(J)]=T,F(T);else{$("tunneling socket could not be established, statusCode=%d",ke.statusCode);var p=new Error("tunneling socket could not be established, statusCode="+ke.statusCode);p.code="ECONNRESET",N.request.emit("error",p),U.removeSocket(J)}}function he(ke){se.removeAllListeners(),$(`tunneling socket could not be established, cause=%s
`,ke.message,ke.stack);var T=new Error("tunneling socket could not be established, cause="+ke.message);T.code="ECONNRESET",N.request.emit("error",T),U.removeSocket(J)}},j.prototype.removeSocket=function(N){var F=this.sockets.indexOf(N);if(F!==-1){this.sockets.splice(F,1);var U=this.requests.shift();U&&this.createConnection(U)}};function I(z,N){var F=this;j.prototype.createSocket.call(F,z,function(U){var J=t.connect(0,P({},F.options,{servername:z.host,socket:U}));F.sockets[F.sockets.indexOf(U)]=J,N(J)})}function P(z){for(var N=1,F=arguments.length;N<F;++N){var U=arguments[N];if(typeof U=="object")for(var J=Object.keys(U),te=0,se=J.length;te<se;++te){var de=J[te];U[de]!==void 0&&(z[de]=U[de])}}return z}var $;return process$1.env.NODE_DEBUG&&/\btunnel\b/.test(process$1.env.NODE_DEBUG)?$=function(){var z=Array.prototype.slice.call(arguments);typeof z[0]=="string"?z[0]="TUNNEL: "+z[0]:z.unshift("TUNNEL:"),console.error.apply(console,z)}:$=function(){},tunnelAgent.debug=$,tunnelAgent}var hasRequiredTunnel;function requireTunnel(){if(hasRequiredTunnel)return tunnel;hasRequiredTunnel=1;var t=require$$2$2,n=requireTunnelAgent(),l=["accept","accept-charset","accept-encoding","accept-language","accept-ranges","cache-control","content-encoding","content-language","content-location","content-md5","content-range","content-type","connection","date","expect","max-forwards","pragma","referer","te","user-agent","via"],d=["proxy-authorization"];function m(M){var j=M.port,I=M.protocol,P=M.hostname+":";return j?P+=j:I==="https:"?P+="443":P+="80",P}function h(M,j){var I=j.reduce(function(P,$){return P[$.toLowerCase()]=!0,P},{});return Object.keys(M).filter(function(P){return I[P.toLowerCase()]}).reduce(function(P,$){return P[$]=M[$],P},{})}function S(M,j){var I=M.proxy,P={proxy:{host:I.hostname,port:+I.port,proxyAuth:I.auth,headers:j},headers:M.headers,ca:M.ca,cert:M.cert,key:M.key,passphrase:M.passphrase,pfx:M.pfx,ciphers:M.ciphers,rejectUnauthorized:M.rejectUnauthorized,secureOptions:M.secureOptions,secureProtocol:M.secureProtocol};return P}function k(M,j){var I=M.protocol==="https:"?"https":"http",P=j.protocol==="https:"?"Https":"Http";return[I,P].join("Over")}function A(M){var j=M.uri,I=M.proxy,P=k(j,I);return n[P]}function B(M){this.request=M,this.proxyHeaderWhiteList=l,this.proxyHeaderExclusiveList=[],typeof M.tunnel<"u"&&(this.tunnelOverride=M.tunnel)}return B.prototype.isEnabled=function(){var M=this,j=M.request;return typeof M.tunnelOverride<"u"?M.tunnelOverride:j.uri.protocol==="https:"},B.prototype.setup=function(M){var j=this,I=j.request;if(M=M||{},typeof I.proxy=="string"&&(I.proxy=t.parse(I.proxy)),!I.proxy||!I.tunnel)return!1;M.proxyHeaderWhiteList&&(j.proxyHeaderWhiteList=M.proxyHeaderWhiteList),M.proxyHeaderExclusiveList&&(j.proxyHeaderExclusiveList=M.proxyHeaderExclusiveList);var P=j.proxyHeaderExclusiveList.concat(d),$=j.proxyHeaderWhiteList.concat(P),z=h(I.headers,$);z.host=m(I.uri),P.forEach(I.removeHeader,I);var N=A(I),F=S(I,z);return I.agent=N(F),!0},B.defaultProxyHeaderWhiteList=l,B.defaultProxyHeaderExclusiveList=d,tunnel.Tunnel=B,tunnel}var performanceNow={exports:{}},hasRequiredPerformanceNow;function requirePerformanceNow(){return hasRequiredPerformanceNow||(hasRequiredPerformanceNow=1,(function(){var t,n,l,d,m,h;typeof performance<"u"&&performance!==null&&performance.now?performanceNow.exports=function(){return performance.now()}:typeof process$1<"u"&&process$1!==null&&process$1.hrtime?(performanceNow.exports=function(){return(t()-m)/1e6},n=process$1.hrtime,t=function(){var S;return S=n(),S[0]*1e9+S[1]},d=t(),h=process$1.uptime()*1e9,m=d-h):Date.now?(performanceNow.exports=function(){return Date.now()-l},l=Date.now()):(performanceNow.exports=function(){return new Date().getTime()-l},l=new Date().getTime())}).call(commonjsGlobal)),performanceNow.exports}var request$2,hasRequiredRequest;function requireRequest(){if(hasRequiredRequest)return request$2;hasRequiredRequest=1;var t=requireStreamHttp(),n=requireHttpsBrowserify(),l=require$$2$2,d=util$6,m=requireStreamBrowserify(),h=requireLib$5(),S=requireAwsSign2(),k=requireAws4(),A=requireLib$2(),B=requireMimeTypes(),M=requireCaseless(),j=requireForeverAgent(),I=requireBrowser(),P=extend$1,$=requireIsstream(),z=requireIsTypedarray().strict,N=helpers$1,F=cookies$1,U=requireGetProxyFromURI(),J=requireQuerystring().Querystring,te=requireHar().Har,se=requireAuth().Auth,de=requireOauth().OAuth,Q=requireHawk(),ve=requireMultipart().Multipart,he=requireRedirect().Redirect,ke=requireTunnel().Tunnel,T=requirePerformanceNow(),u=safeBufferExports$1.Buffer,p=N.safeStringify,b=N.isReadStream,e=N.toBase64,c=N.defer,y=N.copy,w=N.version,v=F.jar(),o={};function x(L,D){var ee={};for(var oe in D){var fe=L.indexOf(oe)===-1;fe&&(ee[oe]=D[oe])}return ee}function E(L,D){var ee={};for(var oe in D){var fe=L.indexOf(oe)!==-1,ue=typeof D[oe]=="function";fe&&ue||(ee[oe]=D[oe])}return ee}function R(){var L=this;return{uri:L.uri,method:L.method,headers:L.headers}}function H(){var L=this;return{statusCode:L.statusCode,body:L.body,headers:L.headers,request:R.call(L.request)}}function Y(L){var D=this;L.har&&(D._har=new te(D),L=D._har.options(L)),m.Stream.call(D);var ee=Object.keys(Y.prototype),oe=x(ee,L);P(D,oe),L=E(ee,L),D.readable=!0,D.writable=!0,L.method&&(D.explicitMethod=!0),D._qs=new J(D),D._auth=new se(D),D._oauth=new de(D),D._multipart=new ve(D),D._redirect=new he(D),D._tunnel=new ke(D),D.init(L)}d.inherits(Y,m.Stream),Y.debug=process$1.env.NODE_DEBUG&&/\brequest\b/.test(process$1.env.NODE_DEBUG);function Z(){Y.debug&&console.error("REQUEST %s",d.format.apply(d,arguments))}return Y.prototype.debug=Z,Y.prototype.init=function(L){var D=this;L||(L={}),D.headers=D.headers?y(D.headers):{};for(var ee in D.headers)typeof D.headers[ee]>"u"&&delete D.headers[ee];if(M.httpify(D,D.headers),D.method||(D.method=L.method||"GET"),D.localAddress||(D.localAddress=L.localAddress),D._qs.init(L),Z(L),!D.pool&&D.pool!==!1&&(D.pool=o),D.dests=D.dests||[],D.__isRequestRequest=!0,!D._callback&&D.callback&&(D._callback=D.callback,D.callback=function(){D._callbackCalled||(D._callbackCalled=!0,D._callback.apply(D,arguments))},D.on("error",D.callback.bind()),D.on("complete",D.callback.bind(D,null))),!D.uri&&D.url&&(D.uri=D.url,delete D.url),D.baseUrl){if(typeof D.baseUrl!="string")return D.emit("error",new Error("options.baseUrl must be a string"));if(typeof D.uri!="string")return D.emit("error",new Error("options.uri must be a string when using options.baseUrl"));if(D.uri.indexOf("//")===0||D.uri.indexOf("://")!==-1)return D.emit("error",new Error("options.uri must be a path when using options.baseUrl"));var oe=D.baseUrl.lastIndexOf("/")===D.baseUrl.length-1,fe=D.uri.indexOf("/")===0;oe&&fe?D.uri=D.baseUrl+D.uri.slice(1):oe||fe?D.uri=D.baseUrl+D.uri:D.uri===""?D.uri=D.baseUrl:D.uri=D.baseUrl+"/"+D.uri,delete D.baseUrl}if(!D.uri)return D.emit("error",new Error("options.uri is a required argument"));if(typeof D.uri=="string"&&(D.uri=l.parse(D.uri)),D.uri.href||(D.uri.href=l.format(D.uri)),D.uri.protocol==="unix:")return D.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"));if(D.uri.host==="unix"&&D.enableUnixSocket(),D.strictSSL===!1&&(D.rejectUnauthorized=!1),D.uri.pathname||(D.uri.pathname="/"),!(D.uri.host||D.uri.hostname&&D.uri.port)&&!D.uri.isUnix){var ue=l.format(D.uri),qe='Invalid URI "'+ue+'"';return Object.keys(L).length===0&&(qe+=". This can be caused by a crappy redirection."),D.abort(),D.emit("error",new Error(qe))}if(D.hasOwnProperty("proxy")||(D.proxy=U(D.uri)),D.tunnel=D._tunnel.isEnabled(),D.proxy&&D._tunnel.setup(L),D._redirect.onRequest(L),D.setHost=!1,!D.hasHeader("host")){var rt=D.originalHostHeaderName||"host";D.setHeader(rt,D.uri.host),D.uri.port&&(D.uri.port==="80"&&D.uri.protocol==="http:"||D.uri.port==="443"&&D.uri.protocol==="https:")&&D.setHeader(rt,D.uri.hostname),D.setHost=!0}if(D.jar(D._jar||L.jar),D.uri.port||(D.uri.protocol==="http:"?D.uri.port=80:D.uri.protocol==="https:"&&(D.uri.port=443)),D.proxy&&!D.tunnel?(D.port=D.proxy.port,D.host=D.proxy.hostname):(D.port=D.uri.port,D.host=D.uri.hostname),L.form&&D.form(L.form),L.formData){var Ve=L.formData,et=D.form(),mt=function(Lt,xe){xe&&xe.hasOwnProperty("value")&&xe.hasOwnProperty("options")?et.append(Lt,xe.value,xe.options):et.append(Lt,xe)};for(var Ye in Ve)if(Ve.hasOwnProperty(Ye)){var We=Ve[Ye];if(We instanceof Array)for(var Xe=0;Xe<We.length;Xe++)mt(Ye,We[Xe]);else mt(Ye,We)}}if(L.qs&&D.qs(L.qs),D.uri.path?D.path=D.uri.path:D.path=D.uri.pathname+(D.uri.search||""),D.path.length===0&&(D.path="/"),L.aws&&D.aws(L.aws),L.hawk&&D.hawk(L.hawk),L.httpSignature&&D.httpSignature(L.httpSignature),L.auth&&(Object.prototype.hasOwnProperty.call(L.auth,"username")&&(L.auth.user=L.auth.username),Object.prototype.hasOwnProperty.call(L.auth,"password")&&(L.auth.pass=L.auth.password),D.auth(L.auth.user,L.auth.pass,L.auth.sendImmediately,L.auth.bearer)),D.gzip&&!D.hasHeader("accept-encoding")&&D.setHeader("accept-encoding","gzip, deflate"),D.uri.auth&&!D.hasHeader("authorization")){var Ge=D.uri.auth.split(":").map(function(Lt){return D._qs.unescape(Lt)});D.auth(Ge[0],Ge.slice(1).join(":"),!0)}if(!D.tunnel&&D.proxy&&D.proxy.auth&&!D.hasHeader("proxy-authorization")){var nt=D.proxy.auth.split(":").map(function(Lt){return D._qs.unescape(Lt)}),Et="Basic "+e(nt.join(":"));D.setHeader("proxy-authorization",Et)}D.proxy&&!D.tunnel&&(D.path=D.uri.protocol+"//"+D.uri.host+D.path),L.json&&D.json(L.json),L.multipart&&D.multipart(L.multipart),L.time&&(D.timing=!0,D.elapsedTime=D.elapsedTime||0);function Le(){if(z(D.body)&&(D.body=u.from(D.body)),!D.hasHeader("content-length")){var Lt;typeof D.body=="string"?Lt=u.byteLength(D.body):Array.isArray(D.body)?Lt=D.body.reduce(function(xe,X){return xe+X.length},0):Lt=D.body.length,Lt?D.setHeader("content-length",Lt):D.emit("error",new Error("Argument error, options.body."))}}D.body&&!$(D.body)&&Le(),L.oauth?D.oauth(L.oauth):D._oauth.params&&D.hasHeader("authorization")&&D.oauth(D._oauth.params);var Oe=D.proxy&&!D.tunnel?D.proxy.protocol:D.uri.protocol,$t={"http:":t,"https:":n},dt=D.httpModules||{};if(D.httpModule=dt[Oe]||$t[Oe],!D.httpModule)return D.emit("error",new Error("Invalid protocol: "+Oe));if(L.ca&&(D.ca=L.ca),!D.agent)if(L.agentOptions&&(D.agentOptions=L.agentOptions),L.agentClass)D.agentClass=L.agentClass;else if(L.forever){var gt=w();gt.major===0&&gt.minor<=10?D.agentClass=Oe==="http:"?j:j.SSL:(D.agentClass=D.httpModule.Agent,D.agentOptions=D.agentOptions||{},D.agentOptions.keepAlive=!0)}else D.agentClass=D.httpModule.Agent;D.pool===!1?D.agent=!1:D.agent=D.agent||D.getNewAgent(),D.on("pipe",function(Lt){if(D.ntick&&D._started&&D.emit("error",new Error("You cannot pipe to this stream after the outbound request has started.")),D.src=Lt,b(Lt))D.hasHeader("content-type")||D.setHeader("content-type",B.lookup(Lt.path));else{if(Lt.headers)for(var xe in Lt.headers)D.hasHeader(xe)||D.setHeader(xe,Lt.headers[xe]);D._json&&!D.hasHeader("content-type")&&D.setHeader("content-type","application/json"),Lt.method&&!D.explicitMethod&&(D.method=Lt.method)}}),c(function(){if(!D._aborted){var Lt=function(){if(D._form&&(D._auth.hasAuth?D._auth.hasAuth&&D._auth.sentAuth&&D._form.pipe(D):D._form.pipe(D)),D._multipart&&D._multipart.chunked&&D._multipart.body.pipe(D),D.body)$(D.body)?D.body.pipe(D):(Le(),Array.isArray(D.body)?D.body.forEach(function(xe){D.write(xe)}):D.write(D.body),D.end());else if(D.requestBodyStream)console.warn("options.requestBodyStream is deprecated, please pass the request object to stream.pipe."),D.requestBodyStream.pipe(D);else if(!D.src){if(D._auth.hasAuth&&!D._auth.sentAuth){D.end();return}D.method!=="GET"&&typeof D.method<"u"&&D.setHeader("content-length",0),D.end()}};D._form&&!D.hasHeader("content-length")?(D.setHeader(D._form.getHeaders(),!0),D._form.getLength(function(xe,X){!xe&&!isNaN(X)&&D.setHeader("content-length",X),Lt()})):Lt(),D.ntick=!0}})},Y.prototype.getNewAgent=function(){var L=this,D=L.agentClass,ee={};if(L.agentOptions)for(var oe in L.agentOptions)ee[oe]=L.agentOptions[oe];L.ca&&(ee.ca=L.ca),L.ciphers&&(ee.ciphers=L.ciphers),L.secureProtocol&&(ee.secureProtocol=L.secureProtocol),L.secureOptions&&(ee.secureOptions=L.secureOptions),typeof L.rejectUnauthorized<"u"&&(ee.rejectUnauthorized=L.rejectUnauthorized),L.cert&&L.key&&(ee.key=L.key,ee.cert=L.cert),L.pfx&&(ee.pfx=L.pfx),L.passphrase&&(ee.passphrase=L.passphrase);var fe="";D!==L.httpModule.Agent&&(fe+=D.name);var ue=L.proxy;typeof ue=="string"&&(ue=l.parse(ue));var qe=ue&&ue.protocol==="https:"||this.uri.protocol==="https:";return qe&&(ee.ca&&(fe&&(fe+=":"),fe+=ee.ca),typeof ee.rejectUnauthorized<"u"&&(fe&&(fe+=":"),fe+=ee.rejectUnauthorized),ee.cert&&(fe&&(fe+=":"),fe+=ee.cert.toString("ascii")+ee.key.toString("ascii")),ee.pfx&&(fe&&(fe+=":"),fe+=ee.pfx.toString("ascii")),ee.ciphers&&(fe&&(fe+=":"),fe+=ee.ciphers),ee.secureProtocol&&(fe&&(fe+=":"),fe+=ee.secureProtocol),ee.secureOptions&&(fe&&(fe+=":"),fe+=ee.secureOptions)),L.pool===o&&!fe&&Object.keys(ee).length===0&&L.httpModule.globalAgent?L.httpModule.globalAgent:(fe=L.uri.protocol+fe,L.pool[fe]||(L.pool[fe]=new D(ee),L.pool.maxSockets&&(L.pool[fe].maxSockets=L.pool.maxSockets)),L.pool[fe])},Y.prototype.start=function(){var L=this;if(L.timing)var D=new Date().getTime(),ee=T();if(!L._aborted){L._started=!0,L.method=L.method||"GET",L.href=L.uri.href,L.src&&L.src.stat&&L.src.stat.size&&!L.hasHeader("content-length")&&L.setHeader("content-length",L.src.stat.size),L._aws&&L.aws(L._aws,!0);var oe=y(L);delete oe.auth,Z("make request",L.uri.href),delete oe.timeout;try{L.req=L.httpModule.request(oe)}catch(ue){L.emit("error",ue);return}L.timing&&(L.startTime=D,L.startTimeNow=ee,L.timings={});var fe;L.timeout&&!L.timeoutTimer&&(L.timeout<0?fe=0:typeof L.timeout=="number"&&isFinite(L.timeout)&&(fe=L.timeout)),L.req.on("response",L.onRequestResponse.bind(L)),L.req.on("error",L.onRequestError.bind(L)),L.req.on("drain",function(){L.emit("drain")}),L.req.on("socket",function(ue){var qe=ue._connecting||ue.connecting;if(L.timing&&(L.timings.socket=T()-L.startTimeNow,qe)){var rt=function(){L.timings.lookup=T()-L.startTimeNow},Ve=function(){L.timings.connect=T()-L.startTimeNow};ue.once("lookup",rt),ue.once("connect",Ve),L.req.once("error",function(){ue.removeListener("lookup",rt),ue.removeListener("connect",Ve)})}var et=function(){L.req.setTimeout(fe,function(){if(L.req){L.abort();var Ye=new Error("ESOCKETTIMEDOUT");Ye.code="ESOCKETTIMEDOUT",Ye.connect=!1,L.emit("error",Ye)}})};if(fe!==void 0)if(qe){var mt=function(){ue.removeListener("connect",mt),L.clearTimeout(),et()};ue.on("connect",mt),L.req.on("error",function(Ye){ue.removeListener("connect",mt)}),L.timeoutTimer=setTimeout(function(){ue.removeListener("connect",mt),L.abort();var Ye=new Error("ETIMEDOUT");Ye.code="ETIMEDOUT",Ye.connect=!0,L.emit("error",Ye)},fe)}else et();L.emit("socket",ue)}),L.emit("request",L.req)}},Y.prototype.onRequestError=function(L){var D=this;if(!D._aborted){if(D.req&&D.req._reusedSocket&&L.code==="ECONNRESET"&&D.agent.addRequestNoreuse){D.agent={addRequest:D.agent.addRequestNoreuse.bind(D.agent)},D.start(),D.req.end();return}D.clearTimeout(),D.emit("error",L)}},Y.prototype.onRequestResponse=function(L){var D=this;if(D.timing&&(D.timings.response=T()-D.startTimeNow),Z("onRequestResponse",D.uri.href,L.statusCode,L.headers),L.on("end",function(){D.timing&&(D.timings.end=T()-D.startTimeNow,L.timingStart=D.startTime,D.timings.socket||(D.timings.socket=0),D.timings.lookup||(D.timings.lookup=D.timings.socket),D.timings.connect||(D.timings.connect=D.timings.lookup),D.timings.response||(D.timings.response=D.timings.connect),Z("elapsed time",D.timings.end),D.elapsedTime+=Math.round(D.timings.end),L.elapsedTime=D.elapsedTime,L.timings=D.timings,L.timingPhases={wait:D.timings.socket,dns:D.timings.lookup-D.timings.socket,tcp:D.timings.connect-D.timings.lookup,firstByte:D.timings.response-D.timings.connect,download:D.timings.end-D.timings.response,total:D.timings.end}),Z("response end",D.uri.href,L.statusCode,L.headers)}),D._aborted){Z("aborted",D.uri.href),L.resume();return}if(D.response=L,L.request=D,L.toJSON=H,D.httpModule===n&&D.strictSSL&&(!L.hasOwnProperty("socket")||!L.socket.authorized)){Z("strict ssl error",D.uri.href);var ee=L.hasOwnProperty("socket")?L.socket.authorizationError:D.uri.href+" does not support SSL";D.emit("error",new Error("SSL Error: "+ee));return}D.originalHost=D.getHeader("host"),D.originalHostHeaderName||(D.originalHostHeaderName=D.hasHeader("host")),D.setHost&&D.removeHeader("host"),D.clearTimeout();var oe=D._jar&&D._jar.setCookie?D._jar:v,fe=function(mt){try{oe.setCookie(mt,D.uri.href,{ignoreError:!0})}catch(Ye){D.emit("error",Ye)}};if(L.caseless=M(L.headers),L.caseless.has("set-cookie")&&!D._disableCookies){var ue=L.caseless.has("set-cookie");Array.isArray(L.headers[ue])?L.headers[ue].forEach(fe):fe(L.headers[ue])}if(!D._redirect.onResponse(L)){{L.on("close",function(){D._ended||D.response.emit("end")}),L.once("end",function(){D._ended=!0});var qe=function(mt){return D.method==="HEAD"||mt>=100&&mt<200||mt===204||mt===304},rt;if(D.gzip&&!qe(L.statusCode)){var Ve=L.headers["content-encoding"]||"identity";Ve=Ve.trim().toLowerCase();var et={flush:h.Z_SYNC_FLUSH,finishFlush:h.Z_SYNC_FLUSH};Ve==="gzip"?(rt=h.createGunzip(et),L.pipe(rt)):Ve==="deflate"?(rt=h.createInflate(et),L.pipe(rt)):(Ve!=="identity"&&Z("ignoring unrecognized Content-Encoding "+Ve),rt=L)}else rt=L;D.encoding&&(D.dests.length!==0?console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid."):rt.setEncoding(D.encoding)),D._paused&&rt.pause(),D.responseContent=rt,D.emit("response",L),D.dests.forEach(function(mt){D.pipeDest(mt)}),rt.on("data",function(mt){D.timing&&!D.responseStarted&&(D.responseStartTime=new Date().getTime(),L.responseStartTime=D.responseStartTime),D._destdata=!0,D.emit("data",mt)}),rt.once("end",function(mt){D.emit("end",mt)}),rt.on("error",function(mt){D.emit("error",mt)}),rt.on("close",function(){D.emit("close")}),D.callback?D.readResponseBody(L):D.on("end",function(){if(D._aborted){Z("aborted",D.uri.href);return}D.emit("complete",L)})}Z("finish init function",D.uri.href)}},Y.prototype.readResponseBody=function(L){var D=this;Z("reading response's body");var ee=[],oe=0,fe=[];D.on("data",function(ue){u.isBuffer(ue)?ue.length&&(oe+=ue.length,ee.push(ue)):fe.push(ue)}),D.on("end",function(){if(Z("end event",D.uri.href),D._aborted){Z("aborted",D.uri.href),ee=[],oe=0;return}if(oe?(Z("has body",D.uri.href,oe),L.body=u.concat(ee,oe),D.encoding!==null&&(L.body=L.body.toString(D.encoding)),ee=[],oe=0):fe.length&&(D.encoding==="utf8"&&fe[0].length>0&&fe[0][0]==="\uFEFF"&&(fe[0]=fe[0].substring(1)),L.body=fe.join("")),D._json)try{L.body=JSON.parse(L.body,D._jsonReviver)}catch{Z("invalid JSON received",D.uri.href)}Z("emitting complete",D.uri.href),typeof L.body>"u"&&!D._json&&(L.body=D.encoding===null?u.alloc(0):""),D.emit("complete",L,L.body)})},Y.prototype.abort=function(){var L=this;L._aborted=!0,L.req?L.req.abort():L.response&&L.response.destroy(),L.clearTimeout(),L.emit("abort")},Y.prototype.pipeDest=function(L){var D=this,ee=D.response;if(L.headers&&!L.headersSent){if(ee.caseless.has("content-type")){var oe=ee.caseless.has("content-type");L.setHeader?L.setHeader(oe,ee.headers[oe]):L.headers[oe]=ee.headers[oe]}if(ee.caseless.has("content-length")){var fe=ee.caseless.has("content-length");L.setHeader?L.setHeader(fe,ee.headers[fe]):L.headers[fe]=ee.headers[fe]}}if(L.setHeader&&!L.headersSent){for(var ue in ee.headers)(!D.gzip||ue!=="content-encoding")&&L.setHeader(ue,ee.headers[ue]);L.statusCode=ee.statusCode}D.pipefilter&&D.pipefilter(ee,L)},Y.prototype.qs=function(L,D){var ee=this,oe;!D&&ee.uri.query?oe=ee._qs.parse(ee.uri.query):oe={};for(var fe in L)oe[fe]=L[fe];var ue=ee._qs.stringify(oe);return ue===""||(ee.uri=l.parse(ee.uri.href.split("?")[0]+"?"+ue),ee.url=ee.uri,ee.path=ee.uri.path,ee.uri.host==="unix"&&ee.enableUnixSocket()),ee},Y.prototype.form=function(L){var D=this;return L?(/^application\/x-www-form-urlencoded\b/.test(D.getHeader("content-type"))||D.setHeader("content-type","application/x-www-form-urlencoded"),D.body=typeof L=="string"?D._qs.rfc3986(L.toString("utf8")):D._qs.stringify(L).toString("utf8"),D):(D._form=new I,D._form.on("error",function(ee){ee.message="form-data: "+ee.message,D.emit("error",ee),D.abort()}),D._form)},Y.prototype.multipart=function(L){var D=this;return D._multipart.onRequest(L),D._multipart.chunked||(D.body=D._multipart.body),D},Y.prototype.json=function(L){var D=this;return D.hasHeader("accept")||D.setHeader("accept","application/json"),typeof D.jsonReplacer=="function"&&(D._jsonReplacer=D.jsonReplacer),D._json=!0,typeof L=="boolean"?D.body!==void 0&&(/^application\/x-www-form-urlencoded\b/.test(D.getHeader("content-type"))?D.body=D._qs.rfc3986(D.body):D.body=p(D.body,D._jsonReplacer),D.hasHeader("content-type")||D.setHeader("content-type","application/json")):(D.body=p(L,D._jsonReplacer),D.hasHeader("content-type")||D.setHeader("content-type","application/json")),typeof D.jsonReviver=="function"&&(D._jsonReviver=D.jsonReviver),D},Y.prototype.getHeader=function(L,D){var ee=this,oe,fe,ue;return D||(D=ee.headers),Object.keys(D).forEach(function(qe){qe.length===L.length&&(fe=new RegExp(L,"i"),ue=qe.match(fe),ue&&(oe=D[qe]))}),oe},Y.prototype.enableUnixSocket=function(){var L=this.uri.path.split(":"),D=L[0],ee=L[1];this.socketPath=D,this.uri.pathname=ee,this.uri.path=ee,this.uri.host=D,this.uri.hostname=D,this.uri.isUnix=!0},Y.prototype.auth=function(L,D,ee,oe){var fe=this;return fe._auth.onRequest(L,D,ee,oe),fe},Y.prototype.aws=function(L,D){var ee=this;if(!D)return ee._aws=L,ee;if(L.sign_version===4||L.sign_version==="4"){var oe={host:ee.uri.host,path:ee.uri.path,method:ee.method,headers:ee.headers,body:ee.body};L.service&&(oe.service=L.service);var fe=k.sign(oe,{accessKeyId:L.key,secretAccessKey:L.secret,sessionToken:L.session});ee.setHeader("authorization",fe.headers.Authorization),ee.setHeader("x-amz-date",fe.headers["X-Amz-Date"]),fe.headers["X-Amz-Security-Token"]&&ee.setHeader("x-amz-security-token",fe.headers["X-Amz-Security-Token"])}else{var ue=new Date;ee.setHeader("date",ue.toUTCString());var qe={key:L.key,secret:L.secret,verb:ee.method.toUpperCase(),date:ue,contentType:ee.getHeader("content-type")||"",md5:ee.getHeader("content-md5")||"",amazonHeaders:S.canonicalizeHeaders(ee.headers)},rt=ee.uri.path;L.bucket&&rt?qe.resource="/"+L.bucket+rt:L.bucket&&!rt?qe.resource="/"+L.bucket:!L.bucket&&rt?qe.resource=rt:!L.bucket&&!rt&&(qe.resource="/"),qe.resource=S.canonicalizeResource(qe.resource),ee.setHeader("authorization",S.authorization(qe))}return ee},Y.prototype.httpSignature=function(L){var D=this;return A.signRequest({getHeader:function(ee){return D.getHeader(ee,D.headers)},setHeader:function(ee,oe){D.setHeader(ee,oe)},method:D.method,path:D.path},L),Z("httpSignature authorization",D.getHeader("authorization")),D},Y.prototype.hawk=function(L){var D=this;D.setHeader("Authorization",Q.header(D.uri,D.method,L))},Y.prototype.oauth=function(L){var D=this;return D._oauth.onRequest(L),D},Y.prototype.jar=function(L){var D=this,ee;if(D._redirect.redirectsFollowed===0&&(D.originalCookieHeader=D.getHeader("cookie")),!L)ee=!1,D._disableCookies=!0;else{var oe=L.getCookieString?L:v,fe=D.uri.href;oe&&(ee=oe.getCookieString(fe))}return ee&&ee.length&&(D.originalCookieHeader?D.setHeader("cookie",D.originalCookieHeader+"; "+ee):D.setHeader("cookie",ee)),D._jar=L,D},Y.prototype.pipe=function(L,D){var ee=this;if(ee.response)if(ee._destdata)ee.emit("error",new Error("You cannot pipe after data has been emitted from the response."));else if(ee._ended)ee.emit("error",new Error("You cannot pipe after the response has been ended."));else return m.Stream.prototype.pipe.call(ee,L,D),ee.pipeDest(L),L;else return ee.dests.push(L),m.Stream.prototype.pipe.call(ee,L,D),L},Y.prototype.write=function(){var L=this;if(!L._aborted&&(L._started||L.start(),L.req))return L.req.write.apply(L.req,arguments)},Y.prototype.end=function(L){var D=this;D._aborted||(L&&D.write(L),D._started||D.start(),D.req&&D.req.end())},Y.prototype.pause=function(){var L=this;L.responseContent?L.responseContent.pause.apply(L.responseContent,arguments):L._paused=!0},Y.prototype.resume=function(){var L=this;L.responseContent?L.responseContent.resume.apply(L.responseContent,arguments):L._paused=!1},Y.prototype.destroy=function(){var L=this;this.clearTimeout(),L._ended?L.response&&L.response.destroy():L.end()},Y.prototype.clearTimeout=function(){this.timeoutTimer&&(clearTimeout(this.timeoutTimer),this.timeoutTimer=null)},Y.defaultProxyHeaderWhiteList=ke.defaultProxyHeaderWhiteList.slice(),Y.defaultProxyHeaderExclusiveList=ke.defaultProxyHeaderExclusiveList.slice(),Y.prototype.toJSON=R,request$2=Y,request$2}var extend=extend$1,cookies=cookies$1,helpers=helpers$1,paramsHaveRequestBody=helpers.paramsHaveRequestBody;function initParams(t,n,l){typeof n=="function"&&(l=n);var d={};return n!==null&&typeof n=="object"?extend(d,n,{uri:t}):typeof t=="string"?extend(d,{uri:t}):extend(d,t),d.callback=l||d.callback,d}function request$1(t,n,l){if(typeof t>"u")throw new Error("undefined is not a valid uri or options object.");var d=initParams(t,n,l);if(d.method==="HEAD"&&paramsHaveRequestBody(d))throw new Error("HTTP HEAD requests MUST NOT include a request body.");return new request$1.Request(d)}function verbFunc(t){var n=t.toUpperCase();return function(l,d,m){var h=initParams(l,d,m);return h.method=n,request$1(h,h.callback)}}request$1.get=verbFunc("get"),request$1.head=verbFunc("head"),request$1.options=verbFunc("options"),request$1.post=verbFunc("post"),request$1.put=verbFunc("put"),request$1.patch=verbFunc("patch"),request$1.del=verbFunc("delete"),request$1.delete=verbFunc("delete"),request$1.jar=function(t){return cookies.jar(t)},request$1.cookie=function(t){return cookies.parse(t)};function wrapRequestMethod(t,n,l,d){return function(m,h,S){var k=initParams(m,h,S),A={};return extend(!0,A,n,k),A.pool=k.pool||n.pool,d&&(A.method=d.toUpperCase()),typeof l=="function"&&(t=l),t(A,A.callback)}}request$1.defaults=function(t,n){var l=this;t=t||{},typeof t=="function"&&(n=t,t={});var d=wrapRequestMethod(l,t,n),m=["get","head","post","put","patch","del","delete"];return m.forEach(function(h){d[h]=wrapRequestMethod(l[h],t,n,h)}),d.cookie=wrapRequestMethod(l.cookie,t,n),d.jar=l.jar,d.defaults=l.defaults,d},request$1.forever=function(t,n){var l={};return n&&extend(l,n),t&&(l.agentOptions=t),l.forever=!0,request$1.defaults(l)};var request_1=request$1;request$1.Request=requireRequest(),request$1.initParams=initParams,Object.defineProperty(request$1,"debug",{enumerable:!0,get:function(){return request$1.Request.debug},set:function(t){request$1.Request.debug=t}});var sha1$1={exports:{}},crypt={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return n.rotl(l,8)&16711935|n.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=n.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],m=0,h=0;m<l.length;m++,h+=8)d[h>>>5]|=l[m]<<24-h%32;return d},wordsToBytes:function(l){for(var d=[],m=0;m<l.length*32;m+=8)d.push(l[m>>>5]>>>24-m%32&255);return d},bytesToHex:function(l){for(var d=[],m=0;m<l.length;m++)d.push((l[m]>>>4).toString(16)),d.push((l[m]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],m=0;m<l.length;m+=2)d.push(parseInt(l.substr(m,2),16));return d},bytesToBase64:function(l){for(var d=[],m=0;m<l.length;m+=3)for(var h=l[m]<<16|l[m+1]<<8|l[m+2],S=0;S<4;S++)m*8+S*6<=l.length*8?d.push(t.charAt(h>>>6*(3-S)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],m=0,h=0;m<l.length;h=++m%4)h!=0&&d.push((t.indexOf(l.charAt(m-1))&Math.pow(2,-2*h+8)-1)<<h*2|t.indexOf(l.charAt(m))>>>6-h*2);return d}};crypt.exports=n})();var cryptExports=crypt.exports,charenc={utf8:{stringToBytes:function(t){return charenc.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(charenc.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],l=0;l<t.length;l++)n.push(t.charCodeAt(l)&255);return n},bytesToString:function(t){for(var n=[],l=0;l<t.length;l++)n.push(String.fromCharCode(t[l]));return n.join("")}}},charenc_1=charenc;(function(){var t=cryptExports,n=charenc_1.utf8,l=charenc_1.bin,d=function(h){h.constructor==String?h=n.stringToBytes(h):typeof Buffer$C<"u"&&typeof Buffer$C.isBuffer=="function"&&Buffer$C.isBuffer(h)?h=Array.prototype.slice.call(h,0):Array.isArray(h)||(h=h.toString());var S=t.bytesToWords(h),k=h.length*8,A=[],B=1732584193,M=-271733879,j=-1732584194,I=271733878,P=-1009589776;S[k>>5]|=128<<24-k%32,S[(k+64>>>9<<4)+15]=k;for(var $=0;$<S.length;$+=16){for(var z=B,N=M,F=j,U=I,J=P,te=0;te<80;te++){if(te<16)A[te]=S[$+te];else{var se=A[te-3]^A[te-8]^A[te-14]^A[te-16];A[te]=se<<1|se>>>31}var de=(B<<5|B>>>27)+P+(A[te]>>>0)+(te<20?(M&j|~M&I)+1518500249:te<40?(M^j^I)+1859775393:te<60?(M&j|M&I|j&I)-1894007588:(M^j^I)-899497514);P=I,I=j,j=M<<30|M>>>2,M=B,B=de}B+=z,M+=N,j+=F,I+=U,P+=J}return[B,M,j,I,P]},m=function(h,S){var k=t.wordsToBytes(d(h));return S&&S.asBytes?k:S&&S.asString?l.bytesToString(k):t.bytesToHex(k)};m._blocksize=16,m._digestsize=20,sha1$1.exports=m})();var sha1Exports=sha1$1.exports,php2js$1={rawurlencode:function(t){return t=(t+"").toString(),encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/\+/g," ")},http_build_query:function(t,n,l){var d,m,h=[],S=function(A,B,M){var j,I=[];if(B===!0?B="1":B===!1&&(B="0"),B!=null)if(typeof B=="object"){for(j in B)B[j]!=null&&I.push(S(A+"["+j+"]",B[j],M));return I.join(M)}else{if(typeof B!="function")return php2js$1.urlencode(A)+"="+php2js$1.urlencode(B);throw new Error("There was an error processing for http_build_query().")}else return""};l||(l="&");for(m in t){d=t[m],n&&!isNaN(m)&&(m=String(n)+m);var k=S(m,d,l);k!==""&&h.push(k)}return h.join(l)},urlencode:function(t){return t=(t+"").toString(),encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}},php2js_1=php2js$1,request=request_1,sha1=sha1Exports,php2js=php2js_1,APIConfig={url:"http://api.jwplatform.com/v1/videos/create",key:"",secret:"",format:"json",kit:"php-1.4"},jwplayer$1={makeRequest:function(t,n){request({url:t,method:"GET",headers:{"Content-Type":"MyContentType","Custom-Header":"Custom Value"}},n)},setArguments:function(t,n){t.api_nonce=Math.floor(Math.random()*1e8),t.api_timestamp=Math.floor(Date.now()/1e3),t.api_key=APIConfig.key,t.api_format=APIConfig.format,t.api_kit=APIConfig.kit;var l={};Object.keys(t).sort().forEach(function(h){l[h]=t[h]});var d="";Object.keys(l).forEach(function(h){d!=""&&(d+="&"),d+=php2js.rawurlencode(h)+"="+php2js.rawurlencode(l[h])}),t.api_signature=sha1(d+APIConfig.secret);var m=APIConfig.url+"?"+php2js.http_build_query(t,"","&");jwplayer$1.makeRequest(m,n)}},jwplayer_1=jwplayer$1;const JwpPlayerWidget=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){var l={},d=jwplayer_1.Player(this.$[0]),m=!1,h=!0;typeof this.video>"u"&&(this.video=this.media.video),l.file=this.video,l.primary="flash",l.fallback=!1,l.controls=!1,l.width=this.width,this.height&&(l.height=this.height),this.autostart,this.url_transform&&(l.file=this.url_transform(l.file));var S=this.media;S.on("setcurrenttime",function(A){m=h,d.seek(A/1e3)}),S.on("setvolume",function(A){d.setVolume(Math.floor(A*100)),S.volume=A}),S.on("setmuted",function(A){d.setMute(A),S.muted=A}),S.on("setplay",function(){d.play(!0),S.paused=!1}),S.on("setpause",function(){d.pause(!0),S.paused=!0});function k(){S.muted=d.getMute(),S.volume=d.getVolume()/100}l.events={onReady:function(){k(),S.currentTime=new t.Model.Time(1e3*d.getPosition()||0),S.trigger("loadedmetadata")},onTime:function(A){m?(d.pause(!0),m=!1):h&&d.getState()==="PLAYING"&&(h=!1,S.trigger("play")),S.trigger("timeupdate",new t.Model.Time(A.position*1e3))},onPlay:function(){m||(h=!1,S.trigger("play"))},onPause:function(){h=!0,S.trigger("pause")},onSeek:function(){S.trigger("seeked")},onMute:function(A){S.muted=A.mute,S.trigger("volumechange")},onVolume:function(A){S.volume=A.volume/100,S.trigger("volumechange")}},d=d.setup(l),this.jwplayer=d}},Cr(n,"defaults",{}),n},latestAnnotationStyles={},LatestAnnotation=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}importUsers(){if(!this.source.users_data){this.usernames=Array();var l=this,d=this.getWidgetAnnotations(),m="";return d.forEach(function(h){l.usernames.indexOf(h.creator)==-1&&l.usernames.push(h.creator)}),this.usernames.forEach(function(h){m+=h+","}),m=m.substring(0,m.length-1),_url=mustache.render(this.api_users_endpoint,{usernames_list_string:encodeURIComponent(m),usernames_list_length:this.usernames.length}),jQuery.ajax({async:!1,url:_url,type:"GET",success:function(h){l.source.users_data=h.objects},error:function(h,S,k){console.log(h),console.log(S),console.log(k)}})}}draw(){var l=this;this.renderTemplate(),this.annotationContainer_$=this.$.find(".Ldt-LatestAnnotation"),this.selectable_annotations&&(this.onMdpEvent("AnnotationsList.refresh",function(){l.getWidgetAnnotations().forEach(function(d){d.off("click"),d.on("click",function(){var m={},h="",S=this.source.users_data.filter(function(k){return k.username==d.creator});S.length==0?m.username=d.creator:m=S[0],h=l.make_name_string_function(m),_html=mustache.render(l.annotationTemplate,{annotation_created:d.created.toLocaleDateString()+", "+d.created.toLocaleTimeString(),annotation_creator:h,annotation_title:d.title,annotation_content:d.description,copy_and_edit_button:l.copy_and_edit_button,button_text:l.l10n.copy_and_edit}),l.annotationContainer_$.html(_html),l.selectedAnnotation=!0})})}),this.segments=l.source.getAnnotationsByTypeTitle(this.segments_annotation_type),this.segments.forEach(function(d){d.on("click",function(){l.selectedAnnotation=!1})}),this.currentSegment=!1),this.onMediaEvent("timeupdate",function(){l.refresh()}),this.onMediaEvent("settimerange",function(d){l.refresh(d)}),this.starts_hidden?(this.visible=!0,this.hide()):(this.visible=!1,this.show()),this.selectedAnnotation=!1,this.player.trigger("AnnotationsList.refresh"),this.refresh()}refresh(l){l=typeof l<"u"?l:!1;var d=this;if(this.hide_without_segment){if(!l&&!this.media.getTimeRange()){var m=this.media.getCurrentTime(),h=this.segments.filter(function($){return m>=$.begin&&m<=$.end});h.length==0?(this.currentSegment=!1,this.selectedAnnotation=!1):this.currentSegment=h[0]}else{var S=l?l[0]:this.media.getTimeRange()[0],k=l?l[1]:this.media.getTimeRange()[1];if(!this.currentSegment||this.currentSegment.begin!=S||this.currentSegment.end!=k){var h=this.segments.filter(function(z){return z.begin==S&&z.end==k});h.length>0&&(this.selectedAnnotation=!1,this.currentSegment=h[0])}}this.currentSegment?this.visible||this.show():this.visible&&this.hide()}if(this.visible&&!this.selectedAnnotation){var A=this.getWidgetAnnotations();this.filter_by_segment&&(this.currentSegment?A=A.filter(function($){return _annotationTime=($.begin+$.end)/2,d.currentSegment.begin<=_annotationTime&&d.currentSegment.end>=_annotationTime}):A=A.filter(function($){return!1})),A=A.sortBy(function($){return $.created});var B=!1,M="",j="",I={};if(A.length!=0)B=A.pop(),_users=this.source.users_data.filter(function($){return $.username==B.creator}),_users.length==0?I.username=B.creator:I=_users[0],j=this.make_name_string_function(I),M=mustache.render(this.annotationTemplate,{annotation_created:B.created.toLocaleDateString()+", "+B.created.toLocaleTimeString(),annotation_creator:j,annotation_title:B.title,annotation_content:B.description,copy_and_edit_button:this.copy_and_edit_button,button_text:this.l10n.copy_and_edit});else{var P=this.l10n.empty;this.empty_message&&(P=this.empty_message),M="<div class='Ldt-LatestAnnotation-Element Ldt-LatestAnnotation-NoAnnotation'>"+P+"</div>"}this.annotationContainer_$.html(M)}this.copy_and_edit_button&&(this.copyAndEditButton_$=this.$.find(".Ldt-LatestAnnotation-CopyEditButton"),this.copyAndEditButton_$.click(this.functionWrapper("copy_and_edit")))}copy_and_edit(){this.player.trigger("CreateAnnotation.show"),this.hide_annotations_list&&this.player.trigger("AnnotationsList.hide"),annotationText=jQuery(".Ldt-LatestAnnotation-Content").get(0).innerHTML,jQuery(".Ldt-CreateAnnotation-Description").removeClass("empty"),jQuery(".Ldt-CreateAnnotation-Description").val(annotationText)}hide(){this.visible&&(this.visible=!1,this.$.find(".Ldt-LatestAnnotation-header").hide(),this.annotationContainer_$.hide())}show(){this.visible||(this.visible=!0,this.$.find(".Ldt-LatestAnnotation-header").show(),this.annotationContainer_$.show())}},Cr(n,"defaults",{pre_draw_callback:function(){return this.importUsers()},from_user:!1,filter_by_segment:!1,segments_annotation_type:"chap",hide_without_segment:!1,annotation_type:"contribution",show_only_annotation_from_user:!1,copy_and_edit_button:!1,hide_annotations_list:!1,selectable_annotations:!1,empty_message:!1,starts_hidden:!1,show_header:!1,custom_header:!1,make_name_string_function:function(l){return l.username?l.username:"Anonymous"}}),Cr(n,"messages",{fr:{copy_and_edit:"Copier et Editer",empty:"Aucune annotation à afficher",header:"Dernière annotation"},en:{copy_and_edit:"Copy and Edit",empty:"No annotation to display",header:"Last annotation"}}),Cr(n,"template","{{#show_header}}<p class='Ldt-LatestAnnotation-header'>{{#custom_header}}{{custom_header}}{{/custom_header}}{{^custom_header}}{{l10n.header}}{{/custom_header}}</p>{{/show_header}}<div class='Ldt-LatestAnnotation'></div>"),Cr(n,"annotationTemplate","<div class='Ldt-LatestAnnotation-Box'>{{#copy_and_edit_button}}<div class='Ldt-LatestAnnotation-CopyEditButton'>{{button_text}}</div>{{/copy_and_edit_button}}<div class='Ldt-LatestAnnotation-Element Ldt-LatestAnnotation-CreationDate'>{{{annotation_created}}}</div><div class='Ldt-LatestAnnotation-Element Ldt-LatestAnnotation-Title'>{{{annotation_creator}}}{{#annotation_title}}: {{{annotation_title}}}{{/annotation_title}}</div><div class='Ldt-LatestAnnotation-Element Ldt-LatestAnnotation-Content'>{{{annotation_content}}}</div></div>"),n},mashupPlayerStyles={},MashupPlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.is_mashup=!0}draw(){var l=this,d=this.media,m=null,h=null,S,k,A=0,B=!1,M,j,I=d.getMedias();d.paused=!this.autostart&&!this.autoplay;function P(){A>=d.duration&&(d.paused||(d.paused=!0,d.trigger("pause")),A=0);var F=d.getAnnotationAtTime(A);if(typeof F>"u"){m&&(m.pause(),d.paused||(d.paused=!0,d.trigger("pause")));return}if(F!==h){h=F,S=h.annotation.begin.milliseconds,k=h.annotation.end.milliseconds,j=S-h.begin.milliseconds,m=h.getMedia();for(var U=0;U<I.length;U++)I[U].id!==m.id?(l.split_screen||I[U].hide(),I[U].pause()):I[U].show();var J=[],te=d.getAnnotations().filter(function(se){return se.begin>=h.end&&se.getMedia()!==m});_$1(te).each(function(se){var de=se.getMedia();_$1(J).indexOf(de.id)===-1&&(J.push(de.id),de.setCurrentTime(se.annotation.begin.getSeconds()),de.seeking=!0)})}m.setCurrentTime(A+j),m.seeking=!0,d.paused||(m.play(),B=!0,M.show()),d.trigger("timeupdate",new t.Model.Time(A))}this.height||(this.height=Math.floor(this.width/this.aspect_ratio),this.$.css({height:this.height})),this.$.css({background:this.background});var $=Math.ceil(Math.sqrt(I.length)),z=this.split_screen?this.width/$:this.width,N=this.split_screen?this.height/$:this.height;_$1(I).each(function(F,U){var J=jQuery('<div class="Ldt-MashupPlayer-Media"><div class="Ldt-MashupPlayer-Subwidget"></div></div>');J.css({top:l.split_screen?N*Math.floor(U/$):0,left:l.split_screen?z*(U%$):0,height:N,width:z,display:l.split_screen?"block":"none"}),l.$.append(J),l.insertSubwidget(J.find(".Ldt-MashupPlayer-Subwidget"),_$1({type:l.player_type,media_id:F.id,height:N,width:z,url_transform:l.url_transform}).extend(l.player_options)),F.loadedMetadata=!1,F.show=function(){J.show()},F.hide=function(){J.hide()},F.on("loadedmetadata",function(){F.loadedMetadata=!0;for(var te=!0,se=0;se<I.length;se++)te=te&&I[se].loadedMetadata;te&&(M.fadeOut(),P(),d.trigger("loadedmetadata"))}),F.on("timeupdate",function(te){!d.paused&&F===m&&!F.seeking&&(te<k?te>=S?A=te-j:(A=S-j,F.setCurrentTime(S)):(A=k-j,F.pause(),P()),d.trigger("timeupdate",new t.Model.Time(A)))}),F.on("seeked",function(){F.seeking=!1,F===m&&B&&(B=!1,M.hide())}),F.on("play",function(){F===m&&d.trigger("play")}),F.on("pause",function(){F===m&&d.trigger("pause")}),F.on("volumechange",function(){d.muted=F.muted,d.volume=F.volume,d.trigger("volumechange")})}),M=jQuery('<div class="Ldt-MashupPlayer-Waiting"></div>'),this.$.append(M),d.on("setcurrenttime",function(F){A=F,P()}),d.on("setvolume",function(F){for(var U=0;U<I.length;U++)I[U].setVolume(F);d.volume=F}),d.on("setmuted",function(F){for(var U=0;U<I.length;U++)I[U].setMuted(F);d.muted=F}),d.on("setplay",function(){d.paused=!1,P()}),d.on("setpause",function(){d.paused=!0,m&&m.pause()}),d.on("loadedmetadata",P)}},Cr(n,"defaults",{aspect_ratio:14/9,split_screen:!1,player_type:"PopcornPlayer",background:"#000000"}),n},Mediafragment=function(t){return class extends t.Widgets.Widget{constructor(n,l){if(super(n,l),this.last_hash_key="",this.last_hash_value="",this.last_extra_key="",this.last_extra_value="",window.onhashchange=this.functionWrapper("goToHash"),typeof window.addEventListener<"u"){var d=this;window.addEventListener("message",function(m){/^#/.test(m.data)&&d.setWindowHash(m.data)})}this.onMdpEvent("Mediafragment.setHashToAnnotation","setHashToAnnotation"),this.blocked=!1}draw(){this.onMediaEvent("setpause","setHashToTime");var n=this;this.getWidgetAnnotations().forEach(function(l){l.on("click",function(){n.setHashToAnnotation(l)})}),this.media.loadedMetadata?this.goToHash():this.onMediaEvent("loadedmetadata","goToHash")}setWindowHash(n){typeof window.history<"u"&&typeof window.history.replaceState<"u"?window.history.replaceState({},"",n):document.location.hash=n}getLastHash(){var n=document.location.hash.replace(/^#/,"").split("&");return n=_$1(n).filter(function(l){return l&&!/^(id|t)=/.test(l)}),this.last_hash_key&&n.push(this.last_hash_key+"="+this.last_hash_value),this.last_extra_key&&n.push(this.last_extra_key+"="+this.last_extra_value),"#"+n.join("&")}goToHash(){if(document.location.hash!==this.getLastHash())for(var n=document.location.hash.replace(/^#/,"").split("&"),l=0;l<n.length;l++){var d=n[l].split("=");if(d[0]=="id"||d[0]=="t"){if(this.last_hash_key=d[0],this.last_hash_value=d[1],this.last_hash_key=="id"){var m=this.source.getElement(this.last_hash_value);if(typeof m<"u")this.media.setCurrentTime(m.begin);else continue}this.last_hash_key=="t"&&this.media.setCurrentTime(1e3*this.last_hash_value);break}}}setHashToAnnotation(n){this.setHash("id",n.id,"t",n.begin/1e3)}setHashToTime(){this.setHash("t",this.media.getCurrentTime().getSeconds())}setHash(n,l,d,m){if(!this.blocked&&(this.last_hash_key!==n||this.last_hash_value!==l)){this.last_hash_key=n,this.last_hash_value=l,this.last_extra_key=d,this.last_extra_value=m;var h=this.getLastHash();this.setWindowHash(h),window.parent!==window&&window.parent.postMessage(h,"*"),this.block()}}unblock(){typeof this.blockTimeout<"u"&&window.clearTimeout(this.blockTimeout),this.blockTimeout=void 0,this.blocked=!1}block(){typeof this.blockTimeout<"u"&&window.clearTimeout(this.blockTimeout),this.blocked=!0,this.blockTimeout=window.setTimeout(this.functionWrapper("unblock"),1500)}}},mediaListStyles={},MediaList=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.lastMedia=!1}onSearch(l){this.searchString=typeof l<"u"?l:"";var d=this.refresh(!0);this.searchString&&(d?this.player.trigger("search.matchFound"):this.player.trigger("search.noMatchFound"))}draw(){this.$.addClass("Ldt-MediaListWidget"),this.renderTemplate();var l=this;typeof this.media.getMedias=="function"&&this.media.on("enter-annotation",function(d){l.redraw(d.getMedia())}),this.redraw()}getSegments(l){var d=this,m=this.$.width()/l.duration.milliseconds;return this.getWidgetAnnotations().filter(function(h){return h.getMedia().id==l.id}).map(function(h){var S=h.type=h.annotation;return{left:m*S.begin,width:m*(S.end-S.begin),color:typeof S.color<"u"&&S.color?S.color:d.default_color}})}redraw(l){if(typeof l<"u"){this.$.find(".Ldt-MediaList-Other h2").html(this.l10n.other_media),this.$.find(".Ldt-MediaList-NowPlaying").show(),this.$.find(".Ldt-MediaList-Now-Thumbnail").attr("src",l.thumbnail||this.default_thumbnail),this.$.find(".Ldt-MediaList-Now-Title a").html(l.title),this.$.find(".Ldt-MediaList-Now-Description").html(l.description);var d=l.url||mustache.render(this.media_url_template,{media:l.id});this.$.find(".Ldt-MediaList-NowContainer a").attr("href",d);var m=mustache.render(this.mediaViewTemplate,{segments:this.getSegments(l)});this.$.find(".Ldt-MediaList-Now-MediaView").html(m)}else this.$.find(".Ldt-MediaList-Other h2").html(this.l10n.all_media),this.$.find(".Ldt-MediaList-NowPlaying").hide();var h=this,S=this.source.getMedias().filter(function(A){return A.id!==h.lastMedia});if(S.length){this.$.find(".Ldt-MediaList-Other").show();var k=S.map(function(A){return mustache.render(h.mediaTemplate,{thumbnail:A.thumbnail||h.default_thumbnail,url:A.url||mustache.render(h.media_url_template,{media:A.id}),title:A.title,description:A.description,segments:h.getSegments(A)})}).join("");this.$.find(".Ldt-MediaList-OtherList").html(k)}else this.$.find(".Ldt-MediaList-Other").hide()}},Cr(n,"messages",{fr:{now_playing:"Vidéo en cours",all_media:"Toutes les vidéos",other_media:"Autres vidéos"},en:{now_playing:"Now playing",all_media:"All videos",other_media:"Other videos"}}),Cr(n,"defaults",{default_thumbnail:"http://ldt.iri.centrepompidou.fr/static/site/ldt/css/imgs/video_sequence.png",media_url_template:"http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/",default_color:"#000080"}),Cr(n,"template",'<div class="Ldt-MediaList-NowPlaying"><h2>{{l10n.now_playing}}</h2><hr /><div class="Ldt-MediaList-NowContainer"><div class="Ldt-MediaList-Now-ThumbContainer"><a href="" target="_blank"><img class="Ldt-MediaList-Now-Thumbnail" src="" /></a></div><h3 class="Ldt-MediaList-Now-Title"><a href="" target="_blank"></a></h3><p class="Ldt-MediaList-Now-Description"></p><div class="Ldt-MediaList-Now-MediaView"></div></div></div><div class="Ldt-MediaList-Other"><h2></h2><hr /><ul class="Ldt-MediaList-OtherList"></ul></div>'),Cr(n,"mediaViewTemplate",'<div class="Ldt-MediaList-MediaView-Background"></div>{{#segments}}<div class="Ldt-MediaList-Segment" style="background: {{color}}; left: {{left}}px; width: {{width}}px;"></div>{{/segments}}'),Cr(n,"mediaTemplate",'<li class="Ldt-MediaList-OtherList-li"><div class="Ldt-MediaList-Other-ThumbContainer"><a href="{{url}}" target="_blank"><img class="Ldt-MediaList-Other-Thumbnail" src="{{thumbnail}}" /></a></div><h3 class="Ldt-MediaList-Other-Title"><a href="{{url}}" target="_blank">{{title}}</a></h3><p class="Ldt-MediaList-Other-Description">{{description}}</p><div class="Ldt-MediaList-Other-MediaView">'+MediaList.mediaViewTemplate+"</div></li>"),n},noteTakingStyles={},NoteTaking=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){var l=this,d,m=jQuery;l.renderTemplate(),d=l.$.find(".Ldt-NoteTaking-Text");function h(){m(d).val(window.localStorage[l.editable_storage])}function S(){window.localStorage[l.editable_storage]=m(d).val()}window.localStorage[l.editable_storage]&&h(),m.fn.insertAtCaret=function(A){return this.each(function(){if(this.selectionStart!==void 0){var B=this.selectionStart,M=this.selectionEnd,j=this.scrollTop;this.value=this.value.substring(0,B)+A+this.value.substring(M,this.value.length),this.focus(),this.selectionStart=B+A.length,this.selectionEnd=B+A.length,this.scrollTop=j}else this.value+=A,this.focus(),this.value=this.value})};function k(A,B){var M=A.selectionStart;return A.value.substring(M-B,M+B)}m(d).keydown(function(A){if(A.keyCode==13&&(A.ctrlKey||A.metaKey)){A.preventDefault();var B=/\[([\d:]+)\]/.exec(k(d[0],8));B?l.media.setCurrentTime(t.timestamp2ms(B[1])):(m(d).insertAtCaret("["+new t.Model.Time(l.media.getCurrentTime()).toString()+"]"),S())}}).on("input",function(A){S()}).on("dblclick",function(A){var B=/\[([\d:]+)\]/.exec(k(d[0],8));B&&(A.preventDefault(),l.media.setCurrentTime(t.timestamp2ms(B[1])))})}},Cr(n,"defaults",{editable_storage:""}),Cr(n,"template",'<textarea class="Ldt-NoteTaking-Text"></textarea>'),n},placeholderPlayerStyles={},PlaceholderPlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){this.renderTemplate();var l=!0,d=0,m=new t.Model.Time(0),h=this.media,S=this.$.find(".Ldt-PlaceholderPlayer");function k(){l||(m=new t.Model.Time(new Date().valueOf()-d),m<=h.duration?(h.trigger("timeupdate",m),setTimeout(k,100)):(m=h.duration,h.pause())),S.text(m.toString(!0))}h.on("setcurrenttime",function(A){d=new Date().valueOf()-A,m=new t.Model.Time(A),h.trigger("seeked"),h.trigger("timeupdate",m),S.text(m.toString(!0))}),h.on("setplay",function(){l=!1,d=new Date().valueOf()-m,h.trigger("play"),k()}),h.on("setpause",function(){l=!0,h.trigger("pause"),k()}),h.trigger("loadedmetadata"),h.trigger("setcurrenttime",0),this.autostart&&h.trigger("setplay")}},Cr(n,"defaults",{autostart:!1}),Cr(n,"template",'<div class="Ldt-PlaceholderPlayer">(loading)</div>'),n},polemicStyles={},Polemic=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}getPolemics(l){return(typeof l>"u"||!l)&&(l=this.default_version),this.polemics.constructor===Array?this.polemics:this.polemics[l]}drawNoStackgraph(l,d){var m=this;if(this.is_stackgraph=!1,l){let S=function(k,A,F,M,j){var I=mustache.render('<div class="Ldt-Polemic-TweetDiv Ldt-TraceMe" trace-info="annotation-id:{{id}}, media-id:{{media_id}}, polemic:{{polemic}}, time:{{time}}" polemic-color="{{color}}" tweet-title="{{title}}" annotation-id="{{id}}" style="width: {{width}}px; height: {{height}}px; top: {{top}}px; left: {{left}}px; background: {{color}}"></div>',{id:j.id,media_id:m.source.currentMedia.id,polemic:F,left:k,top:A,color:M,width:m.element_width-1,height:m.element_height,title:j.title,time:j.begin.toString()}),P=jQuery(I);P.on("mouseover",function(){j.trigger("select")}).on("mouseout",function(){j.trigger("unselect")}).on("click",function(){return j.trigger("click"),!1}),t.attachDndData(P,{title:j.title,description:j.description,image:j.thumbnail,uri:typeof j.url<"u"?j.url:document.location.href.replace(/#.*$/,"")+"#id="+j.id,text:"["+j.begin.toString()+"] "+j.title});for(var $=[],z=j.content&&j.content.polemic_version||m.default_version,N=m.getPolemics(z)||[],F,U,J=0;J<N.length;J++)F=N[J],U=t.Model.regexpFromTextOrArray(F.keywords),U.test(j.description)&&$.push(F.color);j.on("select",function(){m.tooltip&&m.tooltip.show(+Math.floor(k+(m.element_width-1)/2),+A,j.title,$.length>1?$:M),m.$tweets.each(function(){var te=jQuery(this);te.css("opacity",te.attr("annotation-id")==j.id?1:.3)})}),j.on("unselect",function(){m.tooltip&&m.tooltip.hide(),m.$tweets.css("opacity",1)}),j.on("found",function(){P.css({background:m.foundcolor,opacity:1})}),j.on("not-found",function(){P.css({background:M,opacity:.3})}),m.$zone.append(P)};this.height=(2+l)*this.element_height,this.$zone.css({width:this.width+"px",height:this.height+"px",position:"relative"});var h=0;_$1(d).forEach(function(k){var A=m.height;k.annotations.forEach(function(B){A-=m.element_height,S(h,A,"none",m.defaultcolor,B)}),_$1(k.polemicStacks).forEach(function(B){var M=B.polemicDef.color,j=B.polemicDef.name;B.annotations.forEach(function(I){A-=m.element_height,S(h,A,j,M,I)})}),h+=m.element_width}),this.$tweets=this.$.find(".Ldt-Polemic-TweetDiv"),this.source.getAnnotations().on("search-cleared",function(){m.$tweets.each(function(){var k=jQuery(this);k.css({background:k.attr("polemic-color"),opacity:1})})})}else this.$zone.hide()}drawStackgraph(l,d){this.is_stackgraph=!0;var m=this;this.height=(2+this.max_elements)*this.element_height,this.$zone.css({width:this.width+"px",height:this.height+"px",position:"relative"});var h=0,S="",k=this.max_elements*this.element_height/l;function A(B,M,j,I,P,$,z,N){S+=mustache.render('<div class="Ldt-Polemic-TweetDiv Ldt-TraceMe" trace-info="annotation-block, media-id={{media_id}}, polemic={{polemic}}, time:{{begin}}" pos-x="{{posx}}" pos-y="{{top}}" annotation-counts="{{nums}}" begin-time="{{begin}}" end-time="{{end}}" style="width: {{width}}px; height: {{height}}px; top: {{top}}px; left: {{left}}px; background: {{color}}"></div>',{nums:P,posx:Math.floor(B+(m.element_width-1)/2),media_id:m.source.currentMedia.id,polemic:N,left:B,top:M,color:I,width:m.element_width-1,height:j,begin:$,end:z})}_$1(d).forEach(function(B){var M=m.height,j=B.annotations.length+"|"+m.defaultcolor+","+_$1(B.polemicStacks).map(function(P){return P.annotations.length+"|"+P.polemicDef.color}).join(",");if(B.annotations.length){var I=Math.ceil(k*B.annotations.length);M-=I,A(h,M,I,m.defaultcolor,j,B.begin,B.end,"none")}_$1(B.polemicStacks).forEach(function(P){if(P.annotations.length){var $=P.polemicDef.color,z=P.polemicDef.name,N=Math.ceil(k*P.annotations.length);M-=N,A(h,M,N,$,j,B.begin,B.end,z)}}),h+=m.element_width}),this.$zone.append(S),this.$tweets=this.$.find(".Ldt-Polemic-TweetDiv"),this.$tweets.mouseover(function(){var B=jQuery(this),M=B.attr("annotation-counts").split(","),j="<p>"+m.l10n.from_+B.attr("begin-time")+m.l10n._to_+B.attr("end-time")+"</p>";j=_$1.reduce(M,function(I,P){var $=P.split("|");return I+='<div class="Ldt-Tooltip-AltColor" style="background: '+$[1]+'"></div><p>'+$[0]+m.l10n._annotations+"</p>",I},j),m.tooltip&&m.tooltip.show(+B.attr("pos-x"),+B.attr("pos-y"),j)}).mouseout(function(){m.tooltip&&m.tooltip.hide()})}draw(){this.onMediaEvent("timeupdate","onTimeupdate"),this.$zone=jQuery("<div>"),this.$zone.addClass("Ldt-Polemic"),this.$.append(this.$zone),this.$elapsed=jQuery("<div>").css({background:"#cccccc",position:"absolute",top:0,left:0,width:0,height:"100%"}),this.$zone.append(this.$elapsed);for(var l=[],d=Math.floor(this.width/this.element_width),m=this.source.getDuration(),h=0,S=this.getWidgetAnnotations(),k=this,A=0;A<d;A++){var B=new t.Model.Time(A*m/d),M=new t.Model.Time((A+1)*m/d),j=0,I={begin:B.toString(),end:M.toString(),annotations:S.filter(function(P){return P.begin>=B&&P.begin<M}),polemicStacks:{}};I.annotations=I.annotations.filter(function(P){for(var $=P.content&&P.content.polemic_version||k.default_version,z=k.getPolemics($)||[],N,F,U,J,te=!0,se=0;se<z.length;se++)N=z[se],J=t.Model.regexpFromTextOrArray(N.keywords),J.test(P.description)&&(F=$+"_"+N.name,U=I.polemicStacks[F]||(I.polemicStacks[F]={polemicDef:N,annotations:[]}),U.annotations.push(P),te=!1,j++);return te}),j+=I.annotations.length,h=Math.max(h,j),l.push(I)}h<this.max_elements?this.drawNoStackgraph(h,l):this.drawStackgraph(h,l),this.$position=jQuery("<div>").addClass("Ldt-Polemic-Position"),this.$zone.append(this.$position),this.$zone.on("click",function(P){var $=P.pageX-k.$zone.offset().left;k.media.setCurrentTime(k.media.duration*$/k.width)}),this.$.append('<div class="Ldt-Polemic-Tooltip"></div>'),this.insertSubwidget(this.$.find(".Ldt-Polemic-Tooltip"),{type:"Tooltip",min_x:0,max_x:this.width},"tooltip")}onTimeupdate(l){var d=Math.floor(this.width*l/this.media.duration);this.$elapsed.css({width:d+"px"}),this.$position.css({left:d+"px"})}},Cr(n,"messages",{fr:{from_:"de ",_to_:" à ",_annotations:" annotation(s)"},en:{from_:"from ",_to_:" to ",_annotations:" annotation(s)"}}),Cr(n,"defaults",{element_width:5,element_height:5,max_elements:20,annotation_type:"tweet",defaultcolor:"#585858",foundcolor:"#fc00ff",default_version:"1",polemics:{1:[{name:"OK",keywords:["++"],color:"#1D973D"},{name:"KO",keywords:["--"],color:"#CE0A15"},{name:"REF",keywords:["==","http://"],color:"#C5A62D"},{name:"Q",keywords:["?"],color:"#036AAE"}],2:[{name:"OK",keywords:["++"],color:"#1D973D"},{name:"KO",keywords:["!!"],color:"#CE0A15"},{name:"REF",keywords:["==","http://"],color:"#C5A62D"},{name:"Q",keywords:["?"],color:"#036AAE"}]}}),n},PopcornPlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){typeof this.video>"u"&&(this.video=this.media.video),this.url_transform&&(this.video=this.url_transform(this.video));var l=this.video;if(/^(https?:\/\/)?(www\.)?youtube\.com/.test(this.video)){for(var d=this.video.split(/[?&]/),m={},h=1;h<d.length;h++){var S=d[h].split("=");m[S[0]]=decodeURIComponent(S[1])}m.controls=0,m.modestbranding=1,(this.autostart||this.autoplay)&&(m.autoplay=1),l=d[0]+"?"+jQuery.param(m)}var k=global$1.Popcorn.smart("#"+this.container,l);(this.autostart||this.autoplay)&&k.autoplay(!0);var A=this.media;A.on("setcurrenttime",function(M){k.currentTime(M/1e3)}),A.on("setvolume",function(M){k.volume(M),A.volume=M}),A.on("setmuted",function(M){k.muted(M),A.muted=M}),A.on("setplay",function(){k.play()}),A.on("setpause",function(){k.pause()}),A.on("settimerange",function(M){A.timeRange=M;try{(A.getCurrentTime()>M[0]||A.getCurrentTime()<M)&&k.currentTime(M[0]/1e3)}catch{}}),A.on("resettimerange",function(){A.timeRange=!1});function B(){A.muted=k.muted(),A.volume=k.volume()}k.on("loadedmetadata",function(){B(),A.trigger("loadedmetadata"),A.trigger("volumechange")}),k.on("timeupdate",function(){A.trigger("timeupdate",new t.Model.Time(1e3*k.currentTime()))}),k.on("volumechange",function(){B(),A.trigger("volumechange")}),k.on("play",function(M){A.trigger("play")}),k.on("pause",function(){A.trigger("pause")}),k.on("seeked",function(){A.trigger("seeked")})}},Cr(n,"defaults",{}),n},quizStyles={},Quiz=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}update(l){var d=this;if(this.quiz_activated&&this.correct[l.id]!=1&&this.correct[l.id]!=0){d.quiz_displayed=!0,this.media.pause(),this.annotation=l;var m=l.content.data.question,h=l.content.data.answers,S=l.content.data.resource;jQuery(".Ldt-Quiz-Votes").hide(),jQuery(".Ldt-Pause-Add-Question").hide(),jQuery(".Ldt-Quiz-Container .Ldt-Quiz-Title").html(m);var k=0,A=mustache.render('<span class="Ldt-Quiz-Correct-Answer">{{ correctness.0 }}</span> / <span class="Ldt-Quiz-Incorrect-Answer">{{ correctness.1 }}</span>',{correctness:this.globalScore()});jQuery(".Ldt-Quiz-Index").html(mustache.render("Q{{index}}/{{total}}",{index:l.number+1,total:this.totalAmount})),jQuery(".Ldt-Quiz-Score").html(A),this.question=new t.Widgets.UniqueChoiceQuestion(l),this.resource=new t.Widgets.UniqueChoiceQuestion(S),l.content.data.type=="multiple_choice"?(this.question=new t.Widgets.MultipleChoiceQuestion(l),this.resource=new t.Widgets.MultipleChoiceQuestion(S)):l.content.data.type=="unique_choice"&&(this.question=new t.Widgets.UniqueChoiceQuestion(l),this.resource=new t.Widgets.UniqueChoiceQuestion(S));var B="";for(k=0;k<h.length;k++)B+='<div class="quiz-question-block"><p>'+this.question.renderQuizTemplate(h[k],k)+'<span class="quiz-question-label">'+h[k].content+"</span></p></div>";var M="";S!=null&&(M='<div class="quiz-resource-block" id="resource" >'+S+"</div>"),jQuery(".Ldt-Quiz-Questions").html(M+B),jQuery(".Ldt-Quiz-Overlay").fadeIn(),jQuery(".Ldt-Quiz-Submit").fadeIn(),jQuery(".quiz-question-label").click(function(){var j=jQuery(this).siblings("input");j.prop("checked")&&j.prop("type")=="radio"?d.answer():j.prop("checked",!j.prop("checked"))}),jQuery(".Ldt-Quiz-Submit-Skip-Link").click({media:this.media},function(j){d.hide(),d.player.trigger("QuizCreator.skip"),j.data.media.play()})}}hide(){var l=this;jQuery(".Ldt-Quiz-Votes").hide(),jQuery(".Ldt-Quiz-Overlay").hide(),jQuery(".Ldt-Pause-Add-Question").hide(),l.quiz_displayed=!1}answer(){var l=this;function d(j){return(j||"").replace(/\s(\d+:\d+)/,function(I,P){return' <a href="#t='+t.timestamp2ms(P)/1e3+'">'+P+"</a>"})}var m=l.annotation.content.data.answers,h=0,S=0,k=[];l.$.find(".Ldt-Quiz-Question-Check").each(function(j){var I=jQuery(this).is(":checked");k.push(I?1:0);var P=m[h];P.correct&&!I||!P.correct&&I?(S+=1,jQuery(this).parents(".quiz-question-block").append('<div class="quiz-question-feedback quiz-question-incorrect-feedback">'+d(P.feedback)+"</div>")):jQuery(this).parents(".quiz-question-block").append('<div class="quiz-question-feedback quiz-question-correct-feedback">'+d(P.feedback)+"</div>"),h++}),S?(jQuery(".Ldt-Quiz-Result").html("Mauvaise réponse"),jQuery(".Ldt-Quiz-Result").css({"background-color":"red"}),this.correct[this.annotation.id]=0):(jQuery(".Ldt-Quiz-Result").html("Bonne réponse !"),jQuery(".Ldt-Quiz-Result").css({"background-color":"green"}),this.correct[this.annotation.id]=1),jQuery(".Ldt-Quiz-Result").animate({height:"100%"},500,"linear",function(){jQuery(".Ldt-Quiz-Result").delay(2e3).animate({height:"0%"},500)});var A=this.annotation.number+1,B=this.globalScore(),M="";M+='<span class="Ldt-Quiz-Correct-Answer">'+B[0]+'</span> / <span class="Ldt-Quiz-Incorrect-Answer">'+B[1]+"</span>",jQuery(".Ldt-Quiz-Index").html("Q"+A+"/"+this.totalAmount),jQuery(".Ldt-Quiz-Score").html(M),this.submit(this.user,this.userid,this.annotation.id,S?"wrong_answer":"right_answer",k.join("")),jQuery(".Ldt-Quiz-Submit").fadeOut(400,function(){jQuery(".Ldt-Quiz-Votes").show()})}globalScore(){var l=_.values(this.correct),d=l.filter(function(h){return h==1}).length,m=l.filter(function(h){return h==0}).length;return[d,m]}refresh(){var l=this.getWidgetAnnotations().sortBy(function(m){return m.begin}),d=this;d.totalAmount=l.length,d.number=0,d.correct={},d.keys={},l.forEach(function(m){d.correct[m.id]=-1,d.keys[d.number]=m.id,m.number=d.number++})}draw(){var l=this;l.quiz_displayed=!1,this.onMediaEvent("enter-annotation",function(d){var m=l.getWidgetAnnotations().filter(function(h){return h===d});m.number===void 0&&l.refresh(),m.length&&l.update(m[0])}),this.onMdpEvent("Quiz.activate",function(){l.quiz_activated=!0}),this.onMdpEvent("Quiz.deactivate",function(){l.quiz_activated=!1,l.hide()}),this.onMdpEvent("Quiz.hide",function(){l.hide()}),this.onMdpEvent("Quiz.refresh",function(){l.refresh()}),this.onMediaEvent("pause",function(){l.quiz_displayed||jQuery(".Ldt-Pause-Add-Question").show()}),this.onMediaEvent("play",function(){jQuery(".Ldt-Pause-Add-Question").hide()}),l.overlay=jQuery("<div class='Ldt-Quiz-Overlay'></div>").appendTo(jQuery("#"+l.container)),l.PauseAddQuestion=jQuery("<div class='Ldt-Pause-Add-Question' title='Ajoutez une question !'>").on("click",function(){l.player.trigger("QuizCreator.create")}).appendTo(jQuery("#"+l.container)),l.overlay.html(this.template),jQuery(".Ldt-Quiz-Overlay").hide(),jQuery(".Ldt-Quiz-Submit input").click(function(){l.answer()}),jQuery(".Ldt-Quiz-Submit-Skip-Link").click({media:this.media},function(d){l.submit(l.user,l.userid,l.annotation.id,"skipped_answer",0),l.hide(),l.player.trigger("QuizCreator.skip"),d.data.media.play()}),jQuery('.Ldt-Quiz-Votes-Buttons input[type="button"], .Ldt-Quiz-Votes-Buttons a').click({media:this.media},function(d){var m,h;jQuery(this).hasClass("Ldt-Quiz-Vote-Useful")?(m="useful",h=1):jQuery(this).hasClass("Ldt-Quiz-Vote-Useless")?(m="useless",h=-1,jQuery(".Ldt-Ctrl-Quiz-Create").addClass("button_highlight").delay(5e3).queue(function(){jQuery(this).removeClass("button_highlight").dequeue()})):(m="skipped_vote",h=0),l.submit(l.user,l.userid,l.annotation.id,m,h),d.data.media.play(),l.hide(),jQuery(".Ldt-Pause-Add-Question").hide(),l.player.trigger("QuizCreator.skip")}),l.refresh()}},Cr(n,"defaults",{quiz_activated:!0,api_serializer:"ldt_annotate",analytics_api:"",api_method:"POST",user:"",userid:""}),Cr(n,"template",'<div class="Ldt-Quiz-Container"><div class="Ldt-Quiz-Header">  <div class="Ldt-Quiz-Index"></div><div class="Ldt-Quiz-Score"></div></div><div class="Ldt-Quiz-Content">  <h1 class="Ldt-Quiz-Title">{{question}}</h1>  <div class="Ldt-Quiz-Questions">  </div></div><div class="Ldt-Quiz-Footer">  <div class="Ldt-Quiz-Votes">      <span class="Ldt-Quiz-Votes-Question">Avez-vous trouvé cette question utile ?</span>      <div class="Ldt-Quiz-Votes-Buttons">          <div class="Ldt-Quiz-Vote-Skip-Block"><a href="#" class="Ldt-Quiz-Vote-Skip">Passer</a></div>          <div><input type="button" value="Non" class="Ldt-Quiz-Vote-Useless" /></div>          <div><input type="button" value="Oui" class="Ldt-Quiz-Vote-Useful" /></div>      </div>  </div>  <div class="Ldt-Quiz-Submit">      <div class="Ldt-Quiz-Submit-Button"><input type="button" value="Valider" /></div>      <div class="Ldt-Quiz-Submit-Skip-Link"><a href="#">Passer</a></div><div style="clear:both;"></div>  </div>  <div class="Ldt-Quiz-Result">Bonne réponse</div></div></div>'),Cr(n,"annotationTemplate",""),n},UniqueChoiceQuestion=function(t){return class extends t.Widgets.Widget{constructor(n){this.annotation=n}renderQuizTemplate(n,l){return'<input type="radio" class="quiz-question Ldt-Quiz-Question-Check Ldt-Quiz-Question-Check-'+l+'" name="question" data-question="'+l+'" value="'+l+'" />'}renderTemplate(n,l){var d=this.generateUid();return'<input type="radio" id="'+d+'" class="quiz-question-edition Ldt-Quiz-Question-Check Ldt-Quiz-Question-Check-'+l+'" name="question" data-question="'+l+'" value="'+l+'" /><label for="'+d+'" title="Veuillez sélectionner la réponse correcte"></label>'}renderFullTemplate(n,l){var d=n&&n.correct?"checked":"",m=this.generateUid();return'<input type="radio" id="'+m+'" '+d+' class="quiz-question-edition Ldt-Quiz-Question-Check Ldt-Quiz-Question-Check-'+l+'" name="question" data-question="'+l+'" value="'+l+'" /><label for="'+m+'"></label>'}}},MultipleChoiceQuestion=function(t){return class extends t.Widgets.Widget{constructor(n){this.annotation=n}renderQuizTemplate(n,l){return'<input type="checkbox" class="quiz-question Ldt-Quiz-Question-Check Ldt-Quiz-Question-Check-'+l+'" name="question['+l+']" data-question="'+l+'" value="'+l+'" /> '}renderTemplate(n,l){var d=this.generateUid();return'<input type="checkbox" id="'+d+'" class="quiz-question-edition Ldt-Quiz-Question-Check" name="question['+l+']" data-question="'+l+'" value="'+l+'" /><label for="'+d+'" title="Veuillez sélectionner la ou les réponses correctes"></label>'}renderFullTemplate(n,l){var d=n&&n.correct?"checked":"",m=this.generateUid();return'<input type="checkbox" id="'+m+'" '+d+' class="quiz-question-edition Ldt-Quiz-Question-Check" name="question['+l+']" data-question="'+l+'" value="'+l+'" /><label for="'+m+'"></label> '}submit(n,l,d,m,h){var S=this,k=mustache.render(this.analytics_api,{id:this.source.projectId}),A={username:n,useruuid:l,subject:d,property:m,value:h,session:S.session_id};jQuery.ajax({url:k,type:this.api_method,contentType:"application/json",data:JSON.stringify(A),success:function(B){},error:function(B,M,j){t.log("Error when sending annotation",j)}})}}},quizCreatorStyles={},QuizCreator=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}skip(){this.$.find(".Ldt-QuizCreator-Time").val(""),this.$.find(".Ldt-QuizCreator-Question-Area").val(""),this.$.find(".Ldt-QuizCreator-Resource-Area").val(""),this.$.find(".Ldt-QuizCreator-Questions-Block").html(""),this.current_annotation=void 0}nbAnswers(){var l=this.$.find(".Ldt-QuizCreator-Questions-Answer").length;return l}draw(){var l=this;this.onMediaEvent("timeupdate",function(d){l.setBegin(d)}),this.onMdpEvent("QuizCreator.show",function(){l.setBegin(l.media.currentTime)}),this.onMdpEvent("QuizCreator.create",function(){l.skip(),l.setBegin(l.media.currentTime)}),this.onMdpEvent("QuizCreator.skip",function(){l.skip()}),this.onMdpEvent("QuizCreator.edit",function(d){l.skip(),l.addQuestion(d)}),this.$.on("click",".Ldt-QuizCreator-Remove",function(){jQuery(this).parents(".Ldt-QuizCreator-Questions-Answer").remove()}),this.begin=new t.Model.Time,this.end=this.source.getDuration(),this.answers=[],this.renderTemplate(),this.question=new t.Widgets.UniqueChoiceQuestion,this.$.find(".Ldt-QuizCreator-Question-Type").bind("change",this.functionWrapper("onQuestionTypeChange")),this.$.find(".Ldt-QuizCreator-Question-Add").bind("click",this.functionWrapper("onQuestionAdd")),this.$.find(".Ldt-QuizCreator-Question-Save").bind("click",this.functionWrapper("onSave")),this.$.find(".Ldt-QuizCreator-Time").keyup(function(){var d=l.$.find(".Ldt-QuizCreator-Time").val();l.begin=t.timestamp2ms(d),l.end=l.begin+1e3}),this.onMediaEvent("timeupdate",function(d){l.getDescription()&&l.setBegin(d)})}getDescription(){return this.$.find(".Ldt-QuizCreator-Question-Area").val().trim()}addQuestion(l,d){var m=this;l.content.data.type=="multiple_choice"?this.question=new t.Widgets.MultipleChoiceQuestion(l):l.content.data.type=="unique_choice"&&(this.question=new t.Widgets.UniqueChoiceQuestion(l));var h=l.content.data.answers;this.answers=[],this.$.find(".Ldt-QuizCreator-Time").val(l.begin),this.$.find(".Ldt-QuizCreator-Question-Area").val(l.content.data.question),this.$.find(".Ldt-QuizCreator-Resource-Area").val(l.content.data.resource),this.$.find(".Ldt-QuizCreator-Questions-Block").html(""),h.forEach(function(S){m.onQuestionAdd(null,S)}),m.current_annotation=l}onQuestionTypeChange(l){var d=this.$.find(".Ldt-QuizCreator-Question-Type"),m=d.val(),h=this;switch(m){case"unique_choice":this.question=new t.Widgets.UniqueChoiceQuestion;break;case"multiple_choice":this.question=new t.Widgets.MultipleChoiceQuestion;break}var S="";h.$.find(".Ldt-QuizCreator-Questions-Block").html(S),this.pauseOnWrite()}onQuestionAdd(l,d){var m='<div class="Ldt-QuizCreator-Questions-Answer">Réponse <div class="Ldt-QuizCreator-Questions-Answer-Correct">'+this.question.renderFullTemplate(d,this.nbAnswers())+'</div><br /><div class="Ldt-QuizCreator-Questions-Answer-Content"><input type="text" class="Ldt-QuizCreator-Answer-Content" data-question="'+this.nbAnswers()+'" id="question'+this.nbAnswers()+'"'+(d?' value="'+d.content+'"':"")+'/><br />Commentaire <br/><textarea class="Ldt-QuizCreator-Answer-Feedback" data-question="'+this.nbAnswers()+'" id="feedback'+this.nbAnswers()+'">'+(d?d.feedback:"")+'</textarea></div><div class="Ldt-QuizCreator-Questions-Answer-Delete"><div class="Ldt-QuizCreator-Remove">&nbsp;</div></div></div>';this.$.find(".Ldt-QuizCreator-Questions-Block").append(m),this.$.find(".Ldt-QuizCreator-Answer-Content").last().focus(),this.pauseOnWrite()}pauseOnWrite(){this.pause_on_write&&!this.media.getPaused()&&this.media.pause()}setBegin(l){this.begin=new t.Model.Time(l||0),this.end=this.begin+500,this.$.find(".Ldt-QuizCreator-Time").val(this.begin.toString())}get_local_annotation(l){return this.player.getLocalAnnotation(l)}save_local_annotations(){this.player.saveLocalAnnotations(),this.source.merge(this.player.localSource)}delete_local_annotation(l){this.source.getAnnotations().removeId(l),this.player.deleteLocalAnnotation(l),this.current_annotation=void 0,this.refresh(!0)}show(){this.$.find(".Ldt-QuizCreator-Question-Area").focus()}hide(){this.$.find(".Ldt-QuizCreator-Questions-Block").html(""),this.$.find(".Ldt-QuizCreator-Question-Area").val(""),this.$.find(".Ldt-QuizCreator-Resource-Area").val(""),this.$.find(".Ldt-QuizCreator-Time").val("")}onSave(l,d){var m=!1;if(this.nbAnswers()<=0)return alert("Vous devez spécifier au moins une réponse à votre question !"),!1;if(!this.$.find(".quiz-question-edition:checked").length)return alert("Vous n'avez pas indiqué de bonne réponse."),!1;var h;if(this.current_annotation)m=!1,h=this.current_annotation;else{m=!0;var S=this.source.getAnnotationTypes().searchByTitle(this.annotation_type,!0),k=S.length?S[0]:new t.Model.AnnotationType(!1,this.player.localSource);S.length||(k.dont_send_id=!0,k.title=this.annotation_type),h=new t.Model.Annotation(!1,this.player.localSource),h.created=new Date,h.creator=this.creator_name,h.setAnnotationType(k.id),this.player.localSource.getMedias().push(this.source.currentMedia),h.setMedia(this.source.currentMedia.id)}h.setBeginEnd(this.begin,this.end),h.modified=new Date,h.contributor=this.creator_name,h.description=this.getDescription(),h.title=h.description,h.content={},h.content.data={},h.content.data.type=this.$.find(".Ldt-QuizCreator-Question-Type").val(),h.content.data.question=h.description,h.content.data.resource=this.$.find(".Ldt-QuizCreator-Resource-Area").val(),h.content.data.answers=jQuery.makeArray(jQuery(".Ldt-QuizCreator-Questions-Answer").map(function(A){return{content:jQuery(this).find(".Ldt-QuizCreator-Answer-Content").val(),feedback:jQuery(this).find(".Ldt-QuizCreator-Answer-Feedback").val(),correct:jQuery(this).find(".Ldt-Quiz-Question-Check").is(":checked")}})),this.current_annotation=h,m?(this.player.addLocalAnnotation(h),this.source.merge([h]),this.player.trigger("Annotation.create",h)):(this.player.saveLocalAnnotations(),this.player.trigger("Annotation.update",h)),this.player.trigger("AnnotationsList.update"),this.player.trigger("Quiz.refresh")}},Cr(n,"defaults",{creator_name:"",tags:!1,tag_titles:!1,pause_on_write:!0,annotation_type:"Quiz",api_serializer:"ldt_annotate",api_endpoint_template:"",api_method:"POST"}),Cr(n,"messages",{en:{},fr:{}}),Cr(n,"template",'<div class="Ldt-QuizCreator-Ui Ldt-TraceMe"><div class="Ldt-QuizCreator-Question-Form"><textarea class="Ldt-QuizCreator-Question-Area" placeholder="Votre question"></textarea><br /><textarea class="Ldt-QuizCreator-Resource-Area" placeholder="Ressources (lien vers une image, etc.)"></textarea><br /></div><p>Type de question  <select name="type" class="Ldt-QuizCreator-Question-Type"><option value="unique_choice">Choix unique</option><option value="multiple_choice">Choix multiple</option></select> à <input type="text" placeholder="hh:mm:ss" size="6" class="Ldt-QuizCreator-Time" /><div class="Ldt-QuizCreator-Questions-Block"></div><div>  <button class="Ldt-QuizCreator-Question-Add">Ajouter une réponse</button><hr>  <button class="Ldt-QuizCreator-Question-Save">Sauvegarder</button></div></div>'),n},segmentsStyles={},Segments=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}do_draw(l){this.width!=this.$.parent().width()&&this.scale_to_parent&&(this.width=this.$.parent().width(),this.$.css({width:this.width+"px"}));var d=this,m=this.getWidgetAnnotations().filter(function(M){return M.getDuration()>0&&M.getMedia().id==d.media.id}),h=this.width/this.source.getDuration(),S=this.$.find(".Ldt-Segments-List"),k=[],A=1;function B(M,j,I,P){function $(N){return Math.floor(240*(1-P)+N*P)}for(var z=(65536*$(M)+256*$(j)+$(I)).toString(16);z.length<6;)z="0"+z;return"#"+z}l&&this.$.find(".Ldt-Segments-Segment").remove(),m.forEach(function(M,j){var I=M.begin*h,P=M.getDuration()*h,$=Math.floor(I+P/2),z=M.title+(M.description?"<br/>"+M.description:""),N=_$1(k).find(function(T){return!_$1(T.annotations).find(function(u){return u.begin<M.end&&u.end>M.begin})});N||(N={index:k.length,annotations:[]},k.push(N)),N.annotations.push(M);var F=(1-d.overlap)*N.index*d.line_height,U=typeof M.color<"u"&&M.color?M.color:d.colors[j%d.colors.length],J=parseInt(U.substr(1,2),16),te=parseInt(U.substr(3,2),16),se=parseInt(U.substr(5,2),16),de=B(J,te,se,.5),Q=B(J,te,se,.2),ve={color:U,medcolor:de,lowcolor:Q,text:(M.creator?M.creator+" : ":"")+z.replace(/(\n|\r|\r\n)/gm," ").replace(/(^.{120,140})[\s].+$/m,"$1&hellip;"),left:I,width:P,top:F,height:d.line_height-1,id:M.id,media_id:M.getMedia().id,from:M.begin.toString(),to:M.end.toString()},he=mustache.render(d.constructor.annotationTemplate,ve),ke=jQuery(he);ke.on("mouseover",function(){M.trigger("select")}).on("mouseout",function(){M.trigger("unselect")}).on("click",function(){d.use_timerange&&(d.media.getTimeRange()?d.media.getTimeRange()[0]==M.begin||d.media.getTimeRange()[1]==M.end?(d.media.resetTimeRange(),d.$segments.each(function(){var T=jQuery(this);T.css("background",Q).removeClass("selected"),M.trigger("select")})):(d.media.setCurrentTime(M.begin),d.media.setTimeRange(M.begin,M.end),d.media.play(),d.$segments.each(function(){var T=jQuery(this);T.css("background",Q).removeClass("selected")}),ke.css("background",d.selected_color).addClass("selected")):(d.media.setCurrentTime(M.begin),d.media.setTimeRange(M.begin,M.end),d.media.play(),d.$segments.each(function(){var T=jQuery(this);T.css("background",Q).removeClass("selected")}),ke.css("background",d.selected_color).addClass("selected"))),M.trigger("click")}).appendTo(S),t.attachDndData(ke,{title:M.title,description:M.description,uri:typeof M.url<"u"?M.url:document.location.href.replace(/#.*$/,"")+"#id="+M.id,image:M.thumbnail,text:"["+M.begin.toString()+"] "+M.title}),M.on("select",function(){d.$segments.each(function(){var T=jQuery(this);T.css({background:T.hasClass("found")?d.faded_found_color:T.attr("data-low-color")}),T.css({background:T.hasClass("selected")?d.faded_selected_color:T.attr("data-low-color")})}),ke.css({background:ke.hasClass("found")?d.found_color:U,background:ke.hasClass("selected")?d.selected_color:U,"z-index":++A}),d.tooltip&&d.tooltip.show($,F,ve.text,ve.color)}),M.on("unselect",function(){d.tooltip&&d.tooltip.hide(),d.$segments.each(function(){var T=jQuery(this);T.css("background",T.hasClass("found")?d.found_color:T.attr("data-medium-color")),T.css("background",T.hasClass("selected")?d.selected_color:T.attr("data-medium-color"))})}),M.on("found",function(){ke.css("background",d.found_color).addClass("found")}),M.on("not-found",function(){ke.css("background",Q).removeClass("found")})}),this.onMediaEvent("resettimerange",function(){d.$segments.each(function(){var M=jQuery(this);M.removeClass("selected")})}),this.$.css({width:this.width+"px",height:((1-this.overlap)*k.length+this.overlap)*this.line_height+"px",background:this.background,margin:"1px 0"}),this.$segments=this.$.find(".Ldt-Segments-Segment")}draw(){var l=this;l.onMediaEvent("timeupdate","onTimeupdate"),l.renderTemplate(),l.do_draw(),this.no_tooltip||l.insertSubwidget(l.$.find(".Ldt-Segments-Tooltip"),{type:"Tooltip",min_x:0,max_x:this.width},"tooltip"),l.source.getAnnotations().on("search",function(){searching=!0}),l.source.getAnnotations().on("search-cleared",function(){searching=!1,_this.$segments.each(function(){var d=jQuery(this);d.css("background",d.attr("data-medium-color")).removeClass("found")})}),this.$.on("resize",function(){l.do_draw(!0)})}onTimeupdate(l){var d=Math.floor(this.width*l/this.media.duration);this.$.find(".Ldt-Segments-Position").css({left:d+"px"})}},Cr(n,"defaults",{annotation_type:"chap",colors:["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],line_height:8,background:"#e0e0e0",overlap:.25,found_color:"#FF00FC",faded_found_color:"#ff80fc",selected_color:"#74d600",faded_selected_color:"#baf9b5",no_tooltip:!1,use_timerange:!1,scale_to_parent:!0}),Cr(n,"template",'<div class="Ldt-Segments-List"></div><div class="Ldt-Segments-Position"></div><div class="Ldt-Segments-Tooltip"></div>'),Cr(n,"annotationTemplate",'<div class="Ldt-Segments-Segment Ldt-TraceMe" trace-info="segment-id:{{id}}, media-id:{{media_id}}, from:{{from}}, to:{{to}}" segment-text="{{text}}"style="top:{{top}}px; height:{{height}}px; left:{{left}}px; width:{{width}}px; background:{{medcolor}}" data-base-color="{{color}}" data-low-color="{{lowcolor}}" data-medium-color="{{medcolor}}"></div>'),n},shortcutsStyles={},Shortcuts=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){var l=this;Mousetrap.bindGlobal("ctrl+space",function(d){return d.preventDefault(),l.media.getPaused()?l.media.play():l.media.pause(),!1}),Mousetrap.bindGlobal("ctrl+left",function(d){return d.preventDefault(),l.media.setCurrentTime(Math.max(0,l.media.getCurrentTime()-l.time_increment)),!1}),Mousetrap.bindGlobal("ctrl+shift+left",function(d){return d.preventDefault(),l.media.setCurrentTime(Math.max(0,l.media.getCurrentTime()-5*l.time_increment)),!1}),Mousetrap.bindGlobal("ctrl+right",function(d){return d.preventDefault(),l.media.setCurrentTime(Math.min(l.media.duration,l.media.getCurrentTime()+l.time_increment)),!1}),Mousetrap.bindGlobal("ctrl+shift+right",function(d){return d.preventDefault(),l.media.setCurrentTime(Math.min(l.media.duration,l.media.getCurrentTime()+5*l.time_increment)),!1}),Mousetrap.bindGlobal("ctrl+a",function(d){return d.preventDefault(),l.player.trigger("CreateAnnotation.toggle"),!1})}},Cr(n,"defaults",{time_increment:2e3}),n},sliceStyles={},Slice=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.sliding=!1}draw(){this.renderTemplate(),this.$slider=this.$.find(".Ldt-Slice"),this.show_arrow&&this.insertSubwidget(this.$.find(".Ldt-Slice-Arrow"),{type:"Arrow"},"arrow"),this.min=0,this.max=this.media.duration.valueOf();var l=this,d;this.$slider.slider({range:!0,values:[0,this.max],min:0,max:this.max,change:function(m,h){l.arrow&&l.arrow.moveToTime((h.values[0]+h.values[1])/2),l.onBoundsChanged&&l.onBoundsChanged(h.values[0],h.values[1])},start:function(){l.sliding=!0,l.media.getPaused()||l.media.pause(),d=l.media.getCurrentTime()},slide:function(m,h){l.media.setCurrentTime(h.value)},stop:function(){l.sliding=!1,l.media.setCurrentTime(d)}}),this.$slider.find(".ui-slider-handle:first").addClass("Ldt-Slice-left-handle"),this.$slider.find(".ui-slider-handle:last").addClass("Ldt-Slice-right-handle"),this.getWidgetAnnotations().forEach(function(m){m.on("enter",function(){l.setBounds(m.begin,m.end)})}),this.player.on("annotation-click",function(m){l.setBounds(m.begin,m.end)})}setBounds(l,d){this.$slider.slider("values",[l,d])}show(){this.$slider.show()}hide(){this.$slider.hide()}},Cr(n,"defaults",{show_arrow:!1}),Cr(n,"template",'<div class="Ldt-Slice"></div>{{#show_arrow}}<div class="Ldt-Slice-Arrow"></div>{{/show_arrow}}'),n},slidePreviewStyles={},SlidePreview=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){this.getWidgetAnnotations().sortBy(function(m){return m.begin});var l=this;l.renderTemplate();var d=l.$.find(".Ldt-SlidePreview-Slides");this.getWidgetAnnotations().forEach(function(m){var h={id:m.id,content:t.textFieldHtml(m.title),begin:m.begin.toString(),ms:m.begin.milliseconds,thumbnail:m.thumbnail},S=mustache.render(l.annotationTemplate,h),k=jQuery(S);d.append(k)}),l.$.on("click",".Ldt-SlidePreview-Item",function(){l.media.setCurrentTime(Number(this.dataset.timecode))})}},Cr(n,"defaults",{annotation_type:"Slides"}),Cr(n,"template",'<div class="Ldt-SlidePreview-Container"><div class="Ldt-SlidePreview-Slides"></div></div>'),Cr(n,"annotationTemplate",'<div data-id="{{ id }}" data-timecode="{{ ms }}" class="Ldt-SlidePreview-Item"><img title="{{ begin }} - {{ atitle }}" class="Ldt-AnnotationsList-Thumbnail" src="{{ thumbnail }}"></div>'),n},sliderStyles={},Slider=function(t){var n;return n=class extends t.Widgets.Widget{constructor(d,m){super(d,m);Cr(this,"calculateHandleCss",function(d){return{height:2+d+"px",width:2+d+"px","margin-left":-Math.ceil(2+d/2)+"px"}})}draw(){this.renderTemplate(),this.$time=this.$.find(".Ldt-Slider-Time"),this.$slider=this.$.find(".Ldt-Slider");var d=this;this.$slider.slider({range:"min",value:0,min:0,max:this.source.getDuration().milliseconds,slide:function(m,h){d.media.setCurrentTime(h.value),d.player.trigger("Mediafragment.setHashToTime")}}),this.$handle=this.$slider.find(".ui-slider-handle"),this.onMediaEvent("timeupdate","onTimeupdate"),this.onMdpEvent("Player.MouseOver","onMouseover"),this.onMdpEvent("Player.MouseOut","onMouseout"),this.minimize_timeout&&(this.$slider.css(this.calculateSliderCss(this.minimized_height)),this.$handle.css(this.calculateHandleCss(this.minimized_height)),this.maximized=!1,this.timeoutId=!1),this.$slider.mouseover(function(){d.$time.show(),d.onMouseover()}).mouseout(this.functionWrapper("onMouseout")).mousemove(function(m){var h=m.pageX-d.$.offset().left,S=new t.Model.Time(d.media.duration*h/d.width);d.$time.text(S.toString()).css("left",h)})}onTimeupdate(d){this.$slider.slider("value",d),this.player.trigger("Arrow.updatePosition",{widget:this.type,time:d})}onMouseover(){this.minimize_timeout&&(this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=!1),this.maximized||(this.animateToHeight(this.maximized_height),this.maximized=!0))}onMouseout(){if(this.$time.hide(),this.minimize_timeout){this.timeoutId&&(window.clearTimeout(this.timeoutId),this.timeoutId=!1);var d=this;this.timeoutId=window.setTimeout(function(){d.maximized&&(d.animateToHeight(d.minimized_height),d.maximized=!1),d.timeoutId=!1},this.minimize_timeout)}}animateToHeight(d){this.$slider.stop().animate(this.calculateSliderCss(d),500,function(){jQuery(this).css("overflow","visible")}),this.$handle.stop().animate(this.calculateHandleCss(d),500,function(){jQuery(this).css("overflow","visible")})}calculateSliderCss(d){return{height:d+"px","margin-top":this.minimized_height-d+"px"}}},Cr(n,"defaults",{minimized_height:4,maximized_height:4,minimize_timeout:1500}),Cr(n,"template",'<div class="Ldt-Slider"></div><div class="Ldt-Slider-Time">00:00</div>'),n},slideVideoPlayerStyles={},SlideVideoPlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(d,m){super(d,m);Cr(this,"template",'<div class="Ldt-SlideVideoPlayer">  <div class="Ldt-SlideVideoPlayer-slide Ldt-SlideVideoPlayer-panel">  </div>  <div class="Ldt-SlideVideoPlayer-video Ldt-SlideVideoPlayer-panel">  </div></div>')}draw(){var d=this;d.renderTemplate(),this.insertSubwidget(d.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-slide"),{type:"ImageDisplay",annotation_type:d.annotation_type},"slide"),this.insertSubwidget(d.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-video"),{type:d.playerModule,video:d.video,width:"100%",url_transform:d.url_transform},"player"),d.mode=="pip"?(d.$.find(".Ldt-SlideVideoPlayer-panel").append('<div class="Ldt-SlideVideoPlayer-pip-menu"><div class="Ldt-SlideVideoPlayer-pip-menu-toggle"></div></div>'),d.$.on("click",".Ldt-SlideVideoPlayer-pip-menu-toggle",function(){d.toggleMainDisplay()}),window.setTimeout(function(){d.setMainDisplay("video")},1500)):window.setTimeout(function(){d.$.find(".Ldt-SlideVideoPlayer").touchSplit({orientation:screen.height>screen.width?"vertical":"horizontal",leftMin:20,topMin:20})},1500)}toggleMainDisplay(){this.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-video").hasClass("Ldt-SlideVideoPlayer-pip-main")?this.setMainDisplay("slides"):this.setMainDisplay("video")}setMainDisplay(d){var m=this.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-video"),h=this.$.find(".Ldt-SlideVideoPlayer-panel.Ldt-SlideVideoPlayer-slide");if(d=="slides"){var S=m;m=h,h=S}m.removeClass("Ldt-SlideVideoPlayer-pip-pip").addClass("Ldt-SlideVideoPlayer-pip-main"),h.removeClass("Ldt-SlideVideoPlayer-pip-main").addClass("Ldt-SlideVideoPlayer-pip-pip")}},Cr(n,"defaults",{playerModule:"HtmlPlayer",mode:"sidebyside"}),n},socialStyles={},Social=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){this.renderTemplate(),this.clipId=_$1.uniqueId("Ldt-Social-CopyBtn-"),this.$.find(".Ldt-Social-CopyBtn").attr("id",this.clipId);var l=this;this.$.find(".Ldt-Social-Url").click(function(){return l.toggleCopy(),!1}).on("dragstart",function(d){d.originalEvent.dataTransfer.setData("text/x-iri-title",l.text),d.originalEvent.dataTransfer.setData("text/x-iri-uri",l.url)}),this.$.find(".Ldt-Social-Input").focus(function(){this.select()}),this.$.find(".Ldt-Social-Ext").click(function(){return window.open(jQuery(this).attr("href"),"_blank","height=300,width=450,left=100,top=100,toolbar=0,menubar=0,status=0,location=0"),!1}),this.updateUrls(this.url,this.text)}toggleCopy(){var l=this.$.find(".Ldt-Social-UrlPop");l.toggle(),this.$.find(".Ldt-Social-Input").val(this.url).focus()}updateUrls(l,d){this.url=l,this.text=d,this.$.find(".Ldt-Social-Fb").attr("href","http://www.facebook.com/share.php?"+jQuery.param({u:l,t:d})),this.$.find(".Ldt-Social-Twitter").attr("href","https://twitter.com/intent/tweet?"+jQuery.param({url:l,text:d})),this.$.find(".Ldt-Social-Gplus").attr("href","https://plus.google.com/share?"+jQuery.param({url:l,title:d})),this.$.find(".Ldt-Social-Mail").attr("href","mailto:?"+jQuery.param({subject:d,body:d+": "+l}))}},Cr(n,"defaults",{text:"",url:"",show_url:!0,show_twitter:!0,show_fb:!0,show_gplus:!0,show_mail:!0}),Cr(n,"template",'<span class="Ldt-Social">{{#show_url}}<div class="Ldt-Social-Url-Container"><a href="#" draggable="true" target="_blank" class="Ldt-Social-Square Ldt-Social-Url Ldt-TraceMe" title="{{l10n.share_link}}"></a><div class="Ldt-Social-UrlPop"><input class="Ldt-Social-Input"/></div></div>{{/show_url}}{{#show_fb}}<a href="#" target="_blank" class="Ldt-Social-Fb Ldt-Social-Ext Ldt-TraceMe" title="{{l10n.share_on}} Facebook"></a>{{/show_fb}}{{#show_twitter}}<a href="#" target="_blank" class="Ldt-Social-Twitter Ldt-Social-Ext Ldt-TraceMe" title="{{l10n.share_on}} Twitter"></a>{{/show_twitter}}{{#show_gplus}}<a href="#" target="_blank" class="Ldt-Social-Gplus Ldt-Social-Ext Ldt-TraceMe" title="{{l10n.share_on}} Google+"></a>{{/show_gplus}}{{#show_mail}}<a href="#" target="_blank" class="Ldt-Social-Mail Ldt-TraceMe" title="{{l10n.share_mail}}"></a>{{/show_mail}}</span>'),Cr(n,"messages",{fr:{share_on:"Partager sur",share_mail:"Envoyer par courriel",share_link:"Partager le lien hypertexte",copy:"Copier"},en:{share_on:"Share on",share_mail:"Share by e-mail",share_link:"Share hypertext link",copy:"Copy"}}),n},Sparkline=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){for(var l=[],d=this.source.getDuration(),m=0,h=this.getWidgetAnnotations(),S=0;S<this.slice_count;S++){var k=S*d/this.slice_count,A=(S+1)*d/this.slice_count,B=0;h.forEach(function(N){if(N.begin<A&&N.end>=k){var F=N.getDuration().milliseconds;F?B+=(Math.min(N.end,A)-Math.max(N.begin,k))/F:B+=1}}),m=Math.max(m,B),l.push(B)}if(m){this.paper=new Raphael(this.$[0],this.width,this.height);var M=(this.height-this.margin)/m,j=this.width/this.slice_count,I=this,P=_$1(l).map(function(N){return I.margin+I.height-M*N}).value(),$=_$1(P).reduce(function(N,F,U){return N+(U?"C"+U*j+" "+P[U-1]+" "+U*j+" "+F+" "+(U+.5)*j+" "+F:"M0 "+F+"L"+.5*j+" "+F)},"")+"L"+this.width+" "+P[P.length-1],z=$+"L"+this.width+" "+this.height+"L0 "+this.height;this.paper.path(z).attr({stroke:"none",fill:this.fillColor}),this.paper.path($).attr({fill:"none",stroke:this.lineColor,"stroke-width":this.lineWidth}),this.rectangleProgress=this.paper.rect(0,0,0,this.height).attr({stroke:"none",fill:"#808080",opacity:.3}),this.ligneProgress=this.paper.path("M0 0L0 "+this.height).attr({stroke:"#ff00ff","line-width":2}),this.$.click(function(N){var F=N.pageX-I.$.offset().left;I.media.setCurrentTime(I.media.duration*F/I.width)}),this.onMediaEvent("timeupdate","onTimeupdate")}}onTimeupdate(l){var d=Math.floor(this.width*l/this.media.duration);this.rectangleProgress.attr({width:d}),this.ligneProgress.attr({path:"M"+d+" 0L"+d+" "+this.height})}},Cr(n,"defaults",{lineColor:"#7492b4",fillColor:"#aeaeb8",lineWidth:2,slice_count:20,height:50,margin:5}),n},SpelSyncHtml=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),console.log("Calling IriSP.Widget's constructor from IriSP.HelloWorldWidget")}draw(){this.renderTemplate();var l=this.$.find("iframe")[0],d=this.src.replace(/#.*$/,"");this.getWidgetAnnotations().forEach(function(m){m.on("enter",function(){m.content&&m.content.data&&m.content.data.ref_text&&(l.src=d+"#"+m.content.data.ref_text)})})}},Cr(n,"defaults",{src:"about:blank"}),Cr(n,"template",'<div class="Ldt-SpelSyncHtml"><iframe src="{{src}}" {{#width}}width="{{width}}"{{/width}} {{#height}}height="{{height}}"{{/height}}</div>'),n},tagcloudStyles={},Tagcloud=function(t){var n;return n=class extends t.Widgets.Widget{constructor(d,m){super(d,m);Cr(this,"stopword_lists",{fr:["aussi","avec","aux","bien","car","cette","comme","dans","des","donc","dont","elle","encore","entre","est","être","eux","faire","fait","http","ici","ils","les","leur","leurs","mais","mes","même","mon","notre","non","nos","nous","ont","par","pas","peu","peut","plus","pour","quand","que","qui","quoi","sans","ses","son","sont","sur","tes","très","the","ton","tous","tout","une","votre","vos","vous"],en:["about","again","are","and","because","being","but","can","done","have","for","from","get","here","http","like","more","one","our","she","that","the","their","then","there","they","this","very","what","when","where","who","why","will","with","www","you","your"]});this.stopwords=_$1.uniq([].concat(this.custom_stopwords).concat(this.stopword_lists[this.stopword_language]))}draw(){if(this.segment_annotation_type){var d=this;this.source.getAnnotationsByTypeTitle(this.segment_annotation_type).forEach(function(m){m.on("enter",function(){d.redraw(m.begin,m.end)})})}else this.redraw()}redraw(d,m){var h=/https?:\/\/[0-9a-zA-Z\.%\/-_]+/g,S={},k=this,A=this.getWidgetAnnotations();if(!this.include_titles&&!this.include_descriptions)var B=/[^\.&;,'"!\?\d\(\)\+\[\]\\\…\-«»\/]{3,}/g;else var B=/[^\s\.&;,'"!\?\d\(\)\+\[\]\\\…\-«»:\/]{3,}/g;if(typeof d<"u"&&typeof m<"u"&&(A=A.filter(function(P){return P.begin>=d&&P.end<=m})),this.remove_zero_duration&&(A=A.filter(function(P){return P.getDuration()>0})),A.forEach(function(P){var $=(k.include_titles?P.title:"")+" "+(k.include_descriptions?P.description:"")+" "+(k.include_tag_texts?P.getTagTexts():"");_$1($.toLowerCase().replace(h,"").match(B)).each(function(z){z=z.trim(),_$1(k.stopwords).indexOf(z)==-1&&(!k.exclude_pattern||!k.exclude_pattern.test(z))&&(S[z]=1+(S[z]||0))})}),S=_$1(S).chain().map(function(P,$){return{word:$,count:P}}).filter(function(P){return P.count>k.min_count}).sortBy(function(P){return-P.count}).first(this.tag_count).value(),S&&S.length){var M=S[0].count,j=Math.min(S[S.length-1].count,M-1),I=(this.max_font_size-this.min_font_size)/Math.sqrt(M-j);_$1(S).each(function(P){P.size=Math.floor(k.min_font_size+I*Math.sqrt(P.count-j))})}this.$.html(mustache.render(this.constructor.template,{words:S})),this.$.find(".Ldt-Tagcloud-item").click(function(){var P=jQuery(this).attr("content");k.source.getAnnotations().searchByTags(P)}),this.source.getAnnotations().on("search",this.functionWrapper("onSearch")),this.source.getAnnotations().on("search-cleared",this.functionWrapper("onSearch"))}onSearch(d){if(d=typeof d<"u"?d:"",d)var m=t.Model.regexpFromTextOrArray(d);this.$.find(".Ldt-Tagcloud-item").each(function(){var h=jQuery(this),S=h.attr("content");d?h.html(S.replace(m,'<span class="Ldt-Tagcloud-active">$1</span>')):h.html(S)})}},Cr(n,"template",'<div class="Ldt-Tagcloud-Container"><ul class="Ldt-Tagcloud-List">{{#words}}<li class="Ldt-Tagcloud-item Ldt-TraceMe" trace-info="tag:{{word}}" content="{{word}}" style="font-size: {{size}}px">{{word}}</li>{{/words}}</ul></div>'),Cr(n,"defaults",{include_titles:!0,include_descriptions:!0,include_tag_texts:!0,tag_count:30,stopword_language:"fr",custom_stopwords:[],exclude_pattern:!1,annotation_type:!1,segment_annotation_type:!1,min_font_size:10,max_font_size:26,min_count:2,remove_zero_duration:!1}),n},Title=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){this.renderTemplate()}},Cr(n,"defaults",{media_title:!1}),Cr(n,"template",'<div class="Ldt-TitleWidget"><h2>{{#media_title}}{{media.title}}{{/media_title}}{{^media_title}}{{source.title}}{{/media_title}}</h2></div>'),n},tooltipStyles={},Tooltip=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){const l=this;this.renderTemplate(),this.$.parent().css({position:"relative"}),this.$tooltip=this.$.find(".Ldt-Tooltip"),this.$tip=this.$.find(".Ldt-Tooltip-Tip"),this.$sw=this.$.find(".Ldt-Tooltip-Border-SW"),this.$se=this.$.find(".Ldt-Tooltip-Border-SE"),this.__halfWidth=Math.floor((this.$.find(".Ldt-Tooltip-Main").width()||192)/2),this.__borderWidth=this.$.find(".Ldt-Tooltip-Border-Left").width(),this.__tipDelta=this.__halfWidth-Math.floor(this.$tip.width()/2),this.__maxShift=this.__tipDelta-this.__borderWidth,this.$.mouseover(function(){l.$tooltip.hide()}),this.hide()}show(l,d,m,h){if(typeof h<"u")if(typeof h=="string")this.$.find(".Ldt-Tooltip-Color").html(""),this.$.find(".Ldt-Tooltip-Color").show().css("background-color",h),this.$.find(".Ldt-Tooltip-Color").show().css("height","");else{var S=this.$.find(".Ldt-Tooltip-Color");S.html(""),S.show();for(var k=0;k<h.length;k++)S.append('<div style="float: left; height: 10px; width: 10px; background-color: '+h[k]+'">');this.$.find(".Ldt-Tooltip-Color").css("height",h.length*10+"px")}else this.$.find(".Ldt-Tooltip-Color").hide();this.$.find(".Ldt-Tooltip-Text").html(m),this.$tooltip.show();var A=0;typeof this.min_x<"u"&&l-this.__halfWidth<this.min_x&&(A=Math.max(l-this.__halfWidth-this.min_x,-this.__maxShift)),typeof this.max_x<"u"&&+l+this.__halfWidth>this.max_x&&(A=Math.min(+l+this.__halfWidth-this.max_x,this.__maxShift)),this.$tooltip.css({left:l-A+"px",top:d+"px"}),this.$tip.css({left:this.__tipDelta+A+"px"}),this.$sw.css({width:this.__tipDelta+A-this.__borderWidth+"px"}),this.$se.css({width:this.__tipDelta-A-this.__borderWidth+"px"})}hide(){this.$tooltip.hide()}},Cr(n,"defaults",{}),Cr(n,"template",'<div class="Ldt-Tooltip"><div class="Ldt-Tooltip-Main"><div class="Ldt-Tooltip-Corner-NW"></div><div class="Ldt-Tooltip-Border-Top"></div><div class="Ldt-Tooltip-Corner-NE"></div><div class="Ldt-Tooltip-Border-Left"></div><div class="Ldt-Tooltip-Border-Right"></div><div class="Ldt-Tooltip-Corner-SW"></div><div class="Ldt-Tooltip-Border-SW"></div><div class="Ldt-Tooltip-Tip"></div><div class="Ldt-Tooltip-Border-SE"></div><div class="Ldt-Tooltip-Corner-SE"></div><div class="Ldt-Tooltip-Inner"><div class="Ldt-Tooltip-Color"></div><p class="Ldt-Tooltip-Text"></p></div></div></div>'),n},transcriptStyles={},Transcript=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){var l=this.getWidgetAnnotations(),d=this,m;if(d.renderTemplate(),m=d.$.find(".Ldt-TranscriptWidget"),d.use_vtt_track){var h=d.player.widgets.filter(function(k){return k.type=="HtmlPlayer"});if(h){var S=h[0].$.find("video")[0];S.addEventListener("loadedmetadata",function(){var k=S.textTracks[0],A=k.cues,B=1;Array.prototype.forEach.apply(A,[function(M){M.id="cue"+B;var j=mustache.render(d.annotationTemplate,{id:M.id,content:M.text,begin:1e3*M.startTime,end:1e3*M.endTime});B+=1;var I=jQuery(j);m.append(I)}]),k.addEventListener("cuechange",function(){var M=k.activeCues;M.length>0&&(d.$.find(".Ldt-Transcript-Annotation.active").removeClass("active"),Array.prototype.forEach.apply(M,[function(j){d.$.find("#"+j.id).addClass("active")}]))},!1),m.on("click",".Ldt-Transcript-Annotation",function(){d.media.setCurrentTime(this.dataset.begin)})})}else console.log("cannot find a video object")}else l.forEach(function(k){var A={id:k.id,content:t.textFieldHtml(k.title),begin:k.begin.toString(),end:k.end.toString()},B=mustache.render(d.annotationTemplate,A),M=jQuery(B);m.append(M)})}},Cr(n,"defaults",{annotation_type:"Caption",use_vtt_track:!1}),Cr(n,"template",'<div class="Ldt-TranscriptWidget"></div>'),Cr(n,"annotationTemplate",'<span data-begin="{{ begin }}" data-end="{{ end }}" data-id="{{ id }}" class="Ldt-Transcript-Annotation">{{ content }}</span>  '),n},tweetStyles={},Tweet=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d),this.lastAnnotation=!1}draw(){this.renderTemplate(),this.pinned=this.pin_at_start;var l=this;this.$.find(".Ldt-Tweet-Pin").click(function(){l.pinned=!l.pinned;var d=jQuery(this);l.pinned?(d.addClass("active").attr("title",l.l10n.dont_keep_visible),l.cancelTimeout()):(d.removeClass("active").attr("title",l.l10n.keep_visible),l.hideTimeout())}),this.$.find(".Ldt-Tweet-Close").click(function(){l.hide()}),this.$.hide(),this.getWidgetAnnotations().forEach(function(d){d.on("click",function(){l.show(d)})})}show(l){if(typeof l<"u"&&typeof l.source<"u"){var d=[[/#(\w+)/gm,function(I){return'<a href="http://twitter.com/search?q=%23'+I[1]+'" target="_blank">'},"</a>"]],m=_$1(l.source.entities.urls).sortBy(function(I){return I.indices[0]}),h=0,S="";_$1(m).each(function(I){I.indices[0]>=h&&(S+=l.source.text.substring(h,I.indices[0]),S+=typeof I.expanded_url<"u"&&I.expanded_url!==null?I.expanded_url:I.url,h=I.indices[1])}),S+=l.source.text.substring(h);for(var k=0;k<this.polemics.length;k++){var A=t.Model.regexpFromTextOrArray(this.polemics[k].keywords);d.push([A,'<span style="background: '+this.polemics[k].color+'">',"</span>"])}var A=l.found&&_this.source.getAnnotations().regexp||!1,B=l.source.user?l.source.user.profile_image_url:l.source.profile_image_url,M=l.source.user?l.source.user.screen_name:l.source.from_user,j=l.source.user?l.source.user.name:l.source.from_user_name;this.$.find(".Ldt-Tweet-Avatar").attr("src",B),this.$.find(".Ldt-Tweet-ScreenName").html("@"+M),this.$.find(".Ldt-Tweet-ProfileLink").attr("href","https://twitter.com/"+M),this.$.find(".Ldt-Tweet-FullName").html(j),this.$.find(".Ldt-Tweet-Contents").html(t.textFieldHtml(S,A,d)),this.$.find(".Ldt-Tweet-Time").html(this.l10n.original_time+new Date(l.source.created_at).toLocaleTimeString()+" / "+this.l10n.video_time+l.begin.toString()),this.$.find(".Ldt-Tweet-Retweet").attr("href","https://twitter.com/intent/retweet?tweet_id="+l.source.id_str),this.$.find(".Ldt-Tweet-Reply").attr("href","https://twitter.com/intent/tweet?in_reply_to="+l.source.id_str),this.$.find(".Ldt-Tweet-Original").attr("href","https://twitter.com/"+M+"/status/"+l.source.id_str),this.player.trigger("Annotation.minimize"),this.$.slideDown(),this.cancelTimeout(),this.pinned||this.hideTimeout()}else this.hide()}hide(){this.player.trigger("Annotation.maximize"),this.$.slideUp(),this.cancelTimeout()}cancelTimeout(){typeof this.hide_timer<"u"&&(window.clearTimeout(this.hide_timer),this.hide_timer=void 0)}hideTimeout(){this.cancelTimeout(),this.hide_timer=window.setTimeout(this.functionWrapper("hide"),this.hide_timeout)}},Cr(n,"defaults",{hide_timeout:1e4,polemics:[{keywords:["++"],color:"#30d765"},{keywords:["--"],color:"#f51123"},{keywords:["=="],color:"#f1e24a"},{keywords:["??"],color:"#05aae6"}],annotation_type:"tweet",pin_at_start:!1}),Cr(n,"messages",{fr:{retweet:"Retweeter",reply:"Répondre",keep_visible:"Empêcher la fermeture automatique",dont_keep_visible:"Permettre la fermeture automatique",close_widget:"Fermer l'affichage du tweet",original_time:"Heure d'envoi : ",video_time:"Temps de la vidéo : ",show_original:"Voir l'original"},en:{retweet:"Retweet",reply:"Reply",keep_visible:"Keep visible",dont_keep_visible:"Don't keep visible",close_widget:"Close tweet display",original_time:"Tweet sent at: ",video_time:"Video time: ",show_original:"Show original"}}),Cr(n,"template",'<div class="Ldt-Tweet-Widget"><div class="Ldt-Tweet-Inner"><div class="Ldt-Tweet-PinClose-Buttons"><a href="#" class="Ldt-Tweet-Pin Ldt-TraceMe{{#pin_at_start}} active" title="{{l10n.dont_keep_visible}}{{/pin_at_start}}{{^pin_at_start}}" title="{{l10n.keep_visible}}{{/pin_at_start}}"></a><a href="#" class="Ldt-Tweet-Close Ldt-TraceMe" title="{{l10n.close_widget}}"></a></div><div class="Ldt-Tweet-AvatarContainer"><a href="#" class="Ldt-Tweet-ProfileLink" target="_blank"><img src="" class="Ldt-Tweet-Avatar"/></a></div><h3><a href="#" class="Ldt-Tweet-ProfileLink Ldt-Tweet-ScreenName" target="_blank"></a> (<span class="Ldt-Tweet-FullName"></span>)</h3><p class="Ldt-Tweet-Contents"></p><div class="Ldt-Tweet-Bottom"><span class="Ldt-Tweet-Time"></span><a class="Ldt-Tweet-Original" href="" target="_blank">{{l10n.show_original}}</a><a href="" target="_blank" class="Ldt-Tweet-Retweet"><div class="Ldt-Tweet-Icon"></div>{{l10n.retweet}}</a><a href="" target="_blank" class="Ldt-Tweet-Reply"><div class="Ldt-Tweet-Icon"></div>{{l10n.reply}}</a></div></div></div>'),n},AutoPlayer=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){typeof this.video>"u"&&(this.video=this.media.video);for(var l=["live","provider","autostart","streamer","video","height","width","url_transform"],d={},m=[{regexp:/^rtmp:\/\//,type:"JwpPlayer"},{regexp:/\.(mp4|m4v|mp3)$/,type:"AdaptivePlayer"},{regexp:/\.(ogg|ogv|webm)$/,type:"HtmlPlayer"},{regexp:/^(https?:\/\/)?(www\.)?youtube\.com/,type:"PopcornPlayer"},{regexp:/^(https?:\/\/)?(www\.)?vimeo\.com/,type:"PopcornPlayer"},{regexp:/^(https?:\/\/)?(www\.)?dailymotion\.com/,type:"DailymotionPlayer"}],h=/^rtmp:\/\//,S=0;S<m.length;S++)if(this.video&&m[S].regexp.test(this.video.toLowerCase())){d.type=m[S].type;break}if(typeof d.type>"u"&&(d.type=this.default_type),d.type==="AdaptivePlayer"){var k=document.createElement("video").canPlayType('video/mp4; codecs="avc1.42E01E"');d.type=k!=="no"?"HtmlPlayer":"JwpPlayer"}h.test(this.video)&&(d.provider="rtmp",d.live=!0);for(var S=0;S<l.length;S++)typeof this[l[S]]<"u"&&(d[l[S]]=this[l[S]]);this.insertSubwidget(this.$,d)}},Cr(n,"defaults",{default_type:"HtmlPlayer"}),n},MultiSegments=function(t){var n;return n=class extends t.Widgets.Widget{constructor(l,d){super(l,d)}draw(){var l=this,d=[],m=null,h={},S={};_$1(this).each(function(k,A){/^segments_/.test(A)&&(h[A.replace(/^segments_/,"")]=k),/^annotation_/.test(A)&&(S[A.replace(/^annotation_/,"")]=k)}),this.source.getAnnotationTypes().forEach(function(k){var A=k.getAnnotations().filter(function(j){return j.getDuration()>0&&j.getMedia().id==l.media.id});if(A.length){var B=!1,M={segmentWidget:jQuery("<div>"),annotationWidget:jQuery("<div>"),hasSegmentsNow:function(){var j=l.media.getCurrentTime();return!!A.filter(function(I){return I.begin<=j&&I.end>j}).length},hide:function(){B&&(B=!1,this.annotationWidget.slideUp())},show:function(){B||(B=!0,this.annotationWidget.slideDown())}};M.segmentWidget.addClass("Ldt-MultiSegments-Segment").appendTo(l.$),l.show_all||M.segmentWidget.on("mouseenter",function(){M.hasSegmentsNow()&&(m=M)}),M.annotationWidget.addClass("Ldt-MultiSegments-Annotation").appendTo(l.$).hide(),l.insertSubwidget(M.segmentWidget,_$1({type:"Segments",annotation_type:k,width:"100%"}).extend(h).value()),l.insertSubwidget(M.annotationWidget,_$1({type:"Annotation",annotation_type:k,width:"100%"}).extend(S).value()),d.push(M)}}),jQuery(document).on("click",".Ldt-Segments-Segment",function(k){!l.show_all&&m&&!m.hasSegmentsNow()&&(m=void 0),_$1(d).each(function(A){jQuery(k.target).parent().parent()[0]==A.segmentWidget[0]?(m=A,A.show()):A.hide()})})}},Cr(n,"defaults",{annotation_show_arrow:!0,annotation_start_minimized:!1,annotation_show_annotation_type:!0,show_all:!1}),n};function widgets(t){return{AdaptivePlayer:AdaptivePlayer(t),AutoPlayer:AutoPlayer(t),HelloWorld:HelloWorld(t),Annotation:Annotation(t),AnnotationsController:AnnotationsController(t),AnnotationsList:AnnotationsList(t),Arrow:Arrow(t),Controller:Controller(t),CreateAnnotation:CreateAnnotation(t),CurrentSegmentInfobox:CurrentSegmentInfobox(t),DailymotionPlayer:DailymotionPlayer(t),EnrichedPlan:EnrichedPlan(t),Highlighter:Highlighter(t),HtmlMashupPlayer:HtmlMashupPlayer(t),HtmlPlayer:HtmlPlayer(t),ImageDisplay:ImageDisplay(t),JwpPlayer:JwpPlayerWidget(t),LatestAnnotation:LatestAnnotation(t),MashupPlayer:MashupPlayer(t),Mediafragment:Mediafragment(t),MediaList:MediaList(t),MultiSegments:MultiSegments(t),NoteTaking:NoteTaking(t),PlaceholderPlayer:PlaceholderPlayer(t),Polemic:Polemic(t),PopcornPlayer:PopcornPlayer(t),Quiz:Quiz(t),UniqueChoiceQuestion:UniqueChoiceQuestion(t),MultipleChoiceQuestion:MultipleChoiceQuestion(t),QuizCreator:QuizCreator(t),Segments:Segments(t),Shortcuts:Shortcuts(t),Slice:Slice(t),SlidePreview:SlidePreview(t),Slider:Slider(t),SlideVideoPlayer:SlideVideoPlayer(t),Social:Social(t),Sparkline:Sparkline(t),SpelSyncHtml:SpelSyncHtml(t),Tagcloud:Tagcloud(t),Title:Title(t),Tooltip:Tooltip(t),Transcript:Transcript(t),Tweet:Tweet(t),styles:{annotationStyles,helloWorldStyles,annotationsControllerStyles,annotationsListStyles,controllerStyles,createAnnotationStyles,currentSegmentInfoboxStyles,enrichedPlanStyles,highlighterStyles,imageDisplayStyles,latestAnnotationStyles,mashupPlayerStyles,mediaListStyles,noteTakingStyles,placeholderPlayerStyles,polemicStyles,quizStyles,quizCreatorStyles,segmentsStyles,shortcutsStyles,sliceStyles,slidePreviewStyles,sliderStyles,slideVideoPlayerStyles,socialStyles,tagcloudStyles,tooltipStyles,transcriptStyles,tweetStyles}}}typeof window.IriSP>"u"&&(window.IriSP=IriSP$1),IriSP$1.Model=Model(IriSP$1),IriSP$1.htmlPlayer=htmlPlayer,Object.assign(IriSP$1,utils$r(IriSP$1)),IriSP$1.iFrameUpdater=iFrameUpdater,IriSP$1.serializers=serializers(IriSP$1),Object.assign(IriSP$1,defaults()),metadataplayer(IriSP$1),IriSP$1.Widgets=widgetsBase(IriSP$1),Object.assign(IriSP$1.Widgets,widgets(IriSP$1));const main={IriSP:IriSP$1,style};return main});
//# sourceMappingURL=LdtPlayer-core.js.map
