@peculiar/certificates-viewer 3.1.0 → 3.2.0
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/dist/cjs/{certification_request-878e786a.js → certification_request-cde57123.js} +137 -266
- package/dist/cjs/csr-78378ed0.js +150 -0
- package/dist/cjs/download-6724f3a7.js +79 -0
- package/dist/cjs/{download-5e7d5455.js → index-ff818d4d.js} +0 -72
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/cjs/l10n-a048a686.js +145 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/peculiar-attribute-certificate-viewer_2.cjs.entry.js +479 -0
- package/dist/cjs/peculiar-button_5.cjs.entry.js +148 -0
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +173 -0
- package/dist/cjs/peculiar-certificate-summary_3.cjs.entry.js +1 -1
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +124 -0
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +6 -4
- package/dist/cjs/peculiar.cjs.js +1 -1
- package/dist/cjs/public_key-e56dbe52.js +1104 -0
- package/dist/cjs/x509_attribute_certificate-cc325b70.js +87 -0
- package/dist/cjs/x509_certificate-51a97033.js +139 -0
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +54 -23
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/www-copy/index.js +80 -0
- package/dist/esm/{certification_request-3402a181.js → certification_request-c0674647.js} +76 -205
- package/dist/esm/csr-c1b6a176.js +147 -0
- package/dist/esm/download-735fb2eb.js +76 -0
- package/dist/esm/{download-cf68ac2c.js → index-0ba131b0.js} +1 -71
- package/dist/esm/index.js +2 -1
- package/dist/esm/l10n-ac28fa92.js +141 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/peculiar-attribute-certificate-viewer_2.entry.js +474 -0
- package/dist/esm/peculiar-button_5.entry.js +140 -0
- package/dist/esm/peculiar-certificate-decoder.entry.js +169 -0
- package/dist/esm/peculiar-certificate-summary_3.entry.js +1 -1
- package/dist/esm/peculiar-certificate-viewer.entry.js +120 -0
- package/dist/esm/peculiar-certificates-viewer.entry.js +5 -3
- package/dist/esm/peculiar.js +1 -1
- package/dist/esm/public_key-43b2cbf0.js +1089 -0
- package/dist/esm/x509_attribute_certificate-a6d4aa15.js +85 -0
- package/dist/esm/x509_certificate-12f6d344.js +137 -0
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/p-006865d7.js +4 -0
- package/dist/peculiar/p-17c4da7b.js +11 -0
- package/dist/peculiar/p-1ebab45c.js +78 -0
- package/dist/peculiar/{p-b09a1f0b.entry.js → p-38635919.entry.js} +1 -1
- package/dist/peculiar/p-3f8d1008.entry.js +4 -0
- package/dist/peculiar/p-42da7f97.js +11 -0
- package/dist/peculiar/p-464e0943.js +87 -0
- package/dist/peculiar/p-4f4c1d30.js +12 -0
- package/dist/peculiar/p-530afe84.entry.js +11 -0
- package/dist/peculiar/p-6011646e.entry.js +11 -0
- package/dist/peculiar/p-6c510523.js +18 -0
- package/dist/peculiar/p-d7a13cb4.js +18 -0
- package/dist/peculiar/p-dafae164.entry.js +4 -0
- package/dist/peculiar/p-e77d0ccc.entry.js +18 -0
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +13 -1
- package/dist/types/components.d.ts +20 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/package.json +2 -3
- package/dist/cjs/l10n-d4a77087.js +0 -767
- package/dist/cjs/peculiar-attribute-certificate-viewer_9.cjs.entry.js +0 -2187
- package/dist/collection/utils/history.js +0 -19
- package/dist/collection/utils/parse_hash.js +0 -28
- package/dist/collection/utils/query_stringify.js +0 -21
- package/dist/esm/l10n-9ac63748.js +0 -762
- package/dist/esm/peculiar-attribute-certificate-viewer_9.entry.js +0 -2175
- package/dist/peculiar/p-08538084.entry.js +0 -113
- package/dist/peculiar/p-3fc37750.entry.js +0 -4
- package/dist/peculiar/p-8ad24aa3.js +0 -87
- package/dist/peculiar/p-99797a49.js +0 -34
- package/dist/peculiar/p-c774ec0b.js +0 -18
- package/dist/types/utils/history.d.ts +0 -9
- package/dist/types/utils/parse_hash.d.ts +0 -9
- package/dist/types/utils/query_stringify.d.ts +0 -8
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{c as n,a as t}from"./p-d0b55fbb.js";function r(){return(r=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n}).apply(this,arguments)}function i(n){return"/"===n.charAt(0)}function e(n,t){for(var r=t,i=r+1,e=n.length;i<e;r+=1,i+=1)n[r]=n[i];n.pop()}function o(n,t,o,u){var s;"string"==typeof n?(s=function(n){var t=n||"/",r="",i="",e=t.indexOf("#");-1!==e&&(i=t.substr(e),t=t.substr(0,e));var o=t.indexOf("?");return-1!==o&&(r=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===r?"":r,hash:"#"===i?"":i}}(n)).state=t:(void 0===(s=r({},n)).pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==t&&void 0===s.state&&(s.state=t));try{s.pathname=decodeURI(s.pathname)}catch(n){throw n instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):n}return o&&(s.key=o),u?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=function(n,t){void 0===t&&(t="");var r,o=n&&n.split("/")||[],u=t&&t.split("/")||[],s=n&&i(n),a=t&&i(t),c=s||a;if(n&&i(n)?u=o:o.length&&(u.pop(),u=u.concat(o)),!u.length)return"/";if(u.length){var f=u[u.length-1];r="."===f||".."===f||""===f}else r=!1;for(var h=0,d=u.length;d>=0;d--){var l=u[d];"."===l?e(u,d):".."===l?(e(u,d),h++):h&&(e(u,d),h--)}if(!c)for(;h--;h)u.unshift("..");!c||""===u[0]||u[0]&&i(u[0])||u.unshift("");var v=u.join("/");return r&&"/"!==v.substr(-1)&&(v+="/"),v}(s.pathname,u.pathname)):s.pathname=u.pathname:s.pathname||(s.pathname="/"),s}var u=!("undefined"==typeof window||!window.document||!window.document.createElement);function s(n,t){t(window.confirm(n))}function a(){try{return window.history.state||{}}catch(n){return{}}}
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const c=function(n){void 0===n&&(n={}),u||function(){throw new Error("Invariant failed")}();var t,i,e=window.history,c=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,f=!(-1===window.navigator.userAgent.indexOf("Trident")),h=n.forceRefresh,d=void 0!==h&&h,l=n.getUserConfirmation,v=void 0===l?s:l,w=n.keyLength,y=void 0===w?6:w,m=n.basename?function(n){return"/"===n.charAt(n.length-1)?n.slice(0,-1):n}("/"===(i=n.basename).charAt(0)?i:"/"+i):"";function p(n){var t=n||{},r=t.key,i=t.state,e=window.location,u=e.pathname+e.search+e.hash;return m&&(u=function(n,t){return function(n,t){return 0===n.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(n.charAt(t.length))}(n,t)?n.substr(t.length):n}(u,m)),o(u,i,r)}function M(){return Math.random().toString(36).substr(2,y)}var g,D,b=(g=null,D=[],{setPrompt:function(n){return g=n,function(){g===n&&(g=null)}},confirmTransitionTo:function(n,t,r,i){if(null!=g){var e="function"==typeof g?g(n,t):g;"string"==typeof e?"function"==typeof r?r(e,i):i(!0):i(!1!==e)}else i(!0)},appendListener:function(n){var t=!0;function r(){t&&n.apply(void 0,arguments)}return D.push(r),function(){t=!1,D=D.filter((function(n){return n!==r}))}},notifyListeners:function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];D.forEach((function(n){return n.apply(void 0,t)}))}});function S(n){r(E,n),E.length=e.length,b.notifyListeners(E.location,E.action)}function _(n){(function(n){return void 0===n.state&&-1===navigator.userAgent.indexOf("CriOS")})(n)||$(p(n.state))}function I(){$(p(a()))}var P=!1;function $(n){P?(P=!1,S()):b.confirmTransitionTo(n,"POP",v,(function(t){t?S({action:"POP",location:n}):function(n){var t=A.indexOf(E.location.key);-1===t&&(t=0);var r=A.indexOf(n.key);-1===r&&(r=0);var i=t-r;i&&(P=!0,T(i))}(n)}))}var H=p(a()),A=[H.key];function N(n){return m+function(n){var t=n.search,r=n.hash,i=n.pathname||"/";return t&&"?"!==t&&(i+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}(n)}function T(n){e.go(n)}var Y=0;function k(n){1===(Y+=n)&&1===n?(window.addEventListener("popstate",_),f&&window.addEventListener("hashchange",I)):0===Y&&(window.removeEventListener("popstate",_),f&&window.removeEventListener("hashchange",I))}var C=!1,E={length:e.length,action:"POP",location:H,createHref:N,push:function(n,t){var r="PUSH",i=o(n,t,M(),E.location);b.confirmTransitionTo(i,r,v,(function(n){if(n){var t=N(i);if(c)if(e.pushState({key:i.key,state:i.state},null,t),d)window.location.href=t;else{var o=A.indexOf(E.location.key),u=A.slice(0,o+1);u.push(i.key),A=u,S({action:r,location:i})}else window.location.href=t}}))},replace:function(n,t){var r="REPLACE",i=o(n,t,M(),E.location);b.confirmTransitionTo(i,r,v,(function(n){if(n){var t=N(i);if(c)if(e.replaceState({key:i.key,state:i.state},null,t),d)window.location.replace(t);else{var o=A.indexOf(E.location.key);-1!==o&&(A[o]=i.key),S({action:r,location:i})}else window.location.replace(t)}}))},go:T,goBack:function(){T(-1)},goForward:function(){T(1)},block:function(n){void 0===n&&(n=!1);var t=b.setPrompt(n);return C||(k(1),C=!0),function(){return C&&(C=!1,k(-1)),t()}},listen:function(n){var t=b.appendListener(n);return k(1),function(){k(-1),t()}}};return E}
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/(),f=Object.assign(c,{parseHash:function(n=window.location.hash){if(!n.length)return{};const t=n.replace(/^(#|\?)?\/?/,"").split("&"),r={};for(let n=0;n<t.length;n+=1){const i=t[n].split("=");try{r[i[0]]=i[1]&&decodeURIComponent(i[1])}catch(n){console.warn(n)}}return r}
|
|
20
|
-
/**
|
|
21
|
-
* @license
|
|
22
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/,queryStringify:function(n){const t=[];return Object.keys(n).forEach((r=>{"string"!=typeof n[r]&&"boolean"!=typeof n[r]&&"number"!=typeof n[r]||t.push(`${r}=${encodeURIComponent(n[r])}`)})),t.join("&")}});var h=n((function(n){n.exports=function(){var n=6e4,t=36e5,r="millisecond",i="second",e="minute",o="hour",u="day",s="week",a="month",c="quarter",f="year",h="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(n,t,r){var i=String(n);return!i||i.length>=t?n:""+Array(t+1-i.length).join(r)+n},m={s:y,z:function(n){var t=-n.utcOffset(),r=Math.abs(t),i=Math.floor(r/60),e=r%60;return(t<=0?"+":"-")+y(i,2,"0")+":"+y(e,2,"0")},m:function n(t,r){if(t.date()<r.date())return-n(r,t);var i=12*(r.year()-t.year())+(r.month()-t.month()),e=t.clone().add(i,a),o=r-e<0,u=t.clone().add(i+(o?-1:1),a);return+(-(i+(r-e)/(o?e-u:u-e))||0)},a:function(n){return n<0?Math.ceil(n)||0:Math.floor(n)},p:function(n){return{M:a,y:f,w:s,d:u,D:h,h:o,m:e,s:i,ms:r,Q:c}[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(n){return void 0===n}},p="en",M={};M[p]=w;var g=function(n){return n instanceof _},D=function n(t,r,i){var e;if(!t)return p;if("string"==typeof t){var o=t.toLowerCase();M[o]&&(e=o),r&&(M[o]=r,e=o);var u=t.split("-");if(!e&&u.length>1)return n(u[0])}else{var s=t.name;M[s]=t,e=s}return!i&&e&&(p=e),e||!i&&p},b=function(n,t){if(g(n))return n.clone();var r="object"==typeof t?t:{};return r.date=n,r.args=arguments,new _(r)},S=m;S.l=D,S.i=g,S.w=function(n,t){return b(n,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function w(n){this.$L=D(n.locale,null,!0),this.parse(n)}var y=w.prototype;return y.parse=function(n){this.$d=function(n){var t=n.date,r=n.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(l);if(i){var e=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],e,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],e,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(n),this.$x=n.x||{},this.init()},y.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(n,t){var r=b(n);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(n,t){return b(n)<this.startOf(t)},y.isBefore=function(n,t){return this.endOf(t)<b(n)},y.$g=function(n,t,r){return S.u(n)?this[t]:this.set(r,n)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(n,t){var r=this,c=!!S.u(t)||t,d=S.p(n),l=function(n,t){var i=S.w(r.$u?Date.UTC(r.$y,t,n):new Date(r.$y,t,n),r);return c?i:i.endOf(u)},v=function(n,t){return S.w(r.toDate()[n].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},w=this.$W,y=this.$M,m=this.$D,p="set"+(this.$u?"UTC":"");switch(d){case f:return c?l(1,0):l(31,11);case a:return c?l(1,y):l(0,y+1);case s:var M=this.$locale().weekStart||0,g=(w<M?w+7:w)-M;return l(c?m-g:m+(6-g),y);case u:case h:return v(p+"Hours",0);case o:return v(p+"Minutes",1);case e:return v(p+"Seconds",2);case i:return v(p+"Milliseconds",3);default:return this.clone()}},y.endOf=function(n){return this.startOf(n,!1)},y.$set=function(n,t){var s,c=S.p(n),d="set"+(this.$u?"UTC":""),l=(s={},s[u]=d+"Date",s[h]=d+"Date",s[a]=d+"Month",s[f]=d+"FullYear",s[o]=d+"Hours",s[e]=d+"Minutes",s[i]=d+"Seconds",s[r]=d+"Milliseconds",s)[c],v=c===u?this.$D+(t-this.$W):t;if(c===a||c===f){var w=this.clone().set(h,1);w.$d[l](v),w.init(),this.$d=w.set(h,Math.min(this.$D,w.daysInMonth())).$d}else l&&this.$d[l](v);return this.init(),this},y.set=function(n,t){return this.clone().$set(n,t)},y.get=function(n){return this[S.p(n)]()},y.add=function(r,c){var h,d=this;r=Number(r);var l=S.p(c),v=function(n){var t=b(d);return S.w(t.date(t.date()+Math.round(n*r)),d)};if(l===a)return this.set(a,this.$M+r);if(l===f)return this.set(f,this.$y+r);if(l===u)return v(1);if(l===s)return v(7);var w=(h={},h[e]=n,h[o]=t,h[i]=1e3,h)[l]||1,y=this.$d.getTime()+r*w;return S.w(y,this)},y.subtract=function(n,t){return this.add(-1*n,t)},y.format=function(n){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var i=n||"YYYY-MM-DDTHH:mm:ssZ",e=S.z(this),o=this.$H,u=this.$m,s=this.$M,a=r.weekdays,c=r.months,f=function(n,r,e,o){return n&&(n[r]||n(t,i))||e[r].slice(0,o)},h=function(n){return S.s(o%12||12,n,"0")},l=r.meridiem||function(n,t,r){var i=n<12?"AM":"PM";return r?i.toLowerCase():i},w={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:f(r.monthsShort,s,c,3),MMMM:f(c,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:f(r.weekdaysMin,this.$W,a,2),ddd:f(r.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(o),HH:S.s(o,2,"0"),h:h(1),hh:h(2),a:l(o,u,!0),A:l(o,u,!1),m:String(u),mm:S.s(u,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:e};return i.replace(v,(function(n,t){return t||w[n]||e.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,h,d){var l,v=S.p(h),w=b(r),y=(w.utcOffset()-this.utcOffset())*n,m=this-w,p=S.m(this,w);return p=(l={},l[f]=p/12,l[a]=p,l[c]=p/3,l[s]=(m-y)/6048e5,l[u]=(m-y)/864e5,l[o]=m/t,l[e]=m/n,l[i]=m/1e3,l)[v]||m,d?p:S.a(p)},y.daysInMonth=function(){return this.endOf(a).$D},y.$locale=function(){return M[this.$L]},y.locale=function(n,t){if(!n)return this.$L;var r=this.clone(),i=D(n,t,!0);return i&&(r.$L=i),r},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},w}(),I=_.prototype;return b.prototype=I,[["$ms",r],["$s",i],["$m",e],["$H",o],["$W",u],["$M",a],["$y",f],["$D",h]].forEach((function(n){I[n[1]]=function(t){return this.$g(t,n[0],n[1])}})),b.extend=function(n,t){return n.$i||(n(t,_,b),n.$i=!0),b},b.locale=D,b.isDayjs=g,b.unix=function(n){return b(1e3*n)},b.en=M[p],b.Ls=M,b.p={},b}()})),d=n((function(n){n.exports=function(n,t,r){n=n||{};var i=t.prototype,e={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(n,t,r,e){return i.fromToBase(n,t,r,e)}r.en.relativeTime=e,i.fromToBase=function(t,i,o,u,s){for(var a,c,f,h=o.$locale().relativeTime||e,d=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],l=d.length,v=0;v<l;v+=1){var w=d[v];w.d&&(a=u?r(t).diff(o,w.d,!0):o.diff(t,w.d,!0));var y=(n.rounding||Math.round)(Math.abs(a));if(f=a>0,y<=w.r||!w.r){y<=1&&v>0&&(w=d[v-1]);var m=h[w.l];s&&(y=s(""+y)),c="string"==typeof m?m.replace("%d",y):m(y,i,w.l,f);break}}if(i)return c;var p=f?h.future:h.past;return"function"==typeof p?p(c):p.replace("%s",c)},i.to=function(n,t){return o(n,t,this,!0)},i.from=function(n,t){return o(n,t,this)};var u=function(n){return n.$u?r.utc():r()};i.toNow=function(n){return this.to(u(this),n)},i.fromNow=function(n){return this.from(u(this),n)}}}));
|
|
27
|
-
/**
|
|
28
|
-
* @license
|
|
29
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/
|
|
34
|
-
h.extend(d);const l=n=>new Date(n).toUTCString(),v=(n,t)=>{if(!n||!t)return"";const r=h(n),i=h(t);return r.to(i,!0)},w={en:{basicInformation:"Basic Information",subjectName:"Subject Name",issuerName:"Issuer Name",publicKeyInfo:"Public Key Info",signature:"Signature",extensions:"Extensions",miscellaneous:"Miscellaneous",download:"Download","download.pem":"Download PEM","download.der":"Download DER",serialNumber:"Serial Number",version:"Version",validity:"Validity",issued:"Issued",expired:"Expired",algorithm:"Algorithm",namedCurve:"Named Curve",exponent:"Exponent",modulus:"Modulus",value:"Value",valid:"Valid",revoked:"Revoked",issuer:"Issuer",name:"Name",publicKey:"Public Key",fingerprint:"Fingerprint",fingerprints:"Fingerprints",actions:"Actions",details:"Details",testURLs:"Test URLs",certificateDetails:"Certificate Details",holder:"Holder",digestInfo:"Digest Info",type:"Type"}},y=new class{constructor(){this.setLocale=n=>{this.locale=n&&w[n]?n:"en"},this.getLocale=()=>this.locale;const n=window.navigator.language.slice(0,2).toLowerCase();this.setLocale(n)}getString(n,t){const r=w[this.locale][n];if(!r)return"";if(!t)return r;const i=r.split(t.pattern);return i.length>1?[i[0],t.replacer,i[1]]:r}};export{l as a,v as d,f as h,y as l}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{c as t}from"./p-d0b55fbb.js";
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/function r(t,r,e,n="application/octet-stream"){const s=new Blob([t],{type:n});if(navigator.msSaveBlob)return navigator.msSaveBlob(s,`${r}.${e}`),new Promise((t=>setTimeout(t,100)));const i=window.URL.createObjectURL(s),a=document.createElement("a"),o=document.createElement("iframe");return a.style.display="none",o.style.display="none",o.name=i,document.body.appendChild(o),a.href=i,a.target=i,a.download=`${r}.${e}`,document.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),document.body.removeChild(a),new Promise((t=>setTimeout((()=>{document.body.removeChild(o),t(void 0)}),100)))}var e=t((function(t,r){Object.defineProperty(r,"__esModule",{value:!0});class e{static isArrayBuffer(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}static toArrayBuffer(t){return this.isArrayBuffer(t)?t:t.byteLength===t.buffer.byteLength?t.buffer:this.toUint8Array(t).slice().buffer}static toUint8Array(t){return this.toView(t,Uint8Array)}static toView(t,r){if(t.constructor===r)return t;if(this.isArrayBuffer(t))return new r(t);if(this.isArrayBufferView(t))return new r(t.buffer,t.byteOffset,t.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(t){return this.isArrayBufferView(t)||this.isArrayBuffer(t)}static isArrayBufferView(t){return ArrayBuffer.isView(t)||t&&this.isArrayBuffer(t.buffer)}static isEqual(t,r){const n=e.toUint8Array(t),s=e.toUint8Array(r);if(n.length!==s.byteLength)return!1;for(let t=0;t<n.length;t++)if(n[t]!==s[t])return!1;return!0}static concat(...t){if(Array.isArray(t[0])){const r=t[0];let e=0;for(const t of r)e+=t.byteLength;const n=new Uint8Array(e);let s=0;for(const t of r){const r=this.toUint8Array(t);n.set(r,s),s+=r.length}return t[1]?this.toView(n,t[1]):n.buffer}return this.concat(t)}}class n{static fromString(t){const r=unescape(encodeURIComponent(t)),e=new Uint8Array(r.length);for(let t=0;t<r.length;t++)e[t]=r.charCodeAt(t);return e.buffer}static toString(t){const r=e.toUint8Array(t);let n="";for(let t=0;t<r.length;t++)n+=String.fromCharCode(r[t]);return decodeURIComponent(escape(n))}}class s{static toString(t,r=!1){const n=e.toArrayBuffer(t),s=new DataView(n);let i="";for(let t=0;t<n.byteLength;t+=2){const e=s.getUint16(t,r);i+=String.fromCharCode(e)}return i}static fromString(t,r=!1){const e=new ArrayBuffer(2*t.length),n=new DataView(e);for(let e=0;e<t.length;e++)n.setUint16(2*e,t.charCodeAt(e),r);return e}}class i{static isHex(t){return"string"==typeof t&&/^[a-z0-9]+$/i.test(t)}static isBase64(t){return"string"==typeof t&&/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}static isBase64Url(t){return"string"==typeof t&&/^[a-zA-Z0-9-_]+$/i.test(t)}static ToString(t,r="utf8"){const n=e.toUint8Array(t);switch(r.toLowerCase()){case"utf8":return this.ToUtf8String(n);case"binary":return this.ToBinary(n);case"hex":return this.ToHex(n);case"base64":return this.ToBase64(n);case"base64url":return this.ToBase64Url(n);case"utf16le":return s.toString(n,!0);case"utf16":case"utf16be":return s.toString(n);default:throw new Error(`Unknown type of encoding '${r}'`)}}static FromString(t,r="utf8"){if(!t)return new ArrayBuffer(0);switch(r.toLowerCase()){case"utf8":return this.FromUtf8String(t);case"binary":return this.FromBinary(t);case"hex":return this.FromHex(t);case"base64":return this.FromBase64(t);case"base64url":return this.FromBase64Url(t);case"utf16le":return s.fromString(t,!0);case"utf16":case"utf16be":return s.fromString(t);default:throw new Error(`Unknown type of encoding '${r}'`)}}static ToBase64(t){const r=e.toUint8Array(t);if("undefined"!=typeof btoa){const t=this.ToString(r,"binary");return btoa(t)}return Buffer.from(r).toString("base64")}static FromBase64(t){const r=this.formatString(t);if(!r)return new ArrayBuffer(0);if(!i.isBase64(r))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return"undefined"!=typeof atob?this.FromBinary(atob(r)):new Uint8Array(Buffer.from(r,"base64")).buffer}static FromBase64Url(t){const r=this.formatString(t);if(!r)return new ArrayBuffer(0);if(!i.isBase64Url(r))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(r.replace(/\-/g,"+").replace(/\_/g,"/")))}static ToBase64Url(t){return this.ToBase64(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}static FromUtf8String(t,r=i.DEFAULT_UTF8_ENCODING){switch(r){case"ascii":return this.FromBinary(t);case"utf8":return n.fromString(t);case"utf16":case"utf16be":return s.fromString(t);case"utf16le":case"usc2":return s.fromString(t,!0);default:throw new Error(`Unknown type of encoding '${r}'`)}}static ToUtf8String(t,r=i.DEFAULT_UTF8_ENCODING){switch(r){case"ascii":return this.ToBinary(t);case"utf8":return n.toString(t);case"utf16":case"utf16be":return s.toString(t);case"utf16le":case"usc2":return s.toString(t,!0);default:throw new Error(`Unknown type of encoding '${r}'`)}}static FromBinary(t){const r=t.length,e=new Uint8Array(r);for(let n=0;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}static ToBinary(t){const r=e.toUint8Array(t);let n="";for(let t=0;t<r.length;t++)n+=String.fromCharCode(r[t]);return n}static ToHex(t){const r=e.toUint8Array(t),n=[],s=r.length;for(let t=0;t<s;t++){const e=r[t].toString(16).padStart(2,"0");n.push(e)}return n.join("")}static FromHex(t){let r=this.formatString(t);if(!r)return new ArrayBuffer(0);if(!i.isHex(r))throw new TypeError("Argument 'hexString' is not HEX encoded");r.length%2&&(r=`0${r}`);const e=new Uint8Array(r.length/2);for(let t=0;t<r.length;t+=2){const n=r.slice(t,t+2);e[t/2]=parseInt(n,16)}return e.buffer}static ToUtf16String(t,r=!1){return s.toString(t,r)}static FromUtf16String(t,r=!1){return s.fromString(t,r)}static Base64Padding(t){const r=4-t.length%4;if(r<4)for(let e=0;e<r;e++)t+="=";return t}static formatString(t){return(null==t?void 0:t.replace(/[\n\r\t ]/g,""))||""}}i.DEFAULT_UTF8_ENCODING="utf8",r.BufferSourceConverter=e,r.Convert=i,r.assign=function(t){const r=arguments[0];for(let t=1;t<arguments.length;t++){const e=arguments[t];for(const t in e)r[t]=e[t]}return r},r.combine=function(...t){const r=t.map((t=>t.byteLength)).reduce(((t,r)=>t+r)),e=new Uint8Array(r);let n=0;return t.map((t=>new Uint8Array(t))).forEach((t=>{for(const r of t)e[n++]=r})),e.buffer},r.isEqual=function(t,r){if(!t||!r)return!1;if(t.byteLength!==r.byteLength)return!1;const e=new Uint8Array(t),n=new Uint8Array(r);for(let r=0;r<t.byteLength;r++)if(e[r]!==n[r])return!1;return!0}}));
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/class n{}n.x509={asPEM:(t,n)=>{r(e.Convert.FromString(t),n,"cer","application/pkix-cert")},asDER:(t,n)=>{r(e.Convert.FromString(t),n,"cer","application/pkix-cert")}},n.pkcs10={asPEM:(t,n)=>{r(e.Convert.FromString(t),n,"csr","application/pkcs10")},asDER:(t,n)=>{r(e.Convert.FromString(t),n,"csr","application/pkcs10")}};export{n as D,e as b,r as d}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
declare function parseHash(hash?: string): Record<string, any>;
|
|
9
|
-
export default parseHash;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) Peculiar Ventures, LLC.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
export default function queryStringify(options: Record<string, any>): string;
|