Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-hook-consent

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hook-consent - npm Package Compare versions

Comparing version 3.4.0 to 3.5.0

dist/core/local-storage/remove.d.ts

2

dist/Context.d.ts

@@ -20,2 +20,4 @@ import React from 'react';

cookies?: Array<Cookie>;
localStorage?: Array<string>;
sessionStorage?: Array<string>;
mandatory?: boolean;

@@ -22,0 +24,0 @@ };

8

dist/index.js

@@ -1,7 +0,7 @@

var kt=Object.create;var le=Object.defineProperty,Bt=Object.defineProperties,It=Object.getOwnPropertyDescriptor,At=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertyNames,Te=Object.getOwnPropertySymbols,Lt=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable;var Ue=(i,s,l)=>s in i?le(i,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):i[s]=l,se=(i,s)=>{for(var l in s||={})De.call(s,l)&&Ue(i,l,s[l]);if(Te)for(var l of Te(s))Ot.call(s,l)&&Ue(i,l,s[l]);return i},ae=(i,s)=>Bt(i,At(s));var te=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports),Tt=(i,s)=>{for(var l in s)le(i,l,{get:s[l],enumerable:!0})},Me=(i,s,l,f)=>{if(s&&typeof s=="object"||typeof s=="function")for(let y of Nt(s))!De.call(i,y)&&y!==l&&le(i,y,{get:()=>s[y],enumerable:!(f=It(s,y))||f.enumerable});return i};var Ce=(i,s,l)=>(l=i!=null?kt(Lt(i)):{},Me(s||!i||!i.__esModule?le(l,"default",{value:i,enumerable:!0}):l,i)),Ut=i=>Me(le({},"__esModule",{value:!0}),i);var Fe=te((un,ge)=>{(function(){"use strict";var i={}.hasOwnProperty,s="[native code]";function l(){for(var f=[],y=0;y<arguments.length;y++){var B=arguments[y];if(B){var U=typeof B;if(U==="string"||U==="number")f.push(B);else if(Array.isArray(B)){if(B.length){var T=l.apply(null,B);T&&f.push(T)}}else if(U==="object"){if(B.toString!==Object.prototype.toString&&!B.toString.toString().includes("[native code]")){f.push(B.toString());continue}for(var N in B)i.call(B,N)&&B[N]&&f.push(N)}}}return f.join(" ")}typeof ge<"u"&&ge.exports?(l.default=l,ge.exports=l):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return l}):window.classNames=l})()});var Re=te((ln,Ve)=>{"use strict";var Dt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ve.exports=Dt});var We=te((fn,He)=>{"use strict";var Mt=Re();function Ye(){}function qe(){}qe.resetWarningCache=Ye;He.exports=function(){function i(f,y,B,U,T,N){if(N!==Mt){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}}i.isRequired=i;function s(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:qe,resetWarningCache:Ye};return l.PropTypes=l,l}});var Xe=te((hn,$e)=>{$e.exports=We()();var dn,pn});var Ke=te(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var Pt=require("react"),Je=jt(Pt);function jt(i){return i&&i.__esModule?i:{default:i}}Ee.default=function(){return Je.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},Je.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))}});var Ge=te(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});var Ft=require("react"),ze=Vt(Ft);function Vt(i){return i&&i.__esModule?i:{default:i}}xe.default=function(){return ze.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},ze.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}});var Qe=te(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.pointerCoord=Rt;function Rt(i){if(i){var s=i.changedTouches;if(s&&s.length>0){var l=s[0];return{x:l.clientX,y:l.clientY}}var f=i.pageX;if(f!==void 0)return{x:f,y:i.pageY}}return{x:0,y:0}}});var et=te(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});var Yt=Object.assign||function(i){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(i[f]=l[f])}return i},qt=function(){function i(s,l){for(var f=0;f<l.length;f++){var y=l[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(s,y.key,y)}}return function(s,l,f){return l&&i(s.prototype,l),f&&i(s,f),s}}(),Ze=require("react"),re=fe(Ze),Ht=Fe(),Wt=fe(Ht),$t=Xe(),X=fe($t),Xt=Ke(),Jt=fe(Xt),Kt=Ge(),zt=fe(Kt),Be=Qe();function fe(i){return i&&i.__esModule?i:{default:i}}function Gt(i,s){var l={};for(var f in i)s.indexOf(f)>=0||Object.prototype.hasOwnProperty.call(i,f)&&(l[f]=i[f]);return l}function Qt(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function Zt(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:i}function en(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}var me=function(i){en(s,i);function s(l){Qt(this,s);var f=Zt(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,l));return f.handleClick=f.handleClick.bind(f),f.handleTouchStart=f.handleTouchStart.bind(f),f.handleTouchMove=f.handleTouchMove.bind(f),f.handleTouchEnd=f.handleTouchEnd.bind(f),f.handleFocus=f.handleFocus.bind(f),f.handleBlur=f.handleBlur.bind(f),f.previouslyChecked=!!(l.checked||l.defaultChecked),f.state={checked:!!(l.checked||l.defaultChecked),hasFocus:!1},f}return qt(s,[{key:"componentDidUpdate",value:function(f){f.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(f){if(!this.props.disabled){var y=this.input;if(f.target!==y&&!this.moved){this.previouslyChecked=y.checked,f.preventDefault(),y.focus(),y.click();return}var B=this.props.hasOwnProperty("checked")?this.props.checked:y.checked;this.setState({checked:B})}}},{key:"handleTouchStart",value:function(f){this.props.disabled||(this.startX=(0,Be.pointerCoord)(f).x,this.activated=!0)}},{key:"handleTouchMove",value:function(f){if(this.activated&&(this.moved=!0,this.startX)){var y=(0,Be.pointerCoord)(f).x;this.state.checked&&y+15<this.startX?(this.setState({checked:!1}),this.startX=y,this.activated=!0):y-15>this.startX&&(this.setState({checked:!0}),this.startX=y,this.activated=y<this.startX+5)}}},{key:"handleTouchEnd",value:function(f){if(this.moved){var y=this.input;if(f.preventDefault(),this.startX){var B=(0,Be.pointerCoord)(f).x;this.previouslyChecked===!0&&this.startX+4>B?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,y.click()):this.startX-4<B&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,y.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(f){var y=this.props.onFocus;y&&y(f),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(f){var y=this.props.onBlur;y&&y(f),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(f){var y=this.props.icons;return y?y[f]===void 0?s.defaultProps.icons[f]:y[f]:null}},{key:"render",value:function(){var f=this,y=this.props,B=y.className,U=y.icons,T=Gt(y,["className","icons"]),N=(0,Wt.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},B);return re.default.createElement("div",{className:N,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},re.default.createElement("div",{className:"react-toggle-track"},re.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),re.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),re.default.createElement("div",{className:"react-toggle-thumb"}),re.default.createElement("input",Yt({},T,{ref:function(H){f.input=H},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),s}(Ze.PureComponent);Ie.default=me;me.displayName="Toggle";me.defaultProps={icons:{checked:re.default.createElement(Jt.default,null),unchecked:re.default.createElement(zt.default,null)}};me.propTypes={checked:X.default.bool,disabled:X.default.bool,defaultChecked:X.default.bool,onChange:X.default.func,onFocus:X.default.func,onBlur:X.default.func,className:X.default.string,name:X.default.string,value:X.default.string,id:X.default.string,"aria-labelledby":X.default.string,"aria-label":X.default.string,icons:X.default.oneOfType([X.default.bool,X.default.shape({checked:X.default.node,unchecked:X.default.node})])}});var ut=te((at,ct)=>{(function(i){var s;typeof at=="object"?ct.exports=i():typeof define=="function"&&define.amd?define(i):(typeof window<"u"?s=window:typeof global<"u"?s=global:typeof self<"u"&&(s=self),s.objectHash=i())})(function(){return function i(s,l,f){function y(T,N){if(!l[T]){if(!s[T]){var M=typeof require=="function"&&require;if(!N&&M)return M(T,!0);if(B)return B(T,!0);throw new Error("Cannot find module '"+T+"'")}N=l[T]={exports:{}},s[T][0].call(N.exports,function(H){var J=s[T][1][H];return y(J||H)},N,N.exports,i,s,l,f)}return l[T].exports}for(var B=typeof require=="function"&&require,U=0;U<f.length;U++)y(f[U]);return y}({1:[function(i,s,l){(function(f,y,B,U,T,N,M,H,J){"use strict";var v=i("crypto");function x(c,p){p=w(c,p);var n;return(n=p.algorithm!=="passthrough"?v.createHash(p.algorithm):new I).write===void 0&&(n.write=n.update,n.end=n.update),b(p,n).dispatch(c),n.update||n.end(""),n.digest?n.digest(p.encoding==="buffer"?void 0:p.encoding):(c=n.read(),p.encoding!=="buffer"?c.toString(p.encoding):c)}(l=s.exports=x).sha1=function(c){return x(c)},l.keys=function(c){return x(c,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},l.MD5=function(c){return x(c,{algorithm:"md5",encoding:"hex"})},l.keysMD5=function(c){return x(c,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=v.getHashes?v.getHashes().slice():["sha1","md5"],C=(h.push("passthrough"),["buffer","hex","binary","base64"]);function w(c,p){var n={};if(n.algorithm=(p=p||{}).algorithm||"sha1",n.encoding=p.encoding||"hex",n.excludeValues=!!p.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=p.ignoreUnknown===!0,n.respectType=p.respectType!==!1,n.respectFunctionNames=p.respectFunctionNames!==!1,n.respectFunctionProperties=p.respectFunctionProperties!==!1,n.unorderedArrays=p.unorderedArrays===!0,n.unorderedSets=p.unorderedSets!==!1,n.unorderedObjects=p.unorderedObjects!==!1,n.replacer=p.replacer||void 0,n.excludeKeys=p.excludeKeys||void 0,c===void 0)throw new Error("Object argument required.");for(var o=0;o<h.length;++o)h[o].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=h[o]);if(h.indexOf(n.algorithm)===-1)throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+h.join(", "));if(C.indexOf(n.encoding)===-1&&n.algorithm!=="passthrough")throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+C.join(", "));return n}function _(c){if(typeof c=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(c))!=null}function b(c,p,n){n=n||[];function o(t){return p.update?p.update(t,"utf8"):p.write(t,"utf8")}return{dispatch:function(t){return this["_"+((t=c.replacer?c.replacer(t):t)===null?"null":typeof t)](t)},_object:function(t){var u,d=Object.prototype.toString.call(t),L=/\[object (.*)\]/i.exec(d);if(L=(L=L?L[1]:"unknown:["+d+"]").toLowerCase(),0<=(d=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+d+"]");if(n.push(t),B!==void 0&&B.isBuffer&&B.isBuffer(t))return o("buffer:"),o(t);if(L==="object"||L==="function"||L==="asyncfunction")return d=Object.keys(t),c.unorderedObjects&&(d=d.sort()),c.respectType===!1||_(t)||d.splice(0,0,"prototype","__proto__","constructor"),c.excludeKeys&&(d=d.filter(function(A){return!c.excludeKeys(A)})),o("object:"+d.length+":"),u=this,d.forEach(function(A){u.dispatch(A),o(":"),c.excludeValues||u.dispatch(t[A]),o(",")});if(!this["_"+L]){if(c.ignoreUnknown)return o("["+L+"]");throw new Error('Unknown object type "'+L+'"')}this["_"+L](t)},_array:function(t,A){A=A!==void 0?A:c.unorderedArrays!==!1;var d=this;if(o("array:"+t.length+":"),!A||t.length<=1)return t.forEach(function(O){return d.dispatch(O)});var L=[],A=t.map(function(O){var k=new I,j=n.slice();return b(c,k,j).dispatch(O),L=L.concat(j.slice(n.length)),k.read().toString()});return n=n.concat(L),A.sort(),this._array(A,!1)},_date:function(t){return o("date:"+t.toJSON())},_symbol:function(t){return o("symbol:"+t.toString())},_error:function(t){return o("error:"+t.toString())},_boolean:function(t){return o("bool:"+t.toString())},_string:function(t){o("string:"+t.length+":"),o(t.toString())},_function:function(t){o("fn:"),_(t)?this.dispatch("[native]"):this.dispatch(t.toString()),c.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),c.respectFunctionProperties&&this._object(t)},_number:function(t){return o("number:"+t.toString())},_xml:function(t){return o("xml:"+t.toString())},_null:function(){return o("Null")},_undefined:function(){return o("Undefined")},_regexp:function(t){return o("regex:"+t.toString())},_uint8array:function(t){return o("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return o("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return o("int8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return o("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return o("int16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return o("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return o("int32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return o("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return o("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return o("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return o("url:"+t.toString())},_map:function(t){return o("map:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_set:function(t){return o("set:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_file:function(t){return o("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},_blob:function(){if(c.ignoreUnknown)return o("[blob]");throw Error(`Hashing Blob objects is currently not supported
var It=Object.create;var le=Object.defineProperty,At=Object.defineProperties,Nt=Object.getOwnPropertyDescriptor,Ot=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertyNames,Te=Object.getOwnPropertySymbols,Tt=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var Ue=(o,i,l)=>i in o?le(o,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[i]=l,se=(o,i)=>{for(var l in i||={})De.call(i,l)&&Ue(o,l,i[l]);if(Te)for(var l of Te(i))Ut.call(i,l)&&Ue(o,l,i[l]);return o},ae=(o,i)=>At(o,Ot(i));var te=(o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports),Dt=(o,i)=>{for(var l in i)le(o,l,{get:i[l],enumerable:!0})},Me=(o,i,l,f)=>{if(i&&typeof i=="object"||typeof i=="function")for(let y of Lt(i))!De.call(o,y)&&y!==l&&le(o,y,{get:()=>i[y],enumerable:!(f=Nt(i,y))||f.enumerable});return o};var Ce=(o,i,l)=>(l=o!=null?It(Tt(o)):{},Me(i||!o||!o.__esModule?le(l,"default",{value:o,enumerable:!0}):l,o)),Mt=o=>Me(le({},"__esModule",{value:!0}),o);var Fe=te((fn,ge)=>{(function(){"use strict";var o={}.hasOwnProperty,i="[native code]";function l(){for(var f=[],y=0;y<arguments.length;y++){var B=arguments[y];if(B){var U=typeof B;if(U==="string"||U==="number")f.push(B);else if(Array.isArray(B)){if(B.length){var T=l.apply(null,B);T&&f.push(T)}}else if(U==="object"){if(B.toString!==Object.prototype.toString&&!B.toString.toString().includes("[native code]")){f.push(B.toString());continue}for(var N in B)o.call(B,N)&&B[N]&&f.push(N)}}}return f.join(" ")}typeof ge<"u"&&ge.exports?(l.default=l,ge.exports=l):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return l}):window.classNames=l})()});var Re=te((dn,Ve)=>{"use strict";var Pt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";Ve.exports=Pt});var We=te((pn,He)=>{"use strict";var jt=Re();function Ye(){}function qe(){}qe.resetWarningCache=Ye;He.exports=function(){function o(f,y,B,U,T,N){if(N!==jt){var M=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw M.name="Invariant Violation",M}}o.isRequired=o;function i(){return o}var l={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:qe,resetWarningCache:Ye};return l.PropTypes=l,l}});var Xe=te((mn,$e)=>{$e.exports=We()();var hn,gn});var Ke=te(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var Ft=require("react"),Je=Vt(Ft);function Vt(o){return o&&o.__esModule?o:{default:o}}Ee.default=function(){return Je.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},Je.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))}});var Ge=te(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});var Rt=require("react"),ze=Yt(Rt);function Yt(o){return o&&o.__esModule?o:{default:o}}xe.default=function(){return ze.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},ze.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}});var Qe=te(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.pointerCoord=qt;function qt(o){if(o){var i=o.changedTouches;if(i&&i.length>0){var l=i[0];return{x:l.clientX,y:l.clientY}}var f=o.pageX;if(f!==void 0)return{x:f,y:o.pageY}}return{x:0,y:0}}});var et=te(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});var Ht=Object.assign||function(o){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(o[f]=l[f])}return o},Wt=function(){function o(i,l){for(var f=0;f<l.length;f++){var y=l[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(i,y.key,y)}}return function(i,l,f){return l&&o(i.prototype,l),f&&o(i,f),i}}(),Ze=require("react"),re=fe(Ze),$t=Fe(),Xt=fe($t),Jt=Xe(),X=fe(Jt),Kt=Ke(),zt=fe(Kt),Gt=Ge(),Qt=fe(Gt),Be=Qe();function fe(o){return o&&o.__esModule?o:{default:o}}function Zt(o,i){var l={};for(var f in o)i.indexOf(f)>=0||Object.prototype.hasOwnProperty.call(o,f)&&(l[f]=o[f]);return l}function en(o,i){if(!(o instanceof i))throw new TypeError("Cannot call a class as a function")}function tn(o,i){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:o}function nn(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(o,i):o.__proto__=i)}var me=function(o){nn(i,o);function i(l){en(this,i);var f=tn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,l));return f.handleClick=f.handleClick.bind(f),f.handleTouchStart=f.handleTouchStart.bind(f),f.handleTouchMove=f.handleTouchMove.bind(f),f.handleTouchEnd=f.handleTouchEnd.bind(f),f.handleFocus=f.handleFocus.bind(f),f.handleBlur=f.handleBlur.bind(f),f.previouslyChecked=!!(l.checked||l.defaultChecked),f.state={checked:!!(l.checked||l.defaultChecked),hasFocus:!1},f}return Wt(i,[{key:"componentDidUpdate",value:function(f){f.checked!==this.props.checked&&this.setState({checked:!!this.props.checked})}},{key:"handleClick",value:function(f){if(!this.props.disabled){var y=this.input;if(f.target!==y&&!this.moved){this.previouslyChecked=y.checked,f.preventDefault(),y.focus(),y.click();return}var B=this.props.hasOwnProperty("checked")?this.props.checked:y.checked;this.setState({checked:B})}}},{key:"handleTouchStart",value:function(f){this.props.disabled||(this.startX=(0,Be.pointerCoord)(f).x,this.activated=!0)}},{key:"handleTouchMove",value:function(f){if(this.activated&&(this.moved=!0,this.startX)){var y=(0,Be.pointerCoord)(f).x;this.state.checked&&y+15<this.startX?(this.setState({checked:!1}),this.startX=y,this.activated=!0):y-15>this.startX&&(this.setState({checked:!0}),this.startX=y,this.activated=y<this.startX+5)}}},{key:"handleTouchEnd",value:function(f){if(this.moved){var y=this.input;if(f.preventDefault(),this.startX){var B=(0,Be.pointerCoord)(f).x;this.previouslyChecked===!0&&this.startX+4>B?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,y.click()):this.startX-4<B&&this.previouslyChecked!==this.state.checked&&(this.setState({checked:!0}),this.previouslyChecked=this.state.checked,y.click()),this.activated=!1,this.startX=null,this.moved=!1}}}},{key:"handleFocus",value:function(f){var y=this.props.onFocus;y&&y(f),this.setState({hasFocus:!0})}},{key:"handleBlur",value:function(f){var y=this.props.onBlur;y&&y(f),this.setState({hasFocus:!1})}},{key:"getIcon",value:function(f){var y=this.props.icons;return y?y[f]===void 0?i.defaultProps.icons[f]:y[f]:null}},{key:"render",value:function(){var f=this,y=this.props,B=y.className,U=y.icons,T=Zt(y,["className","icons"]),N=(0,Xt.default)("react-toggle",{"react-toggle--checked":this.state.checked,"react-toggle--focus":this.state.hasFocus,"react-toggle--disabled":this.props.disabled},B);return re.default.createElement("div",{className:N,onClick:this.handleClick,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd},re.default.createElement("div",{className:"react-toggle-track"},re.default.createElement("div",{className:"react-toggle-track-check"},this.getIcon("checked")),re.default.createElement("div",{className:"react-toggle-track-x"},this.getIcon("unchecked"))),re.default.createElement("div",{className:"react-toggle-thumb"}),re.default.createElement("input",Ht({},T,{ref:function(H){f.input=H},onFocus:this.handleFocus,onBlur:this.handleBlur,className:"react-toggle-screenreader-only",type:"checkbox"})))}}]),i}(Ze.PureComponent);Ie.default=me;me.displayName="Toggle";me.defaultProps={icons:{checked:re.default.createElement(zt.default,null),unchecked:re.default.createElement(Qt.default,null)}};me.propTypes={checked:X.default.bool,disabled:X.default.bool,defaultChecked:X.default.bool,onChange:X.default.func,onFocus:X.default.func,onBlur:X.default.func,className:X.default.string,name:X.default.string,value:X.default.string,id:X.default.string,"aria-labelledby":X.default.string,"aria-label":X.default.string,icons:X.default.oneOfType([X.default.bool,X.default.shape({checked:X.default.node,unchecked:X.default.node})])}});var ut=te((at,ct)=>{(function(o){var i;typeof at=="object"?ct.exports=o():typeof define=="function"&&define.amd?define(o):(typeof window<"u"?i=window:typeof global<"u"?i=global:typeof self<"u"&&(i=self),i.objectHash=o())})(function(){return function o(i,l,f){function y(T,N){if(!l[T]){if(!i[T]){var M=typeof require=="function"&&require;if(!N&&M)return M(T,!0);if(B)return B(T,!0);throw new Error("Cannot find module '"+T+"'")}N=l[T]={exports:{}},i[T][0].call(N.exports,function(H){var J=i[T][1][H];return y(J||H)},N,N.exports,o,i,l,f)}return l[T].exports}for(var B=typeof require=="function"&&require,U=0;U<f.length;U++)y(f[U]);return y}({1:[function(o,i,l){(function(f,y,B,U,T,N,M,H,J){"use strict";var v=o("crypto");function x(c,p){p=w(c,p);var n;return(n=p.algorithm!=="passthrough"?v.createHash(p.algorithm):new I).write===void 0&&(n.write=n.update,n.end=n.update),b(p,n).dispatch(c),n.update||n.end(""),n.digest?n.digest(p.encoding==="buffer"?void 0:p.encoding):(c=n.read(),p.encoding!=="buffer"?c.toString(p.encoding):c)}(l=i.exports=x).sha1=function(c){return x(c)},l.keys=function(c){return x(c,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},l.MD5=function(c){return x(c,{algorithm:"md5",encoding:"hex"})},l.keysMD5=function(c){return x(c,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=v.getHashes?v.getHashes().slice():["sha1","md5"],C=(h.push("passthrough"),["buffer","hex","binary","base64"]);function w(c,p){var n={};if(n.algorithm=(p=p||{}).algorithm||"sha1",n.encoding=p.encoding||"hex",n.excludeValues=!!p.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=p.ignoreUnknown===!0,n.respectType=p.respectType!==!1,n.respectFunctionNames=p.respectFunctionNames!==!1,n.respectFunctionProperties=p.respectFunctionProperties!==!1,n.unorderedArrays=p.unorderedArrays===!0,n.unorderedSets=p.unorderedSets!==!1,n.unorderedObjects=p.unorderedObjects!==!1,n.replacer=p.replacer||void 0,n.excludeKeys=p.excludeKeys||void 0,c===void 0)throw new Error("Object argument required.");for(var s=0;s<h.length;++s)h[s].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=h[s]);if(h.indexOf(n.algorithm)===-1)throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+h.join(", "));if(C.indexOf(n.encoding)===-1&&n.algorithm!=="passthrough")throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+C.join(", "));return n}function _(c){if(typeof c=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(c))!=null}function b(c,p,n){n=n||[];function s(t){return p.update?p.update(t,"utf8"):p.write(t,"utf8")}return{dispatch:function(t){return this["_"+((t=c.replacer?c.replacer(t):t)===null?"null":typeof t)](t)},_object:function(t){var u,d=Object.prototype.toString.call(t),O=/\[object (.*)\]/i.exec(d);if(O=(O=O?O[1]:"unknown:["+d+"]").toLowerCase(),0<=(d=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+d+"]");if(n.push(t),B!==void 0&&B.isBuffer&&B.isBuffer(t))return s("buffer:"),s(t);if(O==="object"||O==="function"||O==="asyncfunction")return d=Object.keys(t),c.unorderedObjects&&(d=d.sort()),c.respectType===!1||_(t)||d.splice(0,0,"prototype","__proto__","constructor"),c.excludeKeys&&(d=d.filter(function(A){return!c.excludeKeys(A)})),s("object:"+d.length+":"),u=this,d.forEach(function(A){u.dispatch(A),s(":"),c.excludeValues||u.dispatch(t[A]),s(",")});if(!this["_"+O]){if(c.ignoreUnknown)return s("["+O+"]");throw new Error('Unknown object type "'+O+'"')}this["_"+O](t)},_array:function(t,A){A=A!==void 0?A:c.unorderedArrays!==!1;var d=this;if(s("array:"+t.length+":"),!A||t.length<=1)return t.forEach(function(L){return d.dispatch(L)});var O=[],A=t.map(function(L){var k=new I,j=n.slice();return b(c,k,j).dispatch(L),O=O.concat(j.slice(n.length)),k.read().toString()});return n=n.concat(O),A.sort(),this._array(A,!1)},_date:function(t){return s("date:"+t.toJSON())},_symbol:function(t){return s("symbol:"+t.toString())},_error:function(t){return s("error:"+t.toString())},_boolean:function(t){return s("bool:"+t.toString())},_string:function(t){s("string:"+t.length+":"),s(t.toString())},_function:function(t){s("fn:"),_(t)?this.dispatch("[native]"):this.dispatch(t.toString()),c.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(t.name)),c.respectFunctionProperties&&this._object(t)},_number:function(t){return s("number:"+t.toString())},_xml:function(t){return s("xml:"+t.toString())},_null:function(){return s("Null")},_undefined:function(){return s("Undefined")},_regexp:function(t){return s("regex:"+t.toString())},_uint8array:function(t){return s("uint8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint8clampedarray:function(t){return s("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(t))},_int8array:function(t){return s("int8array:"),this.dispatch(Array.prototype.slice.call(t))},_uint16array:function(t){return s("uint16array:"),this.dispatch(Array.prototype.slice.call(t))},_int16array:function(t){return s("int16array:"),this.dispatch(Array.prototype.slice.call(t))},_uint32array:function(t){return s("uint32array:"),this.dispatch(Array.prototype.slice.call(t))},_int32array:function(t){return s("int32array:"),this.dispatch(Array.prototype.slice.call(t))},_float32array:function(t){return s("float32array:"),this.dispatch(Array.prototype.slice.call(t))},_float64array:function(t){return s("float64array:"),this.dispatch(Array.prototype.slice.call(t))},_arraybuffer:function(t){return s("arraybuffer:"),this.dispatch(new Uint8Array(t))},_url:function(t){return s("url:"+t.toString())},_map:function(t){return s("map:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_set:function(t){return s("set:"),t=Array.from(t),this._array(t,c.unorderedSets!==!1)},_file:function(t){return s("file:"),this.dispatch([t.name,t.size,t.type,t.lastModfied])},_blob:function(){if(c.ignoreUnknown)return s("[blob]");throw Error(`Hashing Blob objects is currently not supported
(see https://github.com/puleos/object-hash/issues/26)
Use "options.replacer" or "options.ignoreUnknown"
`)},_domwindow:function(){return o("domwindow")},_bigint:function(t){return o("bigint:"+t.toString())},_process:function(){return o("process")},_timer:function(){return o("timer")},_pipe:function(){return o("pipe")},_tcp:function(){return o("tcp")},_udp:function(){return o("udp")},_tty:function(){return o("tty")},_statwatcher:function(){return o("statwatcher")},_securecontext:function(){return o("securecontext")},_connection:function(){return o("connection")},_zlib:function(){return o("zlib")},_context:function(){return o("context")},_nodescript:function(){return o("nodescript")},_httpparser:function(){return o("httpparser")},_dataview:function(){return o("dataview")},_signal:function(){return o("signal")},_fsevent:function(){return o("fsevent")},_tlswrap:function(){return o("tlswrap")}}}function I(){return{buf:"",write:function(c){this.buf+=c},end:function(c){this.buf+=c},read:function(){return this.buf}}}l.writeToStream=function(c,p,n){return n===void 0&&(n=p,p={}),b(p=w(c,p),n).dispatch(c)}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(i,s,l){(function(f,y,B,U,T,N,M,H,J){(function(v){"use strict";var x=typeof Uint8Array<"u"?Uint8Array:Array,h="+".charCodeAt(0),C="/".charCodeAt(0),w="0".charCodeAt(0),_="a".charCodeAt(0),b="A".charCodeAt(0),I="-".charCodeAt(0),c="_".charCodeAt(0);function p(n){return n=n.charCodeAt(0),n===h||n===I?62:n===C||n===c?63:n<w?-1:n<w+10?n-w+26+26:n<b+26?n-b:n<_+26?n-_+26:void 0}v.toByteArray=function(n){var o,t;if(0<n.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var u=n.length,u=n.charAt(u-2)==="="?2:n.charAt(u-1)==="="?1:0,d=new x(3*n.length/4-u),L=0<u?n.length-4:n.length,A=0;function O(k){d[A++]=k}for(o=0;o<L;o+=4,0)O((16711680&(t=p(n.charAt(o))<<18|p(n.charAt(o+1))<<12|p(n.charAt(o+2))<<6|p(n.charAt(o+3))))>>16),O((65280&t)>>8),O(255&t);return u==2?O(255&(t=p(n.charAt(o))<<2|p(n.charAt(o+1))>>4)):u==1&&(O((t=p(n.charAt(o))<<10|p(n.charAt(o+1))<<4|p(n.charAt(o+2))>>2)>>8&255),O(255&t)),d},v.fromByteArray=function(n){var o,t,u,d,L=n.length%3,A="";function O(k){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k)}for(o=0,u=n.length-L;o<u;o+=3)t=(n[o]<<16)+(n[o+1]<<8)+n[o+2],A+=O((d=t)>>18&63)+O(d>>12&63)+O(d>>6&63)+O(63&d);switch(L){case 1:A=(A+=O((t=n[n.length-1])>>2))+O(t<<4&63)+"==";break;case 2:A=(A=(A+=O((t=(n[n.length-2]<<8)+n[n.length-1])>>10))+O(t>>4&63))+O(t<<2&63)+"="}return A}})(l===void 0?this.base64js={}:l)}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(i,s,l){(function(f,y,h,U,T,N,M,H,J){var v=i("base64-js"),x=i("ieee754");function h(e,r,a){if(!(this instanceof h))return new h(e,r,a);var m,g,E,D,R=typeof e;if(r==="base64"&&R=="string")for(e=(D=e).trim?D.trim():D.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if(R=="number")m=K(e);else if(R=="string")m=h.byteLength(e,r);else{if(R!="object")throw new Error("First argument needs to be a number, array or string.");m=K(e.length)}if(h._useTypedArrays?g=h._augment(new Uint8Array(m)):((g=this).length=m,g._isBuffer=!0),h._useTypedArrays&&typeof e.byteLength=="number")g._set(e);else if(V(D=e)||h.isBuffer(D)||D&&typeof D=="object"&&typeof D.length=="number")for(E=0;E<m;E++)h.isBuffer(e)?g[E]=e.readUInt8(E):g[E]=e[E];else if(R=="string")g.write(e,0,r);else if(R=="number"&&!h._useTypedArrays&&!a)for(E=0;E<m;E++)g[E]=0;return g}function C(e,r,a,m){return h._charsWritten=pe(function(g){for(var E=[],D=0;D<g.length;D++)E.push(255&g.charCodeAt(D));return E}(r),e,a,m)}function w(e,r,a,m){return h._charsWritten=pe(function(g){for(var E,D,R=[],W=0;W<g.length;W++)D=g.charCodeAt(W),E=D>>8,D=D%256,R.push(D),R.push(E);return R}(r),e,a,m)}function _(e,r,a){var m="";a=Math.min(e.length,a);for(var g=r;g<a;g++)m+=String.fromCharCode(e[g]);return m}function b(e,r,a,E){E||(S(typeof a=="boolean","missing or invalid endian"),S(r!=null,"missing offset"),S(r+1<e.length,"Trying to read beyond buffer length"));var g,E=e.length;if(!(E<=r))return a?(g=e[r],r+1<E&&(g|=e[r+1]<<8)):(g=e[r]<<8,r+1<E&&(g|=e[r+1])),g}function I(e,r,a,E){E||(S(typeof a=="boolean","missing or invalid endian"),S(r!=null,"missing offset"),S(r+3<e.length,"Trying to read beyond buffer length"));var g,E=e.length;if(!(E<=r))return a?(r+2<E&&(g=e[r+2]<<16),r+1<E&&(g|=e[r+1]<<8),g|=e[r],r+3<E&&(g+=e[r+3]<<24>>>0)):(r+1<E&&(g=e[r+1]<<16),r+2<E&&(g|=e[r+2]<<8),r+3<E&&(g|=e[r+3]),g+=e[r]<<24>>>0),g}function c(e,r,a,m){if(m||(S(typeof a=="boolean","missing or invalid endian"),S(r!=null,"missing offset"),S(r+1<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return m=b(e,r,a,!0),32768&m?-1*(65535-m+1):m}function p(e,r,a,m){if(m||(S(typeof a=="boolean","missing or invalid endian"),S(r!=null,"missing offset"),S(r+3<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return m=I(e,r,a,!0),2147483648&m?-1*(4294967295-m+1):m}function n(e,r,a,m){return m||(S(typeof a=="boolean","missing or invalid endian"),S(r+3<e.length,"Trying to read beyond buffer length")),x.read(e,r,a,23,4)}function o(e,r,a,m){return m||(S(typeof a=="boolean","missing or invalid endian"),S(r+7<e.length,"Trying to read beyond buffer length")),x.read(e,r,a,52,8)}function t(e,r,a,m,g){if(g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+1<e.length,"trying to write beyond buffer length"),we(r,65535)),g=e.length,!(g<=a))for(var E=0,D=Math.min(g-a,2);E<D;E++)e[a+E]=(r&255<<8*(m?E:1-E))>>>8*(m?E:1-E)}function u(e,r,a,m,g){if(g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+3<e.length,"trying to write beyond buffer length"),we(r,4294967295)),g=e.length,!(g<=a))for(var E=0,D=Math.min(g-a,4);E<D;E++)e[a+E]=r>>>8*(m?E:3-E)&255}function d(e,r,a,m,g){g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+1<e.length,"Trying to write beyond buffer length"),_e(r,32767,-32768)),e.length<=a||t(e,0<=r?r:65535+r+1,a,m,g)}function L(e,r,a,m,g){g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+3<e.length,"Trying to write beyond buffer length"),_e(r,2147483647,-2147483648)),e.length<=a||u(e,0<=r?r:4294967295+r+1,a,m,g)}function A(e,r,a,m,g){g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+3<e.length,"Trying to write beyond buffer length"),Le(r,34028234663852886e22,-34028234663852886e22)),e.length<=a||x.write(e,r,a,m,23,4)}function O(e,r,a,m,g){g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+7<e.length,"Trying to write beyond buffer length"),Le(r,17976931348623157e292,-17976931348623157e292)),e.length<=a||x.write(e,r,a,m,52,8)}l.Buffer=h,l.SlowBuffer=h,l.INSPECT_MAX_BYTES=50,h.poolSize=8192,h._useTypedArrays=function(){try{var e=new ArrayBuffer(0),r=new Uint8Array(e);return r.foo=function(){return 42},r.foo()===42&&typeof r.subarray=="function"}catch{return!1}}(),h.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.isBuffer=function(e){return!(e==null||!e._isBuffer)},h.byteLength=function(e,r){var a;switch(e+="",r||"utf8"){case"hex":a=e.length/2;break;case"utf8":case"utf-8":a=ee(e).length;break;case"ascii":case"binary":case"raw":a=e.length;break;case"base64":a=Ae(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=2*e.length;break;default:throw new Error("Unknown encoding")}return a},h.concat=function(e,r){if(S(V(e),`Usage: Buffer.concat(list, [totalLength])
list should be an Array.`),e.length===0)return new h(0);if(e.length===1)return e[0];if(typeof r!="number")for(g=r=0;g<e.length;g++)r+=e[g].length;for(var a=new h(r),m=0,g=0;g<e.length;g++){var E=e[g];E.copy(a,m),m+=E.length}return a},h.prototype.write=function(e,r,a,m){isFinite(r)?isFinite(a)||(m=a,a=void 0):(W=m,m=r,r=a,a=W),r=Number(r)||0;var g,E,D,R,W=this.length-r;switch((!a||W<(a=Number(a)))&&(a=W),m=String(m||"utf8").toLowerCase()){case"hex":g=function(Z,z,G,$){G=Number(G)||0;var Y=Z.length-G;(!$||Y<($=Number($)))&&($=Y),S((Y=z.length)%2==0,"Invalid hex string"),Y/2<$&&($=Y/2);for(var ie=0;ie<$;ie++){var Oe=parseInt(z.substr(2*ie,2),16);S(!isNaN(Oe),"Invalid hex string"),Z[G+ie]=Oe}return h._charsWritten=2*ie,ie}(this,e,r,a);break;case"utf8":case"utf-8":E=this,D=r,R=a,g=h._charsWritten=pe(ee(e),E,D,R);break;case"ascii":case"binary":g=C(this,e,r,a);break;case"base64":E=this,D=r,R=a,g=h._charsWritten=pe(Ae(e),E,D,R);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":g=w(this,e,r,a);break;default:throw new Error("Unknown encoding")}return g},h.prototype.toString=function(e,r,a){var m,g,E,D,R=this;if(e=String(e||"utf8").toLowerCase(),r=Number(r)||0,(a=a!==void 0?Number(a):R.length)===r)return"";switch(e){case"hex":m=function(W,Z,z){var G=W.length;(!Z||Z<0)&&(Z=0),(!z||z<0||G<z)&&(z=G);for(var $="",Y=Z;Y<z;Y++)$+=P(W[Y]);return $}(R,r,a);break;case"utf8":case"utf-8":m=function(W,Z,z){var G="",$="";z=Math.min(W.length,z);for(var Y=Z;Y<z;Y++)W[Y]<=127?(G+=Ne($)+String.fromCharCode(W[Y]),$=""):$+="%"+W[Y].toString(16);return G+Ne($)}(R,r,a);break;case"ascii":case"binary":m=_(R,r,a);break;case"base64":g=R,D=a,m=(E=r)===0&&D===g.length?v.fromByteArray(g):v.fromByteArray(g.slice(E,D));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":m=function(W,Z,z){for(var G=W.slice(Z,z),$="",Y=0;Y<G.length;Y+=2)$+=String.fromCharCode(G[Y]+256*G[Y+1]);return $}(R,r,a);break;default:throw new Error("Unknown encoding")}return m},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},h.prototype.copy=function(e,r,a,m){if(r=r||0,(m=m||m===0?m:this.length)!==(a=a||0)&&e.length!==0&&this.length!==0){S(a<=m,"sourceEnd < sourceStart"),S(0<=r&&r<e.length,"targetStart out of bounds"),S(0<=a&&a<this.length,"sourceStart out of bounds"),S(0<=m&&m<=this.length,"sourceEnd out of bounds"),m>this.length&&(m=this.length);var g=(m=e.length-r<m-a?e.length-r+a:m)-a;if(g<100||!h._useTypedArrays)for(var E=0;E<g;E++)e[E+r]=this[E+a];else e._set(this.subarray(a,a+g),r)}},h.prototype.slice=function(e,r){var a=this.length;if(e=j(e,a,0),r=j(r,a,a),h._useTypedArrays)return h._augment(this.subarray(e,r));for(var m=r-e,g=new h(m,void 0,!0),E=0;E<m;E++)g[E]=this[E+e];return g},h.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},h.prototype.set=function(e,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,r)},h.prototype.readUInt8=function(e,r){if(r||(S(e!=null,"missing offset"),S(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},h.prototype.readUInt16LE=function(e,r){return b(this,e,!0,r)},h.prototype.readUInt16BE=function(e,r){return b(this,e,!1,r)},h.prototype.readUInt32LE=function(e,r){return I(this,e,!0,r)},h.prototype.readUInt32BE=function(e,r){return I(this,e,!1,r)},h.prototype.readInt8=function(e,r){if(r||(S(e!=null,"missing offset"),S(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,r){return c(this,e,!0,r)},h.prototype.readInt16BE=function(e,r){return c(this,e,!1,r)},h.prototype.readInt32LE=function(e,r){return p(this,e,!0,r)},h.prototype.readInt32BE=function(e,r){return p(this,e,!1,r)},h.prototype.readFloatLE=function(e,r){return n(this,e,!0,r)},h.prototype.readFloatBE=function(e,r){return n(this,e,!1,r)},h.prototype.readDoubleLE=function(e,r){return o(this,e,!0,r)},h.prototype.readDoubleBE=function(e,r){return o(this,e,!1,r)},h.prototype.writeUInt8=function(e,r,a){a||(S(e!=null,"missing value"),S(r!=null,"missing offset"),S(r<this.length,"trying to write beyond buffer length"),we(e,255)),r>=this.length||(this[r]=e)},h.prototype.writeUInt16LE=function(e,r,a){t(this,e,r,!0,a)},h.prototype.writeUInt16BE=function(e,r,a){t(this,e,r,!1,a)},h.prototype.writeUInt32LE=function(e,r,a){u(this,e,r,!0,a)},h.prototype.writeUInt32BE=function(e,r,a){u(this,e,r,!1,a)},h.prototype.writeInt8=function(e,r,a){a||(S(e!=null,"missing value"),S(r!=null,"missing offset"),S(r<this.length,"Trying to write beyond buffer length"),_e(e,127,-128)),r>=this.length||(0<=e?this.writeUInt8(e,r,a):this.writeUInt8(255+e+1,r,a))},h.prototype.writeInt16LE=function(e,r,a){d(this,e,r,!0,a)},h.prototype.writeInt16BE=function(e,r,a){d(this,e,r,!1,a)},h.prototype.writeInt32LE=function(e,r,a){L(this,e,r,!0,a)},h.prototype.writeInt32BE=function(e,r,a){L(this,e,r,!1,a)},h.prototype.writeFloatLE=function(e,r,a){A(this,e,r,!0,a)},h.prototype.writeFloatBE=function(e,r,a){A(this,e,r,!1,a)},h.prototype.writeDoubleLE=function(e,r,a){O(this,e,r,!0,a)},h.prototype.writeDoubleBE=function(e,r,a){O(this,e,r,!1,a)},h.prototype.fill=function(e,r,a){if(r=r||0,a=a||this.length,S(typeof(e=typeof(e=e||0)=="string"?e.charCodeAt(0):e)=="number"&&!isNaN(e),"value is not a number"),S(r<=a,"end < start"),a!==r&&this.length!==0){S(0<=r&&r<this.length,"start out of bounds"),S(0<=a&&a<=this.length,"end out of bounds");for(var m=r;m<a;m++)this[m]=e}},h.prototype.inspect=function(){for(var e=[],r=this.length,a=0;a<r;a++)if(e[a]=P(this[a]),a===l.INSPECT_MAX_BYTES){e[a+1]="...";break}return"<Buffer "+e.join(" ")+">"},h.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(h._useTypedArrays)return new h(this).buffer;for(var e=new Uint8Array(this.length),r=0,a=e.length;r<a;r+=1)e[r]=this[r];return e.buffer};var k=h.prototype;function j(e,r,a){return typeof e!="number"?a:r<=(e=~~e)?r:0<=e||0<=(e+=r)?e:0}function K(e){return(e=~~Math.ceil(+e))<0?0:e}function V(e){return(Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"})(e)}function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function ee(e){for(var r=[],a=0;a<e.length;a++){var m=e.charCodeAt(a);if(m<=127)r.push(e.charCodeAt(a));else for(var g=a,E=(55296<=m&&m<=57343&&a++,encodeURIComponent(e.slice(g,a+1)).substr(1).split("%")),D=0;D<E.length;D++)r.push(parseInt(E[D],16))}return r}function Ae(e){return v.toByteArray(e)}function pe(e,r,a,m){for(var g=0;g<m&&!(g+a>=r.length||g>=e.length);g++)r[g+a]=e[g];return g}function Ne(e){try{return decodeURIComponent(e)}catch{return String.fromCharCode(65533)}}function we(e,r){S(typeof e=="number","cannot write a non-number as a number"),S(0<=e,"specified a negative value for writing an unsigned value"),S(e<=r,"value is larger than maximum value for type"),S(Math.floor(e)===e,"value has a fractional component")}function _e(e,r,a){S(typeof e=="number","cannot write a non-number as a number"),S(e<=r,"value larger than maximum allowed value"),S(a<=e,"value smaller than minimum allowed value"),S(Math.floor(e)===e,"value has a fractional component")}function Le(e,r,a){S(typeof e=="number","cannot write a non-number as a number"),S(e<=r,"value larger than maximum allowed value"),S(a<=e,"value smaller than minimum allowed value")}function S(e,r){if(!e)throw new Error(r||"Failed assertion")}h._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=k.get,e.set=k.set,e.write=k.write,e.toString=k.toString,e.toLocaleString=k.toString,e.toJSON=k.toJSON,e.copy=k.copy,e.slice=k.slice,e.readUInt8=k.readUInt8,e.readUInt16LE=k.readUInt16LE,e.readUInt16BE=k.readUInt16BE,e.readUInt32LE=k.readUInt32LE,e.readUInt32BE=k.readUInt32BE,e.readInt8=k.readInt8,e.readInt16LE=k.readInt16LE,e.readInt16BE=k.readInt16BE,e.readInt32LE=k.readInt32LE,e.readInt32BE=k.readInt32BE,e.readFloatLE=k.readFloatLE,e.readFloatBE=k.readFloatBE,e.readDoubleLE=k.readDoubleLE,e.readDoubleBE=k.readDoubleBE,e.writeUInt8=k.writeUInt8,e.writeUInt16LE=k.writeUInt16LE,e.writeUInt16BE=k.writeUInt16BE,e.writeUInt32LE=k.writeUInt32LE,e.writeUInt32BE=k.writeUInt32BE,e.writeInt8=k.writeInt8,e.writeInt16LE=k.writeInt16LE,e.writeInt16BE=k.writeInt16BE,e.writeInt32LE=k.writeInt32LE,e.writeInt32BE=k.writeInt32BE,e.writeFloatLE=k.writeFloatLE,e.writeFloatBE=k.writeFloatBE,e.writeDoubleLE=k.writeDoubleLE,e.writeDoubleBE=k.writeDoubleBE,e.fill=k.fill,e.inspect=k.inspect,e.toArrayBuffer=k.toArrayBuffer,e}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(i,s,l){(function(f,y,v,U,T,N,M,H,J){var v=i("buffer").Buffer,x=4,h=new v(x);h.fill(0),s.exports={hash:function(C,w,_,b){for(var I=w(function(t,u){t.length%x!=0&&(d=t.length+(x-t.length%x),t=v.concat([t,h],d));for(var d,L=[],A=u?t.readInt32BE:t.readInt32LE,O=0;O<t.length;O+=x)L.push(A.call(t,O));return L}(C=v.isBuffer(C)?C:new v(C),b),8*C.length),w=b,c=new v(_),p=w?c.writeInt32BE:c.writeInt32LE,n=0;n<I.length;n++)p.call(c,I[n],4*n,!0);return c}}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(i,s,l){(function(f,y,v,U,T,N,M,H,J){var v=i("buffer").Buffer,x=i("./sha"),h=i("./sha256"),C=i("./rng"),w={sha1:x,sha256:h,md5:i("./md5")},_=64,b=new v(_);function I(t,u){var d=w[t=t||"sha1"],L=[];return d||c("algorithm:",t,"is not yet supported"),{update:function(A){return v.isBuffer(A)||(A=new v(A)),L.push(A),A.length,this},digest:function(A){var O=v.concat(L),O=u?function(k,j,K){v.isBuffer(j)||(j=new v(j)),v.isBuffer(K)||(K=new v(K)),j.length>_?j=k(j):j.length<_&&(j=v.concat([j,b],_));for(var V=new v(_),P=new v(_),ee=0;ee<_;ee++)V[ee]=54^j[ee],P[ee]=92^j[ee];return K=k(v.concat([V,K])),k(v.concat([P,K]))}(d,u,O):d(O);return L=null,A?O.toString(A):O}}}function c(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}b.fill(0),l.createHash=function(t){return I(t)},l.createHmac=I,l.randomBytes=function(t,u){if(!u||!u.call)return new v(C(t));try{u.call(this,void 0,new v(C(t)))}catch(d){u(d)}};var p,n=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],o=function(t){l[t]=function(){c("sorry,",t,"is not implemented yet")}};for(p in n)o(n[p],p)}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(i,s,l){(function(f,y,B,U,T,N,M,H,J){var v=i("./helpers");function x(c,p){c[p>>5]|=128<<p%32,c[14+(p+64>>>9<<4)]=p;for(var n=1732584193,o=-271733879,t=-1732584194,u=271733878,d=0;d<c.length;d+=16){var L=n,A=o,O=t,k=u,n=C(n,o,t,u,c[d+0],7,-680876936),u=C(u,n,o,t,c[d+1],12,-389564586),t=C(t,u,n,o,c[d+2],17,606105819),o=C(o,t,u,n,c[d+3],22,-1044525330);n=C(n,o,t,u,c[d+4],7,-176418897),u=C(u,n,o,t,c[d+5],12,1200080426),t=C(t,u,n,o,c[d+6],17,-1473231341),o=C(o,t,u,n,c[d+7],22,-45705983),n=C(n,o,t,u,c[d+8],7,1770035416),u=C(u,n,o,t,c[d+9],12,-1958414417),t=C(t,u,n,o,c[d+10],17,-42063),o=C(o,t,u,n,c[d+11],22,-1990404162),n=C(n,o,t,u,c[d+12],7,1804603682),u=C(u,n,o,t,c[d+13],12,-40341101),t=C(t,u,n,o,c[d+14],17,-1502002290),n=w(n,o=C(o,t,u,n,c[d+15],22,1236535329),t,u,c[d+1],5,-165796510),u=w(u,n,o,t,c[d+6],9,-1069501632),t=w(t,u,n,o,c[d+11],14,643717713),o=w(o,t,u,n,c[d+0],20,-373897302),n=w(n,o,t,u,c[d+5],5,-701558691),u=w(u,n,o,t,c[d+10],9,38016083),t=w(t,u,n,o,c[d+15],14,-660478335),o=w(o,t,u,n,c[d+4],20,-405537848),n=w(n,o,t,u,c[d+9],5,568446438),u=w(u,n,o,t,c[d+14],9,-1019803690),t=w(t,u,n,o,c[d+3],14,-187363961),o=w(o,t,u,n,c[d+8],20,1163531501),n=w(n,o,t,u,c[d+13],5,-1444681467),u=w(u,n,o,t,c[d+2],9,-51403784),t=w(t,u,n,o,c[d+7],14,1735328473),n=_(n,o=w(o,t,u,n,c[d+12],20,-1926607734),t,u,c[d+5],4,-378558),u=_(u,n,o,t,c[d+8],11,-2022574463),t=_(t,u,n,o,c[d+11],16,1839030562),o=_(o,t,u,n,c[d+14],23,-35309556),n=_(n,o,t,u,c[d+1],4,-1530992060),u=_(u,n,o,t,c[d+4],11,1272893353),t=_(t,u,n,o,c[d+7],16,-155497632),o=_(o,t,u,n,c[d+10],23,-1094730640),n=_(n,o,t,u,c[d+13],4,681279174),u=_(u,n,o,t,c[d+0],11,-358537222),t=_(t,u,n,o,c[d+3],16,-722521979),o=_(o,t,u,n,c[d+6],23,76029189),n=_(n,o,t,u,c[d+9],4,-640364487),u=_(u,n,o,t,c[d+12],11,-421815835),t=_(t,u,n,o,c[d+15],16,530742520),n=b(n,o=_(o,t,u,n,c[d+2],23,-995338651),t,u,c[d+0],6,-198630844),u=b(u,n,o,t,c[d+7],10,1126891415),t=b(t,u,n,o,c[d+14],15,-1416354905),o=b(o,t,u,n,c[d+5],21,-57434055),n=b(n,o,t,u,c[d+12],6,1700485571),u=b(u,n,o,t,c[d+3],10,-1894986606),t=b(t,u,n,o,c[d+10],15,-1051523),o=b(o,t,u,n,c[d+1],21,-2054922799),n=b(n,o,t,u,c[d+8],6,1873313359),u=b(u,n,o,t,c[d+15],10,-30611744),t=b(t,u,n,o,c[d+6],15,-1560198380),o=b(o,t,u,n,c[d+13],21,1309151649),n=b(n,o,t,u,c[d+4],6,-145523070),u=b(u,n,o,t,c[d+11],10,-1120210379),t=b(t,u,n,o,c[d+2],15,718787259),o=b(o,t,u,n,c[d+9],21,-343485551),n=I(n,L),o=I(o,A),t=I(t,O),u=I(u,k)}return Array(n,o,t,u)}function h(c,p,n,o,t,u){return I((p=I(I(p,c),I(o,u)))<<t|p>>>32-t,n)}function C(c,p,n,o,t,u,d){return h(p&n|~p&o,c,p,t,u,d)}function w(c,p,n,o,t,u,d){return h(p&o|n&~o,c,p,t,u,d)}function _(c,p,n,o,t,u,d){return h(p^n^o,c,p,t,u,d)}function b(c,p,n,o,t,u,d){return h(n^(p|~o),c,p,t,u,d)}function I(c,p){var n=(65535&c)+(65535&p);return(c>>16)+(p>>16)+(n>>16)<<16|65535&n}s.exports=function(c){return v.hash(c,x,16)}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(i,s,l){(function(f,y,B,U,T,N,M,H,J){var v;s.exports=v||function(x){for(var h,C=new Array(x),w=0;w<x;w++)!(3&w)&&(h=4294967296*Math.random()),C[w]=h>>>((3&w)<<3)&255;return C}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(i,s,l){(function(f,y,B,U,T,N,M,H,J){var v=i("./helpers");function x(w,_){w[_>>5]|=128<<24-_%32,w[15+(_+64>>9<<4)]=_;for(var b,I,c,p=Array(80),n=1732584193,o=-271733879,t=-1732584194,u=271733878,d=-1009589776,L=0;L<w.length;L+=16){for(var A=n,O=o,k=t,j=u,K=d,V=0;V<80;V++){p[V]=V<16?w[L+V]:C(p[V-3]^p[V-8]^p[V-14]^p[V-16],1);var P=h(h(C(n,5),(P=o,I=t,c=u,(b=V)<20?P&I|~P&c:!(b<40)&&b<60?P&I|P&c|I&c:P^I^c)),h(h(d,p[V]),(b=V)<20?1518500249:b<40?1859775393:b<60?-1894007588:-899497514)),d=u,u=t,t=C(o,30),o=n,n=P}n=h(n,A),o=h(o,O),t=h(t,k),u=h(u,j),d=h(d,K)}return Array(n,o,t,u,d)}function h(w,_){var b=(65535&w)+(65535&_);return(w>>16)+(_>>16)+(b>>16)<<16|65535&b}function C(w,_){return w<<_|w>>>32-_}s.exports=function(w){return v.hash(w,x,20,!0)}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(i,s,l){(function(f,y,B,U,T,N,M,H,J){function v(_,b){var I=(65535&_)+(65535&b);return(_>>16)+(b>>16)+(I>>16)<<16|65535&I}function x(_,b){var I,c=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),p=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),n=new Array(64);_[b>>5]|=128<<24-b%32,_[15+(b+64>>9<<4)]=b;for(var o,t,u=0;u<_.length;u+=16){for(var d=p[0],L=p[1],A=p[2],O=p[3],k=p[4],j=p[5],K=p[6],V=p[7],P=0;P<64;P++)n[P]=P<16?_[P+u]:v(v(v((t=n[P-2],C(t,17)^C(t,19)^w(t,10)),n[P-7]),(t=n[P-15],C(t,7)^C(t,18)^w(t,3))),n[P-16]),I=v(v(v(v(V,C(t=k,6)^C(t,11)^C(t,25)),k&j^~k&K),c[P]),n[P]),o=v(C(o=d,2)^C(o,13)^C(o,22),d&L^d&A^L&A),V=K,K=j,j=k,k=v(O,I),O=A,A=L,L=d,d=v(I,o);p[0]=v(d,p[0]),p[1]=v(L,p[1]),p[2]=v(A,p[2]),p[3]=v(O,p[3]),p[4]=v(k,p[4]),p[5]=v(j,p[5]),p[6]=v(K,p[6]),p[7]=v(V,p[7])}return p}var h=i("./helpers"),C=function(_,b){return _>>>b|_<<32-b},w=function(_,b){return _>>>b};s.exports=function(_){return h.hash(_,x,32,!0)}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(i,s,l){(function(f,y,B,U,T,N,M,H,J){l.read=function(v,x,h,C,u){var _,b,I=8*u-C-1,c=(1<<I)-1,p=c>>1,n=-7,o=h?u-1:0,t=h?-1:1,u=v[x+o];for(o+=t,_=u&(1<<-n)-1,u>>=-n,n+=I;0<n;_=256*_+v[x+o],o+=t,n-=8);for(b=_&(1<<-n)-1,_>>=-n,n+=C;0<n;b=256*b+v[x+o],o+=t,n-=8);if(_===0)_=1-p;else{if(_===c)return b?NaN:1/0*(u?-1:1);b+=Math.pow(2,C),_-=p}return(u?-1:1)*b*Math.pow(2,_-C)},l.write=function(v,x,h,C,w,d){var b,I,c=8*d-w-1,p=(1<<c)-1,n=p>>1,o=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=C?0:d-1,u=C?1:-1,d=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(I=isNaN(x)?1:0,b=p):(b=Math.floor(Math.log(x)/Math.LN2),x*(C=Math.pow(2,-b))<1&&(b--,C*=2),2<=(x+=1<=b+n?o/C:o*Math.pow(2,1-n))*C&&(b++,C/=2),p<=b+n?(I=0,b=p):1<=b+n?(I=(x*C-1)*Math.pow(2,w),b+=n):(I=x*Math.pow(2,n-1)*Math.pow(2,w),b=0));8<=w;v[h+t]=255&I,t+=u,I/=256,w-=8);for(b=b<<w|I,c+=w;0<c;v[h+t]=255&b,t+=u,b/=256,c-=8);v[h+t-u]|=128*d}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(i,s,l){(function(f,y,B,U,T,N,M,H,J){var v,x,h;function C(){}(f=s.exports={}).nextTick=(x=typeof window<"u"&&window.setImmediate,h=typeof window<"u"&&window.postMessage&&window.addEventListener,x?function(w){return window.setImmediate(w)}:h?(v=[],window.addEventListener("message",function(w){var _=w.source;_!==window&&_!==null||w.data!=="process-tick"||(w.stopPropagation(),0<v.length&&v.shift()())},!0),function(w){v.push(w),window.postMessage("process-tick","*")}):function(w){setTimeout(w,0)}),f.title="browser",f.browser=!0,f.env={},f.argv=[],f.on=C,f.addListener=C,f.once=C,f.off=C,f.removeListener=C,f.removeAllListeners=C,f.emit=C,f.binding=function(w){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(w){throw new Error("process.chdir is not supported")}}).call(this,i("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})});var tn={};Tt(tn,{ConsentBanner:()=>st,ConsentContext:()=>ce,ConsentProvider:()=>Et,useConsent:()=>Q});module.exports=Ut(tn);var je=require("react");var Pe=Ce(require("react")),ce=Pe.default.createContext({consent:[],isBannerVisible:!0,isDetailsVisible:!1,hasConsent:()=>!0,toggleBanner:()=>{},toggleDetails:()=>{},setConsent:([])=>{},options:{services:[]}});function Q(){return(0,je.useContext)(ce)}var de=require("react");var Se=require("react");function he(){let{setConsent:i,options:{services:s}}=Q(),l=(0,Se.useCallback)(y=>{i(y||s.map(({id:B})=>B))},[s,i]);return{onDecline:(0,Se.useCallback)(()=>{i([])},[i]),onApprove:l}}var tt=require("react"),nt=Ce(et());var oe=require("react/jsx-runtime");function rt({onChange:i,id:s,name:l,description:f,mandatory:y}){let{consent:B}=Q(),U=(0,tt.useCallback)(T=>{i(s,T.target.checked)},[i,s]);return(0,oe.jsxs)("div",{className:"rhc-settings__content__main__item",children:[(0,oe.jsxs)("div",{className:"rhc-settings__content__main__item__title",children:[(0,oe.jsx)("label",{className:"rhc-settings__content__main__item__title__label",htmlFor:s,children:l}),(0,oe.jsx)(nt.default,{id:s,defaultChecked:B.includes(s),onChange:U,disabled:y})]}),f&&(0,oe.jsx)("p",{className:"rhc-settings__content__main__item__description",children:f})]})}var ye=require("react");function ot(){let{consent:i}=Q(),[s,l]=(0,ye.useState)(i),f=(0,ye.useCallback)((y,B)=>{l(U=>B?[...U,y]:U.filter(T=>T!==y))},[]);return{selectedServices:s,handleSelectedServiceChange:f}}var F=require("react/jsx-runtime");function it({onToggle:i=()=>{},modal:s}){var v,x,h,C,w,_,b;let{options:{services:l,theme:f}}=Q(),{onDecline:y,onApprove:B}=he(),{selectedServices:U,handleSelectedServiceChange:T}=ot(),N=(0,de.useCallback)(()=>i(),[i]),M=(0,de.useCallback)(()=>{y(),i()},[y,i]),H=(0,de.useCallback)(()=>{B(U),i()},[B,i,U]),J=(0,de.useCallback)(()=>{B(),i()},[B,i]);return(0,F.jsx)("div",{className:`${f==="light"?"rhc-theme-light":"rhc-theme-dark"} rhc-settings`,onClick:N,"data-testid":"settings",children:(0,F.jsxs)("div",{className:"rhc-settings__content",onClick:I=>I.stopPropagation(),children:[(0,F.jsxs)("div",{className:"rhc-settings__content__header",children:[(0,F.jsx)("h1",{children:s!=null&&s.title?s.title:(0,F.jsx)(F.Fragment,{children:"Consent settings"})}),(0,F.jsx)("p",{children:s!=null&&s.description?s.description:(0,F.jsx)(F.Fragment,{children:"We use cookies and third party services on this website. Some of them are essential, others help us to improve your browsing experience. Feel free to adjust your individual settings below."})})]}),(0,F.jsx)("div",{className:"rhc-settings__content__main",children:l.map(({id:I,name:c,description:p,mandatory:n},o)=>(0,F.jsx)(rt,{id:I,name:c,description:p,mandatory:n,onChange:T},o))}),(0,F.jsxs)("div",{className:"rhc-settings__content__footer",children:[!((v=s==null?void 0:s.decline)!=null&&v.hidden)&&(0,F.jsx)("button",{className:"rhc-settings__content__footer__secondary",onClick:M,children:(x=s==null?void 0:s.decline)!=null&&x.label?(h=s==null?void 0:s.decline)==null?void 0:h.label:(0,F.jsx)(F.Fragment,{children:"Decline"})}),(0,F.jsx)("button",{className:"rhc-settings__content__footer__secondary",onClick:H,children:(C=s==null?void 0:s.approve)!=null&&C.label?(w=s==null?void 0:s.approve)==null?void 0:w.label:(0,F.jsx)(F.Fragment,{children:"Approve selection"})}),(0,F.jsx)("button",{className:"rhc-settings__content__footer__primary",onClick:J,children:(_=s==null?void 0:s.approveAll)!=null&&_.label?(b=s==null?void 0:s.approveAll)==null?void 0:b.label:(0,F.jsx)(F.Fragment,{children:"Approve all"})})]})]})})}var q=require("react/jsx-runtime");function st({children:i,settings:s,approve:l,decline:f}){let{isBannerVisible:y,isDetailsVisible:B,toggleDetails:U,options:{theme:T}}=Q(),{onDecline:N,onApprove:M}=he();return(0,q.jsxs)(q.Fragment,{children:[y&&!B&&(0,q.jsx)("div",{className:`${T==="light"?"rhc-theme-light":"rhc-theme-dark"} rhc-banner`,children:(0,q.jsxs)("div",{className:"rhc-banner__content",children:[(0,q.jsx)("div",{className:"rhc-banner__content__message",children:i||(0,q.jsx)(q.Fragment,{children:"We want to use cookies and external services to analyze and improve this website for you. You will find more details in our privacy policy."})}),s!=null&&s.hidden?null:(0,q.jsx)("button",{className:"rhc-banner__content__secondary",onClick:U,children:s!=null&&s.label?s.label:(0,q.jsx)(q.Fragment,{children:"Settings"})}),!(f!=null&&f.hidden)&&(0,q.jsx)("button",{className:"rhc-banner__content__secondary",onClick:N,children:f!=null&&f.label?f.label:(0,q.jsx)(q.Fragment,{children:"Decline"})}),(0,q.jsx)("button",{className:"rhc-banner__content__primary",onClick:()=>M(),children:l!=null&&l.label?l.label:(0,q.jsx)(q.Fragment,{children:"Approve"})})]})}),B&&(0,q.jsx)(it,{onToggle:U,modal:s==null?void 0:s.modal})]})}var Ct=Ce(ut()),ne=require("react");var be="react-hook-consent",ue="react-hook-consent";function lt(i,s){let l=document.createElement("script");l.id=s,l.innerHTML=i,document.body.appendChild(l)}function ft(i,s){let l=document.createElement("script");l.id=s,l.src=i,l.async=!0,document.body.appendChild(l)}function dt(i){return!!i.id&&!!i.code}function pt(i){return!!i.id&&!!i.src}function ht(i,s){if(s)for(let l of s){let{id:f}=l,y=`${be}-${i}-${f}`;document.getElementById(y)||(pt(l)&&ft(l.src,y),dt(l)&&lt(l.code,y))}}function ve(i){i.forEach(({id:s,scripts:l})=>{ht(s,l)})}function gt(i){let s=localStorage.getItem(`${ue}`);if(!s)return{consent:[],isBannerVisible:!0,isDetailsVisible:!1};let{consent:l,hash:f}=JSON.parse(s),y=!1;return f!==i&&(y=!0),{consent:l&&l.length>0?l:[],isBannerVisible:y,isDetailsVisible:!1}}function mt(i){let s=localStorage.getItem(`${ue}`);if(!s)return!1;let{hash:l}=JSON.parse(s);return l===i}function yt(i,s){localStorage.setItem(`${ue}`,JSON.stringify({consent:i,hash:s,updated:new Date}))}function bt(i){if(i)for(let s of i)document.cookie=s.pattern+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}function vt(i,s){if(s)for(let{id:l}of s){let f=document.getElementById(`${be}-${i}-${l}`);f&&f.remove()}}function wt(i){i.forEach(({id:s,scripts:l,cookies:f})=>{vt(s,l),bt(f)})}function _t(i,s,l){let f=i.services.filter(B=>!s.includes(B.id)),y=i.services.filter(B=>s.includes(B.id));wt(f),ve(y),yt(s,l)}function St(i){var T;let[s,l]=(0,ne.useState)({consent:[],isBannerVisible:!1,isDetailsVisible:!1,hash:(T=i.customHash)!=null?T:(0,Ct.default)(i)});(0,ne.useEffect)(()=>{if(!mt(s.hash)){let v=i.services.filter(x=>x==null?void 0:x.mandatory).map(x=>x.id);l(x=>ae(se({},x),{consent:v,isBannerVisible:!0,isDetailsVisible:!1}));return}let{consent:N,isBannerVisible:M,isDetailsVisible:H}=gt(s.hash);l(v=>ae(se({},v),{consent:N,isBannerVisible:M,isDetailsVisible:H}));let J=i.services.filter(v=>N.includes(v.id));ve(J)},[i.services,s.hash]);let f=(0,ne.useCallback)(N=>{l(M=>ae(se({},M),{consent:N,isBannerVisible:!1})),_t(i,N,s.hash)},[i,s.hash]),y=(0,ne.useCallback)(N=>s.consent.includes(N),[s.consent]),B=(0,ne.useCallback)(()=>{l(N=>ae(se({},N),{isBannerVisible:!N.isBannerVisible}))},[]),U=(0,ne.useCallback)(()=>{l(N=>ae(se({},N),{isDetailsVisible:!N.isDetailsVisible}))},[]);return{consent:s.consent,hasConsent:y,isBannerVisible:s.isBannerVisible,isDetailsVisible:s.isDetailsVisible,toggleBanner:B,toggleDetails:U,setConsent:f}}var xt=require("react/jsx-runtime");function Et({options:i,children:s}){let{consent:l,hasConsent:f,isBannerVisible:y,toggleBanner:B,isDetailsVisible:U,toggleDetails:T,setConsent:N}=St(i);return(0,xt.jsx)(ce.Provider,{value:{consent:l,hasConsent:f,isBannerVisible:y,toggleBanner:B,isDetailsVisible:U,toggleDetails:T,setConsent:N,options:i},children:s})}
`)},_domwindow:function(){return s("domwindow")},_bigint:function(t){return s("bigint:"+t.toString())},_process:function(){return s("process")},_timer:function(){return s("timer")},_pipe:function(){return s("pipe")},_tcp:function(){return s("tcp")},_udp:function(){return s("udp")},_tty:function(){return s("tty")},_statwatcher:function(){return s("statwatcher")},_securecontext:function(){return s("securecontext")},_connection:function(){return s("connection")},_zlib:function(){return s("zlib")},_context:function(){return s("context")},_nodescript:function(){return s("nodescript")},_httpparser:function(){return s("httpparser")},_dataview:function(){return s("dataview")},_signal:function(){return s("signal")},_fsevent:function(){return s("fsevent")},_tlswrap:function(){return s("tlswrap")}}}function I(){return{buf:"",write:function(c){this.buf+=c},end:function(c){this.buf+=c},read:function(){return this.buf}}}l.writeToStream=function(c,p,n){return n===void 0&&(n=p,p={}),b(p=w(c,p),n).dispatch(c)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(o,i,l){(function(f,y,B,U,T,N,M,H,J){(function(v){"use strict";var x=typeof Uint8Array<"u"?Uint8Array:Array,h="+".charCodeAt(0),C="/".charCodeAt(0),w="0".charCodeAt(0),_="a".charCodeAt(0),b="A".charCodeAt(0),I="-".charCodeAt(0),c="_".charCodeAt(0);function p(n){return n=n.charCodeAt(0),n===h||n===I?62:n===C||n===c?63:n<w?-1:n<w+10?n-w+26+26:n<b+26?n-b:n<_+26?n-_+26:void 0}v.toByteArray=function(n){var s,t;if(0<n.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var u=n.length,u=n.charAt(u-2)==="="?2:n.charAt(u-1)==="="?1:0,d=new x(3*n.length/4-u),O=0<u?n.length-4:n.length,A=0;function L(k){d[A++]=k}for(s=0;s<O;s+=4,0)L((16711680&(t=p(n.charAt(s))<<18|p(n.charAt(s+1))<<12|p(n.charAt(s+2))<<6|p(n.charAt(s+3))))>>16),L((65280&t)>>8),L(255&t);return u==2?L(255&(t=p(n.charAt(s))<<2|p(n.charAt(s+1))>>4)):u==1&&(L((t=p(n.charAt(s))<<10|p(n.charAt(s+1))<<4|p(n.charAt(s+2))>>2)>>8&255),L(255&t)),d},v.fromByteArray=function(n){var s,t,u,d,O=n.length%3,A="";function L(k){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k)}for(s=0,u=n.length-O;s<u;s+=3)t=(n[s]<<16)+(n[s+1]<<8)+n[s+2],A+=L((d=t)>>18&63)+L(d>>12&63)+L(d>>6&63)+L(63&d);switch(O){case 1:A=(A+=L((t=n[n.length-1])>>2))+L(t<<4&63)+"==";break;case 2:A=(A=(A+=L((t=(n[n.length-2]<<8)+n[n.length-1])>>10))+L(t>>4&63))+L(t<<2&63)+"="}return A}})(l===void 0?this.base64js={}:l)}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(o,i,l){(function(f,y,h,U,T,N,M,H,J){var v=o("base64-js"),x=o("ieee754");function h(e,r,a){if(!(this instanceof h))return new h(e,r,a);var m,g,E,D,R=typeof e;if(r==="base64"&&R=="string")for(e=(D=e).trim?D.trim():D.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if(R=="number")m=K(e);else if(R=="string")m=h.byteLength(e,r);else{if(R!="object")throw new Error("First argument needs to be a number, array or string.");m=K(e.length)}if(h._useTypedArrays?g=h._augment(new Uint8Array(m)):((g=this).length=m,g._isBuffer=!0),h._useTypedArrays&&typeof e.byteLength=="number")g._set(e);else if(V(D=e)||h.isBuffer(D)||D&&typeof D=="object"&&typeof D.length=="number")for(E=0;E<m;E++)h.isBuffer(e)?g[E]=e.readUInt8(E):g[E]=e[E];else if(R=="string")g.write(e,0,r);else if(R=="number"&&!h._useTypedArrays&&!a)for(E=0;E<m;E++)g[E]=0;return g}function C(e,r,a,m){return h._charsWritten=pe(function(g){for(var E=[],D=0;D<g.length;D++)E.push(255&g.charCodeAt(D));return E}(r),e,a,m)}function w(e,r,a,m){return h._charsWritten=pe(function(g){for(var E,D,R=[],W=0;W<g.length;W++)D=g.charCodeAt(W),E=D>>8,D=D%256,R.push(D),R.push(E);return R}(r),e,a,m)}function _(e,r,a){var m="";a=Math.min(e.length,a);for(var g=r;g<a;g++)m+=String.fromCharCode(e[g]);return m}function b(e,r,a,E){E||(S(typeof a=="boolean","missing or invalid endian"),S(r!=null,"missing offset"),S(r+1<e.length,"Trying to read beyond buffer length"));var g,E=e.length;if(!(E<=r))return a?(g=e[r],r+1<E&&(g|=e[r+1]<<8)):(g=e[r]<<8,r+1<E&&(g|=e[r+1])),g}function I(e,r,a,E){E||(S(typeof a=="boolean","missing or invalid endian"),S(r!=null,"missing offset"),S(r+3<e.length,"Trying to read beyond buffer length"));var g,E=e.length;if(!(E<=r))return a?(r+2<E&&(g=e[r+2]<<16),r+1<E&&(g|=e[r+1]<<8),g|=e[r],r+3<E&&(g+=e[r+3]<<24>>>0)):(r+1<E&&(g=e[r+1]<<16),r+2<E&&(g|=e[r+2]<<8),r+3<E&&(g|=e[r+3]),g+=e[r]<<24>>>0),g}function c(e,r,a,m){if(m||(S(typeof a=="boolean","missing or invalid endian"),S(r!=null,"missing offset"),S(r+1<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return m=b(e,r,a,!0),32768&m?-1*(65535-m+1):m}function p(e,r,a,m){if(m||(S(typeof a=="boolean","missing or invalid endian"),S(r!=null,"missing offset"),S(r+3<e.length,"Trying to read beyond buffer length")),!(e.length<=r))return m=I(e,r,a,!0),2147483648&m?-1*(4294967295-m+1):m}function n(e,r,a,m){return m||(S(typeof a=="boolean","missing or invalid endian"),S(r+3<e.length,"Trying to read beyond buffer length")),x.read(e,r,a,23,4)}function s(e,r,a,m){return m||(S(typeof a=="boolean","missing or invalid endian"),S(r+7<e.length,"Trying to read beyond buffer length")),x.read(e,r,a,52,8)}function t(e,r,a,m,g){if(g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+1<e.length,"trying to write beyond buffer length"),we(r,65535)),g=e.length,!(g<=a))for(var E=0,D=Math.min(g-a,2);E<D;E++)e[a+E]=(r&255<<8*(m?E:1-E))>>>8*(m?E:1-E)}function u(e,r,a,m,g){if(g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+3<e.length,"trying to write beyond buffer length"),we(r,4294967295)),g=e.length,!(g<=a))for(var E=0,D=Math.min(g-a,4);E<D;E++)e[a+E]=r>>>8*(m?E:3-E)&255}function d(e,r,a,m,g){g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+1<e.length,"Trying to write beyond buffer length"),_e(r,32767,-32768)),e.length<=a||t(e,0<=r?r:65535+r+1,a,m,g)}function O(e,r,a,m,g){g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+3<e.length,"Trying to write beyond buffer length"),_e(r,2147483647,-2147483648)),e.length<=a||u(e,0<=r?r:4294967295+r+1,a,m,g)}function A(e,r,a,m,g){g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+3<e.length,"Trying to write beyond buffer length"),Oe(r,34028234663852886e22,-34028234663852886e22)),e.length<=a||x.write(e,r,a,m,23,4)}function L(e,r,a,m,g){g||(S(r!=null,"missing value"),S(typeof m=="boolean","missing or invalid endian"),S(a!=null,"missing offset"),S(a+7<e.length,"Trying to write beyond buffer length"),Oe(r,17976931348623157e292,-17976931348623157e292)),e.length<=a||x.write(e,r,a,m,52,8)}l.Buffer=h,l.SlowBuffer=h,l.INSPECT_MAX_BYTES=50,h.poolSize=8192,h._useTypedArrays=function(){try{var e=new ArrayBuffer(0),r=new Uint8Array(e);return r.foo=function(){return 42},r.foo()===42&&typeof r.subarray=="function"}catch{return!1}}(),h.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.isBuffer=function(e){return!(e==null||!e._isBuffer)},h.byteLength=function(e,r){var a;switch(e+="",r||"utf8"){case"hex":a=e.length/2;break;case"utf8":case"utf-8":a=ee(e).length;break;case"ascii":case"binary":case"raw":a=e.length;break;case"base64":a=Ae(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=2*e.length;break;default:throw new Error("Unknown encoding")}return a},h.concat=function(e,r){if(S(V(e),`Usage: Buffer.concat(list, [totalLength])
list should be an Array.`),e.length===0)return new h(0);if(e.length===1)return e[0];if(typeof r!="number")for(g=r=0;g<e.length;g++)r+=e[g].length;for(var a=new h(r),m=0,g=0;g<e.length;g++){var E=e[g];E.copy(a,m),m+=E.length}return a},h.prototype.write=function(e,r,a,m){isFinite(r)?isFinite(a)||(m=a,a=void 0):(W=m,m=r,r=a,a=W),r=Number(r)||0;var g,E,D,R,W=this.length-r;switch((!a||W<(a=Number(a)))&&(a=W),m=String(m||"utf8").toLowerCase()){case"hex":g=function(Z,z,G,$){G=Number(G)||0;var Y=Z.length-G;(!$||Y<($=Number($)))&&($=Y),S((Y=z.length)%2==0,"Invalid hex string"),Y/2<$&&($=Y/2);for(var ie=0;ie<$;ie++){var Le=parseInt(z.substr(2*ie,2),16);S(!isNaN(Le),"Invalid hex string"),Z[G+ie]=Le}return h._charsWritten=2*ie,ie}(this,e,r,a);break;case"utf8":case"utf-8":E=this,D=r,R=a,g=h._charsWritten=pe(ee(e),E,D,R);break;case"ascii":case"binary":g=C(this,e,r,a);break;case"base64":E=this,D=r,R=a,g=h._charsWritten=pe(Ae(e),E,D,R);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":g=w(this,e,r,a);break;default:throw new Error("Unknown encoding")}return g},h.prototype.toString=function(e,r,a){var m,g,E,D,R=this;if(e=String(e||"utf8").toLowerCase(),r=Number(r)||0,(a=a!==void 0?Number(a):R.length)===r)return"";switch(e){case"hex":m=function(W,Z,z){var G=W.length;(!Z||Z<0)&&(Z=0),(!z||z<0||G<z)&&(z=G);for(var $="",Y=Z;Y<z;Y++)$+=P(W[Y]);return $}(R,r,a);break;case"utf8":case"utf-8":m=function(W,Z,z){var G="",$="";z=Math.min(W.length,z);for(var Y=Z;Y<z;Y++)W[Y]<=127?(G+=Ne($)+String.fromCharCode(W[Y]),$=""):$+="%"+W[Y].toString(16);return G+Ne($)}(R,r,a);break;case"ascii":case"binary":m=_(R,r,a);break;case"base64":g=R,D=a,m=(E=r)===0&&D===g.length?v.fromByteArray(g):v.fromByteArray(g.slice(E,D));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":m=function(W,Z,z){for(var G=W.slice(Z,z),$="",Y=0;Y<G.length;Y+=2)$+=String.fromCharCode(G[Y]+256*G[Y+1]);return $}(R,r,a);break;default:throw new Error("Unknown encoding")}return m},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},h.prototype.copy=function(e,r,a,m){if(r=r||0,(m=m||m===0?m:this.length)!==(a=a||0)&&e.length!==0&&this.length!==0){S(a<=m,"sourceEnd < sourceStart"),S(0<=r&&r<e.length,"targetStart out of bounds"),S(0<=a&&a<this.length,"sourceStart out of bounds"),S(0<=m&&m<=this.length,"sourceEnd out of bounds"),m>this.length&&(m=this.length);var g=(m=e.length-r<m-a?e.length-r+a:m)-a;if(g<100||!h._useTypedArrays)for(var E=0;E<g;E++)e[E+r]=this[E+a];else e._set(this.subarray(a,a+g),r)}},h.prototype.slice=function(e,r){var a=this.length;if(e=j(e,a,0),r=j(r,a,a),h._useTypedArrays)return h._augment(this.subarray(e,r));for(var m=r-e,g=new h(m,void 0,!0),E=0;E<m;E++)g[E]=this[E+e];return g},h.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},h.prototype.set=function(e,r){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,r)},h.prototype.readUInt8=function(e,r){if(r||(S(e!=null,"missing offset"),S(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},h.prototype.readUInt16LE=function(e,r){return b(this,e,!0,r)},h.prototype.readUInt16BE=function(e,r){return b(this,e,!1,r)},h.prototype.readUInt32LE=function(e,r){return I(this,e,!0,r)},h.prototype.readUInt32BE=function(e,r){return I(this,e,!1,r)},h.prototype.readInt8=function(e,r){if(r||(S(e!=null,"missing offset"),S(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,r){return c(this,e,!0,r)},h.prototype.readInt16BE=function(e,r){return c(this,e,!1,r)},h.prototype.readInt32LE=function(e,r){return p(this,e,!0,r)},h.prototype.readInt32BE=function(e,r){return p(this,e,!1,r)},h.prototype.readFloatLE=function(e,r){return n(this,e,!0,r)},h.prototype.readFloatBE=function(e,r){return n(this,e,!1,r)},h.prototype.readDoubleLE=function(e,r){return s(this,e,!0,r)},h.prototype.readDoubleBE=function(e,r){return s(this,e,!1,r)},h.prototype.writeUInt8=function(e,r,a){a||(S(e!=null,"missing value"),S(r!=null,"missing offset"),S(r<this.length,"trying to write beyond buffer length"),we(e,255)),r>=this.length||(this[r]=e)},h.prototype.writeUInt16LE=function(e,r,a){t(this,e,r,!0,a)},h.prototype.writeUInt16BE=function(e,r,a){t(this,e,r,!1,a)},h.prototype.writeUInt32LE=function(e,r,a){u(this,e,r,!0,a)},h.prototype.writeUInt32BE=function(e,r,a){u(this,e,r,!1,a)},h.prototype.writeInt8=function(e,r,a){a||(S(e!=null,"missing value"),S(r!=null,"missing offset"),S(r<this.length,"Trying to write beyond buffer length"),_e(e,127,-128)),r>=this.length||(0<=e?this.writeUInt8(e,r,a):this.writeUInt8(255+e+1,r,a))},h.prototype.writeInt16LE=function(e,r,a){d(this,e,r,!0,a)},h.prototype.writeInt16BE=function(e,r,a){d(this,e,r,!1,a)},h.prototype.writeInt32LE=function(e,r,a){O(this,e,r,!0,a)},h.prototype.writeInt32BE=function(e,r,a){O(this,e,r,!1,a)},h.prototype.writeFloatLE=function(e,r,a){A(this,e,r,!0,a)},h.prototype.writeFloatBE=function(e,r,a){A(this,e,r,!1,a)},h.prototype.writeDoubleLE=function(e,r,a){L(this,e,r,!0,a)},h.prototype.writeDoubleBE=function(e,r,a){L(this,e,r,!1,a)},h.prototype.fill=function(e,r,a){if(r=r||0,a=a||this.length,S(typeof(e=typeof(e=e||0)=="string"?e.charCodeAt(0):e)=="number"&&!isNaN(e),"value is not a number"),S(r<=a,"end < start"),a!==r&&this.length!==0){S(0<=r&&r<this.length,"start out of bounds"),S(0<=a&&a<=this.length,"end out of bounds");for(var m=r;m<a;m++)this[m]=e}},h.prototype.inspect=function(){for(var e=[],r=this.length,a=0;a<r;a++)if(e[a]=P(this[a]),a===l.INSPECT_MAX_BYTES){e[a+1]="...";break}return"<Buffer "+e.join(" ")+">"},h.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(h._useTypedArrays)return new h(this).buffer;for(var e=new Uint8Array(this.length),r=0,a=e.length;r<a;r+=1)e[r]=this[r];return e.buffer};var k=h.prototype;function j(e,r,a){return typeof e!="number"?a:r<=(e=~~e)?r:0<=e||0<=(e+=r)?e:0}function K(e){return(e=~~Math.ceil(+e))<0?0:e}function V(e){return(Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"})(e)}function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function ee(e){for(var r=[],a=0;a<e.length;a++){var m=e.charCodeAt(a);if(m<=127)r.push(e.charCodeAt(a));else for(var g=a,E=(55296<=m&&m<=57343&&a++,encodeURIComponent(e.slice(g,a+1)).substr(1).split("%")),D=0;D<E.length;D++)r.push(parseInt(E[D],16))}return r}function Ae(e){return v.toByteArray(e)}function pe(e,r,a,m){for(var g=0;g<m&&!(g+a>=r.length||g>=e.length);g++)r[g+a]=e[g];return g}function Ne(e){try{return decodeURIComponent(e)}catch{return String.fromCharCode(65533)}}function we(e,r){S(typeof e=="number","cannot write a non-number as a number"),S(0<=e,"specified a negative value for writing an unsigned value"),S(e<=r,"value is larger than maximum value for type"),S(Math.floor(e)===e,"value has a fractional component")}function _e(e,r,a){S(typeof e=="number","cannot write a non-number as a number"),S(e<=r,"value larger than maximum allowed value"),S(a<=e,"value smaller than minimum allowed value"),S(Math.floor(e)===e,"value has a fractional component")}function Oe(e,r,a){S(typeof e=="number","cannot write a non-number as a number"),S(e<=r,"value larger than maximum allowed value"),S(a<=e,"value smaller than minimum allowed value")}function S(e,r){if(!e)throw new Error(r||"Failed assertion")}h._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=k.get,e.set=k.set,e.write=k.write,e.toString=k.toString,e.toLocaleString=k.toString,e.toJSON=k.toJSON,e.copy=k.copy,e.slice=k.slice,e.readUInt8=k.readUInt8,e.readUInt16LE=k.readUInt16LE,e.readUInt16BE=k.readUInt16BE,e.readUInt32LE=k.readUInt32LE,e.readUInt32BE=k.readUInt32BE,e.readInt8=k.readInt8,e.readInt16LE=k.readInt16LE,e.readInt16BE=k.readInt16BE,e.readInt32LE=k.readInt32LE,e.readInt32BE=k.readInt32BE,e.readFloatLE=k.readFloatLE,e.readFloatBE=k.readFloatBE,e.readDoubleLE=k.readDoubleLE,e.readDoubleBE=k.readDoubleBE,e.writeUInt8=k.writeUInt8,e.writeUInt16LE=k.writeUInt16LE,e.writeUInt16BE=k.writeUInt16BE,e.writeUInt32LE=k.writeUInt32LE,e.writeUInt32BE=k.writeUInt32BE,e.writeInt8=k.writeInt8,e.writeInt16LE=k.writeInt16LE,e.writeInt16BE=k.writeInt16BE,e.writeInt32LE=k.writeInt32LE,e.writeInt32BE=k.writeInt32BE,e.writeFloatLE=k.writeFloatLE,e.writeFloatBE=k.writeFloatBE,e.writeDoubleLE=k.writeDoubleLE,e.writeDoubleBE=k.writeDoubleBE,e.fill=k.fill,e.inspect=k.inspect,e.toArrayBuffer=k.toArrayBuffer,e}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(o,i,l){(function(f,y,v,U,T,N,M,H,J){var v=o("buffer").Buffer,x=4,h=new v(x);h.fill(0),i.exports={hash:function(C,w,_,b){for(var I=w(function(t,u){t.length%x!=0&&(d=t.length+(x-t.length%x),t=v.concat([t,h],d));for(var d,O=[],A=u?t.readInt32BE:t.readInt32LE,L=0;L<t.length;L+=x)O.push(A.call(t,L));return O}(C=v.isBuffer(C)?C:new v(C),b),8*C.length),w=b,c=new v(_),p=w?c.writeInt32BE:c.writeInt32LE,n=0;n<I.length;n++)p.call(c,I[n],4*n,!0);return c}}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(o,i,l){(function(f,y,v,U,T,N,M,H,J){var v=o("buffer").Buffer,x=o("./sha"),h=o("./sha256"),C=o("./rng"),w={sha1:x,sha256:h,md5:o("./md5")},_=64,b=new v(_);function I(t,u){var d=w[t=t||"sha1"],O=[];return d||c("algorithm:",t,"is not yet supported"),{update:function(A){return v.isBuffer(A)||(A=new v(A)),O.push(A),A.length,this},digest:function(A){var L=v.concat(O),L=u?function(k,j,K){v.isBuffer(j)||(j=new v(j)),v.isBuffer(K)||(K=new v(K)),j.length>_?j=k(j):j.length<_&&(j=v.concat([j,b],_));for(var V=new v(_),P=new v(_),ee=0;ee<_;ee++)V[ee]=54^j[ee],P[ee]=92^j[ee];return K=k(v.concat([V,K])),k(v.concat([P,K]))}(d,u,L):d(L);return O=null,A?L.toString(A):L}}}function c(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}b.fill(0),l.createHash=function(t){return I(t)},l.createHmac=I,l.randomBytes=function(t,u){if(!u||!u.call)return new v(C(t));try{u.call(this,void 0,new v(C(t)))}catch(d){u(d)}};var p,n=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],s=function(t){l[t]=function(){c("sorry,",t,"is not implemented yet")}};for(p in n)s(n[p],p)}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(o,i,l){(function(f,y,B,U,T,N,M,H,J){var v=o("./helpers");function x(c,p){c[p>>5]|=128<<p%32,c[14+(p+64>>>9<<4)]=p;for(var n=1732584193,s=-271733879,t=-1732584194,u=271733878,d=0;d<c.length;d+=16){var O=n,A=s,L=t,k=u,n=C(n,s,t,u,c[d+0],7,-680876936),u=C(u,n,s,t,c[d+1],12,-389564586),t=C(t,u,n,s,c[d+2],17,606105819),s=C(s,t,u,n,c[d+3],22,-1044525330);n=C(n,s,t,u,c[d+4],7,-176418897),u=C(u,n,s,t,c[d+5],12,1200080426),t=C(t,u,n,s,c[d+6],17,-1473231341),s=C(s,t,u,n,c[d+7],22,-45705983),n=C(n,s,t,u,c[d+8],7,1770035416),u=C(u,n,s,t,c[d+9],12,-1958414417),t=C(t,u,n,s,c[d+10],17,-42063),s=C(s,t,u,n,c[d+11],22,-1990404162),n=C(n,s,t,u,c[d+12],7,1804603682),u=C(u,n,s,t,c[d+13],12,-40341101),t=C(t,u,n,s,c[d+14],17,-1502002290),n=w(n,s=C(s,t,u,n,c[d+15],22,1236535329),t,u,c[d+1],5,-165796510),u=w(u,n,s,t,c[d+6],9,-1069501632),t=w(t,u,n,s,c[d+11],14,643717713),s=w(s,t,u,n,c[d+0],20,-373897302),n=w(n,s,t,u,c[d+5],5,-701558691),u=w(u,n,s,t,c[d+10],9,38016083),t=w(t,u,n,s,c[d+15],14,-660478335),s=w(s,t,u,n,c[d+4],20,-405537848),n=w(n,s,t,u,c[d+9],5,568446438),u=w(u,n,s,t,c[d+14],9,-1019803690),t=w(t,u,n,s,c[d+3],14,-187363961),s=w(s,t,u,n,c[d+8],20,1163531501),n=w(n,s,t,u,c[d+13],5,-1444681467),u=w(u,n,s,t,c[d+2],9,-51403784),t=w(t,u,n,s,c[d+7],14,1735328473),n=_(n,s=w(s,t,u,n,c[d+12],20,-1926607734),t,u,c[d+5],4,-378558),u=_(u,n,s,t,c[d+8],11,-2022574463),t=_(t,u,n,s,c[d+11],16,1839030562),s=_(s,t,u,n,c[d+14],23,-35309556),n=_(n,s,t,u,c[d+1],4,-1530992060),u=_(u,n,s,t,c[d+4],11,1272893353),t=_(t,u,n,s,c[d+7],16,-155497632),s=_(s,t,u,n,c[d+10],23,-1094730640),n=_(n,s,t,u,c[d+13],4,681279174),u=_(u,n,s,t,c[d+0],11,-358537222),t=_(t,u,n,s,c[d+3],16,-722521979),s=_(s,t,u,n,c[d+6],23,76029189),n=_(n,s,t,u,c[d+9],4,-640364487),u=_(u,n,s,t,c[d+12],11,-421815835),t=_(t,u,n,s,c[d+15],16,530742520),n=b(n,s=_(s,t,u,n,c[d+2],23,-995338651),t,u,c[d+0],6,-198630844),u=b(u,n,s,t,c[d+7],10,1126891415),t=b(t,u,n,s,c[d+14],15,-1416354905),s=b(s,t,u,n,c[d+5],21,-57434055),n=b(n,s,t,u,c[d+12],6,1700485571),u=b(u,n,s,t,c[d+3],10,-1894986606),t=b(t,u,n,s,c[d+10],15,-1051523),s=b(s,t,u,n,c[d+1],21,-2054922799),n=b(n,s,t,u,c[d+8],6,1873313359),u=b(u,n,s,t,c[d+15],10,-30611744),t=b(t,u,n,s,c[d+6],15,-1560198380),s=b(s,t,u,n,c[d+13],21,1309151649),n=b(n,s,t,u,c[d+4],6,-145523070),u=b(u,n,s,t,c[d+11],10,-1120210379),t=b(t,u,n,s,c[d+2],15,718787259),s=b(s,t,u,n,c[d+9],21,-343485551),n=I(n,O),s=I(s,A),t=I(t,L),u=I(u,k)}return Array(n,s,t,u)}function h(c,p,n,s,t,u){return I((p=I(I(p,c),I(s,u)))<<t|p>>>32-t,n)}function C(c,p,n,s,t,u,d){return h(p&n|~p&s,c,p,t,u,d)}function w(c,p,n,s,t,u,d){return h(p&s|n&~s,c,p,t,u,d)}function _(c,p,n,s,t,u,d){return h(p^n^s,c,p,t,u,d)}function b(c,p,n,s,t,u,d){return h(n^(p|~s),c,p,t,u,d)}function I(c,p){var n=(65535&c)+(65535&p);return(c>>16)+(p>>16)+(n>>16)<<16|65535&n}i.exports=function(c){return v.hash(c,x,16)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(o,i,l){(function(f,y,B,U,T,N,M,H,J){var v;i.exports=v||function(x){for(var h,C=new Array(x),w=0;w<x;w++)!(3&w)&&(h=4294967296*Math.random()),C[w]=h>>>((3&w)<<3)&255;return C}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(o,i,l){(function(f,y,B,U,T,N,M,H,J){var v=o("./helpers");function x(w,_){w[_>>5]|=128<<24-_%32,w[15+(_+64>>9<<4)]=_;for(var b,I,c,p=Array(80),n=1732584193,s=-271733879,t=-1732584194,u=271733878,d=-1009589776,O=0;O<w.length;O+=16){for(var A=n,L=s,k=t,j=u,K=d,V=0;V<80;V++){p[V]=V<16?w[O+V]:C(p[V-3]^p[V-8]^p[V-14]^p[V-16],1);var P=h(h(C(n,5),(P=s,I=t,c=u,(b=V)<20?P&I|~P&c:!(b<40)&&b<60?P&I|P&c|I&c:P^I^c)),h(h(d,p[V]),(b=V)<20?1518500249:b<40?1859775393:b<60?-1894007588:-899497514)),d=u,u=t,t=C(s,30),s=n,n=P}n=h(n,A),s=h(s,L),t=h(t,k),u=h(u,j),d=h(d,K)}return Array(n,s,t,u,d)}function h(w,_){var b=(65535&w)+(65535&_);return(w>>16)+(_>>16)+(b>>16)<<16|65535&b}function C(w,_){return w<<_|w>>>32-_}i.exports=function(w){return v.hash(w,x,20,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(o,i,l){(function(f,y,B,U,T,N,M,H,J){function v(_,b){var I=(65535&_)+(65535&b);return(_>>16)+(b>>16)+(I>>16)<<16|65535&I}function x(_,b){var I,c=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),p=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),n=new Array(64);_[b>>5]|=128<<24-b%32,_[15+(b+64>>9<<4)]=b;for(var s,t,u=0;u<_.length;u+=16){for(var d=p[0],O=p[1],A=p[2],L=p[3],k=p[4],j=p[5],K=p[6],V=p[7],P=0;P<64;P++)n[P]=P<16?_[P+u]:v(v(v((t=n[P-2],C(t,17)^C(t,19)^w(t,10)),n[P-7]),(t=n[P-15],C(t,7)^C(t,18)^w(t,3))),n[P-16]),I=v(v(v(v(V,C(t=k,6)^C(t,11)^C(t,25)),k&j^~k&K),c[P]),n[P]),s=v(C(s=d,2)^C(s,13)^C(s,22),d&O^d&A^O&A),V=K,K=j,j=k,k=v(L,I),L=A,A=O,O=d,d=v(I,s);p[0]=v(d,p[0]),p[1]=v(O,p[1]),p[2]=v(A,p[2]),p[3]=v(L,p[3]),p[4]=v(k,p[4]),p[5]=v(j,p[5]),p[6]=v(K,p[6]),p[7]=v(V,p[7])}return p}var h=o("./helpers"),C=function(_,b){return _>>>b|_<<32-b},w=function(_,b){return _>>>b};i.exports=function(_){return h.hash(_,x,32,!0)}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(o,i,l){(function(f,y,B,U,T,N,M,H,J){l.read=function(v,x,h,C,u){var _,b,I=8*u-C-1,c=(1<<I)-1,p=c>>1,n=-7,s=h?u-1:0,t=h?-1:1,u=v[x+s];for(s+=t,_=u&(1<<-n)-1,u>>=-n,n+=I;0<n;_=256*_+v[x+s],s+=t,n-=8);for(b=_&(1<<-n)-1,_>>=-n,n+=C;0<n;b=256*b+v[x+s],s+=t,n-=8);if(_===0)_=1-p;else{if(_===c)return b?NaN:1/0*(u?-1:1);b+=Math.pow(2,C),_-=p}return(u?-1:1)*b*Math.pow(2,_-C)},l.write=function(v,x,h,C,w,d){var b,I,c=8*d-w-1,p=(1<<c)-1,n=p>>1,s=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,t=C?0:d-1,u=C?1:-1,d=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===1/0?(I=isNaN(x)?1:0,b=p):(b=Math.floor(Math.log(x)/Math.LN2),x*(C=Math.pow(2,-b))<1&&(b--,C*=2),2<=(x+=1<=b+n?s/C:s*Math.pow(2,1-n))*C&&(b++,C/=2),p<=b+n?(I=0,b=p):1<=b+n?(I=(x*C-1)*Math.pow(2,w),b+=n):(I=x*Math.pow(2,n-1)*Math.pow(2,w),b=0));8<=w;v[h+t]=255&I,t+=u,I/=256,w-=8);for(b=b<<w|I,c+=w;0<c;v[h+t]=255&b,t+=u,b/=256,c-=8);v[h+t-u]|=128*d}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(o,i,l){(function(f,y,B,U,T,N,M,H,J){var v,x,h;function C(){}(f=i.exports={}).nextTick=(x=typeof window<"u"&&window.setImmediate,h=typeof window<"u"&&window.postMessage&&window.addEventListener,x?function(w){return window.setImmediate(w)}:h?(v=[],window.addEventListener("message",function(w){var _=w.source;_!==window&&_!==null||w.data!=="process-tick"||(w.stopPropagation(),0<v.length&&v.shift()())},!0),function(w){v.push(w),window.postMessage("process-tick","*")}):function(w){setTimeout(w,0)}),f.title="browser",f.browser=!0,f.env={},f.argv=[],f.on=C,f.addListener=C,f.once=C,f.off=C,f.removeListener=C,f.removeAllListeners=C,f.emit=C,f.binding=function(w){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(w){throw new Error("process.chdir is not supported")}}).call(this,o("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},o("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})});var rn={};Dt(rn,{ConsentBanner:()=>st,ConsentContext:()=>ce,ConsentProvider:()=>kt,useConsent:()=>Q});module.exports=Mt(rn);var je=require("react");var Pe=Ce(require("react")),ce=Pe.default.createContext({consent:[],isBannerVisible:!0,isDetailsVisible:!1,hasConsent:()=>!0,toggleBanner:()=>{},toggleDetails:()=>{},setConsent:([])=>{},options:{services:[]}});function Q(){return(0,je.useContext)(ce)}var de=require("react");var Se=require("react");function he(){let{setConsent:o,options:{services:i}}=Q(),l=(0,Se.useCallback)(y=>{o(y||i.map(({id:B})=>B))},[i,o]);return{onDecline:(0,Se.useCallback)(()=>{o([])},[o]),onApprove:l}}var tt=require("react"),nt=Ce(et());var oe=require("react/jsx-runtime");function rt({onChange:o,id:i,name:l,description:f,mandatory:y}){let{consent:B}=Q(),U=(0,tt.useCallback)(T=>{o(i,T.target.checked)},[o,i]);return(0,oe.jsxs)("div",{className:"rhc-settings__content__main__item",children:[(0,oe.jsxs)("div",{className:"rhc-settings__content__main__item__title",children:[(0,oe.jsx)("label",{className:"rhc-settings__content__main__item__title__label",htmlFor:i,children:l}),(0,oe.jsx)(nt.default,{id:i,defaultChecked:B.includes(i),onChange:U,disabled:y})]}),f&&(0,oe.jsx)("p",{className:"rhc-settings__content__main__item__description",children:f})]})}var ye=require("react");function ot(){let{consent:o}=Q(),[i,l]=(0,ye.useState)(o),f=(0,ye.useCallback)((y,B)=>{l(U=>B?[...U,y]:U.filter(T=>T!==y))},[]);return{selectedServices:i,handleSelectedServiceChange:f}}var F=require("react/jsx-runtime");function it({onToggle:o=()=>{},modal:i}){var v,x,h,C,w,_,b;let{options:{services:l,theme:f}}=Q(),{onDecline:y,onApprove:B}=he(),{selectedServices:U,handleSelectedServiceChange:T}=ot(),N=(0,de.useCallback)(()=>o(),[o]),M=(0,de.useCallback)(()=>{y(),o()},[y,o]),H=(0,de.useCallback)(()=>{B(U),o()},[B,o,U]),J=(0,de.useCallback)(()=>{B(),o()},[B,o]);return(0,F.jsx)("div",{className:`${f==="light"?"rhc-theme-light":"rhc-theme-dark"} rhc-settings`,onClick:N,"data-testid":"settings",children:(0,F.jsxs)("div",{className:"rhc-settings__content",onClick:I=>I.stopPropagation(),children:[(0,F.jsxs)("div",{className:"rhc-settings__content__header",children:[(0,F.jsx)("h1",{children:i!=null&&i.title?i.title:(0,F.jsx)(F.Fragment,{children:"Consent settings"})}),(0,F.jsx)("p",{children:i!=null&&i.description?i.description:(0,F.jsx)(F.Fragment,{children:"We use cookies and third party services on this website. Some of them are essential, others help us to improve your browsing experience. Feel free to adjust your individual settings below."})})]}),(0,F.jsx)("div",{className:"rhc-settings__content__main",children:l.map(({id:I,name:c,description:p,mandatory:n},s)=>(0,F.jsx)(rt,{id:I,name:c,description:p,mandatory:n,onChange:T},s))}),(0,F.jsxs)("div",{className:"rhc-settings__content__footer",children:[!((v=i==null?void 0:i.decline)!=null&&v.hidden)&&(0,F.jsx)("button",{className:"rhc-settings__content__footer__secondary",onClick:M,children:(x=i==null?void 0:i.decline)!=null&&x.label?(h=i==null?void 0:i.decline)==null?void 0:h.label:(0,F.jsx)(F.Fragment,{children:"Decline"})}),(0,F.jsx)("button",{className:"rhc-settings__content__footer__secondary",onClick:H,children:(C=i==null?void 0:i.approve)!=null&&C.label?(w=i==null?void 0:i.approve)==null?void 0:w.label:(0,F.jsx)(F.Fragment,{children:"Approve selection"})}),(0,F.jsx)("button",{className:"rhc-settings__content__footer__primary",onClick:J,children:(_=i==null?void 0:i.approveAll)!=null&&_.label?(b=i==null?void 0:i.approveAll)==null?void 0:b.label:(0,F.jsx)(F.Fragment,{children:"Approve all"})})]})]})})}var q=require("react/jsx-runtime");function st({children:o,settings:i,approve:l,decline:f}){let{isBannerVisible:y,isDetailsVisible:B,toggleDetails:U,options:{theme:T}}=Q(),{onDecline:N,onApprove:M}=he();return(0,q.jsxs)(q.Fragment,{children:[y&&!B&&(0,q.jsx)("div",{className:`${T==="light"?"rhc-theme-light":"rhc-theme-dark"} rhc-banner`,children:(0,q.jsxs)("div",{className:"rhc-banner__content",children:[(0,q.jsx)("div",{className:"rhc-banner__content__message",children:o||(0,q.jsx)(q.Fragment,{children:"We want to use cookies and external services to analyze and improve this website for you. You will find more details in our privacy policy."})}),i!=null&&i.hidden?null:(0,q.jsx)("button",{className:"rhc-banner__content__secondary",onClick:U,children:i!=null&&i.label?i.label:(0,q.jsx)(q.Fragment,{children:"Settings"})}),!(f!=null&&f.hidden)&&(0,q.jsx)("button",{className:"rhc-banner__content__secondary",onClick:N,children:f!=null&&f.label?f.label:(0,q.jsx)(q.Fragment,{children:"Decline"})}),(0,q.jsx)("button",{className:"rhc-banner__content__primary",onClick:()=>M(),children:l!=null&&l.label?l.label:(0,q.jsx)(q.Fragment,{children:"Approve"})})]})}),B&&(0,q.jsx)(it,{onToggle:U,modal:i==null?void 0:i.modal})]})}var Et=Ce(ut()),ne=require("react");var be="react-hook-consent",ue="react-hook-consent";function lt(o,i){let l=document.createElement("script");l.id=i,l.innerHTML=o,document.body.appendChild(l)}function ft(o,i){let l=document.createElement("script");l.id=i,l.src=o,l.async=!0,document.body.appendChild(l)}function dt(o){return!!o.id&&!!o.code}function pt(o){return!!o.id&&!!o.src}function ht(o,i){if(i)for(let l of i){let{id:f}=l,y=`${be}-${o}-${f}`;document.getElementById(y)||(pt(l)&&ft(l.src,y),dt(l)&&lt(l.code,y))}}function ve(o){o.forEach(({id:i,scripts:l})=>{ht(i,l)})}function gt(o){let i=localStorage.getItem(`${ue}`);if(!i)return{consent:[],isBannerVisible:!0,isDetailsVisible:!1};let{consent:l,hash:f}=JSON.parse(i),y=!1;return f!==o&&(y=!0),{consent:l&&l.length>0?l:[],isBannerVisible:y,isDetailsVisible:!1}}function mt(o){let i=localStorage.getItem(`${ue}`);if(!i)return!1;let{hash:l}=JSON.parse(i);return l===o}function yt(o,i){localStorage.setItem(`${ue}`,JSON.stringify({consent:o,hash:i,updated:new Date}))}function bt(o){if(o)for(let i of o)document.cookie=i.pattern+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}function vt(o){if(o)for(let i of o)localStorage.removeItem(i)}function wt(o,i){if(i)for(let{id:l}of i){let f=document.getElementById(`${be}-${o}-${l}`);f&&f.remove()}}function _t(o){if(o)for(let i of o)sessionStorage.removeItem(i)}function Ct(o){o.forEach(({id:i,scripts:l,cookies:f,localStorage:y,sessionStorage:B})=>{wt(i,l),bt(f),vt(y),_t(B)})}function St(o,i,l){let f=o.services.filter(B=>!i.includes(B.id)),y=o.services.filter(B=>i.includes(B.id));Ct(f),ve(y),yt(i,l)}function xt(o){var T;let[i,l]=(0,ne.useState)({consent:[],isBannerVisible:!1,isDetailsVisible:!1,hash:(T=o.customHash)!=null?T:(0,Et.default)(o)});(0,ne.useEffect)(()=>{if(!mt(i.hash)){let v=o.services.filter(x=>x==null?void 0:x.mandatory).map(x=>x.id);l(x=>ae(se({},x),{consent:v,isBannerVisible:!0,isDetailsVisible:!1}));return}let{consent:N,isBannerVisible:M,isDetailsVisible:H}=gt(i.hash);l(v=>ae(se({},v),{consent:N,isBannerVisible:M,isDetailsVisible:H}));let J=o.services.filter(v=>N.includes(v.id));ve(J)},[o.services,i.hash]);let f=(0,ne.useCallback)(N=>{l(M=>ae(se({},M),{consent:N,isBannerVisible:!1})),St(o,N,i.hash)},[o,i.hash]),y=(0,ne.useCallback)(N=>i.consent.includes(N),[i.consent]),B=(0,ne.useCallback)(()=>{l(N=>ae(se({},N),{isBannerVisible:!N.isBannerVisible}))},[]),U=(0,ne.useCallback)(()=>{l(N=>ae(se({},N),{isDetailsVisible:!N.isDetailsVisible}))},[]);return{consent:i.consent,hasConsent:y,isBannerVisible:i.isBannerVisible,isDetailsVisible:i.isDetailsVisible,toggleBanner:B,toggleDetails:U,setConsent:f}}var Bt=require("react/jsx-runtime");function kt({options:o,children:i}){let{consent:l,hasConsent:f,isBannerVisible:y,toggleBanner:B,isDetailsVisible:U,toggleDetails:T,setConsent:N}=xt(o);return(0,Bt.jsx)(ce.Provider,{value:{consent:l,hasConsent:f,isBannerVisible:y,toggleBanner:B,isDetailsVisible:U,toggleDetails:T,setConsent:N,options:o},children:i})}
/*! Bundled license information:

@@ -8,0 +8,0 @@

{
"name": "react-hook-consent",
"version": "3.4.0",
"version": "3.5.0",
"description": "React consent management solution and banner for cookies and (external) scripts.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -8,3 +8,3 @@ ![publish workflow](https://github.com/lukaskupczyk/react-hook-consent/actions/workflows/publish.yml/badge.svg)

React consent management solution and banner for cookies and (external) scripts.
React consent management solution and banner for cookies, local storage, session storage and (external) scripts.

@@ -17,3 +17,3 @@ ![react-hook-consent Screenshot](/assets/screenshot.png)

- Loads (external) scripts based on consent state
- Deletes cookies when consent declined
- Deletes cookies, local storage and session storage when consent declined
- Hook to retrieve and change the current consent

@@ -89,10 +89,12 @@ - Optional Banner with detailed settings to approve / decline consent

| Name | Type | Required | Description |
| ----------- | ----------------------------------- | -------- | ------------------------------------------------------------------- |
| id | string | yes | A unique id for the service, e.g. 'myid' |
| name | string | yes | The name of the service, e.g. 'My Service' |
| description | string | | The description of the service, e.g. 'My ID is a tracking service.' |
| scripts | Array<ScriptExternal \| ScriptCode> | | External script or code to load upon consent |
| cookies | Cookie[] | | Configuration of cookies to delete them upon decline |
| mandatory | boolean | | If true, the service is mandatory and cannot be declined |
| Name | Type | Required | Description |
| -------------- | ----------------------------------- | -------- | ------------------------------------------------------------------- |
| id | string | yes | A unique id for the service, e.g. 'myid' |
| name | string | yes | The name of the service, e.g. 'My Service' |
| description | string | | The description of the service, e.g. 'My ID is a tracking service.' |
| scripts | Array<ScriptExternal \| ScriptCode> | | External script or code to load upon consent |
| cookies | Cookie[] | | Configuration of cookies to delete them upon decline |
| localStorage | string[] | | Configuration of local storage to delete them upon decline |
| sessionStorage | string[] | | Configuration of session storage to delete them upon decline |
| mandatory | boolean | | If true, the service is mandatory and cannot be declined |

@@ -99,0 +101,0 @@ `ScriptExternal` has the following options:

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc