PageSourceSearch

https://www.circuit-diagram.org/_next/static/chunks/pages/_app-3eb3734a11321bf7.js

js circuit-diagram.org collected 2026-10-02 06:41:21 UTC 407,353 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{92:(t,e,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(37850)}])},981:(t,e,r)=>{"use strict";function n(t,e,r,n){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(15801),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},3110:(t,e,r)=>{"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{$W:()=>rt,Kk:()=>rr,qg:()=>re});function i(t,e){var r="u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=h(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}function o(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||h(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(t){if("string"==typeof t)return n(t,e);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}var d,p,g,v,m=function(){},y={},b={},_=null,S={mark:m,measure:m};try{"u">typeof window&&(y=window),"u">typeof document&&(b=document),"u">typeof MutationObserver&&(_=MutationObserver),"u">typeof performance&&(S=performance)}catch(t){}var x=(y.navigator||{}).userAgent,F=void 0===x?"":x,w=y,E=b,k=_,A=S;w.document;var P=!!E.documentElement&&!!E.head&&"function"==typeof E.addEventListener&&"function"==typeof E.createElement,C=~F.indexOf("MSIE")||~F.indexOf("Trident/"),I={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},T=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],R="classic",j="duotone",N="sharp",O="sharp-duotone",L="chisel",D="etch",M="jelly",U="jelly-duo",B="jelly-fill",H="notdog",V="notdog-duo",K="slab",z="slab-press",q="thumbprint",W="utility",J="utility-duo",Y="utility-fill",G="whiteboard",$=[R,j,N,O,L,D,M,U,B,H,V,K,z,q,W,J,Y,G];o(o(o(o(o(o(o(o(o(o(g={}
1,R,"Classic"),j,"Duotone"),N,"Sharp"),O,"Sharp Duotone"),L,"Chisel"),D,"Etch"),M,"Jelly"),U,"Jelly Duo"),B,"Jelly Fill"),H,"Notdog"),o(o(o(o(o(o(o(o(g,V,"Notdog Duo"),K,"Slab"),z,"Slab Press"),q,"Thumbprint"),W,"Utility"),J,"Utility Duo"),Y,"Utility Fill"),G,"Whiteboard");var X=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),Q=["fak","fa-kit","fakd","fa-kit-duotone"];o(o({},"kit","Kit"),"kit-duotone","Kit Duotone");o(o(o(o(o(o(o(o(o(o(v={},"classic","Classic"),"duotone","Duotone"),"sharp","Sharp"),"sharp-duotone","Sharp Duotone"),"chisel","Chisel"),"etch","Etch"),"jelly","Jelly"),"jelly-duo","Jelly Duo"),"jelly-fill","Jelly Fill"),"notdog","Notdog"),o(o(o(o(o(o(o(o(v,"notdog-duo","Notdog Duo"),"slab","Slab"),"slab-press","Slab Press"),"thumbprint","Thumbprint"),"utility","Utility"),"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"whiteboard","Whiteboard"),o(o({},"kit","Kit"),"kit-duotone","Kit Duotone");var Z={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},tt=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"]),te=[1,2,3,4,5,6,7,8,9,10],tr=te.concat([11,12,13,14,15,16,17,18,19,20]),tn=[].concat(c(["classic","duotone","sharp","sharp-duotone","slab","slab-press","whiteboard","thumbprint","notdog","notdog-duo","etch","jelly","jelly-fill","jelly-duo","chisel","utility","utility-duo","utility-fill"]),["solid","regular","light","thin","duotone","brands","semibold"],["aw","fw","pull-left","pull-right"],["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vert
1ical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed","duotone-group","swap-opacity","primary","secondary"]).concat(te.map(function(t){return"".concat(t,"x")})).concat(tr.map(function(t){return"w-".concat(t)})),ti="___FONT_AWESOME___",to="svg-inline--fa",ts="data-fa-i2svg",ta="data-fa-pseudo-element",tu="data-prefix",tc="data-icon",tl="fontawesome-i2svg",tf=["HTML","HEAD","STYLE","SCRIPT"],th=["::before","::after",":before",":after"],td=function(){try{return!0}catch(t){return!1}}();function tp(t){return new Proxy(t,{get:function(t,e){return e in t?t[e]:t[R]}})}var tg=a({},I);tg[R]=a(a(a(a({},{"fa-duotone":"duotone"}),I[R]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});var tv=tp(tg),tm=a({},{chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}});tm[R]=a(a(a(a({},{duotone:"fad"}),tm[R]),{kit:"fak"}),{"kit-duotone":"fakd"});var ty=tp(tm),tb=a({},Z);tb[R]=a(a({},tb[R]),{fak:"fa-kit"});var t_=tp(tb),tS=a({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}});tS[R]=a(a({},tS[R]),{"fa-kit":"fak"}),tp(tS);var tx=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,tF="fa-layers-text",tw=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i;tp(a({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}}));var tE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],tk=[].concat(c(["kit"]),c(tn)),tA=w.FontAwesomeConfig||{};E&&"function"==typeof E.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEac
1h(function(t){var e,r=u(t,2),n=r[0],i=r[1],o=""===(e=function(t){var e=E.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(n))||"false"!==e&&("true"===e||e);null!=o&&(tA[i]=o)});var tP={styleDefault:"solid",familyDefault:R,cssPrefix:"fa",replacementClass:to,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};tA.familyPrefix&&(tA.cssPrefix=tA.familyPrefix);var tC=a(a({},tP),tA);tC.autoReplaceSvg||(tC.observeMutations=!1);var tI={};Object.keys(tP).forEach(function(t){Object.defineProperty(tI,t,{enumerable:!0,set:function(e){tC[t]=e,tT.forEach(function(t){return t(tI)})},get:function(){return tC[t]}})}),Object.defineProperty(tI,"familyPrefix",{enumerable:!0,set:function(t){tC.cssPrefix=t,tT.forEach(function(t){return t(tI)})},get:function(){return tC.cssPrefix}}),w.FontAwesomeConfig=tI;var tT=[],tR={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tj(){for(var t=12,e="";t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function tN(t){for(var e=[],r=(t||[]).length>>>0;r--;)e[r]=t[r];return e}function tO(t){return t.classList?tN(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(t){return t})}function tL(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function tD(t){return Object.keys(t||{}).reduce(function(e,r){return e+"".concat(r,": ").concat(t[r].trim(),";")},"")}function tM(t){return t.size!==tR.size||t.x!==tR.x||t.y!==tR.y||t.rotate!==tR.rotate||t.flipX||t.flipY}function tU(){var t=tI.cssPrefix,e=tI.replacementClass,r=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n  --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n  --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n  --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n  --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n  --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n  --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n  --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n  --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n  --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n  --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n  --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n  --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n  --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n  --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n  --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n  --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n  --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n  --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n  --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n  --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n  box-sizing: content-box;\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n  width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;
1\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n  float: inline-start;\n  margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n  float: inline-end;\n  margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n  inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n  inset: 0;\n  margin: auto;\n  position: absolute;\n  transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-counter-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n  line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n  vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n  font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n  line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n  vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n  font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n  line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n  vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n  font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n  line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n  vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n  font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n  line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n  vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n  font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n  line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n  vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n  --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n  --fa-width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-inline-start: var(--fa-li-margin, 2.5em);\n  padding-inline-start: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n  - This feature will be deprecated 
1in the next major release of Font Awesome (v8)!\n  - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n  ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n  ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.0625em);\n  box-sizing: var(--fa-border-box-sizing, content-box);\n  padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n  float: inline-start;\n  margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n  float: inline-end;\n  margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  animation-name: fa-beat;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  animation-name: fa-bounce;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  animation-name: fa-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  animation-name: fa-beat-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  animation-name: fa-flip;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  animation-name: fa-shake;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  animation-name: fa-spin;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 2s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  animation-name: fa-spin;\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n  .fa-bounce,\n  .fa-fade,\n  .fa-beat-fade,\n  .fa-flip,\n  .fa-pulse,\n  .fa-shake,\n  .fa-spin,\n  .fa-spin-pulse {\n    animation: none !important;\n    transition: none !important;\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    transform: scale(1);\n  }\n  45% {\n    transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-shake {\n  0% {\n    transform: rotate(-15deg);\n  }\n  4% {\n    transform: rotate(15deg);\n  }\n  8%, 24% {\n    transform: rotate(-18deg);\n  }\n  12%, 28% {\n    transform: rotate(18deg);\n  }\n  16% {\n    transform: rotate(-22deg);\n  }\n  20% {\n    transform: rotate(22deg);\n  }\n  32% {\n    transform: rotate(-12deg);\n  }\n  36% {\n    transform: rotate(12deg);\n  }\n  40%, 100% {\n    transform: rotate(0deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  transform: scale(-1, 1);\n}
1\n\n.fa-flip-vertical {\n  transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n  fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  line-height: 2em;\n  position: relative;\n  vertical-align: middle;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  --fa-width: 1.25em;\n  height: 1em;\n  width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n  --fa-width: 2.5em;\n  height: 2em;\n  width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  inset: 0;\n  margin: auto;\n  position: absolute;\n  z-index: var(--fa-stack-z-index, auto);\n}';if("fa"!==t||e!==to){var n=RegExp("\\.".concat("fa","\\-"),"g"),i=RegExp("\\--".concat("fa","\\-"),"g"),o=RegExp("\\.".concat(to),"g");r=r.replace(n,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(o,".".concat(e))}return r}var tB=!1;function tH(){tI.autoAddCss&&!tB&&(!function(t){if(t&&P){var e=E.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var r=E.head.childNodes,n=null,i=r.length-1;i>-1;i--){var o=r[i];["STYLE","LINK"].indexOf((o.tagName||"").toUpperCase())>-1&&(n=o)}E.head.insertBefore(e,n)}}(tU()),tB=!0)}var tV=w||{};tV[ti]||(tV[ti]={}),tV[ti].styles||(tV[ti].styles={}),tV[ti].hooks||(tV[ti].hooks={}),tV[ti].shims||(tV[ti].shims=[]);var tK=tV[ti],tz=[],tq=function(){E.removeEventListener("DOMContentLoaded",tq),tW=1,tz.map(function(t){return t()})},tW=!1;function tJ(t){var e,r=t.tag,n=t.attributes,i=t.children;return"string"==typeof t?tL(t):"<".concat(r," ").concat(Object.keys((e=void 0===n?{}:n)||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(tL(e[r]),'" ')},"").trim(),">").concat((void 0===i?[]:i).map(tJ).join(""),"</").concat(r,">")}function tY(t,e,r){if(t&&t[e]&&t[e][r])return{prefix:e,iconName:r,icon:t[e][r]}}P&&((tW=(E.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(E.readyState))||E.addEventListener("DOMContentLoaded",tq));var tG=function(t,e,r,n){var i,o,s,a=Object.keys(t),u=a.length,c=void 0!==n?function(t,r,i,o){return e.call(n,t,r,i,o)}:e;for(void 0===r?(i=1,s=t[a[0]]):(i=0,s=r);i<u;i++)s=c(s,t[o=a[i]],o,t);return s};function t$(t){return 1!==c(t).length?null:t.codePointAt(0).toString(16)}function tX(t){return Object.keys(t).reduce(function(e,r){var n=t[r];return n.icon?e[n.iconName]=n.icon:e[r]=n,e},{})}function tQ(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.skipHooks,i=tX(e);"function"!=typeof tK.hooks.addPack||void 0!==n&&n?tK.styles[t]=a(a({},tK.styles[t]||{}),i):tK.hooks.addPack(t,tX(e)),"fas"===t&&tQ("fa",e)}var tZ=tK.styles,t0=tK.shims,t1=Object.keys(t_),t2=t1.reduce(function(t,e){return t[e]=Object.keys(t_[e]),t},{}),t3=null,t4={},t5={},t6={},t8={},t7={},t9=function(){var t=function(t){return tG(tZ,function(e,r,n){return e[n]=tG(r,t,{}),e},{})};t4=t(function(t,e,r){return e[3]&&(t[e[3]]=r),e[2]&&e[2].filter(function(t){return"number"==typeof t}).forEach(function(e){t[e.toString(16)]=r}),t}),t5=t(function(t,e,r){return t[r]=r,e[2]&&e[2].filter(function(t){return"string"==typeof t}).forEach(function(e){t[e]=r}),t}),t7=t(function(t,e,r){var n=e[2];return t[r]=r,n.forEach(function(e){t[e]=r}),t});var e="far"in tZ||tI.autoFetchSvg,r=tG(t0,function(t,r){var n=r[0],i=r[1],o=r[2];return"far"!==i||e||(i="fas"),"string"==typeof n&&(t.names[n]={prefix:i,iconName:o}),"number"==typeof n&&(t.unicodes[n.toString(16)]={prefix:i,iconName:o}),t},{names:{},unicodes:{}});t6=r.names,t8=r.unicodes,t3=ei(tI.styleDefault,{family:tI.familyDefault})};function et(t,e){return(t4[t]||{})[e]}function ee(t,e){return(t7[t]||{})[e]}function er(t){return t6[t]||{prefix:null,iconName:null}}tT.push(function(t){t3=ei(t.styleDefault,{family:tI.familyDefault})}),t9();var en=function(){return{prefix:null,iconName:null,rest:[]}};function ei(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.family,n=void 0===r?R:r,i=tv[n][t];if(n===j&&!t)return"fad";var o=ty[n][t]||ty[n][i],s=t in tK.styles?t:null;return o||s||null}function eo(t){return t.sort().filter(function(t,e,r){return r.indexOf(t)===e})}var es=tt.concat(Q);function ea(t){var e,r,n,i,o,s,c,l,f,h,d,p,g,v,m,y,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_=b.skipLookups,S=null,x=eo(t.filter(function(t){return es.includes(t)})),F=eo(t.filter(function(t){return!es.includes(t)})),w=u(x.filter(function(t){return S=t,!T.includes(t)}),1)[0],E=(g=R,v=t1.reduce(function(t,e){return t[e]="".concat(tI.cssPrefix,"-").concat(e),t},{}),$.forEach(function(t){(x.includes(v[t])||x.some(function(e){return t2[t].includes(e)}))&&(g=t)}),g),k=a(a({},(m=[],y=null,F.forEach(function(t){var e,r,n,i,o=(e=tI.cssPrefix,n=(r=t.split("-"))[0],i=r.slice(1).join("-"),n!==e||""===i||~tk.indexOf(i)?null:i);o?y=o:t&&m.push(t)}),{iconName:y,rest:m})),{},{prefix:ei(void 0===w?null:w,{family:E})});return a(a(a({},k),(r=(e={values:t,family:E,styles:tZ,config:tI,canonical:k,givenPrefix:S}).values,n=e.family,i=e.canonical,o=e.givenPrefix,s=e.styles,l=void 0===(c=e.config)?{}:c,f=n===j,h=r.includes("fa-duotone")||r.includes("fad"),d="duotone"===l.familyDefault,p="fad"===i.prefix||"fa-duotone"===i.prefix,!f&&(h||d||p)&&(i.prefix="fad"),(r.includes("fa-brands")||r.includes("fab"))&&(i.prefix="fab"),!i.prefix&&eu.includes(n)&&(Object.keys(void 0===s?{}:s).find(function(t){return ec.includes(t)})||l.autoFetchSvg)&&(i.prefix=X.get(n).defaultShortPrefixId,i.iconName=ee(i.prefix,i.iconName)||i.iconName),("fa"===i.prefix||"fa"===(void 0===o?"":o))&&(i.prefix=t3||"fas"),i)),function(t,e,r){var n=r.prefix,i=r.iconName;if(t||!n||!i)return{prefix:n,iconName:i};var o="fa"===e?er(i):{},s=ee(n,i);return i=o.iconName||s||i,"far"!==(n=o.prefix||n)||tZ.far||!tZ.fas||tI.autoFetchSvg||(n="fas"),{prefix:n,iconName:i}}(void 0!==_&&_,S,k))}var eu=$.filter(function(t){return t!==R||t!==j}),ec=Object.keys(Z).filter(function(t){return t!==R}).map(function(t){return Object.keys(Z[t])}).flat(),el=(d=function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.definitions={}},p=[{key:"add",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r.reduce(this._pullDefinitions,{});
1Object.keys(i).forEach(function(e){t.definitions[e]=a(a({},t.definitions[e]||{}),i[e]),tQ(e,i[e]);var r=t_[R][e];r&&tQ(r,i[e]),t9()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var r=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(r).map(function(e){var n=r[e],i=n.prefix,o=n.iconName,s=n.icon,a=s[2];t[i]||(t[i]={}),a.length>0&&a.forEach(function(e){"string"==typeof e&&(t[i][e]=s)}),t[i][o]=s}),t}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}(d.prototype,p),Object.defineProperty(d,"prototype",{writable:!1}),d),ef=[],eh={},ed={},ep=Object.keys(ed);function eg(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(eh[t]||[]).forEach(function(t){e=t.apply(null,[e].concat(n))}),e}function ev(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];(eh[t]||[]).forEach(function(t){t.apply(null,r)})}function em(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1);return ed[t]?ed[t].apply(null,e):void 0}function ey(t){"fa"===t.prefix&&(t.prefix="fas");var e=t.iconName,r=t.prefix||t3;if(e)return e=ee(r,e)||e,tY(eb.definitions,r,e)||tY(tK.styles,r,e)}var eb=new el,e_={noAuto:function(){tI.autoReplaceSvg=!1,tI.observeMutations=!1,ev("noAuto")},config:tI,dom:{i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return P?(ev("beforeI2svg",t),em("pseudoElements2svg",t),em("i2svg",t)):Promise.reject(Error("Operation requires a DOM of some kind."))},watch:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.autoReplaceSvgRoot;!1===tI.autoReplaceSvg&&(tI.autoReplaceSvg=!0),tI.observeMutations=!0,t=function(){eS({autoReplaceSvgRoot:r}),ev("watch",e)},P&&(tW?setTimeout(t,0):tz.push(t))}},parse:{icon:function(t){if(null===t)return null;if("object"===f(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:ee(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var e=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],r=ei(t[0]);return{prefix:r,iconName:ee(r,e)||e}}if("string"==typeof t&&(t.indexOf("".concat(tI.cssPrefix,"-"))>-1||t.match(tx))){var n=ea(t.split(" "),{skipLookups:!0});return{prefix:n.prefix||t3,iconName:ee(n.prefix,n.iconName)||n.iconName}}if("string"==typeof t){var i=t3;return{prefix:i,iconName:ee(i,t)||t}}}},library:eb,findIconDefinition:ey,toHtml:tJ},eS=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,r=void 0===e?E:e;(Object.keys(tK.styles).length>0||tI.autoFetchSvg)&&P&&tI.autoReplaceSvg&&e_.dom.i2svg({node:r})};function ex(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return tJ(t)})}}),Object.defineProperty(t,"node",{get:function(){if(P){var e=E.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function eF(t){var e,r,n,i,o,s,u,c=t.icons,l=c.main,f=c.mask,h=t.prefix,d=t.iconName,p=t.transform,g=t.symbol,v=t.maskId,m=t.extra,y=t.watchable,b=f.found?f:l,_=b.width,S=b.height,x=[tI.replacementClass,d?"".concat(tI.cssPrefix,"-").concat(d):""].filter(function(t){return -1===m.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(m.classes).join(" "),F={children:[],attributes:a(a({},m.attributes),{},{"data-prefix":h,"data-icon":d,class:x,role:m.attributes.role||"img",viewBox:"0 0 ".concat(_," ").concat(S)})};e=m.attributes,["aria-label","aria-labelledby","title","role"].some(function(t){return t in e})||m.attributes["aria-hidden"]||(F.attributes["aria-hidden"]="true"),void 0!==y&&y&&(F.attributes[ts]="");var w=a(a({},F),{},{prefix:h,iconName:d,main:l,mask:f,maskId:v,transform:p,symbol:g,styles:a({},m.styles)}),E=f.found&&l.found?em("generateAbstractMask",w)||{children:[],attributes:{}}:em("generateAbstractIcon",w)||{children:[],attributes:{}},k=E.children,A=E.attributes;return(w.children=k,w.attributes=A,g)?(r=w.prefix,n=w.iconName,i=w.children,o=w.attributes,u=!0===(s=w.symbol)?"".concat(r,"-").concat(tI.cssPrefix,"-").concat(n):s,[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:a(a({},o),{},{id:u}),children:i}]}]):function(t){var e=t.children,r=t.main,n=t.mask,i=t.attributes,o=t.styles,s=t.transform;if(tM(s)&&r.found&&!n.found){var u={x:r.width/r.height/2,y:.5};i.style=tD(a(a({},o),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:e}]}(w)}function ew(t){var e,r,n,i,o,s,u,c=t.content,l=t.width,f=t.height,h=t.transform,d=t.extra,p=t.watchable,g=a(a({},d.attributes),{},{class:d.classes.join(" ")});
1void 0!==p&&p&&(g[ts]="");var v=a({},d.styles);tM(h)&&(r=(e={transform:h,startCentered:!0,width:l,height:f}).transform,n=e.width,i=e.height,s=void 0!==(o=e.startCentered)&&o,u="",s&&C?u+="translate(".concat(r.x/16-(void 0===n?16:n)/2,"em, ").concat(r.y/16-(void 0===i?16:i)/2,"em) "):s?u+="translate(calc(-50% + ".concat(r.x/16,"em), calc(-50% + ").concat(r.y/16,"em)) "):u+="translate(".concat(r.x/16,"em, ").concat(r.y/16,"em) "),u+="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),v.transform=u+="rotate(".concat(r.rotate,"deg) "),v["-webkit-transform"]=v.transform);var m=tD(v);m.length>0&&(g.style=m);var y=[];return y.push({tag:"span",attributes:g,children:[c]}),y}var eE=tK.styles;function ek(t){var e=t[0],r=t[1],n=u(t.slice(4),1)[0];return{found:!0,width:e,height:r,icon:Array.isArray(n)?{tag:"g",attributes:{class:"".concat(tI.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(tI.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(tI.cssPrefix,"-").concat("primary"),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}}}}var eA={found:!1,width:512,height:512};function eP(t,e){var r=e;return"fa"===e&&null!==tI.styleDefault&&(e=t3),new Promise(function(n,i){if("fa"===r){var o,s,u=er(t)||{};t=u.iconName||t,e=u.prefix||e}if(t&&e&&eE[e]&&eE[e][t])return n(ek(eE[e][t]));o=t,s=e,td||tI.showMissingIcons||!o||console.error('Icon with name "'.concat(o,'" and prefix "').concat(s,'" is missing.')),n(a(a({},eA),{},{icon:tI.showMissingIcons&&t&&em("missingIconAbstract")||{}}))})}var eC=function(){},eI=tI.measurePerformance&&A&&A.mark&&A.measure?A:{mark:eC,measure:eC},eT='FA "7.1.0"',eR=function(t){eI.mark("".concat(eT," ").concat(t," ends")),eI.measure("".concat(eT," ").concat(t),"".concat(eT," ").concat(t," begins"),"".concat(eT," ").concat(t," ends"))},ej=function(t){return eI.mark("".concat(eT," ").concat(t," begins")),function(){return eR(t)}},eN=function(){};function eO(t){return"string"==typeof(t.getAttribute?t.getAttribute(ts):null)}function eL(t){return E.createElementNS("http://www.w3.org/2000/svg",t)}function eD(t){return E.createElement(t)}var eM={replace:function(t){var e=t[0];
1if(e.parentNode)if(t[1].forEach(function(t){e.parentNode.insertBefore(function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.ceFn,i=void 0===n?"svg"===e.tag?eL:eD:n;if("string"==typeof e)return E.createTextNode(e);var o=i(e.tag);return Object.keys(e.attributes||[]).forEach(function(t){o.setAttribute(t,e.attributes[t])}),(e.children||[]).forEach(function(e){o.appendChild(t(e,{ceFn:i}))}),o}(t),e)}),null===e.getAttribute(ts)&&tI.keepOriginalSource){var r,n=E.createComment((r=" ".concat(e.outerHTML," "),r="".concat(r,"Font Awesome fontawesome.com ")));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){var e=t[0],r=t[1];if(~tO(e).indexOf(tI.replacementClass))return eM.replace(t);var n=new RegExp("".concat(tI.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(t,e){return e===tI.replacementClass||e.match(n)?t.toSvg.push(e):t.toNode.push(e),t},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?e.removeAttribute("class"):e.setAttribute("class",i.toNode.join(" "))}var o=r.map(function(t){return tJ(t)}).join("\n");e.setAttribute(ts,""),e.innerHTML=o}};function eU(t){t()}function eB(t,e){var r="function"==typeof e?e:eN;if(0===t.length)r();else{var n=eU;"async"===tI.mutateApproach&&(n=w.requestAnimationFrame||eU),n(function(){var e=!0===tI.autoReplaceSvg?eM.replace:eM[tI.autoReplaceSvg]||eM.replace,n=ej("mutate");t.map(e),n(),r()})}}var eH=!1,eV=null;function eK(t){if(k&&tI.observeMutations){var e=t.treeCallback,r=void 0===e?eN:e,n=t.nodeCallback,i=void 0===n?eN:n,o=t.pseudoElementsCallback,s=void 0===o?eN:o,a=t.observeMutationsRoot,u=void 0===a?E:a;eV=new k(function(t){if(!eH){var e=t3;tN(t).forEach(function(t){if("childList"===t.type&&t.addedNodes.length>0&&!eO(t.addedNodes[0])&&(tI.searchPseudoElements&&s(t.target),r(t.target)),"attributes"===t.type&&t.target.parentNode&&tI.searchPseudoElements&&s([t.target],!0),"attributes"===t.type&&eO(t.target)&&~tE.indexOf(t.attributeName))if("class"===t.attributeName&&(o=(n=t.target).getAttribute?n.getAttribute(tu):null,a=n.getAttribute?n.getAttribute(tc):null,o&&a)){var n,o,a,u,c=ea(tO(t.target)),l=c.prefix,f=c.iconName;t.target.setAttribute(tu,l||e),f&&t.target.setAttribute(tc,f)}else(u=t.target)&&u.classList&&u.classList.contains&&u.classList.contains(tI.replacementClass)&&i(t.target)})}}),P&&eV.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ez(t){var e,r,n,i,o,s,u,c,l,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},h=(i=(e=t).getAttribute("data-prefix"),o=e.getAttribute("data-icon"),s=void 0!==e.innerText?e.innerText.trim():"",((u=ea(tO(e))).prefix||(u.prefix=t3),i&&o&&(u.prefix=i,u.iconName=o),u.iconName&&u.prefix)?u:(u.prefix&&s.length>0&&(r=u.prefix,n=e.innerText,u.iconName=(t5[r]||{})[n]||et(u.prefix,t$(e.innerText))),!u.iconName&&tI.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(u.iconName=e.firstChild.data),u)),d=h.iconName,p=h.prefix,g=h.rest,v=tN(t.attributes).reduce(function(t,e){return"class"!==t.name&&"style"!==t.name&&(t[e.name]=e.value),t},{}),m=eg("parseNodeAttributes",{},t);return a({iconName:d,prefix:p,transform:tR,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:g,styles:f.styleParser?(c=t.getAttribute("style"),l=[],c&&(l=c.split(";").reduce(function(t,e){var r=e.split(":"),n=r[0],i=r.slice(1);return n&&i.length>0&&(t[n]=i.join(":").trim()),t},{})),l):[],attributes:v}},m)}var eq=tK.styles;function eW(t){var e="nest"===tI.autoReplaceSvg?ez(t,{styleParser:!1}):ez(t);return~e.extra.classes.indexOf(tF)?em("generateLayersText",t,e):em("generateSvgReplacementMutation",t,e)}function eJ(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!P)return Promise.resolve();var r=E.documentElement.classList,n=function(t){return r.add("".concat(tl,"-").concat(t))},i=function(t){return r.remove("".concat(tl,"-").concat(t))},o=tI.autoFetchSvg?[].concat(c(Q),c(tt)):T.concat(Object.keys(eq));o.includes("fa")||o.push("fa");var s=[".".concat(tF,":not([").concat(ts,"])")].concat(o.map(function(t){return".".concat(t,":not([").concat(ts,"])")})).join(", ");
1if(0===s.length)return Promise.resolve();var a=[];try{a=tN(t.querySelectorAll(s))}catch(t){}if(!(a.length>0))return Promise.resolve();n("pending"),i("complete");var u=ej("onTree"),l=a.reduce(function(t,e){try{var r=eW(e);r&&t.push(r)}catch(t){td||"MissingIcon"!==t.name||console.error(t)}return t},[]);return new Promise(function(t,r){Promise.all(l).then(function(r){eB(r,function(){n("active"),n("complete"),i("pending"),"function"==typeof e&&e(),u(),t()})}).catch(function(t){u(),r(t)})})}function eY(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;eW(t).then(function(t){t&&eB([t],e)})}var eG=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.transform,n=void 0===r?tR:r,i=e.symbol,o=void 0!==i&&i,s=e.mask,u=void 0===s?null:s,c=e.maskId,l=void 0===c?null:c,f=e.classes,h=void 0===f?[]:f,d=e.attributes,p=void 0===d?{}:d,g=e.styles,v=void 0===g?{}:g;if(t){var m=t.prefix,y=t.iconName,b=t.icon;return ex(a({type:"icon"},t),function(){return ev("beforeDOMElementCreation",{iconDefinition:t,params:e}),eF({icons:{main:ek(b),mask:u?ek(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:y,transform:a(a({},tR),n),symbol:o,maskId:l,extra:{attributes:p,styles:v,classes:h}})})}},e$=RegExp('"',"ug"),eX=a(a(a(a({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),eQ=Object.keys(eX).reduce(function(t,e){return t[e.toLowerCase()]=eX[e],t},{}),eZ=Object.keys(eQ).reduce(function(t,e){var r=eQ[e];return t[e]=r[900]||c(Object.entries(r))[0][1],t},{});function e0(t,e){var r="".concat("data-fa-pseudo-element-pending").concat(e.replace(":","-"));return new Promise(function(n,i){if(null!==t.getAttribute(r))return n();var o=tN(t.children).filter(function(t){return t.getAttribute(ta)===e})[0],s=w.getComputedStyle(t,e),u=s.getPropertyValue("font-family"),l=u.match(tw),f=s.getPropertyValue("font-weight"),h=s.getPropertyValue("content");if(o&&!l)return t.removeChild(o),n();if(l&&"none"!==h&&""!==h){var d=s.getPropertyValue("content"),p=(_=u.replace(/^['"]|['"]$/g,"").toLowerCase(),x=isNaN(S=parseInt(f))?"normal":S,(eQ[_]||{})[x]||eZ[_]),g=t$(c(d.replace(e$,""))[0]||""),v=l[0].startsWith("FontAwesome"),m=(F=s.getPropertyValue("font-feature-settings").includes("ss01"),P=(A=(k=s.getPropertyValue("content").replace(e$,"")).codePointAt(0))>=1105920&&A<=1112319,C=2===k.length&&k[0]===k[1],P||C||F),y=et(p,g),b=y;if(v){var _,S,x,F,k,A,P,C,I,T,R=(I=t8[g],T=et("fas",g),I||(T?{prefix:"fas",iconName:T}:null)||{prefix:null,iconName:null});R.iconName&&R.prefix&&(y=R.iconName,p=R.prefix)}if(!y||m||o&&o.getAttribute(tu)===p&&o.getAttribute(tc)===b)n();else{t.setAttribute(r,b),o&&t.removeChild(o);var j={iconName:null,prefix:null,transform:tR,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},N=j.extra;N.attributes[ta]=e,eP(y,p).then(function(i){var o=eF(a(a({},j),{},{icons:{main:i,mask:en()},prefix:p,iconName:b,extra:N,watchable:!0})),s=E.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===e?t.insertBefore(s,t.firstChild):t.appendChild(s),s.outerHTML=o.map(function(t){return tJ(t)}).join("\n"),t.removeAttribute(r),n()}).catch(i)}}else n()})}function e1(t){return Promise.all([e0(t,"::before"),e0(t,"::after")])}function e2(t){return t.parentNode!==document.head&&!~tf.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(ta)&&(!t.parentNode||"svg"!==t.parentNode.tagName)}var e3=function(t){return!!t&&th.some(function(e){return t.includes(e)})},e4=function(t){if(!t)return[];
1var e,r=new Set,n=t.split(/,(?![^()]*\))/).map(function(t){return t.trim()}),o=i(n=n.flatMap(function(t){return t.includes("(")?t:t.split(",").map(function(t){return t.trim()})}));try{for(o.s();!(e=o.n()).done;){var s=e.value;if(e3(s)){var a=th.reduce(function(t,e){return t.replace(e,"")},s);""!==a&&"*"!==a&&r.add(a)}}}catch(t){o.e(t)}finally{o.f()}return r};function e5(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(P){if(e)r=t;else if(tI.searchPseudoElementsFullScan)r=t.querySelectorAll("*");else{var r,n,o=new Set,s=i(document.styleSheets);try{for(s.s();!(n=s.n()).done;){var a=n.value;try{var u,c=i(a.cssRules);try{for(c.s();!(u=c.n()).done;){var l,f=u.value,h=e4(f.selectorText),d=i(h);try{for(d.s();!(l=d.n()).done;){var p=l.value;o.add(p)}}catch(t){d.e(t)}finally{d.f()}}}catch(t){c.e(t)}finally{c.f()}}catch(t){tI.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(t.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(t){s.e(t)}finally{s.f()}if(!o.size)return;var g=Array.from(o).join(", ");try{r=t.querySelectorAll(g)}catch(t){}}return new Promise(function(t,e){var n=tN(r).filter(e2).map(e1),i=ej("searchPseudoElements");eH=!0,Promise.all(n).then(function(){i(),eH=!1,t()}).catch(function(){i(),eH=!1,e()})})}}var e6=!1,e8=function(t){return t.toLowerCase().split(" ").reduce(function(t,e){var r=e.toLowerCase().split("-"),n=r[0],i=r.slice(1).join("-");if(n&&"h"===i)return t.flipX=!0,t;if(n&&"v"===i)return t.flipY=!0,t;if(isNaN(i=parseFloat(i)))return t;switch(n){case"grow":t.size=t.size+i;break;case"shrink":t.size=t.size-i;break;case"left":t.x=t.x-i;break;case"right":t.x=t.x+i;break;case"up":t.y=t.y-i;break;case"down":t.y=t.y+i;break;case"rotate":t.rotate=t.rotate+i}return t},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},e7={x:0,y:0,width:"100%",height:"100%"};function e9(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}ef=[{mixout:function(){return{dom:{css:tU,insertCss:tH}}},hooks:function(){return{beforeDOMElementCreation:function(){tH()},beforeI2svg:function(){tH()}}}},{mixout:function(){return{icon:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:ey(t||{}),n=e.mask;return n&&(n=(n||{}).icon?n:ey(n||{})),eG(r,a(a({},e),{},{mask:n}))}}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=eJ,t.nodeCallback=eY,t}}},provides:function(t){t.i2svg=function(t){var e=t.node,r=void 0===e?E:e,n=t.callback;return eJ(r,void 0===n?function(){}:n)},t.generateSvgReplacementMutation=function(t,e){var r=e.iconName,n=e.prefix,i=e.transform,o=e.symbol,s=e.mask,a=e.maskId,c=e.extra;return new Promise(function(e,l){Promise.all([eP(r,n),s.iconName?eP(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(s){var l=u(s,2);e([t,eF({icons:{main:l[0],mask:l[1]},prefix:n,iconName:r,transform:i,symbol:o,maskId:a,extra:c,watchable:!0})])}).catch(l)})},t.generateAbstractIcon=function(t){var e,r=t.children,n=t.attributes,i=t.main,o=t.transform,s=tD(t.styles);return s.length>0&&(n.style=s),tM(o)&&(e=em("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(e||i.icon),{children:r,attributes:n}}}},{mixout:function(){return{layer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.classes,n=void 0===r?[]:r;return ex({type:"layer"},function(){ev("beforeDOMElementCreation",{assembler:t,params:e});var r=[];return t(function(t){Array.isArray(t)?t.map(function(t){r=r.concat(t.abstract)}):r=r.concat(t.abstract)}),[{tag:"span",attributes:{class:["".concat(tI.cssPrefix,"-layers")].concat(c(n)).join(" ")},children:r}]})}}}},{mixout:function(){return{counter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.title,n=void 0===r?null:r,i=e.classes,o=void 0===i?[]:i,s=e.attributes,u=void 0===s?{}:s,l=e.styles,f=void 0===l?{}:l;return ex({type:"counter",content:t},function(){var r,i,s,l,h,d;return ev("beforeDOMElementCreation",{content:t,params:e}),i=(r={content:t.toString(),title:n,extra:{attributes:u,styles:f,classes:["".concat(tI.cssPrefix,"-layers-counter")].concat(c(o))}}).content,l=a(a({},(s=r.extra).attributes),{},{class:s.classes.join(" ")}),(h=tD(s.styles)).length>0&&(l.style=h),(d=[]).push({tag:"span",attributes:l,children:[i]}),d})}}}},{mixout:function(){return{text:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.transform,n=void 0===r?tR:r,i=e.classes,o=void 0===i?[]:i,s=e.attributes,u=void 0===s?{}:s,l=e.styles,f=void 0===l?{}:l;return ex({type:"text",content:t},function(){return ev("beforeDOMElementCreation",{content:t,params:e}),ew({content:t,transform:a(a({},tR),n),extra:{attributes:u,styles:f,classes:["".concat(tI.cssPrefix,"-layers-text")].concat(c(o))}})})}}},provides:function(t){t.generateLayersText=function(t,e){var r=e.transform,n=e.extra,i=null,o=null;if(C){var s=parseInt(getComputedStyle(t).fontSize,10),a=t.getBoundingClientRect();i=a.width/s,o=a.height/s}return Promise.resolve([t,ew({content:t.innerHTML,width:i,height:o,transform:r,extra:n,watchable:!0})])}}},{hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=e5,t}}},provides:function(t){t.pseudoElements2svg=function(t){var e=t.node,r=void 0===e?E:e;tI.searchPseudoElements&&e5(r)}}},{mixout:function(){return{dom:{unwatch:function(){eH=!0,e6=!0}}}},hooks:function(){return{bootstrap:function(){eK(eg("mutationObserverCallbacks",{}))},noAuto:function(){eV&&eV.disconnect()},watch:function(t){var e=t.observeMutationsRoot;e6?eH=!1:eK(eg("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}},{mixout:function(){return{parse:{transform:function(t){return e8(t)}
1}}},hooks:function(){return{parseNodeAttributes:function(t,e){var r=e.getAttribute("data-fa-transform");return r&&(t.transform=e8(r)),t}}},provides:function(t){t.generateAbstractTransformGrouping=function(t){var e=t.main,r=t.transform,n=t.containerWidth,i=t.iconWidth,o="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),c={transform:"".concat(o," ").concat(s," ").concat(u)},l={outer:{transform:"translate(".concat(n/2," 256)")},inner:c,path:{transform:"translate(".concat(-(i/2*1)," -256)")}};return{tag:"g",attributes:a({},l.outer),children:[{tag:"g",attributes:a({},l.inner),children:[{tag:e.icon.tag,children:e.icon.children,attributes:a(a({},e.icon.attributes),l.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(t,e){var r=e.getAttribute("data-fa-mask"),n=r?ea(r.split(" ").map(function(t){return t.trim()})):en();return n.prefix||(n.prefix=t3),t.mask=n,t.maskId=e.getAttribute("data-fa-mask-id"),t}}},provides:function(t){t.generateAbstractMask=function(t){var e,r,n,i,o,s,u,c,l=t.children,f=t.attributes,h=t.main,d=t.mask,p=t.maskId,g=t.transform,v=h.width,m=h.icon,y=d.width,b=d.icon,_=(r=(e={transform:g,containerWidth:y,iconWidth:v}).transform,n=e.containerWidth,i=e.iconWidth,o="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),c={transform:"".concat(o," ").concat(s," ").concat(u)},{outer:{transform:"translate(".concat(n/2," 256)")},inner:c,path:{transform:"translate(".concat(-(i/2*1)," -256)")}}),S={tag:"rect",attributes:a(a({},e7),{},{fill:"white"})},x=m.children?{children:m.children.map(e9)}:{},F={tag:"g",attributes:a({},_.inner),children:[e9(a({tag:m.tag,attributes:a(a({},m.attributes),_.path)},x))]},w={tag:"g",attributes:a({},_.outer),children:[F]},E="mask-".concat(p||tj()),k="clip-".concat(p||tj()),A={tag:"mask",attributes:a(a({},e7),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[S,w]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:k},children:"g"===b.tag?b.children:[b]},A]};return l.push(P,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(k,")"),mask:"url(#".concat(E,")")},e7)}),{children:l,attributes:f}}}},{provides:function(t){var e=!1;w.matchMedia&&(e=w.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var t=[],r={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:a(a({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=a(a({},n),{},{attributeName:"opacity"}),o={tag:"circle",attributes:a(a({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||o.children.push({tag:"animate",attributes:a(a({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:a(a({},i),{},{values:"1;0;1;1;0;1;"})}),t.push(o),t.push({tag:"path",attributes:a(a({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:a(a({},i),{},{values:"1;0;0;0;0;1;"})}]}),e||t.push({tag:"path",attributes:a(a({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:a(a({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},{hooks:function(){return{parseNodeAttributes:function(t,e){var r=e.getAttribute("data-fa-symbol");return t.symbol=null!==r&&(""===r||r),t}}}}],eh={}
1,Object.keys(ed).forEach(function(t){-1===ep.indexOf(t)&&delete ed[t]}),ef.forEach(function(t){var e=t.mixout?t.mixout():{};if(Object.keys(e).forEach(function(t){"function"==typeof e[t]&&(e_[t]=e[t]),"object"===f(e[t])&&Object.keys(e[t]).forEach(function(r){e_[t]||(e_[t]={}),e_[t][r]=e[t][r]})}),t.hooks){var r=t.hooks();Object.keys(r).forEach(function(t){eh[t]||(eh[t]=[]),eh[t].push(r[t])})}t.provides&&t.provides(ed)}),e_.noAuto;var rt=e_.config;e_.library,e_.dom;var re=e_.parse;e_.findIconDefinition,e_.toHtml;var rr=e_.icon;e_.layer,e_.text,e_.counter},11041:(t,e,r)=>{"use strict";r.d(e,{ArK:()=>B,B$L:()=>a,C8j:()=>c,C97:()=>i,CQO:()=>m,CeG:()=>D,DW4:()=>O,Dfk:()=>s,GRI:()=>P,KMJ:()=>u,MNM:()=>v,SGM:()=>I,THi:()=>M,Up0:()=>T,VFr:()=>y,Wzs:()=>R,X46:()=>E,Xbc:()=>o,XkK:()=>l,a2R:()=>d,aAJ:()=>F,bnw:()=>h,br3:()=>k,cNj:()=>p,cbP:()=>L,dmS:()=>A,e3U:()=>w,e68:()=>x,gdJ:()=>f,h6r:()=>S,iRu:()=>n,iW_:()=>H,jTw:()=>g,lh8:()=>_,qIE:()=>V,qTS:()=>C,vMs:()=>U,wRm:()=>b,yy:()=>j,zpE:()=>N});var n={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3l0 294.7 160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-384 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288L584.4 320 512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9zM126.8 195.8L54.4 320 199.3 320 126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9S11.7 382 .9 337.1z"]},i={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M321.5 68.8C329.1 55.9 342.9 48 357.8 48l2.2 0c22.1 0 40 17.9 40 40s-17.9 40-40 40l-73.3 0 34.8-59.2zm-131 0l34.8 59.2-73.3 0c-22.1 0-40-17.9-40-40s17.9-40 40-40l2.2 0c14.9 0 28.8 7.9 36.3 20.8zm89.6-24.3l-24.1 41-24.1-41C215.7 16.9 186.1 0 154.2 0L152 0c-48.6 0-88 39.4-88 88 0 14.4 3.5 28 9.6 40L32 128c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l448 0c17.7 0 32-14.3 32-32l0-32c0-17.7-14.3-32-32-32l-41.6 0c6.1-12 9.6-25.6 9.6-40 0-48.6-39.4-88-88-88l-2.2 0c-31.9 0-61.5 16.9-77.7 44.4zM480 272l-200 0 0 208 136 0c35.3 0 64-28.7 64-64l0-144zm-248 0l-200 0 0 144c0 35.3 28.7 64 64 64l136 0 0-208z"]},o={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3l0 70.7 176 0c26.5 0 48-21.5 48-48l0-22.7c-28.3-12.3-48-40.5-48-73.3 0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3l0 22.7c0 61.9-50.1 112-112 112l-176 0 0 70.7c28.3 12.3 48 40.5 48 73.3 0 44.2-35.8 80-80 80S0 476.2 0 432c0-32.8 19.7-61 48-73.3l0-205.3C19.7 141 0 112.8 0 80 0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},s={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},a={prefix:"fas",iconName:"earth-europe",icon:[512,512,["globe-europe"],"f7a2","M256.2 48c114.8 .1 207.8 93.2 207.8 208 0 22.1-3.4 43.4-9.8 63.4-2 .4-4.1 .6-6.2 .6l-2.7 0c-8.5 0-16.6-3.4-22.6-9.4l-29.3-29.3c-6-6-9.4-14.1-9.4-22.6l0-50.7c0-8.8 7.2-16 16-16s16-7.2 16-16-7.2-16-16-16l-24 0c-13.3 0-24 10.7-24 24s-10.7 24-24 24l-56 0c-8.8 0-16 7.2-16 16s-7.2 16-16 16l-25.4 0c-12.5 0-22.6-10.1-22.6-22.6 0-6 2.4-11.8 6.6-16l70.1-70.1c2.1-2.1 3.3-5 3.3-8 0-6.2-5.1-11.3-11.3-11.3l-14.1 0c-12.5 0-22.6-10.1-22.6-22.6 0-6 2.4-11.8 6.6-16l23.1-23.1c.8-.8 1.6-1.5 2.5-2.2zM438.4 356.1c-32.8 59.6-93.9 101.4-165.2 107.2-.7-2.3-1.1-4.8-1.1-7.3 0-13.3-10.7-24-24-24l-26.7 0c-8.5 0-16.6-3.4-22.6-9.4l-29.3-29.3c-6-6-9.4-14.1-9.4-22.6l0-66.7c0-17.7 14.3-32 32-32l98.7 0c8.5 0 16.6 3.4 22.6 9.4l29.3 29.3c6 6 14.1 9.4 22.6 9.4l5.5 0c8.5 0 16.6 3.4 22.6 9.4l16 16c4.2 4.2 10 6.6 16 6.6 4.8 0 9.3 1.5 13 4.1zM256 512l26.2-1.3c-8.6 .9-17.3 1.3-26.2 1.3zm26.2-1.3C411.3 497.6 512 388.6 512 256 512 114.6 397.4 0 256 0l0 0C114.6 0 0 114.6 0 256 0 383.5 93.2 489.3 215.3 508.8 228.5 510.9 242.1 512 256 512zM187.3 123.3l-32 32c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l32-32c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},u={prefix:"fas",iconName:"rocket",icon:[512,512,[],"f135","M128 320L24.5 320c-24.9 0-40.2-27.1-27.4-48.5L50 183.3C58.7 168.8 74.3 160 91.2 
1160l95 0c76.1-128.9 189.6-135.4 265.5-124.3 12.8 1.9 22.8 11.9 24.6 24.6 11.1 75.9 4.6 189.4-124.3 265.5l0 95c0 16.9-8.8 32.5-23.3 41.2l-88.2 52.9c-21.3 12.8-48.5-2.6-48.5-27.4L192 384c0-35.3-28.7-64-64-64l-.1 0zM400 160a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},c={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 256c0-88.4 71.6-160 160-160 50.4 0 97.8 23.7 128 64l32 42.7 32-42.7c30.2-40.3 77.6-64 128-64 88.4 0 160 71.6 160 160S568.4 416 480 416c-50.4 0-97.8-23.7-128-64l-32-42.7-32 42.7c-30.2 40.3-77.6 64-128 64-88.4 0-160-71.6-160-160zm280 0l-43.2-57.6c-18.1-24.2-46.6-38.4-76.8-38.4-53 0-96 43-96 96s43 96 96 96c30.2 0 58.7-14.2 76.8-38.4L280 256zm80 0l43.2 57.6c18.1 24.2 46.6 38.4 76.8 38.4 53 0 96-43 96-96s-43-96-96-96c-30.2 0-58.7 14.2-76.8 38.4L360 256z"]},l={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},f={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},h={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},d={prefix:"fas",iconName:"vial",icon:[512,512,[129514],"f492","M342.6 9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L306.7 64 28.1 342.6C10.1 360.6 0 385 0 410.5L0 416c0 53 43 96 96 96l5.5 0c25.5 0 49.9-10.1 67.9-28.1l278.6-278.6 9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zM205.3 256l146.7-146.7 50.7 50.7-96 96-101.5 0z"]},p={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M36.4 353.2c4.1-14.6 11.8-27.9 22.6-38.7l181.2-181.2 33.9-33.9c16.6 16.6 51.3 51.3 104 104l33.9 33.9-33.9 33.9-181.2 181.2c-10.7 10.7-24.1 18.5-38.7 22.6L30.4 510.6c-8.3 2.3-17.3 0-23.4-6.2S-1.4 489.3 .9 481L36.4 353.2zm55.6-3.7c-4.4 4.7-7.6 10.4-9.3 16.6l-24.1 86.9 86.9-24.1c6.4-1.8 12.2-5.1 17-9.7L91.9 349.5zm354-146.1c-16.6-16.6-51.3-51.3-104-104L308 65.5C334.5 39 349.4 24.1 352.9 20.6 366.4 7 384.8-.6 404-.6S441.6 7 455.1 20.6l35.7 35.7C504.4 69.9 512 88.3 512 107.4s-7.6 37.6-21.2 51.1c-3.5 3.5-18.4 18.4-44.9 44.9z"]},g={prefix:"fas",iconName:"code",icon:[576,512,[],"f121","M360.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm64.6 136.1c-12.5 12.5-12.5 32.8 0 45.3l73.4 73.4-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0zm-274.7 0c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 150.6 182.6c12.5-12.5 12.5-32.8 0-45.3z"]},v={prefix:"fas",iconName:"terminal",icon:[512,512,[],"f120","M9.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L146.7 256 9.4 118.6zM224 384l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},m={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]}
vendor: 10,069 bytes, line 1
1,y={prefix:"fas",iconName:"circle-user",icon:[512,512,[62142,"user-circle"],"f2bd","M399 384.2C376.9 345.8 335.4 320 288 320l-64 0c-47.4 0-88.9 25.8-111 64.2 35.2 39.2 86.2 63.8 143 63.8s107.8-24.7 143-63.8zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm256 16a72 72 0 1 0 0-144 72 72 0 1 0 0 144z"]},b={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-336c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},_={prefix:"fas",iconName:"compass-drafting",icon:[512,512,["drafting-compass"],"f568","M99.3 256.1l69.4-119.9c-5.6-12.2-8.8-25.8-8.8-40.2 0-53 43-96 96-96s96 43 96 96c0 14.3-3.1 27.9-8.8 40.2l44.4 76.7c-23.1 26-53.7 45.1-88.4 53.8L256 191.9 187.9 309.5c21.5 6.8 44.3 10.5 68.1 10.5 70.7 0 133.8-32.7 174.9-84 11.1-13.8 31.2-16 45-5s16 31.2 5 45c-52.7 65.8-133.9 108-224.8 108-35.4 0-69.4-6.4-100.7-18.1L98.7 463.7C94 471.8 87 478.4 78.6 482.6L23.2 510.3c-5 2.5-10.9 2.2-15.6-.7S0 501.5 0 496l0-55.4c0-8.4 2.2-16.7 6.5-24.1l60-103.7c-12.8-11.2-24.6-23.5-35.3-36.8-11.1-13.8-8.8-33.9 5-45s33.9-8.8 45 5c5.7 7.1 11.8 13.8 18.2 20.1zM381.1 407.9c32.5-13 62.4-31 88.9-52.9l35.6 61.5c4.2 7.3 6.5 15.6 6.5 24.1l0 55.4c0 5.5-2.9 10.7-7.6 13.6s-10.6 3.2-15.6 .7l-55.4-27.7c-8.4-4.2-15.4-10.8-20.1-18.9l-32.3-55.8zM256 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},S={prefix:"fas",iconName:"wrench",icon:[576,512,[128295],"f0ad","M509.4 98.6c7.6-7.6 20.3-5.7 24.1 4.3 6.8 17.7 10.5 37 10.5 57.1 0 88.4-71.6 160-160 160-17.5 0-34.4-2.8-50.2-8L146.9 498.9c-28.1 28.1-73.7 28.1-101.8 0s-28.1-73.7 0-101.8L232 210.2c-5.2-15.8-8-32.6-8-50.2 0-88.4 71.6-160 160-160 20.1 0 39.4 3.7 57.1 10.5 10 3.8 11.8 16.5 4.3 24.1l-88.7 88.7c-3 3-4.7 7.1-4.7 11.3l0 41.4c0 8.8 7.2 16 16 16l41.4 0c4.2 0 8.3-1.7 11.3-4.7l88.7-88.7z"]},x={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},F={prefix:"fas",iconName:"user-lock",icon:[576,512,[],"f502","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c29.7 0 57.7 7.3 82.3 20.1l0 4.3c-19.6 17.6-32 43.1-32 71.5l0 96c0 5.5 .5 10.9 1.3 16.1L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zm301.7 .1c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 47.9 64 0 0-47.9zM352 400c0-20.9 13.4-38.7 32-45.3l0-50.6c0-44.2 35.8-80 80-80s80 35.8 80 80l0 50.6c18.6 6.6 32 24.4 32 45.3l0 96c0 26.5-21.5 48-48 48l-128 0c-26.5 0-48-21.5-48-48l0-96z"]},w={prefix:"fas",iconName:"spray-can-sparkles",icon:[576,512,["air-freshener"],"f5d0","M160 32l0 80 128 0 0-80c0-17.7-14.3-32-32-32L192 0c-17.7 0-32 14.3-32 32zm0 128c-53 0-96 43-96 96l0 208c0 26.5 21.5 48 48 48l224 0c26.5 0 48-21.5 48-48l0-208c0-53-43-96-96-96l-128 0zm64 96a80 80 0 1 1 0 160 80 80 0 1 1 0-160zM448 48c0-1.4-1-3-2.2-3.6L416 32 403.6 2.2C403 1 401.4 0 400 0s-3 1-3.6 2.2L384 32 354.2 44.4c-1.2 .6-2.2 2.2-2.2 3.6 0 1.4 1 3 2.2 3.6L384 64 396.4 93.8C397 95 398.6 96 400 96s3-1 3.6-2.2L416 64 445.8 51.6C447 51 448 49.4 448 48zm76.4 45.8C525 95 526.6 96 528 96s3-1 3.6-2.2L544 64 573.8 51.6c1.2-.6 2.2-2.2 2.2-3.6 0-1.4-1-3-2.2-3.6L544 32 531.6 2.2C531 1 529.4 0 528 0s-3 1-3.6 2.2L512 32 482.2 44.4c-1.2 .6-2.2 2.2-2.2 3.6 0 1.4 1 3 2.2 3.6L512 64 524.4 93.8zm7.2 100.4c-.6-1.2-2.2-2.2-3.6-2.2s-3 1-3.6 2.2L512 224 482.2 236.4c-1.2 .6-2.2 2.2-2.2 3.6 0 1.4 1 3 2.2 3.6L512 256 524.4 285.8c.6 1.2 2.2 2.2 3.6 2.2s3-1 3.6-2.2L544 256 573.8 243.6c1.2-.6 2.2-2.2 2.2-3.6 0-1.4-1-3-2.2-3.6L544 224 531.6 194.2zM512 144c0-1.4-1-3-2.2-3.6L480 128 467.6 98.2C467 97 465.4 96 464 96s-3 1-3.6 2.2L448 128 418.2 140.4c-1.2 .6-2.2 2.2-2.2 3.6 0 1.4 1 3 2.2 3.6L448 160 460.4 189.8c.6 1.2 2.2 2.2 3.6 2.2s3-1 3.6-2.2L480 160 509.8 147.6c1.2-.6 2.2-2.2 2.2-3.6z"]},E={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"]},k={prefix:"fas",iconName:"cube",icon:[512,512,[],"f1b2","M224.3-2.5c19.8-11.4 44.2-11.4 64 0L464.2 99c19.8 11.4 32 32.6 32 55.4l0 203c0 22.9-12.2 44-32 55.4L288.3 514.5c-19.8 11.4-44.2 11.4-64 0L48.5 413c-19.8-11.4-32-32.6-32-55.4l0-203c0-22.9 12.2-44 32-55.4L224.3-2.5zm207.8 360l0-166.1-143.8 83 0 166.1 143.8-83z"]},A={prefix:"fas",iconName:"arrow-right",icon:[512,512,[8594],"f061","M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},P={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},C={prefix:"fas",iconName:"shapes",icon:[512,512,["triangle-circle-square"],"f61f","M256 0c11.2 0 21.7 5.9 27.4 15.5l96 160c5.9 9.9 6.1 22.2 .4 32.2S363.5 224 352 224l-192 0c-11.5 0-22.2-6.2-27.8-16.2s-5.5-22.3 .4-32.2l96-160C234.3 5.9 244.8 0 256 0zM128 272a112 112 0 1 1 0 224 112 112 0 1 1 0-224zm200 16l112 0c22.1 0 40 17.9 40 40l0 112c0 22.1-17.9 40-40 40l-112 0c-22.1 0-40-17.9-40-40l0-112c0-22.1 17.9-40 40-40z"]},I={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"]},T={prefix:"fas",iconName:"inbox",icon:[512,512,[],"f01c","M91.8 32C59.9 32 32.9 55.4 28.4 86.9L.6 281.2c-.4 3-.6 6-.6 9.1L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-125.7c0-3-.2-6.1-.6-9.1L483.6 86.9C479.1 55.4 452.1 32 420.2 32L91.8 32zm0 64l328.5 0 27.4 192-59.9 0c-12.1 0-23.2 6.8-28.6 17.7l-14.3 28.6c-5.4 10.8-16.5 17.7-28.6 17.7l-120.4 0c-12.1 0-23.2-6.8-28.6-17.7l-14.3-28.6c-5.4-10.8-16.5-17.7-28.6-17.7L64.3 288 91.8 96z"]},R={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},j={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]},N={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},O={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},L={prefix:"fas",iconName:"download",icon:[448,512,[],"f019","M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},D={prefix:"fas",iconName:"arrow-left",icon:[512,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},M={prefix:"fas",iconName:"box",icon:[448,512,[128230],"f466","M369.4 128l-34.3-48-222.1 0-34.3 48 290.7 0zM0 148.5c0-13.3 4.2-26.3 11.9-37.2L60.9 42.8C72.9 26 92.3 16 112.9 16l222.1 0c20.7 0 40.1 10 52.1 26.8l48.9 68.5c7.8 10.9 11.9 23.9 11.9 37.2L448 416c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 148.5z"]},U={prefix:"fas",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0-201.4 201.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3 448 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 96C35.8 96 0 131.8 0 176L0 432c0 44.2 35.8 80 80 80l256 0c44.2 0 80-35.8 80-80l0-80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 80c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l80 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 96z"]},B={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]}
1,H={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},V={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z"]}},15039:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=o(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=o(e,r));return e}(r)))}return t}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0===(r=(function(){return i}).apply(e,[]))||(t.exports=r)}()},15410:(t,e,r)=>{"use strict";var n=r(83095);function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}Object.defineProperty(e,"__esModule",{value:!0});var s={default:function(){return h},noSSR:function(){return f}};for(var a in s)Object.defineProperty(e,a,{enumerable:!0,get:s[a]});var u=r(72687);r(37876),r(14232);var c=u._(r(73477));function l(t){return{default:(null==t?void 0:t.default)||t}}function f(t,e){return delete e.webpack,delete e.modules,t(e)}function h(t,e){var r=c.default,n={loading:function(t){return t.error,t.isLoading,t.pastDelay,null}};t instanceof Promise?n.loader=function(){return t}:"function"==typeof t?n.loader=t:"object"==typeof t&&(n=o(o({},n),t));var i=(n=o(o({},n),e)).loader;return(n.loadableGenerated&&(n=o(o({},n),n.loadableGenerated),delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r(o(o({},n),{},{loader:function(){return null!=i?i().then(l):Promise.resolve(l(function(){return null}))}})):(delete n.webpack,delete n.modules,f(r,n))}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},18847:(t,e,r)=>{t.exports=r(15410)},22892:(t,e,r)=>{"use strict";var n=r(22983);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return c}});var i=r(14232),o=r(8539),s="function"==typeof IntersectionObserver,a=new Map,u=[];function c(t){var e=t.rootRef,r=t.rootMargin,c=t.disabled||!s,l=n((0,i.useState)(!1),2),f=l[0],h=l[1],d=(0,i.useRef)(null),p=(0,i.useCallback)(function(t){d.current=t},[]);return(0,i.useEffect)(function(){if(s){if(!c&&!f){var t,n,i,l,p,g=d.current;if(g&&g.tagName)return t=function(t){return t&&h(t)},i=(n=function(t){var e,r={root:t.root||null,margin:t.rootMargin||""},n=u.find(function(t){return t.root===r.root&&t.margin===r.margin});if(n&&(e=a.get(n)))return e;var i=new Map;return e={id:r,observer:new IntersectionObserver(function(t){t.forEach(function(t){var e=i.get(t.target),r=t.isIntersecting||t.intersectionRatio>0;e&&r&&e(r)})},t),elements:i},u.push(r),a.set(r,e),e}({root:null==e?void 0:e.current,rootMargin:r})).id,l=n.observer,(p=n.elements).set(g,t),l.observe(g),function(){if(p.delete(g),l.unobserve(g),0===p.size){l.disconnect(),a.delete(i);var t=u.findIndex(function(t){return t.root===i.root&&t.margin===i.margin});t>-1&&u.splice(t,1)}}}}else if(!f){var v=(0,o.requestIdleCallback)(function(){return h(!0)});return function(){return(0,o.cancelIdleCallback)(v)}}}
1,[c,r,e,f,d.current]),[p,f,(0,i.useCallback)(function(){h(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},30908:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=(0,r(14232).createContext)({isInitialized:!1})},36679:t=>{t.exports={navbarHero:"navbar_navbarHero__WB9s0"}},37850:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>W});var n=r(42969);r(48721);var i=r(77328),o=r.n(i),s=r(89099),a=r.n(s),u=r(14232),c=r(15039),l=r.n(c),f=r(48230),h=r.n(f),d=r(36679),p=r.n(d),g=r(69290),v=r(77296),m=r(30908),y=r(37876);let b=function(t){var e=t.feature,r=t.children,n=(0,u.useContext)(m.A);return n.isInitialized&&n.isSignedIn&&n.features.includes(e)?(0,y.jsx)(y.Fragment,{children:r}):(0,y.jsx)(y.Fragment,{})};var _=r(11041),S=r(96523);function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function F(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach(function(e){(0,n.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var w=[{title:"News",to:"/news"},{title:"Editor",to:"/editor/",external:!0},{title:"Beta Editor",to:"/editorb/",icon:_.lh8,external:!0},{title:"Download",to:"/downloads"},{title:"Components",to:"/components"},{title:"Circuits",to:"/circuits"},{title:"Shaders",to:"/shaders"},{title:"Docs",to:"/docs"}],E=function(t){var e=t.title,r=t.to,n=t.icon,i=t.external,o=t.requireFeature,a=(0,s.useRouter)().pathname.startsWith(r),u=o?function(t){return(0,y.jsx)(b,{feature:o,children:t})}:function(t){return t};return u(i?(0,y.jsxs)("a",{className:l()("navbar__item","navbar__link",{"navbar__link--active":a}),href:r,children:[n&&(0,y.jsx)(S.gc,{className:"mr-1.5",icon:n}),e]}):(0,y.jsxs)(h(),{href:r,className:l()("navbar__item","navbar__link",{"navbar__link--active":a}),children:[n&&(0,y.jsx)(S.gc,{className:"mr-1.5",icon:n}),e]}))},k=function(t){var e=t.showSidebar;return(0,y.jsx)("div",{"aria-label":"Navigation bar toggle",className:"navbar__toggle",role:"button",tabIndex:0,onClick:e,onKeyDown:e,children:(0,y.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 30 30",role:"img",focusable:"false",children:[(0,y.jsx)("title",{children:"Menu"}),(0,y.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})]})})},A=function(t){var e=t.title,r=t.to,n=t.external,i=t.requireFeature,o=t.onClick;return(i?function(t){return(0,y.jsx)(b,{feature:i,children:t})}:function(t){return t})((0,y.jsx)("li",{className:"menu__list-item",children:n?(0,y.jsx)("a",{href:r,className:"menu__link",children:e}):(0,y.jsx)(h(),{href:r,className:"menu__link",onClick:o,children:e})}))},P=function(t){var e=t.hideSidebar;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{role:"presentation",className:"navbar-sidebar__backdrop",onClick:e}),(0,y.jsxs)("div",{className:"navbar-sidebar",children:[(0,y.jsx)("div",{className:"navbar-sidebar__brand",children:(0,y.jsx)(h(),{href:"/",className:"navbar__brand",onClick:e,children:"Circuit Diagram"})}),(0,y.jsx)("div",{className:"navbar-sidebar__items",children:(0,y.jsx)("div",{className:"menu",children:(0,y.jsx)("ul",{className:"menu__list",children:w.map(function(t,r){return(0,y.jsx)(A,F({onClick:e},t),r)})})})})]})]})};let C=function(){var t=(0,u.useState)(!1),e=t[0],r=t[1],i=(0,u.useState)(!1),o=i[0],a=i[1],c=(0,s.useRouter)();(0,u.useEffect)(function(){var t=function(){window.pageYOffset>300?r(!0):r(!1)};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}},[]);var f="/"==c.pathname&&!e,d=(0,u.useCallback)(function(){a(!0)},[a]),m=(0,u.useCallback)(function(){a(!1)},[a]);return(0,g.A)(o),(0,y.jsxs)("nav",{id:"nav",className:l()("navbar","navbar--light","navbar--fixed-top",(0,n.A)((0,n.A)({"navbar-sidebar--show":o},p().navbarHero,f),"hero",f)),children:[(0,y.jsxs)("div",{className:"navbar__inner",children:[(0,y.jsxs)("div",{className:"navbar__items",children:[(0,y.jsx)(k,{showSidebar:d}),(0,y.jsxs)(h(),{href:"/","aria-current":"page",className:"navbar__brand active",children:[(0,y.jsx)("img",{className:"navbar__logo",src:"/logo.svg",alt:"Circuit Diagram"}),(0,y.jsx)("strong",{className:"navbar__title",children:"Circuit Diagram"})]})]}),(0,y.jsxs)("div",{className:"navbar__items navbar__items--right",children:[w.map(function(t){return(0,y.jsx)(E,F({},t),t.to)}),(0,y.jsx)(v.A,{})]})]}),(0,y.jsx)(P,{hideSidebar:m})]})},I=function(){return(0,y.jsx)("footer",{className:"footer",children:(0,y.jsxs)("div",{className:"container",children:[(0,y.jsxs)("div",{className:"row footer__links",children:[(0,y.jsxs)("div",{className:"col footer__c
1ol",children:[(0,y.jsx)("h4",{className:"footer__title",children:"Help"}),(0,y.jsxs)("ul",{className:"footer__items",children:[(0,y.jsx)("li",{className:"footer__item",children:(0,y.jsx)(h(),{href:"/contact",className:"footer__link-item",children:"Contact"})}),(0,y.jsx)("li",{className:"footer__item",children:(0,y.jsx)(h(),{href:"/privacy",className:"footer__link-item",children:"Privacy Policy"})})]})]}),(0,y.jsxs)("div",{className:"col footer__col",children:[(0,y.jsx)("h4",{className:"footer__title",children:"Social"}),(0,y.jsxs)("ul",{className:"footer__items",children:[(0,y.jsx)("li",{className:"footer__item",children:(0,y.jsx)("a",{className:"footer__link-item",target:"_blank",rel:"noopener noreferrer",href:"https://facebook.com/CircuitDiagram",children:"Facebook"})}),(0,y.jsx)("li",{className:"footer__item",children:(0,y.jsx)("a",{className:"footer__link-item",target:"_blank",rel:"noopener noreferrer",href:"https://twitter.com/Circuit_Diagram",children:"Twitter"})})]})]}),(0,y.jsxs)("div",{className:"col footer__c
1ol",children:[(0,y.jsx)("h4",{className:"footer__title",children:"GitHub"}),(0,y.jsxs)("ul",{className:"footer__items",children:[(0,y.jsx)("li",{className:"footer__item",children:(0,y.jsx)("a",{className:"footer__link-item",target:"_blank",rel:"noopener noreferrer",href:"https://github.com/circuitdiagram",children:"CircuitDiagram"})}),(0,y.jsx)("li",{className:"footer__item",children:(0,y.jsx)("a",{className:"footer__link-item",target:"_blank",rel:"noopener noreferrer",href:"https://github.com/circuitdiagram/components",children:"Components"})})]})]})]}),(0,y.jsx)("div",{className:"text--center text-sm",children:(0,y.jsxs)("div",{children:["Copyright \xa9 ",new Date().getFullYear()," Circuit Diagram"]})})]})})};var T=r(63857),R=r(60180),j=r.n(R),N=r(72493),O=r(62129),L=null;L=new N.UserManager({authority:O.A.oidcAuthority,client_id:"cd_webn",redirect_uri:window.location.origin+"/srf.html",post_logout_redirect_uri:window.location.origin+"/",response_type:"id_token token",scope:"openid profile email cd_identity cd_api cd_feature"});let D=function(t){var e=(0,u.useState)({isInitialized:!1}),r=e[0],n=e[1],i=(0,s.useRouter)(),o=function(){r.isInitialized||n({isInitialized:!0,isSignedIn:!1,signIn:function(){var t;return null==(t=L)?void 0:t.signinRedirect({redirect_uri:window.location.origin+"/",state:{path:i.asPath}})}})};return(0,u.useEffect)(function(){L&&(L.events.addUserLoaded(function(t){var e,r;n({isInitialized:!0,isSignedIn:!0,userId:t.profile.sub,username:t.profile.name,email:t.profile.email,picture:t.profile.picture,features:null!=(e=t.profile.cd_feature)?e:[],getAccessToken:(r=(0,T.A)(j().mark(function e(){var r,n;return j().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.expired){e.next=2;break}return e.abrupt("return",t.access_token);case 2:return e.next=4,null==(r=L)?void 0:r.signinSilent();case 4:if(n=e.sent){e.next=7;break}throw Error("Not signed in.");case 7:return e.abrupt("return",n.access_token);case 8:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)}),signOut:function(){var t;return null==(t=L)?void 0:t.signoutRedirect()}})}),window&&window.location.hash.includes("id_token")?L.signinRedirectCallback().then(function(t){var e;null!=(e=t.state)&&e.path?i.push(t.state.path):window.location.hash=""}).catch(function(){return o()}):L.signinSilent().catch(function(){return o()}))},[L]),(0,y.jsx)(m.A.Provider,{value:r,children:t.children})};var M=r(3110),U=r(18847),B=r.n(U),H=r(72323),V=r.n(H);let K=function(){var t=(0,u.useState)(!1),e=t[0],r=t[1],n=(0,s.useRouter)();(0,u.useEffect)(function(){V().configure({showSpinner:!1,parent:"#npgx"});var t=function(){return V().start()},e=function(){return V().done()};return a().events.on("routeChangeStart",t),a().events.on("routeChangeComplete",e),a().events.on("routeChangeError",e),function(){a().events.off("routeChangeStart",t),a().events.off("routeChangeComplete",e),a().events.off("routeChangeError",e)}},[]),(0,u.useEffect)(function(){var t=function(){window.pageYOffset>300?r(!0):r(!1)};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}},[]);var i="/"==n.pathname&&!e;return(0,y.jsx)("div",{id:"npgx",className:l()("sticky top-0",i&&"whero"),style:{zIndex:2001}})};function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}M.$W.autoAddCss=!1,O.A.env===O.O.Production&&s.Router.events.on("routeChangeComplete",function(t){try{window.gtag("config","UA-18238355-2",{page_path:t})}catch(t){}});var q=B()(function(){return r.e(602).then(r.bind(r,34364))},{ssr:!1,loadableGenerated:{webpack:function(){return[34364]}}});function W(t){var e,r=t.Component,i=t.pageProps,s=null!=(e=r.getLayout)?e:function(t){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(C,{}),(0,y.jsx)("div",{className:"main-wrapper",children:t}),(0,y.jsx)(I,{})]})};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(o(),{children:(0,y.jsx)("title",{children:"Circuit Diagram"})}),(0,y.jsxs)(D,{children:[(0,y.jsx)(K,{}),s((0,y.jsx)(r,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?z(Object(r),!0).forEach(function(e){(0,n.A)(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},i))),(0,y.jsx)(q,{})]})]})}},42969:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(50265);function i(t,e,r){return(e=(0,n.A)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},48230:(t,e,r)=>{t.exports=r(71055)},48721:()=>{},50265:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(84186);function i(t){var e=function(t,e){if("object"!=(0,n.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=(0,n.A)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,n.A)(e)?e:e+""}},51796:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var n=r(14232),i=n.useLayoutEffect,o=n.useEffect;function s(t){var e=t.headManager,r=t.reduceComponentsToState;function s(){if(e&&e.mountedInstances){var t=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(r(t))}}return i(function(){var r;return null==e||null==(r=e.mountedInstances)||r.add(t.children),function(){var r;null==e||null==(r=e.mountedInstances)||r.delete(t.children)}}),i(function(){return e&&(e._pendingUpdate=s),function(){e&&(e._pendingUpdate=s)}}),o(function(){return e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),function(){e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)}}),null}},54382:t=>{t.exports={userMenu:"UserMenu_userMenu__jFqBz",avatar:"UserMenu_avatar__Wh66b",dropdownMenu:"UserMenu_dropdownMenu__33SxO",open:"UserMenu_open__2Wz0F",dropdownToggleButton:"UserMenu_dropdownToggleButton__jRWPz",dropdownToggleButtonVisible:"UserMenu_dropdownToggleButtonVisible__lcXZi"}},62129:(t,e,r)=>{"use strict";r.d(e,{O:()=>i,A:()=>o});var n,i=((n={})[n.Production=0]="Production",n[n.Staging=1]="Staging",n[n.Development=2]="Development",n);let o={siteBaseUrl:"https://www.circuit-diagram.org",apiBaseUrl:"https://api.circuit-diagram.org",recaptchaKey:"6LerD8YSAAAAAP18qAq-Im2byLA80A-sxQ7B75pc",env:i.Production,oidcAuthority:"https://accounts.circuit-diagram.org"}},63155:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return r}});var r=function(t){}},63857:(t,e,r)=>{"use strict";function n(t,e,r,n,i,o,s){try{var a=t[o](s),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){var s=t.apply(e,r);function a(t){n(s,i,o,a,u,"next",t)}function u(t){n(s,i,o,a,u,"throw",t)}a(void 0)})}}r.d(e,{A:()=>i})},69290:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(14232);let i=function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(0,n.useEffect)(function(){return document.body.style.overflow=t?"hidden":"visible",function(){document.body.style.overflow="visible"}},[t])}},70571:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={default:function(){return g},defaultHead:function(){return f}};for(var i in n)Object.defineProperty(e,i,{enumerable:!0,get:n[i]});var o=r(72687),s=r(63732),a=r(37876),u=s._(r(14232)),c=o._(r(51796)),l=r(72563);function f(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===u.default.Fragment?t.concat(u.default.Children.toArray(e.props.children).reduce(function(t,e){return"string"==typeof e||"number"==typeof e?t:t.concat(e)},[])):t.concat(e)}r(75360);var d=["name","httpEquiv","charSet","itemProp"];function p(t){var e,r,n,i;return t.reduce(h,[]).reverse().concat(f().reverse()).filter((e=new Set,r=new Set,n=new Set,i={},function(t){var o=!0,s=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){s=!0;var a=t.key.slice(t.key.indexOf("$")+1);e.has(a)?o=!1:e.add(a)}switch(t.type){case"title":case"base":r.has(t.type)?o=!1:r.add(t.type);break;case"meta":for(var u=0,c=d.length;u<c;u++){var l=d[u];if(t.props.hasOwnProperty(l))if("charSet"===l)n.has(l)?o=!1:n.add(l);else{var f=t.props[l],h=i[l]||new Set;("name"!==l||!s)&&h.has(f)?o=!1:(h.add(f),i[l]=h)}}}return o}
1)).reverse().map(function(t,e){var r=t.key||e;return u.default.cloneElement(t,{key:r})})}var g=function(t){var e=t.children,r=(0,u.useContext)(l.HeadManagerContext);return(0,a.jsx)(c.default,{reduceComponentsToState:p,headManager:r,children:e})};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},71055:(t,e,r)=>{"use strict";var n=r(83095),i=r(22983),o=r(57327),s=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onNavigate","onMouseEnter","onTouchStart","legacyBehavior","transitionTypes"];function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}Object.defineProperty(e,"__esModule",{value:!0});var c={default:function(){return I},useLinkStatus:function(){return C}};for(var l in c)Object.defineProperty(e,l,{enumerable:!0,get:c[l]});var f=r(63732),h=r(37876),d=f._(r(14232)),p=r(70813),g=r(38545),v=r(43396),m=r(68294),y=r(39667),b=r(41128),_=r(22892),S=r(981),x=r(74656),F=r(95237);r(63155);var w=new Set;function E(t,e,r,n){if((0,g.isLocalURL)(e)){if(!n.bypassPrefetchedCheck){var i=e+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in t?t.locale:void 0);if(w.has(i))return;w.add(i)}t.prefetch(e,r,n).catch(function(t){})}}function k(t){return"string"==typeof t?t:(0,v.formatUrl)(t)}var A=d.default.forwardRef(function(t,e){var r,n,a=t.href,c=t.as,l=t.children,f=t.prefetch,v=t.passHref,w=t.replace,A=t.shallow,P=t.scroll,C=t.locale,I=t.onClick,T=t.onNavigate,R=t.onMouseEnter,j=t.onTouchStart,N=t.legacyBehavior,O=void 0!==N&&N,L=(t.transitionTypes,o(t,s));r=l,O&&("string"==typeof r||"number"==typeof r)&&(r=(0,h.jsx)("a",{children:r}));var D=d.default.useContext(b.RouterContext),M=!1!==(void 0===f?null:f),U=d.default.useMemo(function(){if(!D){var t=k(a);return{href:t,as:c?k(c):t}}var e=i((0,p.resolveHref)(D,a,!0),2),r=e[0],n=e[1];return{href:r,as:c?(0,p.resolveHref)(D,c):n||r}},[D,a,c]),B=U.href,H=U.as,V=d.default.useRef(B),K=d.default.useRef(H);O&&(n=d.default.Children.only(r));var z=O?n&&"object"==typeof n&&n.ref:e,q=i((0,_.useIntersection)({rootMargin:"200px"}),3),W=q[0],J=q[1],Y=q[2],G=d.default.useCallback(function(t){(K.current!==H||V.current!==B)&&(Y(),K.current=H,V.current=B),W(t)},[H,B,Y,W]),$=(0,F.useMergedRef)(G,z);d.default.useEffect(function(){!D||J&&M&&E(D,B,H,{locale:C})},[H,B,J,C,M,null==D?void 0:D.locale,D]);var X={ref:$,onClick:function(t){O||"function"!=typeof I||I(t),O&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!D||t.defaultPrevented||function(t,e,r,n,i,o,s,a,u){var c;if(!("A"===t.currentTarget.nodeName.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))){if(!(0,g.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}t.preventDefault(),!function(){if(u){var t=!1;if(u({preventDefault:function(){t=!0}}),t)return}var c=null==s||s;"beforePopState"in e?e[i?"replace":"push"](r,n,{shallow:o,locale:a,scroll:c}):e[i?"replace":"push"](n||r,{scroll:c})}()}}(t,D,B,H,w,A,P,C,T)},onMouseEnter:function(t){O||"function"!=typeof R||R(t),O&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),D&&E(D,B,H,{locale:C,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(t){O||"function"!=typeof j||j(t),O&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),D&&E(D,B,H,{locale:C,priority:!0,bypassPrefetchedCheck:!0})}};if((0,m.isAbsoluteUrl)(H))X.href=H;else if(!O||v||"a"===n.type&&!("href"in n.props)){var Q=void 0!==C?C:null==D?void 0:D.locale;X.href=(null==D?void 0:D.isLocaleDomain)&&(0,S.getDomainLocale)(H,Q,null==D?void 0:D.locales,null==D?void 0:D.domainLocales)||
1(0,x.addBasePath)((0,y.addLocale)(H,Q,null==D?void 0:D.defaultLocale))}return O?d.default.cloneElement(n,X):(0,h.jsx)("a",u(u(u({},L),X),{},{children:r}))}),P=(0,d.createContext)({pending:!1}),C=function(){return(0,d.useContext)(P)},I=A;("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},72323:function(t,e,r){var n,i;void 0===(i="function"==typeof(n=function(){var t,e,r,n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function o(t,e,r){return t<e?e:t>r?r:t}n.configure=function(t){var e,r;for(e in t)void 0!==(r=t[e])&&t.hasOwnProperty(e)&&(i[e]=r);return this},n.status=null,n.set=function(t){var e=n.isStarted();n.status=1===(t=o(t,i.minimum,1))?null:t;var r=n.render(!e),u=r.querySelector(i.barSelector),c=i.speed,l=i.easing;return r.offsetWidth,s(function(e){var o,s,f,h;""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),a(u,(o=t,s=c,f=l,(h="translate3d"===i.positionUsing?{transform:"translate3d("+(-1+o)*100+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+(-1+o)*100+"%,0)"}:{"margin-left":(-1+o)*100+"%"}).transition="all "+s+"ms "+f,h)),1===t?(a(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){a(r,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){n.remove(),e()},c)},c)):setTimeout(e,c)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var t=function(){setTimeout(function(){n.status&&(n.trickle(),t())},i.trickleSpeed)};return i.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*o(Math.random()*e,.1,.95)),e=o(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===e&&n.start(),t++,e++,r.always(function(){0==--e?(t=0,n.done()):n.set((t-e)/t)})),this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var r,o=e.querySelector(i.barSelector),s=t?"-100":(-1+(n.status||0))*100,u=document.querySelector(i.parent);return a(o,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!i.showSpinner&&(r=e.querySelector(i.spinnerSelector))&&h(r),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(e),e},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(i.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var s=(r=[],function(t){r.push(t),1==r.length&&function t(){var e=r.shift();e&&e(t)}()}),a=function(){var t=["Webkit","O","Moz","ms"],e={};function r(r,n,i){var o;n=e[o=(o=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]||(e[o]=function(e){var r=document.body.style;if(e in r)return e;for(var n,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((n=t[i]+o)in r)return n;return e}(o)),r.style[n]=i}return function(t,e){var n,i,o=arguments;if(2==o.length)for(n in e)void 0!==(i=e[n])&&e.hasOwnProperty(n)&&r(t,n,i);else r(t,o[1],o[2])}}();function u(t,e){return("string"==typeof t?t:f(t)).indexOf(" "+e+" ")>=0}function c(t,e){var r=f(t),n=r+e;u(r,e)||(t.className=n.substring(1))}function l(t,e){var r,n=f(t);u(t,e)&&(t.className=(r=n.replace(" "+e+" "," ")).substring(1,r.length-1))}function f(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?n.call(e,r,e,t):n)||(t.exports=i)},72493:function(t){t.exports=function(){var t=[function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i={debug:function(){},info:function(){},warn:function(){},error:function(){}},o=void 0,s=void 0;(e.Log=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t.reset=function(){s=3,o=i},t.debug=function(){if(s>=4){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];o.debug.apply(o,Array.from(e))}},t.info=function(){if(s>=3){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];o.info.apply(o,Array.from(e))}},t.warn=function(){if(s>=2){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];o.warn.apply(o,Array.from(e))}},t.error=function(){if(s>=1){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];o.error.apply(o,Array.from(e))}},n(t,null,[{key:"NONE",get:function(){return 0}},{key:"ERROR",get:function(){return 1}},{key:"WARN",get:function(){return 2}},{key:"INFO",get:function(){return 3}},{key:"DEBUG",get:function(){return 4}},{key:"level",get:function(){return s},set:function(t){if(!(0<=t&&t<=4))throw Error("Invalid log level");s=t}},{key:"logger",get:function(){return o},set:function(t){if(!t.debug&&t.info&&(t.debug=t.info),!(t.debug&&t.info&&t.warn&&t.error))throw Error("Invalid logger");o=t}}]),t}()).reset()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i={setInterval:function(t){function e(e,r){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t,e){return setInterval(t,e)}),clearInterval:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return clearInterval(t)})},o=!1,s=null;e.Global=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t._testing=function(){o=!0},t.setXMLHttpRequest=function(t){s=t},n(t,null,[{key:"location",get:function(){if(!o)return location}},{key:"localStorage",get:function(){if(!o&&"u">typeof window)return localStorage}},{key:"sessionStorage",get:function(){if(!o&&"u">typeof window)return sessionStorage}},{key:"XMLHttpRequest",get:function(){if(!o&&"u">typeof window)return s||XMLHttpRequest}},{key:"timer",get:function(){if(!o)return i}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MetadataService=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0),o=r(7),s=".well-known/openid-configuration";e.MetadataService=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.JsonService;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),!e)throw i.Log.error("MetadataService: No settings passed to MetadataService"),Error("settings");this._settings=e,this._jsonService=new r(["application/jwk-set+json"])}return t.prototype.resetSigningKeys=function(){this._settings=this._settings||{},this._settings.signingKeys=void 0},t.prototype.getMetadata=function(){var t=this;return this._settings.metadata?(i.Log.debug("MetadataService.getMetadata: Returning metadata from settings"),Promise.resolve(this._settings.metadata)):this.metadataUrl?(i.Log.debug("MetadataService.getMetadata: getting metadata from",this.metadataUrl),this._jsonService.getJson(this.metadataUrl).then(function(e){i.Log.debug("MetadataService.getMetadata: json received");var r=t._settings.metadataSeed||{};return t._settings.metadata=Object.assign({},r,e),t._settings.metadata})):(i.Log.error("MetadataService.getMetadata: No authority or metadataUrl configured on settings"),Promise.reject(Error("No authority or metadataUrl configured on settings")))},t.prototype.getIssuer=function(){return this._getMetadataProperty("issuer")},t.prototype.getAuthorizationEndpoint=function(){return this._getMetadataProperty("authorization_endpoint")},t.prototype.getUserInfoEndpoint=function(){return this._getMetadataProperty("userinfo_endpoint")},t.prototype.getTokenEndpoint=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._getMetadataProperty("token_endpoint",t)},t.prototype.getCheckSessionIframe=function(){return this._getMetadataProperty("check_session_iframe",!0)},t.prototype.getEndSessionEndpoint=function(){return this._getMetadataProperty("end_session_endpoint",!0)},t.prototype.getRevocationEndpoint=function(){return this._getMetadataProperty("revocation_endpoint",!0)},t.prototype.getKeysEndpoint=function(){return this._getMetadataProperty("jwks_uri",!0)},t.prototype._getMetadataProperty=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.Log.debug("MetadataService.getMetadataProperty for: "+t),this.getMetadata().then(function(r){if(i.Log.debug("MetadataService.getMetadataProperty: metadata recieved"),void 0===r[t]){if(!0===e)return void i.Log.warn("MetadataService.getMetadataProperty: Metadata does not contain optional property "+t);throw i.Log.error("MetadataService.getMetadataProperty: Metadata does not contain property "+t),Error("Metadata does not contain property "+t)}return r[t]})},t.prototype.getSigningKeys=function(){var t=this;return this._settings.signingKeys?(i.Log.debug("MetadataService.getSigningKeys: Returning signingKeys from settings"),Promise.resolve(this._settings.signingKeys)):this._getMetadataProperty("jwks_uri").then(function(e){return i.Log.debug("MetadataService.getSigningKeys: jwks_uri received",e),t._jsonService.getJson(e).then(function(e){if(i.Log.debug("MetadataService.getSigningKeys: key set received",e),!e.keys)throw i.Log.error("MetadataService.getSigningKeys: Missing keys on keyset"),Error("Missing keys on keyset");return t._settings.signingKeys=e.keys,t._settings.signingKeys})})},n(t,[{key:"metadataUrl",get:function(){return this._metadataUrl||(this._settings.metadataUrl?this._metadataUrl=this._settings.metadataUrl:(this._metadataUrl=this._settings.authority,this._metadataUrl&&0>this._metadataUrl.indexOf(s)&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=s))),this._metadataUrl}}]),t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.UrlUtility=void 0;var n=r(0),i=r(1);e.UrlUtility=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t.addQueryParam=function(t,e,r){return 0>t.indexOf("?")&&(t+="?"),"?"!==t[t.length-1]&&(t+="&"),t+=encodeURIComponent(e),t+="=",t+=encodeURIComponent(r)},t.parseUrlFragment=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.Global;"string"!=typeof t&&(t=r.location.href);var o=t.lastIndexOf(e);o>=0&&(t=t.substr(o+1)),"?"===e&&(o=t.indexOf("#"))>=0&&(t=t.substr(0,o));for(var s,a={},u=/([^&=]+)=([^&]*)/g,c=0;s=u.exec(t);)if(a[decodeURIComponent(s[1])]=decodeURIComponent(s[2].replace(/\+/g," ")),c++>50)return n.Log.error("UrlUtility.parseUrlFragment: response exceeded expected number of parameters",t),{error:"Response exceeded expected number of parameters"};for(var l in a)return a;return{}},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JoseUtil=void 0;var n,i=r(26);e.JoseUtil=(0,((n=r(33))&&n.__esModule?n:{default:n}).default)({jws:i.jws,KeyUtil:i.KeyUtil,X509:i.X509,crypto:i.crypto,hextob64u:i.hextob64u,b64tohex:i.b64tohex,AllowedSigningAlgs:i.AllowedSigningAlgs})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClientSettings=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(0),s=r(23),a=r(6),u=r(24),c=r(2),l=".well-known/openid-configuration";e.OidcClientSettings=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.authority,i=e.metadataUrl,o=e.metadata,l=e.signingKeys,f=e.metadataSeed,h=e.client_id,d=e.client_secret,p=e.response_type,g=e.scope,v=e.redirect_uri,m=e.post_logout_redirect_uri,y=e.client_authentication,b=e.prompt,_=e.display,S=e.max_age,x=e.ui_locales,F=e.acr_values,w=e.resource,E=e.response_mode,k=e.filterProtocolClaims,A=e.loadUserInfo,P=e.staleStateAge,C=e.clockSkew,I=e.clockService,T=void 0===I?new s.ClockService:I,R=e.userInfoJwtIssuer,j=e.mergeClaims,N=e.stateStore,O=void 0===N?new a.WebStorageStateStore:N,L=e.ResponseValidatorCtor,D=void 0===L?u.ResponseValidator:L,M=e.MetadataServiceCtor,U=void 0===M?c.MetadataService:M,B=e.extraQueryParams,H=void 0===B?{}:B,V=e.extraTokenParams,K=void 0===V?{}:V;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),this._authority=r,this._metadataUrl=i,this._metadata=o,this._metadataSeed=f,this._signingKeys=l,this._client_id=h,this._client_secret=d,this._response_type=void 0===p?"id_token":p,this._scope=void 0===g?"openid":g,this._redirect_uri=v,this._post_logout_redirect_uri=m,this._client_authentication=void 0===y?"client_secret_post":y,this._prompt=b,this._display=_,this._max_age=S,this._ui_locales=x,this._acr_values=F,this._resource=w,this._response_mode=E,this._filterProtocolClaims=!!(void 0===k||k),this._loadUserInfo=!!(void 0===A||A),this._staleStateAge=void 0===P?900:P,this._clockSkew=void 0===C?300:C,this._clockService=T,this._userInfoJwtIssuer=void 0===R?"OP":R,this._mergeClaims=!!(void 0!==j&&j),this._stateStore=O,this._validator=new D(this),this._metadataService=new U(this),this._extraQueryParams="object"===(void 0===H?"undefined":n(H))?H:{},this._extraTokenParams="object"===(void 0===K?"undefined":n(K))?K:{}}return t.prototype.getEpochTime=function(){return this._clockService.getEpochTime()},i(t,[{key:"client_id",get:function(){return this._client_id},set:function(t){if(this._client_id)throw o.Log.error("OidcClientSettings.set_client_id: client_id has already been assigned."),Error("client_id has already been assigned.");this._client_id=t}},{key:"client_secret",get:function(){return this._client_secret}},{key:"response_type",get:function(){return this._response_type}},{key:"scope",get:function(){return this._scope}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"post_logout_redirect_uri",get:function(){return this._post_logout_redirect_uri}},{key:"client_authentication",get:function(){return this._client_authentication}},{key:"prompt",get:function(){return this._prompt}},{key:"display",get:function(){return this._display}},{key:"max_age",get:function(){return this._max_age}},{key:"ui_locales",get:function(){return this._ui_locales}},{key:"acr_values",get:function(){return this._acr_values}},{key:"resource",get:function(){return this._resource}},{key:"response_mode",get:function(){return this._response_mode}},{key:"authority",get:function(){return this._authority},set:function(t){if(this._authority)throw o.Log.error("OidcClientSettings.set_authority: authority has already been assigned."),Error("authority has already been assigned.");this._authority=t}},{key:"metadataUrl",get:function(){return this._metadataUrl||(this._metadataUrl=this.authority,this._metadataUrl&&0>this._metadataUrl.indexOf(l)&&("/"!==this._metadataUrl[this._metadataUrl.length-1]&&(this._metadataUrl+="/"),this._metadataUrl+=l)),this._metadataUrl}},{key:"metadata",get:function(){return this._metadata},set:function(t){this._metadata=t}},{key:"metadataSeed",get:function(){return this._metadataSeed},set:function(t){this._metadataSeed=t}},{key:"signingKeys",get:function(){return this._signingKeys},set:function(t){this._signingKeys=t}},{key:"filterProtocolClaims",get:function(){return this._filterProtocolClaims}},{key:"loadUserInfo",get:function(){return this._loadUserInfo}},{key:"staleStateAge",get:function(){return this._staleStateAge}},{key:"clockSkew",get:function(){return this._clockSkew}},{key:"userInfoJwtIssuer",get:function(){return this._userInfoJwtIssuer}},{key:"mergeClaims",get:function(){return this._mergeClaims}},{key:"stateStore",get:function(){return this._stateStore}}
1,{key:"validator",get:function(){return this._validator}},{key:"metadataService",get:function(){return this._metadataService}},{key:"extraQueryParams",get:function(){return this._extraQueryParams},set:function(t){"object"===(void 0===t?"undefined":n(t))?this._extraQueryParams=t:this._extraQueryParams={}}},{key:"extraTokenParams",get:function(){return this._extraTokenParams},set:function(t){"object"===(void 0===t?"undefined":n(t))?this._extraTokenParams=t:this._extraTokenParams={}}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebStorageStateStore=void 0;var n=r(0),i=r(1);e.WebStorageStateStore=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.prefix,n=e.store,o=void 0===n?i.Global.localStorage:n;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),this._store=o,this._prefix=void 0===r?"oidc.":r}return t.prototype.set=function(t,e){return n.Log.debug("WebStorageStateStore.set",t),t=this._prefix+t,this._store.setItem(t,e),Promise.resolve()},t.prototype.get=function(t){return n.Log.debug("WebStorageStateStore.get",t),t=this._prefix+t,Promise.resolve(this._store.getItem(t))},t.prototype.remove=function(t){n.Log.debug("WebStorageStateStore.remove",t),t=this._prefix+t;var e=this._store.getItem(t);return this._store.removeItem(t),Promise.resolve(e)},t.prototype.getAllKeys=function(){n.Log.debug("WebStorageStateStore.getAllKeys");for(var t=[],e=0;e<this._store.length;e++){var r=this._store.key(e);0===r.indexOf(this._prefix)&&t.push(r.substr(this._prefix.length))}return Promise.resolve(t)},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JsonService=void 0;var n=r(0),i=r(1);e.JsonService=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Global.XMLHttpRequest,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),e&&Array.isArray(e)?this._contentTypes=e.slice():this._contentTypes=[],this._contentTypes.push("application/json"),n&&this._contentTypes.push("application/jwt"),this._XMLHttpRequest=r,this._jwtHandler=n}return t.prototype.getJson=function(t,e){var r=this;if(!t)throw n.Log.error("JsonService.getJson: No url passed"),Error("url");return n.Log.debug("JsonService.getJson, url: ",t),new Promise(function(i,o){var s=new r._XMLHttpRequest;s.open("GET",t);var a=r._contentTypes,u=r._jwtHandler;s.onload=function(){if(n.Log.debug("JsonService.getJson: HTTP response received, status",s.status),200===s.status){var e=s.getResponseHeader("Content-Type");if(e){var r=a.find(function(t){if(e.startsWith(t))return!0});if("application/jwt"==r)return void u(s).then(i,o);if(r)try{return void i(JSON.parse(s.responseText))}catch(t){return n.Log.error("JsonService.getJson: Error parsing JSON response",t.message),void o(t)}}o(Error("Invalid response Content-Type: "+e+", from URL: "+t))}else o(Error(s.statusText+" ("+s.status+")"))},s.onerror=function(){n.Log.error("JsonService.getJson: network error"),o(Error("Network Error"))},e&&(n.Log.debug("JsonService.getJson: token passed, setting Authorization header"),s.setRequestHeader("Authorization","Bearer "+e)),s.send()})},t.prototype.postForm=function(t,e,r){var i=this;if(!t)throw n.Log.error("JsonService.postForm: No url passed"),Error("url");return n.Log.debug("JsonService.postForm, url: ",t),new Promise(function(o,s){var a=new i._XMLHttpRequest;a.open("POST",t);var u=i._contentTypes;a.onload=function(){if(n.Log.debug("JsonService.postForm: HTTP response received, status",a.status),200!==a.status){if(400===a.status&&(e=a.getResponseHeader("Content-Type"))&&u.find(function(t){if(e.startsWith(t))return!0}))try{var e,r=JSON.parse(a.responseText);if(r&&r.error)return n.Log.error("JsonService.postForm: Error from server: ",r.error),void s(Error(r.error))}catch(t){return n.Log.error("JsonService.postForm: Error parsing JSON response",t.message),void s(t)}s(Error(a.statusText+" ("+a.status+")"))}else{if((e=a.getResponseHeader("Content-Type"))&&u.find(function(t){if(e.startsWith(t))return!0}))try{return void o(JSON.parse(a.responseText))}catch(t){return n.Log.error("JsonService.postForm: Error parsing JSON response",t.message),void s(t)}s(Error("Invalid response Content-Type: "+e+", from URL: "+t))}},a.onerror=function(){n.Log.error("JsonService.postForm: network error"),s(Error("Network Error"))};var c="";for(var l in e){var f=e[l];f&&(c.length>0&&(c+="&"),c+=encodeURIComponent(l),c+="=",c+=encodeURIComponent(f))}a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),void 0!==r&&a.setRequestHeader("Authorization","Basic "+btoa(r)),a.send(c)})},t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.SigninRequest=void 0;var n=r(0),i=r(3),o=r(13);e.SigninRequest=function(){function t(e){var r=e.url,s=e.client_id,a=e.redirect_uri,u=e.response_type,c=e.scope,l=e.authority,f=e.data,h=e.prompt,d=e.display,p=e.max_age,g=e.ui_locales,v=e.id_token_hint,m=e.login_hint,y=e.acr_values,b=e.resource,_=e.response_mode,S=e.request,x=e.request_uri,F=e.extraQueryParams,w=e.request_type,E=e.client_secret,k=e.extraTokenParams,A=e.skipUserInfo;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),!r)throw n.Log.error("SigninRequest.ctor: No url passed"),Error("url");if(!s)throw n.Log.error("SigninRequest.ctor: No client_id passed"),Error("client_id");if(!a)throw n.Log.error("SigninRequest.ctor: No redirect_uri passed"),Error("redirect_uri");if(!u)throw n.Log.error("SigninRequest.ctor: No response_type passed"),Error("response_type");if(!c)throw n.Log.error("SigninRequest.ctor: No scope passed"),Error("scope");if(!l)throw n.Log.error("SigninRequest.ctor: No authority passed"),Error("authority");var P=t.isOidc(u),C=t.isCode(u);_||(_=t.isCode(u)?"query":null),this.state=new o.SigninState({nonce:P,data:f,client_id:s,authority:l,redirect_uri:a,code_verifier:C,request_type:w,response_mode:_,client_secret:E,scope:c,extraTokenParams:k,skipUserInfo:A}),r=i.UrlUtility.addQueryParam(r,"client_id",s),r=i.UrlUtility.addQueryParam(r,"redirect_uri",a),r=i.UrlUtility.addQueryParam(r,"response_type",u),r=i.UrlUtility.addQueryParam(r,"scope",c),r=i.UrlUtility.addQueryParam(r,"state",this.state.id),P&&(r=i.UrlUtility.addQueryParam(r,"nonce",this.state.nonce)),C&&(r=i.UrlUtility.addQueryParam(r,"code_challenge",this.state.code_challenge),r=i.UrlUtility.addQueryParam(r,"code_challenge_method","S256"));var I={prompt:h,display:d,max_age:p,ui_locales:g,id_token_hint:v,login_hint:m,acr_values:y,resource:b,request:S,request_uri:x,response_mode:_};for(var T in I)I[T]&&(r=i.UrlUtility.addQueryParam(r,T,I[T]));for(var R in F)r=i.UrlUtility.addQueryParam(r,R,F[R]);this.url=r}return t.isOidc=function(t){return!!t.split(/\s+/g).filter(function(t){return"id_token"===t})[0]},t.isOAuth=function(t){return!!t.split(/\s+/g).filter(function(t){return"token"===t})[0]},t.isCode=function(t){return!!t.split(/\s+/g).filter(function(t){return"code"===t})[0]},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.State=void 0;var n,i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(0),s=(n=r(14))&&n.__esModule?n:{default:n};e.State=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id,n=e.data,i=e.created,o=e.request_type;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),this._id=r||(0,s.default)(),this._data=n,this._created="number"==typeof i&&i>0?i:parseInt(Date.now()/1e3),this._request_type=o}return t.prototype.toStorageString=function(){return o.Log.debug("State.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type})},t.fromStorageString=function(e){return o.Log.debug("State.fromStorageString"),new t(JSON.parse(e))},t.clearStaleState=function(e,r){var n=Date.now()/1e3-r;return e.getAllKeys().then(function(r){o.Log.debug("State.clearStaleState: got keys",r);for(var i,s=[],a=0;a<r.length;a++)!function(a){var u=r[a];i=e.get(u).then(function(r){var i=!1;if(r)try{var s=t.fromStorageString(r);o.Log.debug("State.clearStaleState: got item from key: ",u,s.created),s.created<=n&&(i=!0)}catch(t){o.Log.error("State.clearStaleState: Error parsing state for key",u,t.message),i=!0}else o.Log.debug("State.clearStaleState: no item in storage for key: ",u),i=!0;if(i)return o.Log.debug("State.clearStaleState: removed item for key: ",u),e.remove(u)}),s.push(i)}(a);return o.Log.debug("State.clearStaleState: waiting on promise count:",s.length),Promise.all(s)})},i(t,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"created",get:function(){return this._created}},{key:"request_type",get:function(){return this._request_type}}]),t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.OidcClient=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0),o=r(5),s=r(12),a=r(8),u=r(34),c=r(35),l=r(36),f=r(13),h=r(9);e.OidcClient=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),e instanceof o.OidcClientSettings?this._settings=e:this._settings=new o.OidcClientSettings(e)}return t.prototype.createSigninRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.response_type,n=e.scope,o=e.redirect_uri,s=e.data,u=e.state,c=e.prompt,l=e.display,f=e.max_age,h=e.ui_locales,d=e.id_token_hint,p=e.login_hint,g=e.acr_values,v=e.resource,m=e.request,y=e.request_uri,b=e.response_mode,_=e.extraQueryParams,S=e.extraTokenParams,x=e.request_type,F=e.skipUserInfo,w=arguments[1];i.Log.debug("OidcClient.createSigninRequest");var E=this._settings.client_id;r=r||this._settings.response_type,n=n||this._settings.scope,o=o||this._settings.redirect_uri,c=c||this._settings.prompt,l=l||this._settings.display,f=f||this._settings.max_age,h=h||this._settings.ui_locales,g=g||this._settings.acr_values,v=v||this._settings.resource,b=b||this._settings.response_mode,_=_||this._settings.extraQueryParams,S=S||this._settings.extraTokenParams;var k=this._settings.authority;return a.SigninRequest.isCode(r)&&"code"!==r?Promise.reject(Error("OpenID Connect hybrid flow is not supported")):this._metadataService.getAuthorizationEndpoint().then(function(e){i.Log.debug("OidcClient.createSigninRequest: Received authorization endpoint",e);var A=new a.SigninRequest({url:e,client_id:E,redirect_uri:o,response_type:r,scope:n,data:s||u,authority:k,prompt:c,display:l,max_age:f,ui_locales:h,id_token_hint:d,login_hint:p,acr_values:g,resource:v,request:m,request_uri:y,extraQueryParams:_,extraTokenParams:S,request_type:x,response_mode:b,client_secret:t._settings.client_secret,skipUserInfo:F}),P=A.state;return(w=w||t._stateStore).set(P.id,P.toStorageString()).then(function(){return A})})},t.prototype.readSigninResponseState=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSigninResponseState");var n="query"===this._settings.response_mode||!this._settings.response_mode&&a.SigninRequest.isCode(this._settings.response_type),o=new u.SigninResponse(t,n?"?":"#");return o.state?(e=e||this._stateStore,(r?e.remove.bind(e):e.get.bind(e))(o.state).then(function(t){if(!t)throw i.Log.error("OidcClient.readSigninResponseState: No matching state found in storage"),Error("No matching state found in storage");return{state:f.SigninState.fromStorageString(t),response:o}})):(i.Log.error("OidcClient.readSigninResponseState: No state in response"),Promise.reject(Error("No state in response")))},t.prototype.processSigninResponse=function(t,e){var r=this;return i.Log.debug("OidcClient.processSigninResponse"),this.readSigninResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return i.Log.debug("OidcClient.processSigninResponse: Received state from storage; validating response"),r._validator.validateSigninResponse(e,n)})},t.prototype.createSignoutRequest=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.id_token_hint,n=e.data,o=e.state,s=e.post_logout_redirect_uri,a=e.extraQueryParams,u=e.request_type,l=arguments[1];return i.Log.debug("OidcClient.createSignoutRequest"),s=s||this._settings.post_logout_redirect_uri,a=a||this._settings.extraQueryParams,this._metadataService.getEndSessionEndpoint().then(function(e){if(!e)throw i.Log.error("OidcClient.createSignoutRequest: No end session endpoint url returned"),Error("no end session endpoint");i.Log.debug("OidcClient.createSignoutRequest: Received end session endpoint",e);var f=new c.SignoutRequest({url:e,id_token_hint:r,post_logout_redirect_uri:s,data:n||o,extraQueryParams:a,request_type:u}),h=f.state;return h&&(i.Log.debug("OidcClient.createSignoutRequest: Signout request has state to persist"),(l=l||t._stateStore).set(h.id,h.toStorageString())),f})},t.prototype.readSignoutResponseState=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.Log.debug("OidcClient.readSignoutResponseState");var n=new l.SignoutResponse(t);if(!n.state)return i.Log.debug("OidcClient.readSignoutResponseState: No state in response"),n.error?(i.Log.warn("Oi
1dcClient.readSignoutResponseState: Response was error: ",n.error),Promise.reject(new s.ErrorResponse(n))):Promise.resolve({state:void 0,response:n});var o=n.state;return e=e||this._stateStore,(r?e.remove.bind(e):e.get.bind(e))(o).then(function(t){if(!t)throw i.Log.error("OidcClient.readSignoutResponseState: No matching state found in storage"),Error("No matching state found in storage");return{state:h.State.fromStorageString(t),response:n}})},t.prototype.processSignoutResponse=function(t,e){var r=this;return i.Log.debug("OidcClient.processSignoutResponse"),this.readSignoutResponseState(t,e,!0).then(function(t){var e=t.state,n=t.response;return e?(i.Log.debug("OidcClient.processSignoutResponse: Received state from storage; validating response"),r._validator.validateSignoutResponse(e,n)):(i.Log.debug("OidcClient.processSignoutResponse: No state from storage; skipping validating response"),n)})},t.prototype.clearStaleState=function(t){return i.Log.debug("OidcClient.clearStaleState"),t=t||this._stateStore,h.State.clearStaleState(t,this.settings.staleStateAge)},n(t,[{key:"_stateStore",get:function(){return this.settings.stateStore}},{key:"_validator",get:function(){return this.settings.validator}},{key:"_metadataService",get:function(){return this.settings.metadataService}},{key:"settings",get:function(){return this._settings}},{key:"metadataService",get:function(){return this._metadataService}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenClient=void 0;var n=r(7),i=r(2),o=r(0);e.TokenClient=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("TokenClient.ctor: No settings passed"),Error("settings");this._settings=e,this._jsonService=new r,this._metadataService=new s(this._settings)}return t.prototype.exchangeCode=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).grant_type=e.grant_type||"authorization_code",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret,e.redirect_uri=e.redirect_uri||this._settings.redirect_uri;var r=void 0,n=e._client_authentication||this._settings._client_authentication;return delete e._client_authentication,e.code?e.redirect_uri?e.code_verifier?e.client_id?e.client_secret||"client_secret_basic"!=n?("client_secret_basic"==n&&(r=e.client_id+":"+e.client_secret,delete e.client_id,delete e.client_secret),this._metadataService.getTokenEndpoint(!1).then(function(n){return o.Log.debug("TokenClient.exchangeCode: Received token endpoint"),t._jsonService.postForm(n,e,r).then(function(t){return o.Log.debug("TokenClient.exchangeCode: response received"),t})})):(o.Log.error("TokenClient.exchangeCode: No client_secret passed"),Promise.reject(Error("A client_secret is required"))):(o.Log.error("TokenClient.exchangeCode: No client_id passed"),Promise.reject(Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeCode: No code_verifier passed"),Promise.reject(Error("A code_verifier is required"))):(o.Log.error("TokenClient.exchangeCode: No redirect_uri passed"),Promise.reject(Error("A redirect_uri is required"))):(o.Log.error("TokenClient.exchangeCode: No code passed"),Promise.reject(Error("A code is required")))},t.prototype.exchangeRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).grant_type=e.grant_type||"refresh_token",e.client_id=e.client_id||this._settings.client_id,e.client_secret=e.client_secret||this._settings.client_secret;var r=void 0,n=e._client_authentication||this._settings._client_authentication;return delete e._client_authentication,e.refresh_token?e.client_id?("client_secret_basic"==n&&(r=e.client_id+":"+e.client_secret,delete e.client_id,delete e.client_secret),this._metadataService.getTokenEndpoint(!1).then(function(n){return o.Log.debug("TokenClient.exchangeRefreshToken: Received token endpoint"),t._jsonService.postForm(n,e,r).then(function(t){return o.Log.debug("TokenClient.exchangeRefreshToken: response received"),t})})):(o.Log.error("TokenClient.exchangeRefreshToken: No client_id passed"),Promise.reject(Error("A client_id is required"))):(o.Log.error("TokenClient.exchangeRefreshToken: No refresh_token passed"),Promise.reject(Error("A refresh_token is required")))},t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorResponse=void 0;var n=r(0);e.ErrorResponse=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.error,o=r.error_description,s=r.error_uri,a=r.state,u=r.session_state;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),!i)throw n.Log.error("No error passed to ErrorResponse"),Error("error");var c=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,t.call(this,o||i));return c.name="ErrorResponse",c.error=i,c.error_description=o,c.error_uri=s,c.state=a,c.session_state=u,c}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Error)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninState=void 0;var n,i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(0),s=r(9),a=r(4),u=(n=r(14))&&n.__esModule?n:{default:n};e.SigninState=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.nonce,i=r.authority,o=r.client_id,s=r.redirect_uri,c=r.code_verifier,l=r.response_mode,f=r.client_secret,h=r.scope,d=r.extraTokenParams,p=r.skipUserInfo;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var g=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,t.call(this,arguments[0]));if(!0===n?g._nonce=(0,u.default)():n&&(g._nonce=n),!0===c?g._code_verifier=(0,u.default)()+(0,u.default)()+(0,u.default)():c&&(g._code_verifier=c),g.code_verifier){var v=a.JoseUtil.hashString(g.code_verifier,"SHA256");g._code_challenge=a.JoseUtil.hexToBase64Url(v)}return g._redirect_uri=s,g._authority=i,g._client_id=o,g._response_mode=l,g._client_secret=f,g._scope=h,g._extraTokenParams=d,g._skipUserInfo=p,g}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toStorageString=function(){return o.Log.debug("SigninState.toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,nonce:this.nonce,code_verifier:this.code_verifier,redirect_uri:this.redirect_uri,authority:this.authority,client_id:this.client_id,response_mode:this.response_mode,client_secret:this.client_secret,scope:this.scope,extraTokenParams:this.extraTokenParams,skipUserInfo:this.skipUserInfo})},e.fromStorageString=function(t){return o.Log.debug("SigninState.fromStorageString"),new e(JSON.parse(t))},i(e,[{key:"nonce",get:function(){return this._nonce}},{key:"authority",get:function(){return this._authority}},{key:"client_id",get:function(){return this._client_id}},{key:"redirect_uri",get:function(){return this._redirect_uri}},{key:"code_verifier",get:function(){return this._code_verifier}},{key:"code_challenge",get:function(){return this._code_challenge}},{key:"response_mode",get:function(){return this._response_mode}},{key:"client_secret",get:function(){return this._client_secret}},{key:"scope",get:function(){return this._scope}},{key:"extraTokenParams",get:function(){return this._extraTokenParams}},{key:"skipUserInfo",get:function(){return this._skipUserInfo}}]),e}(s.State)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return("undefined"!=n&&null!==n&&void 0!==n.getRandomValues?function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(t){return(t^n.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)})}:function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(t){return(t^16*Math.random()>>t/4).toString(16)})})().replace(/-/g,"")};var n="u">typeof window?window.crypto||window.msCrypto:null;t.exports=e.default},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.User=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0);e.User=function(){function t(e){var r=e.id_token,n=e.session_state,i=e.access_token,o=e.refresh_token,s=e.token_type,a=e.scope,u=e.profile,c=e.expires_at,l=e.state;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this.id_token=r,this.session_state=n,this.access_token=i,this.refresh_token=o,this.token_type=s,this.scope=a,this.profile=u,this.expires_at=c,this.state=l}return t.prototype.toStorageString=function(){return i.Log.debug("User.toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})},t.fromStorageString=function(e){return i.Log.debug("User.fromStorageString"),new t(JSON.parse(e))},n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var r=parseInt(Date.now()/1e3);this.expires_at=r+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessTokenEvents=void 0;var n=r(0),i=r(46);e.AccessTokenEvents=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.accessTokenExpiringNotificationTime,n=e.accessTokenExpiringTimer,o=void 0===n?new i.Timer("Access token expiring"):n,s=e.accessTokenExpiredTimer,a=void 0===s?new i.Timer("Access token expired"):s;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),this._accessTokenExpiringNotificationTime=void 0===r?60:r,this._accessTokenExpiring=o,this._accessTokenExpired=a}return t.prototype.load=function(t){if(t.access_token&&void 0!==t.expires_in){var e=t.expires_in;if(n.Log.debug("AccessTokenEvents.load: access token present, remaining duration:",e),e>0){var r=e-this._accessTokenExpiringNotificationTime;r<=0&&(r=1),n.Log.debug("AccessTokenEvents.load: registering expiring timer in:",r),this._accessTokenExpiring.init(r)}else n.Log.debug("AccessTokenEvents.load: canceling existing expiring timer becase we're past expiration."),this._accessTokenExpiring.cancel();var i=e+1;n.Log.debug("AccessTokenEvents.load: registering expired timer in:",i),this._accessTokenExpired.init(i)}else this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.unload=function(){n.Log.debug("AccessTokenEvents.unload: canceling existing access token timers"),this._accessTokenExpiring.cancel(),this._accessTokenExpired.cancel()},t.prototype.addAccessTokenExpiring=function(t){this._accessTokenExpiring.addHandler(t)},t.prototype.removeAccessTokenExpiring=function(t){this._accessTokenExpiring.removeHandler(t)},t.prototype.addAccessTokenExpired=function(t){this._accessTokenExpired.addHandler(t)},t.prototype.removeAccessTokenExpired=function(t){this._accessTokenExpired.removeHandler(t)},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var n=r(0);e.Event=function(){function t(e){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._callbacks=[]}return t.prototype.addHandler=function(t){this._callbacks.push(t)},t.prototype.removeHandler=function(t){var e=this._callbacks.findIndex(function(e){return e===t});e>=0&&this._callbacks.splice(e,1)},t.prototype.raise=function(){n.Log.debug("Event: Raising event: "+this._name);for(var t,e=0;e<this._callbacks.length;e++)(t=this._callbacks)[e].apply(t,arguments)},t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.SessionMonitor=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0),o=r(19),s=r(1);e.SessionMonitor=function(){function t(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.CheckSessionIFrame,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.Global.timer;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),!e)throw i.Log.error("SessionMonitor.ctor: No user manager passed to SessionMonitor"),Error("userManager");this._userManager=e,this._CheckSessionIFrameCtor=n,this._timer=a,this._userManager.events.addUserLoaded(this._start.bind(this)),this._userManager.events.addUserUnloaded(this._stop.bind(this)),Promise.resolve(this._userManager.getUser().then(function(t){t?r._start(t):r._settings.monitorAnonymousSession&&r._userManager.querySessionStatus().then(function(t){var e={session_state:t.session_state};t.sub&&t.sid&&(e.profile={sub:t.sub,sid:t.sid}),r._start(e)}).catch(function(t){i.Log.error("SessionMonitor ctor: error from querySessionStatus:",t.message)})}).catch(function(t){i.Log.error("SessionMonitor ctor: error from getUser:",t.message)}))}return t.prototype._start=function(t){var e=this,r=t.session_state;r&&(t.profile?(this._sub=t.profile.sub,this._sid=t.profile.sid,i.Log.debug("SessionMonitor._start: session_state:",r,", sub:",this._sub)):(this._sub=void 0,this._sid=void 0,i.Log.debug("SessionMonitor._start: session_state:",r,", anonymous user")),this._checkSessionIFrame?this._checkSessionIFrame.start(r):this._metadataService.getCheckSessionIframe().then(function(t){if(t){i.Log.debug("SessionMonitor._start: Initializing check session iframe");var n=e._client_id,o=e._checkSessionInterval,s=e._stopCheckSessionOnError;e._checkSessionIFrame=new e._CheckSessionIFrameCtor(e._callback.bind(e),n,t,o,s),e._checkSessionIFrame.load().then(function(){e._checkSessionIFrame.start(r)})}else i.Log.warn("SessionMonitor._start: No check session iframe found in the metadata")}).catch(function(t){i.Log.error("SessionMonitor._start: Error from getCheckSessionIframe:",t.message)}))},t.prototype._stop=function(){var t=this;if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&(i.Log.debug("SessionMonitor._stop"),this._checkSessionIFrame.stop()),this._settings.monitorAnonymousSession)var e=this._timer.setInterval(function(){t._timer.clearInterval(e),t._userManager.querySessionStatus().then(function(e){var r={session_state:e.session_state};e.sub&&e.sid&&(r.profile={sub:e.sub,sid:e.sid}),t._start(r)}).catch(function(t){i.Log.error("SessionMonitor: error from querySessionStatus:",t.message)})},1e3)},t.prototype._callback=function(){var t=this;this._userManager.querySessionStatus().then(function(e){var r=!0;e?e.sub===t._sub?(r=!1,t._checkSessionIFrame.start(e.session_state),e.sid===t._sid?i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",e.session_state):(i.Log.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",e.session_state),t._userManager.events._raiseUserSessionChanged())):i.Log.debug("SessionMonitor._callback: Different subject signed into OP:",e.sub):i.Log.debug("SessionMonitor._callback: Subject no longer signed into OP"),r&&(t._sub?(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed out event"),t._userManager.events._raiseUserSignedOut()):(i.Log.debug("SessionMonitor._callback: SessionMonitor._callback; raising signed in event"),t._userManager.events._raiseUserSignedIn()))}).catch(function(e){t._sub&&(i.Log.debug("SessionMonitor._callback: Error calling queryCurrentSigninSession; raising signed out event",e.message),t._userManager.events._raiseUserSignedOut())})},n(t,[{key:"_settings",get:function(){return this._userManager.settings}},{key:"_metadataService",get:function(){return this._userManager.metadataService}},{key:"_client_id",get:function(){return this._settings.client_id}},{key:"_checkSessionInterval",get:function(){return this._settings.checkSessionInterval}},{key:"_stopCheckSessionOnError",get:function(){return this._settings.stopCheckSessionOnError}}]),t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.CheckSessionIFrame=void 0;var n=r(0);e.CheckSessionIFrame=function(){function t(e,r,n,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t),this._callback=e,this._client_id=r,this._url=n,this._interval=i||2e3,this._stopOnError=o;var s=n.indexOf("/",n.indexOf("//")+2);this._frame_origin=n.substr(0,s),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.width=0,this._frame.height=0,this._frame.src=n}return t.prototype.load=function(){var t=this;return new Promise(function(e){t._frame.onload=function(){e()},window.document.body.appendChild(t._frame),t._boundMessageEvent=t._message.bind(t),window.addEventListener("message",t._boundMessageEvent,!1)})},t.prototype._message=function(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&("error"===t.data?(n.Log.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===t.data?(n.Log.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):n.Log.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))},t.prototype.start=function(t){var e=this;if(this._session_state!==t){n.Log.debug("CheckSessionIFrame.start"),this.stop(),this._session_state=t;var r=function(){e._frame.contentWindow.postMessage(e._client_id+" "+e._session_state,e._frame_origin)};r(),this._timer=window.setInterval(r,this._interval)}},t.prototype.stop=function(){this._session_state=null,this._timer&&(n.Log.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenRevocationClient=void 0;var n=r(0),i=r(2),o=r(1);e.TokenRevocationClient=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.XMLHttpRequest,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),!e)throw n.Log.error("TokenRevocationClient.ctor: No settings provided"),Error("No settings provided.");this._settings=e,this._XMLHttpRequestCtor=r,this._metadataService=new s(this._settings)}return t.prototype.revoke=function(t,e){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"access_token";if(!t)throw n.Log.error("TokenRevocationClient.revoke: No token provided"),Error("No token provided.");if("access_token"!==i&&"refresh_token"!=i)throw n.Log.error("TokenRevocationClient.revoke: Invalid token type"),Error("Invalid token type.");return this._metadataService.getRevocationEndpoint().then(function(o){if(o){n.Log.debug("TokenRevocationClient.revoke: Revoking "+i);var s=r._settings.client_id,a=r._settings.client_secret;return r._revoke(o,s,a,t,i)}if(e)throw n.Log.error("TokenRevocationClient.revoke: Revocation not supported"),Error("Revocation not supported")})},t.prototype._revoke=function(t,e,r,i,o){var s=this;return new Promise(function(a,u){var c=new s._XMLHttpRequestCtor;c.open("POST",t),c.onload=function(){n.Log.debug("TokenRevocationClient.revoke: HTTP response received, status",c.status),200===c.status?a():u(Error(c.statusText+" ("+c.status+")"))},c.onerror=function(){n.Log.debug("TokenRevocationClient.revoke: Network Error."),u("Network Error")};var l="client_id="+encodeURIComponent(e);r&&(l+="&client_secret="+encodeURIComponent(r)),l+="&token_type_hint="+encodeURIComponent(o)+"&token="+encodeURIComponent(i),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),c.send(l)})},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupWindow=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0);e.CordovaPopupWindow=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this._promise=new Promise(function(t,e){r._resolve=t,r._reject=e}),this.features=e.popupWindowFeatures||"location=no,toolbar=no,zoom=no",this.target=e.popupWindowTarget||"_blank",this.redirect_uri=e.startUrl,i.Log.debug("CordovaPopupWindow.ctor: redirect_uri: "+this.redirect_uri)}return t.prototype._isInAppBrowserInstalled=function(t){return["cordova-plugin-inappbrowser","cordova-plugin-inappbrowser.inappbrowser","org.apache.cordova.inappbrowser"].some(function(e){return t.hasOwnProperty(e)})},t.prototype.navigate=function(t){if(t&&t.url){if(!window.cordova)return this._error("cordova is undefined");var e=window.cordova.require("cordova/plugin_list").metadata;if(!1===this._isInAppBrowserInstalled(e))return this._error("InAppBrowser plugin not found");this._popup=cordova.InAppBrowser.open(t.url,this.target,this.features),this._popup?(i.Log.debug("CordovaPopupWindow.navigate: popup successfully created"),this._exitCallbackEvent=this._exitCallback.bind(this),this._loadStartCallbackEvent=this._loadStartCallback.bind(this),this._popup.addEventListener("exit",this._exitCallbackEvent,!1),this._popup.addEventListener("loadstart",this._loadStartCallbackEvent,!1)):this._error("Error opening popup window")}else this._error("No url provided");return this.promise},t.prototype._loadStartCallback=function(t){0===t.url.indexOf(this.redirect_uri)&&this._success({url:t.url})},t.prototype._exitCallback=function(t){this._error(t)},t.prototype._success=function(t){this._cleanup(),i.Log.debug("CordovaPopupWindow: Successful response from cordova popup window"),this._resolve(t)},t.prototype._error=function(t){this._cleanup(),i.Log.error(t),this._reject(Error(t))},t.prototype.close=function(){this._cleanup()},t.prototype._cleanup=function(){this._popup&&(i.Log.debug("CordovaPopupWindow: cleaning up popup"),this._popup.removeEventListener("exit",this._exitCallbackEvent,!1),this._popup.removeEventListener("loadstart",this._loadStartCallbackEvent,!1),this._popup.close()),this._popup=null},n(t,[{key:"promise",get:function(){return this._promise}}]),t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),i=r(10),o=r(5),s=r(6),a=r(37),u=r(38),c=r(16),l=r(2),f=r(48),h=r(49),d=r(19),p=r(20),g=r(18),v=r(1),m=r(15);e.default={Version:r(50).Version,Log:n.Log,OidcClient:i.OidcClient,OidcClientSettings:o.OidcClientSettings,WebStorageStateStore:s.WebStorageStateStore,InMemoryWebStorage:a.InMemoryWebStorage,UserManager:u.UserManager,AccessTokenEvents:c.AccessTokenEvents,MetadataService:l.MetadataService,CordovaPopupNavigator:f.CordovaPopupNavigator,CordovaIFrameNavigator:h.CordovaIFrameNavigator,CheckSessionIFrame:d.CheckSessionIFrame,TokenRevocationClient:p.TokenRevocationClient,SessionMonitor:g.SessionMonitor,Global:v.Global,User:m.User},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClockService=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t.prototype.getEpochTime=function(){return Promise.resolve(Date.now()/1e3|0)},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResponseValidator=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(0),o=r(2),s=r(25),a=r(11),u=r(12),c=r(4),l=["nonce","at_hash","iat","nbf","exp","aud","iss","c_hash"];e.ResponseValidator=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.MetadataService,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.UserInfoService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c.JoseUtil,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:a.TokenClient;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),!e)throw i.Log.error("ResponseValidator.ctor: No settings passed to ResponseValidator"),Error("settings");this._settings=e,this._metadataService=new r(this._settings),this._userInfoService=new n(this._settings),this._joseUtil=u,this._tokenClient=new l(this._settings)}return t.prototype.validateSigninResponse=function(t,e){var r=this;return i.Log.debug("ResponseValidator.validateSigninResponse"),this._processSigninParams(t,e).then(function(e){return i.Log.debug("ResponseValidator.validateSigninResponse: state processed"),r._validateTokens(t,e).then(function(e){return i.Log.debug("ResponseValidator.validateSigninResponse: tokens validated"),r._processClaims(t,e).then(function(t){return i.Log.debug("ResponseValidator.validateSigninResponse: claims processed"),t})})})},t.prototype.validateSignoutResponse=function(t,e){return t.id!==e.state?(i.Log.error("ResponseValidator.validateSignoutResponse: State does not match"),Promise.reject(Error("State does not match"))):(i.Log.debug("ResponseValidator.validateSignoutResponse: state validated"),e.state=t.data,e.error?(i.Log.warn("ResponseValidator.validateSignoutResponse: Response was error",e.error),Promise.reject(new u.ErrorResponse(e))):Promise.resolve(e))},t.prototype._processSigninParams=function(t,e){if(t.id!==e.state)return i.Log.error("ResponseValidator._processSigninParams: State does not match"),Promise.reject(Error("State does not match"));if(!t.client_id)return i.Log.error("ResponseValidator._processSigninParams: No client_id on state"),Promise.reject(Error("No client_id on state"));if(!t.authority)return i.Log.error("ResponseValidator._processSigninParams: No authority on state"),Promise.reject(Error("No authority on state"));if(this._settings.authority){if(this._settings.authority&&this._settings.authority!==t.authority)return i.Log.error("ResponseValidator._processSigninParams: authority mismatch on settings vs. signin state"),Promise.reject(Error("authority mismatch on settings vs. signin state"))}else this._settings.authority=t.authority;if(this._settings.client_id){if(this._settings.client_id&&this._settings.client_id!==t.client_id)return i.Log.error("ResponseValidator._processSigninParams: client_id mismatch on settings vs. signin state"),Promise.reject(Error("client_id mismatch on settings vs. signin state"))}else this._settings.client_id=t.client_id;return i.Log.debug("ResponseValidator._processSigninParams: state validated"),e.state=t.data,e.error?(i.Log.warn("ResponseValidator._processSigninParams: Response was error",e.error),Promise.reject(new u.ErrorResponse(e))):t.nonce&&!e.id_token?(i.Log.error("ResponseValidator._processSigninParams: Expecting id_token in response"),Promise.reject(Error("No id_token in response"))):!t.nonce&&e.id_token?(i.Log.error("ResponseValidator._processSigninParams: Not expecting id_token in response"),Promise.reject(Error("Unexpected id_token in response"))):t.code_verifier&&!e.code?(i.Log.error("ResponseValidator._processSigninParams: Expecting code in response"),Promise.reject(Error("No code in response"))):!t.code_verifier&&e.code?(i.Log.error("ResponseValidator._processSigninParams: Not expecting code in response"),Promise.reject(Error("Unexpected code in response"))):(e.scope||(e.scope=t.scope),Promise.resolve(e))},t.prototype._processClaims=function(t,e){var r=this;if(e.isOpenIdConnect){if(i.Log.debug("ResponseValidator._processClaims: response is OIDC, processing claims"),e.profile=this._filterProtocolClaims(e.profile),!0!==t.skipUserInfo&&this._settings.loadUserInfo&&e.access_token)return i.Log.debug("ResponseValidator._processClaims: loading user info"),this._userInfoService.getClaims(e.access_token).then(function(t){return i.Log.debug("ResponseValidator._processClaims: user info claims received from user info endpoint"),t.sub!==e.profile.sub?(i.Log.error("ResponseValidator._processClaims: sub from user info endpoint does not match sub in id_token"),Promise.reject(Error("sub from user info endpoint does not match sub in id_token"))):(e.profile=r._mergeClaims(e.profile,t),i.Log.debug("ResponseValidator._processClaims: user info claims received, updated profile:",e.profile),e)});i.Log.debug("ResponseValidator._processClaims: not loading user info")}else i.Log.debug("ResponseValidator._processClaims: response is not OIDC, not processing claims");return Promise.resolve(e)},t.prototype._mergeClaims=function(t,e){var r=Object.assign({},t);for(var i in e){var o=e[i];Array.isArray(o)||(o=[o]);for(var s=0;s<o.length;s++){var a=o[s];r[i]?Array.isArray(r[i])?0>r[i].indexOf(a)&&r[i].push(a):r[i]!==a&&("object"===(void 0===a?"undefined":n(a))&&this._settings.mergeClaims?r[i]=this._mergeClaims(r[i],a):r[i]=[r[i],a]):r[i]=a}}return r},t.prototype._filterProtocolClaims=function(t){i.Log.debug("ResponseValidator._filterProtocolClaims, incoming claims:",t);var e=Object.assign({},t);return this._settings._filterProtocolClaims?(l.forEach(function(t){delete e[t]}),i.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims filtered",e)):i.Log.debug("ResponseValidator._filterProtocolClaims: protocol claims not filtered"),e},t.prototype._validateTokens=function(t,e){return e.code?(i.Log.debug("ResponseValidator._validateTokens: Validating code"),this._processCode(t,e)):e.id_token?e.access_token?(i.Log.debug("ResponseValidator._validateTokens: Validating id_token and access_token"),this._val
1idateIdTokenAndAccessToken(t,e)):(i.Log.debug("ResponseValidator._validateTokens: Validating id_token"),this._validateIdToken(t,e)):(i.Log.debug("ResponseValidator._validateTokens: No code to process or id_token to validate"),Promise.resolve(e))},t.prototype._processCode=function(t,e){var r=this,o={client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier};return t.extraTokenParams&&"object"===n(t.extraTokenParams)&&Object.assign(o,t.extraTokenParams),this._tokenClient.exchangeCode(o).then(function(n){for(var o in n)e[o]=n[o];return e.id_token?(i.Log.debug("ResponseValidator._processCode: token response successful, processing id_token"),r._validateIdTokenAttributes(t,e)):(i.Log.debug("ResponseValidator._processCode: token response successful, returning response"),e)})},t.prototype._validateIdTokenAttributes=function(t,e){var r=this;return this._metadataService.getIssuer().then(function(n){var o=t.client_id,s=r._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdTokenAttributes: Validaing JWT attributes; using clock skew (in seconds) of: ",s),r._settings.getEpochTime().then(function(a){return r._joseUtil.validateJwtAttributes(e.id_token,n,o,s,a).then(function(r){return t.nonce&&t.nonce!==r.nonce?(i.Log.error("ResponseValidator._validateIdTokenAttributes: Invalid nonce in id_token"),Promise.reject(Error("Invalid nonce in id_token"))):r.sub?(e.profile=r,e):(i.Log.error("ResponseValidator._validateIdTokenAttributes: No sub present in id_token"),Promise.reject(Error("No sub present in id_token")))})})})},t.prototype._validateIdTokenAndAccessToken=function(t,e){var r=this;return this._validateIdToken(t,e).then(function(t){return r._validateAccessToken(t)})},t.prototype._getSigningKeyForJwt=function(t){var e=this;return this._metadataService.getSigningKeys().then(function(r){var n=t.header.kid;if(!r)return i.Log.error("ResponseValidator._validateIdToken: No signing keys from metadata"),Promise.reject(Error("No signing keys from metadata"));i.Log.debug("ResponseValidator._validateIdToken: Received signing keys");var o=void 0;if(n)o=r.filter(function(t){return t.kid===n})[0];else{if((r=e._filterByAlg(r,t.header.alg)).length>1)return i.Log.error("ResponseValidator._validateIdToken: No kid found in id_token and more than one key found in metadata"),Promise.reject(Error("No kid found in id_token and more than one key found in metadata"));o=r[0]}return Promise.resolve(o)})},t.prototype._getSigningKeyForJwtWithSingleRetry=function(t){var e=this;return this._getSigningKeyForJwt(t).then(function(r){return r?Promise.resolve(r):(e._metadataService.resetSigningKeys(),e._getSigningKeyForJwt(t))})},t.prototype._validateIdToken=function(t,e){var r=this;if(!t.nonce)return i.Log.error("ResponseValidator._validateIdToken: No nonce on state"),Promise.reject(Error("No nonce on state"));var n=this._joseUtil.parseJwt(e.id_token);return n&&n.header&&n.payload?t.nonce!==n.payload.nonce?(i.Log.error("ResponseValidator._validateIdToken: Invalid nonce in id_token"),Promise.reject(Error("Invalid nonce in id_token"))):this._metadataService.getIssuer().then(function(o){return i.Log.debug("ResponseValidator._validateIdToken: Received issuer"),r._getSigningKeyForJwtWithSingleRetry(n).then(function(s){if(!s)return i.Log.error("ResponseValidator._validateIdToken: No key matching kid or alg found in signing keys"),Promise.reject(Error("No key matching kid or alg found in signing keys"));var a=t.client_id,u=r._settings.clockSkew;return i.Log.debug("ResponseValidator._validateIdToken: Validaing JWT; using clock skew (in seconds) of: ",u),r._joseUtil.validateJwt(e.id_token,s,o,a,u).then(function(){return i.Log.debug("ResponseValidator._validateIdToken: JWT validation successful"),n.payload.sub?(e.profile=n.payload,e):(i.Log.error("ResponseValidator._validateIdToken: No sub present in id_token"),Promise.reject(Error("No sub present in id_token")))})})}):(i.Log.error("ResponseValidator._validateIdToken: Failed to parse id_token",n),Promise.reject(Error("Failed to parse id_token")))},t.prototype._filterByAlg=function(t,e){var r=null;if(e.startsWith("RS"))r="RSA";else if(e.startsWith("PS"))r="PS";else{if(!e.startsWith("ES"))return i.Log.debug("ResponseValidator._filterByAlg: alg not supported: ",e),[];r="EC"}return i.Log.debug("ResponseValidator._filterByAlg: Looking for keys that match kty: ",r),t=t.filter(function(t){return t.kty===r}),i.Log.debug("ResponseValidator._filterByAlg: Number of keys that match kty: ",r,t.length),t},t.prototype._validateAccessToken=function(t){if(!t.profile)return i.Log.error("ResponseValidator._validateAccessToken: No profile loaded from id_token"),Promise.reject(Error("No profile loaded from id_token"));if(!t.profile.at_hash)return i.Log.error("ResponseValidator._validateAccessToken: No at_hash in id_token"),Promise.reject(Error("No at_hash in id_token"));if(!t.id_token)return i.Log.error("ResponseValidator._validateAccessToken: No id_token"),Promise.reject(Error("No id_token"));var e=this._joseUtil.parseJwt(t.id_token);if(!e||!e.header)return i.Log.error("ResponseValidator._validateAccessToken: Failed to parse id_token",e),Promise.reject(Error("Failed to parse id_token"));var r=e.header.alg;if(!r||5!==r.length)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",r),Promise.reject(Error("Unsupported alg: "+r));var n=r.substr(2,3);if(!n||256!==(n=parseInt(n))&&384!==n&&512!==n)return i.Log.error("ResponseValidator._validateAccessToken: Unsupported alg:",r,n),Promise.reject(Error("Unsupported alg: "+r));var o="sha"+n,s=this._joseUtil.hashString(t.access_token,o);if(!s)return i.Log.error("ResponseValidator._validateAccessToken: access_token hash failed:",o),Promise.reject(Error("Failed to validate at_hash"));var a=s.substr(0,s.length/2),u=this._joseUtil.hexToBase64Url(a);return u!==t.profile.at_hash?(i.Log.error("ResponseValidator._validateAccessToken: Failed to validate at_hash",u,t.profile.at_hash),Promise.reject(Error("Failed to validate at_hash"))):(i.Log.debug("ResponseValidator._validateAccessToken: success"),Promise.resolve(t))},t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.UserInfoService=void 0;var n=r(7),i=r(2),o=r(0),s=r(4);e.UserInfoService=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.JsonService,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.MetadataService,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.JoseUtil;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),!e)throw o.Log.error("UserInfoService.ctor: No settings passed"),Error("settings");this._settings=e,this._jsonService=new r(void 0,void 0,this._getClaimsFromJwt.bind(this)),this._metadataService=new a(this._settings),this._joseUtil=u}return t.prototype.getClaims=function(t){var e=this;return t?this._metadataService.getUserInfoEndpoint().then(function(r){return o.Log.debug("UserInfoService.getClaims: received userinfo url",r),e._jsonService.getJson(r,t).then(function(t){return o.Log.debug("UserInfoService.getClaims: claims received",t),t})}):(o.Log.error("UserInfoService.getClaims: No token passed"),Promise.reject(Error("A token is required")))},t.prototype._getClaimsFromJwt=function(t){var e=this;try{var r=this._joseUtil.parseJwt(t.responseText);if(!r||!r.header||!r.payload)return o.Log.error("UserInfoService._getClaimsFromJwt: Failed to parse JWT",r),Promise.reject(Error("Failed to parse id_token"));var n=r.header.kid,i=void 0;switch(this._settings.userInfoJwtIssuer){case"OP":i=this._metadataService.getIssuer();break;case"ANY":i=Promise.resolve(r.payload.iss);break;default:i=Promise.resolve(this._settings.userInfoJwtIssuer)}return i.then(function(i){return o.Log.debug("UserInfoService._getClaimsFromJwt: Received issuer:"+i),e._metadataService.getSigningKeys().then(function(s){if(!s)return o.Log.error("UserInfoService._getClaimsFromJwt: No signing keys from metadata"),Promise.reject(Error("No signing keys from metadata"));o.Log.debug("UserInfoService._getClaimsFromJwt: Received signing keys");var a=void 0;if(n)a=s.filter(function(t){return t.kid===n})[0];else{if((s=e._filterByAlg(s,r.header.alg)).length>1)return o.Log.error("UserInfoService._getClaimsFromJwt: No kid found in id_token and more than one key found in metadata"),Promise.reject(Error("No kid found in id_token and more than one key found in metadata"));a=s[0]}if(!a)return o.Log.error("UserInfoService._getClaimsFromJwt: No key matching kid or alg found in signing keys"),Promise.reject(Error("No key matching kid or alg found in signing keys"));var u=e._settings.client_id,c=e._settings.clockSkew;return o.Log.debug("UserInfoService._getClaimsFromJwt: Validaing JWT; using clock skew (in seconds) of: ",c),e._joseUtil.validateJwt(t.responseText,a,i,u,c,void 0,!0).then(function(){return o.Log.debug("UserInfoService._getClaimsFromJwt: JWT validation successful"),r.payload})})})}catch(t){return o.Log.error("UserInfoService._getClaimsFromJwt: Error parsing JWT response",t.message),void reject(t)}},t.prototype._filterByAlg=function(t,e){var r=null;if(e.startsWith("RS"))r="RSA";else if(e.startsWith("PS"))r="PS";else{if(!e.startsWith("ES"))return o.Log.debug("UserInfoService._filterByAlg: alg not supported: ",e),[];r="EC"}return o.Log.debug("UserInfoService._filterByAlg: Looking for keys that match kty: ",r),t=t.filter(function(t){return t.kty===r}),o.Log.debug("UserInfoService._filterByAlg: Number of keys that match kty: ",r,t.length),t},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllowedSigningAlgs=e.b64tohex=e.hextob64u=e.crypto=e.X509=e.KeyUtil=e.jws=void 0;var n=r(27);e.jws=n.jws,e.KeyUtil=n.KEYUTIL,e.X509=n.X509,e.crypto=n.crypto,e.hextob64u=n.hextob64u,e.b64tohex=n.b64tohex,e.AllowedSigningAlgs=["RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"]},function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r,n,i,o,s,a,u,c,l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f={userAgent:!1},h={};if(void 0===d)var d={};d.lang={extend:function(t,e,r){if(!e||!t)throw Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),r){for(i in r)t.prototype[i]=r[i];var i,o=function(){},s=["toString","valueOf"];try{/MSIE/.test(f.userAgent)&&(o=function(t,e){for(i=0;i<s.length;i+=1){var r=s[i],n=e[r];"function"==typeof n&&n!=Object.prototype[r]&&(t[r]=n)}})}catch(t){}o(t.prototype,r)}}};var p,g,v,m,y,b,_,S,x,F,w,E=E||(p=Math,m=(v=(g={}).lib={}).Base=function(){function t(){}return{extend:function(e){t.prototype=this;var r=new t;return e&&r.mixIn(e),r.hasOwnProperty("init")||(r.init=function(){r.$super.init.a
vendor: 3,166 bytes, line 1
1pply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=v.WordArray=m.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||_).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)e[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=0xffffffff<<32-e%4*8,t.length=p.ceil(e/4)},clone:function(){var t=m.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(0x100000000*p.random()|0);return new y.init(e,t)}}),_=(b=g.enc={}).Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new y.init(r,e/2)}},S=b.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new y.init(r,e)}},x=b.Utf8={stringify:function(t){try{return decodeURIComponent(escape(S.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return S.parse(unescape(encodeURIComponent(t)))}},F=v.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=x.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,r=e.words,n=e.sigBytes,i=this.blockSize,o=n/(4*i),s=(o=t?p.ceil(o):p.max((0|o)-this._minBufferSize,0))*i,a=p.min(4*s,n);if(s){for(var u=0;u<s;u+=i)this._doProcessBlock(r,u);var c=r.splice(0,s);e.sigBytes-=a}return new y.init(c,a)},clone:function(){var t=m.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),v.Hasher=F.extend({cfg:m.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){F.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new w.HMAC.init(t,r).finalize(e)}}}),w=g.algo={},g);P=(A=(k=E).lib).Base,C=A.WordArray,(k=k.x64={}).Word=P.extend({init:function(t,e){this.high=t,this.low=e}}),k.WordArray=P.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var i=t[n];
1r.push(i.high),r.push(i.low)}return C.create(r,this.sigBytes)},clone:function(){for(var t=P.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}}),I=E.lib.WordArray,E.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp(),t=[];for(var i=0;i<r;i+=3)for(var o=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;4>s&&i+.75*s<r;s++)t.push(n.charAt(o>>>6*(3-s)&63));if(e=n.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var e=t.length,r=this._map;(n=r.charAt(64))&&-1!=(n=t.indexOf(n))&&(e=n);for(var n=[],i=0,o=0;o<e;o++)if(o%4){var s=r.indexOf(t.charAt(o-1))<<o%4*2,a=r.indexOf(t.charAt(o))>>>6-o%4*2;n[i>>>2]|=(s|a)<<24-i%4*8,i++}return I.create(n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(t){for(var e,r=(i=E.lib).WordArray,n=i.Hasher,i=E.algo,o=[],s=[],a=function(t){return 0x100000000*(t-(0|t))|0},u=2,c=0;64>c;){t:{e=u;for(var l=t.sqrt(e),f=2;f<=l;f++)if(!(e%f)){e=!1;break t}e=!0}e&&(8>c&&(o[c]=a(t.pow(u,.5))),s[c]=a(t.pow(u,1/3)),c++),u++}var h=[];i=i.SHA256=n.extend({_doReset:function(){this._hash=new r.init(o.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],u=r[4],c=r[5],l=r[6],f=r[7],d=0;64>d;d++){if(16>d)h[d]=0|t[e+d];else{var p=h[d-15],g=h[d-2];h[d]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+h[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+h[d-16]}p=f+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&c^~u&l)+s[d]+h[d],g=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&i^n&o^i&o),f=l,l=c,c=u,u=a+p|0,a=o,o=i,i=n,n=p+g|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0,r[5]=r[5]+c|0,r[6]=r[6]+l|0,r[7]=r[7]+f|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/0x100000000),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),E.SHA256=n._createHelper(i),E.HmacSHA256=n._createHmacHelper(i)}(Math),function(){function t(){return r.create.apply(r,arguments)}for(var e=E.lib.Hasher,r=(i=E.x64).Word,n=i.WordArray,i=E.algo,o=[t(0x428a2f98,0xd728ae22),t(0x71374491,0x23ef65cd),t(0xb5c0fbcf,0xec4d3b2f),t(0xe9b5dba5,0x8189dbbc),t(0x3956c25b,0xf348b538),t(0x59f111f1,0xb605d019),t(0x923f82a4,0xaf194f9b),t(0xab1c5ed5,0xda6d8118),t(0xd807aa98,0xa3030242),t(0x12835b01,0x45706fbe),t(0x243185be,0x4ee4b28c),t(0x550c7dc3,0xd5ffb4e2),t(0x72be5d74,0xf27b896f),t(0x80deb1fe,0x3b1696b1),t(0x9bdc06a7,0x25c71235),t(0xc19bf174,0xcf692694),t(0xe49b69c1,0x9ef14ad2),t(0xefbe4786,0x384f25e3),t(0xfc19dc6,0x8b8cd5b5),t(0x240ca1cc,0x77ac9c65),t(0x2de92c6f,0x592b0275),t(0x4a7484aa,0x6ea6e483),t(0x5cb0a9dc,0xbd41fbd4),t(0x76f988da,0x831153b5),t(0x983e5152,0xee66dfab),t(0xa831c66d,0x2db43210),t(0xb00327c8,0x98fb213f),t(0xbf597fc7,0xbeef0ee4),t(0xc6e00bf3,0x3da88fc2),t(0xd5a79147,0x930aa725),t(0x6ca6351,0xe003826f),t(0x14292967,0xa0e6e70),t(0x27b70a85,0x46d22ffc),t(0x2e1b2138,0x5c26c926),t(0x4d2c6dfc,0x5ac42aed),t(0x53380d13,0x9d95b3df),t(0x650a7354,0x8baf63de),t(0x766a0abb,0x3c77b2a8),t(0x81c2c92e,0x47edaee6),t(0x92722c85,0x1482353b),t(0xa2bfe8a1,0x4cf10364),t(0xa81a664b,0xbc423001),t(0xc24b8b70,0xd0f89791),t(0xc76c51a3,0x654be30),t(0xd192e819,0xd6ef5218),t(0xd6990624,0x5565a910),t(0xf40e3585,0x5771202a),t(0x106aa070,0x32bbd1b8),t(0x19a4c116,0xb8d2d0c8),t(0x1e376c08,0x5141ab53),t(0x2748774c,0xdf8eeb99),t(0x34b0bcb5,0xe19b48a8),t(0x391c0cb3,0xc5c95a63),t(0x4ed8aa4a,0xe3418acb),t(0x5b9cca4f,0x7763e373),t(0x682e6ff3,0xd6b2b8a3),t(0x748f82ee,0x5defb2fc),t(0x78a5636f,0x43172f60),t(0x84c87814,0xa1f0ab72),t(0x8cc70208,0x1a6439ec),t(0x90befffa,0x23631e28),t(0xa4506ceb,0xde82bde9),t(0xbef9a3f7,0xb2c67915),t(0xc67178f2,0xe372532b),t(0xca273ece,0xea26619c),t(0xd186b8c7,0x21c0c207),t(0xeada7dd6,0xcde0eb1e),t(0xf57d4f7f,0xee6ed178),t(0x6f067aa,0x72176fba),t(0xa637dc5,0xa2c898a6),t(0x113f9804,0xbef90dae),t(0x1b710b35,0x131c471b),t(0x28db77f5,0x23047d84),t(0x32caab7b,0x40c72493),t(0x3c9ebe0a,0x15c9bebc),t(0x431d67c4,0x9c100d4c),t(0x4cc5d4be,0xcb3e42b6),t(0x597f299c,0xfc657e2a),t(0x5fcb6fab,0x3ad6faec),t(0x6c44198c,0x4a475817)],s=[],a=0;80>a;a++)s[a]=t();i=i.SHA512=e.extend({_doReset:function(){this._hash=new n.init([new r.init(0x6a09e66
17,0xf3bcc908),new r.init(0xbb67ae85,0x84caa73b),new r.init(0x3c6ef372,0xfe94f82b),new r.init(0xa54ff53a,0x5f1d36f1),new r.init(0x510e527f,0xade682d1),new r.init(0x9b05688c,0x2b3e6c1f),new r.init(0x1f83d9ab,0xfb41bd6b),new r.init(0x5be0cd19,0x137e2179)])},_doProcessBlock:function(t,e){for(var r=(f=this._hash.words)[0],n=f[1],i=f[2],a=f[3],u=f[4],c=f[5],l=f[6],f=f[7],h=r.high,d=r.low,p=n.high,g=n.low,v=i.high,m=i.low,y=a.high,b=a.low,_=u.high,S=u.low,x=c.high,F=c.low,w=l.high,E=l.low,k=f.high,A=f.low,P=h,C=d,I=p,T=g,R=v,j=m,N=y,O=b,L=_,D=S,M=x,U=F,B=w,H=E,V=k,K=A,z=0;80>z;z++){var q=s[z];if(16>z)var W=q.high=0|t[e+2*z],J=q.low=0|t[e+2*z+1];else{W=((J=(W=s[z-15]).high)>>>1|(Y=W.low)<<31)^(J>>>8|Y<<24)^J>>>7;var Y=(Y>>>1|J<<31)^(Y>>>8|J<<24)^(Y>>>7|J<<25),G=((J=(G=s[z-2]).high)>>>19|($=G.low)<<13)^(J<<3|$>>>29)^J>>>6,$=($>>>19|J<<13)^($<<3|J>>>29)^($>>>6|J<<26),X=(J=s[z-7]).high,Q=(Z=s[z-16]).high,Z=Z.low;W=(W=(W=W+X+ +((J=Y+J.low)>>>0<Y>>>0))+G+ +((J+=$)>>>0<$>>>0))+Q+ +((J+=Z)>>>0<Z>>>0),q.high=W,q.low=J}X=L&M^~L&B,Z=D&U^~D&H,q=P&I^P&R^I&R;var tt=C&T^C&j^T&j,te=(Y=(P>>>28|C<<4)^(P<<30|C>>>2)^(P<<25|C>>>7),G=(C>>>28|P<<4)^(C<<30|P>>>2)^(C<<25|P>>>7),($=o[z]).high),tr=$.low;Q=V+((L>>>14|D<<18)^(L>>>18|D<<14)^(L<<23|D>>>9))+ +(($=K+((D>>>14|L<<18)^(D>>>18|L<<14)^(D<<23|L>>>9)))>>>0<K>>>0),V=B,K=H,B=M,H=U,M=L,U=D,L=N+(Q=(Q=(Q=Q+X+ +(($+=Z)>>>0<Z>>>0))+te+ +(($+=tr)>>>0<tr>>>0))+W+ +(($+=J)>>>0<J>>>0))+ +((D=O+$|0)>>>0<O>>>0)|0,N=R,O=j,R=I,j=T,I=P,T=C,P=Q+(q=Y+q+ +((J=G+tt)>>>0<G>>>0))+ +((C=$+J|0)>>>0<$>>>0)|0}d=r.low=d+C,r.high=h+P+ +(d>>>0<C>>>0),g=n.low=g+T,n.high=p+I+ +(g>>>0<T>>>0),m=i.low=m+j,i.high=v+R+ +(m>>>0<j>>>0),b=a.low=b+O,a.high=y+N+ +(b>>>0<O>>>0),S=u.low=S+D,u.high=_+L+ +(S>>>0<D>>>0),F=c.low=F+U,c.high=x+M+ +(F>>>0<U>>>0),E=l.low=E+H,l.high=w+B+ +(E>>>0<H>>>0),A=f.low=A+K,f.high=k+V+ +(A>>>0<K>>>0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/0x100000000),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),E.SHA512=e._createHelper(i),E.HmacSHA512=e._createHmacHelper(i)}(),T=(N=E.x64).Word,R=N.WordArray,j=(N=E.algo).SHA512,N=N.SHA384=j.extend({_doReset:function(){this._hash=new R.init([new T.init(0xcbbb9d5d,0xc1059ed8),new T.init(0x629a292a,0x367cd507),new T.init(0x9159015a,0x3070dd17),new T.init(0x152fecd8,0xf70e5939),new T.init(0x67332667,0xffc00b31),new T.init(0x8eb44a87,0x68581511),new T.init(0xdb0c2e0d,0x64f98fa7),new T.init(0x47b5481d,0xbefa4fa4)])},_doFinalize:function(){var t=j._doFinalize.call(this);return t.sigBytes-=16,t}}),E.SHA384=j._createHelper(N),E.HmacSHA384=j._createHmacHelper(N);var k,A,P,C,I,T,R,j,N,O,L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function D(t){var e,r,n="";for(e=0;e+3<=t.length;e+=3)r=parseInt(t.substring(e,e+3),16),n+=L.charAt(r>>6)+L.charAt(63&r);for(e+1==t.length?(r=parseInt(t.substring(e,e+1),16),n+=L.charAt(r<<2)):e+2==t.length&&(r=parseInt(t.substring(e,e+2),16),n+=L.charAt(r>>2)+L.charAt((3&r)<<4));(3&n.length)>0;)n+="=";return n}function M(t){var e,r,n,i="",o=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e)(n=L.indexOf(t.charAt(e)))<0||(0==o?(i+=q(n>>2),r=3&n,o=1):1==o?(i+=q(r<<2|n>>4),r=15&n,o=2):2==o?(i+=q(r),i+=q(n>>2),r=3&n,o=3):(i+=q(r<<2|n>>4),i+=q(15&n),o=0));return 1==o&&(i+=q(r<<2)),i}function U(t){var e,r=M(t),n=[];for(e=0;2*e<r.length;++e)n[e]=parseInt(r.substring(2*e,2*e+2),16);return n}function B(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function H(){return new B(null)}"Microsoft Internet Explorer"==f.appName?(B.prototype.am=function(t,e,r,n,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,l=a*u+c*s;i=((u=s*u+((32767&l)<<15)+r[n]+(0x3fffffff&i))>>>30)+(l>>>15)+a*c+(i>>>30),r[n++]=0x3fffffff&u}return i},O=30):"Netscape"!=f.appName?(B.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/0x4000000),r[n++]=0x3ffffff&s}return i},O=26):(B.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,l=a*u+c*s;
vendor: 14,214 bytes, line 1
1i=((u=s*u+((16383&l)<<14)+r[n]+i)>>28)+(l>>14)+a*c,r[n++]=0xfffffff&u}return i},O=28),B.prototype.DB=O,B.prototype.DM=(1<<O)-1,B.prototype.DV=1<<O,B.prototype.FV=0x10000000000000,B.prototype.F1=52-O,B.prototype.F2=2*O-52;var V,K,z=[];for(V=48,K=0;K<=9;++K)z[V++]=K;for(V=97,K=10;K<36;++K)z[V++]=K;for(V=65,K=10;K<36;++K)z[V++]=K;function q(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function W(t,e){var r=z[t.charCodeAt(e)];return null==r?-1:r}function J(t){var e=H();return e.fromInt(t),e}function Y(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function G(t){this.m=t}function $(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function X(t,e){return t&e}function Q(t,e){return t|e}function Z(t,e){return t^e}function tt(t,e){return t&~e}function te(){}function tr(t){return t}function tn(t){this.r2=H(),this.q3=H(),B.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}G.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},G.prototype.revert=function(t){return t},G.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},G.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},G.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},$.prototype.convert=function(t){var e=H();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(B.ZERO)>0&&this.m.subTo(e,e),e},$.prototype.revert=function(t){var e=H();return t.copyTo(e),this.reduce(e),e},$.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},$.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},$.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},B.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},B.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},B.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var n=t.length,i=!1,o=0;--n>=0;){var s=8==r?255&t[n]:W(t,n);s<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&t[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&B.ZERO.subTo(this,this)},B.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},B.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},B.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},B.prototype.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)e[r]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},B.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},B.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},B.prototype.multiplyTo=function(t,e){var r=this.abs(),n=t.abs(),i=r.t;for(e.t=i+n.t;--i>=0;)e[i]=0;for(i=0;i<n.t;++i)e[i+r.t]=r.am(0,n[i],e,i,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&B.ZERO.subTo(e,e)},B.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},B.prototype.divRemTo=function(t,e,r){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=e&&e.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=H());var o=H(),s=this.s,a=t.s,u=this.DB-Y(n[n.t-1]);u>0?(n.lShiftTo(u,o),i.lShiftTo(u,r)):(n.copyTo(o),i.copyTo(r));var c=o.t,l=o[c-1];if(0!=l){var f=l*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),h=this.FV/f,d=(1<<this.F1)/f,p=1<<this.F2,g=r.t,v=g-c,m=null==e?H():e;for(o.dlShiftTo(v,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),B.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--v>=0;){var y=r[--g]==l?this.DM:Math.floor(r[g]*h+(r[g-1]+p)*d);if((r[g]+=o.am(0,y,r,v,0,c))<y)for(o.dlShiftTo(v,m),r.subTo(m,r);r[g]<--y;)r.subTo(m,r)}null!=e&&(r.drShiftTo(c,e),s!=a&&B.ZERO.subTo(e,e)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),s<0&&B.ZERO.subTo(r,r)}}},B.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},B.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},B.prototype.exp=function(t,e){if(t>0xffffffff||t<1)return B.ONE;var r=H(),n=H(),i=e.convert(this),o=Y(t)-1;for(i.copyTo(r);--o>=0;)if(e.sqrTo(r,n),(t&1<<o)>0)e.mulTo(n,i,r);else{var s=r;r=n,n=s}return e.revert(r)},B.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var e,r,n=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,o=q(r));s>=0;)a<e?r=(this[s]&(1<<a)-1)<<e-a|this[--s]>>(a+=this.DB-e):(r=this[s]>>(a-=e)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=q(r));return i?o:"0"},B.prototype.negate=function(){var t=H();return B.ZERO.subTo(this,t),t},B.prototype.abs=function(){return this.s<0?this.negate():this},B.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},B.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Y(this[this.t-1]^this.s&this.DM)},B.prototype.mod=function(t){var e=H();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(B.ZERO)>0&&t.subTo(e,e),e},B.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new G(e):new $(e),this.exp(t,r)},B.ZERO=J(0),B.ONE=J(1),te.prototype.convert=tr,te.prototype.revert=tr,te.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},te.prototype.sqrTo=function(t,e){t.squareTo(e)},tn.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(0>t.compareTo(this.m))return t;var e=H();return t.copyTo(e),this.reduce(e),e},tn.prototype.revert=function(t){return t},tn.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);0>t.compareTo(this.r2);)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},tn.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},tn.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var ti=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],to=0x4000000/ti[ti.length-1];function ts(){this.i=0,this.j=0,this.S=[]}function ta(){var t;t=(new Date).getTime(),t_[tS++]^=255&t,t_[tS++]^=t>>8&255,t_[tS++]^=t>>16&255,t_[tS++]^=t>>24&255,tS>=256&&(tS-=256)}if(B.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},B.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),n=J(r),i=H(),o=H(),s="";for(this.divRemTo(n,i,o);i.signum()>0;)s=(r+o.intValue()).toString(t).substr(1)+s,i.divRemTo(n,i,o);return o.intValue().toString(t)+s},B.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),n=Math.pow(e,r),i=!1,o=0,s=0,a=0;a<t.length;++a){var u=W(t,a);u<0?"-"==t.charAt(a)&&0==this.signum()&&(i=!0):(s=e*s+u,++o>=r&&(this.dMultiply(n),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(e,o)),this.dAddOffset(s,0)),i&&B.ZERO.subTo(this,this)},B.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(B.ONE.shiftLeft(t-1),Q,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(B.ONE.shiftLeft(t-1),this);else{var n=[],i=7&t;n.length=1+(t>>3),e.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},B.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},B.prototype.changeBit=function(t,e){var r=B.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},B.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},B.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},B.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},B.prototype.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},B.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},B.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},B.prototype.millerRabin=function(t){var e=this.subtract(B.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var n=e.shiftRight(r);(t=t+1>>1)>ti.length&&(t=ti.length);for(var i=H(),o=0;o<t;++o){i.fromInt(ti[Math.floor(Math.random()*ti.length)]);var s=i.modPow(n,this);if(0!=s.compareTo(B.ONE)&&0!=s.compareTo(e)){for(var a=1;a++<r&&0!=s.compareTo(e);)if(0==(s=s.modPowInt(2,this)).compareTo(B.ONE))return!1;if(0!=s.compareTo(e))return!1}}return!0},B.prototype.clone=function(){var t=H();return this.copyTo(t),t},B.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return -1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},B.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},B.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},B.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},B.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?r=(this[t]&(1<<n)-1)<<8-n|this[--t]>>(n+=this.DB-8):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},B.prototype.equals=function(t){return 0==this.compareTo(t)},B.prototype.min=function(t){return 0>this.compareTo(t)?this:t},B.prototype.max=function(t){return this.compareTo(t)>0?this:t},B.prototype.and=function(t){var e=H();return this.bitwiseTo(t,X,e),e},B.prototype.or=function(t){var e=H();return this.bitwiseTo(t,Q,e),e},B.prototype.xor=function(t){var e=H();return this.bitwiseTo(t,Z,e),e},B.prototype.andNot=function(t){var e=H();return this.bitwiseTo(t,tt,e),e},B.prototype.not=function(){for(var t=H(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},B.prototype.shiftLeft=function(t){var e=H();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},B.prototype.shiftRight=function(t){var e=H();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},B.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+function(t){if(0==t)return -1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}(this[t]);return this.s<0?this.t*this.DB:-1},B.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=function(t){for(var e=0;0!=t;)t&=t-1,++e;return e}(this[r]^e);return t},B.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},B.prototype.setBit=function(t){return this.changeBit(t,Q)},B.prototype.clearBit=function(t){return this.changeBit(t,tt)}
vendor: 12,749 bytes, line 1
1,B.prototype.flipBit=function(t){return this.changeBit(t,Z)},B.prototype.add=function(t){var e=H();return this.addTo(t,e),e},B.prototype.subtract=function(t){var e=H();return this.subTo(t,e),e},B.prototype.multiply=function(t){var e=H();return this.multiplyTo(t,e),e},B.prototype.divide=function(t){var e=H();return this.divRemTo(t,e,null),e},B.prototype.remainder=function(t){var e=H();return this.divRemTo(t,null,e),e},B.prototype.divideAndRemainder=function(t){var e=H(),r=H();return this.divRemTo(t,e,r),[e,r]},B.prototype.modPow=function(t,e){var r,n,i=t.bitLength(),o=J(1);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6,n=i<8?new G(e):e.isEven()?new tn(e):new $(e);var s=[],a=3,u=r-1,c=(1<<r)-1;if(s[1]=n.convert(this),r>1){var l=H();for(n.sqrTo(s[1],l);a<=c;)s[a]=H(),n.mulTo(l,s[a-2],s[a]),a+=2}var f,h,d=t.t-1,p=!0,g=H();for(i=Y(t[d])-1;d>=0;){for(i>=u?f=t[d]>>i-u&c:(f=(t[d]&(1<<i+1)-1)<<u-i,d>0&&(f|=t[d-1]>>this.DB+i-u)),a=r;0==(1&f);)f>>=1,--a;if((i-=a)<0&&(i+=this.DB,--d),p)s[f].copyTo(o),p=!1;else{for(;a>1;)n.sqrTo(o,g),n.sqrTo(g,o),a-=2;a>0?n.sqrTo(o,g):(h=o,o=g,g=h),n.mulTo(g,s[f],o)}for(;d>=0&&0==(t[d]&1<<i);)n.sqrTo(o,g),h=o,o=g,g=h,--i<0&&(i=this.DB-1,--d)}return n.revert(o)},B.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return B.ZERO;for(var r=t.clone(),n=this.clone(),i=J(1),o=J(0),s=J(0),a=J(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(t,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;n.isEven();)n.rShiftTo(1,n),e?(s.isEven()&&a.isEven()||(s.addTo(this,s),a.subTo(t,a)),s.rShiftTo(1,s)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);r.compareTo(n)>=0?(r.subTo(n,r),e&&i.subTo(s,i),o.subTo(a,o)):(n.subTo(r,n),e&&s.subTo(i,s),a.subTo(o,a))}return 0!=n.compareTo(B.ONE)?B.ZERO:a.compareTo(t)>=0?a.subtract(t):0>a.signum()?(a.addTo(t,a),0>a.signum()?a.add(t):a):a},B.prototype.pow=function(t){return this.exp(t,new te)},B.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(0>e.compareTo(r)){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},B.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=ti[ti.length-1]){for(e=0;e<ti.length;++e)if(r[0]==ti[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<ti.length;){for(var n=ti[e],i=e+1;i<ti.length&&n<to;)n*=ti[i++];for(n=r.modInt(n);e<i;)if(n%ti[e++]==0)return!1}return r.millerRabin(t)},B.prototype.square=function(){var t=H();return this.squareTo(t),t},ts.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},ts.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},null==t_){if(t_=[],tS=0,void 0!==h&&(void 0!==h.crypto||void 0!==h.msCrypto)){var tu=h.crypto||h.msCrypto;if(tu.getRandomValues){var tc=new Uint8Array(32);for(tu.getRandomValues(tc),tx=0;tx<32;++tx)t_[tS++]=tc[tx]}else if("Netscape"==f.appName&&f.appVersion<"5"){var tl=h.crypto.random(32);for(tx=0;tx<tl.length;++tx)t_[tS++]=255&tl.charCodeAt(tx)}}for(;tS<256;)tx=Math.floor(65536*Math.random()),t_[tS++]=tx>>>8,t_[tS++]=255&tx;tS=0,ta()}function tf(){}function th(t,e){return new B(t,e)}function td(t,e,r){for(var n="",i=0;n.length<e;)n+=r(String.fromCharCode.apply(String,t.concat([(0xff000000&i)>>24,(0xff0000&i)>>16,(65280&i)>>8,255&i]))),i+=1;return n}function tp(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function tg(t,e){this.x=e,this.q=t}function tv(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=null==n?B.ONE:n,this.zinv=null}function tm(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new tv(this,null,null)}tf.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=function(){if(null==tb){for(ta(),(tb=new ts).init(t_),tS=0;tS<t_.length;++tS)t_[tS]=0;tS=0}return tb.next()}()},tp.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},tp.prototype.setPublic=function(t,e){if(this.isPublic=!0,this.isPrivate=!1,"string"!=typeof t)this.n=t,this.e=e;else{if(!(null!=t&&null!=e&&t.length>0&&e.length>0))throw"Invalid RSA public key";this.n=th(t,16),this.e=parseInt(e,16)}},tp.prototype.encrypt=function(t){var e=function(t,e){if(e<t.length+11)throw"Message too long for RSA";for(var r=[],n=t.length-1;n>=0&&e>0;){var i=t.charCodeAt(n--);i<128?r[--e]=i:i>127&&i<2048?(r[--e]=63&i|128,r[--e]=i>>6|192):(r[--e]=63&i|128,r[--e]=i>>6&63|128,r[--e]=i>>12|224)}r[--e]=0;for(var o=new tf,s=[];e>2;){for(s[0]=0;0==s[0];)o.nextBytes(s);r[--e]=s[0]}return r[--e]=2,r[--e]=0,new B(r)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var r=this.doPublic(e);if(null==r)return null;var n=r.toString(16);return 0==(1&n.length)?n:"0"+n},tp.prototype.encryptOAEP=function(t,e,r){var n=function(t,e,r,n){var i=tF.crypto.MessageDigest,o=tF.crypto.Util,s=null;if(r||(r="sha1"),"string"==typeof r&&(s=i.getCanonicalAlgName(r),n=i.getHashLength(s),r=function(t){return tD(o.hashHex(tM(t),s))}),t.length+2*n+2>e)throw"Message too long for RSA";var a,u="";for(a=0;a<e-t.length-2*n-2;a+=1)u+="\0";var c=r("")+u+"\x01"+t,l=Array(n);(new tf).nextBytes(l);var f=td(l,c.length,r),h=[];for(a=0;a<c.length;a+=1)h[a]=c.charCodeAt(a)^f.charCodeAt(a);var d=td(h,l.length,r),p=[0];for(a=0;a<l.length;a+=1)p[a+1]=l[a]^d.charCodeAt(a);return new B(p.concat(h))}(t,this.n.bitLength()+7>>3,e,r);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},tp.prototype.type="RSA",tg.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},tg.prototype.toBigInteger=function(){return this.x},tg.prototype.negate=function(){return new tg(this.q,this.x.negate().mod(this.q))},tg.prototype.add=function(t){return new tg(this.q,this.x.add(t.toBigInteger()).mod(this.q))},tg.prototype.subtract=function(t){return new tg(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},tg.prototype.multiply=function(t){return new tg(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},tg.prototype.square=function(){return new tg(this.q,this.x.square().mod(this.q))},tg.prototype.divide=function(t){return new tg(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},tv.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},tv.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},tv.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(B.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(B.ZERO))},tv.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(B.ZERO)&&!this.y.toBigInteger().equals(B.ZERO)},tv.prototype.negate=function(){return new tv(this.curve,this.x,this.y.negate(),this.z)},tv.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),r=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(B.ZERO.equals(r))return B.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new B("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(t.x.toBigInteger(),t.y.toBigInteger(),r.square()),a=s.multiply(r),u=i.multiply(s),c=e.square().multiply(this.z),l=c.subtract(u.shiftLeft(1)).multiply(t.z).subtract(a).multiply(r).mod(this.curve.q),f=u.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(c.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),h=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new tv(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(f),h)},tv.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new B("3"),e=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=e.square().multiply(t);B.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var a=(s=s.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),u=s.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new tv(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(u),c)},tv.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,r=t.multiply(new B("3")),n=this.negate(),i=this,o=this.curve.q.subtract(t),s=o.multiply(new B("3")),a=new tv(this.curve,this.x,this.y),u=a.negate();for(e=r.bitLength()-2;e>0;--e){i=i.twice();var c=r.testBit(e);c!=t.testBit(e)&&(i=i.add(c?this:n))}for(e=s.bitLength()-2;e>0;--e){a=a.twice();var l=s.testBit(e);l!=o.testBit(e)&&(a=a.add(l?a:u))}return i},tv.prototype.multiplyTwo=function(t,e,r){var n;n=t.bitLength()>r.bitLength()?t.bitLength()-1:r.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(e);n>=0;)i=i.twice(),t.testBit(n)?i=r.testBit(n)?i.add(o):i.add(this):r.testBit(n)&&(i=i.add(e)),--n;return i},tm.prototype.getQ=function(){return this.q},tm.prototype.getA=function(){return this.a},tm.prototype.getB=function(){return this.b},tm.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},tm.prototype.getInfinity=function(){return this.infinity},tm.prototype.fromBigInteger=function(t){return new tg(this.q,t)},tm.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:var e=(t.length-2)/2,r=t.substr(2,e),n=t.substr(e+2,e);return new tv(this,this.fromBigInteger(new B(r,16)),this.fromBigInteger(new B(n,16)))}},tg.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},tv.prototype.getEncoded=function(t){var e=function(t,e){var r=t.toByteArrayUnsigned();if(e<r.length)r=r.slice(r.length-e);else for(;e>r.length;)r.unshift(0);return r},r=this.getX().toBigInteger(),n=this.getY().toBigInteger(),i=e(r,32);return t?n.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(e(n,32))),i},tv.decodeFrom=function(t,e){e[0];var r=e.length-1,n=e.slice(1,1+r/2),i=e.slice(1+r/2,1+r);n.unshift(0),i.unshift(0);var o=new B(n),s=new B(i);return new tv(t,t.fromBigInteger(o),t.fromBigInteger(s))},tv.decodeFromHex=function(t,e){e.substr(0,2);var r=e.length-2,n=e.substr(2,r/2),i=e.substr(2+r/2,r/2),o=new B(n,16),s=new B(i,16);return new tv(t,t.fromBigInteger(o),t.fromBigInteger(s))},tv.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),r=t.y.subtract(this.y).divide(e),n=r.square().subtract(this.x).subtract(t.x),i=r.multiply(this.x.subtract(n)).subtract(this.y);return new tv(this.curve,n,i)},tv.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(B.valueOf(2)),e=this.curve.fromBigInteger(B.valueOf(3)),r=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),n=r.square().subtract(this.x.multiply(t)),i=r.multiply(this.x.subtract(n)).subtract(this.y);return new tv(this.curve,n,i)},tv.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,r=t.multiply(new B("3")),n=this.negate(),i=this;for(e=r.bitLength()-2;e>0;--e){i=i.twice();var o=r.testBit(e);o!=t.testBit(e)&&(i=i.add2D(o?this:n))}return i},tv.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),r=this.curve.getA
1().toBigInteger(),n=this.curve.getB().toBigInteger(),i=this.curve.getQ(),o=e.multiply(e).mod(i),s=t.multiply(t).multiply(t).add(r.multiply(t)).add(n).mod(i);return o.equals(s)},tv.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},tv.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw Error("Point is at infinity.");var e=this.getX().toBigInteger(),r=this.getY().toBigInteger();if(0>e.compareTo(B.ONE)||e.compareTo(t.subtract(B.ONE))>0)throw Error("x coordinate out of bounds");if(0>r.compareTo(B.ONE)||r.compareTo(t.subtract(B.ONE))>0)throw Error("y coordinate out of bounds");if(!this.isOnCurve())throw Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw Error("Point is not a scalar multiple of G.");return!0};var ty=function(){var t=RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=RegExp("\\\\(?:([^u])|u(.{4}))","g"),r={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"};function n(t,e,n){return e?r[e]:String.fromCharCode(parseInt(n,16))}var i=new String(""),o=Object.hasOwnProperty;return function(r,s){var a,u,c,f=r.match(t),h=f[0],d=!1;"{"===h?u={}:"["===h?u=[]:(u=[],d=!0);for(var p=[u],g=1-d,v=f.length;g<v;++g)switch((h=f[g]).charCodeAt(0)){default:(a=p[0])[c||a.length]=+h,c=void 0;break;case 34:if(-1!==(h=h.substring(1,h.length-1)).indexOf("\\")&&(h=h.replace(e,n)),a=p[0],!c){if(!(a instanceof Array)){c=h||i;break}c=a.length}a[c]=h,c=void 0;break;case 91:a=p[0],p.unshift(a[c||a.length]=[]),c=void 0;break;case 93:case 125:p.shift();break;case 102:(a=p[0])[c||a.length]=!1,c=void 0;break;case 110:(a=p[0])[c||a.length]=null,c=void 0;break;case 116:(a=p[0])[c||a.length]=!0,c=void 0;break;case 123:a=p[0],p.unshift(a[c||a.length]={}),c=void 0}if(d){if(1!==p.length)throw Error();u=u[0]}else if(p.length)throw Error();return s&&(u=function t(e,r){var n=e[r];if(n&&"object"===(void 0===n?"undefined":l(n))){var i=null;for(var a in n)if(o.call(n,a)&&n!==e){var u=t(n,a);void 0!==u?n[a]=u:(i||(i=[]),i.push(a))}if(i)for(var c=i.length;--c>=0;)delete n[i[c]]}return s.call(e,r,n)}({"":u},"")),u}}();void 0!==tF&&tF||(e.KJUR=tF={}),void 0!==tF.asn1&&tF.asn1||(tF.asn1={}),tF.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var r=e.substr(1).length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var n="",i=0;i<r;i++)n+="f";e=new B(n,16).xor(t).add(B.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return tH(t,e)},this.newObject=function(t){var e=tF.asn1,r=e.ASN1Object,n=e.DERBoolean,i=e.DERInteger,o=e.DERBitString,s=e.DEROctetString,a=e.DERNull,u=e.DERObjectIdentifier,c=e.DEREnumerated,l=e.DERUTF8String,f=e.DERNumericString,h=e.DERPrintableString,d=e.DERTeletexString,p=e.DERIA5String,g=e.DERUTCTime,v=e.DERGeneralizedTime,m=e.DERVisibleString,y=e.DERBMPString,b=e.DERSequence,_=e.DERSet,S=e.DERTaggedObject,x=e.ASN1Util.newObject;if(t instanceof e.ASN1Object)return t;var F=Object.keys(t);if(1!=F.length)throw Error("key of param shall be only one.");var w=F[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+w+":"))throw Error("undefined key: "+w);if("bool"==w)return new n(t[w]);if("int"==w)return new i(t[w]);if("bitstr"==w)return new o(t[w]);if("octstr"==w)return new s(t[w]);if("null"==w)return new a(t[w]);if("oid"==w)return new u(t[w]);if("enum"==w)return new c(t[w]);if("utf8str"==w)return new l(t[w]);if("numstr"==w)return new f(t[w]);if("prnstr"==w)return new h(t[w]);if("telstr"==w)return new d(t[w]);if("ia5str"==w)return new p(t[w]);if("utctime"==w)return new g(t[w]);if("gentime"==w)return new v(t[w]);if("visstr"==w)return new m(t[w]);if("bmpstr"==w)return new y(t[w]);if("asn1"==w)return new r(t[w]);if("seq"==w){for(var E=t[w],k=[],A=0;A<E.length;A++){var P=x(E[A]);k.push(P)}return new b({array:k})}if("set"==w){for(E=t[w],k=[],A=0;A<E.length;
1A++)P=x(E[A]),k.push(P);return new _({array:k})}if("tag"==w){var C=t[w];if("[object Array]"===Object.prototype.toString.call(C)&&3==C.length){var I=x(C[2]);return new S({tag:C[0],explicit:C[1],obj:I})}return new S(C)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},tF.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",r=parseInt(t.substr(0,2),16),n=(e=Math.floor(r/40)+"."+r%40,""),i=2;i<t.length;i+=2){var o=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);n+=o.substr(1,7),"0"==o.substr(0,1)&&(e=e+"."+new B(n,2).toString(10),n="")}return e},tF.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",n=t.split(".");r+=e(40*parseInt(n[0])+parseInt(n[1])),n.splice(0,2);for(var i=0;i<n.length;i++)r+=function(t){var r="",n=new B(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";for(s=0,n=o+n;s<n.length-1;s+=7){var a=n.substr(s,7);s!=n.length-7&&(a="1"+a),r+=e(parseInt(a,2))}return r}(n[i]);return r},tF.asn1.ASN1Object=function(t){this.params=null,this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw Error("this.hV is null or undefined");if(this.hV.length%2==1)throw Error("value hex must be even length: n=0,v="+this.hV);var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var r=e.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+r).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(t){this.params=t},null!=t&&null!=t.tlv&&(this.hTLV=t.tlv,this.isModified=!1)},tF.asn1.DERAbstractString=function(t){tF.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=tO(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},d.lang.extend(tF.asn1.DERAbstractString,tF.asn1.ASN1Object),tF.asn1.DERAbstractTime=function(t){tF.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return new Date(t.getTime()+6e4*t.getTimezoneOffset())},this.formatDate=function(t,e,r){var n=this.zeroPadding,i=this.localDateToUTC(t),o=String(i.getFullYear());"utc"==e&&(o=o.substr(2,2));var s=o+n(String(i.getMonth()+1),2)+n(String(i.getDate()),2)+n(String(i.getHours()),2)+n(String(i.getMinutes()),2)+n(String(i.getSeconds()),2);if(!0===r){var a=i.getMilliseconds();if(0!=a){var u=n(String(a),3);s=s+"."+(u=u.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=tI(t)},this.setByDateValue=function(t,e,r,n,i,o){var s=new Date(Date.UTC(t,e-1,r,n,i,o,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},d.lang.extend(tF.asn1.DERAbstractTime,tF.asn1.ASN1Object),tF.asn1.DERAbstractStructured=function(t){tF.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=[],void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},d.lang.extend(tF.asn1.DERAbstractStructured,tF.asn1.ASN1Object),tF.asn1.DERBoolean=function(t){tF.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==t?"010100":"0101ff"},d.lang.extend(tF.asn1.DERBoolean,tF.asn1.ASN1Object),tF.asn1.DERInteger=function(t){tF.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=tF.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new B(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},d.lang.extend(tF.asn1.DERInteger,tF.asn1.ASN1Object),tF.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=tF.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}tF.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;this.hTLV=null,this.isModified=!0,this.hV="0"+t+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var r=0;r<=e;r++)t+="0";var n="";for(r=0;r<t.length-1;r+=8){var i=parseInt(t.substr(r,8),2).toString(16);1==i.length&&(i="0"+i),n+=i}this.hTLV=null,this.isModified=!0,this.hV="0"+e+n}
1,this.setByBooleanArray=function(t){for(var e="",r=0;r<t.length;r++)1==t[r]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},d.lang.extend(tF.asn1.DERBitString,tF.asn1.ASN1Object),tF.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=tF.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}tF.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},d.lang.extend(tF.asn1.DEROctetString,tF.asn1.DERAbstractString),tF.asn1.DERNull=function(){tF.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},d.lang.extend(tF.asn1.DERNull,tF.asn1.ASN1Object),tF.asn1.DERObjectIdentifier=function(t){tF.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){var e=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e};try{if(!t.match(/^[0-9.]+$/))return null;var r="",n=t.split("."),i=40*parseInt(n[0],10)+parseInt(n[1],10);r+=e(i),n.splice(0,2);for(var o=0;o<n.length;o++)r+=function(t){var r="",n=parseInt(t,10).toString(2),i=7-n.length%7;7==i&&(i=0);for(var o="",s=0;s<i;s++)o+="0";for(s=0,n=o+n;s<n.length-1;s+=7){var a=n.substr(s,7);s!=n.length-7&&(a="1"+a),r+=e(parseInt(a,2))}return r}(n[o]);return r}catch(t){return null}}(t);if(null==e)throw Error("malformed oid string: "+t);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueName=function(t){var e=tF.asn1.x509.OID.name2oid(t);if(""===e)throw Error("DERObjectIdentifier oidName undefined: "+t);this.setValueOidString(e)},this.setValueNameOrOid=function(t){t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(t){"string"==typeof t?this.setValueNameOrOid(t):void 0!==t.oid?this.setValueNameOrOid(t.oid):void 0!==t.name?this.setValueNameOrOid(t.name):void 0!==t.hex&&this.setValueHex(t.hex)},void 0!==t&&this.setByParam(t)},d.lang.extend(tF.asn1.DERObjectIdentifier,tF.asn1.ASN1Object),tF.asn1.DEREnumerated=function(t){tF.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=tF.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new B(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},d.lang.extend(tF.asn1.DEREnumerated,tF.asn1.ASN1Object),tF.asn1.DERUTF8String=function(t){tF.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},d.lang.extend(tF.asn1.DERUTF8String,tF.asn1.DERAbstractString),tF.asn1.DERNumericString=function(t){tF.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},d.lang.extend(tF.asn1.DERNumericString,tF.asn1.DERAbstractString),tF.asn1.DERPrintableString=function(t){tF.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},d.lang.extend(tF.asn1.DERPrintableString,tF.asn1.DERAbstractString),tF.asn1.DERTeletexString=function(t){tF.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},d.lang.extend(tF.asn1.DERTeletexString,tF.asn1.DERAbstractString),tF.asn1.DERIA5String=function(t){tF.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},d.lang.extend(tF.asn1.DERIA5String,tF.asn1.DERAbstractString),tF.asn1.DERVisibleString=function(t){tF.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="1a"},d.lang.extend(tF.asn1.DERVisibleString,tF.asn1.DERAbstractString),tF.asn1.DERBMPString=function(t){tF.asn1.DERBMPString.superclass.constructor.call(this,t),this.hT="1e"},d.lang.extend(tF.asn1.DERBMPString,tF.asn1.DERAbstractString),tF.asn1.DERUTCTime=function(t){tF.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=tI(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=tI(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},d.lang.extend(tF.asn1.DERUTCTime,tF.asn1.DERAbstractTime),tF.asn1.DERGeneralizedTime=function(t){tF.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=tI(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=tI(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},d.lang.extend(tF.asn1.DERGeneralizedTime,tF.asn1.DERAbstractTime),tF.asn1.DERSequence=function(t){tF.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++)t+=this.asn1Array[e].getEncodedHex();return this.hV=t,this.hV}},d.lang.extend(tF.asn1.DERSequence,tF.asn1.DERAbstractStructured),tF.asn1.DERSet=function(t){tF.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=[],e=0;e<this.asn1Array.length;e++){var r=this.asn1Array[e];t.push(r.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},d.lang.extend(tF.asn1.DERSet,tF.asn1.DERAbstractStructured),tF.asn1.DERTaggedObject=function(t){tF.asn1.DERTaggedObject.
vendor: 27,876 bytes, line 1
1superclass.constructor.call(this);var e=tF.asn1;this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,r){this.hT=e,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(t){null!=t.tag&&(this.hT=t.tag),null!=t.explicit&&(this.isExplicit=t.explicit),null!=t.tage&&(this.hT=t.tage,this.isExplicit=!0),null!=t.tagi&&(this.hT=t.tagi,this.isExplicit=!1),null!=t.obj&&(t.obj instanceof e.ASN1Object?(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)):"object"==l(t.obj)&&(this.asn1Object=e.ASN1Util.newObject(t.obj),this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},null!=t&&this.setByParam(t)},d.lang.extend(tF.asn1.DERTaggedObject,tF.asn1.ASN1Object);var tb,t_,tS,tx,tF,tw,tE,tk=new function(){};function tA(t){for(var e=[],r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}function tP(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}function tC(t){for(var e="",r=0;r<t.length;r++){var n=t[r].toString(16);1==n.length&&(n="0"+n),e+=n}return e}function tI(t){return tC(tA(t))}function tT(t){return(t=(t=t.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function tR(t){return t.length%4==2?t+="==":t.length%4==3&&(t+="="),t=(t=t.replace(/-/g,"+")).replace(/_/g,"/")}function tj(t){return t.length%2==1&&(t="0"+t),tT(D(t))}function tN(t){return M(tR(t))}function tO(t){return tq(t$(t))}function tL(t){return decodeURIComponent(tW(t))}function tD(t){for(var e="",r=0;r<t.length-1;r+=2)e+=String.fromCharCode(parseInt(t.substr(r,2),16));return e}function tM(t){for(var e="",r=0;r<t.length;r++)e+=("0"+t.charCodeAt(r).toString(16)).slice(-2);return e}function tU(t){return D(t).replace(/(.{64})/g,"$1\r\n").replace(/\r\n$/,"")}function tB(t){return M(t.replace(/[^0-9A-Za-z\/+=]*/g,""))}function tH(t,e){return"-----BEGIN "+e+"-----\r\n"+tU(t)+"\r\n-----END "+e+"-----\r\n"}function tV(t,e){if(-1==t.indexOf("-----BEGIN "))throw"can't find PEM header: "+e;return tB(t=void 0!==e?(t=t.replace(RegExp("^[^]*-----BEGIN "+e+"-----"),"")).replace(RegExp("-----END "+e+"-----[^]*$"),""):(t=t.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function tK(t){var e,r,n,i,o,s,a,u,c,l;if(l=t.match(/^(\d{2}|\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return e=parseInt(u=l[1]),2===u.length&&(50<=e&&e<100?e=1900+e:0<=e&&e<50&&(e=2e3+e)),r=parseInt(l[2])-1,n=parseInt(l[3]),i=parseInt(l[4]),o=parseInt(l[5]),s=parseInt(l[6]),a=0,""!==(c=l[7])&&(a=parseInt((c.substr(1)+"00").substr(0,3))),Date.UTC(e,r,n,i,o,s,a);throw"unsupported zulu format: "+t}function tz(t){return~~(tK(t)/1e3)}function tq(t){return t.replace(/%/g,"")}function tW(t){return t.replace(/(..)/g,"%$1")}function tJ(t){var e="malformed IPv6 address";if(!t.match(/^[0-9A-Fa-f:]+$/))throw e;var r=(t=t.toLowerCase()).split(":").length-1;if(r<2)throw e;var n=":".repeat(7-r+2),i=(t=t.replace("::",n)).split(":");if(8!=i.length)throw e;for(var o=0;o<8;o++)i[o]=("0000"+i[o]).slice(-4);return i.join("")}function tY(t){if(!t.match(/^[0-9A-Fa-f]{32}$/))throw"malformed IPv6 address octet";for(var e=(t=t.toLowerCase()).match(/.{1,4}/g),r=0;r<8;r++)e[r]=e[r].replace(/^0+/,""),""==e[r]&&(e[r]="0");var n=(t=":"+e.join(":")+":").match(/:(0:){2,}/g);if(null===n)return t.slice(1,-1);var i="";for(r=0;r<n.length;r++)n[r].length>i.length&&(i=n[r]);return(t=t.replace(i,"::")).slice(1,-1)}function tG(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?tY(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(t){throw e}}function t$(t){for(var e=encodeURIComponent(t),r="",n=0;n<e.length;n++)"%"==e[n]?(r+=e.substr(n,3),n+=2):r=r+"%"+tI(e[n]);return r}function tX(t){return!(t.length%2!=0||!t.match(/^[0-9a-f]+$/)&&!t.match(/^[0-9A-F]+$/))}function tQ(t){return t.length%2==1?"0"+t:t.substr(0,1)>"7"?"00"+t:t}tk.getLblen=function(t,e){if("8"!=t.substr(e+2,1))return 1;var r=parseInt(t.substr(e+3,1));return 0==r?-1:0<r&&r<10?r+1:-2},tk.getL=function(t,e){var r=tk.getLblen(t,e);return r<1?"":t.substr(e+2,2*r)},tk.getVblen=function(t,e){var r;return""==(r=tk.getL(t,e))?-1:("8"===r.substr(0,1)?new B(r.substr(2),16):new B(r,16)).intValue()},tk.getVidx=function(t,e){var r=tk.getLblen(t,e);return r<0?r:e+2*(r+1)},tk.getV=function(t,e){var r=tk.getVidx(t,e),n=tk.getVblen(t,e);return t.substr(r,2*n)},tk.getTLV=function(t,e){return t.substr(e,2)+tk.getL(t,e)+tk.getV(t,e)},tk.getTLVblen=function(t,e){return 2+2*tk.getLblen(t,e)+2*tk.getVblen(t,e)},tk.getNextSiblingIdx=function(t,e){return tk.getVidx(t,e)+2*tk.getVblen(t,e)},tk.getChildIdx=function(t,e){var r,n,i,o=[];r=tk.getVidx(t,e),n=2*tk.getVblen(t,e),"03"==t.substr(e,2)&&(r+=2,n-=2),i=0;for(var s=r;i<=n;){var a=tk.getTLVblen(t,s);if((i+=a)<=n&&o.push(s),s+=a,i>=n)break}return o},tk.getNthChildIdx=function(t,e,r){return tk.getChildIdx(t,e)[r]},tk.getIdxbyList=function(t,e,r,n){var i,o;return 0==r.length?void 0!==n&&t.substr(e,2)!==n?-1:e:(i=r.shift())>=(o=tk.getChildIdx(t,e)).length?-1:tk.getIdxbyList(t,o[i],r,n)},tk.getIdxbyListEx=function(t,e,r,n){var i,o;if(0==r.length)return void 0!==n&&t.substr(e,2)!==n?-1:e;i=r.shift(),o=tk.getChildIdx(t,e);for(var s=0,a=0;a<o.length;a++){var u=t.substr(o[a],2);if("number"==typeof i&&!tk.isContextTag(u)&&s==i||"string"==typeof i&&tk.isContextTag(u,i))return tk.getIdxbyListEx(t,o[a],r,n);tk.isContextTag(u)||s++}return -1},tk.getTLVbyList=function(t,e,r,n){var i=tk.getIdxbyList(t,e,r,n);return -1==i||i>=t.length?null:tk.getTLV(t,i)},tk.getTLVbyListEx=function(t,e,r,n){var i=tk.getIdxbyListEx(t,e,r,n);return -1==i?null:tk.getTLV(t,i)},tk.getVbyList=function(t,e,r,n,i){var o,s;return -1==(o=tk.getIdxbyList(t,e,r,n))||o>=t.length?null:(s=tk.getV(t,o),!0===i&&(s=s.substr(2)),s)},tk.getVbyListEx=function(t,e,r,n,i){var o,s;return -1==(o=tk.getIdxbyListEx(t,e,r,n))?null:(s=tk.getV(t,o),"03"==t.substr(o,2)&&!1!==i&&(s=s.substr(2)),s)},tk.getInt=function(t,e,r){null==r&&(r=-1);try{var n=t.substr(e,2);if("02"!=n&&"03"!=n)return r;var i=tk.getV(t,e);return"02"==n?parseInt(i,16):function(t){try{var e=t.substr(0,2);if("00"==e)return parseInt(t.substr(2),16);var r=parseInt(e,16),n=t.substr(2),i=parseInt(n,16).toString(2);return"0"==i&&(i="00000000"),i=i.slice(0,0-r),parseInt(i,2)}catch(t){return -1}}(i)}catch(t){return r}},tk.getOID=function(t,e,r){null==r&&(r=null);try{return"06"!=t.substr(e,2)?r:function(t){if(!tX(t))return null;try{var e=[],r=t.substr(0,2),n=parseInt(r,16);e[0]=new String(Math.floor(n/40)),e[1]=new String(n%40);for(var i=t.substr(2),o=[],s=0;s<i.length/2;s++)o.push(parseInt(i.substr(2*s,2),16));var a=[],u="";for(s=0;s<o.length;s++)128&o[s]?u+=tZ((127&o[s]).toString(2),7):(u+=tZ((127&o[s]).toString(2),7),a.push(new String(parseInt(u,2))),u="");var c=e.join(".");return a.length>0&&(c=c+"."+a.join(".")),c}catch(t){return null}}(tk.getV(t,e))}catch(t){return r}},tk.getOIDName=function(t,e,r){null==r&&(r=null);try{var n=tk.getOID(t,e,r);if(n==r)return r;var i=tF.asn1.x509.OID.oid2name(n);return""==i?n:i}catch(t){return r}},tk.getString=function(t,e,r){null==r&&(r=null);try{return tD(tk.getV(t,e))}catch(t){return r}},tk.hextooidstr=function(t){var e=function(t,e){return t.length>=e?t:Array(e-t.length+1).join("0")+t},r=[],n=parseInt(t.substr(0,2),16);r[0]=new String(Math.floor(n/40)),r[1]=new String(n%40);for(var i=t.substr(2),o=[],s=0;s<i.length/2;s++)o.push(parseInt(i.substr(2*s,2),16));var a=[],u="";for(s=0;s<o.length;s++)128&o[s]?u+=e((127&o[s]).toString(2),7):(a.push(new String(parseInt(u+=e((127&o[s]).toString(2),7),2))),u="");var c=r.join(".");return a.length>0&&(c=c+"."+a.join(".")),c},tk.dump=function(t,e,r,n){var i=tk.getV,o=tk.dump,s=tk.getChildIdx,a=t;t instanceof tF.asn1.ASN1Object&&(a=t.getEncodedHex());var u=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===r&&(r=0),void 0===n&&(n="");var c,l=e.ommit_long_octet;if("01"==(c=a.substr(r,2)))return"00"==(f=i(a,r))?n+"BOOLEAN FALSE\n":n+"BOOLEAN TRUE\n";if("02"==c)return n+"INTEGER "+u(f=i(a,r),l)+"\n";if("03"==c){var f=i(a,r);if(tk.isASN1HEX(f.substr(2))){var h=n+"BITSTRING, encapsulates\n";return h+o(f.substr(2),e,0,n+"  ")}return n+"BITSTRING "+u(f,l)+"\n"}if("04"==c)return(f=i(a,r),tk.isASN1HEX(f))?(h=n+"OCTETSTRING, encapsulates\n")+o(f,e,0,n+"  "):n+"OCTETSTRING "+u(f,l)+"\n";if("05"==c)return n+"NULL\n";if("06"==c){var d=i(a,r),p=tF.asn1.ASN1Util.oidHexToInt(d),g=tF.asn1.x509.OID.oid2name(p),v=p.replace(/\./g," ");return""!=g?n+"ObjectIdentifier "+g+" ("+v+")\n":n+"ObjectIdentifier ("+v+")\n"}if("0a"==c)return n+"ENUMERATED "+parseInt(i(a,r))+"\n";if("0c"==c)return n+"UTF8String '"+tL(i(a,r))+"'\n";if("13"==c)return n+"PrintableString '"+tL(i(a,r))+"'\n";if("14"==c)return n+"TeletexString '"+tL(i(a,r))+"'\n";if("16"==c)return n+"IA5String '"+tL(i(a,r))+"'\n";if("17"==c)return n+"UTCTime "+tL(i(a,r))+"\n";if("18"==c)return n+"GeneralizedTime "+tL(i(a,r))+"\n";if("1a"==c)return n+"VisualString '"+tL(i(a,r))+"'\n";if("1e"==c)return n+"BMPString '"+tL(i(a,r))+"'\n";if("30"==c){if("3000"==a.substr(r,4))return n+"SEQUENCE {}\n";h=n+"SEQUENCE\n";var m=e;if((2==(_=s(a,r)).length||3==_.length)&&"06"==a.substr(_[0],2)&&"04"==a.substr(_[_.length-1],2)){g=tk.oidname(i(a,_[0]));var y=JSON.parse(JSON.stringify(e));y.x509ExtName=g,m=y}for(var b=0;b<_.length;b++)h+=o(a,m,_[b],n+"  ");return h}if("31"==c){h=n+"SET\n";var _=s(a,r);for(b=0;b<_.length;b++)h+=o(a,e,_[b],n+"  ");return h}if(0!=(128&(c=parseInt(c,16)))){var S=31&c;if(0!=(32&c)){for(h=n+"["+S+"]\n",_=s(a,r),b=0;b<_.length;b++)h+=o(a,e,_[b],n+"  ");return h}if(f=i(a,r),tk.isASN1HEX(f)){var h=n+"["+S+"]\n";return h+o(f,e,0,n+"  ")}return("68747470"==f.substr(0,8)||"subjectAltName"===e.x509ExtName&&2==S)&&(f=tL(f)),h=n+"["+S+"] "+f+"\n"}return n+"UNKNOWN("+c+") "+i(a,r)+"\n"},tk.isContextTag=function(t,e){var r,n;t=t.toLowerCase();try{r=parseInt(t,16)}catch(t){return -1}if(void 0===e)return 128==(192&r);try{return null!=e.match(/^\[[0-9]+\]$/)&&!((n=parseInt(e.substr(1,e.length-1),10))>31)&&128==(192&r)&&(31&r)==n}catch(t){return!1}},tk.isASN1HEX=function(t){if(t.length%2==1)return!1;var e=tk.getVblen(t,0),r=t.substr(0,2),n=tk.getL(t,0);return t.length-r.length-n.length==2*e},tk.checkStrictDER=function(t,e,r,n,i){if(void 0===r){if("string"!=typeof t||(t=t.toLowerCase(),!tF.lang.String.isHex(t)))throw Error("not hex string");r=t.length,i=(n=t.length/2)<128?1:Math.ceil(n.toString(16))+1}if(tk.getL(t,e).length>2*i)throw Error("L of TLV too long: idx="+e);var o=tk.getVblen(t,e);if(o>n)throw Error("value of L too long than hex: idx="+e);var s=tk.getTLV(t,e),a=s.length-2-tk.getL(t,e).length;if(a!==2*o)throw Error("V string length and L's value not the same:"+a+"/"+2*o);if(0===e&&t.length!=s.length)throw Error("total length and TLV length unmatch:"+t.length+"!="+s.length);var u=t.substr(e,2);if("02"===u){var c=tk.getVidx(t,e);if("00"==t.substr(c,2)&&56>t.charCodeAt(c+2))throw Error("not least zeros for DER INTEGER")}if(32&parseInt(u,16)){for(var l=tk.getVblen(t,e),f=0,h=tk.getChildIdx(t,e),d=0;d<h.length;d++)f+=tk.getTLV(t,h[d]).length,tk.checkStrictDER(t,h[d],r,n,i);if(2*l!=f)throw Error("sum of children's TLV length and L unmatch: "+2*l+"!="+f)}},tk.oidname=function(t){var e=tF.asn1;tF.lang.String.isHex(t)&&(t=e.ASN1Util.oidHexToInt(t));var r=e.x509.OID.oid2name(t);return""===r&&(r=t),r},void 0!==tF&&tF||(e.KJUR=tF={}),void 0!==tF.lang&&tF.lang||(tF.lang={}),tF.lang.String=function(){},"function"==typeof t?(e.utf8tob64u=tw=function(e){return tT(t.from(e,"utf8").toString("base64"))},e.b64utoutf8=tE=function(e){return t.from(tR(e),"base64").toString("utf8")}):(e.utf8tob64u=tw=function(t){return tj(tq(t$(t)))},e.b64utoutf8=tE=function(t){return decodeURIComponent(tW(tN(t)))}),tF.lang.String.isInteger=function(t){return!!t.match(/^[0-9]+$/)||!!t.match(/^-[0-9]+$/)},tF.lang.String.isHex=function(t){return tX(t)},tF.lang.String.isBase64=function(t){return!(!(t=t.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||t.length%4!=0)},tF.lang.String.isBase64URL=function(t){return!t.match(/[+/=]/)&&(t=tR(t),tF.lang.String.isBase64(t))},tF.lang.String.isIntegerArray=function(t){return!!(t=t.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},tF.lang.String.isPrintable=function(t){return null!==t.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},tF.lang.String.isIA5=function(t){return null!==t.match(/^[\x20-\x21\x23-\x7f]*$/)},tF.lang.String.isMail=function(t){return null!==t.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};var tZ=function(t,e,r){return null==r&&(r="0"),t.length>=e?t:Array(e-t.length+1).join(r)+t};void 0!==tF&&tF||(e.KJUR=tF={}),void 0!==tF.crypto&&tF.crypto||(tF.crypto={}),tF.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:E.algo.MD5,sha1:E.algo.SHA1,sha224:E.algo.SHA224,sha256:E.algo.SHA256,sha384:E.algo.SHA384,sha512:E.algo.SHA512,ripemd160:E.algo.RIPEMD160},this.getDigestInfoHex=function(t,e){if(void 0===this.DIGESTINFOHEAD[e])throw"alg not supported in Util.DIGESTINFOHEAD: "+e;return this.DIGESTINFOHEAD[e]+t},this.getPaddedDigestInfoHex=function(t,e,r){var n=this.getDigestInfoHex(t,e),i=r/4;if(n.length+22>i)throw"key is too short for SigAlg: keylen="+r+","+e;for(var o="0001",s="00"+n,a="",u=i-o.length-s.length,c=0;c<u;c+=2)a+="ff";return o+a+s},this.hashString=function(t,e){return new tF.crypto.MessageDigest({alg:e}).digestString(t)},this.hashHex=function(t,e){return new tF.crypto.MessageDigest({alg:e}).digestHex(t)},this.sha1=function(t){return this.hashString(t,"sha1")},this.sha256=function(t){return this.hashString(t,"sha256")},this.sha256Hex=function(t){return this.hashHex(t,"sha256")},this.sha512=function(t){return this.hashString(t,"sha512")},this.sha512Hex=function(t){return this.hashHex(t,"sha512")},this.isKey=function(t){return t instanceof tp||t instanceof tF.crypto.DSA||t instanceof tF.crypto.ECDSA}},tF.crypto.Util.md5=function(t){return new tF.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(t)},tF.crypto.Util.ripemd160=function(t){return new tF.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(t)},tF.crypto.Util.SECURERANDOMGEN=new tf,tF.crypto.Util.getRandomHexOfNbytes=function(t){var e=Array(t);return tF.crypto.Util.SECURERANDOMGEN.nextBytes(e),tC(e)},tF.crypto.Util.getRandomBigIntegerOfNbytes=function(t){return new B(tF.crypto.Util.getRandomHexOfNbytes(t),16)},tF.crypto.Util.getRandomHexOfNbits=function(t){var e=t%8,r=Array((t-e)/8+1);return tF.crypto.Util.SECURERANDOMGEN.nextBytes(r),r[0]=(255<<e&255^255)&r[0],tC(r)},tF.crypto.Util.getRandomBigIntegerOfNbits=function(t){return new B(tF.crypto.Util.getRandomHexOfNbits(t),16)},tF.crypto.Util.getRandomBigIntegerZeroToMax=function(t){for(var e=t.bitLength();;){var r=tF.crypto.Util.getRandomBigIntegerOfNbits(e);if(-1!=t.compareTo(r))return r}},tF.crypto.Util.getRandomBigIntegerMinToMax=function(t,e){var r=t.compareTo(e);if(1==r)throw"biMin is greater than biMax";if(0==r)return t;var n=e.subtract(t);return tF.crypto.Util.getRandomBigIntegerZeroToMax(n).add(t)},tF.crypto.MessageDigest=function(t){this.setAlgAndProvider=function(t,e){if(null!==(t=tF.crypto.MessageDigest.getCanonicalAlgName(t))&&void 0===e&&(e=tF.crypto.Util.DEFAULTPROVIDER[t]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(t)&&"cryptojs"==e){try{this.md=tF.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[t].create()}catch(e){throw"setAlgAndProvider hash alg set fail alg="+t+"/"+e}this.updateString=function(t){this.md.update(t)},this.updateHex=function(t){var e=E.enc.Hex.parse(t);this.md.update(e)},this.digest=function(){return this.md.finalize().toString(E.enc.Hex)},this.digestString=function(t){return this.updateString(t),this.digest()},this.digestHex=function(t){return this.updateHex(t),this.digest()}}if(-1!=":sha256:".indexOf(t)&&"sjcl"==e){try{this.md=new sjcl.hash.sha256}catch(e){throw"setAlgAndProvider hash alg set fail alg="+t+"/"+e}this.updateString=function(t){this.md.update(t)},this.updateHex=function(t){var e=sjcl.codec.hex.toBits(t);this.md.update(e)},this.digest=function(){var t=this.md.finalize();return sjcl.codec.hex.fromBits(t)},this.digestString=function(t){return this.updateString(t),this.digest()},this.digestHex=function(t){return this.updateHex(t),this.digest()}}},this.updateString=function(t){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(t){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(t){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(t){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==t&&void 0!==t.alg&&(this.algName=t.alg,void 0===t.prov&&(this.provName=tF.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},tF.crypto.MessageDigest.getCanonicalAlgName=function(t){return"string"==typeof t&&(t=(t=t.toLowerCase()).replace(/-/,"")),t},tF.crypto.MessageDigest.getHashLength=function(t){var e=tF.crypto.MessageDigest,r=e.getCanonicalAlgName(t);if(void 0===e.HASHLENGTH[r])throw"not supported algorithm: "+t;return e.HASHLENGTH[r]},tF.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},tF.crypto.Mac=function(t){this.setAlgAndProvider=function(t,e){if(null==(t=t.toLowerCase())&&(t="hmacsha1"),"hmac"!=(t=t.toLowerCase()).substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+t;void 0===e&&(e=tF.crypto.Util.DEFAULTPROVIDER[t]),this.algProv=t+"/"+e;var r=t.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(r)&&"cryptojs"==e){try{var n=tF.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[r];this.mac=E.algo.HMAC.create(n,this.pass)}catch(t){throw"setAlgAndProvider hash alg set fail hashAlg="+r+"/"+t}this.updateString=function(t){this.mac.update(t)},this.updateHex=function(t){var e=E.enc.Hex.parse(t);this.mac.update(e)},this.doFinal=function(){return this.mac.finalize().toString(E.enc.Hex)},this.doFinalString=function(t){return this.updateString(t),this.doFinal()},this.doFinalHex=function(t){return this.updateHex(t),this.doFinal()}}},this.updateString=function(t){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(t){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(t){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(t){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(t){if("string"==typeof t){var e=t;return t.length%2!=1&&t.match(/^[0-9A-Fa-f]+$/)||(e=tM(t)),void(this.pass=E.enc.Hex.parse(e))}if("object"!=(void 0===t?"undefined":l(t)))throw"KJUR.crypto.Mac unsupported password type: "+t;if(e=null,void 0!==t.hex){if(t.hex.length%2!=0||!t.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+t.hex;e=t.hex}if(void 0!==t.utf8&&(e=tO(t.utf8)),void 0!==t.rstr&&(e=tM(t.rstr)),void 0!==t.b64&&(e=M(t.b64)),void 0!==t.b64u&&(e=tN(t.b64u)),null==e)throw"KJUR.crypto.Mac unsupported password type: "+t;this.pass=E.enc.Hex.parse(e)},void 0!==t&&(void 0!==t.pass&&this.setPassword(t.pass),void 0!==t.alg&&(this.algName=t.alg,void 0===t.prov&&(this.provName=tF.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},tF.crypto.Signature=function(t){var e=null;if(this._setAlgNames=function(){var t=this.algName.match(/^(.+)with(.+)$/);t&&(this.mdAlgName=t[1].toLowerCase(),this.pubkeyAlgName=t[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(t,e){for(var r="",n=e/4-t.length,i=0;i<n;i++)r+="0";return r+t},this.setAlgAndProvider=function(t,e){if(this._setAlgNames(),"cryptojs/jsrsa"!=e)throw Error("provider not supported: "+e);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new tF.crypto.MessageDigest({alg:this.mdAlgName})}catch(t){throw Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+t)}this.init=function(t,e){var r=null;try{r=void 0===e?t0.getKey(t):t0.getKey(t,e)}catch(t){throw"init failed:"+t}if(!0===r.isPrivate)this.prvKey=r,this.state="SIGN";else{if(!0!==r.isPublic)throw"init failed.:"+r;this.pubKey=r,this.state="VERIFY"}},this.updateString=function(t){this.md.updateString(t)},this.updateHex=function(t){this.md.updateHex(t)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==tF.crypto.ECDSA&&(this.prvKey=new tF.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof tp&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof tp&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof tF.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof tF.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(t){return this.updateString(t),this.sign()},this.signHex=function(t){return this.updateHex(t),this.sign()},this.verify=function(t){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==tF.crypto.ECDSA&&(this.pubKey=new tF.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof tp&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,t,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof tp&&"rsa"===this.pubkeyAlgName||void 0!==tF.crypto.ECDSA&&this.pubKey instanceof tF.crypto.ECDSA||void 0!==tF.crypto.DSA&&this.pubKey instanceof tF.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,t);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(t,e){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(t){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(t){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(t){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(t){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(t){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=t,void 0!==t&&(void 0!==t.alg&&(this.algName=t.alg,void 0===t.prov?this.provName=tF.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=t.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==t.psssaltlen&&(this.pssSaltLen=t.psssaltlen),void 0!==t.prvkeypem)){if(void 0!==t.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{e=t0.getKey(t.prvkeypem),this.init(e)}catch(t){throw"fatal error to load pem private key: "+t}}},tF.crypto.Cipher=function(t){},tF.crypto.Cipher.encrypt=function(t,e,r){if(e instanceof tp&&e.isPublic){var n=tF.crypto.Cipher.getAlgByKeyAndName(e,r);if("RSA"===n)return e.encrypt(t);if("RSAOAEP"===n)return e.encryptOAEP(t,"sha1");var i=n.match(/^RSAOAEP(\d+)$/);if(null!==i)return e.encryptOAEP(t,"sha"+i[1]);throw"Cipher.encrypt: unsupported algorithm for RSAKey: "+r}throw"Cipher.encrypt: unsupported key or algorithm"},tF.crypto.Cipher.decrypt=function(t,e,r){if(e instanceof tp&&e.isPrivate){var n=tF.crypto.Cipher.getAlgByKeyAndName(e,r);if("RSA"===n)return e.decrypt(t);if("RSAOAEP"===n)return e.decryptOAEP(t,"sha1");var i=n.match(/^RSAOAEP(\d+)$/);if(null!==i)return e.decryptOAEP(t,"sha"+i[1]);throw"Cipher.decrypt: unsupported algorithm for RSAKey: "+r}throw"Cipher.decrypt: unsupported key or algorithm"},tF.crypto.Cipher.getAlgByKeyAndName=function(t,e){if(t instanceof tp){if(-1!=":RSA:RSAOAEP:RSAOAEP224:RSAOAEP256:RSAOAEP384:RSAOAEP512:".indexOf(e))return e;if(null==e)return"RSA";throw"getAlgByKeyAndName: not supported algorithm name for RSAKey: "+e}throw"getAlgByKeyAndName: not supported algorithm name: "+e},tF.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040023":"secp521r1","2b81040022":"secp384r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},void 0!==tF&&tF||(e.KJUR=tF={}),void 0!==tF.crypto&&tF.crypto||(tF.crypto={}),tF.crypto.ECDSA=function(t){var e=Error,r=tF.crypto.ECDSA,n=tF.crypto.ECParameterDB,i=r.getName,o=tk.getVbyListEx,s=tk.isASN1HEX,a=new tf;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(t){return new B(t.bitLength(),a).mod(t.subtract(B.ONE)).add(B.ONE)},this.setNamedCurve=function(t){this.ecparams=n.getByName(t),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=t},this.setPrivateKeyHex=function(t){this.isPrivate=!0,this.prvKeyHex=t},this.setPublicKeyHex=function(t){this.isPublic=!0,this.pubKeyHex=t},this.getPublicKeyXYHex=function(){var t=this.pubKeyHex;if("04"!==t.substr(0,2))throw"this method supports uncompressed format(04) only";var e=this.ecparams.keylen/4;if(t.length!==2+2*e)throw"malformed public key hex length";var r={};return r.x=t.substr(2,e),r.y=t.substr(2+e),r}
1,this.getShortNISTPCurveName=function(){var t=this.curveName;return"secp256r1"===t||"NIST P-256"===t||"P-256"===t||"prime256v1"===t?"P-256":"secp384r1"===t||"NIST P-384"===t||"P-384"===t?"P-384":null},this.generateKeyPairHex=function(){var t=this.ecparams.n,e=this.getBigRandom(t),r=this.ecparams.G.multiply(e),n=r.getX().toBigInteger(),i=r.getY().toBigInteger(),o=this.ecparams.keylen/4,s=("0000000000"+e.toString(16)).slice(-o),a="04"+("0000000000"+n.toString(16)).slice(-o)+("0000000000"+i.toString(16)).slice(-o);return this.setPrivateKeyHex(s),this.setPublicKeyHex(a),{ecprvhex:s,ecpubhex:a}},this.signWithMessageHash=function(t){return this.signHex(t,this.prvKeyHex)},this.signHex=function(t,e){var n=new B(e,16),i=this.ecparams.n,o=new B(t.substring(0,this.ecparams.keylen/4),16);do var s=this.getBigRandom(i),a=this.ecparams.G.multiply(s).getX().toBigInteger().mod(i);while(0>=a.compareTo(B.ZERO));var u=s.modInverse(i).multiply(o.add(n.multiply(a))).mod(i);return r.biRSSigToASN1Sig(a,u)},this.sign=function(t,e){var r=this.ecparams.n,n=B.fromByteArrayUnsigned(t);do var i=this.getBigRandom(r),o=this.ecparams.G.multiply(i).getX().toBigInteger().mod(r);while(0>=o.compareTo(B.ZERO));var s=i.modInverse(r).multiply(n.add(e.multiply(o))).mod(r);return this.serializeSig(o,s)},this.verifyWithMessageHash=function(t,e){return this.verifyHex(t,e,this.pubKeyHex)},this.verifyHex=function(t,e,n){try{var i,o,s=r.parseSigHex(e);i=s.r,o=s.s;var a=tv.decodeFromHex(this.ecparams.curve,n),u=new B(t.substring(0,this.ecparams.keylen/4),16);return this.verifyRaw(u,i,o,a)}catch(t){return!1}},this.verify=function(t,e,r){if(Bitcoin.Util.isArray(e)){var n,i,o,s=this.parseSig(e);n=s.r,i=s.s}else{if("object"!==(void 0===e?"undefined":l(e))||!e.r||!e.s)throw"Invalid value for signature";n=e.r,i=e.s}if(r instanceof tv)o=r;else{if(!Bitcoin.Util.isArray(r))throw"Invalid format for pubkey value, must be byte array or ECPointFp";o=tv.decodeFrom(this.ecparams.curve,r)}var a=B.fromByteArrayUnsigned(t);return this.verifyRaw(a,n,i,o)},this.verifyRaw=function(t,e,r,n){var i=this.ecparams.n,o=this.ecparams.G;if(0>e.compareTo(B.ONE)||e.compareTo(i)>=0||0>r.compareTo(B.ONE)||r.compareTo(i)>=0)return!1;var s=r.modInverse(i),a=t.multiply(s).mod(i),u=e.multiply(s).mod(i);return o.multiply(a).add(n.multiply(u)).getX().toBigInteger().mod(i).equals(e)},this.serializeSig=function(t,e){var r=t.toByteArraySigned(),n=e.toByteArraySigned(),i=[];return i.push(2),i.push(r.length),(i=i.concat(r)).push(2),i.push(n.length),(i=i.concat(n)).unshift(i.length),i.unshift(48),i},this.parseSig=function(t){if(48!=t[0])throw Error("Signature not a valid DERSequence");if(2!=t[e=2])throw Error("First element in signature must be a DERInteger");var e,r=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw Error("Second element in signature must be a DERInteger");var n=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:B.fromByteArrayUnsigned(r),s:B.fromByteArrayUnsigned(n)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var r=this.ecparams.n;return{r:B.fromByteArrayUnsigned(t.slice(1,33)).mod(r),s:B.fromByteArrayUnsigned(t.slice(33,65)).mod(r),i:e}},this.readPKCS5PrvKeyHex=function(t){var e,r,n;if(!1===s(t))throw Error("not ASN.1 hex string");try{e=o(t,0,["[0]",0],"06"),r=o(t,0,[1],"04");try{n=o(t,0,["[1]",0],"03")}catch(t){}}catch(t){throw Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=i(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(n),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){var r,n,a;if(!1===s(t))throw new e("not ASN.1 hex string");try{o(t,0,[1,0],"06"),r=o(t,0,[1,1],"06"),n=o(t,0,[2,0,1],"04");try{a=o(t,0,[2,0,"[1]",0],"03")}catch(t){}}catch(t){throw new e("malformed PKCS#8 plain ECC private key")}if(this.curveName=i(r),void 0===this.curveName)throw new e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(a),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){var r,n;if(!1===s(t))throw new e("not ASN.1 hex string");try{o(t,0,[0,0],"06"),r=o(t,0,[0,1],"06"),n=o(t,0,[1],"03")}catch(t){throw new e("malformed PKCS#8 ECC public key")}if(this.curveName=i(r),null===this.curveName)throw new e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(n)},this.readCertPubKeyHex=function(t,r){var n,a;if(!1===s(t))throw new e("not ASN.1 hex string");try{n=o(t,0,[0,5,0,1],"06"),a=o(t,0,[0,5,1],"03")}catch(t){throw new e("malformed X.509 certificate ECC public key")}if(this.curveName=i(n),null===this.curveName)throw new e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(a)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},tF.crypto.ECDSA.parseSigHex=function(t){var e=tF.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new B(e.r,16),s:new B(e.s,16)}},tF.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=tk.getChildIdx,r
vendor: 4,492 bytes, line 1
1=tk.getV;if(tk.checkStrictDER(t,0),"30"!=t.substr(0,2))throw Error("signature is not a ASN.1 sequence");var n=e(t,0);if(2!=n.length)throw Error("signature shall have two elements");var i=n[0],o=n[1];if("02"!=t.substr(i,2))throw Error("1st item not ASN.1 integer");if("02"!=t.substr(o,2))throw Error("2nd item not ASN.1 integer");return{r:r(t,i),s:r(t,o)}},tF.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=tF.crypto.ECDSA.parseSigHexInHexRS(t),r=e.r,n=e.s;if("00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),"00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),r.length%32==30&&(r="00"+r),n.length%32==30&&(n="00"+n),r.length%32!=0)throw"unknown ECDSA sig r length error";if(n.length%32!=0)throw"unknown ECDSA sig s length error";return r+n},tF.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig  length error";var e=t.substr(0,t.length/2),r=t.substr(t.length/2);return tF.crypto.ECDSA.hexRSSigToASN1Sig(e,r)},tF.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var r=new B(t,16),n=new B(e,16);return tF.crypto.ECDSA.biRSSigToASN1Sig(r,n)},tF.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var r=tF.asn1,n=new r.DERInteger({bigint:t}),i=new r.DERInteger({bigint:e});return new r.DERSequence({array:[n,i]}).getEncodedHex()},tF.crypto.ECDSA.getName=function(t){return"2b8104001f"===t?"secp192k1":"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040021"===t?"secp224r1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(t)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==tF&&tF||(e.KJUR=tF={}),void 0!==tF.crypto&&tF.crypto||(tF.crypto={}),tF.crypto.ECParameterDB=new function(){var t={},e={};function r(t){return new B(t,16)}this.getByName=function(r){var n=r;if(void 0!==e[n]&&(n=e[r]),void 0!==t[n])return t[n];throw"unregistered EC curve name: "+n},this.regist=function(n,i,o,s,a,u,c,l,f,h,d,p){t[n]={};var g=r(o),v=r(s),m=r(a),y=r(u),b=r(c),_=new tm(g,v,m),S=_.decodePointHex("04"+l+f);t[n].name=n,t[n].keylen=i,t[n].curve=_,t[n].G=S,t[n].n=y,t[n].h=b,t[n].oid=d,t[n].info=p;for(var x=0;x<h.length;x++)e[h[x]]=n}},tF.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),tF.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),tF.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),tF.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),tF.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),tF.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),tF.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCB
1BAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),tF.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),tF.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),tF.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]);var t0=(r=function(t,e,r){return n(E.AES,t,e,r)},n=function(t,e,r,n){var i=E.enc.Hex.parse(e),o=E.enc.Hex.parse(r),s=E.enc.Hex.parse(n),a={};a.key=o,a.iv=s,a.ciphertext=i;var u=t.decrypt(a,o,{iv:s});return E.enc.Hex.stringify(u)},i=function(t,e,r){return o(E.AES,t,e,r)},o=function(t,e,r,n){var i=E.enc.Hex.parse(e),o=E.enc.Hex.parse(r),s=E.enc.Hex.parse(n),a=t.encrypt(i,o,{iv:s}),u=E.enc.Hex.parse(a.toString());return E.enc.Base64.stringify(u)},s={"AES-256-CBC":{proc:r,eproc:i,keylen:32,ivlen:16},"AES-192-CBC":{proc:r,eproc:i,keylen:24,ivlen:16},"AES-128-CBC":{proc:r,eproc:i,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(t,e,r){return n(E.TripleDES,t,e,r)},eproc:function(t,e,r){return o(E.TripleDES,t,e,r)},keylen:24,ivlen:8},"DES-CBC":{proc:function(t,e,r){return n(E.DES,t,e,r)},eproc:function(t,e,r){return o(E.DES,t,e,r)},keylen:8,ivlen:8}},a=function(t){var e={},r=t.match(RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));r&&(e.cipher=r[1],e.ivsalt=r[2]);var n=t.match(RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));n&&(e.type=n[1]);var i=-1,o=0;-1!=t.indexOf("\r\n\r\n")&&(i=t.indexOf("\r\n\r\n"),o=2),-1!=t.indexOf("\n\n")&&(i=t.indexOf("\n\n"),o=1);var s=t.indexOf("-----END");if(-1!=i&&-1!=s){var a=t.substring(i+2*o,s-o);e.data=a=a.replace(/\s+/g,"")}return e},u=function(t,e,r){for(var n=r.substring(0,16),i=E.enc.Hex.parse(n),o=E.enc.Utf8.parse(e),a=s[t].keylen+s[t].ivlen,u="",c=null;;){var l=E.algo.MD5.create();if(null!=c&&l.update(c),l.update(o),l.update(i),c=l.finalize(),(u+=E.enc.Hex.stringify(c)).length>=2*a)break}var f={};return f.keyhex=u.substr(0,2*s[t].keylen),f.ivhex=u.substr(2*s[t].keylen,2*s[t].ivlen),f},c=function(t,e,r,n){var i=E.enc.Base64.parse(t),o=E.enc.Hex.stringify(i);return(0,s[e].proc)(o,r,n)},{version:"1.0.0",parsePKCS5PEM:function(t){return a(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,r){return u(t,e,r)},decryptKeyB64:function(t,e,r,n){return c(t,e,r,n)},getDecryptedKeyHex:function(t,e){var r=a(t),n=(r.type,r.cipher),i=r.ivsalt,o=r.data,s=u(n,e,i).keyhex;return c(o,n,s,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,r,n,i){if(void 0!==n&&null!=n||(n="AES-256-CBC"),void 0===s[n])throw"KEYUTIL unsupported algorithm: "+n;void 0!==i&&null!=i||(i=(o=s[n].ivlen,a=E.lib.WordArray.random(o),E.enc.Hex.stringify(a)).toUpperCase());var o,a,c,l,f,h=(c=n,l=u(n,r,i).keyhex,f=i,(0,s[c].eproc)(e,l,f));return"-----BEGIN "+t+" PRIVATE KEY-----\r\nProc-Type: 4,ENCRYPTED\r\n"+("DEK-Info: "+n+","+i+"\r\n")+"\r\n"+h.replace(/(.{64})/g,"$1\r\n")+("\r\n-----END "+t+" PRIVATE KEY-----\r\n")}
vendor: 11,368 bytes, line 1
1,parseHexOfEncryptedPKCS8:function(t){var e=tk.getChildIdx,r=tk.getV,n={},i=e(t,0);if(2!=i.length)throw"malformed format: SEQUENCE(0).items != 2: "+i.length;n.ciphertext=r(t,i[1]);var o=e(t,i[0]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+o.length;if("2a864886f70d01050d"!=r(t,o[0]))throw"this only supports pkcs5PBES2";var s=e(t,o[1]);if(2!=o.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+s.length;var a=e(t,s[1]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+a.length;if("2a864886f70d0307"!=r(t,a[0]))throw"this only supports TripleDES";n.encryptionSchemeAlg="TripleDES",n.encryptionSchemeIV=r(t,a[1]);var u=e(t,s[0]);if(2!=u.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+u.length;if("2a864886f70d01050c"!=r(t,u[0]))throw"this only supports pkcs5PBKDF2";var c=e(t,u[1]);if(c.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+c.length;n.pbkdf2Salt=r(t,c[0]);var l=r(t,c[1]);try{n.pbkdf2Iter=parseInt(l,16)}catch(t){throw"malformed format pbkdf2Iter: "+l}return n},getPBKDF2KeyHexFromParam:function(t,e){var r=E.enc.Hex.parse(t.pbkdf2Salt),n=t.pbkdf2Iter,i=E.PBKDF2(e,r,{keySize:6,iterations:n});return E.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var r=tV(t,"ENCRYPTED PRIVATE KEY"),n=this.parseHexOfEncryptedPKCS8(r),i=t0.getPBKDF2KeyHexFromParam(n,e),o={};o.ciphertext=E.enc.Hex.parse(n.ciphertext);var s=E.enc.Hex.parse(i),a=E.enc.Hex.parse(n.encryptionSchemeIV),u=E.TripleDES.decrypt(o,s,{iv:a});return E.enc.Hex.stringify(u)},getKeyFromEncryptedPKCS8PEM:function(t,e){var r=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(r)},parsePlainPrivatePKCS8Hex:function(t){var e=tk.getChildIdx,r=tk.getV,n={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var i=e(t,0);if(3!=i.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(i[1],2))throw"malformed PKCS8 private key(code:003)";var o=e(t,i[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(n.algoid=r(t,o[0]),"06"==t.substr(o[1],2)&&(n.algparam=r(t,o[1])),"04"!=t.substr(i[2],2))throw"malformed PKCS8 private key(code:006)";return n.keyidx=tk.getVidx(t,i[2]),n},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=tV(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,r=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==r.algoid)e=new tp;else if("2a8648ce380401"==r.algoid)e=new tF.crypto.DSA;else{if("2a8648ce3d0201"!=r.algoid)throw"unsupported private key algorithm";e=new tF.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,r=tk.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===r)e=new tp;else if("2a8648ce380401"===r)e=new tF.crypto.DSA;else{if("2a8648ce3d0201"!==r)throw"unsupported PKCS#8 public key hex";e=new tF.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=tk.getChildIdx,r=tk.getV,n={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var i=e(t,0);if(2!=i.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(i[0],2))throw"malformed RSA key(code:003)";if(n.n=r(t,i[0]),"02"!=t.substr(i[1],2))throw"malformed RSA key(code:004)";return n.e=r(t,i[1]),n},parsePublicPKCS8Hex:function(t){var e=tk.getChildIdx,r=tk.getV,n={algparam:null},i=e(t,0);if(2!=i.length)throw"outer DERSequence shall have 2 elements: "+i.length;var o=i[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var s=e(t,o);if(2!=s.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(s[0],2))throw"malformed PKCS8 public key(code:003)";if(n.algoid=r(t,s[0]),"06"==t.substr(s[1],2)?n.algparam=r(t,s[1]):"30"==t.substr(s[1],2)&&(n.algparam={},n.algparam.p=tk.getVbyList(t,s[1],[0],"02"),n.algparam.q=tk.getVbyList(t,s[1],[1],"02"),n.algparam.g=tk.getVbyList(t,s[1],[2],"02")),"03"!=t.substr(i[1],2))throw"malformed PKCS8 public key(code:004)";return n.key=r(t,i[1]).substr(2),n}});t0.getKey=function(t,e,r){var n,i=(d=tk).getChildIdx,o=(d.getV,d.getVbyList),s=tF.crypto,a=s.ECDSA,u=s.DSA;if(void 0!==tp&&t instanceof tp||void 0!==a&&t instanceof a||void 0!==u&&t instanceof u)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(w=new tp).setPublic(t.n,t.e),w;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(w=new tp).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),w;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(w=new tp).setPrivate(t.n,t.e,t.d),w;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(w=new u).setPublic(t.p,t.q,t.g,t.y),w;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(w=new u).setPrivate(t.p,t.q,t.g,t.y,t.x),w;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(w=new tp).setPublic(tN(t.n),tN(t.e)),w;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(w=new tp).setPrivateEx(tN(t.n),tN(t.e),tN(t.d),tN(t.p),tN(t.q),tN(t.dp),tN(t.dq),tN(t.qi)),w;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(w=new tp).setPrivate(tN(t.n),tN(t.e),tN(t.d)),w;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var c=(F=new a({curve:t.crv})).ecparams.keylen/4,l="04"+("0000000000"+tN(t.x)).slice(-c)+("0000000000"+tN(t.y)).slice(-c);return F.setPublicKeyHex(l),F}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){c=(F=new a({curve:t.crv})).ecparams.keylen/4,l="04"+("0000000000"+tN(t.x)).slice(-c)+("0000000000"+tN(t.y)).slice(-c);var f=("0000000000"+tN(t.d)).slice(-c);return F.setPublicKeyHex(l),F.setPrivateKeyHex(f),F}if("pkcs5prv"===r){var h,d=tk;if(9===(h=i(t,0)).length)(w=new tp).readPKCS5PrvKeyHex(t);else if(6===h.length)(w=new u).readPKCS5PrvKeyHex(t);else{if(!(h.length>2&&"04"===t.substr(h[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(w=new a).readPKCS5PrvKeyHex(t)}return w}if("pkcs8prv"===r)return t0.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===r)return t0._getKeyFromPublicPKCS8Hex(t);if("x509pub"===r)return t5.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return t5.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var p=tV(t,"PUBLIC KEY");return t0._getKeyFromPublicPKCS8Hex(p)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var g=tV(t,"RSA PRIVATE KEY");return t0.getKey(g,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var v=o(n=tV(t,"DSA PRIVATE KEY"),0,[1],"02"),m=o(n,0,[2],"02"),y=o(n,0,[3],"02"),b=o(n,0,[4],"02"),_=o(n,0,[5],"02");return(w=new u).setPrivate(new B(v,16),new B(m,16),new B(y,16),new B(b,16),new B(_,16)),w}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED"))return g=tV(t,"EC PRIVATE KEY"),t0.getKey(g,null,"pkcs5prv");if(-1!=t.indexOf("-END PRIVATE KEY-"))return t0.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var S=t0.getDecryptedKeyHex(t,e),x=new tp;return x.readPKCS5PrvKeyHex(S),x}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var F,w=o(n=t0.getDecryptedKeyHex(t,e),0,[1],"04"),E=o(n,0,[2,0],"06"),k=o(n,0,[3,0],"03").substr(2);if(void 0===tF.crypto.OID.oidhex2name[E])throw"undefined OID(hex) in KJUR.crypto.OID: "+E;return(F=new a({curve:tF.crypto.OID.oidhex2name[E]})).setPublicKeyHex(k),F.setPrivateKeyHex(w),F.isPublic=!1,F}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return v=o(n=t0.getDecryptedKeyHex(t,e),0,[1],"02"),m=o(n,0,[2],"02"),y=o(n,0,[3],"02"),b=o(n,0,[4],"02"),_=o(n,0,[5],"02"),(w=new u).setPrivate(new B(v,16),new B(m,16),new B(y,16),new B(b,16),new B(_,16)),w;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return t0.getKeyFromEncryptedPKCS8PEM(t,e);throw Error("not supported argument")},t0.generateKeypair=function(t,e){if("RSA"==t){(o=new tp).generate(e,"10001"),o.isPrivate=!0,o.isPublic=!0;var r=new tp,n=o.n.toString(16),i=o.e.toString(16);return r.setPublic(n,i),r.isPrivate=!1,r.isPublic=!0,(s={}).prvKeyObj=o,s.pubKeyObj=r,s}if("EC"==t){var o,s,a=new tF.crypto.ECDSA({curve:e}).generateKeyPairHex();return(o=new tF.crypto.ECDSA({curve:e})).setPublicKeyHex(a.ecpubhex),o.setPrivateKeyHex(a.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(r=new tF.crypto.ECDSA({curve:e})).setPublicKeyHex(a.ecpubhex),r.isPrivate=!1,r.isPublic=!0,(s={}).prvKeyObj=o,s.pubKeyObj=r,s}throw"unknown algorithm: "+t},t0.getPEM=function(t,e,r,n,i,o){var s=tF,a=s.asn1,u=a.DERObjectIdentifier,c=a.DERInteger,l=a.ASN1Util.newObject,f=a.x509.SubjectPublicKeyInfo,h=s.crypto,d=h.DSA,p=h.ECDSA;function g(t){return l({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function v(t){return l({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function m(t){return l({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==tp&&t instanceof tp||void 0!==d&&t instanceof d||void 0!==p&&t instanceof p)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return tH(S=new f(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==tp&&t instanceof tp&&(void 0===r||null==r)&&1==t.isPrivate)return tH(S=g(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==p&&t instanceof p&&(void 0===r||null==r)&&1==t.isPrivate){var y=new u({name:t.curveName}).getEncodedHex(),b=v(t).getEncodedHex(),_="";return _+=tH(y,"EC PARAMETERS"),_+=tH(b,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===r||null==r)&&1==t.isPrivate)return tH(S=m(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==tp&&t instanceof tp&&void 0!==r&&null!=r&&1==t.isPrivate){var S=g(t).getEncodedHex();return void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",S,r,n,o)}if("PKCS5PRV"==e&&void 0!==p&&t instanceof p&&void 0!==r&&null!=r&&1==t.isPrivate)return S=v(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",S,r,n,o);if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==r&&null!=r&&1==t.isPrivate)return S=m(t).getEncodedHex(),void 0===n&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",S,r,n,o);var x=function(t,e){var r=F(t,e);return new l({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:r.pbkdf2Salt}},{int:r.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:r.encryptionSchemeIV}}]}]}]},{octstr:{hex:r.ciphertext}}]}).getEncodedHex()},F=function(t,e){var r=E.lib.WordArray.random(8),n=E.lib.WordArray.random(8),i=E.PBKDF2(e,r,{keySize:6,iterations:100}
1),o=E.enc.Hex.parse(t),s=E.TripleDES.encrypt(o,i,{iv:n})+"",a={};return a.ciphertext=s,a.pbkdf2Salt=E.enc.Hex.stringify(r),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=E.enc.Hex.stringify(n),a};if("PKCS8PRV"==e&&null!=tp&&t instanceof tp&&1==t.isPrivate){var w=g(t).getEncodedHex();return S=l({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:w}}]}).getEncodedHex(),void 0===r||null==r?tH(S,"PRIVATE KEY"):tH(b=x(S,r),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==p&&t instanceof p&&1==t.isPrivate)return w=new l({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),S=l({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:w}}]}).getEncodedHex(),void 0===r||null==r?tH(S,"PRIVATE KEY"):tH(b=x(S,r),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return w=new c({bigint:t.x}).getEncodedHex(),S=l({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:w}}]}).getEncodedHex(),void 0===r||null==r?tH(S,"PRIVATE KEY"):tH(b=x(S,r),"ENCRYPTED PRIVATE KEY");throw Error("unsupported object nor format")},t0.getKeyFromCSRPEM=function(t){var e=tV(t,"CERTIFICATE REQUEST");return t0.getKeyFromCSRHex(e)},t0.getKeyFromCSRHex=function(t){var e=t0.parseCSRHex(t);return t0.getKey(e.p8pubkeyhex,null,"pkcs8pub")},t0.parseCSRHex=function(t){var e=tk.getChildIdx,r=tk.getTLV,n={};if("30"!=t.substr(0,2))throw"malformed CSR(code:001)";var i=e(t,0);if(i.length<1)throw"malformed CSR(code:002)";if("30"!=t.substr(i[0],2))throw"malformed CSR(code:003)";var o=e(t,i[0]);if(o.length<3)throw"malformed CSR(code:004)";return n.p8pubkeyhex=r(t,o[2]),n},t0.getKeyID=function(t){"string"==typeof t&&-1!=t.indexOf("BEGIN ")&&(t=t0.getKey(t));var e=tV(t0.getPEM(t)),r=tk.getIdxbyList(e,0,[1]),n=tk.getV(e,r).substring(2);return tF.crypto.Util.hashHex(n,"sha1")},t0.getJWKFromKey=function(t){var e,r={};if(t instanceof tp&&t.isPrivate)return r.kty="RSA",r.n=tj(t.n.toString(16)),r.e=tj(t.e.toString(16)),r.d=tj(t.d.toString(16)),r.p=tj(t.p.toString(16)),r.q=tj(t.q.toString(16)),r.dp=tj(t.dmp1.toString(16)),r.dq=tj(t.dmq1.toString(16)),r.qi=tj(t.coeff.toString(16)),r;if(t instanceof tp&&t.isPublic)return r.kty="RSA",r.n=tj(t.n.toString(16)),r.e=tj(t.e.toString(16)),r;if(t instanceof tF.crypto.ECDSA&&t.isPrivate){if("P-256"!==(e=t.getShortNISTPCurveName())&&"P-384"!==e)throw"unsupported curve name for JWT: "+e;var n=t.getPublicKeyXYHex();return r.kty="EC",r.crv=e,r.x=tj(n.x),r.y=tj(n.y),r.d=tj(t.prvKeyHex),r}if(t instanceof tF.crypto.ECDSA&&t.isPublic){if("P-256"!==(e=t.getShortNISTPCurveName())&&"P-384"!==e)throw"unsupported curve name for JWT: "+e;return n=t.getPublicKeyXYHex(),r.kty="EC",r.crv=e,r.x=tj(n.x),r.y=tj(n.y),r}throw"not supported key object"},tp.getPosArrayOfChildrenFromHex=function(t){return tk.getChildIdx(t,0)},tp.getHexValueArrayOfChildrenFromHex=function(t){var e,r=tk.getV,n=r(t,(e=tp.getPosArrayOfChildrenFromHex(t))[0]),i=r(t,e[1]),o=r(t,e[2]),s=r(t,e[3]),a=r(t,e[4]),u=r(t,e[5]),c=r(t,e[6]),l=r(t,e[7]),f=r(t,e[8]);return(e=[]).push(n,i,o,s,a,u,c,l,f),e},tp.prototype.readPrivateKeyFromPEMString=function(t){var e=tV(t),r=tp.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8])},tp.prototype.readPKCS5PrvKeyHex=function(t){var e=tp.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},tp.prototype.readPKCS8PrvKeyHex=function(t){var e,r,n,i,o,s,a,u,c=tk.getVbyListEx;if(!1===tk.isASN1HEX(t))throw Error("not ASN.1 hex string");try{e=c(t,0,[2,0,1],"02"),r=c(t,0,[2,0,2],"02"),n=c(t,0,[2,0,3],"02"),i=c(t,0,[2,0,4],"02"),o=c(t,0,[2,0,5],"02"),s=c(t,0,[2,0,6],"02"),a=c(t,0,[2,0,7],"02"),u=c(t,0,[2,0,8],"02")}catch(t){throw Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(e,r,n,i,o,s,a,u)},tp.prototype.readPKCS5PubKeyHex=function(t){var e=tk.getV;if(!1===tk.isASN1HEX(t))throw Error("keyHex is not ASN.1 hex string");var r=tk.getChildIdx(t,0);if(2!==r.length||"02"!==t.substr(r[0],2)||"02"!==t.substr(r[1],2))throw Error("wrong hex for PKCS#5 public key");var n=e(t,r[0]),i=e(t,r[1]);this.setPublic(n,i)},tp.prototype.readPKCS8PubKeyHex=function(t){if(!1===tk.isASN1HEX(t))throw Error("not ASN.1 hex string");if("06092a864886f70d010101"!==tk.getTLVbyListEx(t,0,[0,0]))throw Error("not PKCS8 RSA public key");var e=tk.getTLVbyListEx(t,0,[1,0]);this.readPKCS5PubKeyHex(e)},tp.prototype.readCertPubKeyHex=function(t,e){var r,n;(r=new t5).readCertHex(t),n=r.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};var t1=RegExp("[^0-9a-f]","gi");function t2(t,e){for(var r="",n=e/4-t.length,i=0;i<n;i++)r+="0";return r+t}function t3(t,e,r){for(var n="",i=0;n.length<e;)n+=tD(r(tM(t+String.fromCharCode.apply(String,[(0xff000000&i)>>24,(0xff0000&i)>>16,(65280&i)>>8,255&i])))),i+=1;return n}function t4(t){for(var e in tF.crypto.Util.DIGESTINFOHEAD){var r=tF.crypto.Util.DIGESTINFOHEAD[e],n=r.length;if(t.substring(0,n)==r)return[e,t.substring(n)]}return[]}function t5(t){var e,r=tk.getChildIdx,n=tk.getV,i=tk.getTLV,o=tk.getVbyList,s=tk.getVbyListEx,a=tk.getTLVbyList,u=tk.getTLVbyListEx,c=tk.getIdxbyList,l=tk.getIdxbyListEx,f=tk.getVidx,h=tk.oidname,d=tk.hextooidstr;try{e=tF.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(t){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==a(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)}
1,this.getSerialNumberHex=function(){return s(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var t=u(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(t)},this.getAlgorithmIdentifierName=function(t){for(var r in e)if(t===e[r])return r;return h(s(t,0,[0],"06"))},this.getIssuer=function(){return this.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return a(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return t5.hex2dn(this.getIssuerHex())},this.getSubject=function(){return this.getX500Name(this.getSubjectHex())},this.getSubjectHex=function(){return a(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return t5.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=o(this.hex,0,[0,4+this.foffset,0]);return decodeURIComponent(t=t.replace(/(..)/g,"%$1"))},this.getNotAfter=function(){var t=o(this.hex,0,[0,4+this.foffset,1]);return decodeURIComponent(t=t.replace(/(..)/g,"%$1"))},this.getPublicKeyHex=function(){return tk.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return c(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return c(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return t0.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var t=a(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(t)},this.getSignatureValueHex=function(){return o(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmField(),r=this.getSignatureValueHex(),n=a(this.hex,0,[0],"30"),i=new tF.crypto.Signature({alg:e});return i.init(t),i.updateHex(n),i.verify(r)},this.parseExt=function(t){var e,i,s;if(void 0===t){if(s=this.hex,3!==this.version)return -1;e=c(s,0,[0,7,0],"30"),i=r(s,e)}else{var a=c(s=tV(t),0,[0,3,0,0],"06");if("2a864886f70d01090e"!=n(s,a))return void(this.aExtInfo=[]);e=c(s,0,[0,3,0,1,0],"30"),i=r(s,e),this.hex=s}this.aExtInfo=[];for(var u=0;u<i.length;u++){var l={critical:!1},h=0;3===r(s,i[u]).length&&(l.critical=!0,h=1),l.oid=tk.hextooidstr(o(s,i[u],[0],"06"));var d=c(s,i[u],[1+h]);l.vidx=f(s,d),this.aExtInfo.push(l)}},this.getExtInfo=function(t){var e=this.aExtInfo,r=t;if(t.match(/^[0-9.]+$/)||(r=tF.asn1.x509.OID.name2oid(t)),""!==r){for(var n=0;n<e.length;n++)if(e[n].oid===r)return e[n]}},this.getExtBasicConstraints=function(t,e){if(void 0===t&&void 0===e){var r=this.getExtInfo("basicConstraints");if(void 0===r)return;t=i(this.hex,r.vidx),e=r.critical}var o={extname:"basicConstraints"};if(e&&(o.critical=!0),"3000"===t)return o;if("30030101ff"===t)return o.cA=!0,o;if("30060101ff02"===t.substr(0,12)){var s=parseInt(n(t,10),16);return o.cA=!0,o.pathLen=s,o}throw Error("hExtV parse error: "+t)},this.getExtKeyUsage=function(t,e){if(void 0===t&&void 0===e){var r=this.getExtInfo("keyUsage");if(void 0===r)return;t=i(this.hex,r.vidx),e=r.critical}var n={extname:"keyUsage"};return e&&(n.critical=!0),n.names=this.getExtKeyUsageString(t).split(","),n},this.getExtKeyUsageBin=function(t){if(void 0===t){var e=this.getExtInfo("keyUsage");if(void 0===e)return"";t=i(this.hex,e.vidx)}if(8!=t.length&&10!=t.length)throw Error("malformed key usage value: "+t);var r="000000000000000"+parseInt(t.substr(6),16).toString(2);return 8==t.length&&(r=r.slice(-8)),10==t.length&&(r=r.slice(-16)),""==(r=r.replace(/0+$/,""))&&(r="0"),r},this.getExtKeyUsageString=function(t){for(var e=this.getExtKeyUsageBin(t),r=[],n=0;n<e.length;n++)"1"==e.substr(n,1)&&r.push(t5.KEYUSAGE_NAME[n]);return r.join(",")},this.getExtSubjectKeyIdentifier=function(t,e){if(void 0===t&&void 0===e){var r=this.getExtInfo("subjectKeyIdentifier");if(void 0===r)return;t=i(this.hex,r.vidx),e=r.critical}var o={extname:"subjectKeyIdentifier"};return e&&(o.critical=!0),o.kid={hex:n(t,0)},o},this.getExtAuthorityKeyIdentifier=function(t,e){if(void 0===t&&void 0===e){var o=this.getExtInfo("authorityKeyIdentifier");if(void 0===o)return;t=i(this.hex,o.vidx),e=o.critical}var s={extname:"authorityKeyIdentifier"};e&&(s.critical=!0);for(var a=r(t,0),u=0;u<a.length;u++){var c=t.substr(a[u],2);if("80"===c&&(s.kid={hex:n(t,a[u])}),"a1"===c){var l=i(t,a[u]);s.issuer=this.getGeneralNames(l)[0].dn}"82"===c&&(s.sn={hex:n(t,a[u])})}return s},this.getExtExtKeyUsage=function(t,e){if(void 0===t&&void 0===e){var o=this.getExtInfo("extKeyUsage");if(void 0===o)return;t=i(this.hex,o.vidx),e=o.critical}var s={extname:"extKeyUsage",array:[]};e&&(s.critical=!0);for(var a=r(t,0),u=0;u<a.length;u++)s.array.push(h(n(t,a[u])));return s},this.getExtExtKeyUsageName=function(){var t=this.getExtInfo("extKeyUsage");if(void 0===t)return t;var e=[],o=i(this.hex,t.vidx);if(""===o)return e;for(var s=r(o,0),a=0;a<s.length;
1a++)e.push(h(n(o,s[a])));return e},this.getExtSubjectAltName=function(t,e){if(void 0===t&&void 0===e){var r=this.getExtInfo("subjectAltName");if(void 0===r)return;t=i(this.hex,r.vidx),e=r.critical}var n={extname:"subjectAltName",array:[]};return e&&(n.critical=!0),n.array=this.getGeneralNames(t),n},this.getExtIssuerAltName=function(t,e){if(void 0===t&&void 0===e){var r=this.getExtInfo("issuerAltName");if(void 0===r)return;t=i(this.hex,r.vidx),e=r.critical}var n={extname:"issuerAltName",array:[]};return e&&(n.critical=!0),n.array=this.getGeneralNames(t),n},this.getGeneralNames=function(t){for(var e=r(t,0),n=[],o=0;o<e.length;o++){var s=this.getGeneralName(i(t,e[o]));void 0!==s&&n.push(s)}return n},this.getGeneralName=function(t){var e=t.substr(0,2),r=n(t,0),i=tD(r);return"81"==e?{rfc822:i}:"82"==e?{dns:i}:"86"==e?{uri:i}:"87"==e?{ip:tG(r)}:"a4"==e?{dn:this.getX500Name(r)}:void 0},this.getExtSubjectAltName2=function(){var t,e,o,s=this.getExtInfo("subjectAltName");if(void 0===s)return s;for(var a=[],u=i(this.hex,s.vidx),c=r(u,0),l=0;l<c.length;l++)o=u.substr(c[l],2),t=n(u,c[l]),"81"===o&&a.push(["MAIL",e=tL(t)]),"82"===o&&a.push(["DNS",e=tL(t)]),"84"===o&&a.push(["DN",e=t5.hex2dn(t,0)]),"86"===o&&a.push(["URI",e=tL(t)]),"87"===o&&a.push(["IP",e=tG(t)]);return a},this.getExtCRLDistributionPoints=function(t,e){if(void 0===t&&void 0===e){var n=this.getExtInfo("cRLDistributionPoints");if(void 0===n)return;t=i(this.hex,n.vidx),e=n.critical}var o={extname:"cRLDistributionPoints",array:[]};e&&(o.critical=!0);for(var s=r(t,0),a=0;a<s.length;a++){var u=i(t,s[a]);o.array.push(this.getDistributionPoint(u))}return o},this.getDistributionPoint=function(t){for(var e={},n=r(t,0),o=0;o<n.length;o++){var s=t.substr(n[o],2),a=i(t,n[o]);"a0"==s&&(e.dpname=this.getDistributionPointName(a))}return e},this.getDistributionPointName=function(t){for(var e={},n=r(t,0),o=0;o<n.length;o++){var s=t.substr(n[o],2),a=i(t,n[o]);"a0"==s&&(e.full=this.getGeneralNames(a))}return e},this.getExtCRLDistributionPointsURI=function(){var t=this.getExtInfo("cRLDistributionPoints");if(void 0===t)return t;for(var e=[],n=r(this.hex,t.vidx),i=0;i<n.length;i++)try{var s=tL(o(this.hex,n[i],[0,0,0],"86"));e.push(s)}catch(t){}return e},this.getExtAIAInfo=function(){var t=this.getExtInfo("authorityInfoAccess");if(void 0===t)return t;for(var e={ocsp:[],caissuer:[]},n=r(this.hex,t.vidx),i=0;i<n.length;i++){var s=o(this.hex,n[i],[0],"06"),a=o(this.hex,n[i],[1],"86");"2b06010505073001"===s&&e.ocsp.push(tL(a)),"2b06010505073002"===s&&e.caissuer.push(tL(a))}return e},this.getExtAuthorityInfoAccess=function(t,e){if(void 0===t&&void 0===e){var n=this.getExtInfo("authorityInfoAccess");if(void 0===n)return;t=i(this.hex,n.vidx),e=n.critical}var a={extname:"authorityInfoAccess",array:[]};e&&(a.critical=!0);for(var u=r(t,0),c=0;c<u.length;c++){var l=s(t,u[c],[0],"06"),f=tL(o(t,u[c],[1],"86"));if("2b06010505073001"==l)a.array.push({ocsp:f});else{if("2b06010505073002"!=l)throw Error("unknown method: "+l);a.array.push({caissuer:f})}}return a},this.getExtCertificatePolicies=function(t,e){if(void 0===t&&void 0===e){var n=this.getExtInfo("certificatePolicies");if(void 0===n)return;t=i(this.hex,n.vidx),e=n.critical}var o={extname:"certificatePolicies",array:[]};e&&(o.critical=!0);for(var s=r(t,0),a=0;a<s.length;a++){var u=i(t,s[a]),c=this.getPolicyInformation(u);o.array.push(c)}return o},this.getPolicyInformation=function(t){var e={};e.policyoid=h(o(t,0,[0],"06"));var n=l(t,0,[1],"30");if(-1!=n){e.array=[];for(var s=r(t,n),a=0;a<s.length;a++){var u=i(t,s[a]),c=this.getPolicyQualifierInfo(u);e.array.push(c)}}return e},this.getPolicyQualifierInfo=function(t){var e={},r=o(t,0,[0],"06");if("2b06010505070201"===r)e.cps=tD(s(t,0,[1],"16"));else if("2b06010505070202"===r){var n=a(t,0,[1],"30");e.unotice=this.getUserNotice(n)}return e},this.getUserNotice=function(t){for(var e={},n=r(t,0),o=0;o<n.length;o++){var s=i(t,n[o]);"30"!=s.substr(0,2)&&(e.exptext=this.getDisplayText(s))}return e},this.getDisplayText=function(t){var e={};return e.type=({"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"})[t.substr(0,2)],e.str=tD(n(t,0)),e},this.getExtCRLNumber=function(t,e){var r={extname:"cRLNumber"};if(e&&(r.critical=!0),"02"==t.substr(0,2))return r.num={hex:n(t,0)},r;throw Error("hExtV parse error: "+t)},this.getExtCRLReason=function(t,e){var r={extname:"cRLReason"};if(e&&(r.critical=!0),"0a"==t.substr(0,2))return r.code=parseInt(n(t,0),16),r;throw Error("hExtV parse error: "+t)},this.getExtOcspNonce=function(t,e){var r={extname:"ocspNonce"};return e&&(r.critical=!0),r.hex=n(t,0),r}
1,this.getExtOcspNoCheck=function(t,e){var r={extname:"ocspNoCheck"};return e&&(r.critical=!0),r},this.getExtAdobeTimeStamp=function(t,e){if(void 0===t&&void 0===e){var n=this.getExtInfo("adobeTimeStamp");if(void 0===n)return;t=i(this.hex,n.vidx),e=n.critical}var o={extname:"adobeTimeStamp"};e&&(o.critical=!0);var s=r(t,0);if(s.length>1){var a=i(t,s[1]),u=this.getGeneralName(a);null!=u.uri&&(o.uri=u.uri)}if(s.length>2){var c=i(t,s[2]);"0101ff"==c&&(o.reqauth=!0),"010100"==c&&(o.reqauth=!1)}return o},this.getX500NameRule=function(t){for(var e=null,r=[],n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;o++)r.push(i[o]);for(n=0;n<r.length;n++){var s=r[n],a=s.ds,u=s.value,c=s.type;if("prn"!=a&&"utf8"!=a&&"ia5"!=a)return"mixed";if("ia5"==a){if("CN"!=c)return"mixed";if(tF.lang.String.isMail(u))continue;return"mixed"}if("C"==c){if("prn"==a)continue;return"mixed"}if(null==e)e=a;else if(e!==a)return"mixed"}return null==e?"prn":e},this.getX500Name=function(t){var e=this.getX500NameArray(t);return{array:e,str:this.dnarraytostr(e)}},this.getX500NameArray=function(t){for(var e=[],n=r(t,0),o=0;o<n.length;o++)e.push(this.getRDN(i(t,n[o])));return e},this.getRDN=function(t){for(var e=[],n=r(t,0),o=0;o<n.length;o++)e.push(this.getAttrTypeAndValue(i(t,n[o])));return e},this.getAttrTypeAndValue=function(t){var e={type:null,value:null,ds:null},n=r(t,0),i=o(t,n[0],[],"06"),s=o(t,n[1],[]),a=tF.asn1.ASN1Util.oidHexToInt(i);return e.type=tF.asn1.x509.OID.oid2atype(a),e.value=tD(s),e.ds=this.HEX2STAG[t.substr(n[1],2)],e},this.readCertPEM=function(t){this.readCertHex(tV(t))},this.readCertHex=function(t){this.hex=t,this.getVersion();try{c(this.hex,0,[0,7],"a3"),this.parseExt()}catch(t){}},this.getParam=function(){var t={};return t.version=this.getVersion(),t.serial={hex:this.getSerialNumberHex()},t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(),t.notbefore=this.getNotBefore(),t.notafter=this.getNotAfter(),t.subject=this.getSubject(),t.sbjpubkey=tH(this.getPublicKeyHex(),"PUBLIC KEY"),this.aExtInfo.length>0&&(t.ext=this.getExtParamArray()),t.sighex=this.getSignatureValueHex(),t},this.getExtParamArray=function(t){null==t&&-1!=l(this.hex,0,[0,"[3]"])&&(t=u(this.hex,0,[0,"[3]",0],"30"));for(var e=[],n=r(t,0),o=0;o<n.length;o++){var s=i(t,n[o]),a=this.getExtParam(s);null!=a&&e.push(a)}return e},this.getExtParam=function(t){var e=r(t,0).length;if(2!=e&&3!=e)throw Error("wrong number elements in Extension: "+e+" "+t);var n=d(o(t,0,[0],"06")),i=!1;3==e&&"0101ff"==a(t,0,[1])&&(i=!0);var s=a(t,0,[e-1,0]),u=void 0;if("2.5.29.14"==n?u=this.getExtSubjectKeyIdentifier(s,i):"2.5.29.15"==n?u=this.getExtKeyUsage(s,i):"2.5.29.17"==n?u=this.getExtSubjectAltName(s,i):"2.5.29.18"==n?u=this.getExtIssuerAltName(s,i):"2.5.29.19"==n?u=this.getExtBasicConstraints(s,i):"2.5.29.31"==n?u=this.getExtCRLDistributionPoints(s,i):"2.5.29.32"==n?u=this.getExtCertificatePolicies(s,i):"2.5.29.35"==n?u=this.getExtAuthorityKeyIdentifier(s,i):"2.5.29.37"==n?u=this.getExtExtKeyUsage(s,i):"1.3.6.1.5.5.7.1.1"==n?u=this.getExtAuthorityInfoAccess(s,i):"2.5.29.20"==n?u=this.getExtCRLNumber(s,i):"2.5.29.21"==n?u=this.getExtCRLReason(s,i):"1.3.6.1.5.5.7.48.1.2"==n?u=this.getExtOcspNonce(s,i):"1.3.6.1.5.5.7.48.1.5"==n?u=this.getExtOcspNoCheck(s,i):"1.2.840.113583.1.1.9.1"==n&&(u=this.getExtAdobeTimeStamp(s,i)),null!=u)return u;var c={extname:n,extn:s};return i&&(c.critical=!0),c},this.findExt=function(t,e){for(var r=0;r<t.length;r++)if(t[r].extname==e)return t[r];return null},this.updateExtCDPFullURI=function(t,e){var r=this.findExt(t,"cRLDistributionPoints");if(null!=r&&null!=r.array){for(var n=r.array,i=0;i<n.length;i++)if(null!=n[i].dpname&&null!=n[i].dpname.full)for(var o=n[i].dpname.full,s=0;s<o.length;s++){var a=o[i];null!=a.uri&&(a.uri=e)}}},this.updateExtAIAOCSP=function(t,e){var r=this.findExt(t,"authorityInfoAccess");if(null!=r&&null!=r.array)for(var n=r.array,i=0;i<n.length;i++)null!=n[i].ocsp&&(n[i].ocsp=e)},this.updateExtAIACAIssuer=function(t,e){var r=this.findExt(t,"authorityInfoAccess");if(null!=r&&null!=r.array)for(var n=r.array,i=0;i<n.length;i++)null!=n[i].caissuer&&(n[i].caissuer=e)},this.dnarraytostr=function(t){return"/"+t.map(function(t){return t.map(function(t){return t.type+"="+t.value}).join("+")}).join("/")},this.getInfo=function(){var t,e,r;if(t="Basic Fields\n  serial number: "+this.getSerialNumberHex()+"\n"+("  signature algorithm: "+this.getSignatureAlgorithmField())+"\n"+("  issuer: "+this.getIssuerString())+"\n"+("  notBefore: "+this.getNotBefore())+"\n"+("  notAfter: "+this.getNotAfter())+"\n"+("  subject: "+this.getSubjectString())+"\n  subject public key info: \n"+("    key algorithm: "+(e=this.getPublicKey()).type)+"\n","RSA"===e.type&&(t+="    n="+tQ(e.n.toString(16)).substr(0,16)+"...\n",t+="    e="+tQ(e.e.toString(16))+"\n"),null!=(r=this.aExtInfo)){t+="X509v3 Extensions:\n";for(var n=0;n<r.length;n++){var i=r[n],o=tF.asn1.x509.OID.oid2name(i.oid);""===o&&(o=i.oid);var s="";if(!0===i.critical&&(s="CRITICAL"),t+="  "+o+" "+s+":\n","basicConstraints"===o){var a=this.getExtBasicConstraints();void 0===a.cA?t+="    {}\n":(t+="    cA=true",void 0!==a.pathLen&&(t+=", pathLen="+a.pathLen),t+="\n")}else if("keyUsage"===o)t+="    "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"===o)t+="    "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"===o){var u=this.getExtAuthorityKeyIdentifier();void 0!==u.kid&&(t+="    kid="+u.kid.hex+"\n")}else"extKeyUsage"===o?t+="    "+this.getExtExtKeyUsage().array.join(", ")+"\n":"subjectAltName"===o?t+="    "+JSON.stringify(this.getExtSubjectAltName().array).replace(/[\[\]\{\}\"]/g,"")+"\n":"cRLDistributionPoints"===o?t+=function(t){for(var e="",r=t.array,n=0;n<r.length;n++){var i=r[n];try{void 0!==i.dpname.full[0].uri&&(e+="    "+i.dpname.full[0].uri+"\n")}catch(t){}try{void 0!==i.dname.full[0].dn.hex&&(e+="    "+t5.hex2dn(i.dpname.full[0].dn.hex)+"\n")}catch(t){}}return e}(this.getExtCRLDistributionPoints()):"authorityInfoAccess"===o?t+=function(t){for(var e="",r=t.array,n=0;n<r.length;n++){var i=r[n];void 0!==i.caissuer&&(e+="    caissuer: "+i.caissuer+"\n"),void 0!==i.ocsp&&(e+="    ocsp: "+i.ocsp+"\n")}return e}(this.getExtAuthorityInfoAccess()):"certificatePolicies"===o&&(t+=function(t){for(var e="",r=t.array,n=0;n<r.length;n++){var i=r[n];if(e+="    policy oid: "+i.policyoid+"\n",void 0!==i.array)for(var o=0;o<i.array.length;o++){var s=i.array[o];void 0!==s.cps&&(e+="    cps: "+s.cps+"\n")}}return e}(this.getExtCertificatePolicies()))}}return t+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n",t+="signature: "+this.getSignatureValueHex().substr(0,16)+"...\n"},"string"==typeof t&&(-1!=t.indexOf("-----BEGIN")?this.readCertPEM(t):tF.lang.String.isHex(t)&&this.readCertHex(t))}tp.prototype.sign=function(t,e){var r=tF.crypto.Util.hashString(t,e);return this.signWithMessageHash(r,e)},tp.prototype.signWithMessageHash=function(t,e){var r=th(tF.crypto.Util.getPaddedDigestInfoHex(t,e,this.n.bitLength()),16);
vendor: 8,306 bytes, line 1
1return t2(this.doPrivate(r).toString(16),this.n.bitLength())},tp.prototype.signPSS=function(t,e,r){var n,i=(n=tM(t),tF.crypto.Util.hashHex(n,e));return void 0===r&&(r=-1),this.signWithMessageHashPSS(i,e,r)},tp.prototype.signWithMessageHashPSS=function(t,e,r){var n,i=tD(t),o=i.length,s=this.n.bitLength()-1,a=Math.ceil(s/8),u=function(t){return tF.crypto.Util.hashHex(t,e)};if(-1===r||void 0===r)r=o;else if(-2===r)r=a-o-2;else if(r<-2)throw Error("invalid salt length");if(a<o+r+2)throw Error("data too long");var c="";r>0&&(c=Array(r),(new tf).nextBytes(c),c=String.fromCharCode.apply(String,c));var l=tD(u(tM("\0\0\0\0\0\0\0\0"+i+c))),f=[];for(n=0;n<a-r-o-2;n+=1)f[n]=0;var h=String.fromCharCode.apply(String,f)+"\x01"+c,d=t3(l,h.length,u),p=[];for(n=0;n<h.length;n+=1)p[n]=h.charCodeAt(n)^d.charCodeAt(n);for(p[0]&=~(65280>>8*a-s&255),n=0;n<o;n++)p.push(l.charCodeAt(n));return p.push(188),t2(this.doPrivate(new B(p)).toString(16),this.n.bitLength())},tp.prototype.verify=function(t,e){var r=th(e=(e=e.replace(t1,"")).replace(/[ \n]+/g,""),16);if(r.bitLength()>this.n.bitLength())return 0;var n=t4(this.doPublic(r).toString(16).replace(/^1f+00/,""));if(0==n.length)return!1;var i=n[0];return n[1]==tF.crypto.Util.hashString(t,i)},tp.prototype.verifyWithMessageHash=function(t,e){if(e.length!=Math.ceil(this.n.bitLength()/4))return!1;var r=th(e,16);if(r.bitLength()>this.n.bitLength())return 0;var n=t4(this.doPublic(r).toString(16).replace(/^1f+00/,""));return 0!=n.length&&(n[0],n[1]==t)},tp.prototype.verifyPSS=function(t,e,r,n){var i,o=(i=tM(t),tF.crypto.Util.hashHex(i,r));return void 0===n&&(n=-1),this.verifyWithMessageHashPSS(o,e,r,n)},tp.prototype.verifyWithMessageHashPSS=function(t,e,r,n){if(e.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,o=new B(e,16),s=function(t){return tF.crypto.Util.hashHex(t,r)},a=tD(t),u=a.length,c=this.n.bitLength()-1,l=Math.ceil(c/8);if(-1===n||void 0===n)n=u;else if(-2===n)n=l-u-2;else if(n<-2)throw Error("invalid salt length");if(l<u+n+2)throw Error("data too long");var f=this.doPublic(o).toByteArray();for(i=0;i<f.length;i+=1)f[i]&=255;for(;f.length<l;)f.unshift(0);if(188!==f[l-1])throw Error("encoded message does not end in 0xbc");var h=(f=String.fromCharCode.apply(String,f)).substr(0,l-u-1),d=f.substr(h.length,u),p=65280>>8*l-c&255;if(0!=(h.charCodeAt(0)&p))throw Error("bits beyond keysize not zero");var g=t3(d,h.length,s),v=[];for(i=0;i<h.length;i+=1)v[i]=h.charCodeAt(i)^g.charCodeAt(i);v[0]&=~p;var m=l-u-n-2;for(i=0;i<m;i+=1)if(0!==v[i])throw Error("leftmost octets not zero");if(1!==v[m])throw Error("0x01 marker not found");return d===tD(s(tM("\0\0\0\0\0\0\0\0"+a+String.fromCharCode.apply(String,v.slice(-n)))))},tp.SALT_LEN_HLEN=-1,tp.SALT_LEN_MAX=-2,tp.SALT_LEN_RECOVER=-2,t5.hex2dn=function(t,e){if(void 0===e&&(e=0),"30"!==t.substr(e,2))throw Error("malformed DN");for(var r=[],n=tk.getChildIdx(t,e),i=0;i<n.length;i++)r.push(t5.hex2rdn(t,n[i]));return"/"+(r=r.map(function(t){return t.replace("/","\\/")})).join("/")},t5.hex2rdn=function(t,e){if(void 0===e&&(e=0),"31"!==t.substr(e,2))throw Error("malformed RDN");for(var r=[],n=tk.getChildIdx(t,e),i=0;i<n.length;i++)r.push(t5.hex2attrTypeValue(t,n[i]));return(r=r.map(function(t){return t.replace("+","\\+")})).join("+")},t5.hex2attrTypeValue=function(t,e){var r=tk.getV;if(void 0===e&&(e=0),"30"!==t.substr(e,2))throw Error("malformed attribute type and value");var n=tk.getChildIdx(t,e);2!==n.length||t.substr(n[0],2);var i=r(t,n[0]),o=tF.asn1.ASN1Util.oidHexToInt(i);return tF.asn1.x509.OID.oid2atype(o)+"="+tD(r(t,n[1]))},t5.getPublicKeyFromCertHex=function(t){var e=new t5;return e.readCertHex(t),e.getPublicKey()},t5.getPublicKeyFromCertPEM=function(t){var e=new t5;return e.readCertPEM(t),e.getPublicKey()},t5.getPublicKeyInfoPropOfCertPEM=function(t){var e,r,n=tk.getVbyList,i={};return i.algparam=null,(e=new t5).readCertPEM(t),i.keyhex=n(r=e.getPublicKeyHex(),0,[1],"03").substr(2),i.algoid=n(r,0,[0,0],"06"),"2a8648ce3d0201"===i.algoid&&(i.algparam=n(r,0,[0,1],"06")),i},t5.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"],void 0!==tF&&tF||(e.KJUR=tF={}),void 0!==tF.jws&&tF.jws||(tF.jws={}),tF.jws.JWS=function(){var t=tF.jws.JWS.isSafeJSONString;this.parseJWS=function(e,r){if(void 0===this.parsedJWS||!r&&void 0===this.parsedJWS.sigvalH){var n=e.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==n)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var i=n[1],o=n[2],s=n[3],a=i+"."+o;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=o,this.parsedJWS.sigvalB64U=s,this.parsedJWS.si=a,!r){var u=tN(s),c=th(u,16);this.parsedJWS.sigvalH=u,this.parsedJWS.sigvalBI=c}var l=tE(i),f=tE(o);if(this.parsedJWS.headS=l,this.parsedJWS.payloadS=f,!t(l,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+l}}},tF.jws.JWS.sign=function(t,e,r,n,i){var o,s,a,u,c=tF,f=c.jws.JWS,h=f.readSafeJSONString,d=f.isSafeJSONString,p=c.crypto,g=(p.ECDSA,p.Mac),v=p.Signature,m=JSON;if("string"!=typeof e&&"object"!=(void 0===e?"undefined":l(e)))throw"spHeader must be JSON string or object: "+e;if("object"==(void 0===e?"undefined":l(e))&&(a=e,s=m.stringify(a)),"string"==typeof e){if(!d(s=e))throw"JWS Head is not safe JSON string: "+s;a=h(s)}if(u=r,"object"==(void 0===r?"undefined":l(r))&&(u=m.stringify(r)),""!=t&&null!=t||void 0===a.alg||(t=a.alg),""!=t&&null!=t&&void 0===a.alg&&(a.alg=t,s=m.stringify(a)),t!==a.alg)throw"alg and sHeader.alg doesn't match: "+t+"!="+a.alg;var y=null;if(void 0===f.jwsalg2sigalg[t])throw"unsupported alg name: "+t;y=f.jwsalg2sigalg[t];var b=tw(s)+"."+tw(u),_="";if("Hmac"==y.substr(0,4)){if(void 0===n)throw"mac key shall be specified for HS* alg";var S=new g({alg:y,prov:"cryptojs",pass:n});S.updateString(b),_=S.doFinal()}else if(-1!=y.indexOf("withECDSA")){(o=new v({alg:y})).init(n,i),o.updateString(b);var x=o.sign();_=tF.crypto.ECDSA.asn1SigToConcatSig(x)}else"none"!=y&&((o=new v({alg:y})).init(n,i),o.updateString(b),_=o.sign());return b+"."+tj(_)},tF.jws.JWS.verify=function(t,e,r){var n,i=tF,o=i.jws.JWS,s=o.readSafeJSONString,a=i.crypto,u=a.ECDSA,c=a.Mac,f=a.Signature;void 0!==l(tp)&&(n=tp);var h=t.split(".");if(3!==h.length)return!1;var d=h[0]+"."+h[1],p=tN(h[2]),g=s(tE(h[0])),v=null,m=null;if(void 0===g.alg)throw"algorithm not specified in header";if(m=(v=g.alg).substr(0,2),null!=r&&"[object Array]"===Object.prototype.toString.call(r)&&r.length>0&&-1==(":"+r.join(":")+":").indexOf(":"+v+":"))throw"algorithm '"+v+"' not accepted in the list";if("none"!=v&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=t0.getKey(e)),!("RS"!=m&&"PS"!=m||e instanceof n))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==m&&!(e instanceof u))throw"key shall be a ECDSA obj for ES* algs";var y=null;if(void 0===o.jwsalg2sigalg[g.alg])throw"unsupported alg name: "+v;if("none"==(y=o.jwsalg2sigalg[v]))throw"not supported";if("Hmac"==y.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var b=new c({alg:y,pass:e});return b.updateString(d),p==b.doFinal()}if(-1!=y.indexOf("withECDSA")){var _,S=null;try{S=u.concatSigToASN1Sig(p)}catch(t){return!1}return(_=new f({alg:y})).init(e),_.updateString(d),_.verify(S)}return(_=new f({alg:y})).init(e),_.updateString(d),_.verify(p)},tF.jws.JWS.parse=function(t){var e,r,n,i=t.split("."),o={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=i[0],r=i[1],3==i.length&&(n=i[2]),o.headerObj=tF.jws.JWS.readSafeJSONString(tE(e)),o.payloadObj=tF.jws.JWS.readSafeJSONString(tE(r)),o.headerPP=JSON.stringify(o.headerObj,null,"  "),null==o.payloadObj?o.payloadPP=tE(r):o.payloadPP=JSON.stringify(o.payloadObj,null,"  "),void 0!==n&&(o.sigHex=tN(n)),o},tF.jws.JWS.verifyJWT=function(t,e,r){var n=tF.jws,i=n.JWS,o=i.readSafeJSONString,s=i.inArray,a=i.includedArray,u=t.split("."),c=u[0],f=u[1],h=(tN(u[2]),o(tE(c))),d=o(tE(f));if(void 0===h.alg)return!1;if(void 0===r.alg)throw"acceptField.alg shall be specified";if(!s(h.alg,r.alg)||void 0!==d.iss&&"object"===l(r.iss)&&!s(d.iss,r.iss)||void 0!==d.sub&&"object"===l(r.sub)&&!s(d.sub,r.sub))return!1;if(void 0!==d.aud&&"object"===l(r.aud)){if("string"==typeof d.aud){
1if(!s(d.aud,r.aud))return!1}else if("object"==l(d.aud)&&!a(d.aud,r.aud))return!1}var p=n.IntDate.getNow();return void 0!==r.verifyAt&&"number"==typeof r.verifyAt&&(p=r.verifyAt),void 0!==r.gracePeriod&&"number"==typeof r.gracePeriod||(r.gracePeriod=0),!(void 0!==d.exp&&"number"==typeof d.exp&&d.exp+r.gracePeriod<p)&&!(void 0!==d.nbf&&"number"==typeof d.nbf&&p<d.nbf-r.gracePeriod)&&!(void 0!==d.iat&&"number"==typeof d.iat&&p<d.iat-r.gracePeriod)&&(void 0===d.jti||void 0===r.jti||d.jti===r.jti)&&!!i.verify(t,e,r.alg)},tF.jws.JWS.includedArray=function(t,e){var r=tF.jws.JWS.inArray;if(null===t||"object"!==(void 0===t?"undefined":l(t))||"number"!=typeof t.length)return!1;for(var n=0;n<t.length;n++)if(!r(t[n],e))return!1;return!0},tF.jws.JWS.inArray=function(t,e){if(null===e||"object"!==(void 0===e?"undefined":l(e))||"number"!=typeof e.length)return!1;for(var r=0;r<e.length;r++)if(e[r]==t)return!0;return!1},tF.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},tF.jws.JWS.isSafeJSONString=function(t,e,r){var n=null;try{return"object"!=(void 0===(n=ty(t))?"undefined":l(n))||n.constructor===Array?0:(e&&(e[r]=n),1)}catch(t){return 0}},tF.jws.JWS.readSafeJSONString=function(t){var e=null;try{return"object"!=(void 0===(e=ty(t))?"undefined":l(e))||e.constructor===Array?null:e}catch(t){return null}},tF.jws.JWS.getEncodedSignatureValueFromJWS=function(t){var e=t.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==e)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return e[1]},tF.jws.JWS.getJWKthumbprint=function(t){if("RSA"!==t.kty&&"EC"!==t.kty&&"oct"!==t.kty)throw"unsupported algorithm for JWK Thumprint";var e="{";if("RSA"===t.kty){if("string"!=typeof t.n||"string"!=typeof t.e)throw"wrong n and e value for RSA key";e+='"e":"'+t.e+'",'+('"kty":"'+t.kty)+'",'+('"n":"'+t.n)+'"}'}else if("EC"===t.kty){if("string"!=typeof t.crv||"string"!=typeof t.x||"string"!=typeof t.y)throw"wrong crv, x and y value for EC key";e+='"crv":"'+t.crv+'",'+('"kty":"'+t.kty)+'",'+('"x":"'+t.x)+'",'+('"y":"'+t.y)+'"}'}else if("oct"===t.kty){if("string"!=typeof t.k)throw"wrong k value for oct(symmetric) key";e+='"kty":"'+t.kty+'",'+('"k":"'+t.k)+'"}'}var r=tM(e);return tj(tF.crypto.Util.hashHex(r,"sha256"))},tF.jws.IntDate={},tF.jws.IntDate.get=function(t){var e=tF.jws.IntDate,r=e.getNow,n=e.getZulu;if("now"==t)return r();if("now + 1hour"==t)return r()+3600;if("now + 1day"==t)return r()+86400;if("now + 1month"==t)return r()+2592e3;if("now + 1year"==t)return r()+31536e3;if(t.match(/Z$/))return n(t);if(t.match(/^[0-9]+$/))return parseInt(t);throw"unsupported format: "+t},tF.jws.IntDate.getZulu=function(t){return tz(t)},tF.jws.IntDate.getNow=function(){return~~(new Date/1e3)},tF.jws.IntDate.intDate2UTCString=function(t){return new Date(1e3*t).toUTCString()},tF.jws.IntDate.intDate2Zulu=function(t){var e=new Date(1e3*t);return("0000"+e.getUTCFullYear()).slice(-4)+("00"+(e.getUTCMonth()+1)).slice(-2)+("00"+e.getUTCDate()).slice(-2)+("00"+e.getUTCHours()).slice(-2)+("00"+e.getUTCMinutes()).slice(-2)+("00"+e.getUTCSeconds()).slice(-2)+"Z"},e.SecureRandom=tf,e.rng_seed_time=ta,e.BigInteger=B,e.RSAKey=tp,e.EDSA=tF.crypto.EDSA,e.DSA=tF.crypto.DSA,e.Signature=tF.crypto.Signature,e.MessageDigest=tF.crypto.MessageDigest,e.Mac=tF.crypto.Mac,e.Cipher=tF.crypto.Cipher,e.KEYUTIL=t0,e.ASN1HEX=tk,e.X509=t5,e.CryptoJS=E,e.b64tohex=M,e.b64toBA=U,e.stoBA=tA,e.BAtos=tP,e.BAtohex=tC,e.stohex=tI,e.stob64=function(t){return D(tI(t))},e.stob64u=function(t){return tT(D(tI(t)))},e.b64utos=function(t){return tP(U(tR(t)))},e.b64tob64u=tT,e.b64utob64=tR,e.hex2b64=D,e.hextob64u=tj,e.b64utohex=tN,e.utf8tob64u=tw,e.b64utoutf8=tE,e.utf8tob64=function(t){return D(tq(t$(t)))},e.b64toutf8=function(t){return decodeURIComponent(tW(M(t)))},e.utf8tohex=tO,e.hextoutf8=tL,e.hextorstr=tD,e.rstrtohex=tM,e.hextob64=function(t){return D(t)},e.hextob64nl=tU,e.b64nltohex=tB,e.hextopem=tH,e.pemtohex=tV,e.hextoArrayBuffer=function(t){if(t.length%2!=0)throw"input is not even length";if(null==t.match(/^[0-9A-Fa-f]+$/))throw"input is not hexadecimal";for(var e=new ArrayBuffer(t.length/2),r=new DataView(e),n=0;n<t.length/2;n++)r.setUint8(n,parseInt(t.substr(2*n,2),16));return e},e.ArrayBuffertohex=function(t){for(var e="",r=new DataView(t),n=0;n<t.byteLength;n++)e+=("00"+r.getUint8(n).toString(16)).slice(-2);return e},e.zulutomsec=tK,e.zulutosec=tz,e.zulutodate=function(t){return new Date(tK(t))},e.datetozulu=function(t,e,r){var n,i=t.getUTCFullYear();if(e){if(i<1950||2049<i)throw"not proper year for UTCTime: "+i;n=(""+i).slice(-2)}else n=("000"+i).slice(-4);if(n+=("0"+(t.getUTCMonth()+1)).slice(-2),n+=("0"+t.getUTCDate()).slice(-2),n+=("0"+t.getUTCHours()).slice(-2),n+=("0"+t.getUTCMinutes()).slice(-2),n+=("0"+t.getUTCSeconds()).slice(-2),r){var o=t.getUTCMilliseconds();0!==o&&(n+="."+(o=(o=("00"+o).slice(-3)).replace(/0+$/g,"")))}return n+"Z"},e.uricmptohex=tq,e.hextouricmp=tW,e.ipv6tohex=tJ,e.hextoipv6=tY,e.hextoip=tG,e.iptohex=function(t){var e="malformed IP address";if(!(t=t.toLowerCase(t)).match(/^[0-9.]+$/)){if(t.match(/^[0-9a-f:]+$/)&&-1!==t.indexOf(":"))return tJ(t);throw e}var r=t.split(".");if(4!==r.length)throw e;var n="";try{for(var i=0;i<4;i++)n+=("0"+parseInt(r[i]).toString(16)).slice(-2);return n}catch(t){throw e}},e.encodeURIComponentAll=t$,e.newline_toUnix=function(t){return t.replace(/\r\n/gm,"\n")},e.newline_toDos=function(t){return(t=t.replace(/\r\n/gm,"\n")).replace(/\n/gm,"\r\n")},e.hextoposhex=tQ,e.intarystrtohex=function(t){t=(t=(t=t.replace(/^\s*\[\s*/,"")).replace(/\s*\]\s*$/,"")).replace(/\s*/g,"");try{return t.split(/,/).map(function(t,e,r){var n=parseInt(t);if(n<0||255<n)throw"integer not in range 0-255";return("00"+n.toString(16)).slice(-2)}).join("")}catch(t){throw"malformed integer array string: "+t}},e.strdiffidx=function(t,e){var r=t.length;t.length>e.length&&(r=e.length);for(var n=0;n<r;n++)if(t.charCodeAt(n)!=e.charCodeAt(n))return n;return t.length!=e.length?r:-1},e.KJUR=tF,e.crypto=tF.crypto,e.asn1=tF.asn1,e.jws=tF.jws,e.lang=tF.lang}).call(this,r(28).Buffer)},function(t,e,r){"use strict";(function(t){var n=r(30),i=r(31),o=r(32);function s(){return u.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function a(t,e){if(s()<e)throw RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);
1if("number"==typeof t){if("string"==typeof e)throw Error("If encoding is specified then the first argument must be a string");return f(this,t)}return c(this,t,e,r)}function c(t,e,r,n){if("number"==typeof e)throw TypeError('"value" argument must not be a number');return"u">typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e),t}(t,e,r,n):"string"==typeof e?function(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw TypeError('"encoding" must be a valid string encoding');var n=0|p(e,r),i=(t=a(t,n)).write(e,r);return i!==n&&(t=t.slice(0,i)),t}(t,e,r):function(t,e){if(u.isBuffer(e)){var r,n=0|d(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("u">typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw TypeError('"size" argument must be a number');if(t<0)throw RangeError('"size" argument must not be negative')}function f(t,e){if(l(e),t=a(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|d(e.length);t=a(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function d(t){if(t>=s())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("u">typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(t).length;default:if(n)return I(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var i,o,s,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n,i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var o="",s=e;s<r;++s){o+=(n=t[s])<16?"0"+n.toString(16):n.toString(16)}return o}(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,s=r,0===o&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function v(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,i){if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),isNaN(r*=1)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;
vendor: 10,016 bytes, line 1
1o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else -1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(c(t,o+h)!==c(e,h)){f=!1;break}if(f)return o}return -1}function b(t,e,r,n){return R(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function _(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,c=t[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}var h=n.length;if(h<=S)return String.fromCharCode.apply(String,n);for(var d="",p=0;p<h;)d+=String.fromCharCode.apply(String,n.slice(p,p+=S));return d}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return c(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"u">typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return l(t),t<=0?a(null,t):void 0!==e?"string"==typeof r?a(null,t).fill(e,r):a(null,t).fill(e):a(null,t)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var r,n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(!u.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0==arguments.length?_(this,0,t):g.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),c=this.slice(n,i),l=t.slice(e,r),f=0;f<a;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:+(s<o)},u.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i,o,s,a,u,c,l=this.length-e;if((void 0===r||r>l)&&(r=l),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))break;t[r+s]=a}return s}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,R(I(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return b(this,t,e,r);case"base64":return s=e,a=r,R(T(t),this,s,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=e,c=r,R(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-u),this,u,c);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function x(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,i,o){if(!u.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function w(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function E(t,e,r,n){e<0&&(e=0xffffffff+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function k(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function A(t,e,r,n,o){return o||k(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,o){return o||k(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||x(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||x(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||x(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||x(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||x(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt16BE=function(t,e){e||x(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt32LE=function(t,e){return e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||x(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||x(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||x(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||x(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){t*=1,e|=0,r|=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){t*=1,e|=0,r|=0,n||F(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):w(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
18,this[e+1]=255&t):w(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,4,0xffffffff,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):E(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,4,0xffffffff,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):E(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e|=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e|=0,!n){var i=Math.pow(2,8*r-1);F(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):w(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):w(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,4,0x7fffffff,-0x80000000),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):E(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t*=1,e|=0,r||F(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):E(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("sourceStart out of bounds");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i,o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=u.isBuffer(t)?t:I(new u(t,n).toString()),a=s.length;for(i=0;i<r-e;++i)this[i+e]=s[i%a]}return this};var C=/[^+\/0-9A-Za-z-_]/g;function I(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function T(t){return n.toByteArray(function(t){var e;if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(C,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function R(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(29))},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),s=n[0],a=n[1],u=new o(3*(s+a)/4-a),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[l++]=e>>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===a&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>
14,u[l++]=255&e),1===a&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(function(t,e,r){for(var i,o=[],s=e;s<r;s+=3)o.push(n[(i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(e=t[r-1])>>2]+n[e<<4&63]+"=="):2===i&&o.push(n[(e=(t[r-2]<<8)+t[r-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],i=[],o="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return -1===r&&(r=e),[r,r===e?0:4-r%4]}i[45]=62,i[95]=63},function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=c}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=5960464477539062e-23*(23===i),d=n?0:o-1,p=n?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+d]=255&s,d+=p,s/=256,c-=8);t[r+d-p]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.jws,r=t.KeyUtil,i=t.X509,o=t.crypto,s=t.hextob64u,a=t.b64tohex,u=t.AllowedSigningAlgs;function c(){if(!(this instanceof c))throw TypeError("Cannot call a class as a function")}return c.parseJwt=function(t){n.Log.debug("JoseUtil.parseJwt");try{var r=e.JWS.parse(t);return{header:r.headerObj,payload:r.payloadObj}}catch(t){n.Log.error(t)}},c.validateJwt=function(t,e,o,s,u,l,f){n.Log.debug("JoseUtil.validateJwt");try{if("RSA"===e.kty)if(e.e&&e.n)e=r.getKey(e);else{if(!e.x5c||!e.x5c.length)return n.Log.error("JoseUtil.validateJwt: RSA key missing key material",e),Promise.reject(Error("RSA key missing key material"));var h=a(e.x5c[0]);e=i.getPublicKeyFromCertHex(h)}else{if("EC"!==e.kty)return n.Log.error("JoseUtil.validateJwt: Unsupported key type",e&&e.kty),Promise.reject(Error(e.kty));if(!(e.crv&&e.x&&e.y))return n.Log.error("JoseUtil.validateJwt: EC key missing key material",e),Promise.reject(Error("EC key missing key material"));e=r.getKey(e)}return c._validateJwt(t,e,o,s,u,l,f)}catch(t){return n.Log.error(t&&t.message||t),Promise.reject("JWT validation failed")}},c.validateJwtAttributes=function(t,e,r,i,o,s){i||(i=0),o||(o=parseInt(Date.now()/1e3));var a=c.parseJwt(t).payload;if(!a.iss)return n.Log.error("JoseUtil._validateJwt: issuer was not provided"),Promise.reject(Error("issuer was not provided"));if(a.iss!==e)return n.Log.error("JoseUtil._validateJwt: Invalid issuer in token",a.iss),Promise.reject(Error("Invalid issuer in token: "+a.iss));if(!a.aud)return n.Log.error("JoseUtil._validateJwt: aud was not provided"),Promise.reject(Error("aud was not provided"));if(!(a.aud===r||Array.isArray(a.aud)&&a.aud.indexOf(r)>=0))return n.Log.error("JoseUtil._validateJwt: Invalid audience in token",a.aud),Promise.reject(Error("Invalid audience in token: "+a.aud));if(a.azp&&a.azp!==r)return n.Log.error("JoseUtil._validateJwt: Invalid azp in token",a.azp),Promise.reject(Error("Invalid azp in token: "+a.azp));if(!s){var u=o+i,l=o-i;if(!a.iat)return n.Log.error("JoseUtil._validateJwt: iat was not provided"),Promise.reject(Error("iat was not provided"));if(u<a.iat)return n.Log.error("JoseUtil._validateJwt: iat is in the future",a.iat),Promise.reject(Error("iat is in the future: "+a.iat));if(a.nbf&&u<a.nbf)return n.Log.error("JoseUtil._validateJwt: nbf is in the future",a.nbf),Promise.reject(Error("nbf is in the future: "+a.nbf));if(!a.exp)return n.Log.error("JoseUtil._validateJwt: exp was not provided"),Promise.reject(Error("exp was not provided"));if(a.exp<l)return n.Log.error("JoseUtil._validateJwt: exp is in the past",a.exp
1),Promise.reject(Error("exp is in the past:"+a.exp))}return Promise.resolve(a)},c._validateJwt=function(t,r,i,o,s,a,l){return c.validateJwtAttributes(t,i,o,s,a,l).then(function(i){try{return e.JWS.verify(t,r,u)?i:(n.Log.error("JoseUtil._validateJwt: signature validation failed"),Promise.reject(Error("signature validation failed")))}catch(t){return n.Log.error(t&&t.message||t),Promise.reject(Error("signature validation failed"))}})},c.hashString=function(t,e){try{return o.Util.hashString(t,e)}catch(t){n.Log.error(t)}},c.hexToBase64Url=function(t){try{return s(t)}catch(t){n.Log.error(t)}},c};var n=r(0);t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SigninResponse=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(3);e.SigninResponse=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#";if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=i.UrlUtility.parseUrlFragment(e,r);this.error=n.error,this.error_description=n.error_description,this.error_uri=n.error_uri,this.code=n.code,this.state=n.state,this.id_token=n.id_token,this.session_state=n.session_state,this.access_token=n.access_token,this.token_type=n.token_type,this.scope=n.scope,this.profile=void 0,this.expires_in=n.expires_in}return n(t,[{key:"expires_in",get:function(){if(this.expires_at){var t=parseInt(Date.now()/1e3);return this.expires_at-t}},set:function(t){var e=parseInt(t);if("number"==typeof e&&e>0){var r=parseInt(Date.now()/1e3);this.expires_at=r+e}}},{key:"expired",get:function(){var t=this.expires_in;if(void 0!==t)return t<=0}},{key:"scopes",get:function(){return(this.scope||"").split(" ")}},{key:"isOpenIdConnect",get:function(){return this.scopes.indexOf("openid")>=0||!!this.id_token}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutRequest=void 0;var n=r(0),i=r(3),o=r(9);e.SignoutRequest=function t(e){var r=e.url,s=e.id_token_hint,a=e.post_logout_redirect_uri,u=e.data,c=e.extraQueryParams,l=e.request_type;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),!r)throw n.Log.error("SignoutRequest.ctor: No url passed"),Error("url");for(var f in s&&(r=i.UrlUtility.addQueryParam(r,"id_token_hint",s)),a&&(r=i.UrlUtility.addQueryParam(r,"post_logout_redirect_uri",a),u&&(this.state=new o.State({data:u,request_type:l}),r=i.UrlUtility.addQueryParam(r,"state",this.state.id))),c)r=i.UrlUtility.addQueryParam(r,f,c[f]);this.url=r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SignoutResponse=void 0;var n=r(3);e.SignoutResponse=function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var r=n.UrlUtility.parseUrlFragment(e,"?");this.error=r.error,this.error_description=r.error_description,this.error_uri=r.error_uri,this.state=r.state}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryWebStorage=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0);e.InMemoryWebStorage=function(){function t(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this._data={}}return t.prototype.getItem=function(t){return i.Log.debug("InMemoryWebStorage.getItem",t),this._data[t]},t.prototype.setItem=function(t,e){i.Log.debug("InMemoryWebStorage.setItem",t),this._data[t]=e},t.prototype.removeItem=function(t){i.Log.debug("InMemoryWebStorage.removeItem",t),delete this._data[t]},t.prototype.key=function(t){return Object.getOwnPropertyNames(this._data)[t]},n(t,[{key:"length",get:function(){return Object.getOwnPropertyNames(this._data).length}}]),t}()},function(t,e,r){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.UserManager=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0),o=r(10),s=r(39),a=r(15),u=r(45),c=r(47),l=r(18),f=r(8),h=r(20),d=r(11),p=r(4);e.UserManager=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.SilentRenewService,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.SessionMonitor,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.TokenRevocationClient,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d.TokenClient,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:p.JoseUtil;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),r instanceof s.UserManagerSettings||(r=new s.UserManagerSettings(r));var v=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,t.call(this,r));return v._events=new u.UserManagerEvents(r),v._silentRenewService=new n(v),v.settings.automaticSilentRenew&&(i.Log.debug("UserManager.ctor: automaticSilentRenew is configured, setting up silent renew"),v.startSilentRenew()),v.settings.monitorSession&&(i.Log.debug("UserManager.ctor: monitorSession is configured, setting up session monitor"),v._sessionMonitor=new o(v)),v._tokenRevocationClient=new a(v._settings),v._tokenClient=new f(v._settings),v._joseUtil=g,v}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getUser=function(){var t=this;return this._loadUser().then(function(e){return e?(i.Log.info("UserManager.getUser: user loaded"),t._events.load(e,!1),e):(i.Log.info("UserManager.getUser: user not found in storage"),null)})},e.prototype.removeUser=function(){var t=this;return this.storeUser(null).then(function(){i.Log.info("UserManager.removeUser: user removed from storage"),t._events.unload()})},e.prototype.signinRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:r";var e={useReplaceToNavigate:t.useReplaceToNavigate};return this._signinStart(t,this._redirectNavigator,e).then(function(){i.Log.info("UserManager.signinRedirect: successful")})},e.prototype.signinRedirectCallback=function(t){return this._signinEnd(t||this._redirectNavigator.url).then(function(t){return t.profile&&t.profile.sub?i.Log.info("UserManager.signinRedirectCallback: successful, signed in sub: ",t.profile.sub):i.Log.info("UserManager.signinRedirectCallback: no sub"),t})},e.prototype.signinPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="si:p";var e=t.redirect_uri||this.settings.popup_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.display="popup",this._signin(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(t){return t&&(t.profile&&t.profile.sub?i.Log.info("UserManager.signinPopup: signinPopup successful, signed in sub: ",t.profile.sub):i.Log.info("UserManager.signinPopup: no sub")),t})):(i.Log.error("UserManager.signinPopup: No popup_redirect_uri or redirect_uri configured"),Promise.reject(Error("No popup_redirect_uri or redirect_uri configured")))},e.prototype.signinPopupCallback=function(t){return this._signinCallback(t,this._popupNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?i.Log.info("UserManager.signinPopupCallback: successful, signed in sub: ",t.profile.sub):i.Log.info("UserManager.signinPopupCallback: no sub")),t}).catch(function(t){i.Log.error(t.message)})},e.prototype.signinSilent=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e=Object.assign({},e),this._loadUser().then(function(r){return r&&r.refresh_token?(e.refresh_token=r.refresh_token,t._useRefreshToken(e)):(e.request_type="si:s",e.id_token_hint=e.id_token_hint||t.settings.includeIdTokenInSilentRenew&&r&&r.id_token,r&&t._settings.val
1idateSubOnSilentRenew&&(i.Log.debug("UserManager.signinSilent, subject prior to silent renew: ",r.profile.sub),e.current_sub=r.profile.sub),t._signinSilentIframe(e))})},e.prototype._useRefreshToken=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._tokenClient.exchangeRefreshToken(e).then(function(e){return e?e.access_token?t._loadUser().then(function(r){if(r){var n=Promise.resolve();return e.id_token&&(n=t._validateIdTokenFromTokenRefreshToken(r.profile,e.id_token)),n.then(function(){return i.Log.debug("UserManager._useRefreshToken: refresh token response success"),r.id_token=e.id_token||r.id_token,r.access_token=e.access_token,r.refresh_token=e.refresh_token||r.refresh_token,r.expires_in=e.expires_in,t.storeUser(r).then(function(){return t._events.load(r),r})})}return null}):(i.Log.error("UserManager._useRefreshToken: No access token returned from token endpoint"),Promise.reject("No access token returned from token endpoint")):(i.Log.error("UserManager._useRefreshToken: No response returned from token endpoint"),Promise.reject("No response returned from token endpoint"))})},e.prototype._validateIdTokenFromTokenRefreshToken=function(t,e){var r=this;return this._metadataService.getIssuer().then(function(n){return r.settings.getEpochTime().then(function(o){return r._joseUtil.validateJwtAttributes(e,n,r._settings.client_id,r._settings.clockSkew,o).then(function(e){return e?e.sub!==t.sub?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: sub in id_token does not match current sub"),Promise.reject(Error("sub in id_token does not match current sub"))):e.auth_time&&e.auth_time!==t.auth_time?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time"),Promise.reject(Error("auth_time in id_token does not match original auth_time"))):e.azp&&e.azp!==t.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp in id_token does not match original azp"),Promise.reject(Error("azp in id_token does not match original azp"))):!e.azp&&t.azp?(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: azp not in id_token, but present in original id_token"),Promise.reject(Error("azp not in id_token, but present in original id_token"))):void 0:(i.Log.error("UserManager._validateIdTokenFromTokenRefreshToken: Failed to validate id_token"),Promise.reject(Error("Failed to validate id_token")))})})})},e.prototype._signinSilentIframe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return e?(t.redirect_uri=e,t.prompt=t.prompt||"none",this._signin(t,this._iframeNavigator,{startUrl:e,silentRequestTimeout:t.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(t){return t&&(t.profile&&t.profile.sub?i.Log.info("UserManager.signinSilent: successful, signed in sub: ",t.profile.sub):i.Log.info("UserManager.signinSilent: no sub")),t})):(i.Log.error("UserManager.signinSilent: No silent_redirect_uri configured"),Promise.reject(Error("No silent_redirect_uri configured")))},e.prototype.signinSilentCallback=function(t){return this._signinCallback(t,this._iframeNavigator).then(function(t){return t&&(t.profile&&t.profile.sub?i.Log.info("UserManager.signinSilentCallback: successful, signed in sub: ",t.profile.sub):i.Log.info("UserManager.signinSilentCallback: no sub")),t})},e.prototype.signinCallback=function(t){var e=this;return this.readSigninResponseState(t).then(function(r){var n=r.state;return r.response,"si:r"===n.request_type?e.signinRedirectCallback(t):"si:p"===n.request_type?e.signinPopupCallback(t):"si:s"===n.request_type?e.signinSilentCallback(t):Promise.reject(Error("invalid response_type in state"))})},e.prototype.signoutCallback=function(t,e){var r=this;return this.readSignoutResponseState(t).then(function(n){var i=n.state,o=n.response;return i?"so:r"===i.request_type?r.signoutRedirectCallback(t):"so:p"===i.request_type?r.signoutPopupCallback(t,e):Promise.reject(Error("invalid response_type in state")):o})},e.prototype.querySessionStatus=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(e=Object.assign({},e)).request_type="si:s";var r=e.redirect_uri||this.settings.silent_redirect_uri||this.settings.redirect_uri;return r?(e.redirect_uri=r,e.prompt="none",e.response_type=e.response_type||this.settings.query_status_response_type,e.scope=e.scope||"openid",e.skipUserInfo=!0,this._signinStart(e,this._iframeNavigator,{startUrl:r,silentRequestTimeout:e.silentRequestTimeout||this.settings.silentRequestTimeout}).then(function(e){return t.processSigninResponse(e.url).then(function(t){if(i.Log.debug("UserManager.querySessionStatus: got signin response"),t.session_state&&t.profile.sub)return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for sub: ",t.profile.sub),{session_state:t.session_state,sub:t.profile.sub,sid:t.profile.sid};i.Log.info("querySessionStatus successful, user not authenticated")}
1).catch(function(e){if(e.session_state&&t.settings.monitorAnonymousSession&&("login_required"==e.message||"consent_required"==e.message||"interaction_required"==e.message||"account_selection_required"==e.message))return i.Log.info("UserManager.querySessionStatus: querySessionStatus success for anonymous user"),{session_state:e.session_state};throw e})})):(i.Log.error("UserManager.querySessionStatus: No silent_redirect_uri configured"),Promise.reject(Error("No silent_redirect_uri configured")))},e.prototype._signin=function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signinStart(t,e,n).then(function(e){return r._signinEnd(e.url,t)})},e.prototype._signinStart=function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.prepare(n).then(function(e){return i.Log.debug("UserManager._signinStart: got navigator window handle"),r.createSigninRequest(t).then(function(t){return i.Log.debug("UserManager._signinStart: got signin request"),n.url=t.url,n.id=t.state.id,e.navigate(n)}).catch(function(t){throw e.close&&(i.Log.debug("UserManager._signinStart: Error after preparing navigator, closing navigator window"),e.close()),t})})},e.prototype._signinEnd=function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.processSigninResponse(t).then(function(t){i.Log.debug("UserManager._signinEnd: got signin response");var n=new a.User(t);if(r.current_sub){if(r.current_sub!==n.profile.sub)return i.Log.debug("UserManager._signinEnd: current user does not match user returned from signin. sub from signin: ",n.profile.sub),Promise.reject(Error("login_required"));i.Log.debug("UserManager._signinEnd: current user matches user returned from signin")}return e.storeUser(n).then(function(){return i.Log.debug("UserManager._signinEnd: user stored"),e._events.load(n),n})})},e.prototype._signinCallback=function(t,e){i.Log.debug("UserManager._signinCallback");var r="query"===this._settings.response_mode||!this._settings.response_mode&&f.SigninRequest.isCode(this._settings.response_type)?"?":"#";return e.callback(t,void 0,r)},e.prototype.signoutRedirect=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:r";var e=t.post_logout_redirect_uri||this.settings.post_logout_redirect_uri;e&&(t.post_logout_redirect_uri=e);var r={useReplaceToNavigate:t.useReplaceToNavigate};return this._signoutStart(t,this._redirectNavigator,r).then(function(){i.Log.info("UserManager.signoutRedirect: successful")})},e.prototype.signoutRedirectCallback=function(t){return this._signoutEnd(t||this._redirectNavigator.url).then(function(t){return i.Log.info("UserManager.signoutRedirectCallback: successful"),t})},e.prototype.signoutPopup=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(t=Object.assign({},t)).request_type="so:p";var e=t.post_logout_redirect_uri||this.settings.popup_post_logout_redirect_uri||this.settings.post_logout_redirect_uri;return t.post_logout_redirect_uri=e,t.display="popup",t.post_logout_redirect_uri&&(t.state=t.state||{}),this._signout(t,this._popupNavigator,{startUrl:e,popupWindowFeatures:t.popupWindowFeatures||this.settings.popupWindowFeatures,popupWindowTarget:t.popupWindowTarget||this.settings.popupWindowTarget}).then(function(){i.Log.info("UserManager.signoutPopup: successful")})},e.prototype.signoutPopupCallback=function(t,e){return void 0===e&&"boolean"==typeof t&&(e=t,t=null),this._popupNavigator.callback(t,e,"?").then(function(){i.Log.info("UserManager.signoutPopupCallback: successful")})},e.prototype._signout=function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._signoutStart(t,e,n).then(function(t){return r._signoutEnd(t.url)})},e.prototype._signoutStart=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,r=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.prepare(n).then(function(r){return i.Log.debug("UserManager._signoutStart: got navigator window handle"),e._loadUser().then(function(o){return i.Log.debug("UserManager._signoutStart: loaded current user from storage"),(e._settings.revokeAccessTokenOnSignout?e._revokeInternal(o):Promise.resolve()).then(function(){var s=t.id_token_hint||o&&o.id_token;return s&&(i.Log.debug("UserManager._signoutStart: Setting id_token into signout request"),t.id_token_hint=s),e.removeUser().then(function(){return i.Log.debug("UserManager._signoutStart: user removed, creating signout request"),e.createSignoutRequest
1(t).then(function(t){return i.Log.debug("UserManager._signoutStart: got signout request"),n.url=t.url,t.state&&(n.id=t.state.id),r.navigate(n)})})})}).catch(function(t){throw r.close&&(i.Log.debug("UserManager._signoutStart: Error after preparing navigator, closing navigator window"),r.close()),t})})},e.prototype._signoutEnd=function(t){return this.processSignoutResponse(t).then(function(t){return i.Log.debug("UserManager._signoutEnd: got signout response"),t})},e.prototype.revokeAccessToken=function(){var t=this;return this._loadUser().then(function(e){return t._revokeInternal(e,!0).then(function(r){if(r)return i.Log.debug("UserManager.revokeAccessToken: removing token properties from user and re-storing"),e.access_token=null,e.refresh_token=null,e.expires_at=null,e.token_type=null,t.storeUser(e).then(function(){i.Log.debug("UserManager.revokeAccessToken: user stored"),t._events.load(e)})})}).then(function(){i.Log.info("UserManager.revokeAccessToken: access token revoked successfully")})},e.prototype._revokeInternal=function(t,e){var r=this;if(t){var n=t.access_token,o=t.refresh_token;return this._revokeAccessTokenInternal(n,e).then(function(t){return r._revokeRefreshTokenInternal(o,e).then(function(e){return t||e||i.Log.debug("UserManager.revokeAccessToken: no need to revoke due to no token(s), or JWT format"),t||e})})}return Promise.resolve(!1)},e.prototype._revokeAccessTokenInternal=function(t,e){return!t||t.indexOf(".")>=0?Promise.resolve(!1):this._tokenRevocationClient.revoke(t,e).then(function(){return!0})},e.prototype._revokeRefreshTokenInternal=function(t,e){return t?this._tokenRevocationClient.revoke(t,e,"refresh_token").then(function(){return!0}):Promise.resolve(!1)},e.prototype.startSilentRenew=function(){this._silentRenewService.start()},e.prototype.stopSilentRenew=function(){this._silentRenewService.stop()},e.prototype._loadUser=function(){return this._userStore.get(this._userStoreKey).then(function(t){return t?(i.Log.debug("UserManager._loadUser: user storageString loaded"),a.User.fromStorageString(t)):(i.Log.debug("UserManager._loadUser: no user storageString"),null)})},e.prototype.storeUser=function(t){if(t){i.Log.debug("UserManager.storeUser: storing user");var e=t.toStorageString();return this._userStore.set(this._userStoreKey,e)}return i.Log.debug("storeUser.storeUser: removing user"),this._userStore.remove(this._userStoreKey)},n(e,[{key:"_redirectNavigator",get:function(){return this.settings.redirectNavigator}},{key:"_popupNavigator",get:function(){return this.settings.popupNavigator}},{key:"_iframeNavigator",get:function(){return this.settings.iframeNavigator}},{key:"_userStore",get:function(){return this.settings.userStore}},{key:"events",get:function(){return this._events}},{key:"_userStoreKey",get:function(){return"user:"+this.settings.authority+":"+this.settings.client_id}}]),e}(o.OidcClient)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerSettings=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=(r(0),r(5)),o=r(40),s=r(41),a=r(43),u=r(6),c=r(1),l=r(8);e.UserManagerSettings=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.popup_redirect_uri,i=r.popup_post_logout_redirect_uri,f=r.popupWindowFeatures,h=r.popupWindowTarget,d=r.silent_redirect_uri,p=r.silentRequestTimeout,g=r.automaticSilentRenew,v=r.validateSubOnSilentRenew,m=r.includeIdTokenInSilentRenew,y=r.monitorSession,b=r.monitorAnonymousSession,_=r.checkSessionInterval,S=r.stopCheckSessionOnError,x=r.query_status_response_type,F=r.revokeAccessTokenOnSignout,w=r.accessTokenExpiringNotificationTime,E=r.redirectNavigator,k=void 0===E?new o.RedirectNavigator:E,A=r.popupNavigator,P=void 0===A?new s.PopupNavigator:A,C=r.iframeNavigator,I=void 0===C?new a.IFrameNavigator:C,T=r.userStore,R=void 0===T?new u.WebStorageStateStore({store:c.Global.sessionStorage}):T;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var j=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,t.call(this,arguments[0]));return j._popup_redirect_uri=n,j._popup_post_logout_redirect_uri=i,j._popupWindowFeatures=f,j._popupWindowTarget=h,j._silent_redirect_uri=d,j._silentRequestTimeout=p,j._automaticSilentRenew=void 0!==g&&g,j._validateSubOnSilentRenew=void 0!==v&&v,j._includeIdTokenInSilentRenew=void 0===m||m,j._accessTokenExpiringNotificationTime=void 0===w?60:w,j._monitorSession=void 0===y||y,j._monitorAnonymousSession=void 0!==b&&b,j._checkSessionInterval=void 0===_?2e3:_,j._stopCheckSessionOnError=void 0===S||S,x?j._query_status_response_type=x:arguments[0]&&arguments[0].response_type?j._query_status_response_type=l.SigninRequest.isOidc(arguments[0].response_type)?"id_token":"code":j._query_status_response_type="id_token",j._revokeAccessTokenOnSignout=void 0!==F&&F,j._redirectNavigator=k,j._popupNavigator=P,j._iframeNavigator=I,j._userStore=R,j}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"popup_redirect_uri",get:function(){return this._popup_redirect_uri}},{key:"popup_post_logout_redirect_uri",get:function(){return this._popup_post_logout_redirect_uri}},{key:"popupWindowFeatures",get:function(){return this._popupWindowFeatures}},{key:"popupWindowTarget",get:function(){return this._popupWindowTarget}},{key:"silent_redirect_uri",get:function(){return this._silent_redirect_uri}},{key:"silentRequestTimeout",get:function(){return this._silentRequestTimeout}},{key:"automaticSilentRenew",get:function(){return this._automaticSilentRenew}},{key:"validateSubOnSilentRenew",get:function(){return this._val
1idateSubOnSilentRenew}},{key:"includeIdTokenInSilentRenew",get:function(){return this._includeIdTokenInSilentRenew}},{key:"accessTokenExpiringNotificationTime",get:function(){return this._accessTokenExpiringNotificationTime}},{key:"monitorSession",get:function(){return this._monitorSession}},{key:"monitorAnonymousSession",get:function(){return this._monitorAnonymousSession}},{key:"checkSessionInterval",get:function(){return this._checkSessionInterval}},{key:"stopCheckSessionOnError",get:function(){return this._stopCheckSessionOnError}},{key:"query_status_response_type",get:function(){return this._query_status_response_type}},{key:"revokeAccessTokenOnSignout",get:function(){return this._revokeAccessTokenOnSignout}},{key:"redirectNavigator",get:function(){return this._redirectNavigator}},{key:"popupNavigator",get:function(){return this._popupNavigator}},{key:"iframeNavigator",get:function(){return this._iframeNavigator}},{key:"userStore",get:function(){return this._userStore}}]),e}(i.OidcClientSettings)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RedirectNavigator=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0);e.RedirectNavigator=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t.prototype.prepare=function(){return Promise.resolve(this)},t.prototype.navigate=function(t){return t&&t.url?(t.useReplaceToNavigate?window.location.replace(t.url):window.location=t.url,Promise.resolve()):(i.Log.error("RedirectNavigator.navigate: No url provided"),Promise.reject(Error("No url provided")))},n(t,[{key:"url",get:function(){return window.location.href}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupNavigator=void 0;var n=r(0),i=r(42);e.PopupNavigator=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t.prototype.prepare=function(t){return Promise.resolve(new i.PopupWindow(t))},t.prototype.callback=function(t,e,r){n.Log.debug("PopupNavigator.callback");try{return i.PopupWindow.notifyOpener(t,e,r),Promise.resolve()}catch(t){return Promise.reject(t)}},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PopupWindow=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0),o=r(3);e.PopupWindow=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this._promise=new Promise(function(t,e){r._resolve=t,r._reject=e});var n=e.popupWindowTarget||"_blank",o=e.popupWindowFeatures||"location=no,toolbar=no,width=500,height=500,left=100,top=100;";this._popup=window.open("",n,o),this._popup&&(i.Log.debug("PopupWindow.ctor: popup successfully created"),this._checkForPopupClosedTimer=window.setInterval(this._checkForPopupClosed.bind(this),500))}return t.prototype.navigate=function(t){return this._popup?t&&t.url?(i.Log.debug("PopupWindow.navigate: Setting URL in popup"),this._id=t.id,this._id&&(window["popupCallback_"+t.id]=this._callback.bind(this)),this._popup.focus(),this._popup.window.location=t.url):(this._error("PopupWindow.navigate: no url provided"),this._error("No url provided")):this._error("PopupWindow.navigate: Error opening popup window"),this.promise},t.prototype._success=function(t){i.Log.debug("PopupWindow.callback: Successful response from popup window"),this._cleanup(),this._resolve(t)},t.prototype._error=function(t){i.Log.error("PopupWindow.error: ",t),this._cleanup(),this._reject(Error(t))},t.prototype.close=function(){this._cleanup(!1)},t.prototype._cleanup=function(t){i.Log.debug("PopupWindow.cleanup"),window.clearInterval(this._checkForPopupClosedTimer),this._checkForPopupClosedTimer=null,delete window["popupCallback_"+this._id],this._popup&&!t&&this._popup.close(),this._popup=null},t.prototype._checkForPopupClosed=function(){this._popup&&!this._popup.closed||this._error("Popup window closed")},t.prototype._callback=function(t,e){this._cleanup(e),t?(i.Log.debug("PopupWindow.callback success"),this._success({url:t})):(i.Log.debug("PopupWindow.callback: Invalid response from popup"),this._error("Invalid response from popup"))},t.notifyOpener=function(t,e,r){if(window.opener){if(t=t||window.location.href){var n=o.UrlUtility.parseUrlFragment(t,r);
1if(n.state){var s="popupCallback_"+n.state,a=window.opener[s];a?(i.Log.debug("PopupWindow.notifyOpener: passing url message to opener"),a(t,e)):i.Log.warn("PopupWindow.notifyOpener: no matching callback found on opener")}else i.Log.warn("PopupWindow.notifyOpener: no state found in response url")}}else i.Log.warn("PopupWindow.notifyOpener: no window.opener. Can't complete notification.")},n(t,[{key:"promise",get:function(){return this._promise}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IFrameNavigator=void 0;var n=r(0),i=r(44);e.IFrameNavigator=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t.prototype.prepare=function(t){return Promise.resolve(new i.IFrameWindow(t))},t.prototype.callback=function(t){n.Log.debug("IFrameNavigator.callback");try{return i.IFrameWindow.notifyParent(t),Promise.resolve()}catch(t){return Promise.reject(t)}},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IFrameWindow=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0);e.IFrameWindow=function(){function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this._promise=new Promise(function(t,e){r._resolve=t,r._reject=e}),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.width=0,this._frame.height=0,window.document.body.appendChild(this._frame)}return t.prototype.navigate=function(t){if(t&&t.url){var e=t.silentRequestTimeout||1e4;i.Log.debug("IFrameWindow.navigate: Using timeout of:",e),this._timer=window.setTimeout(this._timeout.bind(this),e),this._frame.src=t.url}else this._error("No url provided");return this.promise},t.prototype._success=function(t){this._cleanup(),i.Log.debug("IFrameWindow: Successful response from frame window"),this._resolve(t)},t.prototype._error=function(t){this._cleanup(),i.Log.error(t),this._reject(Error(t))},t.prototype.close=function(){this._cleanup()},t.prototype._cleanup=function(){this._frame&&(i.Log.debug("IFrameWindow: cleanup"),window.removeEventListener("message",this._boundMessageEvent,!1),window.clearTimeout(this._timer),window.document.body.removeChild(this._frame),this._timer=null,this._frame=null,this._boundMessageEvent=null)},t.prototype._timeout=function(){i.Log.debug("IFrameWindow.timeout"),this._error("Frame window timed out")},t.prototype._message=function(t){if(i.Log.debug("IFrameWindow.message"),this._timer&&t.origin===this._origin&&t.source===this._frame.contentWindow&&"string"==typeof t.data&&(t.data.startsWith("http://")||t.data.startsWith("https://"))){var e=t.data;e?this._success({url:e}):this._error("Invalid response from frame")}},t.notifyParent=function(t){i.Log.debug("IFrameWindow.notifyParent"),(t=t||window.location.href)&&(i.Log.debug("IFrameWindow.notifyParent: posting url message to parent"),window.parent.postMessage(t,location.protocol+"//"+location.host))},n(t,[{key:"promise",get:function(){return this._promise}},{key:"_origin",get:function(){return location.protocol+"//"+location.host}}]),t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserManagerEvents=void 0;var n=r(0),i=r(16),o=r(17);e.UserManagerEvents=function(t){function e(r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var n=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,t.call(this,r));return n._userLoaded=new o.Event("User loaded"),n._userUnloaded=new o.Event("User unloaded"),n._silentRenewError=ne
1w o.Event("Silent renew error"),n._userSignedIn=new o.Event("User signed in"),n._userSignedOut=new o.Event("User signed out"),n._userSessionChanged=new o.Event("User session changed"),n}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.load=function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n.Log.debug("UserManagerEvents.load"),t.prototype.load.call(this,e),r&&this._userLoaded.raise(e)},e.prototype.unload=function(){n.Log.debug("UserManagerEvents.unload"),t.prototype.unload.call(this),this._userUnloaded.raise()},e.prototype.addUserLoaded=function(t){this._userLoaded.addHandler(t)},e.prototype.removeUserLoaded=function(t){this._userLoaded.removeHandler(t)},e.prototype.addUserUnloaded=function(t){this._userUnloaded.addHandler(t)},e.prototype.removeUserUnloaded=function(t){this._userUnloaded.removeHandler(t)},e.prototype.addSilentRenewError=function(t){this._silentRenewError.addHandler(t)},e.prototype.removeSilentRenewError=function(t){this._silentRenewError.removeHandler(t)},e.prototype._raiseSilentRenewError=function(t){n.Log.debug("UserManagerEvents._raiseSilentRenewError",t.message),this._silentRenewError.raise(t)},e.prototype.addUserSignedIn=function(t){this._userSignedIn.addHandler(t)},e.prototype.removeUserSignedIn=function(t){this._userSignedIn.removeHandler(t)},e.prototype._raiseUserSignedIn=function(){n.Log.debug("UserManagerEvents._raiseUserSignedIn"),this._userSignedIn.raise()},e.prototype.addUserSignedOut=function(t){this._userSignedOut.addHandler(t)},e.prototype.removeUserSignedOut=function(t){this._userSignedOut.removeHandler(t)},e.prototype._raiseUserSignedOut=function(){n.Log.debug("UserManagerEvents._raiseUserSignedOut"),this._userSignedOut.raise()},e.prototype.addUserSessionChanged=function(t){this._userSessionChanged.addHandler(t)},e.prototype.removeUserSessionChanged=function(t){this._userSessionChanged.removeHandler(t)},e.prototype._raiseUserSessionChanged=function(){n.Log.debug("UserManagerEvents._raiseUserSessionChanged"),this._userSessionChanged.raise()},e}
1(i.AccessTokenEvents)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0),o=r(1);e.Timer=function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Global.timer,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");var s=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,t.call(this,r));return s._timer=n,s._nowFunc=i||function(){return Date.now()/1e3},s}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.init=function(t){t<=0&&(t=1),t=parseInt(t);var e=this.now+t;if(this.expiration===e&&this._timerHandle)i.Log.debug("Timer.init timer "+this._name+" skipping initialization since already initialized for expiration:",this.expiration);else{this.cancel(),i.Log.debug("Timer.init timer "+this._name+" for duration:",t),this._expiration=e;var r=5;t<5&&(r=t),this._timerHandle=this._timer.setInterval(this._callback.bind(this),1e3*r)}},e.prototype.cancel=function(){this._timerHandle&&(i.Log.debug("Timer.cancel: ",this._name),this._timer.clearInterval(this._timerHandle),this._timerHandle=null)},e.prototype._callback=function(){var e=this._expiration-this.now;i.Log.debug("Timer.callback; "+this._name+" timer expires in:",e),this._expiration<=this.now&&(this.cancel(),t.prototype.raise.call(this))},n(e,[{key:"now",get:function(){return parseInt(this._nowFunc())}},{key:"expiration",get:function(){return this._expiration}}]),e}(r(17).Event)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SilentRenewService=void 0;var n=r(0);e.SilentRenewService=function(){function t(e){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this._userManager=e}return t.prototype.start=function(){this._callback||(this._callback=this._tokenExpiring.bind(this),this._userManager.events.addAccessTokenExpiring(this._callback),this._userManager.getUser().then(function(t){}).catch(function(t){n.Log.error("SilentRenewService.start: Error from getUser:",t.message)}))},t.prototype.stop=function(){this._callback&&(this._userManager.events.removeAccessTokenExpiring(this._callback),delete this._callback)},t.prototype._tokenExpiring=function(){var t=this;this._userManager.signinSilent().then(function(t){n.Log.debug("SilentRenewService._tokenExpiring: Silent token renewal successful")},function(e){n.Log.error("SilentRenewService._tokenExpiring: Error from signinSilent:",e.message),t._userManager.events._raiseSilentRenewError(e)})},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaPopupNavigator=void 0;var n=r(21);e.CordovaPopupNavigator=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t.prototype.prepare=function(t){return Promise.resolve(new n.CordovaPopupWindow(t))},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CordovaIFrameNavigator=void 0;var n=r(21);e.CordovaIFrameNavigator=function(){function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function")}return t.prototype.prepare=function(t){return t.popupWindowFeatures="hidden=yes",Promise.resolve(new n.CordovaPopupWindow(t))},t}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Version="1.11.5"}],e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,(function(e){return t[e]}).bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=22)}()},73477:(t,e,r)=>{"use strict";var n=r(83095),i=r(26097),o=r(95835);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return y}});var c=r(72687)._(r(14232)),l=r(78079),f=[],h=[],d=!1;function p(t){var e=t(),r={loading:!0,loaded:null,error:null};return r.promise=e.then(function(t){return r.loading=!1,r.loaded=t,t}).catch(function(t){throw r.loading=!1,r.error=t,t}),r}var g=o(function t(e,r){i(this,t),this._loadFn=e,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()},[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var t=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var e=this._res,r=this._opts;e.loading&&("number"==typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){t._update({pastDelay:!0})},r.delay)),"number"==typeof r.timeout&&(this._timeout=setTimeout(function(){t._update({timedOut:!0})},r.timeout))),this._res.promise.then(function(){t._update({}),t._clearTimeouts()}).catch(function(e){t._update({}),t._clearTimeouts()}),this._update({})}},{key:"_update",value:function(t){this._state=a(a({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},t),this._callbacks.forEach(function(t){return t()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(t){var e=this;return this._callbacks.add(t),function(){e._callbacks.delete(t)}}}]);function v(t){return function(t,e){var r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},e),n=null;function i(){if(!n){var e=new g(t,r);n={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return n.promise()}if(!d){var o=r.webpack&&1?r.webpack():r.modules;o&&h.push(function(t){var e,r=function(t){var e="u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t){if(t){if("string"==typeof t)return u(t,void 0);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,void 0):void 0}}(t))){e&&(t=e);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(s)throw i}}}}(o);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(t.includes(n))return i()}}catch(t){r.e(t)}finally{r.f()}})}function s(t,e){i(),(o=c.default.useContext(l.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEac
1h(function(t){o(t)});var o,s=c.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return c.default.useImperativeHandle(e,function(){return{retry:n.retry}},[]),c.default.useMemo(function(){var e;return s.loading||s.error?c.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:n.retry}):s.loaded?c.default.createElement((e=s.loaded)&&e.default?e.default:e,t):null},[t,s])}return s.preload=function(){return i()},s.displayName="LoadableComponent",c.default.forwardRef(s)}(p,t)}function m(t,e){for(var r=[];t.length;){var n=t.pop();r.push(n(e))}return Promise.all(r).then(function(){if(t.length)return m(t,e)})}v.preloadAll=function(){return new Promise(function(t,e){m(f).then(t,e)})},v.preloadReady=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(function(e){var r=function(){return d=!0,e()};m(h,t).then(r,r)})},window.__NEXT_PRELOADREADY=v.preloadReady;var y=v},77296:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(42969),i=r(14232),o=r(48230),s=r.n(o),a=r(15039),u=r.n(a),c=r(30908),l=r(54382),f=r.n(l),h=r(37876);let d=function(){var t,e=(0,i.useContext)(c.A),r=(0,i.useState)(!1),o=r[0],a=r[1],l=(0,i.useRef)(null);return(t=function(){return a(!1)},(0,i.useEffect)(function(){function e(e){l.current&&!l.current.contains(e.target)&&t()}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[l]),e.isInitialized)?e.isSignedIn?(0,h.jsxs)("div",{className:u()("dropdown","dropdown--right",f().userMenu),ref:l,children:[(0,h.jsx)("button",{className:u()(f().dropdownToggleButton,f().dropdownToggleButtonVisible),"data-toggle":"dropdown",onClick:function(){return a(!o)},children:(0,h.jsx)("img",{className:f().avatar,src:e.picture,referrerPolicy:"no-referrer",alt:"Avatar"})}),(0,h.jsxs)("ul",{className:u()("dropdown__menu",f().dropdownMenu,(0,n.A)({},f().open,o)),children:[(0,h.jsx)("li",{children:(0,h.jsx)(s(),{href:"/user/[userId]",as:"/user/".concat(e.userId),className:"dropdown__link",onClick:function(){return a(!1)},children:"Profile"})}),(0,h.jsx)("li",{children:(0,h.jsx)(s(),{href:"/account/profile",className:"dropdown__link",onClick:function(){return a(!1)},children:"Account"})}),(0,h.jsx)("li",{children:(0,h.jsx)("a",{className:"dropdown__link",href:"#",onClick:function(){a(!1),e.signOut()},children:"Sign Out"})})]})]}):(0,h.jsx)("div",{className:u()("dropdown","dropdown--right",f().userMenu),children:(0,h.jsx)("button",{className:u()(f().dropdownToggleButton,f().dropdownToggleButtonVisible),onClick:function(){return e.signIn()},children:(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:u()("w-6 h-7",f().avatar),viewBox:"0 0 20 20",fill:"currentColor",children:(0,h.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z",clipRule:"evenodd"})})})}):(0,h.jsx)("div",{className:f().userMenu,children:(0,h.jsx)("button",{className:f().dropdownToggleButton})})}},77328:(t,e,r)=>{t.exports=r(70571)},78079:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return n}});var n=r(72687)._(r(14232)).default.createContext(null)},84186:(t,e,r)=>{"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.d(e,{A:()=>n})},89099:(t,e,r)=>{t.exports=r(88194)},95237:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useMergedRef",{enumerable:!0,get:function(){return i}});var n=r(14232);function i(t,e){var r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(function(n){if(null===n){var s=r.current;s&&(r.current=null,s());var a=i.current;a&&(i.current=null,a())}else t&&(r.current=o(t,n)),e&&(i.current=o(e,n))},[t,e])}function o(t,e){if("function"!=typeof t)return t.current=e,function(){t.current=null};var r=t(e);return"function"==typeof r?r:function(){return t(null)}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},96523:(t,e,r)=>{"use strict";r.d(e,{gc:()=>_});var n=r(14232),i=r(3110);r(37876);var o=r(65364);function s(t){var e;return(e=t-0)==e?t:(t=t.replace(/[_-]+(.)?/g,(t,e)=>e?e.toUpperCase():"")).charAt(0).toLowerCase()+t.slice(1)}var a=new Map,u=(function t(e,r,n={}){if("string"==typeof r)return r;let i=(r.children||[]).map(r=>t(e,r)),o=r.attributes||{},u={};for(let[t,e]of Object.entries(o))switch(!0){case"class"===t:u.className=e;break;case"style"===t:u.style=function(t){if(a.has(t))return a.get(t);let e={},r=0,n=t.length;for(;r<n;){let i=t.indexOf(";",r),o=-1===i?n:i,a=t.slice(r,o).trim();if(a){let t=a.indexOf(":");if(t>0){let r=a.slice(0,t).trim(),n=a.slice(t+1).trim();if(r&&n){let t=s(r);e[t.startsWith("webkit")?t.charAt(0).toUpperCase()+t.slice(1):t]=n}}}r=o+1}if(1e3===a.size){let t=a.keys().next().value;t&&a.delete(t)}return a.set(t,e),e}(String(e));break;case t.startsWith("aria-"):case t.startsWith("data-"):u[t.toLowerCase()]=e;break;default:u[s(t)]=e}let{style:c,role:l,"aria-label":f,...h}=n;return c&&(u.style=u.style?{...u.style,...c}:c),l&&(u.role=l),f&&(u["aria-label"]=f,u["aria-hidden"]="false"),e(r.tag,{...h,...u},...i)}).bind(null,n.createElement),c=(t,e)=>{let r=(0,n.useId)();return t||(e?r:void 0)},l=class{constructor(t="react-fontawesome"){this.enabled=!1;let e=!1;try{e=void 0!==o&&!1}catch{}this.scope=t,this.enabled=e}log(...t){this.enabled&&console.log(`[${this.scope}]`,...t)}warn(...t){this.enabled&&console.warn(`[${this.scope}]`,...t)}error(...t){this.enabled&&console.error(`[${this.scope}]`,...t)}};void 0!==o&&o.env.FA_VERSION;var f=Number.parseInt("searchPseudoElementsFullScan"in i.$W?"7.0.0":"6.0.0")>=7,h={left:"fa-pull-left",right:"fa-pull-right"},d={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},p={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"};function g(t){let e=i.$W.cssPrefix||i.$W.familyPrefix||"fa";return"fa"===e?t:t.replace(RegExp(String.raw`(?<=^|\s)${"fa"}-`,"g"),`${e}-`)}function v(t){if(t)return"object"==typeof t&&"icon"in t&&t.icon?t:i.qg.icon(t)}var m=new l("FontAwesomeIcon"),y={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},b=new Set(Object.keys(y)),_=n.forwardRef((t,e)=>{let r={...y,...t},{icon:n,mask:o,symbol:s,title:a,titleId:l,maskId:_,transform:S}=r,x=c(_,!!o),F=c(l,!!a),w=v(n);if(!w)return m.error("Icon lookup is undefined",n),null;let E=function(t){let{beat:e,fade:r,beatFade:n,bounce:o,shake:s,spin:a,spinPulse:u,spinReverse:c,pulse:l,fixedWidth:v,inverse:m,border:y,flip:b,size:_,rotation:S,pull:x,swapOpacity:F,rotateBy:w,widthAuto:E,className:k}=t,A=[];return(k&&A.push(...k.split(" ")),e&&A.push("fa-beat"),r&&A.push("fa-fade"),n&&A.push("fa-beat-fade"),o&&A.push("fa-bounce"),s&&A.push("fa-shake"),a&&A.push("fa-spin"),c&&A.push("fa-spin-reverse"),u&&A.push("fa-spin-pulse"),l&&A.push("fa-pulse"),v&&A.push("fa-fw"),m&&A.push("fa-inverse"),y&&A.push("fa-border"),!0===b&&A.push("fa-flip"),("horizontal"===b||"both"===b)&&A.push("fa-flip-horizontal"),("vertical"===b||"both"===b)&&A.push("fa-flip-vertical"),null!=_&&A.push(p[_]),null!=S&&0!==S&&A.push(d[S]),null!=x&&A.push(h[x]),F&&A.push("fa-swap-opacity"),f)?(w&&A.push("fa-rotate-by"),E&&A.push("fa-width-auto"),"fa"===(i.$W.cssPrefix||i.$W.familyPrefix||"fa")?A:A.map(g)):A}(r),k="string"==typeof S?i.qg.transform(S):S,A=v(o),P=(0,i.Kk)(w,{...E.length>0&&{classes:E},...k&&{transform:k},...A&&{mask:A},symbol:s,title:a,titleId:F,maskId:x});if(!P)return m.error("Could not find icon",w),null;let{abstract:C}=P,I={ref:e};for(let t of Object.keys(r))b.has(t)||(I[t]=r[t]);return u(C[0],I)});_.displayName="FontAwesomeIcon"}},t=>{var e=e=>t(t.s=e);t.O(0,[593,792],()=>(e(92),e(88194))),_N_E=t.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.