tocco-admin 1.0.4 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +22 -0
- package/dist/chunk-140.e4b48d2a60e4ffb79b25.js +7 -0
- package/dist/chunk-140.e4b48d2a60e4ffb79b25.js.map +1 -0
- package/dist/chunk-172.34f7d09fbb39a8bfaad0.js +2 -0
- package/dist/chunk-172.34f7d09fbb39a8bfaad0.js.map +1 -0
- package/dist/chunk-207.cc1646ee6c7a19f6220b.js +2 -0
- package/dist/chunk-207.cc1646ee6c7a19f6220b.js.map +1 -0
- package/dist/chunk-333.076420568f93c6cdc24b.js +2 -0
- package/dist/chunk-333.076420568f93c6cdc24b.js.map +1 -0
- package/dist/{chunk-389.5572ffcab03a0d9d2a34.js → chunk-389.6ecc00ac9d83836cb8c6.js} +2 -2
- package/dist/{chunk-389.5572ffcab03a0d9d2a34.js.map → chunk-389.6ecc00ac9d83836cb8c6.js.map} +1 -1
- package/dist/chunk-404.e573ba4c4c7cedc843f3.js +2 -0
- package/dist/chunk-404.e573ba4c4c7cedc843f3.js.map +1 -0
- package/dist/chunk-51.77155794b021526c7990.js +10 -0
- package/dist/chunk-51.77155794b021526c7990.js.map +1 -0
- package/dist/chunk-actions.c7efc5f5036d72d3b972.js +2 -0
- package/dist/chunk-actions.c7efc5f5036d72d3b972.js.map +1 -0
- package/dist/chunk-code-editor.4932fdbfef27989069a5.js +2 -0
- package/dist/chunk-code-editor.4932fdbfef27989069a5.js.map +1 -0
- package/dist/chunk-docs-actions.fe615fd8e3c8ff68c449.js +7 -0
- package/dist/chunk-docs-actions.fe615fd8e3c8ff68c449.js.map +1 -0
- package/dist/chunk-vendor-icons.aae1dc235d12dd74b38e.js +1 -0
- package/dist/{chunk-vendor-quill.d2c4075d7a2f3dc521b9.js → chunk-vendor-quill.4404add78e687c1422ce.js} +7 -7
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
- package/dist/chunk-215.e754c21a4318bf45a54e.js +0 -2
- package/dist/chunk-215.e754c21a4318bf45a54e.js.map +0 -1
- package/dist/chunk-308.2619c807dd54e06b172b.js +0 -2
- package/dist/chunk-308.2619c807dd54e06b172b.js.map +0 -1
- package/dist/chunk-404.4623b1e641adeb84a349.js +0 -2
- package/dist/chunk-404.4623b1e641adeb84a349.js.map +0 -1
- package/dist/chunk-460.b4c78fb7b40f867014a2.js +0 -20
- package/dist/chunk-460.b4c78fb7b40f867014a2.js.map +0 -1
- package/dist/chunk-617.fca2e832439c172aedad.js +0 -7
- package/dist/chunk-617.fca2e832439c172aedad.js.map +0 -1
- package/dist/chunk-817.5c2200dfd53556f2f257.js +0 -2
- package/dist/chunk-817.5c2200dfd53556f2f257.js.map +0 -1
- package/dist/chunk-actions.1f598fbe1ed8797b7703.js +0 -2
- package/dist/chunk-actions.1f598fbe1ed8797b7703.js.map +0 -1
- package/dist/chunk-code-editor.311af9f0f84338bb73c0.js +0 -7
- package/dist/chunk-code-editor.311af9f0f84338bb73c0.js.map +0 -1
- package/dist/chunk-docs-actions.c19755c23baf5cd8e09b.js +0 -2
- package/dist/chunk-docs-actions.c19755c23baf5cd8e09b.js.map +0 -1
- package/dist/chunk-vendor-icons.9ce8f3269ac4f0a81b33.js +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[51],{44020:e=>{"use strict";var t=new RegExp("%[a-f0-9]{2}","gi"),r=new RegExp("(%[a-f0-9]{2})+","gi");function n(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),o=e.slice(t);return Array.prototype.concat.call([],n(r),n(o))}function o(e){try{return decodeURIComponent(e)}catch(a){for(var r=e.match(t),o=1;o<r.length;o++)r=(e=n(r,o).join("")).match(t);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var a=o(n[0]);a!==n[0]&&(t[n[0]]=a)}n=r.exec(e)}t["%C2"]="�";for(var i=Object.keys(t),s=0;s<i.length;s++){var u=i[s];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),a=0;a<n.length;a++){var i=n[a],s=e[i];(o?-1!==t.indexOf(i):t(i,s,e))&&(r[i]=s)}return r}},36392:(e,t,r)=>{"use strict";r.d(t,{lX:()=>S});var n=r(75597),o=r.n(n),a=r(41143),i=r.n(a),s=r(14149),u=(r(54545),function(e){return"/"===e.charAt(0)?e:"/"+e}),l=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},c=function(e,t){return l(e,t)?e.substr(t.length):e},p=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},f=function(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&"?"!==r&&(o+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o},h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d=function(e,t,r,n){var o=void 0;"string"==typeof e?(o=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(r=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e)).state=t:(void 0===(o=h({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return r&&(o.key=r),n?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,s.default)(o.pathname,n.pathname)):o.pathname=n.pathname:o.pathname||(o.pathname="/"),o};const m=function(){var e=null,t=[];return{setPrompt:function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,a){if(null!=e){var i="function"==typeof e?e(t,r):e;"string"==typeof i?"function"==typeof n?n(i,a):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),a(!0)):a(!1!==i)}else a(!0)},appendListener:function(e){var r=!0,n=function(){r&&e.apply(void 0,arguments)};return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];t.forEach((function(e){return e.apply(void 0,r)}))}}};var g=!("undefined"==typeof window||!window.document||!window.document.createElement),y=function(e,t,r){return e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},v=function(e,t,r){return e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},b=function(e,t){return t(window.confirm(e))},w=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},O=function(){return-1===window.navigator.userAgent.indexOf("Trident")},C=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")},E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k=function(){try{return window.history.state||{}}catch(e){return{}}};const S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i()(g,"Browser history needs a DOM");var t=window.history,r=w(),n=!O(),a=e.forceRefresh,s=void 0!==a&&a,h=e.getUserConfirmation,S=void 0===h?b:h,_=e.keyLength,P=void 0===_?6:_,L=e.basename?p(u(e.basename)):"",N=function(e){var t=e||{},r=t.key,n=t.state,a=window.location,i=a.pathname+a.search+a.hash;return o()(!L||l(i,L),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+L+'".'),L&&(i=c(i,L)),d(i,n,r)},j=function(){return Math.random().toString(36).substr(2,P)},I=m(),T=function(e){x(Q,e),Q.length=t.length,I.notifyListeners(Q.location,Q.action)},A=function(e){C(e)||D(N(e.state))},M=function(){D(N(k()))},B=!1,D=function(e){if(B)B=!1,T();else{I.confirmTransitionTo(e,"POP",S,(function(t){t?T({action:"POP",location:e}):R(e)}))}},R=function(e){var t=Q.location,r=U.indexOf(t.key);-1===r&&(r=0);var n=U.indexOf(e.key);-1===n&&(n=0);var o=r-n;o&&(B=!0,W(o))},F=N(k()),U=[F.key],$=function(e){return L+f(e)},H=function(e,n){o()(!("object"===(void 0===e?"undefined":E(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a=d(e,n,j(),Q.location);I.confirmTransitionTo(a,"PUSH",S,(function(e){if(e){var n=$(a),i=a.key,u=a.state;if(r)if(t.pushState({key:i,state:u},null,n),s)window.location.href=n;else{var l=U.indexOf(Q.location.key),c=U.slice(0,-1===l?0:l+1);c.push(a.key),U=c,T({action:"PUSH",location:a})}else o()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=n}}))},z=function(e,n){o()(!("object"===(void 0===e?"undefined":E(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var a=d(e,n,j(),Q.location);I.confirmTransitionTo(a,"REPLACE",S,(function(e){if(e){var n=$(a),i=a.key,u=a.state;if(r)if(t.replaceState({key:i,state:u},null,n),s)window.location.replace(n);else{var l=U.indexOf(Q.location.key);-1!==l&&(U[l]=a.key),T({action:"REPLACE",location:a})}else o()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(n)}}))},W=function(e){t.go(e)},q=function(){return W(-1)},G=function(){return W(1)},K=0,X=function(e){1===(K+=e)?(y(window,"popstate",A),n&&y(window,"hashchange",M)):0===K&&(v(window,"popstate",A),n&&v(window,"hashchange",M))},Y=!1,J=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=I.setPrompt(e);return Y||(X(1),Y=!0),function(){return Y&&(Y=!1,X(-1)),t()}},V=function(e){var t=I.appendListener(e);return X(1),function(){X(-1),t()}},Q={length:t.length,action:"POP",location:F,createHref:$,push:H,replace:z,go:W,goBack:q,goForward:G,block:J,listen:V};return Q};Object.assign;"function"==typeof Symbol&&Symbol.iterator,Object.assign},7548:e=>{e.exports=function(){}},28045:e=>{e.exports=function(e){return e}},52157:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var a=-1,i=e.length,s=n.length,u=-1,l=r.length,c=t(i-s,0),p=Array(l+c),f=!o;++u<l;)p[u]=r[u];for(;++a<s;)(f||a<i)&&(p[n[a]]=e[a]);for(;c--;)p[u++]=e[a++];return p}},14054:e=>{var t=Math.max;e.exports=function(e,r,n,o){for(var a=-1,i=e.length,s=-1,u=n.length,l=-1,c=r.length,p=t(i-u,0),f=Array(p+c),h=!o;++a<p;)f[a]=e[a];for(var d=a;++l<c;)f[d+l]=r[l];for(;++s<u;)(h||a<i)&&(f[d+n[s]]=e[a++]);return f}},97991:e=>{e.exports=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}},22402:(e,t,r)=>{var n=r(71774),o=r(55639);e.exports=function(e,t,r){var a=1&t,i=n(e);return function t(){var n=this&&this!==o&&this instanceof t?i:e;return n.apply(a?r:this,arguments)}}},71774:(e,t,r)=>{var n=r(3118),o=r(13218);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=n(e.prototype),a=e.apply(r,t);return o(a)?a:r}}},46347:(e,t,r)=>{var n=r(96874),o=r(71774),a=r(86935),i=r(94487),s=r(20893),u=r(46460),l=r(55639);e.exports=function(e,t,r){var c=o(e);return function o(){for(var p=arguments.length,f=Array(p),h=p,d=s(o);h--;)f[h]=arguments[h];var m=p<3&&f[0]!==d&&f[p-1]!==d?[]:u(f,d);if((p-=m.length)<r)return i(e,t,a,o.placeholder,void 0,f,m,void 0,void 0,r-p);var g=this&&this!==l&&this instanceof o?c:e;return n(g,this,f)}}},23468:(e,t,r)=>{var n=r(7548),o=r(99021),a=r(66833),i=r(97658),s=r(1469),u=r(86528);e.exports=function(e){return o((function(t){var r=t.length,o=r,l=n.prototype.thru;for(e&&t.reverse();o--;){var c=t[o];if("function"!=typeof c)throw new TypeError("Expected a function");if(l&&!p&&"wrapper"==i(c))var p=new n([],!0)}for(o=p?o:r;++o<r;){c=t[o];var f=i(c),h="wrapper"==f?a(c):void 0;p=h&&u(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?p[i(h[0])].apply(p,h[3]):1==c.length&&u(c)?p[f]():p.thru(c)}return function(){var e=arguments,n=e[0];if(p&&1==e.length&&s(n))return p.plant(n).value();for(var o=0,a=r?t[o].apply(this,e):n;++o<r;)a=t[o].call(this,a);return a}}))}},86935:(e,t,r)=>{var n=r(52157),o=r(14054),a=r(97991),i=r(71774),s=r(94487),u=r(20893),l=r(90451),c=r(46460),p=r(55639);e.exports=function e(t,r,f,h,d,m,g,y,v,b){var w=128&r,O=1&r,C=2&r,E=24&r,x=512&r,k=C?void 0:i(t);return function S(){for(var _=arguments.length,P=Array(_),L=_;L--;)P[L]=arguments[L];if(E)var N=u(S),j=a(P,N);if(h&&(P=n(P,h,d,E)),m&&(P=o(P,m,g,E)),_-=j,E&&_<b){var I=c(P,N);return s(t,r,e,S.placeholder,f,P,I,y,v,b-_)}var T=O?f:this,A=C?T[t]:t;return _=P.length,y?P=l(P,y):x&&_>1&&P.reverse(),w&&v<_&&(P.length=v),this&&this!==p&&this instanceof S&&(A=k||i(A)),A.apply(T,P)}}},84375:(e,t,r)=>{var n=r(96874),o=r(71774),a=r(55639);e.exports=function(e,t,r,i){var s=1&t,u=o(e);return function t(){for(var o=-1,l=arguments.length,c=-1,p=i.length,f=Array(p+l),h=this&&this!==a&&this instanceof t?u:e;++c<p;)f[c]=i[c];for(;l--;)f[c++]=arguments[++o];return n(h,s?r:this,f)}}},94487:(e,t,r)=>{var n=r(86528),o=r(258),a=r(69255);e.exports=function(e,t,r,i,s,u,l,c,p,f){var h=8&t;t|=h?32:64,4&(t&=~(h?64:32))||(t&=-4);var d=[e,t,s,h?u:void 0,h?l:void 0,h?void 0:u,h?void 0:l,c,p,f],m=r.apply(void 0,d);return n(e)&&o(m,d),m.placeholder=i,a(m,e,t)}},97727:(e,t,r)=>{var n=r(28045),o=r(22402),a=r(46347),i=r(86935),s=r(84375),u=r(66833),l=r(63833),c=r(258),p=r(69255),f=r(40554),h=Math.max;e.exports=function(e,t,r,d,m,g,y,v){var b=2&t;if(!b&&"function"!=typeof e)throw new TypeError("Expected a function");var w=d?d.length:0;if(w||(t&=-97,d=m=void 0),y=void 0===y?y:h(f(y),0),v=void 0===v?v:f(v),w-=m?m.length:0,64&t){var O=d,C=m;d=m=void 0}var E=b?void 0:u(e),x=[e,t,r,d,m,O,C,g,y,v];if(E&&l(x,E),e=x[0],t=x[1],r=x[2],d=x[3],m=x[4],!(v=x[9]=void 0===x[9]?b?0:e.length:h(x[9]-w,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||16==t?a(e,t,v):32!=t&&33!=t||m.length?i.apply(void 0,x):s(e,t,r,d);else var k=o(e,t,r);return p((E?n:c)(k,x),e,t)}},66833:e=>{e.exports=function(){}},97658:e=>{e.exports=function(){return""}},20893:e=>{e.exports=function(){}},86528:e=>{e.exports=function(){return!1}},63833:e=>{e.exports=function(e){return e}},90451:(e,t,r)=>{var n=r(278),o=r(65776),a=Math.min;e.exports=function(e,t){for(var r=e.length,i=a(t.length,r),s=n(e);i--;){var u=t[i];e[i]=o(u,r)?s[u]:void 0}return e}},46460:e=>{e.exports=function(){return[]}},258:e=>{e.exports=function(e){return e}},69255:e=>{e.exports=function(e){return e}},40087:(e,t,r)=>{var n=r(97727);function o(e,t,r){var a=n(e,8,void 0,void 0,void 0,void 0,void 0,t=r?void 0:t);return a.placeholder=o.placeholder,a}o.placeholder={},e.exports=o},59242:(e,t,r)=>{var n=r(23468)();e.exports=n},94885:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},14176:(e,t,r)=>{var n=r(67206),o=r(94885),a=r(35937);e.exports=function(e,t){return a(e,o(n(t)))}},40554:e=>{e.exports=function(e){return e}},17563:(e,t,r)=>{"use strict";const n=r(70610),o=r(44020),a=r(80500),i=r(92806),s=Symbol("encodeFragmentIdentifier");function u(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function c(e,t){return t.decode?o(e):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function d(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return(e,r,n)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return(t,r,n)=>{const o="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!o&&c(r,e).includes(e.arrayFormatSeparator);r=a?c(r,e):r;const i=o||a?r.split(e.arrayFormatSeparator).map(t=>c(t,e)):null===r?r:c(r,e);n[t]=i};case"bracket-separator":return(t,r,n)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(n[t]=r?c(r,e):r);const a=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>c(t,e));void 0!==n[t]?n[t]=[].concat(n[t],a):n[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const o of e.split("&")){if(""===o)continue;let[e,i]=a(t.decode?o.replace(/\+/g," "):o,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:c(i,t),r(c(e,t),i,n)}for(const e of Object.keys(n)){const r=n[e];if("object"==typeof r&&null!==r)for(const e of Object.keys(r))r[e]=h(r[e],t);else n[e]=h(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=f,t.parse=d,t.stringify=(e,t)=>{if(!e)return"";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const r=r=>t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[",o,"]"].join("")]:[...r,[l(t,e),"[",l(o,e),"]=",l(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[l(t,e),"[]"].join("")]:[...r,[l(t,e),"[]=",l(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[l(r,e),t,l(o,e)].join("")]:[[n,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,l(t,e)]:[...r,[l(t,e),"=",l(n,e)].join("")]}}(t),o={};for(const t of Object.keys(e))r(t)||(o[t]=e[t]);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map(r=>{const o=e[r];return void 0===o?"":null===o?l(r,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(r,t)+"[]":o.reduce(n(r),[]).join("&"):l(r,t)+"="+l(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[r,n]=a(e,"#");return Object.assign({url:r.split("?")[0]||"",query:d(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:c(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[s]:!0},r);const n=p(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query);let u=t.stringify(i,r);u&&(u="?"+u);let c=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(c="#"+(r[s]?l(e.fragmentIdentifier,r):e.fragmentIdentifier)),`${n}${u}${c}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[s]:!1},n);const{url:o,query:a,fragmentIdentifier:u}=t.parseUrl(e,n);return t.stringifyUrl({url:o,query:i(a,r),fragmentIdentifier:u},n)},t.exclude=(e,r,n)=>{const o=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,o,n)}},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},7135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function a(e){return e&&e.__esModule?e:{default:e}}var i=r(1024),s=a(i),u=a(r(22982)),l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){for(var n=!0;n;){var o=e,a=t,i=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(i)}var l=Object.getPrototypeOf(o);if(null===l)return;e=l,t=a,r=i,n=!0,s=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={hover:!1}}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getLineStyle",value:function(e){return n({position:"absolute",height:"20%",left:0,right:0,top:2*e*20+"%",opacity:this.state.hover?.6:1},this.state.hover&&this.props.styles.bmBurgerBarsHover)}},{key:"render",value:function(){var e=this,t=void 0;if(this.props.customIcon){var r={className:("bm-icon "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmIcon)};t=s.default.cloneElement(this.props.customIcon,r)}else t=s.default.createElement("span",null,[0,1,2].map((function(t){return s.default.createElement("span",{key:t,className:("bm-burger-bars "+e.props.barClassName+" "+(e.state.hover?"bm-burger-bars-hover":"")).trim(),style:n({},e.getLineStyle(t),e.props.styles.bmBurgerBars)})})));return s.default.createElement("div",{className:("bm-burger-button "+this.props.className).trim(),style:n({zIndex:1e3},this.props.styles.bmBurgerButton)},t,s.default.createElement("button",{onClick:this.props.onClick,onMouseOver:function(){return e.setState({hover:!0})},onMouseOut:function(){return e.setState({hover:!1})},style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"}},"Open Menu"))}}]),t}(i.Component);t.default=l,l.propTypes={barClassName:u.default.string,customIcon:u.default.element,styles:u.default.object},l.defaultProps={barClassName:"",className:"",styles:{}},e.exports=t.default},97039:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function(e,t,r){for(var n=!0;n;){var o=e,a=t,i=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(i)}var l=Object.getPrototypeOf(o);if(null===l)return;e=l,t=a,r=i,n=!0,s=l=void 0}};function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=r(1024),l=i(u),c=i(r(22982)),p=function(e){function t(){s(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"getCrossStyle",value:function(e){return{position:"absolute",width:3,height:14,transform:"before"===e?"rotate(45deg)":"rotate(-45deg)"}}},{key:"render",value:function(){var e,t=this;if(this.props.customIcon){var r={className:("bm-cross "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmCross)};e=l.default.cloneElement(this.props.customIcon,r)}else e=l.default.createElement("span",{style:{position:"absolute",top:"6px",right:"14px"}},["before","after"].map((function(e,r){return l.default.createElement("span",{key:r,className:("bm-cross "+t.props.crossClassName).trim(),style:n({},t.getCrossStyle(e),t.props.styles.bmCross)})})));return l.default.createElement("div",{className:("bm-cross-button "+this.props.className).trim(),style:n({},{position:"absolute",width:24,height:24,right:8,top:8},this.props.styles.bmCrossButton)},e,l.default.createElement("button",{onClick:this.props.onClick,style:{position:"absolute",left:0,top:0,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"},tabIndex:this.props.tabIndex},"Close Menu"))}}]),t}(u.Component);t.default=p,p.propTypes={crossClassName:c.default.string,customIcon:c.default.element,styles:c.default.object,tabIndex:c.default.number},p.defaultProps={crossClassName:"",className:"",styles:{},tabIndex:0},e.exports=t.default},32045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={overlay:function(e){return{position:"fixed",zIndex:1e3,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",opacity:e?1:0,MozTransform:e?"":"translate3d(100%, 0, 0)",MsTransform:e?"":"translate3d(100%, 0, 0)",OTransform:e?"":"translate3d(100%, 0, 0)",WebkitTransform:e?"":"translate3d(100%, 0, 0)",transform:e?"":"translate3d(100%, 0, 0)",transition:e?"opacity 0.3s":"opacity 0.3s, transform 0s 0.3s"}},menuWrap:function(e,t,r){return{position:"fixed",right:r?0:"inherit",zIndex:1100,width:t,height:"100%",MozTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.5s"}},menu:function(){return{height:"100%",boxSizing:"border-box",overflow:"auto"}},itemList:function(){return{height:"100%"}},item:function(){return{display:"block"}}},e.exports=t.default},11803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function a(e){return e&&e.__esModule?e:{default:e}}var i=r(1024),s=a(i),u=a(r(30314)),l=a(r(22982)),c=a(r(32045)),p=a(r(7135)),f=a(r(97039));t.default=function(e){var t=function(t){function r(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t,r){for(var n=!0;n;){var o=e,a=t,i=r;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,a);if(void 0!==s){if("value"in s)return s.value;var u=s.get;if(void 0===u)return;return u.call(i)}var l=Object.getPrototypeOf(o);if(null===l)return;e=l,t=a,r=i,n=!0,s=l=void 0}}(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,t),this.state={isOpen:!1},!e)throw new Error("No styles supplied")}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),o(r,[{key:"toggleMenu",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=t.isOpen,n=t.noStateChange,o={isOpen:void 0!==r?r:!this.state.isOpen};this.applyWrapperStyles(),this.setState(o,(function(){if(!n&&e.props.onStateChange(o),!e.props.disableAutoFocus)if(o.isOpen){var t=document.querySelector(".bm-item");t&&t.focus()}else document.activeElement?document.activeElement.blur():document.body.blur();e.timeoutId&&clearTimeout(e.timeoutId),e.timeoutId=setTimeout((function(){e.timeoutId=null,o.isOpen||e.applyWrapperStyles(!1)}),500)}))}},{key:"applyWrapperStyles",value:function(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0],r=function(e,r){return e.classList[t?"add":"remove"](r)};this.props.htmlClassName&&r(document.querySelector("html"),this.props.htmlClassName),this.props.bodyClassName&&r(document.querySelector("body"),this.props.bodyClassName),e.pageWrap&&this.props.pageWrapId&&this.handleExternalWrapper(this.props.pageWrapId,e.pageWrap,t),e.outerContainer&&this.props.outerContainerId&&this.handleExternalWrapper(this.props.outerContainerId,e.outerContainer,t)}},{key:"handleExternalWrapper",value:function(e,t,r){var n=document.getElementById(e);if(n){var o=this.getStyle(t);for(var a in o)o.hasOwnProperty(a)&&(n.style[a]=r?o[a]:"");var i=function(e){return e.style["overflow-x"]=r?"hidden":""};this.props.htmlClassName||i(document.querySelector("html")),this.props.bodyClassName||i(document.querySelector("body"))}else console.error("Element with ID '"+e+"' not found")}},{key:"getStyles",value:function(t,r,o){var a="bm"+t.replace(t.charAt(0),t.charAt(0).toUpperCase()),i=c.default[t]?this.getStyle(c.default[t]):{};return e[t]&&(i=n({},i,this.getStyle(e[t],r+1))),this.props.styles[a]&&(i=n({},i,this.props.styles[a])),o&&(i=n({},i,o)),this.props.noTransition&&delete i.transition,i}},{key:"getStyle",value:function(e,t){var r=this.props.width,n="string"!=typeof r?r+"px":r;return e(this.state.isOpen,n,this.props.right,t)}},{key:"listenForClose",value:function(e){e=e||window.event,this.props.disableCloseOnEsc||!this.state.isOpen||"Escape"!==e.key&&27!==e.keyCode||this.toggleMenu()}},{key:"shouldDisableOverlayClick",value:function(){return"function"==typeof this.props.disableOverlayClick?this.props.disableOverlayClick():this.props.disableOverlayClick}},{key:"componentDidMount",value:function(){this.props.customOnKeyDown?window.onkeydown=this.props.customOnKeyDown:window.onkeydown=this.listenForClose.bind(this),this.props.isOpen&&this.toggleMenu({isOpen:!0,noStateChange:!0})}},{key:"componentWillUnmount",value:function(){window.onkeydown=null,this.applyWrapperStyles(!1)}},{key:"componentDidUpdate",value:function(t){var r,n,o=this;void 0!==this.props.isOpen&&this.props.isOpen!==this.state.isOpen&&this.props.isOpen!==t.isOpen?this.toggleMenu():e.svg&&(r=u.default.findDOMNode(o,"bm-morph-shape"),n=e.svg.lib(r).select("path"),o.state.isOpen?e.svg.animate(n):setTimeout((function(){n.attr("d",e.svg.pathInitial)}),300))}},{key:"render",value:function(){var t=this;return s.default.createElement("div",null,!this.props.noOverlay&&s.default.createElement("div",{className:("bm-overlay "+this.props.overlayClassName).trim(),onClick:function(){return!t.shouldDisableOverlayClick()&&t.toggleMenu()},style:this.getStyles("overlay")}),s.default.createElement("div",{id:this.props.id,className:("bm-menu-wrap "+this.props.className).trim(),style:this.getStyles("menuWrap")},e.svg&&s.default.createElement("div",{className:("bm-morph-shape "+this.props.morphShapeClassName).trim(),style:this.getStyles("morphShape")},s.default.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 100 800",preserveAspectRatio:"none"},s.default.createElement("path",{d:e.svg.pathInitial}))),s.default.createElement("div",{className:("bm-menu "+this.props.menuClassName).trim(),style:this.getStyles("menu")},s.default.createElement("nav",{className:("bm-item-list "+this.props.itemListClassName).trim(),style:this.getStyles("itemList")},s.default.Children.map(this.props.children,(function(e,r){if(e){var n={key:r,className:["bm-item",t.props.itemClassName,e.props.className].filter((function(e){return!!e})).join(" "),style:t.getStyles("item",r,e.props.style),tabIndex:t.state.isOpen?0:-1};return s.default.cloneElement(e,n)}})))),!1!==this.props.customCrossIcon&&s.default.createElement("div",{style:this.getStyles("closeButton")},s.default.createElement(f.default,{onClick:function(){return t.toggleMenu()},styles:this.props.styles,customIcon:this.props.customCrossIcon,className:this.props.crossButtonClassName,crossClassName:this.props.crossClassName,tabIndex:this.state.isOpen?0:-1}))),!1!==this.props.customBurgerIcon&&s.default.createElement("div",{style:this.getStyles("burgerIcon")},s.default.createElement(p.default,{onClick:function(){return t.toggleMenu()},styles:this.props.styles,customIcon:this.props.customBurgerIcon,className:this.props.burgerButtonClassName,barClassName:this.props.burgerBarClassName})))}}]),r}(i.Component);return t.propTypes={bodyClassName:l.default.string,burgerBarClassName:l.default.string,burgerButtonClassName:l.default.string,className:l.default.string,crossButtonClassName:l.default.string,crossClassName:l.default.string,customBurgerIcon:l.default.oneOfType([l.default.element,l.default.oneOf([!1])]),customCrossIcon:l.default.oneOfType([l.default.element,l.default.oneOf([!1])]),customOnKeyDown:l.default.func,disableAutoFocus:l.default.bool,disableCloseOnEsc:l.default.bool,disableOverlayClick:l.default.oneOfType([l.default.bool,l.default.func]),htmlClassName:l.default.string,id:l.default.string,isOpen:l.default.bool,itemClassName:l.default.string,itemListClassName:l.default.string,menuClassName:l.default.string,morphShapeClassName:l.default.string,noOverlay:l.default.bool,noTransition:l.default.bool,onStateChange:l.default.func,outerContainerId:e&&e.outerContainer?l.default.string.isRequired:l.default.string,overlayClassName:l.default.string,pageWrapId:e&&e.pageWrap?l.default.string.isRequired:l.default.string,right:l.default.bool,styles:l.default.object,width:l.default.oneOfType([l.default.number,l.default.string])},t.defaultProps={bodyClassName:"",burgerBarClassName:"",burgerButtonClassName:"",className:"",crossButtonClassName:"",crossClassName:"",disableAutoFocus:!1,disableCloseOnEsc:!1,htmlClassName:"",id:"",itemClassName:"",itemListClassName:"",menuClassName:"",morphShapeClassName:"",noOverlay:!1,noTransition:!1,onStateChange:function(){},outerContainerId:"",overlayClassName:"",pageWrapId:"",styles:{},width:300},t},e.exports=t.default},82440:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(11803),a=(n=o)&&n.__esModule?n:{default:n};t.default=(0,a.default)({}),e.exports=t.default},69762:(e,t,r)=>{"use strict";var n=r(6830),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var o=h(r);o&&o!==d&&e(t,o,n)}var i=c(r);p&&(i=i.concat(p(r)));for(var s=u(t),m=u(r),g=0;g<i.length;++g){var y=i[g];if(!(a[y]||n&&n[y]||m&&m[y]||s&&s[y])){var v=f(r,y);try{l(t,y,v)}catch(e){}}}}return t}},41997:(e,t,r)=>{"use strict";var n=r(87643);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},80055:(e,t,r)=>{e.exports=r(41997)()},87643:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},18395:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var n=r(1024),o=r.n(n),a=r(80055),i=r.n(a);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){var t,r;function n(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(u(t)),t.handleErrored=t.handleErrored.bind(u(t)),t.handleChange=t.handleChange.bind(u(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(u(t)),t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},a.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},a.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o().createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},n}(o().Component);l.displayName="ReCAPTCHA",l.propTypes={sitekey:i().string.isRequired,onChange:i().func,grecaptcha:i().object,theme:i().oneOf(["dark","light"]),type:i().oneOf(["image","audio"]),tabindex:i().number,onExpired:i().func,onErrored:i().func,size:i().oneOf(["compact","normal","invisible"]),stoken:i().string,hl:i().string,badge:i().oneOf(["bottomright","bottomleft","inline"])},l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var c=r(69762),p=r.n(c);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var h={},d=0;var m,g;const y=(m=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload=onloadcallback&render=explicit"},g=(g={callbackName:"onloadcallback",globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){var r,o;function a(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}o=t,(r=a).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var i=a.prototype;return i.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+d++),this.__scriptLoaderID},i.setupScriptURL=function(){return this.__scriptURL="function"==typeof m?m():m,this.__scriptURL},i.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},i.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=h[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[g.callbackName]},i.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=g,o=n.globalName,a=n.callbackName,i=n.scriptId;if(o&&void 0!==window[o]&&(h[t]={loaded:!0,observers:{}}),h[t]){var s=h[t];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},h[t]={loaded:!1,observers:u};var l=document.createElement("script");for(var c in l.src=t,l.async=!0,g.attributes)l.setAttribute(c,g.attributes[c]);i&&(l.id=i);var p=function(e){if(h[t]){var r=h[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=h[t];e&&(e.loaded=!0,p((function(t){return!a&&(t(e),!0)})))},l.onerror=function(){var e=h[t];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(l)},i.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===g.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=h[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===g.removeOnUnmount&&delete h[e])},i.render=function(){var t=g.globalName,r=this.props,o=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=o,(0,n.createElement)(e,a)},a}(n.Component),o=(0,n.forwardRef)((function(e,t){return(0,n.createElement)(r,f({},e,{forwardedRef:t}))}));return o.displayName="AsyncScriptLoader("+t+")",o.propTypes={asyncScriptOnLoad:i().func},p()(o,e)})(l)},75617:(e,t)=>{"use strict";
|
|
2
|
+
/** @license React v16.13.1
|
|
3
|
+
* react-is.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case p:case a:case s:case i:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case m:case u:return e;default:return t}}case o:return t}}}function C(e){return O(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||O(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return O(e)===f},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===g},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===i},t.isSuspense=function(e){return O(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===i||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=O},6830:(e,t,r)=>{"use strict";e.exports=r(75617)},538:(e,t,r)=>{var n=r(73081);function o(e){this.mode=n.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=o},13102:e=>{function t(){this.buffer=new Array,this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},32398:e=>{e.exports={L:1,M:0,Q:3,H:2}},41606:(e,t,r)=>{var n=r(80415);function o(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var r=0;r<e.length&&0==e[r];)r++;this.num=new Array(e.length-r+t);for(var n=0;n<e.length-r;n++)this.num[n]=e[n+r]}o.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var a=0;a<e.getLength();a++)t[r+a]^=n.gexp(n.glog(this.get(r))+n.glog(e.get(a)));return new o(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=n.glog(this.get(0))-n.glog(e.get(0)),r=new Array(this.getLength()),a=0;a<this.getLength();a++)r[a]=this.get(a);for(a=0;a<e.getLength();a++)r[a]^=n.gexp(n.glog(e.get(a))+t);return new o(r,0).mod(e)}},e.exports=o},43443:(e,t,r)=>{var n=r(538),o=r(74886),a=r(13102),i=r(7032),s=r(41606);function u(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var l=u.prototype;l.addData=function(e){var t=new n(e);this.dataList.push(t),this.dataCache=null},l.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},l.getModuleCount=function(){return this.moduleCount},l.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),r=new a,n=0,s=0;s<t.length;s++)n+=t[s].dataCount;for(s=0;s<this.dataList.length;s++){var u=this.dataList[s];r.put(u.mode,4),r.put(u.getLength(),i.getLengthInBits(u.mode,e)),u.write(r)}if(r.getLengthInBits()<=8*n)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},l.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=u.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},l.setupPositionProbePattern=function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},l.getBestMaskPattern=function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=i.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},l.createMovieClip=function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var o=0;o<this.modules.length;o++)for(var a=1*o,i=0;i<this.modules[o].length;i++){var s=1*i;this.modules[o][i]&&(n.beginFill(0,100),n.moveTo(s,a),n.lineTo(s+1,a),n.lineTo(s+1,a+1),n.lineTo(s,a+1),n.endFill())}return n},l.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},l.setupPositionAdjustPattern=function(){for(var e=i.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],o=e[r];if(null==this.modules[n][o])for(var a=-2;a<=2;a++)for(var s=-2;s<=2;s++)this.modules[n+a][o+s]=-2==a||2==a||-2==s||2==s||0==a&&0==s}},l.setupTypeNumber=function(e){for(var t=i.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!e&&1==(t>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},l.setupTypeInfo=function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=i.getBCHTypeInfo(r),o=0;o<15;o++){var a=!e&&1==(n>>o&1);o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(o=0;o<15;o++){a=!e&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a}this.modules[this.moduleCount-8][8]=!e},l.mapData=function(e,t){for(var r=-1,n=this.moduleCount-1,o=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[n][s-u]){var l=!1;a<e.length&&(l=1==(e[a]>>>o&1)),i.getMask(t,n,s-u)&&(l=!l),this.modules[n][s-u]=l,-1==--o&&(a++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},u.PAD0=236,u.PAD1=17,u.createData=function(e,t,r){for(var n=o.getRSBlocks(e,t),s=new a,l=0;l<r.length;l++){var c=r[l];s.put(c.mode,4),s.put(c.getLength(),i.getLengthInBits(c.mode,e)),c.write(s)}var p=0;for(l=0;l<n.length;l++)p+=n[l].dataCount;if(s.getLengthInBits()>8*p)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*p+")");for(s.getLengthInBits()+4<=8*p&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*p||(s.put(u.PAD0,8),s.getLengthInBits()>=8*p));)s.put(u.PAD1,8);return u.createBytes(s,n)},u.createBytes=function(e,t){for(var r=0,n=0,o=0,a=new Array(t.length),u=new Array(t.length),l=0;l<t.length;l++){var c=t[l].dataCount,p=t[l].totalCount-c;n=Math.max(n,c),o=Math.max(o,p),a[l]=new Array(c);for(var f=0;f<a[l].length;f++)a[l][f]=255&e.buffer[f+r];r+=c;var h=i.getErrorCorrectPolynomial(p),d=new s(a[l],h.getLength()-1).mod(h);u[l]=new Array(h.getLength()-1);for(f=0;f<u[l].length;f++){var m=f+d.getLength()-u[l].length;u[l][f]=m>=0?d.get(m):0}}var g=0;for(f=0;f<t.length;f++)g+=t[f].totalCount;var y=new Array(g),v=0;for(f=0;f<n;f++)for(l=0;l<t.length;l++)f<a[l].length&&(y[v++]=a[l][f]);for(f=0;f<o;f++)for(l=0;l<t.length;l++)f<u[l].length&&(y[v++]=u[l][f]);return y},e.exports=u},74886:(e,t,r)=>{var n=r(32398);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var r=o.getRsBlockTable(e,t);if(null==r)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,a=new Array,i=0;i<n;i++)for(var s=r[3*i+0],u=r[3*i+1],l=r[3*i+2],c=0;c<s;c++)a.push(new o(u,l));return a},o.getRsBlockTable=function(e,t){switch(t){case n.L:return o.RS_BLOCK_TABLE[4*(e-1)+0];case n.M:return o.RS_BLOCK_TABLE[4*(e-1)+1];case n.Q:return o.RS_BLOCK_TABLE[4*(e-1)+2];case n.H:return o.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=o},80415:e=>{for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)t.EXP_TABLE[r]=1<<r;for(r=8;r<256;r++)t.EXP_TABLE[r]=t.EXP_TABLE[r-4]^t.EXP_TABLE[r-5]^t.EXP_TABLE[r-6]^t.EXP_TABLE[r-8];for(r=0;r<255;r++)t.LOG_TABLE[t.EXP_TABLE[r]]=r;e.exports=t},73081:e=>{e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},7032:(e,t,r)=>{var n=r(73081),o=r(41606),a=r(80415),i=0,s=1,u=2,l=3,c=4,p=5,f=6,h=7,d={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;d.getBCHDigit(t)-d.getBCHDigit(d.G15)>=0;)t^=d.G15<<d.getBCHDigit(t)-d.getBCHDigit(d.G15);return(e<<10|t)^d.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;d.getBCHDigit(t)-d.getBCHDigit(d.G18)>=0;)t^=d.G18<<d.getBCHDigit(t)-d.getBCHDigit(d.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return d.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case i:return(t+r)%2==0;case s:return t%2==0;case u:return r%3==0;case l:return(t+r)%3==0;case c:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case p:return t*r%2+t*r%3==0;case f:return(t*r%2+t*r%3)%2==0;case h:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),r=0;r<e;r++)t=t.multiply(new o([1,a.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var o=0;o<t;o++){for(var a=0,i=e.isDark(n,o),s=-1;s<=1;s++)if(!(n+s<0||t<=n+s))for(var u=-1;u<=1;u++)o+u<0||t<=o+u||0==s&&0==u||i==e.isDark(n+s,o+u)&&a++;a>5&&(r+=3+a-5)}for(n=0;n<t-1;n++)for(o=0;o<t-1;o++){var l=0;e.isDark(n,o)&&l++,e.isDark(n+1,o)&&l++,e.isDark(n,o+1)&&l++,e.isDark(n+1,o+1)&&l++,0!=l&&4!=l||(r+=3)}for(n=0;n<t;n++)for(o=0;o<t-6;o++)e.isDark(n,o)&&!e.isDark(n,o+1)&&e.isDark(n,o+2)&&e.isDark(n,o+3)&&e.isDark(n,o+4)&&!e.isDark(n,o+5)&&e.isDark(n,o+6)&&(r+=40);for(o=0;o<t;o++)for(n=0;n<t-6;n++)e.isDark(n,o)&&!e.isDark(n+1,o)&&e.isDark(n+2,o)&&e.isDark(n+3,o)&&e.isDark(n+4,o)&&!e.isDark(n+5,o)&&e.isDark(n+6,o)&&(r+=40);var c=0;for(o=0;o<t;o++)for(n=0;n<t;n++)e.isDark(n,o)&&c++;return r+=10*(Math.abs(100*c/t/t-50)/5)}};e.exports=d},42420:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(r,!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}function p(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?h(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=r(1024),v=(r(35989),r(43443)),b=r(32398);function w(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):n<2048?(t+=String.fromCharCode(192|n>>6),t+=String.fromCharCode(128|63&n)):n<55296||n>=57344?(t+=String.fromCharCode(224|n>>12),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n)):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t+=String.fromCharCode(240|n>>18),t+=String.fromCharCode(128|n>>12&63),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|63&n))}return t}var O={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[];return e.forEach((function(e,n){var o=null;e.forEach((function(a,i){if(!a&&null!==o)return r.push("M".concat(o+t," ").concat(n+t,"h").concat(i-o,"v1H").concat(o+t,"z")),void(o=null);if(i!==e.length-1)a&&null===o&&(o=i);else{if(!a)return;null===o?r.push("M".concat(i+t,",").concat(n+t," h1v1H").concat(i+t,"z")):r.push("M".concat(o+t,",").concat(n+t," h").concat(i+1-o,"v1H").concat(o+t,"z"))}}))})),r.join("")}function E(e,t){return e.slice().map((function(e,r){return r<t.y||r>=t.y+t.h?e:e.map((function(e,r){return(r<t.x||r>=t.x+t.w)&&e}))}))}function x(e,t){var r=e.imageSettings,n=e.size,o=e.includeMargin;if(null==r)return null;var a=o?4:0,i=t.length+2*a,s=Math.floor(.1*n),u=i/n,l=(r.width||s)*u,c=(r.height||s)*u,p=null==r.x?t.length/2-l/2:r.x*u,f=null==r.y?t.length/2-c/2:r.y*u,h=null;if(r.excavate){var d=Math.floor(p),m=Math.floor(f);h={x:d,y:m,w:Math.ceil(l+p-d),h:Math.ceil(c+f-m)}}return{x:p,y:f,h:c,w:l,excavation:h}}var k=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),S=function(e){function t(){var e,r;u(this,t);for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return g(h(r=p(this,(e=f(t)).call.apply(e,[this].concat(o)))),"_canvas",void 0),g(h(r),"_image",void 0),g(h(r),"state",{imgLoaded:!1}),g(h(r),"handleImageLoad",(function(){r.setState({imgLoaded:!0})})),r}return d(t,e),c(t,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,r=e.size,n=e.level,o=e.bgColor,a=e.fgColor,i=e.includeMargin,s=e.imageSettings,u=new v(-1,b[n]);if(u.addData(w(t)),u.make(),null!=this._canvas){var l=this._canvas,c=l.getContext("2d");if(!c)return;var p=u.modules;if(null===p)return;var f=i?4:0,h=p.length+2*f,d=x(this.props,p);null!=s&&null!=d&&null!=d.excavation&&(p=E(p,d.excavation));var m=window.devicePixelRatio||1;l.height=l.width=r*m;var g=r/h*m;c.scale(g,g),c.fillStyle=o,c.fillRect(0,0,h,h),c.fillStyle=a,k?c.fill(new Path2D(C(p,f))):p.forEach((function(e,t){e.forEach((function(e,r){e&&c.fillRect(r+f,t+f,1,1)}))})),this.state.imgLoaded&&this._image&&null!=d&&c.drawImage(this._image,d.x+f,d.y+f,d.w,d.h)}}},{key:"render",value:function(){var e=this,t=this.props,r=(t.value,t.size),n=(t.level,t.bgColor,t.fgColor,t.style),a=(t.includeMargin,t.imageSettings),u=s(t,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),l=i({height:r,width:r},n),c=null,p=a&&a.src;return null!=a&&null!=p&&(c=y.createElement("img",{src:p,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(t){return e._image=t}})),y.createElement(y.Fragment,null,y.createElement("canvas",o({style:l,height:r,width:r,ref:function(t){return e._canvas=t}},u)),c)}}]),t}(y.PureComponent);g(S,"defaultProps",O);var _=function(e){function t(){return u(this,t),p(this,f(t).apply(this,arguments))}return d(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.value,r=e.size,n=e.level,a=e.bgColor,i=e.fgColor,u=e.includeMargin,l=e.imageSettings,c=s(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),p=new v(-1,b[n]);p.addData(w(t)),p.make();var f=p.modules;if(null===f)return null;var h=u?4:0,d=f.length+2*h,m=x(this.props,f),g=null;null!=l&&null!=m&&(null!=m.excavation&&(f=E(f,m.excavation)),g=y.createElement("image",{xlinkHref:l.src,height:m.h,width:m.w,x:m.x+h,y:m.y+h,preserveAspectRatio:"none"}));var O=C(f,h);return y.createElement("svg",o({shapeRendering:"crispEdges",height:r,width:r,viewBox:"0 0 ".concat(d," ").concat(d)},c),y.createElement("path",{fill:a,d:"M0,0 h".concat(d,"v").concat(d,"H0z")}),y.createElement("path",{fill:i,d:O}),g)}}]),t}(y.PureComponent);g(_,"defaultProps",O);var P=function(e){var t=e.renderAs,r=s(e,["renderAs"]),n="svg"===t?_:S;return y.createElement(n,r)};P.defaultProps=i({renderAs:"canvas"},O),e.exports=P}}]);
|
|
10
|
+
//# sourceMappingURL=chunk-51.77155794b021526c7990.js.map
|