(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3582],{6414:function(t){"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise(function(r,n){var i;function o(r){t.removeListener(e,s),n(r)}function s(){"function"==typeof t.removeListener&&t.removeListener("error",o),r([].slice.call(arguments))}y(t,e,s,{once:!0}),"error"!==e&&(i={once:!0},"function"==typeof t.on&&y(t,"error",o,i))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function l(t,e,r,n){if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,console&&console.warn&&console.warn(l)}return t}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function h(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):d(i,i.length)}function f(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(t,e){for(var r=Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else if("function"==typeof t.addEventListener)t.addEventListener(e,function i(o){n.once&&t.removeEventListener(e,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)n(u,this,e);else for(var l=u.length,c=d(u,l),r=0;r<l;++r)n(c[r],this,e);return!0},o.prototype.addListener=function(t,e){return l(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return l(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,p(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,p(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,s;if(a(e),void 0===(n=this._events)||void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},45459:function(t,e,r){var n=r(32608);"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//"),({189:function(){!function(t,e){"use strict";if(!t.setImmediate){var r,i,o,s,a,u=1,l={},c=!1,p=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);(h=h&&h.setTimeout?h:t,"[object process]"===({}).toString.call(t.process))?a=function(t){n.nextTick(function(){d(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?(r="setImmediate$"+Math.random()+"$",i=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&d(+e.data.slice(r.length))},t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),a=function(e){t.postMessage(r+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){d(t.data)},a=function(t){o.port2.postMessage(t)}):p&&"onreadystatechange"in p.createElement("script")?(s=p.documentElement,a=function(t){var e=p.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,s.removeChild(e),e=null},s.appendChild(e)}):a=function(t){setTimeout(d,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=Function(""+t));for(var e=Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return l[u]=n,a(u),u++},h.clearImmediate=f}function f(t){delete l[t]}function d(t){if(c)setTimeout(d,0,t);else{var r=l[t];if(r){c=!0;try{!function(t){var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(e,n)}}(r)}finally{f(t),c=!1}}}}}("undefined"==typeof self?void 0===r.g?this:r.g:self)}})[189](),t.exports={}},67493:function(t,e,r){var n=r(32608);!function(){var e={782:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},646:function(t){"use strict";let e={};function r(t,r,n){n||(n=Error);class i extends n{constructor(t,e,n){super("string"==typeof r?r:r(t,e,n))}}i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(!Array.isArray(t))return`of ${e} ${String(t)}`;{let r=t.length;return(t=t.map(t=>String(t)),r>2)?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:2===r?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,r){var i,o,s,a;let u,l;if("string"==typeof e&&(i="not ",e.substr(0,i.length)===i)?(u="must not be",e=e.replace(/^not /,"")):u="must be",o=" argument",(void 0===s||s>t.length)&&(s=t.length),t.substring(s-o.length,s)===o)l=`The ${t} ${u} ${n(e,"type")}`;else{let r=("number"!=typeof a&&(a=0),a+1>t.length||-1===t.indexOf(".",a))?"argument":"property";l=`The "${t}" ${r} ${u} ${n(e,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},403:function(t,e,r){"use strict";var i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var o=r(709),s=r(337);r(782)(c,o);for(var a=i(s.prototype),u=0;u<a.length;u++){var l=a[u];c.prototype[l]||(c.prototype[l]=s.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),s.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||n.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},889:function(t,e,r){"use strict";t.exports=i;var n=r(170);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(782)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},709:function(t,e,i){"use strict";t.exports=S,S.ReadableState=A,i(361).EventEmitter;var o,s,a,u,l,c=function(t,e){return t.listeners(e).length},p=i(678),h=i(300).Buffer,f=r.g.Uint8Array||function(){},d=i(837);s=d&&d.debuglog?d.debuglog("stream"):function(){};var y=i(379),g=i(25),m=i(776).getHighWaterMark,b=i(646).q,v=b.ERR_INVALID_ARG_TYPE,w=b.ERR_STREAM_PUSH_AFTER_EOF,E=b.ERR_METHOD_NOT_IMPLEMENTED,_=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(S,p);var T=g.errorOrDestroy,O=["error","close","destroy","pause","resume"];function A(t,e,r){o=o||i(403),t=t||{},"boolean"!=typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",r),this.buffer=new y,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=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=i(704).s),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function S(t){if(o=o||i(403),!(this instanceof S))return new S(t);var e=this instanceof o;this._readableState=new A(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),p.call(this)}function I(t,e,r,n,i){s("readableAddChunk",e);var o,a,u,l,c,p=t._readableState;if(null===e)p.reading=!1,function(t,e){if(s("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?D(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,x(t)))}}(t,p);else{if(i||(o=p,a=e,h.isBuffer(a)||a instanceof f||"string"==typeof a||void 0===a||o.objectMode||(u=new v("chunk",["string","Buffer","Uint8Array"],a)),c=u),c)T(t,c);else if(p.objectMode||e&&e.length>0){if("string"==typeof e||p.objectMode||Object.getPrototypeOf(e)===h.prototype||(l=e,e=h.from(l)),n)p.endEmitted?T(t,new _):N(t,p,e,!0);else if(p.ended)T(t,new w);else{if(p.destroyed)return!1;p.reading=!1,p.decoder&&!r?(e=p.decoder.write(e),p.objectMode||0!==e.length?N(t,p,e,!1):k(t,p)):N(t,p,e,!1)}}else n||(p.reading=!1,k(t,p))}return!p.ended&&(p.length<p.highWaterMark||0===p.length)}function N(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&D(t)),k(t,e)}function P(t,e){if(t<=0||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var r;e.highWaterMark=((r=t)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function D(t){var e=t._readableState;s("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(s("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(x,t))}function x(t){var e=t._readableState;s("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,F(t)}function k(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(s("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function C(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){s("readable nexttick read 0"),t.read(0)}function R(t,e){s("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),F(t),e.flowing&&!e.reading&&t.read(0)}function F(t){var e=t._readableState;for(s("flow",e.flowing);e.flowing&&null!==t.read(););}function M(t,e){var r;return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r)}function L(t){var e=t._readableState;s("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(U,e,t))}function U(t,e){if(s("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function B(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return -1}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=g.destroy,S.prototype._undestroy=g.undestroy,S.prototype._destroy=function(t,e){e(t)},S.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=h.from(t,e),e=""),r=!0),I(this,t,e,!1,r)},S.prototype.unshift=function(t){return I(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){a||(a=i(704).s);var e=new a(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},S.prototype.read=function(t){s("read",t),t=parseInt(t,10);var e,r=this._readableState,n=t;if(0!==t&&(r.emittedReadable=!1),0===t&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return s("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?L(this):D(this),null;if(0===(t=P(t,r))&&r.ended)return 0===r.length&&L(this),null;var i=r.needReadable;return s("need readable",i),(0===r.length||r.length-t<r.highWaterMark)&&s("length less than watermark",i=!0),r.ended||r.reading?s("reading or ended",i=!1):i&&(s("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(t=P(n,r))),null===(e=t>0?M(t,r):null)?(r.needReadable=r.length<=r.highWaterMark,t=0):(r.length-=t,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==t&&r.ended&&L(this)),null!==e&&this.emit("data",e),e},S.prototype._read=function(t){T(this,new E("_read()"))},S.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,s("pipe count=%d opts=%j",i.pipesCount,e);var o=e&&!1===e.end||t===n.stdout||t===n.stderr?y:a;function a(){s("onend"),t.end()}i.endEmitted?n.nextTick(o):r.once("end",o),t.on("unpipe",function e(n,o){s("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,s("cleanup"),t.removeListener("close",f),t.removeListener("finish",d),t.removeListener("drain",u),t.removeListener("error",h),t.removeListener("unpipe",e),r.removeListener("end",a),r.removeListener("end",y),r.removeListener("data",p),l=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u())});var u=function(){var t=r._readableState;s("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(r,"data")&&(t.flowing=!0,F(r))};t.on("drain",u);var l=!1;function p(e){s("ondata");var n=t.write(e);s("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==B(i.pipes,t))&&!l&&(s("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(e){s("onerror",e),y(),t.removeListener("error",h),0===c(t,"error")&&T(t,e)}function f(){t.removeListener("finish",d),y()}function d(){s("onfinish"),t.removeListener("close",f),y()}function y(){s("unpipe"),r.unpipe(t)}return r.on("data",p),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",f),t.once("finish",d),t.emit("pipe",r),i.flowing||(s("pipe resume"),r.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=B(e.pipes,t);return -1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},S.prototype.on=function(t,e){var r=p.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==t||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,s("on readable",i.length,i.reading),i.length?D(this):i.reading||n.nextTick(z,this)),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var r=p.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(C,this),r},S.prototype.removeAllListeners=function(t){var e=p.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&n.nextTick(C,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(s("resume"),t.flowing=!t.readableListening,t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(R,this,t))),t.paused=!1,this},S.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",function(){if(s("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){s("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<O.length;o++)t.on(O[o],this.emit.bind(this,O[o]));return this._read=function(e){s("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=i(871)),u(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=M,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return void 0===l&&(l=i(727)),l(S,t,e)})},170:function(t,e,r){"use strict";t.exports=c;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function l(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);u.call(this,t),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",p)}function p(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(e,r){h(t,e,r)})}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}r(782)(c,u),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){r(new i("_transform()"))},c.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,function(t){e(t)})}},337:function(t,e,i){"use strict";function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){(function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(void 0),n=n.next}e.corkedRequestsFree.next=t})(e,t)}}t.exports=S,S.WritableState=A;var s,a,u={deprecate:i(769)},l=i(678),c=i(300).Buffer,p=r.g.Uint8Array||function(){},h=i(25),f=i(776).getHighWaterMark,d=i(646).q,y=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,v=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,E=d.ERR_STREAM_WRITE_AFTER_END,_=d.ERR_UNKNOWN_ENCODING,T=h.errorOrDestroy;function O(){}function A(t,e,r){s=s||i(403),t=t||{},"boolean"!=typeof r&&(r=e instanceof s),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){(function(t,e){var r=t._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new m;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e)--r.pendingcb,i?(n.nextTick(o,e),n.nextTick(k,t,r),t._writableState.errorEmitted=!0,T(t,e)):(o(e),t._writableState.errorEmitted=!0,T(t,e),k(t,r));else{var s=D(r)||t.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||P(t,r),i?n.nextTick(N,t,r,s,o):N(t,r,s,o)}})(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function S(t){var e=this instanceof(s=s||i(403));if(!e&&!a.call(S,this))return new S(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function I(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function N(t,e,r,n){r||0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain")),e.pendingcb--,n(),k(t,e)}function P(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=Array(e.bufferedRequestCount),i=e.corkedRequestsFree;i.entry=r;for(var s=0,a=!0;r;)n[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;n.allBuffers=a,I(t,e,!0,e.length,n,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,c=r.callback,p=e.objectMode?1:u.length;if(I(t,e,!1,p,u,l,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function D(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(r){e.pendingcb--,r&&T(t,r),e.prefinished=!0,t.emit("prefinish"),k(t,e)})}function k(t,e){var r=D(e);if(r&&(e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,n.nextTick(x,t,e))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return r}i(782)(S,l),A.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===S&&t&&t._writableState instanceof A}})):a=function(t){return t instanceof this},S.prototype.pipe=function(){T(this,new b)},S.prototype.write=function(t,e,r){var i,o,s,a,u,l,h,f=this._writableState,d=!1,g=!f.objectMode&&(i=t,c.isBuffer(i)||i instanceof p);return g&&!c.isBuffer(t)&&(o=t,t=c.from(o)),("function"==typeof e&&(r=e,e=null),g?e="buffer":e||(e=f.defaultEncoding),"function"!=typeof r&&(r=O),f.ending)?(s=r,T(this,a=new E),n.nextTick(s,a)):(g||(u=t,l=r,null===u?h=new w:"string"==typeof u||f.objectMode||(h=new y("chunk",["string","Buffer"],u)),!h||(T(this,h),n.nextTick(l,h),0)))&&(f.pendingcb++,d=function(t,e,r,n,i,o){if(!r){var s,a,u=(s=n,a=i,e.objectMode||!1===e.decodeStrings||"string"!=typeof s||(s=c.from(s,a)),s);n!==u&&(r=!0,i="buffer",n=u)}var l=e.objectMode?1:n.length;e.length+=l;var p=e.length<e.highWaterMark;if(p||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else I(t,e,!1,l,n,i,o);return p}(this,f,g,t,e,r)),d},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;!t.corked||(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||P(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,r){r(new g("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,r){var i,o=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=r,o.ending=!0,k(this,o),i&&(o.finished?n.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=h.destroy,S.prototype._undestroy=h.undestroy,S.prototype._destroy=function(t,e){e(t)}},871:function(t,e,r){"use strict";function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o,s=r(698),a=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),p=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function d(t,e){return{value:t,done:e}}function y(t){var e=t[a];if(null!==e){var r=t[f].read();null!==r&&(t[p]=null,t[a]=null,t[u]=null,e(d(r,!1)))}}function g(t){n.nextTick(y,t)}var m=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[f]},next:function(){var t,e,r=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[c])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise(function(t,e){n.nextTick(function(){r[l]?e(r[l]):t(d(void 0,!0))})});var o=this[p];if(o)e=new Promise((t=this,function(e,r){o.then(function(){if(t[c]){e(d(void 0,!0));return}t[h](e,r)},r)}));else{var s=this[f].read();if(null!==s)return Promise.resolve(d(s,!1));e=new Promise(this[h])}return this[p]=e,e}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var t=this;return new Promise(function(e,r){t[f].destroy(null,function(t){if(t){r(t);return}e(d(void 0,!0))})})}),o),m);t.exports=function(t){var e,r=Object.create(b,(i(e={},f,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var n=r[f].read();n?(r[p]=null,r[a]=null,r[u]=null,t(d(n,!1))):(r[a]=t,r[u]=e)},writable:!0}),e));return r[p]=null,s(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];null!==e&&(r[p]=null,r[a]=null,r[u]=null,e(t)),r[l]=t;return}var n=r[a];null!==n&&(r[p]=null,r[a]=null,r[u]=null,n(d(void 0,!0))),r[c]=!0}),t.on("readable",g.bind(null,r)),r}},379:function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var i=r(300).Buffer,o=r(837).inspect,s=o&&o.custom||"inspect";t.exports=function(){var t;function e(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return t=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return i.alloc(0);for(var e,r,n=i.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=s,i.prototype.copy.call(e,n,r),s+=o.data.length,o=o.next;return n}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=i.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(s));break}++n}return this.length-=n,e}},{key:s,value:function(t,e){return o(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},e,{depth:0,customInspect:!1}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(e.prototype,t),e}()},25:function(t){"use strict";function e(t,e){i(t,e),r(t)}function r(t){(!t._writableState||t._writableState.emitClose)&&(!t._readableState||t._readableState.emitClose)&&t.emit("close")}function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?n.nextTick(r,s):(s._writableState.errorEmitted=!0,n.nextTick(e,s,t)):n.nextTick(e,s,t):o?(n.nextTick(r,s),o(t)):n.nextTick(r,s)})),this},undestroy:function(){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)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},698:function(t,e,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),s=o||i,a=!1,o=function(){if(!a){a=!0;for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];s.apply(this,e)}};var s,a,u=r.readable||!1!==r.readable&&e.readable,l=r.writable||!1!==r.writable&&e.writable,c=function(){e.writable||h()},p=e._writableState&&e._writableState.finished,h=function(){l=!1,p=!0,u||o.call(e)},f=e._readableState&&e._readableState.endEmitted,d=function(){u=!1,f=!0,l||o.call(e)},y=function(t){o.call(e,t)},g=function(){var t;return u&&!f?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):l&&!p?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},m=function(){e.req.on("finish",h)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",h),e.on("abort",g),e.req?m():e.on("request",m)):l&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",d),e.on("finish",h),!1!==r.error&&e.on("error",y),e.on("close",g),function(){e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",m),e.req&&e.req.removeListener("finish",h),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",h),e.removeListener("end",d),e.removeListener("error",y),e.removeListener("close",g)}}},727:function(t,e,r){"use strict";function n(t,e,r,n,i,o,s){try{var a=t[o](s),u=a.value}catch(t){r(t);return}a.done?e(u):Promise.resolve(u).then(n,i)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var o=r(646).q.ERR_INVALID_ARG_TYPE;t.exports=function(t,e,r){if(e&&"function"==typeof e.next)s=e;else if(e&&e[Symbol.asyncIterator])s=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])s=e[Symbol.iterator]();else throw new o("iterable",["Iterable"],e);var s,a=new t(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({objectMode:!0},r)),u=!1;function l(){return c.apply(this,arguments)}function c(){var t;return t=function*(){try{var t=yield s.next(),e=t.value;t.done?a.push(null):a.push((yield e))?l():u=!1}catch(t){a.destroy(t)}},(c=function(){var e=this,r=arguments;return new Promise(function(i,o){var s=t.apply(e,r);function a(t){n(s,i,o,a,u,"next",t)}function u(t){n(s,i,o,a,u,"throw",t)}a(void 0)})}).apply(this,arguments)}return a._read=function(){u||(u=!0,l())},a}},442:function(t,e,r){"use strict";var n,i=r(646).q,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function u(t){t()}function l(t,e){return t.pipe(e)}t.exports=function(){for(var t,e,i=arguments.length,c=Array(i),p=0;p<i;p++)c[p]=arguments[p];var h=(t=c).length&&"function"==typeof t[t.length-1]?t.pop():a;if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new o("streams");var f=c.map(function(t,i){var o,a,l,p,d,y,g=i<c.length-1;return o=i>0,l=a=function(t){e||(e=t),t&&f.forEach(u),g||(f.forEach(u),h(e))},p=!1,a=function(){p||(p=!0,l.apply(void 0,arguments))},d=!1,t.on("close",function(){d=!0}),void 0===n&&(n=r(698)),n(t,{readable:g,writable:o},function(t){if(t)return a(t);d=!0,a()}),y=!1,function(e){if(!d&&!y){if(y=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();a(e||new s("pipe"))}}});return c.reduce(l)}},776:function(t,e,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=null!=e.highWaterMark?e.highWaterMark:i?e[r]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},678:function(t,e,r){t.exports=r(781)},55:function(t,e,r){var n=r(300),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return n.SlowBuffer(t)}},173:function(t,e,r){t.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",l),t.on("error",l),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},704:function(t,e,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(t){switch((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 o(t){var e;switch(this.encoding=function(t){var e=function(t){var e;if(!t)return"utf8";for(;;)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(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=c,this.end=p,e=3;break;default:this.write=h,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}(this,t,0);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){var e,r;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.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}},769:function(t){t.exports=function(t,r){if(e("noDeprecation"))return t;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return t.apply(this,arguments)}};function e(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}},300:function(t){"use strict";t.exports=r(38003)},361:function(t){"use strict";t.exports=r(6414)},781:function(t){"use strict";t.exports=r(6414).EventEmitter},837:function(t){"use strict";t.exports=r(94718)}},i={};function o(t){var r=i[t];if(void 0!==r)return r.exports;var n=i[t]={exports:{}},s=!0;try{e[t](n,n.exports,o),s=!1}finally{s&&delete i[t]}return n.exports}o.ab="//";var s=o(173);t.exports=s}()},5131:function(t,e,r){!function(){var e={845:function(t,e,n){var i=void 0!==r.g&&r.g||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function s(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new s(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new s(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(505),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==r.g&&r.g.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==r.g&&r.g.clearImmediate||this&&this.clearImmediate},505:function(t){"use strict";t.exports=r(45459)}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}},s=!0;try{e[t].call(o.exports,o,o.exports,i),s=!1}finally{s&&delete n[t]}return o.exports}i.ab="//";var o=i(845);t.exports=o}()},94718:function(t,e,r){var n=r(38003).Buffer,i=r(32608);!function(){var e={992:function(t){t.exports=function(t,r,n){if(t.filter)return t.filter(r,n);if(null==t||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<t.length;o++)if(e.call(t,o)){var s=t[o];r.call(n,s,o,t)&&i.push(s)}return i};var e=Object.prototype.hasOwnProperty},256:function(t,e,r){"use strict";var n=r(925),i=r(139),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},139:function(t,e,r){"use strict";var n=r(174),i=r(925),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(s,o),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(t){var e=a(n,s,arguments);return u&&l&&u(e,"length").configurable&&l(e,"length",{value:1+c(0,t.length-(arguments.length-1))}),e};var p=function(){return a(n,o,arguments)};l?l(t.exports,"apply",{value:p}):t.exports.apply=p},144:function(t){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(t,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var s=0;s<o;s++)n.call(i,t[s],s,t);else for(var a in t)e.call(t,a)&&n.call(i,t[a],a,t)}},426:function(t){"use strict";var e=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(t){var n,i=this;if("function"!=typeof i||"[object Function]"!==r.call(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o=e.call(arguments,1),s=Math.max(0,i.length-o.length),a=[],u=0;u<s;u++)a.push("$"+u);if(n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof n))return i.apply(t,o.concat(e.call(arguments)));var r=i.apply(this,o.concat(e.call(arguments)));return Object(r)===r?r:this}),i.prototype){var l=function(){};l.prototype=i.prototype,n.prototype=new l,l.prototype=null}return n}},174:function(t,e,r){"use strict";var n=r(426);t.exports=Function.prototype.bind||n},500:function(t,e,r){"use strict";var n,i=SyntaxError,o=Function,s=TypeError,a=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var l=function(){throw new s},c=u?function(){try{return arguments.callee,l}catch(t){try{return u(arguments,"callee").get}catch(t){return l}}}():l,p=r(115)(),h=Object.getPrototypeOf||function(t){return t.__proto__},f={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?h(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":d,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=h(i.prototype))}return y[e]=r,r},m={"%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"]},b=r(174),v=r(101),w=b.call(Function.call,Array.prototype.concat),E=b.call(Function.apply,Array.prototype.splice),_=b.call(Function.call,String.prototype.replace),T=b.call(Function.call,String.prototype.slice),O=b.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,I=function(t){var e=T(t,0,1),r=T(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return _(t,A,function(t,e,r,i){n[n.length]=r?_(i,S,"$1"):e||t}),n},N=function(t,e){var r,n=t;if(v(m,n)&&(n="%"+(r=m[n])[0]+"%"),v(y,n)){var o=y[n];if(o===f&&(o=g(n)),void 0===o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/g,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=I(t),n=r.length>0?r[0]:"",o=N("%"+n+"%",e),a=o.name,l=o.value,c=!1,p=o.alias;p&&(n=p[0],E(r,w([0,1],p)));for(var h=1,f=!0;h<r.length;h+=1){var d=r[h],g=T(d,0,1),m=T(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new i("property names with quotes must have matching quotes");if("constructor"!==d&&f||(c=!0),n+="."+d,v(y,a="%"+n+"%"))l=y[a];else if(null!=l){if(!(d in l)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var b=u(l,d);l=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:l[d]}else f=v(l,d),l=l[d];f&&!c&&(y[a]=l)}}return l}},925:function(t,e,r){"use strict";var n,i=SyntaxError,o=Function,s=TypeError,a=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var l=function(){throw new s},c=u?function(){try{return arguments.callee,l}catch(t){try{return u(arguments,"callee").get}catch(t){return l}}}():l,p=r(115)(),h=r(504)(),f=Object.getPrototypeOf||(h?function(t){return t.__proto__}:null),d={},y="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(t){var m=f(f(t));g["%Error.prototype%"]=m}var b=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&f&&(r=f(i.prototype))}return g[e]=r,r},v={"%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"]},w=r(174),E=r(101),_=w.call(Function.call,Array.prototype.concat),T=w.call(Function.apply,Array.prototype.splice),O=w.call(Function.call,String.prototype.replace),A=w.call(Function.call,String.prototype.slice),S=w.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,P=function(t){var e=A(t,0,1),r=A(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return O(t,I,function(t,e,r,i){n[n.length]=r?O(i,N,"$1"):e||t}),n},D=function(t,e){var r,n=t;if(E(v,n)&&(n="%"+(r=v[n])[0]+"%"),E(g,n)){var o=g[n];if(o===d&&(o=b(n)),void 0===o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=P(t),n=r.length>0?r[0]:"",o=D("%"+n+"%",e),a=o.name,l=o.value,c=!1,p=o.alias;p&&(n=p[0],T(r,_([0,1],p)));for(var h=1,f=!0;h<r.length;h+=1){var d=r[h],y=A(d,0,1),m=A(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new i("property names with quotes must have matching quotes");if("constructor"!==d&&f||(c=!0),n+="."+d,E(g,a="%"+n+"%"))l=g[a];else if(null!=l){if(!(d in l)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var b=u(l,d);l=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:l[d]}else f=E(l,d),l=l[d];f&&!c&&(g[a]=l)}}return l}},504:function(t){"use strict";var e={foo:{}},r=Object;t.exports=function(){return({__proto__:e}).foo===e.foo&&!(({__proto__:null})instanceof r)}},942:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},115:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},101:function(t,e,r){"use strict";var n=r(174);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},157:function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(t){return(!e||!t||"object"!=typeof t||!(Symbol.toStringTag in t))&&"[object Arguments]"===r.call(t)},i=function(t){return!!n(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==r.call(t)&&"[object Function]"===r.call(t.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,t.exports=o?n:i},391:function(t){"use strict";var e=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(t){}}(),a=s?o(s):{};t.exports=function(t){return"function"==typeof t&&(!!n.test(r.call(t))||(i?o(t)===a:"[object GeneratorFunction]"===e.call(t)))}},994:function(t,e,n){"use strict";var i=n(144),o=n(349),s=n(256),a=s("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,l=o(),c=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return -1},p=s("String.prototype.slice"),h={},f=n(24),d=Object.getPrototypeOf;u&&f&&d&&i(l,function(t){var e=new r.g[t];if(!(Symbol.toStringTag in e))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=d(e),i=f(n,Symbol.toStringTag);i||(i=f(d(n),Symbol.toStringTag)),h[t]=i.get});var y=function(t){var e=!1;return i(h,function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}}),e};t.exports=function(t){return!!t&&"object"==typeof t&&(u?!!f&&y(t):c(l,p(a(t),8,-1))>-1)}},369:function(t){t.exports=function(t){return t instanceof n}},584:function(t,e,r){"use strict";var n=r(157),i=r(391),o=r(490),s=r(994);function a(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,c=a(Object.prototype.toString),p=a(Number.prototype.valueOf),h=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(u)var d=a(BigInt.prototype.valueOf);if(l)var y=a(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===c(t)}function b(t){return"[object Set]"===c(t)}function v(t){return"[object WeakMap]"===c(t)}function w(t){return"[object WeakSet]"===c(t)}function E(t){return"[object ArrayBuffer]"===c(t)}function _(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function T(t){return"[object DataView]"===c(t)}function O(t){return"undefined"!=typeof DataView&&(T.working?T(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(b.working?b(t):t instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(v.working?v(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=_,T.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&T(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function S(t){return"[object SharedArrayBuffer]"===c(t)}function I(t){return void 0!==A&&(void 0===S.working&&(S.working=S(new A)),S.working?S(t):t instanceof A)}function N(t){return g(t,p)}function P(t){return g(t,h)}function D(t){return g(t,f)}function x(t){return u&&g(t,d)}function k(t){return l&&g(t,y)}e.isSharedArrayBuffer=I,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=N,e.isStringObject=P,e.isBooleanObject=D,e.isBigIntObject=x,e.isSymbolObject=k,e.isBoxedPrimitive=function(t){return N(t)||P(t)||D(t)||x(t)||k(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(_(t)||I(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+" is not supported in userland")}})})},177:function(t,e,r){var n=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(l(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,i=n.length,s=String(t).replace(o,function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),a=n[r];r<i;a=n[++r])m(a)||!_(a)?s+=" "+a:s+=" "+l(a);return s},e.deprecate=function(t,r){if(void 0!==i&&!0===i.noDeprecation)return t;if(void 0===i)return function(){return e.deprecate(t,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(i.throwDeprecation)throw Error(r);i.traceDeprecation?console.trace(r):console.error(r),n=!0}return t.apply(this,arguments)}};var s={},a=/^$/;if(i.env.NODE_DEBUG){var u=i.env.NODE_DEBUG;a=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function l(t,r){var n={seen:[],stylize:p};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),h(n,t,n.depth)}function c(t,e){var r=l.styles[e];return r?"\x1b["+l.colors[r][0]+"m"+t+"\x1b["+l.colors[r][1]+"m":t}function p(t,e){return t}function h(t,r,n){if(t.customInspect&&r&&A(r.inspect)&&r.inspect!==e.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,s,a,u,l=r.inspect(n,t);return v(l)||(l=h(t,l,n)),l}var c=function(t,e){if(w(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return b(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,r);if(c)return c;var p=Object.keys(r),_=(a={},p.forEach(function(t,e){a[t]=!0}),a);if(t.showHidden&&(p=Object.getOwnPropertyNames(r)),O(r)&&(p.indexOf("message")>=0||p.indexOf("description")>=0))return f(r);if(0===p.length){if(A(r)){var S=r.name?": "+r.name:"";return t.stylize("[Function"+S+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return t.stylize(Date.prototype.toString.call(r),"date");if(O(r))return f(r)}var I="",N=!1,D=["{","}"];return(y(r)&&(N=!0,D=["[","]"]),A(r)&&(I=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(I=" "+RegExp.prototype.toString.call(r)),T(r)&&(I=" "+Date.prototype.toUTCString.call(r)),O(r)&&(I=" "+f(r)),0!==p.length||N&&0!=r.length)?n<0?E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=N?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)P(e,String(s))?o.push(d(t,e,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(d(t,e,r,n,i,!0))}),o}(t,r,n,_,p):p.map(function(e){return d(t,r,n,_,e,N)}),t.seen.pop(),i=I,o=D,s=0,u.reduce(function(t,e){return s++,e.indexOf("\n")>=0&&s++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===i?"":i+"\n ")+" "+u.join(",\n  ")+" "+o[1]:o[0]+i+" "+u.join(", ")+" "+o[1]):D[0]+I+D[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),P(n,i)||(s="["+i+"]"),!a&&(0>t.seen.indexOf(u.value)?(a=m(r)?h(t,u.value,null):h(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return"   "+t}).join("\n")):a=t.stylize("[Circular]","special")),w(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function y(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function m(t){return null===t}function b(t){return"number"==typeof t}function v(t){return"string"==typeof t}function w(t){return void 0===t}function E(t){return _(t)&&"[object RegExp]"===S(t)}function _(t){return"object"==typeof t&&null!==t}function T(t){return _(t)&&"[object Date]"===S(t)}function O(t){return _(t)&&("[object Error]"===S(t)||t instanceof Error)}function A(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function I(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(!s[t=t.toUpperCase()]){if(a.test(t)){var r=i.pid;s[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else s[t]=function(){}}return s[t]},e.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(584),e.isArray=y,e.isBoolean=g,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=w,e.isRegExp=E,e.types.isRegExp=E,e.isObject=_,e.isDate=T,e.types.isDate=T,e.isError=O,e.types.isNativeError=O,e.isFunction=A,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(369);var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[I((t=new Date).getHours()),I(t.getMinutes()),I(t.getSeconds())].join(":"),[t.getDate(),N[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(782),e._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(t,e){if(!t){var r=Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');if(D&&t[D]){var e=t[D];if("function"!=typeof e)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,D,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise(function(t,n){e=t,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(t,n){t?r(t):e(n)});try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),D&&Object.defineProperty(e,D,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,n(t))},e.promisify.custom=D,e.callbackify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var n=e.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var o=this,s=function(){return n.apply(o,arguments)};t.apply(this,e).then(function(t){i.nextTick(s.bind(null,null,t))},function(t){i.nextTick(x.bind(null,t,s))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,n(t)),e}},490:function(t,e,n){"use strict";var i=n(144),o=n(349),s=n(256),a=s("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,l=o(),c=s("String.prototype.slice"),p={},h=n(24),f=Object.getPrototypeOf;u&&h&&f&&i(l,function(t){if("function"==typeof r.g[t]){var e=new r.g[t];if(!(Symbol.toStringTag in e))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=f(e),i=h(n,Symbol.toStringTag);i||(i=h(f(n),Symbol.toStringTag)),p[t]=i.get}});var d=function(t){var e=!1;return i(p,function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}}),e},y=n(994);t.exports=function(t){return!!y(t)&&(u?d(t):c(a(t),8,-1))}},349:function(t,e,n){"use strict";var i=n(992);t.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(t){return"function"==typeof r.g[t]})}},24:function(t,e,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n}},o={};function s(t){var r=o[t];if(void 0!==r)return r.exports;var n=o[t]={exports:{}},i=!0;try{e[t](n,n.exports,s),i=!1}finally{i&&delete o[t]}return n.exports}s.ab="//";var a=s(177);t.exports=a}()},8089:function(t,e,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=r(38003),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return n.SlowBuffer(t)}},55845:function(t,e,r){var n=r(38003).Buffer;!function(t){t.parser=function(t,e){return new u(t,e)},t.SAXParser=u,t.SAXStream=c,t.createStream=function(t,e){return new c(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,i,o,s,a=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function u(e,r){if(!(this instanceof u))return new u(e,r);(function(t){for(var e=0,r=a.length;e<r;e++)t[a[e]]=""})(this),this.q=this.c="",this.bufferCheckPosition=t.MAX_BUFFER_LENGTH,this.opt=r||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!e,this.noscript=!!(e||this.opt.noscript),this.state=E.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(f)),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),T(this,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}),u.prototype={end:function(){N(this)},write:function(e){if(this.error)throw this.error;if(this.closed)return I(this,"Cannot write after close. Assign an onready handler.");if(null===e)return N(this);"object"==typeof e&&(e=e.toString());for(var r=0,n="";n=R(e,r++),this.c=n,n;)switch(this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++),this.state){case E.BEGIN:if(this.state=E.BEGIN_WHITESPACE,"\uFEFF"===n)continue;z(this,n);continue;case E.BEGIN_WHITESPACE:z(this,n);continue;case E.TEXT:if(this.sawRoot&&!this.closedRoot){for(var i=r-1;n&&"<"!==n&&"&"!==n;)(n=R(e,r++))&&this.trackPosition&&(this.position++,"\n"===n?(this.line++,this.column=0):this.column++);this.textNode+=e.substring(i,r-1)}"<"!==n||this.sawRoot&&this.closedRoot&&!this.strict?(b(n)||this.sawRoot&&!this.closedRoot||P(this,"Text data outside of root node."),"&"===n?this.state=E.TEXT_ENTITY:this.textNode+=n):(this.state=E.OPEN_WAKA,this.startTagPosition=this.position);continue;case E.SCRIPT:"<"===n?this.state=E.SCRIPT_ENDING:this.script+=n;continue;case E.SCRIPT_ENDING:"/"===n?this.state=E.CLOSE_TAG:(this.script+="<"+n,this.state=E.SCRIPT);continue;case E.OPEN_WAKA:"!"===n?(this.state=E.SGML_DECL,this.sgmlDecl=""):b(n)||(w(d,n)?(this.state=E.OPEN_TAG,this.tagName=n):"/"===n?(this.state=E.CLOSE_TAG,this.tagName=""):"?"===n?(this.state=E.PROC_INST,this.procInstName=this.procInstBody=""):(P(this,"Unencoded <"),this.startTagPosition+1<this.position&&(n=Array(this.position-this.startTagPosition).join(" ")+n),this.textNode+="<"+n,this.state=E.TEXT));continue;case E.SGML_DECL:"[CDATA["===(this.sgmlDecl+n).toUpperCase()?(O(this,"onopencdata"),this.state=E.CDATA,this.sgmlDecl="",this.cdata=""):this.sgmlDecl+n==="--"?(this.state=E.COMMENT,this.comment="",this.sgmlDecl=""):"DOCTYPE"===(this.sgmlDecl+n).toUpperCase()?(this.state=E.DOCTYPE,(this.doctype||this.sawRoot)&&P(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===n?(O(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=E.TEXT):(v(n)&&(this.state=E.SGML_DECL_QUOTED),this.sgmlDecl+=n);continue;case E.SGML_DECL_QUOTED:n===this.q&&(this.state=E.SGML_DECL,this.q=""),this.sgmlDecl+=n;continue;case E.DOCTYPE:">"===n?(this.state=E.TEXT,O(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=n,"["===n?this.state=E.DOCTYPE_DTD:v(n)&&(this.state=E.DOCTYPE_QUOTED,this.q=n));continue;case E.DOCTYPE_QUOTED:this.doctype+=n,n===this.q&&(this.q="",this.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:this.doctype+=n,"]"===n?this.state=E.DOCTYPE:v(n)&&(this.state=E.DOCTYPE_DTD_QUOTED,this.q=n);continue;case E.DOCTYPE_DTD_QUOTED:this.doctype+=n,n===this.q&&(this.state=E.DOCTYPE_DTD,this.q="");continue;case E.COMMENT:"-"===n?this.state=E.COMMENT_ENDING:this.comment+=n;continue;case E.COMMENT_ENDING:"-"===n?(this.state=E.COMMENT_ENDED,this.comment=S(this.opt,this.comment),this.comment&&O(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+n,this.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==n?(P(this,"Malformed comment"),this.comment+="--"+n,this.state=E.COMMENT):this.state=E.TEXT;continue;case E.CDATA:"]"===n?this.state=E.CDATA_ENDING:this.cdata+=n;continue;case E.CDATA_ENDING:"]"===n?this.state=E.CDATA_ENDING_2:(this.cdata+="]"+n,this.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===n?(this.cdata&&O(this,"oncdata",this.cdata),O(this,"onclosecdata"),this.cdata="",this.state=E.TEXT):"]"===n?this.cdata+="]":(this.cdata+="]]"+n,this.state=E.CDATA);continue;case E.PROC_INST:"?"===n?this.state=E.PROC_INST_ENDING:b(n)?this.state=E.PROC_INST_BODY:this.procInstName+=n;continue;case E.PROC_INST_BODY:!this.procInstBody&&b(n)||("?"===n?this.state=E.PROC_INST_ENDING:this.procInstBody+=n);continue;case E.PROC_INST_ENDING:">"===n?(O(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=E.TEXT):(this.procInstBody+="?"+n,this.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:w(y,n)?this.tagName+=n:(function(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0,O(t,"onopentagstart",r)}(this),">"===n?k(this):"/"===n?this.state=E.OPEN_TAG_SLASH:(b(n)||P(this,"Invalid character in tag name"),this.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===n?(k(this,!0),j(this)):(P(this,"Forward-slash in opening tag not followed by >"),this.state=E.ATTRIB);continue;case E.ATTRIB:b(n)||(">"===n?k(this):"/"===n?this.state=E.OPEN_TAG_SLASH:w(d,n)?(this.attribName=n,this.attribValue="",this.state=E.ATTRIB_NAME):P(this,"Invalid attribute name"));continue;case E.ATTRIB_NAME:"="===n?this.state=E.ATTRIB_VALUE:">"===n?(P(this,"Attribute without value"),this.attribValue=this.attribName,x(this),k(this)):b(n)?this.state=E.ATTRIB_NAME_SAW_WHITE:w(y,n)?this.attribName+=n:P(this,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:"="===n?this.state=E.ATTRIB_VALUE:b(n)||(P(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",O(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===n?k(this):w(d,n)?(this.attribName=n,this.state=E.ATTRIB_NAME):(P(this,"Invalid attribute name"),this.state=E.ATTRIB));continue;case E.ATTRIB_VALUE:b(n)||(v(n)?(this.q=n,this.state=E.ATTRIB_VALUE_QUOTED):(P(this,"Unquoted attribute value"),this.state=E.ATTRIB_VALUE_UNQUOTED,this.attribValue=n));continue;case E.ATTRIB_VALUE_QUOTED:if(n!==this.q){"&"===n?this.state=E.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=n;continue}x(this),this.q="",this.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:b(n)?this.state=E.ATTRIB:">"===n?k(this):"/"===n?this.state=E.OPEN_TAG_SLASH:w(d,n)?(P(this,"No whitespace between attributes"),this.attribName=n,this.attribValue="",this.state=E.ATTRIB_NAME):P(this,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!(">"===(o=n)||b(o))){"&"===n?this.state=E.ATTRIB_VALUE_ENTITY_U:this.attribValue+=n;continue}x(this),">"===n?k(this):this.state=E.ATTRIB;continue;case E.CLOSE_TAG:this.tagName?">"===n?j(this):w(y,n)?this.tagName+=n:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=E.SCRIPT):(b(n)||P(this,"Invalid tagname in closing tag"),this.state=E.CLOSE_TAG_SAW_WHITE):b(n)||(w(d,n)?this.tagName=n:this.script?(this.script+="</"+n,this.state=E.SCRIPT):P(this,"Invalid tagname in closing tag."));continue;case E.CLOSE_TAG_SAW_WHITE:if(b(n))continue;">"===n?j(this):P(this,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:switch(this.state){case E.TEXT_ENTITY:s=E.TEXT,u="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:s=E.ATTRIB_VALUE_QUOTED,u="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:s=E.ATTRIB_VALUE_UNQUOTED,u="attribValue"}if(";"===n){if(this.opt.unparsedEntities){var o,s,u,l=C(this);this.entity="",this.state=s,this.write(l)}else this[u]+=C(this),this.entity="",this.state=s}else w(this.entity.length?m:g,n)?this.entity+=n:(P(this,"Invalid character in entity name"),this[u]+="&"+this.entity+n,this.entity="",this.state=s);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),n=0,i=0,o=a.length;i<o;i++){var s=e[a[i]].length;if(s>r)switch(a[i]){case"textNode":A(e);break;case"cdata":O(e,"oncdata",e.cdata),e.cdata="";break;case"script":O(e,"onscript",e.script),e.script="";break;default:I(e,"Max buffer length exceeded: "+a[i])}n=Math.max(n,s)}var u=t.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=u+e.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this),""!==this.cdata&&(O(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(O(this,"onscript",this.script),this.script="")}};try{s=r(67493).Stream}catch(t){s=function(){}}s||(s=function(){});var l=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function c(t,e){if(!(this instanceof c))return new c(t,e);s.apply(this),this._parser=new u(t,e),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,l.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(s.prototype,{constructor:{value:c}}),c.prototype.write=function(t){if("function"==typeof n&&"function"==typeof n.isBuffer&&n.isBuffer(t)){if(!this._decoder){var e=r(7758).s;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},c.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},c.prototype.on=function(t,e){var r=this;return r._parser["on"+t]||-1===l.indexOf(t)||(r._parser["on"+t]=function(){var e=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),s.prototype.on.call(r,t,e)};var p="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/2000/xmlns/",f={xml:p,xmlns:h},d=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(t){return" "===t||"\n"===t||"\r"===t||"	"===t}function v(t){return'"'===t||"'"===t}function w(t,e){return t.test(e)}var E=0;for(var _ in t.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var r=t.ENTITIES[e],n="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n}),t.STATE)t.STATE[t.STATE[_]]=_;function T(t,e,r){t[e]&&t[e](r)}function O(t,e,r){t.textNode&&A(t),T(t,e,r)}function A(t){t.textNode=S(t.opt,t.textNode),t.textNode&&T(t,"ontext",t.textNode),t.textNode=""}function S(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function I(t,e){return A(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=Error(e),t.error=e,T(t,"onerror",e),t}function N(t){return t.sawRoot&&!t.closedRoot&&P(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&I(t,"Unexpected end"),A(t),t.c="",t.closed=!0,T(t,"onend"),u.call(t,t.strict,t.opt),t}function P(t,e){if("object"!=typeof t||!(t instanceof u))throw Error("bad call to strictFail");t.strict&&I(t,e)}function D(t,e){var r=0>t.indexOf(":")?["",t]:t.split(":"),n=r[0],i=r[1];return e&&"xmlns"===t&&(n="xmlns",i=""),{prefix:n,local:i}}function x(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName)){t.attribName=t.attribValue="";return}if(t.opt.xmlns){var e=D(t.attribName,!0),r=e.prefix,n=e.local;if("xmlns"===r){if("xml"===n&&t.attribValue!==p)P(t,"xml: prefix must be bound to "+p+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==h)P(t,"xmlns: prefix must be bound to "+h+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=t.attribValue}}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,O(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function k(t,e){if(t.opt.xmlns){var r=t.tag,n=D(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(P(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach(function(e){O(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var o=0,s=t.attribList.length;o<s;o++){var a=t.attribList[o],u=a[0],l=a[1],c=D(u,!0),p=c.prefix,h=c.local,f=""===p?"":r.ns[p]||"",d={name:u,value:l,prefix:p,local:h,uri:f};p&&"xmlns"!==p&&!f&&(P(t,"Unbound namespace prefix: "+JSON.stringify(p)),d.uri=p),t.tag.attributes[u]=d,O(t,"onattribute",d)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),O(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=E.TEXT:t.state=E.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function j(t){if(!t.tagName){P(t,"Weird empty close tag."),t.textNode+="</>",t.state=E.TEXT;return}if(t.script){if("script"!==t.tagName){t.script+="</"+t.tagName+">",t.tagName="",t.state=E.SCRIPT;return}O(t,"onscript",t.script),t.script=""}var e=t.tags.length,r=t.tagName;t.strict||(r=r[t.looseCase]());for(var n=r;e--;)if(t.tags[e].name!==n)P(t,"Unexpected close tag");else break;if(e<0){P(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",t.state=E.TEXT;return}t.tagName=r;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,O(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach(function(e){var r=o.ns[e];O(t,"onclosenamespace",{prefix:e,uri:r})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function C(t){var e,r=t.entity,n=r.toLowerCase(),i="";return t.ENTITIES[r]?t.ENTITIES[r]:t.ENTITIES[n]?t.ENTITIES[n]:("#"===(r=n).charAt(0)&&(i="x"===r.charAt(1)?(e=parseInt(r=r.slice(2),16)).toString(16):(e=parseInt(r=r.slice(1),10)).toString(10)),r=r.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==r)?(P(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e)}function z(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):b(e)||(P(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function R(t,e){var r="";return e<t.length&&(r=t.charAt(e)),r}E=t.STATE,String.fromCodePoint||(e=String.fromCharCode,i=Math.floor,o=function(){var t,r,n=[],o=-1,s=arguments.length;if(!s)return"";for(var a="";++o<s;){var u=Number(arguments[o]);if(!isFinite(u)||u<0||u>1114111||i(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?n.push(u):(u-=65536,t=(u>>10)+55296,r=u%1024+56320,n.push(t,r)),(o+1===s||n.length>16384)&&(a+=e.apply(null,n),n.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:o,configurable:!0,writable:!0}):String.fromCodePoint=o)}(e)},88818:function(t){function e(t,e){if((t=t.replace(/\s+/g,""))===(e=e.replace(/\s+/g,"")))return 1;if(t.length<2||e.length<2)return 0;let r=new Map;for(let e=0;e<t.length-1;e++){let n=t.substring(e,e+2),i=r.has(n)?r.get(n)+1:1;r.set(n,i)}let n=0;for(let t=0;t<e.length-1;t++){let i=e.substring(t,t+2),o=r.has(i)?r.get(i):0;o>0&&(r.set(i,o-1),n++)}return 2*n/(t.length+e.length-2)}t.exports={compareTwoStrings:e,findBestMatch:function(t,r){if("string"!=typeof t||!Array.isArray(r)||!r.length||r.find(function(t){return"string"!=typeof t}))throw Error("Bad arguments: First argument should be a string, second should be an array of strings");let n=[],i=0;for(let o=0;o<r.length;o++){let s=r[o],a=e(t,s);n.push({target:s,rating:a}),a>n[i].rating&&(i=o)}let o=n[i];return{ratings:n,bestMatch:o,bestMatchIndex:i}}}},7758:function(t,e,r){"use strict";var n=r(8089).Buffer,i=n.isEncoding||function(t){switch((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 o(t){var e;switch(this.encoding=function(t){var e=function(t){var e;if(!t)return"utf8";for(;;)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(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=c,this.end=p,e=3;break;default:this.write=h,this.end=f;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}(this,t,0);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){var e,r;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.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}},97765:function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\uFEFF"===t[0]?t.substring(1):t}}).call(this)},7708:function(t,e,r){(function(){"use strict";var t,n,i,o,s,a={}.hasOwnProperty;t=r(48793),n=r(26259).defaults,o=function(t){return"string"==typeof t&&(t.indexOf("&")>=0||t.indexOf(">")>=0||t.indexOf("<")>=0)},s=function(t){return"<![CDATA["+i(t)+"]]>"},i=function(t){return t.replace("]]>","]]]]><![CDATA[>")},e.Builder=function(){function e(t){var e,r,i;for(e in this.options={},r=n["0.2"])a.call(r,e)&&(i=r[e],this.options[e]=i);for(e in t)a.call(t,e)&&(i=t[e],this.options[e]=i)}return e.prototype.buildObject=function(e){var r,i,u,l,c,p;return r=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===n["0.2"].rootName?(c=Object.keys(e)[0],e=e[c]):c=this.options.rootName,p=this,u=function(t,e){var n,l,c,h,f,d;if("object"!=typeof e)p.options.cdata&&o(e)?t.raw(s(e)):t.txt(e);else if(Array.isArray(e)){for(h in e)if(a.call(e,h))for(f in l=e[h])c=l[f],t=u(t.ele(f),c).up()}else for(f in e)if(a.call(e,f)){if(l=e[f],f===r){if("object"==typeof l)for(n in l)d=l[n],t=t.att(n,d)}else if(f===i)t=p.options.cdata&&o(l)?t.raw(s(l)):t.txt(l);else if(Array.isArray(l))for(h in l)a.call(l,h)&&(t="string"==typeof(c=l[h])?p.options.cdata&&o(c)?t.ele(f).raw(s(c)).up():t.ele(f,c).up():u(t.ele(f),c).up());else"object"==typeof l?t=u(t.ele(f),l).up():"string"==typeof l&&p.options.cdata&&o(l)?t=t.ele(f).raw(s(l)).up():(null==l&&(l=""),t=t.ele(f,l.toString()).up())}return t},l=t.create(c,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),u(l,e).end(this.options.renderOpts)},e}()}).call(this)},26259:function(t,e){(function(){e.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:"  ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},67076:function(t,e,r){(function(){"use strict";var t,n,i,o,s,a,u,l,c,p=function(t,e){return function(){return t.apply(e,arguments)}},h=function(t,e){for(var r in e)f.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},f={}.hasOwnProperty;l=r(55845),o=r(6414),t=r(97765),u=r(91250),c=r(5131).setImmediate,n=r(26259).defaults,s=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},a=function(t,e,r){var n,i;for(n=0,i=t.length;n<i;n++)e=(0,t[n])(e,r);return e},i=function(t,e,r){var n;return(n=Object.create(null)).value=r,n.writable=!0,n.enumerable=!0,n.configurable=!0,Object.defineProperty(t,e,n)},e.Parser=function(r){function o(t){var r,i,o;if(this.parseStringPromise=p(this.parseStringPromise,this),this.parseString=p(this.parseString,this),this.reset=p(this.reset,this),this.assignOrPush=p(this.assignOrPush,this),this.processAsync=p(this.processAsync,this),!(this instanceof e.Parser))return new e.Parser(t);for(r in this.options={},i=n["0.2"])f.call(i,r)&&(o=i[r],this.options[r]=o);for(r in t)f.call(t,r)&&(o=t[r],this.options[r]=o);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(u.normalize)),this.reset()}return h(o,r),o.prototype.processAsync=function(){var t;try{if(this.remaining.length<=this.options.chunkSize)return t=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(t),this.saxParser.close();return t=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(t),c(this.processAsync)}catch(t){if(!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(t)}},o.prototype.assignOrPush=function(t,e,r){return e in t?(t[e]instanceof Array||i(t,e,[t[e]]),t[e].push(r)):this.options.explicitArray?i(t,e,[r]):i(t,e,r)},o.prototype.reset=function(){var t,e,r,n,o,u,c,p,h;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(o=this,function(t){if(o.saxParser.resume(),!o.saxParser.errThrown)return o.saxParser.errThrown=!0,o.emit("error",t)}),this.saxParser.onend=(u=this,function(){if(!u.saxParser.ended)return u.saxParser.ended=!0,u.emit("end",u.resultObject)}),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,n=[],t=this.options.attrkey,e=this.options.charkey,this.saxParser.onopentag=(c=this,function(r){var o,s,u,l,p;if((u={})[e]="",!c.options.ignoreAttrs)for(o in p=r.attributes)f.call(p,o)&&(t in u||c.options.mergeAttrs||(u[t]={}),s=c.options.attrValueProcessors?a(c.options.attrValueProcessors,r.attributes[o],o):r.attributes[o],l=c.options.attrNameProcessors?a(c.options.attrNameProcessors,o):o,c.options.mergeAttrs?c.assignOrPush(u,l,s):i(u[t],l,s));return u["#name"]=c.options.tagNameProcessors?a(c.options.tagNameProcessors,r.name):r.name,c.options.xmlns&&(u[c.options.xmlnskey]={uri:r.uri,local:r.local}),n.push(u)}),this.saxParser.onclosetag=(p=this,function(){var t,r,o,u,l,c,h,d,y,g;if(l=(c=n.pop())["#name"],p.options.explicitChildren&&p.options.preserveChildrenOrder||delete c["#name"],!0===c.cdata&&(t=c.cdata,delete c.cdata),y=n[n.length-1],c[e].match(/^\s*$/)&&!t?(r=c[e],delete c[e]):(p.options.trim&&(c[e]=c[e].trim()),p.options.normalize&&(c[e]=c[e].replace(/\s{2,}/g," ").trim()),c[e]=p.options.valueProcessors?a(p.options.valueProcessors,c[e],l):c[e],1===Object.keys(c).length&&e in c&&!p.EXPLICIT_CHARKEY&&(c=c[e])),s(c)&&(c="function"==typeof p.options.emptyTag?p.options.emptyTag():""!==p.options.emptyTag?p.options.emptyTag:r),null!=p.options.validator&&(g="/"+(function(){var t,e,r;for(t=0,r=[],e=n.length;t<e;t++)u=n[t],r.push(u["#name"]);return r})().concat(l).join("/"),function(){try{c=p.options.validator(g,y&&y[l],c)}catch(t){return p.emit("error",t)}}()),p.options.explicitChildren&&!p.options.mergeAttrs&&"object"==typeof c){if(p.options.preserveChildrenOrder){if(y){for(o in y[p.options.childkey]=y[p.options.childkey]||[],h={},c)f.call(c,o)&&i(h,o,c[o]);y[p.options.childkey].push(h),delete c["#name"],1===Object.keys(c).length&&e in c&&!p.EXPLICIT_CHARKEY&&(c=c[e])}}else u={},p.options.attrkey in c&&(u[p.options.attrkey]=c[p.options.attrkey],delete c[p.options.attrkey]),!p.options.charsAsChildren&&p.options.charkey in c&&(u[p.options.charkey]=c[p.options.charkey],delete c[p.options.charkey]),Object.getOwnPropertyNames(c).length>0&&(u[p.options.childkey]=c),c=u}return n.length>0?p.assignOrPush(y,l,c):(p.options.explicitRoot&&(d=c,i(c={},l,d)),p.resultObject=c,p.saxParser.ended=!0,p.emit("end",p.resultObject))}),h=this,r=function(t){var r,i;if(i=n[n.length-1])return i[e]+=t,h.options.explicitChildren&&h.options.preserveChildrenOrder&&h.options.charsAsChildren&&(h.options.includeWhiteChars||""!==t.replace(/\\n/g,"").trim())&&(i[h.options.childkey]=i[h.options.childkey]||[],(r={"#name":"__text__"})[e]=t,h.options.normalize&&(r[e]=r[e].replace(/\s{2,}/g," ").trim()),i[h.options.childkey].push(r)),i},this.saxParser.ontext=r,this.saxParser.oncdata=function(t){var e;if(e=r(t))return e.cdata=!0}},o.prototype.parseString=function(e,r){null!=r&&"function"==typeof r&&(this.on("end",function(t){return this.reset(),r(null,t)}),this.on("error",function(t){return this.reset(),r(t)}));try{if(e=e.toString(),""===e.trim())return this.emit("end",null),!0;if(e=t.stripBOM(e),this.options.async)return this.remaining=e,c(this.processAsync),this.saxParser;return this.saxParser.write(e).close()}catch(t){if(!(this.saxParser.errThrown||this.saxParser.ended))return this.emit("error",t),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw t}},o.prototype.parseStringPromise=function(t){var e;return new Promise((e=this,function(r,n){return e.parseString(t,function(t,e){return t?n(t):r(e)})}))},o}(o),e.parseString=function(t,r,n){var i,o;return null!=n?("function"==typeof n&&(i=n),"object"==typeof r&&(o=r)):("function"==typeof r&&(i=r),o={}),new e.Parser(o).parseString(t,i)},e.parseStringPromise=function(t,r){var n;return"object"==typeof r&&(n=r),new e.Parser(n).parseStringPromise(t)}}).call(this)},91250:function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},6780:function(t,e,r){(function(){"use strict";var t,n,i,o,s=function(t,e){for(var r in e)a.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},a={}.hasOwnProperty;n=r(26259),t=r(7708),i=r(67076),o=r(91250),e.defaults=n.defaults,e.processors=o,e.ValidationError=function(t){function e(t){this.message=t}return s(e,t),e}(Error),e.Builder=t.Builder,e.Parser=i.Parser,e.parseString=i.parseString,e.parseStringPromise=i.parseStringPromise}).call(this)},65038:function(t){(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},20001:function(t){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},77167:function(t){(function(){var e,r,n,i,o,s,a,u=[].slice,l={}.hasOwnProperty;e=function(){var t,e,r,n,i,s;if(s=arguments[0],i=2<=arguments.length?u.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(t=0,r=i.length;t<r;t++)if(null!=(n=i[t]))for(e in n)l.call(n,e)&&(s[e]=n[e]);return s},o=function(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)},s=function(t){var e;return!!t&&("function"==(e=typeof t)||"object"===e)},n=function(t){return o(Array.isArray)?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},i=function(t){var e;if(n(t))return!t.length;for(e in t)if(l.call(t,e))return!1;return!0},a=function(t){var e,r;return s(t)&&(r=Object.getPrototypeOf(t))&&(e=r.constructor)&&"function"==typeof e&&e instanceof e&&Function.prototype.toString.call(e)===Function.prototype.toString.call(Object)},r=function(t){return o(t.valueOf)?t.valueOf():t},t.exports.assign=e,t.exports.isFunction=o,t.exports.isObject=s,t.exports.isArray=n,t.exports.isEmpty=i,t.exports.isPlainObject=a,t.exports.getValue=r}).call(this)},52258:function(t){(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},9697:function(t,e,r){(function(){var e;e=r(20001),r(13734),t.exports=function(){function t(t,r,n){if(this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==r)throw Error("Missing attribute name. "+this.debugInfo(r));this.name=this.stringify.name(r),this.value=this.stringify.attValue(n),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(t.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(t.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(t.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"specified",{get:function(){return!0}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.attribute(this,this.options.writer.filterOptions(t))},t.prototype.debugInfo=function(t){return null==(t=t||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},t.prototype.isEqualNode=function(t){return t.namespaceURI===this.namespaceURI&&t.prefix===this.prefix&&t.localName===this.localName&&t.value===this.value},t}()}).call(this)},45539:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;e=r(20001),n=r(38909),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=e.CData,this.value=this.stringify.cdata(n)}return i(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},38909:function(t,e,r){(function(){var e,n=function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e=r(13734),t.exports=function(t){function e(t){e.__super__.constructor.call(this,t),this.value=""}return n(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.substringData=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.appendData=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.insertData=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.deleteData=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.replaceData=function(t,e,r){throw Error("This DOM method is not implemented."+this.debugInfo())},e.prototype.isEqualNode=function(t){return!!e.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.data===this.data},e}(e)}).call(this)},51592:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;e=r(20001),n=r(38909),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=e.Comment,this.value=this.stringify.comment(n)}return i(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},46347:function(t,e,r){(function(){var e,n;e=r(73629),n=r(32050),t.exports=function(){function t(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(t.prototype,"parameterNames",{get:function(){return new n(Object.keys(this.defaultParams))}}),t.prototype.getParameter=function(t){return this.params.hasOwnProperty(t)?this.params[t]:null},t.prototype.canSetParameter=function(t,e){return!0},t.prototype.setParameter=function(t,e){return null!=e?this.params[t]=e:delete this.params[t]},t}()}).call(this)},73629:function(t){(function(){t.exports=function(){function t(){}return t.prototype.handleError=function(t){throw Error(t)},t}()}).call(this)},75985:function(t){(function(){t.exports=function(){function t(){}return t.prototype.hasFeature=function(t,e){return!0},t.prototype.createDocumentType=function(t,e,r){throw Error("This DOM method is not implemented.")},t.prototype.createDocument=function(t,e,r){throw Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(t){throw Error("This DOM method is not implemented.")},t.prototype.getFeature=function(t,e){throw Error("This DOM method is not implemented.")},t}()}).call(this)},32050:function(t){(function(){t.exports=function(){function t(t){this.arr=t||[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(t){return this.arr[t]||null},t.prototype.contains=function(t){return -1!==this.arr.indexOf(t)},t}()}).call(this)},62107:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=r(13734),e=r(20001),t.exports=function(t){function r(t,n,i,o,s,a){if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw Error("Missing DTD attribute name. "+this.debugInfo(n));if(!o)throw Error("Missing DTD attribute type. "+this.debugInfo(n));if(!s)throw Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==s.indexOf("#")&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(a&&!s.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(o),a&&(this.defaultValue=this.stringify.dtdAttDefault(a)),this.defaultValueType=s}return i(r,t),r.prototype.toString=function(t){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},36328:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=r(13734),e=r(20001),t.exports=function(t){function r(t,n,i){if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(n),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return i(r,t),r.prototype.toString=function(t){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},14195:function(t,e,r){(function(){var e,n,i,o=function(t,e){for(var r in e)s.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;i=r(77167).isObject,n=r(13734),e=r(20001),t.exports=function(t){function r(t,n,o,s){if(r.__super__.constructor.call(this,t),null==o)throw Error("Missing DTD entity name. "+this.debugInfo(o));if(null==s)throw Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!n,this.name=this.stringify.name(o),this.type=e.EntityDeclaration,i(s)){if(!s.pubID&&!s.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(s.pubID&&!s.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,null!=s.pubID&&(this.pubID=this.stringify.dtdPubID(s.pubID)),null!=s.sysID&&(this.sysID=this.stringify.dtdSysID(s.sysID)),null!=s.nData&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}else this.value=this.stringify.dtdEntityValue(s),this.internal=!0}return o(r,t),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return null}}),r.prototype.toString=function(t){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},33086:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=r(13734),e=r(20001),t.exports=function(t){function r(t,n,i){if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing DTD notation name. "+this.debugInfo(n));if(!i.pubID&&!i.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=e.NotationDeclaration,null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return i(r,t),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),r.prototype.toString=function(t){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},73966:function(t,e,r){(function(){var e,n,i,o=function(t,e){for(var r in e)s.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;i=r(77167).isObject,n=r(13734),e=r(20001),t.exports=function(t){function r(t,n,o,s){var a;r.__super__.constructor.call(this,t),i(n)&&(n=(a=n).version,o=a.encoding,s=a.standalone),n||(n="1.0"),this.type=e.Declaration,this.version=this.stringify.xmlVersion(n),null!=o&&(this.encoding=this.stringify.xmlEncoding(o)),null!=s&&(this.standalone=this.stringify.xmlStandalone(s))}return o(r,t),r.prototype.toString=function(t){return this.options.writer.declaration(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},35631:function(t,e,r){(function(){var e,n,i,o,s,a,u,l,c=function(t,e){for(var r in e)p.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty;l=r(77167).isObject,u=r(13734),e=r(20001),n=r(62107),o=r(14195),i=r(36328),s=r(33086),a=r(83418),t.exports=function(t){function r(t,n,i){var o,s,a,u,c,p;if(r.__super__.constructor.call(this,t),this.type=e.DocType,t.children){for(s=0,a=(u=t.children).length;s<a;s++)if((o=u[s]).type===e.Element){this.name=o.name;break}}this.documentObject=t,l(n)&&(n=(c=n).pubID,i=c.sysID),null==i&&(i=(p=[n,i])[0],n=p[1]),null!=n&&(this.pubID=this.stringify.dtdPubID(n)),null!=i&&(this.sysID=this.stringify.dtdSysID(i))}return c(r,t),Object.defineProperty(r.prototype,"entities",{get:function(){var t,r,n,i,o;for(r=0,i={},n=(o=this.children).length;r<n;r++)(t=o[r]).type!==e.EntityDeclaration||t.pe||(i[t.name]=t);return new a(i)}}),Object.defineProperty(r.prototype,"notations",{get:function(){var t,r,n,i,o;for(r=0,i={},n=(o=this.children).length;r<n;r++)(t=o[r]).type===e.NotationDeclaration&&(i[t.name]=t);return new a(i)}}),Object.defineProperty(r.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(r.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(r.prototype,"internalSubset",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),r.prototype.element=function(t,e){var r;return r=new i(this,t,e),this.children.push(r),this},r.prototype.attList=function(t,e,r,i,o){var s;return s=new n(this,t,e,r,i,o),this.children.push(s),this},r.prototype.entity=function(t,e){var r;return r=new o(this,!1,t,e),this.children.push(r),this},r.prototype.pEntity=function(t,e){var r;return r=new o(this,!0,t,e),this.children.push(r),this},r.prototype.notation=function(t,e){var r;return r=new s(this,t,e),this.children.push(r),this},r.prototype.toString=function(t){return this.options.writer.docType(this,this.options.writer.filterOptions(t))},r.prototype.ele=function(t,e){return this.element(t,e)},r.prototype.att=function(t,e,r,n,i){return this.attList(t,e,r,n,i)},r.prototype.ent=function(t,e){return this.entity(t,e)},r.prototype.pent=function(t,e){return this.pEntity(t,e)},r.prototype.not=function(t,e){return this.notation(t,e)},r.prototype.up=function(){return this.root()||this.documentObject},r.prototype.isEqualNode=function(t){return!!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.name===this.name&&t.publicId===this.publicId&&t.systemId===this.systemId},r}(u)}).call(this)},50219:function(t,e,r){(function(){var e,n,i,o,s,a,u,l=function(t,e){for(var r in e)c.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},c={}.hasOwnProperty;u=r(77167).isPlainObject,i=r(75985),n=r(46347),o=r(13734),e=r(20001),a=r(43232),s=r(30495),t.exports=function(t){function r(t){r.__super__.constructor.call(this,null),this.name="#document",this.type=e.Document,this.documentURI=null,this.domConfig=new n,t||(t={}),t.writer||(t.writer=new s),this.options=t,this.stringify=new a(t)}return l(r,t),Object.defineProperty(r.prototype,"implementation",{value:new i}),Object.defineProperty(r.prototype,"doctype",{get:function(){var t,r,n,i;for(r=0,n=(i=this.children).length;r<n;r++)if((t=i[r]).type===e.DocType)return t;return null}}),Object.defineProperty(r.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(r.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(r.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(r.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===e.Declaration?this.children[0].encoding:null}}),Object.defineProperty(r.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===e.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(r.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===e.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(r.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(r.prototype,"origin",{get:function(){return null}}),Object.defineProperty(r.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(r.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(r.prototype,"contentType",{get:function(){return null}}),r.prototype.end=function(t){var e;return e={},t?u(t)&&(e=t,t=this.options.writer):t=this.options.writer,t.document(this,t.filterOptions(e))},r.prototype.toString=function(t){return this.options.writer.document(this,this.options.writer.filterOptions(t))},r.prototype.createElement=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createDocumentFragment=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createTextNode=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createComment=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createCDATASection=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createProcessingInstruction=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createAttribute=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createEntityReference=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.importNode=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createElementNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createAttributeNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementById=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.adoptNode=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.normalizeDocument=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.renameNode=function(t,e,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByClassName=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createEvent=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createRange=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createNodeIterator=function(t,e,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.createTreeWalker=function(t,e,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r}(o)}).call(this)},65110:function(t,e,r){(function(){var e,n,i,o,s,a,u,l,c,p,h,f,d,y,g,m,b,v,w,E,_,T,O,A={}.hasOwnProperty;_=(O=r(77167)).isObject,E=O.isFunction,T=O.isPlainObject,w=O.getValue,e=r(20001),f=r(50219),d=r(71834),o=r(45539),s=r(51592),g=r(26992),v=r(39784),y=r(61948),p=r(73966),h=r(35631),a=r(62107),l=r(14195),u=r(36328),c=r(33086),i=r(9697),b=r(43232),m=r(30495),n=r(52258),t.exports=function(){function t(t,r,n){var i;this.name="?xml",this.type=e.Document,t||(t={}),i={},t.writer?T(t.writer)&&(i=t.writer,t.writer=new m):t.writer=new m,this.options=t,this.writer=t.writer,this.writerOptions=this.writer.filterOptions(i),this.stringify=new b(t),this.onDataCallback=r||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return t.prototype.createChildNode=function(t){var r,n,i,o,s,a,u,l;switch(t.type){case e.CData:this.cdata(t.value);break;case e.Comment:this.comment(t.value);break;case e.Element:for(n in i={},u=t.attribs)A.call(u,n)&&(r=u[n],i[n]=r.value);this.node(t.name,i);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(t.value);break;case e.Text:this.text(t.value);break;case e.ProcessingInstruction:this.instruction(t.target,t.value);break;default:throw Error("This XML node type is not supported in a JS object: "+t.constructor.name)}for(s=0,a=(l=t.children).length;s<a;s++)o=l[s],this.createChildNode(o),o.type===e.Element&&this.up();return this},t.prototype.dummy=function(){return this},t.prototype.node=function(t,e,r){var n;if(null==t)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(t));return this.openCurrent(),t=w(t),null==e&&(e={}),_(e=w(e))||(r=(n=[e,r])[0],e=n[1]),this.currentNode=new d(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=r&&this.text(r),this},t.prototype.element=function(t,r,n){var i,o,s,a,u,l;if(this.currentNode&&this.currentNode.type===e.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(t)||_(t)||E(t))for(a=this.options.noValidation,this.options.noValidation=!0,(l=new f(this.options).element("TEMP_ROOT")).element(t),this.options.noValidation=a,o=0,s=(u=l.children).length;o<s;o++)i=u[o],this.createChildNode(i),i.type===e.Element&&this.up();else this.node(t,r,n);return this},t.prototype.attribute=function(t,e){var r,n;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(t));if(null!=t&&(t=w(t)),_(t))for(r in t)A.call(t,r)&&(n=t[r],this.attribute(r,n));else E(e)&&(e=e.apply()),this.options.keepNullAttributes&&null==e?this.currentNode.attribs[t]=new i(this,t,""):null!=e&&(this.currentNode.attribs[t]=new i(this,t,e));return this},t.prototype.text=function(t){var e;return this.openCurrent(),e=new v(this,t),this.onData(this.writer.text(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.cdata=function(t){var e;return this.openCurrent(),e=new o(this,t),this.onData(this.writer.cdata(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.comment=function(t){var e;return this.openCurrent(),e=new s(this,t),this.onData(this.writer.comment(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.raw=function(t){var e;return this.openCurrent(),e=new g(this,t),this.onData(this.writer.raw(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.instruction=function(t,e){var r,n,i,o,s;if(this.openCurrent(),null!=t&&(t=w(t)),null!=e&&(e=w(e)),Array.isArray(t))for(r=0,o=t.length;r<o;r++)n=t[r],this.instruction(n);else if(_(t))for(n in t)A.call(t,n)&&(i=t[n],this.instruction(n,i));else E(e)&&(e=e.apply()),s=new y(this,t,e),this.onData(this.writer.processingInstruction(s,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},t.prototype.declaration=function(t,e,r){var n;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return n=new p(this,t,e,r),this.onData(this.writer.declaration(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.doctype=function(t,e,r){if(this.openCurrent(),null==t)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new h(this,e,r),this.currentNode.rootNodeName=t,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},t.prototype.dtdElement=function(t,e){var r;return this.openCurrent(),r=new u(this,t,e),this.onData(this.writer.dtdElement(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.attList=function(t,e,r,n,i){var o;return this.openCurrent(),o=new a(this,t,e,r,n,i),this.onData(this.writer.dtdAttList(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.entity=function(t,e){var r;return this.openCurrent(),r=new l(this,!1,t,e),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.pEntity=function(t,e){var r;return this.openCurrent(),r=new l(this,!0,t,e),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.notation=function(t,e){var r;return this.openCurrent(),r=new c(this,t,e),this.onData(this.writer.dtdNotation(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},t.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},t.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},t.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},t.prototype.openNode=function(t){var r,i,o,s;if(!t.isOpen){if(this.root||0!==this.currentLevel||t.type!==e.Element||(this.root=t),i="",t.type===e.Element){for(o in this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+"<"+t.name,s=t.attribs)A.call(s,o)&&(r=s[o],i+=this.writer.attribute(r,this.writerOptions,this.currentLevel));i+=(t.children?">":"/>")+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+t.rootNodeName,t.pubID&&t.sysID?i+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(i+=' SYSTEM "'+t.sysID+'"'),t.children?(i+=" [",this.writerOptions.state=n.InsideTag):(this.writerOptions.state=n.CloseTag,i+=">"),i+=this.writer.endline(t,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),t.isOpen=!0}},t.prototype.closeNode=function(t){var r;if(!t.isClosed)return r="",this.writerOptions.state=n.CloseTag,r=t.type===e.Element?this.writer.indent(t,this.writerOptions,this.currentLevel)+"</"+t.name+">"+this.writer.endline(t,this.writerOptions,this.currentLevel):this.writer.indent(t,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(r,this.currentLevel),t.isClosed=!0},t.prototype.onData=function(t,e){return this.documentStarted=!0,this.onDataCallback(t,e+1)},t.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},t.prototype.debugInfo=function(t){return null==t?"":"node: <"+t+">"},t.prototype.ele=function(){return this.element.apply(this,arguments)},t.prototype.nod=function(t,e,r){return this.node(t,e,r)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},t.prototype.dtd=function(t,e,r){return this.doctype(t,e,r)},t.prototype.e=function(t,e,r){return this.element(t,e,r)},t.prototype.n=function(t,e,r){return this.node(t,e,r)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.att=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.a=function(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},t.prototype.ent=function(t,e){return this.entity(t,e)},t.prototype.pent=function(t,e){return this.pEntity(t,e)},t.prototype.not=function(t,e){return this.notation(t,e)},t}()}).call(this)},18245:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=r(13734),e=r(20001),t.exports=function(t){function r(t){r.__super__.constructor.call(this,t),this.type=e.Dummy}return i(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return""},r}(n)}).call(this)},71834:function(t,e,r){(function(){var e,n,i,o,s,a,u,l,c=function(t,e){for(var r in e)p.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},p={}.hasOwnProperty;u=(l=r(77167)).isObject,a=l.isFunction,s=l.getValue,o=r(13734),e=r(20001),n=r(9697),i=r(83418),t.exports=function(t){function r(t,n,i){var o,s,a,u;if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(n),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,null!=i&&this.attribute(i),t.type===e.Document&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this,t.children)){for(s=0,a=(u=t.children).length;s<a;s++)if((o=u[s]).type===e.DocType){o.name=this.name;break}}}return c(r,t),Object.defineProperty(r.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(r.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(r.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(r.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new i(this.attribs)),this.attributeMap}}),r.prototype.clone=function(){var t,e,r,n;for(e in(r=Object.create(this)).isRoot&&(r.documentObject=null),r.attribs={},n=this.attribs)p.call(n,e)&&(t=n[e],r.attribs[e]=t.clone());return r.children=[],this.children.forEach(function(t){var e;return(e=t.clone()).parent=r,r.children.push(e)}),r},r.prototype.attribute=function(t,e){var r,i;if(null!=t&&(t=s(t)),u(t))for(r in t)p.call(t,r)&&(i=t[r],this.attribute(r,i));else a(e)&&(e=e.apply()),this.options.keepNullAttributes&&null==e?this.attribs[t]=new n(this,t,""):null!=e&&(this.attribs[t]=new n(this,t,e));return this},r.prototype.removeAttribute=function(t){var e,r,n;if(null==t)throw Error("Missing attribute name. "+this.debugInfo());if(Array.isArray(t=s(t)))for(r=0,n=t.length;r<n;r++)e=t[r],delete this.attribs[e];else delete this.attribs[t];return this},r.prototype.toString=function(t){return this.options.writer.element(this,this.options.writer.filterOptions(t))},r.prototype.att=function(t,e){return this.attribute(t,e)},r.prototype.a=function(t,e){return this.attribute(t,e)},r.prototype.getAttribute=function(t){return this.attribs.hasOwnProperty(t)?this.attribs[t].value:null},r.prototype.setAttribute=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNode=function(t){return this.attribs.hasOwnProperty(t)?this.attribs[t]:null},r.prototype.setAttributeNode=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.removeAttributeNode=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setAttributeNS=function(t,e,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.removeAttributeNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getAttributeNodeNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setAttributeNodeNS=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.hasAttribute=function(t){return this.attribs.hasOwnProperty(t)},r.prototype.hasAttributeNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setIdAttribute=function(t,e){return this.attribs.hasOwnProperty(t)?this.attribs[t].isId:e},r.prototype.setIdAttributeNS=function(t,e,r){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.setIdAttributeNode=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagName=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByTagNameNS=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.getElementsByClassName=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.isEqualNode=function(t){var e,n,i;if(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)||t.namespaceURI!==this.namespaceURI||t.prefix!==this.prefix||t.localName!==this.localName||t.attribs.length!==this.attribs.length)return!1;for(e=n=0,i=this.attribs.length-1;0<=i?n<=i:n>=i;e=0<=i?++n:--n)if(!this.attribs[e].isEqualNode(t.attribs[e]))return!1;return!0},r}(o)}).call(this)},83418:function(t){(function(){t.exports=function(){function t(t){this.nodes=t}return Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.getNamedItem=function(t){return this.nodes[t]},t.prototype.setNamedItem=function(t){var e;return e=this.nodes[t.nodeName],this.nodes[t.nodeName]=t,e||null},t.prototype.removeNamedItem=function(t){var e;return e=this.nodes[t],delete this.nodes[t],e||null},t.prototype.item=function(t){return this.nodes[Object.keys(this.nodes)[t]]||null},t.prototype.getNamedItemNS=function(t,e){throw Error("This DOM method is not implemented.")},t.prototype.setNamedItemNS=function(t){throw Error("This DOM method is not implemented.")},t.prototype.removeNamedItemNS=function(t,e){throw Error("This DOM method is not implemented.")},t}()}).call(this)},13734:function(t,e,r){(function(){var e,n,i,o,s,a,u,l,c,p,h,f,d,y,g,m,b,v={}.hasOwnProperty;m=(b=r(77167)).isObject,g=b.isFunction,y=b.isEmpty,d=b.getValue,l=null,i=null,o=null,s=null,a=null,h=null,f=null,p=null,u=null,n=null,c=null,e=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=r(71834),i=r(45539),o=r(51592),s=r(73966),a=r(35631),h=r(26992),f=r(39784),p=r(61948),u=r(18245),n=r(20001),c=r(75406),r(83418),e=r(65038))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new c(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var t;return t=this.parent.children.indexOf(this),this.parent.children[t-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var t;return t=this.parent.children.indexOf(this),this.parent.children[t+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var t,e,r,i,o;if(this.nodeType!==n.Element&&this.nodeType!==n.DocumentFragment)return null;for(e=0,o="",r=(i=this.children).length;e<r;e++)(t=i[e]).textContent&&(o+=t.textContent);return o},set:function(t){throw Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.setParent=function(t){var e,r,n,i,o;for(this.parent=t,t&&(this.options=t.options,this.stringify=t.stringify),i=this.children,o=[],r=0,n=i.length;r<n;r++)e=i[r],o.push(e.setParent(this));return o},t.prototype.element=function(t,e,r){var n,i,o,s,a,u,l,c,p,h,f;if(u=null,null===e&&null==r&&(e=(p=[{},null])[0],r=p[1]),null==e&&(e={}),m(e=d(e))||(r=(h=[e,r])[0],e=h[1]),null!=t&&(t=d(t)),Array.isArray(t))for(o=0,l=t.length;o<l;o++)i=t[o],u=this.element(i);else if(g(t))u=this.element(t.apply());else if(m(t)){for(a in t)if(v.call(t,a)){if(g(f=t[a])&&(f=f.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===a.indexOf(this.stringify.convertAttKey))u=this.attribute(a.substr(this.stringify.convertAttKey.length),f);else if(!this.options.separateArrayItems&&Array.isArray(f)&&y(f))u=this.dummy();else if(m(f)&&y(f))u=this.element(a);else if(this.options.keepNullNodes||null!=f){if(!this.options.separateArrayItems&&Array.isArray(f))for(s=0,c=f.length;s<c;s++)i=f[s],(n={})[a]=i,u=this.element(n);else m(f)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?u=this.element(f):(u=this.element(a)).element(f):u=this.element(a,f)}else u=this.dummy()}}else u=this.options.keepNullNodes||null!==r?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===t.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===t.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===t.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===t.indexOf(this.stringify.convertRawKey)?this.raw(r):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===t.indexOf(this.stringify.convertPIKey)?this.instruction(t.substr(this.stringify.convertPIKey.length),r):this.node(t,e,r):this.dummy();if(null==u)throw Error("Could not create any elements with: "+t+". "+this.debugInfo());return u},t.prototype.insertBefore=function(t,e,r){var n,i,o;if(null!=t?t.type:void 0)return t.setParent(this),e?(i=children.indexOf(e),o=children.splice(i),children.push(t),Array.prototype.push.apply(children,o)):children.push(t),t;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(t));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i),n=this.parent.element(t,e,r),Array.prototype.push.apply(this.parent.children,o),n},t.prototype.insertAfter=function(t,e,r){var n,i,o;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(t));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i+1),n=this.parent.element(t,e,r),Array.prototype.push.apply(this.parent.children,o),n},t.prototype.remove=function(){var t;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return t=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[t,t-t+1].concat([])),this.parent},t.prototype.node=function(t,e,r){var n,i;return null!=t&&(t=d(t)),e||(e={}),m(e=d(e))||(r=(i=[e,r])[0],e=i[1]),n=new l(this,t,e),null!=r&&n.text(r),this.children.push(n),n},t.prototype.text=function(t){var e;return m(t)&&this.element(t),e=new f(this,t),this.children.push(e),this},t.prototype.cdata=function(t){var e;return e=new i(this,t),this.children.push(e),this},t.prototype.comment=function(t){var e;return e=new o(this,t),this.children.push(e),this},t.prototype.commentBefore=function(t){var e,r;return e=this.parent.children.indexOf(this),r=this.parent.children.splice(e),this.parent.comment(t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.commentAfter=function(t){var e,r;return e=this.parent.children.indexOf(this),r=this.parent.children.splice(e+1),this.parent.comment(t),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.raw=function(t){var e;return e=new h(this,t),this.children.push(e),this},t.prototype.dummy=function(){return new u(this)},t.prototype.instruction=function(t,e){var r,n,i,o,s;if(null!=t&&(t=d(t)),null!=e&&(e=d(e)),Array.isArray(t))for(o=0,s=t.length;o<s;o++)r=t[o],this.instruction(r);else if(m(t))for(r in t)v.call(t,r)&&(n=t[r],this.instruction(r,n));else g(e)&&(e=e.apply()),i=new p(this,t,e),this.children.push(i);return this},t.prototype.instructionBefore=function(t,e){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r),this.parent.instruction(t,e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.instructionAfter=function(t,e){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r+1),this.parent.instruction(t,e),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.declaration=function(t,e,r){var i,o;return i=this.document(),o=new s(i,t,e,r),0===i.children.length?i.children.unshift(o):i.children[0].type===n.Declaration?i.children[0]=o:i.children.unshift(o),i.root()||i},t.prototype.dtd=function(t,e){var r,i,o,s,u,l,c,p,h;for(r=this.document(),i=new a(r,t,e),p=r.children,o=s=0,l=p.length;s<l;o=++s)if(p[o].type===n.DocType)return r.children[o]=i,i;for(h=r.children,o=u=0,c=h.length;u<c;o=++u)if(h[o].isRoot)return r.children.splice(o,0,i),i;return r.children.push(i),i},t.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var t;for(t=this;t;){if(t.type===n.Document)return t.rootObject;if(t.isRoot)return t;t=t.parent}},t.prototype.document=function(){var t;for(t=this;t;){if(t.type===n.Document)return t;t=t.parent}},t.prototype.end=function(t){return this.document().end(t)},t.prototype.prev=function(){var t;if((t=this.parent.children.indexOf(this))<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[t-1]},t.prototype.next=function(){var t;if(-1===(t=this.parent.children.indexOf(this))||t===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[t+1]},t.prototype.importDocument=function(t){var e;return(e=t.root().clone()).parent=this,e.isRoot=!1,this.children.push(e),this},t.prototype.debugInfo=function(t){var e,r;return null!=(t=t||this.name)||(null!=(e=this.parent)?e.name:void 0)?null==t?"parent: <"+this.parent.name+">":(null!=(r=this.parent)?r.name:void 0)?"node: <"+t+">, parent: <"+this.parent.name+">":"node: <"+t+">":""},t.prototype.ele=function(t,e,r){return this.element(t,e,r)},t.prototype.nod=function(t,e,r){return this.node(t,e,r)},t.prototype.txt=function(t){return this.text(t)},t.prototype.dat=function(t){return this.cdata(t)},t.prototype.com=function(t){return this.comment(t)},t.prototype.ins=function(t,e){return this.instruction(t,e)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},t.prototype.e=function(t,e,r){return this.element(t,e,r)},t.prototype.n=function(t,e,r){return this.node(t,e,r)},t.prototype.t=function(t){return this.text(t)},t.prototype.d=function(t){return this.cdata(t)},t.prototype.c=function(t){return this.comment(t)},t.prototype.r=function(t){return this.raw(t)},t.prototype.i=function(t,e){return this.instruction(t,e)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(t){return this.importDocument(t)},t.prototype.replaceChild=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(t,e){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(t){var r;return this===t?0:this.document()!==t.document()?(r=e.Disconnected|e.ImplementationSpecific,.5>Math.random()?r|=e.Preceding:r|=e.Following,r):this.isAncestor(t)?e.Contains|e.Preceding:this.isDescendant(t)?e.Contains|e.Following:this.isPreceding(t)?e.Preceding:e.Following},t.prototype.isSameNode=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(t){var e,r,n;if(t.nodeType!==this.nodeType||t.children.length!==this.children.length)return!1;for(e=r=0,n=this.children.length-1;0<=n?r<=n:r>=n;e=0<=n?++r:--r)if(!this.children[e].isEqualNode(t.children[e]))return!1;return!0},t.prototype.getFeature=function(t,e){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(t,e,r){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(t){return!!t&&(t===this||this.isDescendant(t))},t.prototype.isDescendant=function(t){var e,r,n,i;for(r=0,n=(i=this.children).length;r<n;r++)if(t===(e=i[r])||e.isDescendant(t))return!0;return!1},t.prototype.isAncestor=function(t){return t.isDescendant(this)},t.prototype.isPreceding=function(t){var e,r;return e=this.treePosition(t),r=this.treePosition(this),-1!==e&&-1!==r&&e<r},t.prototype.isFollowing=function(t){var e,r;return e=this.treePosition(t),r=this.treePosition(this),-1!==e&&-1!==r&&e>r},t.prototype.treePosition=function(t){var e,r;return(r=0,e=!1,this.foreachTreeNode(this.document(),function(n){if(r++,!e&&n===t)return e=!0}),e)?r:-1},t.prototype.foreachTreeNode=function(t,e){var r,n,i,o,s;for(t||(t=this.document()),n=0,i=(o=t.children).length;n<i;n++)if((s=e(r=o[n]))||(s=this.foreachTreeNode(r,e)))return s},t}()}).call(this)},75406:function(t){(function(){t.exports=function(){function t(t){this.nodes=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(t){return this.nodes[t]||null},t}()}).call(this)},61948:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;e=r(20001),n=r(38909),t.exports=function(t){function r(t,n,i){if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing instruction target. "+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,i&&(this.value=this.stringify.insValue(i))}return i(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},r.prototype.isEqualNode=function(t){return!!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.target===this.target},r}(n)}).call(this)},26992:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;e=r(20001),n=r(13734),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing raw text. "+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(n)}return i(r,t),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},r}(n)}).call(this)},75834:function(t,e,r){(function(){var e,n,i,o=function(t,e){for(var r in e)s.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;e=r(20001),i=r(24635),n=r(52258),t.exports=function(t){function r(t,e){this.stream=t,r.__super__.constructor.call(this,e)}return o(r,t),r.prototype.endline=function(t,e,i){return t.isLastRootNode&&e.state===n.CloseTag?"":r.__super__.endline.call(this,t,e,i)},r.prototype.document=function(t,e){var r,n,i,o,s,a,u,l,c;for(u=t.children,n=i=0,s=u.length;i<s;n=++i)(r=u[n]).isLastRootNode=n===t.children.length-1;for(o=0,e=this.filterOptions(e),l=t.children,c=[],a=l.length;o<a;o++)r=l[o],c.push(this.writeChildNode(r,e,0));return c},r.prototype.attribute=function(t,e,n){return this.stream.write(r.__super__.attribute.call(this,t,e,n))},r.prototype.cdata=function(t,e,n){return this.stream.write(r.__super__.cdata.call(this,t,e,n))},r.prototype.comment=function(t,e,n){return this.stream.write(r.__super__.comment.call(this,t,e,n))},r.prototype.declaration=function(t,e,n){return this.stream.write(r.__super__.declaration.call(this,t,e,n))},r.prototype.docType=function(t,e,r){var i,o,s,a;if(r||(r=0),this.openNode(t,e,r),e.state=n.OpenTag,this.stream.write(this.indent(t,e,r)),this.stream.write("<!DOCTYPE "+t.root().name),t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(t,e,r)),e.state=n.InsideTag,o=0,s=(a=t.children).length;o<s;o++)i=a[o],this.writeChildNode(i,e,r+1);e.state=n.CloseTag,this.stream.write("]")}return e.state=n.CloseTag,this.stream.write(e.spaceBeforeSlash+">"),this.stream.write(this.endline(t,e,r)),e.state=n.None,this.closeNode(t,e,r)},r.prototype.element=function(t,r,i){var o,a,u,l,c,p,h,f,d;for(h in i||(i=0),this.openNode(t,r,i),r.state=n.OpenTag,this.stream.write(this.indent(t,r,i)+"<"+t.name),f=t.attribs)s.call(f,h)&&(o=f[h],this.attribute(o,r,i));if(l=0===(u=t.children.length)?null:t.children[0],0===u||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw)&&""===t.value}))r.allowEmpty?(this.stream.write(">"),r.state=n.CloseTag,this.stream.write("</"+t.name+">")):(r.state=n.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&1===u&&(l.type===e.Text||l.type===e.Raw)&&null!=l.value)this.stream.write(">"),r.state=n.InsideTag,r.suppressPrettyCount++,this.writeChildNode(l,r,i+1),r.suppressPrettyCount--,r.state=n.CloseTag,this.stream.write("</"+t.name+">");else{for(this.stream.write(">"+this.endline(t,r,i)),r.state=n.InsideTag,c=0,p=(d=t.children).length;c<p;c++)a=d[c],this.writeChildNode(a,r,i+1);r.state=n.CloseTag,this.stream.write(this.indent(t,r,i)+"</"+t.name+">")}return this.stream.write(this.endline(t,r,i)),r.state=n.None,this.closeNode(t,r,i)},r.prototype.processingInstruction=function(t,e,n){return this.stream.write(r.__super__.processingInstruction.call(this,t,e,n))},r.prototype.raw=function(t,e,n){return this.stream.write(r.__super__.raw.call(this,t,e,n))},r.prototype.text=function(t,e,n){return this.stream.write(r.__super__.text.call(this,t,e,n))},r.prototype.dtdAttList=function(t,e,n){return this.stream.write(r.__super__.dtdAttList.call(this,t,e,n))},r.prototype.dtdElement=function(t,e,n){return this.stream.write(r.__super__.dtdElement.call(this,t,e,n))},r.prototype.dtdEntity=function(t,e,n){return this.stream.write(r.__super__.dtdEntity.call(this,t,e,n))},r.prototype.dtdNotation=function(t,e,n){return this.stream.write(r.__super__.dtdNotation.call(this,t,e,n))},r}(i)}).call(this)},30495:function(t,e,r){(function(){var e,n=function(t,e){for(var r in e)i.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},i={}.hasOwnProperty;e=r(24635),t.exports=function(t){function e(t){e.__super__.constructor.call(this,t)}return n(e,t),e.prototype.document=function(t,e){var r,n,i,o,s;for(n=0,e=this.filterOptions(e),o="",i=(s=t.children).length;n<i;n++)r=s[n],o+=this.writeChildNode(r,e,0);return e.pretty&&o.slice(-e.newline.length)===e.newline&&(o=o.slice(0,-e.newline.length)),o},e}(e)}).call(this)},43232:function(t){(function(){var e=function(t,e){return function(){return t.apply(e,arguments)}},r={}.hasOwnProperty;t.exports=function(){function t(t){var n,i,o;for(n in this.assertLegalName=e(this.assertLegalName,this),this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.options=t,this.options.version||(this.options.version="1.0"),i=t.stringify||{})r.call(i,n)&&(o=i[n],this[n]=o)}return t.prototype.name=function(t){return this.options.noValidation?t:this.assertLegalName(""+t||"")},t.prototype.text=function(t){return this.options.noValidation?t:this.assertLegalChar(this.textEscape(""+t||""))},t.prototype.cdata=function(t){return this.options.noValidation?t:(t=(t=""+t||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(t))},t.prototype.comment=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/--/))throw Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return this.options.noValidation?t:""+t||""},t.prototype.attValue=function(t){return this.options.noValidation?t:this.assertLegalChar(this.attEscape(t=""+t||""))},t.prototype.insTarget=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.insValue=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/\?>/))throw Error("Invalid processing instruction value: "+t);return this.assertLegalChar(t)},t.prototype.xmlVersion=function(t){if(this.options.noValidation)return t;if(!(t=""+t||"").match(/1\.[0-9]+/))throw Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(this.options.noValidation)return t;if(!(t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+t);return this.assertLegalChar(t)},t.prototype.xmlStandalone=function(t){return this.options.noValidation?t:t?"yes":"no"},t.prototype.dtdPubID=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdSysID=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdElementValue=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdAttType=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdAttDefault=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdEntityValue=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdNData=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e,r;if(this.options.noValidation)return t;if(e="","1.0"===this.options.version){if(e=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=t.match(e))throw Error("Invalid character in string: "+t+" at index "+r.index)}else if("1.1"===this.options.version&&(e=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=t.match(e)))throw Error("Invalid character in string: "+t+" at index "+r.index);return t},t.prototype.assertLegalName=function(t){var e;if(this.options.noValidation)return t;if(this.assertLegalChar(t),e=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!t.match(e))throw Error("Invalid character in name");return t},t.prototype.textEscape=function(t){var e;return this.options.noValidation?t:(e=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},t.prototype.attEscape=function(t){var e;return this.options.noValidation?t:(e=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},t}()}).call(this)},39784:function(t,e,r){(function(){var e,n,i=function(t,e){for(var r in e)o.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;e=r(20001),n=r(38909),t.exports=function(t){function r(t,n){if(r.__super__.constructor.call(this,t),null==n)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=e.Text,this.value=this.stringify.text(n)}return i(r,t),Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"wholeText",{get:function(){var t,e,r;for(r="",e=this.previousSibling;e;)r=e.data+r,e=e.previousSibling;for(r+=this.data,t=this.nextSibling;t;)r+=t.data,t=t.nextSibling;return r}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},r.prototype.splitText=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(t){throw Error("This DOM method is not implemented."+this.debugInfo())},r}(n)}).call(this)},24635:function(t,e,r){(function(){var e,n,i,o={}.hasOwnProperty;i=r(77167).assign,e=r(20001),r(73966),r(35631),r(45539),r(51592),r(71834),r(26992),r(39784),r(61948),r(18245),r(62107),r(36328),r(14195),r(33086),n=r(52258),t.exports=function(){function t(t){var e,r,n;for(e in t||(t={}),this.options=t,r=t.writer||{})o.call(r,e)&&(n=r[e],this["_"+e]=this[e],this[e]=n)}return t.prototype.filterOptions=function(t){var e,r,o,s,a,u,l,c;return t||(t={}),t=i({},this.options,t),(e={writer:this}).pretty=t.pretty||!1,e.allowEmpty=t.allowEmpty||!1,e.indent=null!=(r=t.indent)?r:"  ",e.newline=null!=(o=t.newline)?o:"\n",e.offset=null!=(s=t.offset)?s:0,e.dontPrettyTextNodes=null!=(a=null!=(u=t.dontPrettyTextNodes)?u:t.dontprettytextnodes)?a:0,e.spaceBeforeSlash=null!=(l=null!=(c=t.spaceBeforeSlash)?c:t.spacebeforeslash)?l:"",!0===e.spaceBeforeSlash&&(e.spaceBeforeSlash=" "),e.suppressPrettyCount=0,e.user={},e.state=n.None,e},t.prototype.indent=function(t,e,r){var n;if(!e.pretty||e.suppressPrettyCount);else if(e.pretty&&(n=(r||0)+e.offset+1)>0)return Array(n).join(e.indent);return""},t.prototype.endline=function(t,e,r){return!e.pretty||e.suppressPrettyCount?"":e.newline},t.prototype.attribute=function(t,e,r){var n;return this.openAttribute(t,e,r),n=" "+t.name+'="'+t.value+'"',this.closeAttribute(t,e,r),n},t.prototype.cdata=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<![CDATA[",e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+="]]>"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.comment=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!-- ",e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=" -->"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.declaration=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<?xml",e.state=n.InsideTag,i+=' version="'+t.version+'"',null!=t.encoding&&(i+=' encoding="'+t.encoding+'"'),null!=t.standalone&&(i+=' standalone="'+t.standalone+'"'),e.state=n.CloseTag,i+=e.spaceBeforeSlash+"?>"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.docType=function(t,e,r){var i,o,s,a,u;if(r||(r=0),this.openNode(t,e,r),e.state=n.OpenTag,a=this.indent(t,e,r)+"<!DOCTYPE "+t.root().name,t.pubID&&t.sysID?a+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(a+=' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(a+=" ["+this.endline(t,e,r),e.state=n.InsideTag,o=0,s=(u=t.children).length;o<s;o++)i=u[o],a+=this.writeChildNode(i,e,r+1);e.state=n.CloseTag,a+="]"}return e.state=n.CloseTag,a+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),a},t.prototype.element=function(t,r,i){var s,a,u,l,c,p,h,f,d,y,g,m,b,v;for(d in i||(i=0),y=!1,g="",this.openNode(t,r,i),r.state=n.OpenTag,g+=this.indent(t,r,i)+"<"+t.name,m=t.attribs)o.call(m,d)&&(s=m[d],g+=this.attribute(s,r,i));if(l=0===(u=t.children.length)?null:t.children[0],0===u||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw)&&""===t.value}))r.allowEmpty?(g+=">",r.state=n.CloseTag,g+="</"+t.name+">"+this.endline(t,r,i)):(r.state=n.CloseTag,g+=r.spaceBeforeSlash+"/>"+this.endline(t,r,i));else if(r.pretty&&1===u&&(l.type===e.Text||l.type===e.Raw)&&null!=l.value)g+=">",r.state=n.InsideTag,r.suppressPrettyCount++,y=!0,g+=this.writeChildNode(l,r,i+1),r.suppressPrettyCount--,y=!1,r.state=n.CloseTag,g+="</"+t.name+">"+this.endline(t,r,i);else{if(r.dontPrettyTextNodes){for(c=0,h=(b=t.children).length;c<h;c++)if(((a=b[c]).type===e.Text||a.type===e.Raw)&&null!=a.value){r.suppressPrettyCount++,y=!0;break}}for(g+=">"+this.endline(t,r,i),r.state=n.InsideTag,p=0,f=(v=t.children).length;p<f;p++)a=v[p],g+=this.writeChildNode(a,r,i+1);r.state=n.CloseTag,g+=this.indent(t,r,i)+"</"+t.name+">",y&&r.suppressPrettyCount--,g+=this.endline(t,r,i),r.state=n.None}return this.closeNode(t,r,i),g},t.prototype.writeChildNode=function(t,r,n){switch(t.type){case e.CData:return this.cdata(t,r,n);case e.Comment:return this.comment(t,r,n);case e.Element:return this.element(t,r,n);case e.Raw:return this.raw(t,r,n);case e.Text:return this.text(t,r,n);case e.ProcessingInstruction:return this.processingInstruction(t,r,n);case e.Dummy:return"";case e.Declaration:return this.declaration(t,r,n);case e.DocType:return this.docType(t,r,n);case e.AttributeDeclaration:return this.dtdAttList(t,r,n);case e.ElementDeclaration:return this.dtdElement(t,r,n);case e.EntityDeclaration:return this.dtdEntity(t,r,n);case e.NotationDeclaration:return this.dtdNotation(t,r,n);default:throw Error("Unknown XML node type: "+t.constructor.name)}},t.prototype.processingInstruction=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<?",e.state=n.InsideTag,i+=t.target,t.value&&(i+=" "+t.value),e.state=n.CloseTag,i+=e.spaceBeforeSlash+"?>"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.raw=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r),e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.text=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r),e.state=n.InsideTag,i+=t.value,e.state=n.CloseTag,i+=this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdAttList=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!ATTLIST",e.state=n.InsideTag,i+=" "+t.elementName+" "+t.attributeName+" "+t.attributeType,"#DEFAULT"!==t.defaultValueType&&(i+=" "+t.defaultValueType),t.defaultValue&&(i+=' "'+t.defaultValue+'"'),e.state=n.CloseTag,i+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdElement=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!ELEMENT",e.state=n.InsideTag,i+=" "+t.name+" "+t.value,e.state=n.CloseTag,i+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdEntity=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!ENTITY",e.state=n.InsideTag,t.pe&&(i+=" %"),i+=" "+t.name,t.value?i+=' "'+t.value+'"':(t.pubID&&t.sysID?i+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(i+=' SYSTEM "'+t.sysID+'"'),t.nData&&(i+=" NDATA "+t.nData)),e.state=n.CloseTag,i+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.dtdNotation=function(t,e,r){var i;return this.openNode(t,e,r),e.state=n.OpenTag,i=this.indent(t,e,r)+"<!NOTATION",e.state=n.InsideTag,i+=" "+t.name,t.pubID&&t.sysID?i+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.pubID?i+=' PUBLIC "'+t.pubID+'"':t.sysID&&(i+=' SYSTEM "'+t.sysID+'"'),e.state=n.CloseTag,i+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=n.None,this.closeNode(t,e,r),i},t.prototype.openNode=function(t,e,r){},t.prototype.closeNode=function(t,e,r){},t.prototype.openAttribute=function(t,e,r){},t.prototype.closeAttribute=function(t,e,r){},t}()}).call(this)},48793:function(t,e,r){(function(){var e,n,i,o,s,a,u,l,c,p;l=(p=r(77167)).assign,c=p.isFunction,i=r(75985),o=r(50219),s=r(65110),u=r(30495),a=r(75834),e=r(20001),n=r(52258),t.exports.create=function(t,e,r,n){var i,s;if(null==t)throw Error("Root element needs a name.");return s=(i=new o(n=l({},e,r,n))).element(t),n.headless||(i.declaration(n),(null!=n.pubID||null!=n.sysID)&&i.dtd(n)),s},t.exports.begin=function(t,e,r){var n;return(c(t)&&(e=(n=[t,e])[0],r=n[1],t={}),e)?new s(t,e,r):new o(t)},t.exports.stringWriter=function(t){return new u(t)},t.exports.streamWriter=function(t,e){return new a(t,e)},t.exports.implementation=new i,t.exports.nodeType=e,t.exports.writerState=n}).call(this)},41032:function(t,e,r){"use strict";r.d(e,{bz:function(){return w}});var n=r(77390),i=t=>["string","number","boolean"].includes(typeof t),o=t=>{if(void 0===t)return"";if(Array.isArray(t))return t.filter(i).map(t=>encodeURIComponent(t)).join(",");if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return encodeURIComponent(t);throw Error(`BMDB client cannot serialize query string value '${JSON.stringify(t)}'`)},s=(t,e)=>{let r=o(e);return""===r?void 0:`${t}=${r}`},a=([t,e])=>(e&&e.constructor===Object?Object.entries(e).map(([e,r])=>s(`${t}[${e}]`,r)):[s(t,e)]).filter(t=>void 0!==t),u=t=>t&&"object"==typeof t?Object.entries(t).flatMap(a).join("&"):"",l=t=>t.map(({code:t,info:e})=>`${t}: ${e}`).join(", "),c=class extends Error{constructor(t){super(`Invalid BMD Search request: ${l(t)}`),this.errors=t}},p=class extends Error{constructor(t){super(t.length?`BMD search failed due to server error: ${l(t)}`:"BMD search failed due to an unknown error"),this.errors=t}},h=t=>500===t.code,f=t=>{let{errors:e}=t,r=e.filter(h);return!e.length||r.length?new p(r):new c(e)},d=({data:t,error:e})=>e?{error:f(e)}:{data:t},y="global",g="https://search.data.bs.no",m="0.6.1",b=({catalogueId:t=y,host:e=g,clientIdentifier:r,featureFlags:i,fallbackCoverImages:o})=>{let s=(0,n.ZP)({baseUrl:new URL(`/cordata/${t}/api/`,e).toString(),querySerializer:u,headers:{"Client-Identifier":r}});return{getWorks:async t=>d(await s.GET("/work",{params:{query:{...t,ft:i,version:m,fallback_cover_images:o}}})),getAgents:async t=>d(await s.GET("/agent",{params:{query:{...t,version:m}}})),getAgentRoles:async t=>d(await s.GET("/agent/roles",{params:{query:{...t,version:m}}})),searchWorks:async t=>d(await s.GET("/work/search",{params:{query:{...t,ft:i,version:m,fallback_cover_images:o}}})),searchAgents:async t=>d(await s.GET("/agent/search",{params:{query:{...t,version:m}}}))}},v=({catalogueId:t=y,host:e=g,clientIdentifier:r,featureFlags:i,fallbackCoverImages:o})=>{let s=(0,n.ZP)({baseUrl:new URL(`/ol/${t}/api/`,e).toString(),querySerializer:u,headers:{"Client-Identifier":r}});return{getWorks:async t=>d(await s.GET("/work",{params:{query:{...t,ft:i,version:m,fallback_cover_images:o}}})),getAgents:async t=>d(await s.GET("/agent",{params:{query:{...t,version:m}}})),searchWorks:async t=>d(await s.GET("/work/search",{params:{query:{...t,ft:i,version:m,fallback_cover_images:o}}})),searchAgents:async t=>d(await s.GET("/agent/search",{params:{query:{...t,version:m}}})),getPublications:async t=>d(await s.GET("/publication",{params:{query:{...t,version:m}}})),getConfiguration:async t=>d(await s.GET("/configuration/search",{params:{query:{...t,version:m}}}))}},w=({catalogueId:t=y,host:e=g,clientIdentifier:r,featureFlags:n=[],fallbackCoverImages:i})=>{let o={cordata:b({catalogueId:t,host:e,clientIdentifier:r,featureFlags:n,fallbackCoverImages:i}),plas:v({catalogueId:t,host:e,clientIdentifier:r,featureFlags:n,fallbackCoverImages:i})};return{searchWorks:o.cordata.searchWorks,getWorks:o.cordata.getWorks,searchAgents:o.cordata.searchAgents,getAgents:o.cordata.getAgents,getAgentRoles:o.cordata.getAgentRoles,getPublications:o.plas.getPublications,getConfiguration:o.plas.getConfiguration}}},44545:function(t,e,r){"use strict";var n=r(95440),i=n.z.object({nb:n.z.string(),nn:n.z.string()}),o=n.z.object({nb:n.z.string(),nn:n.z.string(),en:n.z.string()}),s=n.z.object({nb:n.z.array(n.z.string()),nn:n.z.array(n.z.string())});n.z.object({nb:n.z.array(n.z.string()),nn:n.z.array(n.z.string()),en:n.z.array(n.z.string())});var a=n.z.object({type:n.z.literal("AccessibleContentFeature"),id:n.z.string(),code:n.z.union([n.z.literal("ta"),n.z.literal("tb")]),label:i,nortargetUri:n.z.string()}).strict(),u=n.z.object({type:n.z.literal("AgeGroup"),id:n.z.string(),code:n.z.string(),plasCode:n.z.enum(["child","youngAdult","adult"]).optional(),marc21Code:n.z.string().optional(),name:i,nortargetUri:n.z.string().optional()}).strict(),l=n.z.object({type:n.z.enum(["PegiAgeLimit","NmaAgeLimit"]),id:n.z.string(),years:n.z.number(),uri:n.z.string().url()}).strict(),c=n.z.union([n.z.object({name:n.z.literal("promus"),id:n.z.string()}),n.z.object({name:n.z.literal("filmoteket"),id:n.z.string()}),n.z.object({name:n.z.literal("nmbf"),id:n.z.string()}),n.z.object({name:n.z.literal("catalogueHarvester"),librarySystem:n.z.enum(["bibliofil","cicero","quria"]),catalogue:n.z.string(),id:n.z.string()})]),p=n.z.object({code:n.z.string(),info:n.z.string(),source:n.z.string().optional()});n.z.object({type:n.z.string(),id:n.z.string()});var h=n.z.object({type:n.z.string(),id:n.z.string(),_origin:c.optional(),_sourceReferences:n.z.array(n.z.string()).optional(),_transformWarnings:n.z.array(p).optional(),_signatures:n.z.array(n.z.string()).optional(),_cordataVersion:n.z.string().optional(),_updatedAt:n.z.string().optional(),_version:n.z.string().optional()}),f=n.z.enum(["Country"]),d=n.z.object({type:n.z.literal("Place"),id:n.z.string(),identifiers:n.z.object({bibbiAuthorityId:n.z.string().optional()}).strict(),placeType:f.optional(),name:i,specification:n.z.string().optional(),alternativeNames:s,broaderPlace:n.z.lazy(()=>d).optional(),definition:n.z.string().optional(),scopeNote:n.z.string().optional()}),y=n.z.object({type:n.z.literal("Nationality"),id:n.z.string(),demonym:n.z.string(),code:n.z.string(),scopeNote:n.z.string().optional(),country:d.optional(),countryCodes:n.z.object({iso3166_2:n.z.string().optional(),iso3166_3:n.z.string().optional(),iso3166_numeric:n.z.number().optional(),marc21:n.z.string().optional()}).strict()}),g=h.merge(n.z.object({type:n.z.literal("CollectiveAgent"),id:n.z.string(),identifiers:n.z.object({bibbiAuthorityId:n.z.string().optional(),norafId:n.z.string().optional()}).strict(),collectiveAgentType:n.z.string(),name:i,alternativeNames:s,nationality:n.z.array(y),scopeNote:n.z.string().optional()})),m=n.z.object({year:n.z.number(),isApproximate:n.z.boolean()}),b=h.merge(n.z.object({type:n.z.literal("Person"),id:n.z.string(),identifiers:n.z.object({bibbiAuthorityId:n.z.string().optional(),norafId:n.z.string().optional()}).strict(),name:i,catalogueName:n.z.string().optional(),ordinal:n.z.string().optional(),personTitle:i.optional(),birth:m.optional(),death:m.optional(),activeYears:m.optional(),unspecifiedDate:n.z.string().optional(),nationality:n.z.array(y),gender:n.z.string().optional(),scopeNote:n.z.string().optional(),alternativeNames:s,fieldOfActivity:i.optional()})),v=n.z.union([b,g]),w=n.z.object({type:n.z.literal("BindingType"),id:n.z.string(),code:n.z.string(),name:i}).strict(),E=n.z.object({collection:n.z.lazy(()=>D),numberInSeries:n.z.string().optional()}),_={akk:"Akkadisk",ach:"Acholi",afr:"Afrikaans",alb:"Albansk",amh:"Amharisk",ang:"Angelsaksisk",ara:"Arabisk",arc:"Arameisk",arm:"Armensk",aze:"Aserbajdsjansk",bam:"Bambara",baq:"Baskisk",bel:"Hviterussisk",bem:"Bemba",ben:"Bengali",bis:"Bislama",bnt:"Bantuspr\xe5k",bos:"Bosnisk",bre:"Bretonsk",bul:"Bulgarsk",bur:"Burmesisk",byn:"Bilin",cat:"Katalansk",ceb:"Cebuano",che:"Tsjetsjensk",chi:"Kinesisk",chu:"Kirkeslavisk",cic:"Chickasaw",ckb:"Sorani (S\xf8rkurdisk)",cnr:"Montenegrinsk",cop:"Koptisk",cze:"Tsjekkisk",dan:"Dansk",dut:"Nederlandsk",egy:"Egyptisk",eng:"Engelsk",enm:"Middelengelsk",epo:"Esperanto",est:"Estisk",ewe:"Ewe",fao:"F\xe6r\xf8ysk",fat:"Fante",fij:"Fijiansk",fin:"Finsk",fiu:"Finsk-ugrisk",fkv:"Kvensk",fre:"Fransk",frm:"Mellomfransk",fro:"Gammelfransk",fry:"Frisisk",ful:"Fulfulde",gaa:"Ga",geo:"Georgisk",ger:"Tysk",gez:"Etiopisk",gla:"G\xe6lisk",gle:"Irsk",glg:"Galegisk/Galisisk",gmh:"Middelh\xf8ytysk",got:"Gotisk",grc:"Klassisk gresk",gre:"Gresk",guj:"Gujarati",hau:"Hausa",heb:"Hebraisk",hil:"Hiligaynon",hin:"Hindi",hrv:"Kroatisk",hun:"Ungarsk",ibo:"Ibo",ice:"Islandsk",iku:"Inuktitut",ilo:"Iloko",ind:"Indonesisk",ipk:"Inupiak",ira:"Iranske spr\xe5k",ita:"Italiensk",jpn:"Japansk",kal:"Kalaalisut",kan:"Kannada",kaz:"Kasakhisk",khm:"Khmer",kho:"Khotanesisk",kik:"Kikuyu",kin:"Kinyarwanda",kmr:"Kurmanji (Nordkurdisk)",kon:"Kongo",kor:"Koreansk",kua:"Kwanyama",kur:"Kurdisk",lao:"Lao (Laotisk)",lat:"Latin",lav:"Latvisk",lin:"Lingalsk",lit:"Litauisk",lkt:"Lakota",lug:"Luganda",mac:"Makedonsk",man:"Mandarin",mao:"Maori",mar:"Marathi",may:"Malayisk",mlg:"Madagassisk",mlt:"Maltesisk",mnk:"Mandinka",mol:"Moldavisk",mon:"Mongolsk",myn:"Maya",nds:"Nedertysk",nep:"Nepali",nic:"Niger-Kongospr\xe5k",nno:"Norsk (nynorsk)",nob:"Norsk (bokm\xe5l)",nom:"Mellomnorsk",non:"Gammelnorsk",nor:"Norsk",nso:"Nordsotho",oci:"Proven\xe7alsk",orm:"Oromo",pan:"Panjabi",per:"Farsi",pli:"Pali",pol:"Polsk",por:"Portugisisk",pra:"Prakrit",pro:"Proven\xe7alsk til 1500",prs:"Dari",pus:"Pashto",roh:"Retoromansk",rom:"Romani",rum:"Rumensk",run:"Kirundi",rus:"Russisk",sah:"Jakutisk",san:"Sanskrit",sat:"Santali",sco:"Skotsk",sgn:"Tegnspr\xe5k",sin:"Singalesisk",sit:"Sino-tibetansk",sjd:"Kildinsamisk",sje:"Pitesamisk",sjk:"Kemisamisk",sjt:"Tersamisk",sju:"Umesamisk",slo:"Slovakisk",slv:"Slovensk",sma:"S\xf8rsamisk",sme:"Nordsamisk",smi:"Andre samiske spr\xe5k",smj:"Lulesamisk",smn:"Inarisamisk",smo:"Samoansk",sms:"Skoltesamisk",som:"Somali",sot:"Sesotho",spa:"Spansk",srp:"Serbisk",sux:"Sumerisk",swa:"Swahili",swe:"Svensk",syr:"Syrisk",tam:"Tamil",tay:"Atayal",tel:"Telugu",tgl:"Tagalog",tha:"Thai",tib:"Tibetansk",tir:"Tigrinja",tkl:"Tokelaisk",ton:"Tongansk",tur:"Tyrkisk",ukr:"Ukrainsk",urd:"Urdu",uzb:"Usbekisk",vie:"Vietnamesisk",wol:"Wolof",wel:"Walisisk",wen:"Sorbiske spr\xe5k",xho:"Xhosa",yid:"Jiddisk",yor:"Yoruba",ypk:"Yupikspr\xe5k",zul:"Zulu",und:"Ukjent spr\xe5k",zxx:"Uten spr\xe5klig innhold"},T=Object.keys(_),O=Object.values(_),A=n.z.object({code:n.z.enum(T),name:n.z.enum(O)}).strict(),S=n.z.object({mainTitle:n.z.string(),subtitle:n.z.string().optional(),partNumber:n.z.string().optional(),partTitle:n.z.string().optional(),titleLanguage:A.optional(),titleType:n.z.enum(["norwegian_cinema_title","other_variant_title","cover_title","added_title_page_title","spine_title"]).optional()}).strict(),I=n.z.object({type:n.z.literal("Role"),id:n.z.string(),code:n.z.string(),label:i,marc21Code:n.z.string().optional(),normarcCode:n.z.string().optional(),bibframeRelator:n.z.string().optional(),rdaRelator:n.z.string().optional()}).strict(),N=n.z.object({agent:v,roles:n.z.array(I),isMainContributor:n.z.boolean()}).strict(),P=n.z.object({type:n.z.literal("CollectionWork"),collectionType:n.z.enum(["series","fictional_universe"]),id:n.z.string(),contributors:n.z.array(N),title:S}).strict(),D=n.z.object({type:n.z.literal("CollectionExpression"),id:n.z.string(),identifiers:n.z.object({bibbiAuthorityId:n.z.string().optional()}).strict(),title:S,variantTitles:n.z.array(S),languages:A.array(),note:n.z.string().optional(),issn:n.z.string().optional(),created:n.z.string().optional(),modified:n.z.string().optional(),superCollection:E.optional(),workExpressed:P.optional(),domain:n.z.enum(["Expression","Manifestation"]),_origin:c.optional()}).strict(),x=n.z.object({type:n.z.literal("Concept"),id:n.z.string(),name:i,alternativeNames:s,identifiers:n.z.object({bibbiAuthorityId:n.z.string().optional()}).strict()}),k=["V1000","V1001","V1002","V1003","V1004","V1005"],j=n.z.object({type:n.z.literal("DocumentType"),id:n.z.string(),code:n.z.string(),format:n.z.string(),medium:n.z.string().optional(),defaultWorkTypeId:n.z.enum(k).optional(),allowedWorkTypeIds:n.z.enum(k).array().optional()}),C=n.z.object({imprint:n.z.string(),places:n.z.array(n.z.string())}),z=n.z.object({catalogueId:n.z.string(),localRecordId:n.z.string(),recordCreationDate:n.z.string().optional(),recordModificationDateTime:n.z.string().optional()}).strict(),R=n.z.object({value:n.z.string(),noteType:n.z.enum(["general_note","bibliographic_history_note","contents_note","participant_or_performer_note","system_details_note","language_note","other_identifier_note","variant_title_note","title_source_note","original_title_note"])}),F=n.z.object({approximate:n.z.boolean(),hours:n.z.coerce.number().optional(),minutes:n.z.coerce.number()}),M=h.merge(n.z.object({type:n.z.literal("Manifestation"),id:n.z.string(),identifiers:n.z.record(n.z.enum(["bibbiId","bibliofilId","bibsentSku","bokbasenId","filmoteketId","imdbId"]),n.z.string()),createDate:n.z.string().optional(),approveDate:n.z.string().optional(),cataloguingDate:n.z.string().optional(),updateDate:n.z.string().optional(),biographicContent:n.z.string().optional(),title:S,parallelTitles:n.z.array(S),variantTitles:n.z.array(S),coverImage:n.z.string().optional(),binding:w.optional(),documentType:j.optional(),statementOfResponsibility:n.z.string().optional(),isbn:n.z.array(n.z.string()),incorrectIsbn:n.z.array(n.z.string()),ismn:n.z.array(n.z.string()),ean:n.z.array(n.z.string()),publicationYear:n.z.string().optional(),publicationStatements:n.z.array(C),edition:n.z.string().optional(),contributors:n.z.array(N),summary:n.z.string().optional(),subtitleLanguages:n.z.array(A).optional(),captionLanguages:n.z.array(A).optional(),audioDescriptionLanguages:n.z.array(A).optional(),duration:F.optional(),collections:n.z.array(E),libraryCatalogueRecords:n.z.array(z).optional(),isilCodes:n.z.array(n.z.string()).optional(),extent_unstable:n.z.string().optional(),accompanyingMaterial:n.z.string().optional(),kulturfond:n.z.object({status:n.z.boolean()}).optional(),notes:n.z.array(R).optional(),encodingLevel:n.z.enum(["full","preliminary"]).optional(),expressions:n.z.array(n.z.object({expressionId:n.z.string(),workId:n.z.string(),relation:n.z.enum(["embodies","contains"])})).optional()})).strict(),L=n.z.object({local:n.z.object({minimum:n.z.number(),maximum:n.z.number()}).optional(),online:n.z.object({minimum:n.z.number(),maximum:n.z.number()}).optional()}).strict(),U=n.z.object({type:n.z.literal("Platform"),id:n.z.string(),code:n.z.string(),name:n.z.string(),abbreviatedName:n.z.string().optional()}).strict(),B=n.z.union([n.z.object({code:n.z.literal("a"),label:n.z.literal("Tekstlig uttrykk")}),n.z.object({code:n.z.literal("c"),label:n.z.literal("Notetrykk")}),n.z.object({code:n.z.literal("e"),label:n.z.literal("Kartografisk uttrykk")}),n.z.object({code:n.z.literal("g"),label:n.z.literal("Film og tv-serier")}),n.z.object({code:n.z.literal("i"),label:n.z.literal("Lyd (lydb\xf8ker og lydopptak)")}),n.z.object({code:n.z.literal("j"),label:n.z.literal("Musikkopptak")}),n.z.object({code:n.z.literal("m"),label:n.z.literal("Dataprogram")}),n.z.object({code:n.z.literal("o"),label:n.z.literal("Kombidokument (ikke egentlig et uttrykk}, sorteres senere)")}),n.z.object({code:n.z.literal("r"),label:n.z.literal("Realia")})]),V=n.z.object({type:n.z.literal("MusicInstrument"),id:n.z.string(),name:i,alternativeNames:s.optional()}).strict(),W=n.z.object({type:n.z.literal("Instrumentation"),instruments:n.z.array(n.z.object({instrument:V,numberOfPerformers:n.z.number().optional()}))}).strict(),G=h.merge(n.z.object({type:n.z.literal("Expression"),id:n.z.string(),workId:n.z.string().optional(),manifestations:n.z.array(M).optional(),aggregateManifestations:n.z.array(M).optional(),title:S.optional(),contributors:n.z.array(N),languages:n.z.array(A),hasParallelText:n.z.boolean(),gameTextLanguages:n.z.array(A).optional(),numberOfPlayers:L.optional(),expressionType:B,edition:n.z.string().optional(),collections:n.z.array(E),platforms:U.array().optional(),instrumentations:n.z.array(W).optional(),intermediateTranslationLanguages:n.z.array(A).optional()})).strict(),q=n.z.object({type:n.z.literal("WorkType"),id:n.z.string(),uri:n.z.string(),label:o}),$=n.z.object({type:n.z.literal("Genre"),id:n.z.string(),identifiers:n.z.object({bibbiAuthorityId:n.z.string().optional(),ntsfId:n.z.string().optional(),nmbfId:n.z.string().optional()}).strict(),name:i,alternativeNames:s,domain:q,isForm:n.z.boolean(),scopeNote:n.z.string().optional(),_origin:c.optional()}).strict(),H=n.z.object({type:n.z.literal("Subject"),id:n.z.string(),identifiers:n.z.object({bibbiAuthorityId:n.z.string().optional()}).strict(),focus:n.z.union([d,x,b,g]).optional(),name:i,qualifier:i.optional(),specification:i.optional(),scopeNote:n.z.string().optional(),webdewey:n.z.string().optional(),ddk5:n.z.string().optional(),_temp_subdivisions:n.z.array(i),subdivisions:n.z.array(n.z.union([d,x])),temporalSubdivision:n.z.string().optional(),alternativeNames:s}),K=n.z.object({titleType:n.z.literal("uniform_title_music"),titleLanguage:A.optional(),form:n.z.string(),medium:n.z.string().optional(),serialNumber:n.z.string().optional(),opusNumber:n.z.string().optional(),thematicCatalogueNumber:n.z.string().optional(),part:n.z.string().optional(),key:n.z.string().optional(),arrangement:n.z.string().optional()}),Y=n.z.object({type:n.z.literal("ContentsEntry"),title:S,creator:v.optional()});h.merge(n.z.object({type:n.z.literal("Work"),id:n.z.string(),identifiers:n.z.object({bibbiAuthorityId:n.z.string().optional(),deichmanWorkId:n.z.string().optional(),nbWorkId:n.z.string().optional()}).strict(),workYear:n.z.number().optional(),languages:n.z.array(A),workForm:n.z.string().optional(),title:n.z.union([S,K]),variantTitles:n.z.array(S),contributors:n.z.array(N),expressions:n.z.array(G).optional(),ageGroups:n.z.array(u),ageLimit:l.optional(),summary:n.z.string().optional(),subjects:n.z.array(H),genres:n.z.array($),workTypes:n.z.array(q),isShortWork:n.z.boolean().optional(),contents:n.z.array(Y).optional(),isMachineGenerated:n.z.boolean().optional(),isFiction:n.z.boolean().optional(),countriesOfOrigin:n.z.array(d).optional(),accessibleContentFeature:a.optional()})).strict(),n.z.object({type:n.z.enum(["Work","Person","CollectiveAgent"]),id:n.z.string(),status:n.z.enum(["updated","deleted"])}),[{type:"Platform",id:"pc",code:"ma",name:"PC"},{type:"Platform",id:"xbox",code:"mi",name:"Xbox"},{type:"Platform",id:"xbox-360",code:"mj",name:"Xbox 360"},{type:"Platform",id:"xbox-one",code:"mk",name:"Xbox One"},{type:"Platform",id:"xbox-sx",code:"ml",name:"Xbox Series X",abbreviatedName:"Xbox SX"},{type:"Platform",id:"ds",code:"mn",name:"Nintendo DS",abbreviatedName:"DS"},{type:"Platform",id:"wiiu",code:"mp",name:"Nintendo Wii U",abbreviatedName:"Wii U"},{type:"Platform",id:"wii",code:"mo",name:"Nintendo Wii",abbreviatedName:"Wii"},{type:"Platform",id:"3ds",code:"mr",name:"Nintendo 3DS",abbreviatedName:"3DS"},{type:"Platform",id:"switch",code:"ms",name:"Nintendo Switch",abbreviatedName:"Switch"},{type:"Platform",id:"ps",code:"mb",name:"Playstation",abbreviatedName:"PS"},{type:"Platform",id:"ps3",code:"mc",name:"Playstation 3",abbreviatedName:"PS3"},{type:"Platform",id:"psp",code:"md",name:"Playstation Portable",abbreviatedName:"PSP"},{type:"Platform",id:"ps4",code:"me",name:"Playstation 4",abbreviatedName:"PS4"},{type:"Platform",id:"ps5",code:"mf",name:"Playstation 5",abbreviatedName:"PS5"}].map(t=>t.code)},77390:function(t,e,r){"use strict";r.d(e,{ZP:function(){return s}});let n={"Content-Type":"application/json"},i=/\{[^{}]+\}/g;class o extends Request{constructor(t,e){for(let r in super(t,e),e)r in this||(this[r]=e[r])}}function s(t){let{baseUrl:e="",fetch:r=globalThis.fetch,querySerializer:s,bodySerializer:f,headers:d,...y}={...t};e.endsWith("/")&&(e=e.substring(0,e.length-1)),d=h(n,d);let g=[];async function m(t,n){var m;let b,v;let{fetch:w=r,headers:E,params:_={},parseAs:T="json",querySerializer:O,bodySerializer:A=f??p,...S}=n||{},I="function"==typeof s?s:c(s);O&&(I="function"==typeof O?O:c({..."object"==typeof s?s:{},...O}));let N={redirect:"follow",...y,...S,headers:h(d,E,_.header)};N.body&&(N.body=A(N.body)),N.body instanceof FormData&&N.headers.delete("Content-Type");let P=new o((m={baseUrl:e,params:_,querySerializer:I},b=`${m.baseUrl}${t}`,m.params?.path&&(b=function(t,e){let r=t;for(let n of t.match(i)??[]){let t=n.substring(1,n.length-1),i=!1,o="simple";if(t.endsWith("*")&&(i=!0,t=t.substring(0,t.length-1)),t.startsWith(".")?(o="label",t=t.substring(1)):t.startsWith(";")&&(o="matrix",t=t.substring(1)),!e||void 0===e[t]||null===e[t])continue;let s=e[t];if(Array.isArray(s)){r=r.replace(n,l(t,s,{style:o,explode:i}));continue}if("object"==typeof s){r=r.replace(n,u(t,s,{style:o,explode:i}));continue}if("matrix"===o){r=r.replace(n,`;${a(t,s)}`);continue}r=r.replace(n,"label"===o?`.${s}`:s)}return r}(b,m.params.path)),(v=m.querySerializer(m.params.query??{})).startsWith("?")&&(v=v.substring(1)),v&&(b+=`?${v}`),b),N),D={baseUrl:e,fetch:w,parseAs:T,querySerializer:I,bodySerializer:A};for(let e of g)if(e&&"object"==typeof e&&"function"==typeof e.onRequest){P.schemaPath=t,P.params=_;let r=await e.onRequest(P,D);if(r){if(!(r instanceof Request))throw Error("Middleware must return new Request() when modifying the request");P=r}}let x=await w(P);for(let t=g.length-1;t>=0;t--){let e=g[t];if(e&&"object"==typeof e&&"function"==typeof e.onResponse){let t=await e.onResponse(x,D);if(t){if(!(t instanceof Response))throw Error("Middleware must return new Response() when modifying the response");x=t}}}if(204===x.status||"0"===x.headers.get("Content-Length"))return x.ok?{data:{},response:x}:{error:{},response:x};if(x.ok)return"stream"===T?{data:x.body,response:x}:{data:await x[T](),response:x};let k=await x.text();try{k=JSON.parse(k)}catch{}return{error:k,response:x}}return{GET:async(t,e)=>m(t,{...e,method:"GET"}),PUT:async(t,e)=>m(t,{...e,method:"PUT"}),POST:async(t,e)=>m(t,{...e,method:"POST"}),DELETE:async(t,e)=>m(t,{...e,method:"DELETE"}),OPTIONS:async(t,e)=>m(t,{...e,method:"OPTIONS"}),HEAD:async(t,e)=>m(t,{...e,method:"HEAD"}),PATCH:async(t,e)=>m(t,{...e,method:"PATCH"}),TRACE:async(t,e)=>m(t,{...e,method:"TRACE"}),use(...t){for(let e of t)if(e){if("object"!=typeof e||!("onRequest"in e||"onResponse"in e))throw Error("Middleware must be an object with one of `onRequest()` or `onResponse()`");g.push(e)}},eject(...t){for(let e of t){let t=g.indexOf(e);-1!==t&&g.splice(t,1)}}}}function a(t,e,r){if(null==e)return"";if("object"==typeof e)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${r?.allowReserved===!0?e:encodeURIComponent(e)}`}function u(t,e,r){if(!e||"object"!=typeof e)return"";let n=[],i={simple:",",label:".",matrix:";"}[r.style]||"&";if("deepObject"!==r.style&&!1===r.explode){for(let t in e)n.push(t,!0===r.allowReserved?e[t]:encodeURIComponent(e[t]));let i=n.join(",");switch(r.style){case"form":return`${t}=${i}`;case"label":return`.${i}`;case"matrix":return`;${t}=${i}`;default:return i}}for(let i in e){let o="deepObject"===r.style?`${t}[${i}]`:i;n.push(a(o,e[i],r))}let o=n.join(i);return"label"===r.style||"matrix"===r.style?`${i}${o}`:o}function l(t,e,r){if(!Array.isArray(e))return"";if(!1===r.explode){let n={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[r.style]||",",i=(!0===r.allowReserved?e:e.map(t=>encodeURIComponent(t))).join(n);switch(r.style){case"simple":return i;case"label":return`.${i}`;case"matrix":return`;${t}=${i}`;default:return`${t}=${i}`}}let n={simple:",",label:".",matrix:";"}[r.style]||"&",i=[];for(let n of e)"simple"===r.style||"label"===r.style?i.push(!0===r.allowReserved?n:encodeURIComponent(n)):i.push(a(t,n,r));return"label"===r.style||"matrix"===r.style?`${n}${i.join(n)}`:i.join(n)}function c(t){return function(e){let r=[];if(e&&"object"==typeof e)for(let n in e){let i=e[n];if(null!=i){if(Array.isArray(i)){r.push(l(n,i,{style:"form",explode:!0,...t?.array,allowReserved:t?.allowReserved||!1}));continue}if("object"==typeof i){r.push(u(n,i,{style:"deepObject",explode:!0,...t?.object,allowReserved:t?.allowReserved||!1}));continue}r.push(a(n,i,t))}}return r.join("&")}}function p(t){return JSON.stringify(t)}function h(...t){let e=new Headers;for(let r of t)if(r&&"object"==typeof r)for(let[t,n]of r instanceof Headers?r.entries():Object.entries(r))if(null===n)e.delete(t);else if(Array.isArray(n))for(let r of n)e.append(t,r);else void 0!==n&&e.set(t,n);return e}},64539:function(t,e,r){"use strict";r.d(e,{$R:function(){return o},DY:function(){return u},QB:function(){return f},Sm:function(){return s},Tw:function(){return p},Z$:function(){return a},gx:function(){return l},ki:function(){return c},ru:function(){return i},uY:function(){return d},w6:function(){return h}});var n=r(56385);let i=(t,e)=>t.reduce((t,r)=>{let n=e(r);return t[n]||(t[n]=[]),t[n].push(r),t},{});function o(...t){return t&&t.length?Array(Math.max(...t.map(({length:t})=>t))).fill([]).map((e,r)=>t.map(t=>t[r])):[]}function s(t,e){return(t||[]).reduce((t,r)=>t+(e?e(r):r),0)}let a=(t,e)=>t?.length>0?t[t.length-1]:e,u=(t,e,r=!1)=>t?t.slice().sort(!0===r?(t,r)=>e(r)-e(t):(t,r)=>e(t)-e(r)):[],l=(t,e,r)=>{if(!t)return[];if(void 0===e)return[...t];for(let n=0;n<t.length;n++)if(r(t[n],n))return[...t.slice(0,n),e,...t.slice(n+1,t.length)];return[...t]},c=(t,e=2)=>Array(Math.ceil(t.length/e)).fill(null).map((r,n)=>t.slice(n*e,n*e+e)),p=(t,e)=>Object.values(t.reduce((t,r)=>{let n=e?e(r):r;return t[n]||(t[n]=r),t},{}));function*h(t,e,r=t=>t,i=1){let o=(0,n.mf)(r)?r:()=>r,s=e?t:0,a=e??t;for(let t=s;t<=a&&(yield o(t),!(t+i>a));t+=i);}let f=t=>t?.filter(t=>!!t)??[];function d(t,e){if(0===t.length)return t;let r=e%t.length;return 0===r?t:[...t.slice(-r,t.length),...t.slice(0,-r)]}},92726:function(t,e,r){"use strict";r.d(e,{Q8:function(){return i},lL:function(){return n}});let n=(t,e=t=>void 0===t)=>t?Object.keys(t).reduce((r,n)=>(e(t[n])||(r[n]=t[n]),r),{}):{},i=(t,e)=>Object.keys(t).reduce((r,n)=>(r[n]=e(t[n],n),r),{})},56385:function(t,e,r){"use strict";r.d(e,{Kn:function(){return i},hj:function(){return s},mf:function(){return o},tI:function(){return u},xb:function(){return l}});let n=t=>!!t&&t.constructor===Symbol,i=t=>!!t&&t.constructor===Object,o=t=>!!(t&&t.constructor&&t.call&&t.apply),s=t=>{try{return Number(t)===t}catch{return!1}},a=t=>"[object Date]"===Object.prototype.toString.call(t),u=t=>!!(t&&t.then&&o(t.then)),l=t=>{if(!0===t||!1===t||null==t)return!0;if(s(t))return 0===t;if(a(t))return isNaN(t.getTime());if(o(t)||n(t))return!1;let e=t.length;if(s(e))return 0===e;let r=t.size;return s(r)?0===r:0===Object.keys(t).length}}}]);
//# sourceMappingURL=3582-20eac02fae2ffdd6.js.map