authhero 8.25.2 → 8.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/authhero.cjs +116 -116
  2. package/dist/authhero.d.ts +165 -137
  3. package/dist/authhero.mjs +102 -87
  4. package/dist/tsconfig.types.tsbuildinfo +1 -1
  5. package/dist/types/authentication-flows/passwordless.d.ts +4 -4
  6. package/dist/types/helpers/codes-cleanup.d.ts +28 -0
  7. package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
  8. package/dist/types/index.d.ts +136 -134
  9. package/dist/types/routes/auth-api/index.d.ts +24 -24
  10. package/dist/types/routes/auth-api/passwordless.d.ts +6 -6
  11. package/dist/types/routes/auth-api/register/index.d.ts +2 -2
  12. package/dist/types/routes/auth-api/revoke.d.ts +6 -6
  13. package/dist/types/routes/auth-api/token.d.ts +10 -10
  14. package/dist/types/routes/management-api/action-executions.d.ts +1 -1
  15. package/dist/types/routes/management-api/action-triggers.d.ts +1 -1
  16. package/dist/types/routes/management-api/actions.d.ts +1 -1
  17. package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
  18. package/dist/types/routes/management-api/branding.d.ts +1 -1
  19. package/dist/types/routes/management-api/clients.d.ts +10 -10
  20. package/dist/types/routes/management-api/connections.d.ts +5 -5
  21. package/dist/types/routes/management-api/custom-domains.d.ts +8 -8
  22. package/dist/types/routes/management-api/email-templates.d.ts +18 -18
  23. package/dist/types/routes/management-api/failed-events.d.ts +1 -1
  24. package/dist/types/routes/management-api/guardian.d.ts +5 -5
  25. package/dist/types/routes/management-api/helpers.d.ts +1 -1
  26. package/dist/types/routes/management-api/index.d.ts +99 -99
  27. package/dist/types/routes/management-api/logs.d.ts +4 -4
  28. package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
  29. package/dist/types/routes/management-api/organizations.d.ts +6 -6
  30. package/dist/types/routes/management-api/prompts.d.ts +4 -4
  31. package/dist/types/routes/management-api/roles.d.ts +1 -1
  32. package/dist/types/routes/management-api/tenant-operations.d.ts +4 -4
  33. package/dist/types/routes/management-api/users.d.ts +2 -2
  34. package/dist/types/routes/universal-login/common.d.ts +4 -4
  35. package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
  36. package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
  37. package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
  38. package/package.json +6 -6
package/dist/authhero.cjs CHANGED
@@ -11,7 +11,7 @@ From `+this.originalError.stack)}static is(e){return e?.[Ho]===`LiquidError`}},W
11
11
  `)}function nc(e){let t=F(e);this.context.memoryLimit.use(t.length);let n=new Map([[`<script`,`<\/script>`],[`<style`,`</style>`],[`<!--`,`-->`],[`<`,`>`]]),r=``,i=0;for(;i<t.length;){let e=t.indexOf(`<`,i);if(e<0)return r+t.slice(i);r+=t.slice(i,e);for(let[r,a]of n){if(!t.startsWith(r,e))continue;let o=t.indexOf(a,e+r.length);if(o>=0){i=o+a.length;break}n.delete(r)}if(i<=e)return r+t.slice(e)}return r}var rc=Object.freeze({__proto__:null,escape:Qs,xml_escape:ore,escape_once:ec,newline_to_br:tc,strip_html:nc}),ic=class{constructor(e){this.mapping=e,this.sep=`/`}exists(e){return ps(this,void 0,void 0,function*(){return this.existsSync(e)})}existsSync(e){return!wo(this.mapping[e])}readFile(e){return ps(this,void 0,void 0,function*(){return this.readFileSync(e)})}readFileSync(e){let t=this.mapping[e];if(wo(t))throw Error(`ENOENT: ${e}`);return t}dirname(e){let t=e.split(this.sep);return t.pop(),t.join(this.sep)}resolve(e,t,n){if(t+=n,e===`.`)return t;let r=e.split(/\/+/);for(let e of t.split(this.sep))if(e===`.`||e===``)continue;else e===`..`?(r.length>1||r[0]!==``)&&r.pop():r.push(e);return r.join(this.sep)}},ac={root:[`.`],layouts:[`.`],partials:[`.`],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:`:`,cache:void 0,extname:``,fs:ere,dynamicPartials:!0,jsTruthy:!1,dateFormat:`%A, %B %-e, %Y at %-l:%M %P %z`,locale:``,trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:`{%`,tagDelimiterRight:`%}`,outputDelimiterLeft:`{{`,outputDelimiterRight:`}}`,preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:Gne,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function oc(e){if(e.hasOwnProperty(`root`)&&(e.hasOwnProperty(`partials`)||(e.partials=e.root),e.hasOwnProperty(`layouts`)||(e.layouts=e.root)),e.hasOwnProperty(`cache`)){let t;t=typeof e.cache==`number`?e.cache>0?new qs(e.cache):void 0:typeof e.cache==`object`?e.cache:e.cache?new qs(1024):void 0,e.cache=t}return e=Object.assign(Object.assign(Object.assign({},ac),e.jekyllInclude?{dynamicPartials:!1}:{}),e),(!e.fs.dirname||!e.fs.sep)&&e.relativeReference&&(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),e.relativeReference=!1),e.root=cc(e.root),e.partials=cc(e.partials),e.layouts=cc(e.layouts),e.outputEscape=e.outputEscape&&sc(e.outputEscape),e.locale||=Es()?.().resolvedOptions().locale??`en-US`,e.templates&&(e.fs=new ic(e.templates),e.relativeReference=!0,e.root=e.partials=e.layouts=`.`),e}function sc(e){return e===`escape`?Qs:e===`json`?Zs.json:($o(ho(e),"`outputEscape` need to be of type string or function"),e)}function cc(e){let t=[];return Eo(e)&&(t=e),mo(e)&&(t=[e]),t}function lc(e,t){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];cre(i)&&(!n&&i.trimLeft&&uc(e[r-1],t.greedy),Vc(i)&&(i.name===`raw`?n=!0:i.name===`endraw`&&(n=!1)),!n&&i.trimRight&&dc(e[r+1],t.greedy))}}function uc(e,t){if(!e||!Bc(e))return;let n=t?Yo:Zo;for(;Jo[e.input.charCodeAt(e.end-1-e.trimRight)]&n;)e.trimRight++}function dc(e,t){if(!e||!Bc(e))return;let n=t?Yo:Zo;for(;Jo[e.input.charCodeAt(e.begin+e.trimLeft)]&n;)e.trimLeft++;e.input.charAt(e.begin+e.trimLeft)===`
12
12
  `&&e.trimLeft++}var fc=class{constructor(e,t=ac.operators,n,r){this.input=e,this.file=n,this.rawBeginAt=-1,this.p=r?r[0]:0,this.N=r?r[1]:e.length,this.opTrie=ds(t),this.literalTrie=ds(ls)}readExpression(){return new Bne(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){let e=this.readOperator();if(e){yield e;continue}let t=this.readValue();if(t){yield t;continue}return}}readOperator(){this.skipBlank();let e=this.matchTrie(this.opTrie);if(e!==-1)return new Ane(this.input,this.p,this.p=e,this.file)}matchTrie(e){let t=e,n=this.p,r;for(;t[this.input[n]]&&n<this.N;)t=t[this.input[n++]],t.end&&(r=t);return!r||r.needBoundary&&Qo(this.peek(n-this.p))?-1:n}readFilteredValue(){let e=this.p,t=this.readExpression();return this.assert(t.valid(),`invalid value expression: ${this.snapshot()}`),new Lne(t,this.readFilters(),this.input,e,this.p,this.file)}readFilters(){let e=[];for(;;){let t=this.readFilter();if(!t)return e;e.push(t)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert(this.read()===`|`,`expected "|" before filter`);let e=this.readIdentifier();if(!e.size())return this.assert(this.end(),`expected filter name`),null;let t=[];if(this.skipBlank(),this.peek()===`:`)do{++this.p;let e=this.readFilterArg();e&&t.push(e),this.skipBlank(),this.assert(this.end()||this.peek()===`,`||this.peek()===`|`,()=>`unexpected character ${this.snapshot()}`)}while(this.peek()===`,`);else if(!(this.peek()===`|`||this.end()))throw this.error(`expected ":" after filter name`);return new Ls(e.getText(),t,this.input,e.begin,this.p,this.file)}readFilterArg(){let e=this.readValue();if(!e)return;if(this.skipBlank(),this.peek()!==`:`)return e;++this.p;let t=this.readValue();return[e.getText(),t]}readTopLevelTokens(e=ac){let t=[];for(;this.p<this.N;){let n=this.readTopLevelToken(e);t.push(n)}return lc(t,e),t}readTopLevelToken(e){let{tagDelimiterLeft:t,outputDelimiterLeft:n}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(t)?this.readTagToken(e):this.match(n)?this.readOutputToken(e):this.readHTMLToken([t,n])}readHTMLToken(e){let t=this.p;for(;this.p<this.N&&!e.some(e=>this.match(e));)++this.p;return new Ns(this.input,t,this.p,this.file)}readTagToken(e){let{file:t,input:n}=this,r=this.p;if(this.readToDelimiter(e.tagDelimiterRight)===-1)throw this.error(`tag ${this.snapshot(r)} not closed`,r);let i=new Ms(n,r,this.p,e,t);return i.name===`raw`&&(this.rawBeginAt=r),i}readToDelimiter(e,t=!1){for(this.skipBlank();this.p<this.N;){if(t&&this.peekType()&Xo){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return-1}readOutputToken(e=ac){let{file:t,input:n}=this,{outputDelimiterRight:r}=e,i=this.p;if(this.readToDelimiter(r,!0)===-1)throw this.error(`output ${this.snapshot(i)} not closed`,i);return new Ene(n,i,this.p,e,t)}readEndrawOrRawContent(e){let{tagDelimiterLeft:t,tagDelimiterRight:n}=e,r=this.p,i=this.readTo(t)-t.length;for(;this.p<this.N;){if(this.readIdentifier().getText()!==`endraw`){i=this.readTo(t)-t.length;continue}for(;this.p<=this.N;){if(this.rmatch(n)){let t=this.p;return r===i?(this.rawBeginAt=-1,new Ms(this.input,r,t,e,this.file)):(this.p=i,new Ns(this.input,r,i,this.file))}if(this.rmatch(t))break;this.p++}}throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,r)}readLiquidTagTokens(e=ac){let t=[];for(;this.p<this.N;){let n=this.readLiquidTagToken(e);n&&t.push(n)}return t}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;let t=this.p;this.readToDelimiter(`
13
13
  `);let n=this.p;return new Ine(this.input,t,n,e,this.file)}error(e,t=this.p){return new Wo(e,new Ps(this.input,t,this.N,this.file))}assert(e,t,n){if(!e)throw this.error(typeof t==`function`?t():t,n)}snapshot(e=this.p){return JSON.stringify(Io(this.input.slice(e,this.N),32))}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();let e=this.p;for(;!this.end()&&Qo(this.peek());)++this.p;return new Ps(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){let e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return this.skipBlank(),this.input[this.p]===`#`?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){let t=[];for(;;){let n=this.readHash(e);if(!n)return t;t.push(n)}}readHash(e){this.skipBlank(),this.peek()===`,`&&++this.p;let t=this.p,n=this.readNonEmptyIdentifier();if(!n)return;let r;this.skipBlank();let i=mo(e)?e:e?`=`:`:`;return this.peek()===i&&(++this.p,r=this.readValue()),new jne(this.input,t,this.p,n,r,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){this.skipBlank();let e=this.p,t=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),n=this.readProperties(!t);return n.length?new Is(t,n,this.input,e,this.p):t}readScopeValue(){this.skipBlank();let e=this.p,t=this.readProperties();if(t.length)return new Is(void 0,t,this.input,e,this.p)}readProperties(e=!0){let t=[];for(;;){if(this.peek()===`[`){this.p++;let e=this.readValue()||new Ps(this.input,this.p,this.p,this.file);this.assert(this.readTo(`]`)!==-1,`[ not closed`),t.push(e);continue}if(e&&!t.length){let e=this.readNonEmptyIdentifier();if(e){t.push(e);continue}}if(this.peek()===`.`&&this.peek(1)!==`.`){this.p++;let e=this.readNonEmptyIdentifier();if(!e)break;t.push(e);continue}break}return t}readNumber(){this.skipBlank();let e=!1,t=!1,n=0;for(this.peekType()&mne&&n++;this.p+n<=this.N;)if(this.peekType(n)&pne)t=!0,n++;else if(this.peek(n)===`.`&&this.peek(n+1)!==`.`){if(e||!t)return;e=!0,n++}else break;if(t&&!Qo(this.peek(n))){let e=new Dne(this.input,this.p,this.p+n,this.file);return this.advance(n),e}}readLiteral(){this.skipBlank();let e=this.matchTrie(this.literalTrie);if(e===-1)return;let t=new One(this.input,this.p,e,this.file);return this.p=e,t}readRange(){this.skipBlank();let e=this.p;if(this.peek()!==`(`)return;++this.p;let t=this.readValueOrThrow();this.skipBlank(),this.assert(this.read()===`.`&&this.read()===`.`,`invalid range syntax`);let n=this.readValueOrThrow();return this.skipBlank(),this.assert(this.read()===`)`,`invalid range syntax`),new Fne(this.input,e,this.p,t,n,this.file)}readValueOrThrow(){let e=this.readValue();return this.assert(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();let e=this.p;if(!(this.peekType()&Xo))return;++this.p;let t=!1;for(;this.p<this.N&&(++this.p,!(this.input[this.p-1]===this.input[e]&&!t));)t?t=!1:this.input[this.p-1]===`\\`&&(t=!0);return new Pne(this.input,e,this.p,this.file)}*readFileNameTemplate(e){let{outputDelimiterLeft:t}=e,n=[`,`,` `,`\r`,`
14
- `,` `,t],r=new Set(n);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(t)?this.readOutputToken(e):this.readHTMLToken(n)}match(e){for(let t=0;t<e.length;t++)if(e[t]!==this.input[this.p+t])return!1;return!0}rmatch(e){for(let t=0;t<e.length;t++)if(e[e.length-1-t]!==this.input[this.p-1-t])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:Jo[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?``:this.input[this.p+e]}skipBlank(){for(;this.peekType()&Yo;)++this.p}},pc=class{constructor(e,t){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=t}on(e,t){return this.handlers[e]=t,this}trigger(e,t){let n=this.handlers[e];return n?(n.call(this,t),!0):!1}start(){this.trigger(`start`);let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger(`token`,e)||Vc(e)&&this.trigger(`tag:${e.name}`,e))continue;let t=this.parseToken(e,this.tokens);this.trigger(`template`,t)}return this.stopRequested||this.trigger(`end`),this}stop(){return this.stopRequested=!0,this}},mc=class{constructor(e){this.token=e}},hc=class extends mc{constructor(e,t,n){super(e),this.name=e.name,this.liquid=n,this.tokenizer=e.tokenizer}},gc=class{constructor(e,t){this.hash={};let n=e instanceof fc?e:new fc(e,{});for(let e of n.readHashes(t))this.hash[e.name.content]=e.value}*render(e){let t={};for(let n of Object.keys(this.hash))t[n]=this.hash[n]===void 0?!0:yield Hs(this.hash[n],e);return t}};function _c(e){return class extends hc{constructor(t,n,r){super(t,n,r),ho(e.parse)&&e.parse.call(this,t,n)}*render(t,n){let r=yield new gc(this.token.args,t.opts.keyValueSeparator).render(t);return yield e.render.call(this,t,n,r)}}}function vc(e){return Eo(e)}var yc=class{constructor(e,t,n){this.token=e,this.name=e.name,this.handler=ho(t)?t:ho(t?.handler)?t.handler:Po,this.raw=!ho(t)&&!!t?.raw,this.args=e.args,this.liquid=n}*render(e,t){let n=[];for(let e of this.args)vc(e)?n.push([e[0],yield Hs(e[1],t)]):n.push(yield Hs(e,t));return yield this.handler.apply({context:t,token:this.token,liquid:this.liquid},[e,...n])}},bc=class{constructor(e,t){this.filters=[];let n=typeof e==`string`?new fc(e,t.options.operators).readFilteredValue():e;this.initial=n.initial,this.filters=n.filters.map(e=>new yc(e,this.getFilter(t,e.name),t))}*value(e,t){t||=e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let n=yield this.initial.evaluate(e,t);for(let t of this.filters)n=yield t.render(n,e);return n}getFilter(e,t){let n=e.filters[t];return $o(n||!e.options.strictFilters,()=>`undefined filter: ${t}`),n}},xc=class extends mc{constructor(e,t){super(e);let n=new fc(e.input,t.options.operators,e.file,e.contentRange);this.value=new bc(n.readFilteredValue(),t);let r=this.value.filters,i=t.options.outputEscape;if(!r[r.length-1]?.raw&&i){let e=new Ls(toString.call(i),[],``,0,0);r.push(new yc(e,i,t))}}*render(e,t){let n=yield this.value.value(e,!1);t.write(n)}*arguments(){yield this.value}},Sc=class extends mc{constructor(e){super(e),this.str=e.getContent()}*render(e,t){t.write(this.str)}},Cc=class e{constructor(e,t){this.segments=e,this.location=t}toString(){return Fc(this.segments,!0)}toArray(){function*t(...n){for(let r of n)r instanceof e?yield Array.from(t(...r.segments)):yield r}return Array.from(t(...this.segments))}},wc=class{constructor(){this.map=new Map}get(e){let t=Fc([e.segments[0]]);return this.map.has(t)||this.map.set(t,[]),this.map.get(t)}has(e){return this.map.has(Fc([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}},Tc={partials:!0};function*Ec(e,t,n){let r=new wc,i=new wc,a=new wc,o=new kc(new Set),s=new Set;function c(e,t){r.push(e);let n=t.alias(e);if(n!==void 0){let e=n.segments[0];mo(e)&&!o.has(e)&&i.push(n)}else{let n=e.segments[0];mo(n)&&!t.has(n)&&i.push(e)}for(let n of e.segments)n instanceof Cc&&c(n,t)}function*l(e,r){if(e.arguments)for(let t of e.arguments())for(let e of Ac(t))c(e,r);if(e.localScope)for(let t of e.localScope()){r.add(t.content),r.deleteAlias(t.content);let[e,n]=t.getPosition();a.push(new Cc([t.content],{row:e,col:n,file:t.file}))}if(e.children)if(e.partialScope){let i=e.partialScope();if(i===void 0){for(let i of yield e.children(t,n))yield l(i,r);return}if(s.has(i.name))return;let a=new Set,o=i.isolated?new kc(a):r.push(a);for(let e of i.scope)if(mo(e))a.add(e);else{let[t,n]=e;a.add(t);let r=Array.from(Ac(n));r.length&&o.setAlias(t,r[0].segments)}for(let r of yield e.children(t,n))yield l(r,o),s.add(i.name);o.pop()}else{e.blockScope&&r.push(new Set(e.blockScope()));for(let i of yield e.children(t,n))yield l(i,r);e.blockScope&&r.pop()}}for(let t of e)yield l(t,o);return{variables:r.asObject(),globals:i.asObject(),locals:a.asObject()}}function Dc(e,t={}){return hs(Ec(e,Object.assign(Object.assign({},Tc),t).partials,!1))}function Oc(e,t={}){return gs(Ec(e,Object.assign(Object.assign({},Tc),t).partials,!0))}var kc=class{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(let t of this.stack)if(t.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){return this.stack.pop()?.names}add(e){this.stack[0].names.add(e)}alias(e){let t=e.segments[0];if(!mo(t))return;let n=this.getAlias(t);if(n!==void 0)return new Cc([...n,...e.segments.slice(1)],e.location)}setAlias(e,t){this.stack[this.stack.length-1].aliases.set(e,t)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(let t of this.stack){if(t.aliases.has(e))return t.aliases.get(e);if(t.names.has(e))return}}};function*Ac(e){qc(e)?yield*Mc(e):e instanceof bc&&(yield*jc(e))}function*jc(e){for(let t of e.initial.postfix)qc(t)&&(yield*Mc(t));for(let t of e.filters)for(let e of t.args)vc(e)&&e[1]?yield*Mc(e[1]):qc(e)&&(yield*Mc(e))}function*Mc(e){Kc(e)?(yield*Mc(e.lhs),yield*Mc(e.rhs)):Wc(e)&&(yield Nc(e))}function Nc(e){let t=[],n=e.file,r=e.props[0];n||=r.file,Hc(r)||Uc(r)||Gc(r)?t.push(r.content):Wc(r)&&t.push(...Nc(r).segments);for(let r of e.props.slice(1))n||=r.file,Hc(r)||Uc(r)||Gc(r)?t.push(r.content):Wc(r)&&t.push(Nc(r));let[i,a]=e.getPosition();return new Cc(t,{row:i,col:a,file:n})}var Pc=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function Fc(e,t=!1){let n=[],r=e[0];mo(r)&&(!t||r.match(Pc)?n.push(`${r}`):n.push(`['${r}']`));for(let t of e.slice(1))t instanceof Cc?n.push(`[${Fc(t.segments)}]`):mo(t)?t.match(Pc)?n.push(`.${t}`):n.push(`['${t}']`):n.push(`[${t}]`);return n.join(``)}var Ic;(function(e){e.Partials=`partials`,e.Layouts=`layouts`,e.Root=`root`})(Ic||={});var sre=class{constructor(e){if(this.options=e,e.relativeReference){let t=e.fs.sep;$o(t,"`fs.sep` is required for relative reference");let n=[`.`+t,`..`+t,`./`,`../`];this.shouldLoadRelative=e=>n.some(t=>e.startsWith(t))}else this.shouldLoadRelative=e=>!1;let t=e.fs;this.contains=ms(t.contains?.bind(t)||(()=>ps(this,void 0,void 0,function*(){return!0})),t.containsSync?.bind(t)||(()=>!0)),this.exists=ms(t.exists?.bind(t)||(()=>ps(this,void 0,void 0,function*(){return!1})),t.existsSync?.bind(t))}*lookup(e,t,n,r){let i=this.options[t];for(let t of this.candidates(e,i,r)){let e=!1;for(let r of i)if(yield this.contains(!!n,r,t)){e=!0;break}if(e&&(yield this.exists(!!n,t)))return t}throw this.lookupError(e,i)}*candidates(e,t,n){let{fs:r,extname:i}=this.options;this.shouldLoadRelative(e)&&n&&(yield r.resolve(this.dirname(n),e,i));for(let n of t)yield r.resolve(n,e,i);if(r.fallback!==void 0){let t=r.fallback(e);t!==void 0&&(yield t)}}dirname(e){let t=this.options.fs;return $o(t.dirname,"`fs.dirname` is required for relative reference"),t.dirname(e)}lookupError(e,t){let n=Error(`ENOENT`);return n.message=`ENOENT: Failed to lookup "${e}" in "${t}"`,n.code=`ENOENT`,n}},Lc=class{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new sre(this.liquid.options),this.parseLimit=new As(`parse length`,e.options.parseLimit),this.readFile=ms(this.fs.readFile?.bind(this.fs)||(()=>ps(this,void 0,void 0,function*(){throw Error(`readFile not implemented`)})),this.fs.readFileSync?.bind(this.fs))}parse(e,t){e=String(e),this.parseLimit.use(e.length);let n=new fc(e,this.liquid.options.operators,t).readTopLevelTokens(this.liquid.options);return this.parseTokens(n)}parseTokens(e){let t,n=[],r=[];for(;t=e.shift();)try{n.push(this.parseToken(t,e))}catch(e){if(this.liquid.options.catchAllErrors)r.push(e);else throw e}if(r.length)throw new qo(r);return n}parseToken(e,t){try{if(Vc(e)){let n=this.liquid.tags[e.name];return $o(n,`tag "${e.name}" not found`),new n(e,t,this.liquid,this)}return lre(e)?new xc(e,this.liquid):new Sc(e)}catch(t){throw Uo.is(t)?t:new Go(t,e)}}parseStream(e){return new pc(e,(e,t)=>this.parseToken(e,t))}*_parseFileCached(e,t,n=Ic.Root,r){let i=this.cache,a=this.loader.shouldLoadRelative(e)?r+`,`+e:n+`:`+e,o=yield i.read(a);if(o)return o;let s=this._parseFile(e,t,n,r),c=t?yield s:hs(s);i.write(a,c);try{return yield c}catch(e){throw i.remove(a),e}}*_parseFile(e,t,n=Ic.Root,r){let i=yield this.loader.lookup(e,n,t,r);return this.parse(yield this.readFile(!!t,i),i)}},Rc;(function(e){e[e.Number=1]=`Number`,e[e.Literal=2]=`Literal`,e[e.Tag=4]=`Tag`,e[e.Output=8]=`Output`,e[e.HTML=16]=`HTML`,e[e.Filter=32]=`Filter`,e[e.Hash=64]=`Hash`,e[e.PropertyAccess=128]=`PropertyAccess`,e[e.Word=256]=`Word`,e[e.Range=512]=`Range`,e[e.Quoted=1024]=`Quoted`,e[e.Operator=2048]=`Operator`,e[e.FilteredValue=4096]=`FilteredValue`,e[e.Delimited=12]=`Delimited`})(Rc||={});function cre(e){return!!(Jc(e)&Rc.Delimited)}function zc(e){return Jc(e)===Rc.Operator}function Bc(e){return Jc(e)===Rc.HTML}function lre(e){return Jc(e)===Rc.Output}function Vc(e){return Jc(e)===Rc.Tag}function Hc(e){return Jc(e)===Rc.Quoted}function Uc(e){return Jc(e)===Rc.Number}function Wc(e){return Jc(e)===Rc.PropertyAccess}function Gc(e){return Jc(e)===Rc.Word}function Kc(e){return Jc(e)===Rc.Range}function qc(e){return(Jc(e)&1667)>0}function Jc(e){return e?e.kind:-1}function Yc(e){let t=Object.create(null);return e&&Object.assign(t,e),t}var Xc=class e{constructor(e={},t=ac,n={},{memoryLimit:r,renderLimit:i}={}){this.scopes=[Yc()],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!n.sync,this.opts=t,this.globals=n.globals??t.globals,this.environments=ko(e)?e:Object(e),this.strictVariables=n.strictVariables??this.opts.strictVariables,this.ownPropertyOnly=n.ownPropertyOnly??t.ownPropertyOnly,this.memoryLimit=r??new As(`memory alloc`,n.memoryLimit??t.memoryLimit),this.renderLimit=i??new As(`template render`,Vs().now()+(n.renderLimit??t.renderLimit))}getRegister(e,t=void 0){return this.registers[e]=this.registers[e]||t}setRegister(e,t){return this.registers[e]=t}saveRegister(...e){return e.map(e=>[e,this.getRegister(e)])}restoreRegister(e){return e.forEach(([e,t])=>this.setRegister(e,t))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,t)=>fs(e,t),{})}get(e){return this.getSync(e)}getSync(e){return gs(this._get(e))}*_get(e){let t=this.findScope(e[0]);return yield this._getFromScope(t,e)}getFromScope(e,t){return gs(this._getFromScope(e,t))}*_getFromScope(e,t,n=this.strictVariables){mo(t)&&(t=t.split(`.`));for(let r=0;r<t.length;r++)if(e=yield this.readProperty(e,t[r]),n&&To(e))throw new cne(t.slice(0,r+1).join(`.`));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(t={}){return new e(t,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables,ownPropertyOnly:this.ownPropertyOnly},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let t=this.scopes.length-1;t>=0;t--){let n=this.scopes[t];if(e in n)return n}return e in this.environments?this.environments:this.globals}readProperty(e,t){if(e=Co(e),t=bo(t),wo(e))return e;if(Eo(e)&&So(t))return _o(e,t,this.ownPropertyOnly);let n=Zc(e,t,this.ownPropertyOnly);return n===void 0&&e instanceof lo?e.liquidMethodMissing(t,this):ho(n)?n.call(e):t===`size`?fre(e):t===`first`?ure(e,this.ownPropertyOnly):t===`last`?dre(e,this.ownPropertyOnly):n}};function Zc(e,t,n){if(!(n&&!po.call(e,t)&&!(e instanceof lo)))return e[t]}function ure(e,t){return Eo(e)?_o(e,0,t):Zc(e,`first`,t)}function dre(e,t){return Eo(e)?_o(e,-1,t):Zc(e,`last`,t)}function fre(e){if(po.call(e,`size`)||e.size!==void 0)return e.size;if(Eo(e)||mo(e))return e.length;if(typeof e==`object`)return Object.keys(e).length}var Qc;(function(e){e[e.OUTPUT=0]=`OUTPUT`,e[e.STORE=1]=`STORE`})(Qc||={});var pre=Bo(Math.abs),mre=Bo(Math.max),hre=Bo(Math.min),gre=Bo(Math.ceil),_re=Bo((e,t,n=!1)=>n?Math.floor(e/t):e/t),vre=Bo(Math.floor),yre=Bo((e,t)=>e-t),bre=Bo((e,t)=>e+t),xre=Bo((e,t)=>(e%t+t)%t),Sre=Bo((e,t)=>e*t);function Cre(e,t=0){e=xo(e),t=xo(t);let n=10**t,r=e*n*(1+2**-52);return Math.round(r)/n}var wre=Object.freeze({__proto__:null,abs:pre,at_least:mre,at_most:hre,ceil:gre,divided_by:_re,floor:vre,minus:yre,plus:bre,modulo:xre,times:Sre,round:Cre}),Tre=e=>decodeURIComponent(F(e)).replace(/\+/g,` `),Ere=e=>encodeURIComponent(F(e)).replace(/%20/g,`+`),Dre=e=>encodeURIComponent(F(e)).replace(/%20/g,`+`).replace(/[!'()*]/g,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase()),Ore=e=>encodeURI(F(e)).replace(/%5B/g,`[`).replace(/%5D/g,`]`),$c=/[^\p{M}\p{L}\p{Nd}]+/gu,kre={raw:/\s+/g,default:$c,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,ascii:/[^A-Za-z0-9]+/g,latin:$c,none:null};function Are(e,t=`default`,n=!1){e=F(e);let r=kre[t];return r&&(t===`latin`&&(e=jre(e)),e=e.replace(r,`-`).replace(/^-|-$/g,``)),n?e:e.toLowerCase()}function jre(e){return e.replace(/[àáâãäå]/g,`a`).replace(/[æ]/g,`ae`).replace(/[ç]/g,`c`).replace(/[èéêë]/g,`e`).replace(/[ìíîï]/g,`i`).replace(/[ð]/g,`d`).replace(/[ñ]/g,`n`).replace(/[òóôõöø]/g,`o`).replace(/[ùúûü]/g,`u`).replace(/[ýÿ]/g,`y`).replace(/[ß]/g,`ss`).replace(/[œ]/g,`oe`).replace(/[þ]/g,`th`).replace(/[ẞ]/g,`SS`).replace(/[Œ]/g,`OE`).replace(/[Þ]/g,`TH`)}var Mre=Object.freeze({__proto__:null,url_decode:Tre,url_encode:Ere,cgi_escape:Dre,uri_escape:Ore,slugify:Are}),Nre=zo(function(e,t){let n=yo(e),r=wo(t)?` `:F(t),i=r.length*Math.max(n.length-1,0);for(let e=0;e<n.length;e++)i+=String(n[e]).length;return this.context.memoryLimit.use(i),Array.prototype.join.call(n,r)}),Pre=zo(function(e){return Do(e)?_o(e,-1,this.context.ownPropertyOnly):``}),Fre=zo(function(e){return Do(e)?_o(e,0,this.context.ownPropertyOnly):``}),Ire=zo(function(e){let t=yo(e);return this.context.memoryLimit.use(t.length),[...t].reverse()});function*el(e,t,n){let r=[],i=yo(e);this.context.memoryLimit.use(i.length);for(let e of i)r.push([e,t?yield this.context._getFromScope(e,F(t).split(`.`),!1):e]);return r.sort((e,t)=>n(e[1],t[1])).map(e=>e[0])}function*Lre(e,t){return yield*el.call(this,e,t,Lo)}function*Rre(e,t){return yield*el.call(this,e,t,Ro)}var zre=e=>e&&e.length||0;function*Bre(e,t){let n=[],r=yo(e);this.context.memoryLimit.use(r.length);for(let e of r)n.push(yield this.context._getFromScope(e,F(t),!1));return n}function*Vre(e,t){let n=0,r=yo(e);for(let e of r){let r=Number(t?yield this.context._getFromScope(e,F(t),!1):e);n+=Number.isNaN(r)?0:r}return n}function Hre(e){let t=yo(e);return this.context.memoryLimit.use(t.length),Array.prototype.filter.call(t,e=>!wo(bo(e)))}function tl(e,t=[]){let n=yo(e),r=yo(t);return this.context.memoryLimit.use(n.length+r.length),Array.prototype.concat.call(n,r)}function Ure(e,t){return tl.call(this,e,[t])}function Wre(e,t){let n=yo(e);this.context.memoryLimit.use(n.length);let r=[...n];return r.unshift(t),r}function Gre(e){let t=yo(e);this.context.memoryLimit.use(t.length);let n=[...t];return n.pop(),n}function nl(e){let t=yo(e);this.context.memoryLimit.use(t.length);let n=[...t];return n.shift(),n}function rl(e,t,n=1){return e=bo(e),wo(e)?[]:(Eo(e)||(e=F(e)),t=t<0?e.length+t:t,t<0||n<0?Eo(e)?[]:``:(this.context.memoryLimit.use(n),Eo(e)?Array.prototype.slice.call(e,t,t+n):String.prototype.slice.call(e,t,t+n)))}function il(e){return this.context.opts.jekyllWhere?t=>ts.is(e)?Gs(t,e):Eo(t)?qne(t,e):Gs(t,e):e===void 0?e=>Us(e,this.context):t=>Gs(t,e)}function*al(e,t,n,r){let i=[];t=yo(t),this.context.memoryLimit.use(t.length);let a=new fc(F(n)).readScopeValue();for(let e of t)i.push(yield Hs(a,this.context.spawn(e)));let o=il.call(this,r);return Array.prototype.filter.call(t,(t,n)=>o(i[n])===e)}function*ol(e,t,n,r){let i=[],a=new bc(F(r),this.liquid),o=yo(t);this.context.memoryLimit.use(o.length);for(let t of o){this.context.push({[n]:t});let r=yield a.value(this.context);this.context.pop(),r===e&&i.push(t)}return i}function*sl(e,t,n){return yield*al.call(this,!0,e,t,n)}function*cl(e,t,n){return yield*al.call(this,!1,e,t,n)}function*ll(e,t,n){return yield*ol.call(this,!0,e,t,n)}function*ul(e,t,n){return yield*ol.call(this,!1,e,t,n)}function*dl(e,t){let n=new Map;e=vo(e);let r=new fc(F(t)).readScopeValue();this.context.memoryLimit.use(e.length);for(let t of e){let e=yield Hs(r,this.context.spawn(t));n.has(e)||n.set(e,[]),n.get(e).push(t)}return[...n.entries()].map(([e,t])=>({name:e,items:t}))}function*fl(e,t,n){let r=new Map,i=new bc(F(n),this.liquid);e=vo(e),this.context.memoryLimit.use(e.length);for(let n of e){this.context.push({[t]:n});let e=yield i.value(this.context);this.context.pop(),r.has(e)||r.set(e,[]),r.get(e).push(n)}return[...r.entries()].map(([e,t])=>({name:e,items:t}))}function*pl(e,t,n){let r=new fc(F(t)).readScopeValue(),i=yo(e),a=il.call(this,n);for(let e=0;e<i.length;e++)if(a(yield Hs(r,this.context.spawn(i[e]))))return[e,i[e]]}function*ml(e,t,n){let r=new bc(F(n),this.liquid),i=yo(e);for(let e=0;e<i.length;e++){this.context.push({[t]:i[e]});let n=yield r.value(this.context);if(this.context.pop(),n)return[e,i[e]]}}function*hl(e,t,n){return!!(yield*pl.call(this,e,t,n))}function*gl(e,t,n){return!!(yield*ml.call(this,e,t,n))}function*_l(e,t,n){let r=yield*pl.call(this,e,t,n);return r?r[0]:void 0}function*vl(e,t,n){let r=yield*ml.call(this,e,t,n);return r?r[0]:void 0}function*yl(e,t,n){let r=yield*pl.call(this,e,t,n);return r?r[1]:void 0}function*bl(e,t,n){let r=yield*ml.call(this,e,t,n);return r?r[1]:void 0}function xl(e){return e=yo(e),this.context.memoryLimit.use(e.length),[...new Set(e)]}function Sl(e,t=1){if(e=bo(e),wo(e))return[];Eo(e)||(e=F(e)),this.context.memoryLimit.use(e.length);let n=[...e].sort(()=>Math.random()-.5);return t===1?n[0]:n.slice(0,t)}var Cl=Object.freeze({__proto__:null,join:Nre,last:Pre,first:Fre,reverse:Ire,sort:Lre,sort_natural:Rre,size:zre,map:Bre,sum:Vre,compact:Hre,concat:tl,push:Ure,unshift:Wre,pop:Gre,shift:nl,slice:rl,where:sl,reject:cl,where_exp:ll,reject_exp:ul,group_by:dl,group_by_exp:fl,has:hl,has_exp:gl,find_index:_l,find_index_exp:vl,find:yl,find_exp:bl,uniq:xl,sample:Sl});function wl(e,t,n){let r=(e?.length??0)+(n?.length??0);this.context.memoryLimit.use(r);let i=Al(e,this.context.opts,n);return i?(t=bo(t),t=wo(t)?this.context.opts.dateFormat:F(t),this.context.memoryLimit.use(t.length),Ts(i,t,this.context.memoryLimit)):e}function Tl(e){return wl.call(this,e,`%Y-%m-%dT%H:%M:%S%:z`)}function El(e){return wl.call(this,e,`%a, %d %b %Y %H:%M:%S %z`)}function Dl(e,t,n){return kl.call(this,e,`%b`,t,n)}function Ol(e,t,n){return kl.call(this,e,`%B`,t,n)}function kl(e,t,n,r){let i=Al(e,this.context.opts);if(!i)return e;let a=this.context.memoryLimit;if(n===`ordinal`){let e=i.getDate();return r===`US`?Ts(i,`${t} ${e}%q, %Y`,a):Ts(i,`${e}%q ${t} %Y`,a)}return Ts(i,`%d ${t} %Y`,a)}function Al(e,t,n){let r,i=n??t.timezoneOffset,a=t.locale;if(e=bo(e),!wo(e))return r=e===`now`||e===`today`?new ks(Date.now(),a,i):So(e)?new ks(e*1e3,a,i):mo(e)?/^\d+$/.test(e)?new ks(e*1e3,a,i):t.preserveTimezones&&n===void 0?ks.createDateFixedToTimezone(e,a):new ks(e,a,i):new ks(e,a,i),r.valid()?r:void 0}var jl=Object.freeze({__proto__:null,date:wl,date_to_xmlschema:Tl,date_to_rfc822:El,date_to_string:Dl,date_to_long_string:Ol}),Ml=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,Nl=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function Pl(e,t){$o(arguments.length===2,`append expect 2 arguments`);let n=F(e),r=F(t);return this.context.memoryLimit.use(n.length+r.length),n+r}function Fl(e,t){$o(arguments.length===2,`prepend expect 2 arguments`);let n=F(e),r=F(t);return this.context.memoryLimit.use(n.length+r.length),r+n}function Il(e,t){let n=F(e);if(this.context.memoryLimit.use(n.length),t){t=F(t),this.context.memoryLimit.use(t.length);for(let e=0,r=new Set(t);e<n.length;e++)if(!r.has(n[e]))return n.slice(e);return``}return n.trimStart()}function Ll(e){let t=F(e);return this.context.memoryLimit.use(t.length),t.toLowerCase()}function Rl(e){let t=F(e);return this.context.memoryLimit.use(t.length),F(t).toUpperCase()}function zl(e,t){let n=F(e);return t=F(t),this.context.memoryLimit.use(n.length+t.length),n.split(t).join(``)}function Bl(e,t){let n=F(e);return t=F(t),this.context.memoryLimit.use(n.length+t.length),n.replace(t,``)}function Vl(e,t){let n=F(e),r=F(t);this.context.memoryLimit.use(n.length+r.length);let i=n.lastIndexOf(r);return i===-1?n:n.substring(0,i)+n.substring(i+r.length)}function Hl(e,t){if(e=F(e),this.context.memoryLimit.use(e.length),t){t=F(t),this.context.memoryLimit.use(t.length);for(let n=e.length-1,r=new Set(t);n>=0;n--)if(!r.has(e[n]))return e.slice(0,n+1);return``}return e.trimEnd()}function Ul(e,t){let n=F(e);this.context.memoryLimit.use(n.length);let r=n.split(F(t));for(;r.length&&r[r.length-1]===``;)r.pop();return r}function Wl(e,t){let n=F(e);if(this.context.memoryLimit.use(n.length),t){let e=new Set(F(t));this.context.memoryLimit.use(e.size);let r=0,i=n.length-1;for(;e.has(n[r]);)r++;for(;i>=r&&e.has(n[i]);)i--;return n.slice(r,i+1)}return n.trim()}function Gl(e){let t=F(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,``)}function Kl(e){return e=F(e),this.context.memoryLimit.use(e.length),e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function ql(e,t,n){let r=F(e);t=F(t),n=F(n);let i=r.split(t),a=r.length+(i.length-1)*(n.length-t.length);return this.context.memoryLimit.use(a),i.join(n)}function Jl(e,t,n){let r=F(e);return t=F(t),n=F(n),this.context.memoryLimit.use(r.length+t.length+n.length),r.replace(t,()=>n)}function Yl(e,t,n){let r=F(e),i=F(t),a=F(n);this.context.memoryLimit.use(r.length+i.length+a.length);let o=r.lastIndexOf(i);return o===-1?r:r.substring(0,o)+a+r.substring(o+i.length)}function Xl(e,t=50,n=`...`){let r=F(e);return n=F(n),this.context.memoryLimit.use(r.length+n.length),r.length<=t?e:r.substring(0,t-n.length)+n}function Zl(e,t=15,n=`...`){let r=F(e);n=F(n),this.context.memoryLimit.use(r.length+n.length);let i=r.split(/\s+/);t<=0&&(t=1);let a=i.slice(0,t).join(` `);return i.length>=t&&(a+=n),a}function Ql(e){let t=F(e);return this.context.memoryLimit.use(t.length),t.replace(/\s+/g,` `)}function $l(e,t){let n=F(e);if(this.context.memoryLimit.use(n.length),e=n.trim(),!e)return 0;switch(t){case`cjk`:return(e.match(Ml)||[]).length+(e.match(Nl)||[]).length;case`auto`:return Ml.test(e)?e.match(Ml).length+(e.match(Nl)||[]).length:e.split(/\s+/).length;default:return e.split(/\s+/).length}}function eu(e,t=`and`){t=F(t);let n=t.length+e.length*2;for(let t=0;t<e.length;t++)n+=F(e[t]).length;switch(this.context.memoryLimit.use(n),e.length){case 0:return``;case 1:return e[0];case 2:return`${e[0]} ${t} ${e[1]}`;default:return`${e.slice(0,-1).join(`, `)}, ${t} ${e[e.length-1]}`}}var tu=Object.freeze({__proto__:null,append:Pl,prepend:Fl,lstrip:Il,downcase:Ll,upcase:Rl,remove:zl,remove_first:Bl,remove_last:Vl,rstrip:Hl,split:Ul,strip:Wl,strip_newlines:Gl,capitalize:Kl,replace:ql,replace_first:Jl,replace_last:Yl,truncate:Xl,truncatewords:Zl,normalize_whitespace:Ql,number_of_words:$l,array_to_sentence_string:eu});function nu(e){return btoa(String.fromCharCode(...new TextEncoder().encode(e)))}function ru(e){return new TextDecoder().decode(Uint8Array.from(atob(e),e=>e.charCodeAt(0)))}function iu(e){if(typeof Buffer<`u`&&Buffer.isBuffer(e))return this.context.memoryLimit.use(e.byteLength),e.toString(`base64`);let t=F(e);return this.context.memoryLimit.use(t.length),nu(t)}function au(e){let t=F(e);return this.context.memoryLimit.use(t.length),ru(t)}var ou=Object.freeze({__proto__:null,base64_encode:iu,base64_decode:au});function su(e){let t=new Uint8Array(e),n=``;for(let e=0;e<t.length;e++)n+=t[e].toString(16).padStart(2,`0`);return n}function cu(e){return ps(this,void 0,void 0,function*(){let t=new TextEncoder().encode(e);return su(yield crypto.subtle.digest(`SHA-256`,t))})}function lu(e,t){return ps(this,void 0,void 0,function*(){let n=new TextEncoder,r=yield crypto.subtle.importKey(`raw`,n.encode(t),{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]);return su(yield crypto.subtle.sign(`HMAC`,r,n.encode(e)))})}function uu(e){let t=F(e);return this.context.memoryLimit.use(t.length),cu(t)}function du(e,t){let n=F(e),r=F(t);return this.context.memoryLimit.use(n.length+r.length),lu(n,r)}var fu=Object.freeze({__proto__:null,sha256:uu,hmac_sha256:du}),pu=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rc),wre),Mre),Cl),jl),tu),ou),fu),Zs),mu=class extends hc{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,`expected variable name`),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()===`=`,`expected "="`),this.tokenizer.advance(),this.value=new bc(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},hu=[`offset`,`limit`,`reversed`],gu=class extends hc{constructor(e,t,n,r){super(e,t,n);let i=this.tokenizer.readIdentifier(),a=this.tokenizer.readIdentifier(),o=this.tokenizer.readValue();if(!i.size()||a.content!==`in`||!o)throw Error(`illegal tag: ${e.getText()}`);this.variable=i.content,this.collection=o,this.hash=new gc(this.tokenizer,n.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let s,c=r.parseStream(t).on(`start`,()=>s=this.templates).on(`tag:else`,e=>{es(e.args),s=this.elseTemplates}).on(`tag:endfor`,e=>{es(e.args),c.stop()}).on(`template`,e=>s.push(e)).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)});c.start()}*render(e,t){let n=this.liquid.renderer,r=vo(yield Hs(this.collection,e));if(!r.length){yield n.renderTemplates(this.elseTemplates,e,t);return}let i=`continue-`+this.variable+`-`+this.collection.getText();e.push(Yc({continue:e.getRegister(i,{})}));let a=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(a).filter(e=>hu.includes(e)):hu.filter(e=>a[e]!==void 0)).reduce((e,t)=>t===`offset`?vu(e,a.offset):t===`limit`?yu(e,a.limit):_u(e),r),e.setRegister(i,(a.offset||0)+r.length);let o=Yc({forloop:new ns(r.length,this.collection.getText(),this.variable)});e.push(o);for(let i of r){if(o[this.variable]=i,e.continueCalled=e.breakCalled=!1,yield n.renderTemplates(this.templates,e,t),e.breakCalled)break;o.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){let e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(let e of Object.values(this.hash.hash))qc(e)&&(yield e)}blockScope(){return[this.variable,`forloop`]}};function _u(e){return[...e].reverse()}function vu(e,t){return e.slice(t)}function yu(e,t){return e.slice(0,t)}var bu=class extends hc{constructor(e,t,n,r){for(super(e,t,n),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;t.length;){let e=t.shift();if(Vc(e)&&e.name===`endcapture`)return;this.templates.push(r.parseToken(e,t))}throw Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted(),e))return e;throw this.tokenizer.error(`invalid capture name`)}*render(e){let t=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=t}*children(){return this.templates}*localScope(){yield this.identifier}},xu=class extends hc{constructor(e,t,n,r){super(e,t,n),this.branches=[],this.elseTemplates=[],this.value=new bc(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let i=[],a=0,o=r.parseStream(t).on(`tag:when`,e=>{if(a>0)return;i=[];let t=[];for(;!e.tokenizer.end();)t.push(e.tokenizer.readValueOrThrow()),e.tokenizer.skipBlank(),e.tokenizer.peek()===`,`?e.tokenizer.readTo(`,`):e.tokenizer.readTo(`or`);this.branches.push({values:t,templates:i})}).on(`tag:else`,()=>{a++,i=this.elseTemplates}).on(`tag:endcase`,()=>o.stop()).on(`template`,e=>{(i!==this.elseTemplates||a===1)&&i.push(e)}).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)});o.start()}*render(e,t){let n=this.liquid.renderer,r=bo(yield this.value.value(e,e.opts.lenientIf)),i=!1;for(let a of this.branches)for(let o of a.values)if(Gs(r,yield Hs(o,e,e.opts.lenientIf))){yield n.renderTemplates(a.templates,e,t),i=!0;break}i||(yield n.renderTemplates(this.elseTemplates,e,t))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},Su=class extends hc{constructor(e,t,n){for(super(e,t,n);t.length;){let e=t.shift();if(Vc(e)&&e.name===`endcomment`)return}throw Error(`tag ${e.getText()} not closed`)}render(){}},Cu=class extends hc{constructor(e,t,n,r){super(e,t,n);let i=this.tokenizer;for(this.file=wu(i,this.liquid,r),this.currentFile=e.file;!i.end();){i.skipBlank();let e=i.p,t=i.readIdentifier();if((t.content===`with`||t.content===`for`)&&(i.skipBlank(),i.peek()!==`:`)){let e=i.readValue();if(e){let n=i.p,r=i.readIdentifier(),a;r.content===`as`?a=i.readIdentifier():i.p=n;let o={value:e,alias:a&&a.content};t.content===`with`?this.with=o:this.forBinding=o,i.skipBlank(),i.peek()===`,`&&i.advance();continue}}i.p=e;break}this.hash=new gc(i,n.options.keyValueSeparator)}*render(e,t){let{liquid:n,hash:r}=this,i=yield Eu(this.file,e,n);$o(i,()=>`illegal file path "${i}"`);let a=e.spawn(),o=a.bottom();if(fs(o,yield r.render(e)),this.with){let{value:t,alias:n}=this.with;o[n||i]=yield Hs(t,e)}if(this.forBinding){let{value:r,alias:s}=this.forBinding,c=vo(yield Hs(r,e));o.forloop=new ns(c.length,r.getText(),s);for(let e of c){o[s]=e;let r=yield n._parsePartialFile(i,a.sync,this.currentFile);yield n.renderer.renderTemplates(r,a,t),o.forloop.next()}}else{let e=yield n._parsePartialFile(i,a.sync,this.currentFile);yield n.renderer.renderTemplates(e,a,t)}}*children(e,t){return e&&mo(this.file)?yield this.liquid._parsePartialFile(this.file,t,this.currentFile):[]}partialScope(){if(mo(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:t,alias:n}=this.with;mo(n)?e.push([n,t]):mo(this.file)&&e.push([this.file,t])}if(this.forBinding){let{value:t,alias:n}=this.forBinding;mo(n)?e.push([n,t]):mo(this.file)&&e.push([this.file,t])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(let e of Object.values(this.hash.hash))qc(e)&&(yield e);if(this.with){let{value:e}=this.with;qc(e)&&(yield e)}if(this.forBinding){let{value:e}=this.forBinding;qc(e)&&(yield e)}}};function wu(e,t,n){if(t.options.dynamicPartials){let t=e.readValue();return e.assert(t,`illegal file path`),t.getText()===`none`?void 0:Hc(t)?Tu(n.parse(Hne(t))):t}let r=[...e.readFileNameTemplate(t.options)],i=Tu(n.parseTokens(r));return i===`none`?void 0:i}function Tu(e){return e.length===1&&Bc(e[0].token)?e[0].token.getContent():e}function*Eu(e,t,n){return typeof e==`string`?e:Array.isArray(e)?n.renderer.renderTemplates(e,t):yield Hs(e,t)}var Du=class extends hc{constructor(e,t,n,r){super(e,t,n);let{tokenizer:i}=e;this.file=wu(i,this.liquid,r),this.currentFile=e.file;let a=i.p;i.readIdentifier().content===`with`?(i.skipBlank(),i.peek()===`:`?i.p=a:this.withVar=i.readValue()):i.p=a,this.hash=new gc(i,n.options.jekyllInclude||n.options.keyValueSeparator)}*render(e,t){let{liquid:n,hash:r,withVar:i}=this,{renderer:a}=n,o=yield Eu(this.file,e,n);$o(o,()=>`illegal file path "${o}"`);let s=e.saveRegister(`blocks`,`blockMode`);e.setRegister(`blocks`,{}),e.setRegister(`blockMode`,Qc.OUTPUT);let c=Yc(yield r.render(e));i&&(c[o]=yield Hs(i,e));let l=yield n._parsePartialFile(o,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?Yc({include:c}):c),yield a.renderTemplates(l,e,t),e.pop(),e.restoreRegister(s)}*children(e,t){return e&&mo(this.file)?yield this.liquid._parsePartialFile(this.file,t,this.currentFile):[]}partialScope(){if(mo(this.file)){let e;return this.liquid.options.jekyllInclude?e=[`include`]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(qc),qc(this.file)&&(yield this.file),qc(this.withVar)&&(yield this.withVar)}},Ou=class extends hc{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,t){let n=e.environments;So(n[this.variable])||(n[this.variable]=0),t.write(F(--n[this.variable]))}*localScope(){yield this.identifier}},ku=class extends hc{constructor(e,t,n){super(e,t,n),this.candidates=[];let r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(this.tokenizer.peek()===`:`?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){let e=this.tokenizer.readValue();e&&this.candidates.push(e),this.tokenizer.readTo(`,`)}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,t){let n=`cycle:${yield Hs(this.group,e)}:`+this.candidates.join(`,`),r=e.getRegister(`cycle`,{}),i=r[n];i===void 0&&(i=r[n]=0);let a=this.candidates[i];return i=(i+1)%this.candidates.length,r[n]=i,yield Hs(a,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},Au=class extends hc{constructor(e,t,n,r){super(e,t,n),this.branches=[];let i=[];r.parseStream(t).on(`start`,()=>this.branches.push({value:new bc(e.tokenizer.readFilteredValue(),this.liquid),templates:i=[]})).on(`tag:elsif`,e=>{$o(!this.elseTemplates,`unexpected elsif after else`),this.branches.push({value:new bc(e.tokenizer.readFilteredValue(),this.liquid),templates:i=[]})}).on(`tag:else`,e=>{es(e.args),$o(!this.elseTemplates,`duplicated else`),i=this.elseTemplates=[]}).on(`tag:endif`,function(e){es(e.args),this.stop()}).on(`template`,e=>i.push(e)).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)}).start()}*render(e,t){let n=this.liquid.renderer;for(let{value:r,templates:i}of this.branches)if(Us(yield r.value(e,e.opts.lenientIf),e)){yield n.renderTemplates(i,e,t);return}yield n.renderTemplates(this.elseTemplates||[],e,t)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},ju=class extends hc{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,t){let n=e.environments;So(n[this.variable])||(n[this.variable]=0);let r=n[this.variable];n[this.variable]++,t.write(F(r))}*localScope(){yield this.identifier}},Mu=class extends hc{constructor(e,t,n,r){super(e,t,n),this.file=wu(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new gc(this.tokenizer,n.options.keyValueSeparator),this.templates=r.parseTokens(t)}*render(e,t){let{liquid:n,args:r,file:i}=this,{renderer:a}=n;if(i===void 0){e.setRegister(`blockMode`,Qc.OUTPUT),yield a.renderTemplates(this.templates,e,t);return}let o=yield Eu(this.file,e,n);$o(o,()=>`illegal file path "${o}"`);let s=yield n._parseLayoutFile(o,e.sync,this.currentFile);e.setRegister(`blockMode`,Qc.STORE);let c=yield a.renderTemplates(this.templates,e),l=e.getRegister(`blocks`,{});l[``]===void 0&&(l[``]=(e,t)=>t.write(c)),e.setRegister(`blockMode`,Qc.OUTPUT),e.push(Yc(yield r.render(e))),yield a.renderTemplates(s,e,t),e.pop()}*children(e){let t=this.templates.slice();return e&&mo(this.file)&&t.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),t}*arguments(){for(let e of Object.values(this.args.hash))qc(e)&&(yield e);qc(this.file)&&(yield this.file)}partialScope(){if(mo(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},Nu=class extends hc{constructor(e,t,n,r){super(e,t,n),this.templates=[];let i=/\w+/.exec(e.args);for(this.block=i?i[0]:``;t.length;){let e=t.shift();if(Vc(e)&&e.name===`endblock`)return;let n=r.parseToken(e,t);this.templates.push(n)}throw Error(`tag ${e.getText()} not closed`)}*render(e,t){let n=this.getBlockRender(e);e.getRegister(`blockMode`)===Qc.STORE?e.getRegister(`blocks`,{})[this.block]=n:yield n(new os,t)}getBlockRender(e){let t=this,{liquid:n,templates:r}=this,i=e.getRegister(`blocks`,{})[this.block],a=function*(i,a){let o=e.getRegister(`blockStack`,[]);if(o.includes(t))throw Error(`block tag cannot be nested`);o.push(t),e.push(Yc({block:i})),yield n.renderer.renderTemplates(r,e,a),e.pop(),o.pop()};return i?(e,t)=>i(new os(t=>a(e,t)),t):a}*children(){return this.templates}blockScope(){return[`block`]}},Pu=class extends hc{constructor(e,t,n){for(super(e,t,n),this.tokens=[];t.length;){let e=t.shift();if(Vc(e)&&e.name===`endraw`)return;this.tokens.push(e)}throw Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join(``)}},Fu=class extends ns{constructor(e,t,n,r){super(e,n,r),this.length=e,this.cols=t}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}},Iu={assign:mu,for:gu,capture:bu,case:xu,comment:Su,include:Du,render:Cu,decrement:Ou,increment:ju,cycle:ku,if:Au,layout:Mu,block:Nu,raw:Pu,tablerow:class extends hc{constructor(e,t,n,r){super(e,t,n);let i=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();let a=this.tokenizer.readIdentifier(),o=this.tokenizer.readValue();if(a.content!==`in`||!o)throw Error(`illegal tag: ${e.getText()}`);this.variable=i.content,this.collection=o,this.args=new gc(this.tokenizer,n.options.keyValueSeparator),this.templates=[];let s,c=r.parseStream(t).on(`start`,()=>s=this.templates).on(`tag:endtablerow`,()=>c.stop()).on(`template`,e=>s.push(e)).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)});c.start()}*render(e,t){let n=vo(yield Hs(this.collection,e)),r=yield this.args.render(e),i=r.offset||0,a=r.limit===void 0?n.length:r.limit;n=n.slice(i,i+a);let o=r.cols||n.length,s=this.liquid.renderer,c=new Fu(n.length,o,this.collection.getText(),this.variable),l=Yc({tablerowloop:c});e.push(l);for(let r=0;r<n.length;r++,c.next())l[this.variable]=n[r],c.col0()===0&&(c.row()!==1&&t.write(`</tr>`),t.write(`<tr class="row${c.row()}">`)),t.write(`<td class="col${c.col()}">`),yield s.renderTemplates(this.templates,e,t),t.write(`</td>`);n.length&&t.write(`</tr>`),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(let e of Object.values(this.args.hash))qc(e)&&(yield e)}blockScope(){return[this.variable,`tablerowloop`]}},unless:class extends hc{constructor(e,t,n,r){super(e,t,n),this.branches=[],this.elseTemplates=[];let i=[],a=0;r.parseStream(t).on(`start`,()=>this.branches.push({value:new bc(e.tokenizer.readFilteredValue(),this.liquid),test:Ws,templates:i=[]})).on(`tag:elsif`,e=>{if(a>0){i=[];return}this.branches.push({value:new bc(e.tokenizer.readFilteredValue(),this.liquid),test:Us,templates:i=[]})}).on(`tag:else`,()=>{a++,i=this.elseTemplates}).on(`tag:endunless`,function(){this.stop()}).on(`template`,e=>{(i!==this.elseTemplates||a===1)&&i.push(e)}).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)}).start()}*render(e,t){let n=this.liquid.renderer;for(let{value:r,test:i,templates:a}of this.branches)if(i(yield r.value(e,e.opts.lenientIf),e)){yield n.renderTemplates(a,e,t);return}yield n.renderTemplates(this.elseTemplates,e,t)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},break:class extends hc{render(e,t){e.breakCalled=!0}},continue:class extends hc{render(e,t){e.continueCalled=!0}},echo:class extends hc{constructor(e,t,n){super(e,t,n),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new bc(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,t){if(!this.value)return;let n=yield this.value.value(e,!1);t.write(n)}*arguments(){this.value&&(yield this.value)}},liquid:class extends hc{constructor(e,t,n,r){super(e,t,n);let i=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(i)}*render(e,t){yield this.liquid.renderer.renderTemplates(this.templates,e,t)}*children(){return this.templates}},"#":class extends hc{constructor(e,t,n){if(super(e,t,n),e.args.search(/\n\s*[^#\s]/g)!==-1)throw Error(`every line of an inline comment must start with a '#' character`)}render(){}}},Lu=class e{constructor(e={}){this.renderer=new zne,this.filters=Object.create(null),this.tags=Object.create(null),this.options=oc(e),this.parser=new Lc(this),Oo(Iu,(e,t)=>this.registerTag(t,e)),Oo(pu,(e,t)=>this.registerFilter(t,e))}parse(e,t){return new Lc(this).parse(e,t)}_render(e,t,n){let r=t instanceof Xc?t:new Xc(t,this.options,n);return this.renderer.renderTemplates(e,r)}render(e,t,n){return ps(this,void 0,void 0,function*(){return hs(this._render(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}renderSync(e,t,n){return gs(this._render(e,t,Object.assign(Object.assign({},n),{sync:!0})))}renderToNodeStream(e,t,n={}){let r=new Xc(t,this.options,n);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,t,n){let r=this.parse(e);return this._render(r,t,n)}parseAndRender(e,t,n){return ps(this,void 0,void 0,function*(){return hs(this._parseAndRender(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}parseAndRenderSync(e,t,n){return gs(this._parseAndRender(e,t,Object.assign(Object.assign({},n),{sync:!0})))}_parsePartialFile(e,t,n){return new Lc(this).parseFile(e,t,Ic.Partials,n)}_parseLayoutFile(e,t,n){return new Lc(this).parseFile(e,t,Ic.Layouts,n)}_parseFile(e,t,n,r){return new Lc(this).parseFile(e,t,n,r)}parseFile(e,t){return ps(this,void 0,void 0,function*(){return hs(new Lc(this).parseFile(e,!1,t))})}parseFileSync(e,t){return gs(new Lc(this).parseFile(e,!0,t))}*_renderFile(e,t,n){let r=yield this._parseFile(e,n.sync,n.lookupType);return yield this._render(r,t,n)}renderFile(e,t,n){return ps(this,void 0,void 0,function*(){return hs(this._renderFile(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}renderFileSync(e,t,n){return gs(this._renderFile(e,t,Object.assign(Object.assign({},n),{sync:!0})))}renderFileToNodeStream(e,t,n){return ps(this,void 0,void 0,function*(){let r=yield this.parseFile(e);return this.renderToNodeStream(r,t,n)})}_evalValue(e,t){let n=new bc(e,this),r=t instanceof Xc?t:new Xc(t,this.options);return n.value(r)}evalValue(e,t){return ps(this,void 0,void 0,function*(){return hs(this._evalValue(e,t))})}evalValueSync(e,t){return gs(this._evalValue(e,t))}registerFilter(e,t){this.filters[e]=t}registerTag(e,t){this.tags[e]=ho(t)?t:_c(t)}plugin(t){return t.call(this,e)}express(){let e=this,t=!0;return function(n,r,i){if(t){t=!1;let n=cc(this.root);e.options.root.unshift(...n),e.options.layouts.unshift(...n),e.options.partials.unshift(...n)}e.renderFile(n,r).then(e=>i(null,e),i)}}analyze(e,t={}){return ps(this,void 0,void 0,function*(){return Dc(e,t)})}analyzeSync(e,t={}){return Oc(e,t)}parseAndAnalyze(e,t,n={}){return ps(this,void 0,void 0,function*(){return Dc(this.parse(e,t),n)})}parseAndAnalyzeSync(e,t,n={}){return Oc(this.parse(e,t),n)}variables(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Object.keys(n.variables)})}variablesSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Object.keys(n.variables)}fullVariables(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.variables).flatMap(e=>e.map(e=>String(e)))))})}fullVariablesSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.variables).flatMap(e=>e.map(e=>String(e)))))}variableSegments(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Array.from(Vo(Object.values(n.variables).flatMap(e=>e.map(e=>e.toArray()))))})}variableSegmentsSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Array.from(Vo(Object.values(n.variables).flatMap(e=>e.map(e=>e.toArray()))))}globalVariables(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Object.keys(n.globals)})}globalVariablesSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Object.keys(n.globals)}globalFullVariables(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.globals).flatMap(e=>e.map(e=>String(e)))))})}globalFullVariablesSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.globals).flatMap(e=>e.map(e=>String(e)))))}globalVariableSegments(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Array.from(Vo(Object.values(n.globals).flatMap(e=>e.map(e=>e.toArray()))))})}globalVariableSegmentsSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Array.from(Vo(Object.values(n.globals).flatMap(e=>e.map(e=>e.toArray()))))}};function Ru(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function zu(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/'/g,`\\'`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`).replace(/\n/g,``).replace(/\r/g,``).replace(/\t/g,``)}function Bu(e){if(!e)return``;try{let t=new URL(e);return[`http:`,`https:`,`data:`].includes(t.protocol)?Ru(e):``}catch{return e.startsWith(`/`)?Ru(e):``}}function Vu(e){return e&&/^(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|hsla?\([^)]+\)|[a-zA-Z]+)$/.test(e.trim())?e.trim():``}function Hu(e){if(!e)return`#f5f5f5`;if(typeof e==`string`)return Vu(e)||`#f5f5f5`;let{type:t,start:n,end:r,angle_deg:i}=e;if(t===`linear-gradient`&&n&&r){let e=Vu(n),t=Vu(r);if(e&&t)return`linear-gradient(${typeof i==`number`?i:180}deg, ${e}, ${t})`}if(n){let e=Vu(n);if(e)return e}return`#f5f5f5`}function Uu(e,t){if(e?.background_image_url){let t=Bu(e.background_image_url);if(t)return`${Vu(e.background_color)||`#f5f5f5`} url("${zu(t)}") center / cover no-repeat`}if(e?.background_color){let t=Vu(e.background_color);if(t)return t}return Hu(t)}var Wu=(e,t)=>{try{return t(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,e=>{try{return t(e)}catch{return e}})}},Gu=decodeURIComponent,Ku=/^[\w!#$%&'*.^`|~+-]+$/,qu=/^[ !#-:<-[\]-~]*$/,Ju=e=>{let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==32&&n!==9)break;t++}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==32&&t!==9)break;n--}return t===0&&n===e.length?e:e.slice(t,n)},Yu=(e,t)=>{if(t&&e.indexOf(t)===-1)return{};let n=e.split(`;`),r=Object.create(null);for(let e of n){let n=e.indexOf(`=`);if(n===-1)continue;let i=Ju(e.substring(0,n));if(t&&t!==i||!Ku.test(i)||i in r)continue;let a=Ju(e.substring(n+1));if(a.startsWith(`"`)&&a.endsWith(`"`)&&(a=a.slice(1,-1)),qu.test(a)&&(r[i]=a.indexOf(`%`)===-1?a:Wu(a,Gu),t))break}return r},Kre=(e,t,n={})=>{if(!Ku.test(e))throw Error(`Invalid cookie name`);let r=`${e}=${t}`;if(e.startsWith(`__Secure-`)&&!n.secure)throw Error(`__Secure- Cookie must have Secure attributes`);if(e.startsWith(`__Host-`)){if(!n.secure)throw Error(`__Host- Cookie must have Secure attributes`);if(n.path!==`/`)throw Error(`__Host- Cookie must have Path attributes with "/"`);if(n.domain)throw Error(`__Host- Cookie must not have Domain attributes`)}for(let e of[`domain`,`path`,`sameSite`,`priority`])if(n[e]&&/[;\r\n]/.test(n[e]))throw Error(`${e} must not contain ";", "\\r", or "\\n"`);if(n&&typeof n.maxAge==`number`&&n.maxAge>=0){if(n.maxAge>3456e4)throw Error(`Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.`);r+=`; Max-Age=${n.maxAge|0}`}if(n.domain&&n.prefix!==`host`&&(r+=`; Domain=${n.domain}`),n.path&&(r+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw Error(`Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.`);r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+=`; HttpOnly`),n.secure&&(r+=`; Secure`),n.sameSite&&(r+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.priority&&(r+=`; Priority=${n.priority.charAt(0).toUpperCase()+n.priority.slice(1)}`),n.partitioned){if(!n.secure)throw Error(`Partitioned Cookie must have Secure attributes`);r+=`; Partitioned`}return r},Xu=(e,t,n)=>(t=encodeURIComponent(t),Kre(e,t,n)),qre=(e,t,n)=>{let r=e.req.raw.headers.get(`Cookie`);if(typeof t==`string`){if(!r)return;let e=t;return n===`secure`?e=`__Secure-`+t:n===`host`&&(e=`__Host-`+t),Yu(r,e)[e]}return r?Yu(r):{}},Jre=(e,t,n)=>{let r;return r=n?.prefix===`secure`?Xu(`__Secure-`+e,t,{path:`/`,...n,secure:!0}):n?.prefix===`host`?Xu(`__Host-`+e,t,{...n,path:`/`,secure:!0,domain:void 0}):Xu(e,t,{path:`/`,...n}),r},Zu=(e,t,n,r)=>{let i=Jre(t,n,r);e.header(`Set-Cookie`,i,{append:!0})},Qu=`mrng36fy`,Yre=c({common:()=>$u,consent:()=>ed,default:()=>Xre,invitation:()=>td,login:()=>nd,mfa:()=>rd,organizations:()=>ad,passkeys:()=>id,signup:()=>od,status:()=>sd}),$u={common:{alertListTitle:`Upozornění`,backText:`Vrátit se zpět`,cancelText:`Zrušit`,closeText:`Zavřít`,contactSupportText:`Potřebujete pomoc?`,continueText:`Pokračovat`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Něco se pokazilo. Zkuste to prosím znovu.`,hidePasswordText:`Skrýt heslo`,loadingText:`Načítání...`,orText:`nebo`,privacyPolicyText:`Zásady ochrany osobních údajů`,showPasswordText:`Zobrazit heslo`,termsOfServiceText:`Podmínky služby`,termsShortText:`Podmínky`,tryAgainText:`Zkusit znovu`}},ed={consent:{buttonText:`Přijmout`,cancelButtonText:`Zamítnout`,description:"${clientName} žádá o přístup k vašemu účtu",pageTitle:"Autorizace | ${clientName}",scopesTitle:"Tímto povolíte ${clientName}:",title:"Autorizovat ${clientName}"}},td={invitation:{acceptButtonText:`Přijmout pozvánku`,description:"${inviterName} vás pozval(a), abyste se připojili k ${organizationName} na ${clientName}",pageTitle:"Pozvánka | ${clientName}",title:`Byli jste pozváni`}},nd={login:{alertListTitle:`Upozornění`,buttonText:`Pokračovat`,description:"Přihlaste se k ${clientName}.",editEmailText:`Upravit`,emailPlaceholder:`E-mailová adresa`,enterACodeBtn:`Přihlásit se kódem`,federatedConnectionButtonText:"Pokračovat s ${connectionName}",footerLinkText:`Zaregistrujte se`,footerText:`Nemáte účet?`,forgotPasswordText:`Zapomněli jste heslo?`,hidePasswordText:`Skrýt heslo`,invalidEmail:`Neplatný e-mail`,invalidIdentifier:`Neplatný e-mail nebo uživatelské jméno`,invitationDescription:"Přihlaste se pro přijetí pozvánky od ${inviterName} k připojení k ${companyName} na ${clientName}.",invitationTitle:`Byli jste pozváni!`,logoAltText:"${companyName}","no-email":`Zadejte prosím e-mailovou adresu`,"no-password":`Heslo je povinné`,pageTitle:"Přihlášení | ${clientName}",passwordLoginNotAvailable:`Přihlášení heslem není k dispozici`,passwordPlaceholder:`Heslo`,phonePlaceholder:`Telefonní číslo`,separatorText:`nebo`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,showPasswordText:`Zobrazit heslo`,signupActionLinkText:"${footerLinkText}",signupActionText:"${footerText}",title:`Vítejte`,tooManyFailedLogins:`Příliš mnoho neúspěšných pokusů o přihlášení. Zkuste to prosím později.`,unverifiedEmail:`Před přihlášením prosím ověřte svou e-mailovou adresu`,userAccountDoesNotExist:`Uživatelský účet neexistuje`,usernamePlaceholder:`Uživatelské jméno nebo e-mailová adresa`,usernameTooLong:"Uživatelské jméno musí mít nejvýše ${max} znaků",usernameTooShort:"Uživatelské jméno musí mít alespoň ${min} znaků",wrongCredentials:`Nesprávné uživatelské jméno nebo heslo`,passkeyButtonText:`Přihlásit se pomocí passkey`}},rd={mfa:{backupCodeText:`Použít záložní kód`,description:`Zvolte metodu ověření`,pageTitle:"Vícefaktorové ověření | ${clientName}",title:`Ověřte svou identitu`}},id={"passkey-enrollment-nudge":{title:`Zabezpečte svůj účet pomocí passkey`,description:`Passkey používají biometrii nebo PIN vašeho zařízení k rychlejšímu a bezpečnějšímu přihlášení.`,enrollButtonText:`Nastavit passkey`,snoozeButtonText:`Možná později`,optOutLinkText:`Nezobrazovat znovu`,pageTitle:"Nastavení Passkey | ${clientName}"},"passkey-enrollment":{title:`Vytvořte svůj passkey`,description:`Postupujte podle pokynů prohlížeče a vytvořte passkey pro tento účet.`,errorMessage:`Vytvoření passkey se nezdařilo. Zkuste to prosím znovu.`,cancelLinkText:`Prozatím přeskočit`,retryButtonText:`Zkusit znovu`,enrollmentComplete:`Váš passkey byl úspěšně nastaven. Tuto stránku můžete zavřít.`,pageTitle:"Vytvoření Passkey | ${clientName}"},"passkey-challenge":{title:`Přihlásit se pomocí passkey`,description:`Postupujte podle pokynů prohlížeče k ověření vaší identity.`,errorMessage:`Ověření pomocí passkey selhalo. Zkuste to prosím znovu.`,cancelLinkText:`Zpět na přihlášení`,retryButtonText:`Zkusit znovu`,pageTitle:"Přihlášení pomocí passkey | ${clientName}"}},ad={organizations:{description:`Vyberte, ke které organizaci se chcete přihlásit`,pageTitle:"Výběr organizace | ${clientName}",searchPlaceholder:`Hledat organizace`,title:`Vyberte svou organizaci`}},od={signup:{buttonText:`Pokračovat`,confirmPasswordPlaceholder:`Potvrzení hesla`,description:`Zaregistrujte se a pokračujte`,"email-already-exists":`Tento e-mail je již zaregistrován`,emailPlaceholder:`E-mailová adresa`,federatedConnectionButtonText:"Pokračovat s ${connectionName}",hidePasswordText:`Skrýt heslo`,"invalid-email-format":`Neplatný e-mail`,loginActionLinkText:`Přihlásit se`,loginActionText:`Už máte účet?`,"no-email":`Zadejte prosím e-mailovou adresu`,"no-password":`Heslo je povinné`,"no-username":`Uživatelské jméno je povinné`,pageTitle:"Registrace | ${clientName}",passwordPlaceholder:`Heslo`,passwordsDidntMatch:`Hesla se neshodují`,phonePlaceholder:`Telefonní číslo`,privacyPolicyLinkText:`Zásady ochrany osobních údajů`,separatorText:`nebo`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,showPasswordText:`Zobrazit heslo`,termsOfServiceLinkText:`Podmínky služby`,termsText:`Registrací souhlasíte s našimi`,title:`Vytvořte svůj účet`,"username-already-exists":`Toto uživatelské jméno je již obsazeno`,usernamePlaceholder:`Uživatelské jméno`,verifyEmailText:`Zkontrolujte prosím svůj e-mail pro ověření účtu`}},sd={status:{continueButtonText:`Pokračovat`,errorTitle:`Chyba`,pageTitle:"Stav | ${clientName}",successTitle:`Hotovo`,title:`Stav`}},Xre={common:$u,consent:ed,"device-flow":{"device-flow":{buttonText:`Pokračovat`,codePlaceholder:`Zadejte kód`,description:`Zadejte kód zobrazený na vašem zařízení`,"expired-code":`Platnost kódu vypršela`,"invalid-code":`Zadaný kód je neplatný`,pageTitle:"Aktivace zařízení | ${clientName}",title:`Aktivujte své zařízení`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Přihlásit se`,codeLabel:`Ověřovací kód`,codePlaceholder:`Zadejte kód`,defaultDescription:`Zadejte ověřovací kód zaslaný na váš e-mail`,description:"Odeslali jsme kód na ${email}","invalid-code":`Neplatný kód`,noCode:`Zadejte prosím ověřovací kód`,pageTitle:"Zadejte kód | ${clientName}",resendText:`Opětovné odeslání kódu`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,title:`Zkontrolujte svůj e-mail`,unexpectedError:`Došlo k neočekávané chybě`}},"email-verification":{"email-verification":{description:"Odeslali jsme e-mail na ${email}",pageTitle:"Ověření e-mailu | ${clientName}",resendText:`Opětovné odeslání kódu`,successDescription:`Váš e-mail byl úspěšně ověřen.`,successTitle:`E-mail ověřen`,title:`Ověření e-mailu`}},invitation:td,login:nd,"login-id":{"login-id":{alertListTitle:`Upozornění`,"auth0-users-validation":`Něco se pokazilo, zkuste to prosím později`,"authentication-failure":`Omlouváme se, při pokusu o přihlášení se něco pokazilo`,buttonText:`Pokračovat`,"captcha-client-failure":`Nepodařilo se načíst bezpečnostní výzvu. Zkuste to prosím znovu. (Kód chyby: #{errorCode})`,"captcha-validation-failure":`Omlouváme se, při ověřování captcha došlo k chybě. Zkuste to prosím znovu.`,captchaCodePlaceholder:`Zadejte kód zobrazený výše`,"custom-script-error-code":`Něco se pokazilo, zkuste to prosím později.`,description:"Přihlaste se k ${clientName}.",editEmailText:`Upravit`,emailPlaceholder:`E-mailová adresa`,federatedConnectionButtonText:"Pokračovat s ${connectionName}",footerLinkText:`Zaregistrujte se`,footerText:`Nemáte účet?`,forgotPasswordText:`Zapomněli jste heslo?`,hidePasswordText:`Skrýt heslo`,"invalid-captcha":`Vyřešte úlohu, abyste ověřili, že nejste robot.`,"invalid-code":`Neplatný kód`,"invalid-connection":`Neplatné připojení`,"invalid-email-format":`Neplatný e-mail`,"invalid-email-phone":`Zadejte platnou e-mailovou adresu nebo telefonní číslo. Telefonní čísla musí obsahovat předvolbu země.`,"invalid-email-phone-username":`Zadejte platnou e-mailovou adresu, telefonní číslo nebo uživatelské jméno. Telefonní čísla musí obsahovat předvolbu země.`,"invalid-email-username":`Zadejte platnou e-mailovou adresu nebo uživatelské jméno`,"invalid-expired-code":`Neplatný nebo vypršelý uživatelský kód`,"invalid-login-id":`Zadáno neplatné přihlašovací ID`,"invalid-phone-username":`Zadejte platné telefonní číslo nebo uživatelské jméno. Telefonní čísla musí obsahovat předvolbu země.`,"invalid-recaptcha":`Zaškrtněte políčko, abyste ověřili, že nejste robot.`,"invalid-username":"Uživatelské jméno může obsahovat pouze alfanumerické znaky nebo: '${characters}'. Uživatelské jméno musí mít ${min} až ${max} znaků.",invitationDescription:"Přihlaste se pro přijetí pozvánky od ${inviterName} k připojení k ${companyName} na ${clientName}.",invitationTitle:`Byli jste pozváni!`,"ip-blocked":`Zjistili jsme podezřelé přihlašovací chování a další pokusy budou blokovány. Kontaktujte prosím administrátora.`,logoAltText:"${companyName}","no-db-connection":`Neplatné připojení`,"no-email":`Zadejte prosím e-mailovou adresu`,"no-email-phone":`Je vyžadována e-mailová adresa nebo telefonní číslo`,"no-email-phone-username":`Je vyžadováno telefonní číslo, uživatelské jméno nebo e-mailová adresa`,"no-email-username":`Je vyžadována e-mailová adresa nebo uživatelské jméno`,"no-password":`Heslo je povinné`,"no-phone":`Zadejte prosím telefonní číslo`,"no-phone-username":`Je vyžadováno telefonní číslo nebo uživatelské jméno`,"no-username":`Uživatelské jméno je povinné`,pageTitle:"Přihlášení | ${clientName}","password-breached":`Zjistili jsme potenciální bezpečnostní problém s tímto účtem. Pro ochranu vašeho účtu jsme toto přihlášení zablokovali. Pro pokračování prosím resetujte své heslo.`,passwordPlaceholder:`Heslo`,phoneOrEmailPlaceholder:`E-mail nebo telefonní číslo`,phoneOrUsernameOrEmailPlaceholder:`Telefon, uživatelské jméno nebo e-mail`,phoneOrUsernamePlaceholder:`Telefonní číslo nebo uživatelské jméno`,phonePlaceholder:`Telefonní číslo`,"same-user-login":`Příliš mnoho pokusů o přihlášení pro tohoto uživatele. Počkejte prosím a zkuste to znovu později.`,selectCountryCode:"Vyberte předvolbu země, aktuálně nastaveno na ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`nebo`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,showPasswordText:`Zobrazit heslo`,signupActionLinkText:"${footerLinkText}",signupActionText:"${footerText}",termsAndConditionsTemplate:'Pokračováním souhlasíte s našimi <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Podmínkami a pravidly</a>.',title:`Vítejte`,"user-blocked":`Váš účet byl zablokován po několika po sobě jdoucích neúspěšných pokusech o přihlášení.`,userAccountDoesNotExist:`Uživatelský účet neexistuje`,usernameOnlyPlaceholder:`Uživatelské jméno`,usernameOrEmailPlaceholder:`Uživatelské jméno nebo e-mailová adresa`,usernamePlaceholder:`Uživatelské jméno nebo e-mailová adresa`,usernameTooLong:"Uživatelské jméno musí mít nejvýše ${max} znaků",usernameTooShort:"Uživatelské jméno musí mít alespoň ${min} znaků","wrong-credentials":`Nesprávné uživatelské jméno nebo heslo`,"wrong-email-credentials":`Nesprávný e-mail nebo heslo`,"wrong-email-phone-credentials":`Nesprávná e-mailová adresa, telefonní číslo nebo heslo. Telefonní čísla musí obsahovat předvolbu země.`,"wrong-email-phone-username-credentials":`Nesprávná e-mailová adresa, telefonní číslo, uživatelské jméno nebo heslo. Telefonní čísla musí obsahovat předvolbu země.`,"wrong-email-username-credentials":`Nesprávná e-mailová adresa, uživatelské jméno nebo heslo`,"wrong-phone-credentials":`Nesprávné telefonní číslo nebo heslo`,"wrong-phone-username-credentials":`Nesprávné telefonní číslo, uživatelské jméno nebo heslo. Telefonní čísla musí obsahovat předvolbu země.`,"wrong-username-credentials":`Nesprávné uživatelské jméno nebo heslo`,passkeyButtonText:`Přihlásit se pomocí passkey`}},"login-password":{"login-password":{buttonText:`Přihlásit se`,description:"Přihlaste se k ${clientName}",forgotPasswordText:`Zapomněli jste heslo?`,hidePasswordText:`Skrýt heslo`,"no-password":`Heslo je povinné`,pageTitle:"Přihlášení | ${clientName}","password-breached":`Zjistili jsme potenciální bezpečnostní problém s tímto účtem. Pro ochranu vašeho účtu jsme toto přihlášení zablokovali. Pro pokračování prosím resetujte své heslo.`,passwordPlaceholder:`Heslo`,showPasswordText:`Zobrazit heslo`,signingInAs:"Přihlášení jako ${email}",title:`Zadejte heslo`,unverifiedEmail:`Před přihlášením prosím ověřte svou e-mailovou adresu`,"user-blocked":`Váš účet byl zablokován po několika po sobě jdoucích neúspěšných pokusech o přihlášení.`,"wrong-credentials":`Nesprávné heslo`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-mailová adresa`,authMethodEmailOrPhone:`e-mail nebo telefonní číslo`,authMethodPhone:`telefonní číslo`,description:"Přihlaste se pomocí ${authMethod}",emailOrPhonePlaceholder:`E-mailová adresa nebo telefonní číslo`,emailPlaceholder:`E-mailová adresa`,invalidEmail:`Zadejte prosím platnou e-mailovou adresu`,invalidIdentifier:`Zadejte prosím platnou e-mailovou adresu nebo telefonní číslo`,invalidPhone:`Zadejte prosím platné telefonní číslo s předvolbou země`,noEmail:`Zadejte prosím svou e-mailovou adresu`,noPhone:`Zadejte prosím své telefonní číslo`,phonePlaceholder:`Telefonní číslo`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,title:`Přihlásit se kódem`,userAccountDoesNotExist:`Uživatelský účet neexistuje`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Klikněte na odkaz ve svém e-mailu pro přihlášení`,description:"Odeslali jsme odkaz na ${username}. Kliknutím na něj se přihlásíte.",resendText:`Odeslat odkaz znovu`,spamText:`Nedostali jste e-mail? Zkontrolujte složku nevyžádané pošty.`,title:`Zkontrolujte svůj e-mail`}},mfa:rd,"mfa-email":{"mfa-email":{buttonText:`Pokračovat`,codePlaceholder:`Zadejte kód`,description:"Odeslali jsme kód na ${email}","invalid-code":`Zadaný kód je neplatný`,pageTitle:"Ověření e-mailem | ${clientName}",resendText:`Opětovné odeslání kódu`,title:`Zkontrolujte svůj e-mail`}},"mfa-otp":{"mfa-otp":{buttonText:`Pokračovat`,codePlaceholder:`Zadejte kód`,description:`Zadejte šestimístný kód z vaší ověřovací aplikace`,"invalid-code":`Zadaný kód je neplatný`,pageTitle:"Zadejte kód | ${clientName}",title:`Zadejte svůj kód`},"mfa-totp-enrollment":{title:`Nastavit ověřovací aplikaci`,description:`Naskenujte QR kód níže pomocí ověřovací aplikace a poté zadejte šestimístný kód pro ověření`,secretLabel:`Nebo zadejte tento kód ručně:`,codePlaceholder:`Zadejte kód`,continueButtonText:`Ověřit a aktivovat`,"invalid-code":`Zadaný kód je neplatný. Zkuste to prosím znovu.`,"transaction-not-found":`Platnost vaší registrace vypršela, budete muset začít znovu.`,pageTitle:"Nastavení ověřovací aplikace | ${clientName}",unexpectedError:`Něco se pokazilo. Zkuste to prosím znovu.`,enrollmentComplete:`Registrace MFA je dokončena. Tuto stránku můžete zavřít.`},"mfa-totp-challenge":{title:`Ověřte svou identitu`,description:`Zadejte šestimístný kód z vaší ověřovací aplikace`,codePlaceholder:`Zadejte kód`,continueButtonText:`Pokračovat`,"invalid-code":`Zadaný kód je neplatný`,"transaction-not-found":`Platnost vaší registrace vypršela, budete muset začít znovu.`,unexpectedError:`Něco se pokazilo. Zkuste to prosím znovu.`,pageTitle:"Ověření identity | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Použijte své telefonní číslo pro přihlášení | ${clientName}",title:`Ověřte svou identitu`,description:"Odeslali jsme kód na ${phoneNumber}",continueButtonText:`Pokračovat`,changePhoneText:`Zvolte jiné telefonní číslo.`,smsButtonText:`Textová zpráva`,voiceButtonText:`Hlasový hovor`,chooseMessageTypeText:`Jak chcete kód přijmout?`,pickAuthenticatorText:`Zkusit jinou metodu`,logoAltText:"${companyName}",codePlaceholder:`Zadejte kód`,"send-sms-failed":`Při odesílání SMS došlo k problému`,"send-voice-failed":`Při uskutečnění hlasového hovoru došlo k problému`,"invalid-phone-format":`Telefonní číslo může obsahovat pouze číslice.`,"invalid-phone":`Zdá se, že vaše telefonní číslo není platné. Zkontrolujte a zkuste to znovu.`,"too-many-sms":`Překročili jste maximální počet telefonních zpráv za hodinu. Počkejte pár minut a zkuste to znovu.`,"too-many-voice":`Překročili jste maximální počet hlasových hovorů za hodinu. Počkejte pár minut a zkuste to znovu.`,"transaction-not-found":`Vaše registrační transakce vypršela, budete muset začít znovu.`,"no-phone":`Zadejte telefonní číslo`,noCode:`Zadejte ověřovací kód`,invalidCode:`Zadaný kód je neplatný. Zkuste to znovu.`,unexpectedError:`Něco se pokazilo. Zkuste to znovu.`,resendSuccess:`Odeslali jsme nový kód na váš telefon`,enrollmentComplete:`Registrace MFA je dokončena. Tuto stránku můžete zavřít.`},"mfa-phone-enrollment":{pageTitle:"Zadejte své telefonní číslo pro přihlášení pomocí telefonního kódu | ${clientName}",title:`Zabezpečte svůj účet`,description:`Zadejte kód země a telefonní číslo, na které můžeme odeslat 6místný kód:`,continueButtonText:`Pokračovat`,smsButtonText:`Textová zpráva`,voiceButtonText:`Hlasový hovor`,chooseMessageTypeText:`Jak chcete kód přijmout?`,pickAuthenticatorText:`Zkusit jinou metodu`,placeholder:`Zadejte své telefonní číslo`,logoAltText:"${companyName}",selectCountryCode:"Vyberte kód země, aktuálně nastaveno na ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Při odesílání SMS došlo k problému`,"send-voice-failed":`Při uskutečnění hlasového hovoru došlo k problému`,"sms-authenticator-error":`Nepodařilo se odeslat SMS. Zkuste to prosím později.`,"invalid-phone-format":`Telefonní číslo může obsahovat pouze číslice.`,"invalid-phone":`Zdá se, že vaše telefonní číslo není platné. Zkontrolujte a zkuste to znovu.`,"too-many-sms":`Překročili jste maximální počet telefonních zpráv za hodinu. Počkejte pár minut a zkuste to znovu.`,"too-many-voice":`Překročili jste maximální počet hlasových hovorů za hodinu. Počkejte pár minut a zkuste to znovu.`,"transaction-not-found":`Vaše registrační transakce vypršela, budete muset začít znovu.`,"no-phone":`Zadejte telefonní číslo`,"phone-is-too-short":`Telefonní číslo je příliš krátké`,"phone-is-too-long":`Telefonní číslo je příliš dlouhé`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Vyberte metodu ověření | ${clientName}",title:`Vyberte způsob ověření`,description:`Zvolte, jak chcete ověřit svou identitu`,authenticatorAppLabel:`Autentizační aplikace`,authenticatorAppDescription:`Použijte autentizační aplikaci k získání ověřovacího kódu`,smsLabel:`Textová zpráva`,smsDescription:`Nechte si zaslat ověřovací kód na telefon`,passkeyLabel:`Passkey`,passkeyDescription:`Použijte biometrii zařízení nebo bezpečnostní klíč`}},"mfa-push":{"mfa-push":{description:`Odeslali jsme oznámení na vaše zařízení`,pageTitle:"Push oznámení | ${clientName}",resendText:`Odeslat oznámení znovu`,title:`Schvalte požadavek`,useCodeText:`Zadat kód ručně`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Pokračovat`,codePlaceholder:`Záložní kód`,description:`Zadejte jeden z vašich záložních kódů`,"invalid-code":`Zadaný záložní kód je neplatný`,pageTitle:"Záložní kód | ${clientName}",title:`Zadejte záložní kód`}},"mfa-voice":{"mfa-voice":{buttonText:`Zavolat mi`,codePlaceholder:`Zadejte kód`,description:"Zavoláme na ${phoneNumber} s vaším kódem","invalid-code":`Zadaný kód je neplatný`,pageTitle:"Hlasový hovor | ${clientName}",title:`Přijmout telefonní hovor`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Zkusit znovu`,description:`Vložte svůj bezpečnostní klíč a postupujte podle pokynů`,pageTitle:"Bezpečnostní klíč | ${clientName}",title:`Použijte svůj bezpečnostní klíč`}},passkeys:id,organizations:ad,"reset-password":{"reset-password":{backToLoginText:`Zpět na přihlášení`,buttonText:`Pokračovat`,codeExpired:`Platnost kódu pro obnovení hesla vypršela. Požádejte prosím o nový.`,confirmPasswordLabel:`Potvrzení hesla`,confirmPasswordPlaceholder:`Potvrzení hesla`,description:`Zadejte svůj e-mail pro obnovení hesla`,emailPlaceholder:`E-mailová adresa`,failed:`Obnovení hesla se nezdařilo. Zkuste to prosím znovu.`,"invalid-email-format":`Neplatný e-mail`,"no-email":`Zadejte prosím e-mailovou adresu`,pageTitle:"Obnovení hesla | ${clientName}",passwordLabel:`Nové heslo`,passwordPlaceholder:`Nové heslo`,passwordTooWeak:`Heslo je příliš slabé`,passwordsDidntMatch:`Hesla se neshodují`,successDescription:`Odkaz na obnovení hesla jsme odeslali na vaši e-mailovou adresu.`,successTitle:`Zkontrolujte svůj e-mail`,title:`Zapomněli jste heslo?`,"user-not-found":`Uživatel nenalezen`},"reset-password-code":{backToLoginText:`Zpět na přihlášení`,buttonText:`Obnovit heslo`,codeLabel:`Kód pro obnovení`,codePlaceholder:`Zadejte 6místný kód`,confirmPasswordLabel:`Potvrzení hesla`,confirmPasswordPlaceholder:`Potvrzení hesla`,defaultDescription:`Zadejte kód zaslaný na váš e-mail a zvolte nové heslo`,description:"Odeslali jsme kód na ${email}",failed:`Obnovení hesla se nezdařilo. Zkuste to prosím znovu.`,invalidCode:`Zadaný kód je neplatný nebo vypršel`,noCode:`Zadejte prosím kód pro obnovení`,pageTitle:"Zadejte kód pro obnovení | ${clientName}",passwordLabel:`Nové heslo`,passwordPlaceholder:`Nové heslo`,passwordTooWeak:`Heslo je příliš slabé`,passwordsDidntMatch:`Hesla se neshodují`,resendFailed:`Nepodařilo se znovu odeslat kód. Zkuste to prosím znovu.`,resendSuccess:`Nový kód byl odeslán na váš e-mail`,resendText:`Odeslat kód znovu`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,title:`Zadejte kód pro obnovení`}},signup:od,"signup-id":{"signup-id":{buttonText:`Pokračovat`,description:`Zaregistrujte se a pokračujte`,"email-already-exists":`Tento e-mail je již zaregistrován`,emailPlaceholder:`E-mailová adresa`,federatedConnectionButtonText:"Pokračovat s ${connectionName}","invalid-email-format":`Neplatný e-mail`,loginActionLinkText:`Přihlásit se`,loginActionText:`Už máte účet?`,"no-email":`Zadejte prosím e-mailovou adresu`,pageTitle:"Registrace | ${clientName}",phonePlaceholder:`Telefonní číslo`,separatorText:`nebo`,title:`Vytvořte svůj účet`,usernamePlaceholder:`Uživatelské jméno`}},"signup-password":{"signup-password":{buttonText:`Pokračovat`,description:`Zaregistrujte se a pokračujte`,hidePasswordText:`Skrýt heslo`,"no-password":`Heslo je povinné`,pageTitle:"Registrace | ${clientName}","password-policy-not-met":`Heslo nesplňuje požadavky`,"password-too-weak":`Heslo je příliš slabé`,passwordPlaceholder:`Heslo`,showPasswordText:`Zobrazit heslo`,title:`Vytvořte své heslo`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Pokračovat`,codeLabel:`Ověřovací kód`,codePlaceholder:`Zadejte kód`,defaultDescription:`Zadejte ověřovací kód zaslaný na váš telefon`,description:"Odeslali jsme kód na ${username}","invalid-code":`Neplatný kód`,noCode:`Zadejte prosím ověřovací kód`,pageTitle:"Zadejte kód | ${clientName}",resendText:`Opětovné odeslání kódu`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,title:`Zkontrolujte svůj telefon`,unexpectedError:`Došlo k neočekávané chybě`}},status:sd},Zre=c({common:()=>cd,consent:()=>ld,default:()=>Qre,invitation:()=>ud,login:()=>dd,mfa:()=>fd,organizations:()=>md,passkeys:()=>pd,signup:()=>hd,status:()=>gd}),cd={common:{alertListTitle:`Advarsler`,backText:`Gå tilbage`,cancelText:`Gå tilbage`,closeText:`Luk`,contactSupportText:`Har du brug for hjælp?`,continueText:`Fortsæt`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Noget gik galt. Prøv venligst igen.`,hidePasswordText:`Skjul adgangskode`,loadingText:`Indlæser...`,orText:`eller`,privacyPolicyText:`Privatlivspolitik`,showPasswordText:`Vis adgangskode`,termsOfServiceText:`Servicevilkår`,termsShortText:`Vilkår`,tryAgainText:`Prøv igen`}},ld={consent:{buttonText:`Acceptér`,cancelButtonText:`Afvis`,description:"${clientName} anmoder om adgang til din konto",pageTitle:"Godkend | ${clientName}",scopesTitle:"Dette vil give ${clientName} tilladelse til at:",title:"Godkend ${clientName}"}},ud={invitation:{acceptButtonText:`Acceptér invitation`,description:"${inviterName} har inviteret dig til at deltage i ${organizationName} på ${clientName}",pageTitle:"Invitation | ${clientName}",title:`Du er blevet inviteret`}},dd={login:{alertListTitle:`Advarsler`,buttonText:`Fortsæt`,description:"Log ind på ${clientName}.",editEmailText:`Rediger`,emailPlaceholder:`E-mail-adresse`,enterACodeBtn:`Log ind med en kode`,federatedConnectionButtonText:"Fortsæt med ${connectionName}",footerLinkText:`Tilmeld dig`,footerText:`Har du ikke en konto?`,forgotPasswordText:`Har du glemt din adgangskode?`,hidePasswordText:`Skjul adgangskode`,invalidEmail:`Ugyldig e-mail`,invalidIdentifier:`Ugyldig e-mail eller brugernavn`,invitationDescription:"Log ind for at acceptere ${inviterName}s invitation til at deltage i ${companyName} på ${clientName}.",invitationTitle:`Du er blevet inviteret!`,logoAltText:"${companyName}","no-email":`Indtast venligst en e-mailadresse`,"no-password":`Adgangskode er påkrævet`,pageTitle:"Log ind | ${clientName}",passwordLoginNotAvailable:`Adgangskodegodkendelse er ikke tilgængelig`,passwordPlaceholder:`Adgangskode`,phonePlaceholder:`Telefonnummer`,separatorText:`eller`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,showPasswordText:`Vis adgangskode`,signupActionLinkText:`Tilmeld dig`,signupActionText:`Har du ikke en konto?`,title:`Velkommen`,tooManyFailedLogins:`For mange mislykkede loginforsøg. Prøv venligst igen senere.`,unverifiedEmail:`Bekræft venligst din e-mailadresse, før du logger ind`,userAccountDoesNotExist:`Brugerkontoen findes ikke`,usernamePlaceholder:`Brugernavn eller e-mailadresse`,usernameTooLong:"Brugernavnet må højst være ${max} tegn",usernameTooShort:"Brugernavnet skal være mindst ${min} tegn",wrongCredentials:`Forkert brugernavn eller adgangskode`,passkeyButtonText:`Log ind med passkey`}},fd={mfa:{backupCodeText:`Brug backupkode`,description:`Vælg en bekræftelsesmetode`,pageTitle:"Multifaktorgodkendelse | ${clientName}",title:`Bekræft din identitet`}},pd={"passkey-enrollment-nudge":{title:`Sikr din konto med en adgangsnøgle`,description:`Adgangsnøgler bruger din enheds biometri eller PIN til at logge dig ind hurtigere og mere sikkert.`,enrollButtonText:`Konfigurer adgangsnøgle`,snoozeButtonText:`Måske senere`,optOutLinkText:`Vis ikke dette igen`,pageTitle:"Konfigurer Adgangsnøgle | ${clientName}"},"passkey-enrollment":{title:`Opret din adgangsnøgle`,description:`Følg anvisningerne fra din browser for at oprette en adgangsnøgle til denne konto.`,errorMessage:`Oprettelse af adgangsnøgle mislykkedes. Prøv venligst igen.`,cancelLinkText:`Spring over for nu`,retryButtonText:`Prøv igen`,enrollmentComplete:`Din adgangsnøgle er konfigureret. Du kan lukke denne side.`,pageTitle:"Opret Adgangsnøgle | ${clientName}"},"passkey-challenge":{title:`Log ind med passkey`,description:`Følg anvisningerne fra din browser for at bekræfte din identitet.`,errorMessage:`Godkendelse med passkey mislykkedes. Prøv venligst igen.`,cancelLinkText:`Tilbage til login`,retryButtonText:`Prøv igen`,pageTitle:"Log ind med passkey | ${clientName}"}},md={organizations:{description:`Vælg hvilken organisation du vil logge ind på`,pageTitle:"Vælg organisation | ${clientName}",searchPlaceholder:`Søg organisationer`,title:`Vælg din organisation`}},hd={signup:{buttonText:`Tilmelding`,confirmPasswordPlaceholder:`Bekræft adgangskode`,description:`Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.`,"email-already-exists":`E-mailen er allerede optaget`,emailPlaceholder:`E-mail-adresse`,federatedConnectionButtonText:"Fortsæt med ${connectionName}",hidePasswordText:`Skjul adgangskode`,"invalid-email-format":`Ugyldig e-mail`,loginActionLinkText:`Log ind`,loginActionText:`Har du allerede en konto?`,"no-email":`Indtast venligst en e-mailadresse`,"no-password":`Adgangskode er påkrævet`,"no-username":`Brugernavn er påkrævet`,pageTitle:"Tilmeld dig | ${clientName}",passwordPlaceholder:`Adgangskode`,passwordsDidntMatch:`Adgangskoderne matcher ikke`,phonePlaceholder:`Telefonnummer`,privacyPolicyLinkText:`Privatlivspolitik`,separatorText:`eller`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,showPasswordText:`Vis adgangskode`,termsOfServiceLinkText:`Servicevilkår`,termsText:`Ved at tilmelde dig accepterer du vores`,title:`Vælg adgangskode`,"username-already-exists":`Dette brugernavn er allerede taget`,usernamePlaceholder:`Brugernavn`,verifyEmailText:`Tjek venligst din e-mail for at bekræfte din konto`}},gd={status:{continueButtonText:`Fortsæt`,errorTitle:`Fejl`,pageTitle:"Status | ${clientName}",successTitle:`Succes`,title:`Status`}},Qre={common:cd,consent:ld,"device-flow":{"device-flow":{buttonText:`Fortsæt`,codePlaceholder:`Indtast kode`,description:`Indtast koden, der vises på din enhed`,"expired-code":`Koden er udløbet`,"invalid-code":`Den indtastede kode er ugyldig`,pageTitle:"Enhedsaktivering | ${clientName}",title:`Aktivér din enhed`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Log ind`,codeLabel:`Bekræftelseskode`,codePlaceholder:`Indtast kode`,defaultDescription:`Indtast bekræftelseskoden, der blev sendt til din e-mail`,description:"Vi sendte en kode til ${email}","invalid-code":`Ugyldig kode`,noCode:`Indtast venligst bekræftelseskoden`,pageTitle:"Indtast kode | ${clientName}",resendText:`Send koden igen`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,title:`Tjek din e-mail`,unexpectedError:`Der opstod en uventet fejl`}},"email-verification":{"email-verification":{description:"Vi sendte en e-mail til ${email}",pageTitle:"Bekræft e-mail | ${clientName}",resendText:`Send koden igen`,successDescription:`Din e-mail er blevet bekræftet.`,successTitle:`E-mail bekræftet`,title:`Bekræft din e-mail`}},invitation:ud,login:dd,"login-id":{"login-id":{alertListTitle:`Advarsler`,"auth0-users-validation":`Noget gik galt, prøv venligst igen senere`,"authentication-failure":`Vi beklager, noget gik galt under loginforsøget`,buttonText:`Fortsæt`,"captcha-client-failure":`Vi kunne ikke indlæse sikkerhedsudfordringen. Prøv venligst igen. (Fejlkode: #{errorCode})`,"captcha-validation-failure":`Vi beklager, noget gik galt under validering af captcha-svaret. Prøv venligst igen.`,captchaCodePlaceholder:`Indtast koden vist ovenfor`,"custom-script-error-code":`Noget gik galt, prøv venligst igen senere.`,description:"Log ind på ${clientName}.",editEmailText:`Rediger`,emailPlaceholder:`E-mail-adresse`,federatedConnectionButtonText:"Fortsæt med ${connectionName}",footerLinkText:`Tilmeld dig`,footerText:`Har du ikke en konto?`,forgotPasswordText:`Har du glemt din adgangskode?`,hidePasswordText:`Skjul adgangskode`,"invalid-captcha":`Løs sikkerhedsspørgsmålet for at bekræfte, at du ikke er en robot.`,"invalid-code":`Ugyldig kode`,"invalid-connection":`Ugyldig forbindelse`,"invalid-email-format":`Ugyldig e-mail`,"invalid-email-phone":`Indtast en gyldig e-mailadresse eller telefonnummer. Telefonnumre skal inkludere landekoden.`,"invalid-email-phone-username":`Indtast en gyldig e-mailadresse, telefonnummer eller brugernavn. Telefonnumre skal inkludere landekoden.`,"invalid-email-username":`Indtast en gyldig e-mailadresse eller brugernavn`,"invalid-expired-code":`Ugyldig eller udløbet brugerkode`,"invalid-login-id":`Ugyldigt login-ID indtastet`,"invalid-phone-username":`Indtast et gyldigt telefonnummer eller brugernavn. Telefonnumre skal inkludere landekoden.`,"invalid-recaptcha":`Markér afkrydsningsfeltet for at bekræfte, at du ikke er en robot.`,"invalid-username":"Brugernavnet kan kun indeholde alfanumeriske tegn eller: '${characters}'. Brugernavnet skal være mellem ${min} og ${max} tegn.",invitationDescription:"Log ind for at acceptere ${inviterName}s invitation til at deltage i ${companyName} på ${clientName}.",invitationTitle:`Du er blevet inviteret!`,"ip-blocked":`Vi har registreret mistænkelig loginadfærd, og yderligere forsøg vil blive blokeret. Kontakt venligst administratoren.`,logoAltText:"${companyName}","no-db-connection":`Ugyldig forbindelse`,"no-email":`Indtast venligst en e-mailadresse`,"no-email-phone":`E-mailadresse eller telefonnummer er påkrævet`,"no-email-phone-username":`Telefonnummer, brugernavn eller e-mailadresse er påkrævet`,"no-email-username":`E-mailadresse eller brugernavn er påkrævet`,"no-password":`Adgangskode er påkrævet`,"no-phone":`Indtast venligst et telefonnummer`,"no-phone-username":`Telefonnummer eller brugernavn er påkrævet`,"no-username":`Brugernavn er påkrævet`,pageTitle:"Log ind | ${clientName}","password-breached":`Vi har registreret et potentielt sikkerhedsproblem med denne konto. For at beskytte din konto har vi forhindret dette login. Nulstil venligst din adgangskode for at fortsætte.`,passwordPlaceholder:`Adgangskode`,phoneOrEmailPlaceholder:`E-mail eller telefonnummer`,phoneOrUsernameOrEmailPlaceholder:`Telefon, brugernavn eller e-mail`,phoneOrUsernamePlaceholder:`Telefonnummer eller brugernavn`,phonePlaceholder:`Telefonnummer`,"same-user-login":`For mange loginforsøg for denne bruger. Vent venligst, og prøv igen senere.`,selectCountryCode:"Vælg landekode, i øjeblikket sat til ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`eller`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,showPasswordText:`Vis adgangskode`,signupActionLinkText:`Tilmeld dig`,signupActionText:`Har du ikke en konto?`,termsAndConditionsTemplate:'Ved at fortsætte accepterer du vores <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Vilkår og betingelser</a>.',title:`Velkommen`,"user-blocked":`Din konto er blevet blokeret efter flere på hinanden følgende loginforsøg.`,userAccountDoesNotExist:`Brugerkontoen findes ikke`,usernameOnlyPlaceholder:`Brugernavn`,usernameOrEmailPlaceholder:`Brugernavn eller e-mailadresse`,usernamePlaceholder:`Brugernavn`,usernameTooLong:"Brugernavnet må højst være ${max} tegn",usernameTooShort:"Brugernavnet skal være mindst ${min} tegn","wrong-credentials":`Forkert brugernavn eller adgangskode`,"wrong-email-credentials":`Forkert e-mail eller adgangskode`,"wrong-email-phone-credentials":`Forkert e-mailadresse, telefonnummer eller adgangskode. Telefonnumre skal inkludere landekoden.`,"wrong-email-phone-username-credentials":`Forkert e-mailadresse, telefonnummer, brugernavn eller adgangskode. Telefonnumre skal inkludere landekoden.`,"wrong-email-username-credentials":`Forkert e-mailadresse, brugernavn eller adgangskode`,"wrong-phone-credentials":`Forkert telefonnummer eller adgangskode`,"wrong-phone-username-credentials":`Forkert telefonnummer, brugernavn eller adgangskode. Telefonnumre skal inkludere landekoden.`,"wrong-username-credentials":`Forkert brugernavn eller adgangskode`,passkeyButtonText:`Log ind med passkey`}},"login-password":{"login-password":{buttonText:`Log ind`,description:`Indtast din e-mailadresse og adgangskode for at logge ind.`,forgotPasswordText:`Har du glemt din adgangskode?`,hidePasswordText:`Skjul adgangskode`,"no-password":`Adgangskode er påkrævet`,pageTitle:"Log ind | ${clientName}","password-breached":`Vi har registreret et potentielt sikkerhedsproblem med denne konto. For at beskytte din konto har vi forhindret dette login. Nulstil venligst din adgangskode for at fortsætte.`,passwordPlaceholder:`Adgangskode`,showPasswordText:`Vis adgangskode`,signingInAs:"Logger ind som ${email}",title:`Indtast adgangskode`,unverifiedEmail:`Bekræft venligst din e-mailadresse, før du logger ind`,"user-blocked":`Din konto er blevet blokeret efter flere på hinanden følgende loginforsøg.`,"wrong-credentials":`Forkert adgangskode`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-mail`,authMethodEmailOrPhone:`e-mail eller telefonnummer`,authMethodPhone:`telefonnummer`,description:"Log ind med din ${authMethod}",emailOrPhonePlaceholder:`E-mailadresse eller telefonnummer`,emailPlaceholder:`E-mail-adresse`,invalidEmail:`Indtast venligst en gyldig e-mailadresse`,invalidIdentifier:`Indtast venligst en gyldig e-mailadresse eller telefonnummer`,invalidPhone:`Indtast venligst et gyldigt telefonnummer med landekode`,noEmail:`Indtast venligst din e-mailadresse`,noPhone:`Indtast venligst dit telefonnummer`,phonePlaceholder:`Telefonnummer`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,title:`Log ind med en kode`,userAccountDoesNotExist:`Brugerkontoen findes ikke`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Klik på linket i din e-mail for at logge ind`,description:"Vi sendte et link til ${username}. Klik på det for at logge ind.",resendText:`Send link igen`,spamText:`Har du ikke modtaget e-mailen? Tjek din spam-mappe.`,title:`Tjek din e-mail`}},mfa:fd,"mfa-email":{"mfa-email":{buttonText:`Fortsæt`,codePlaceholder:`Indtast kode`,description:"Vi sendte en kode til ${email}","invalid-code":`Den indtastede kode er ugyldig`,pageTitle:"E-mailbekræftelse | ${clientName}",resendText:`Send kode igen`,title:`Tjek din e-mail`}},"mfa-otp":{"mfa-otp":{buttonText:`Fortsæt`,codePlaceholder:`Indtast kode`,description:`Indtast den 6-cifrede kode fra din autentificeringsapp`,"invalid-code":`Den indtastede kode er ugyldig`,pageTitle:"Indtast kode | ${clientName}",title:`Indtast din kode`},"mfa-totp-enrollment":{title:`Opsæt autentificeringsapp`,description:`Scan QR-koden nedenfor med din autentificeringsapp, og indtast derefter den 6-cifrede kode for at bekræfte`,secretLabel:`Eller indtast denne kode manuelt:`,codePlaceholder:`Indtast kode`,continueButtonText:`Bekræft og aktiver`,"invalid-code":`Den indtastede kode er ugyldig. Prøv venligst igen.`,"transaction-not-found":`Din tilmeldingssession er udløbet. Du skal starte forfra.`,pageTitle:"Opsæt autentificeringsapp | ${clientName}",unexpectedError:`Noget gik galt. Prøv venligst igen.`,enrollmentComplete:`MFA-tilmeldingen er fuldført. Du kan lukke denne side.`},"mfa-totp-challenge":{title:`Bekræft din identitet`,description:`Indtast den 6-cifrede kode fra din autentificeringsapp`,codePlaceholder:`Indtast kode`,continueButtonText:`Fortsæt`,"invalid-code":`Den indtastede kode er ugyldig`,"transaction-not-found":`Din session er udløbet. Du skal starte forfra.`,unexpectedError:`Noget gik galt. Prøv venligst igen.`,pageTitle:"Bekræft identitet | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Brug dit telefonnummer til at logge ind | ${clientName}",title:`Bekræft din identitet`,description:"Vi sendte en kode til ${phoneNumber}",continueButtonText:`Fortsæt`,changePhoneText:`Vælg et andet telefonnummer.`,smsButtonText:`SMS`,voiceButtonText:`Taleopkald`,chooseMessageTypeText:`Hvordan vil du modtage koden?`,pickAuthenticatorText:`Prøv en anden metode`,logoAltText:"${companyName}",codePlaceholder:`Indtast kode`,"send-sms-failed":`Der opstod et problem med at sende SMS'en`,"send-voice-failed":`Der opstod et problem med at foretage taleopkaldet`,"invalid-phone-format":`Telefonnummeret kan kun indeholde cifre.`,"invalid-phone":`Det ser ud til, at dit telefonnummer ikke er gyldigt. Kontrollér og prøv igen.`,"too-many-sms":`Du har overskredet det maksimale antal telefonbeskeder pr. time. Vent et par minutter og prøv igen.`,"too-many-voice":`Du har overskredet det maksimale antal telefonopkald pr. time. Vent et par minutter og prøv igen.`,"transaction-not-found":`Din registreringstransaktion er udløbet, du skal starte forfra.`,"no-phone":`Indtast et telefonnummer`,noCode:`Indtast bekræftelseskoden`,invalidCode:`Den indtastede kode er ugyldig. Prøv igen.`,unexpectedError:`Noget gik galt. Prøv igen.`,resendSuccess:`Vi sendte en ny kode til din telefon`,enrollmentComplete:`MFA-tilmeldingen er fuldført. Du kan lukke denne side.`},"mfa-phone-enrollment":{pageTitle:"Indtast dit telefonnummer for at logge ind med en telefonkode | ${clientName}",title:`Sikre din konto`,description:`Indtast din landekode og telefonnummer, som vi kan sende en 6-cifret kode til:`,continueButtonText:`Fortsæt`,smsButtonText:`SMS`,voiceButtonText:`Taleopkald`,chooseMessageTypeText:`Hvordan vil du modtage koden?`,pickAuthenticatorText:`Prøv en anden metode`,placeholder:`Indtast dit telefonnummer`,logoAltText:"${companyName}",selectCountryCode:"Vælg landekode, i øjeblikket sat til ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Der opstod et problem med at sende SMS'en`,"send-voice-failed":`Der opstod et problem med at foretage taleopkaldet`,"sms-authenticator-error":`Vi kunne ikke sende SMS'en. Prøv igen senere.`,"invalid-phone-format":`Telefonnummeret kan kun indeholde cifre.`,"invalid-phone":`Det ser ud til, at dit telefonnummer ikke er gyldigt. Kontrollér og prøv igen.`,"too-many-sms":`Du har overskredet det maksimale antal telefonbeskeder pr. time. Vent et par minutter og prøv igen.`,"too-many-voice":`Du har overskredet det maksimale antal telefonopkald pr. time. Vent et par minutter og prøv igen.`,"transaction-not-found":`Din registreringstransaktion er udløbet, du skal starte forfra.`,"no-phone":`Indtast et telefonnummer`,"phone-is-too-short":`Telefonnummeret er for kort`,"phone-is-too-long":`Telefonnummeret er for langt`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Vælg bekræftelsesmetode | ${clientName}",title:`Vælg din bekræftelsesmetode`,description:`Vælg hvordan du vil bekræfte din identitet`,authenticatorAppLabel:`Godkendelsesapp`,authenticatorAppDescription:`Brug din godkendelsesapp til at få en bekræftelseskode`,smsLabel:`Sms-besked`,smsDescription:`Få en bekræftelseskode sendt til din telefon`,passkeyLabel:`Adgangsnøgle`,passkeyDescription:`Brug din enheds biometri eller sikkerhedsnøgle`}},"mfa-push":{"mfa-push":{description:`Vi sendte en notifikation til din enhed`,pageTitle:"Push-notifikation | ${clientName}",resendText:`Send notifikation igen`,title:`Godkend anmodningen`,useCodeText:`Indtast kode manuelt`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Fortsæt`,codePlaceholder:`Gendannelseskode`,description:`Indtast en af dine gendannelseskoder`,"invalid-code":`Den indtastede gendannelseskode er ugyldig`,pageTitle:"Gendannelseskode | ${clientName}",title:`Indtast gendannelseskode`}},"mfa-voice":{"mfa-voice":{buttonText:`Ring til mig`,codePlaceholder:`Indtast kode`,description:"Vi ringer til ${phoneNumber} med din kode","invalid-code":`Den indtastede kode er ugyldig`,pageTitle:"Taleopkald | ${clientName}",title:`Modtag et telefonopkald`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Prøv igen`,description:`Indsæt din sikkerhedsnøgle og følg instruktionerne`,pageTitle:"Sikkerhedsnøgle | ${clientName}",title:`Brug din sikkerhedsnøgle`}},passkeys:pd,organizations:md,"reset-password":{"reset-password":{backToLoginText:`Gå tilbage`,buttonText:`Send e-mail til nulstilling af adgangskode`,codeExpired:`Din kode til nulstilling af adgangskode er udløbet. Anmod venligst om en ny.`,confirmPasswordLabel:`Bekræft adgangskode`,confirmPasswordPlaceholder:`Bekræft adgangskode`,description:`Klik på knappen nedenfor, så sender vi instruktioner om, hvordan du nulstiller din adgangskode.`,emailPlaceholder:`E-mail-adresse`,failed:`Nulstilling af adgangskode mislykkedes. Prøv venligst igen.`,"invalid-email-format":`Ugyldig e-mail`,"no-email":`Indtast venligst en e-mailadresse`,pageTitle:"Nulstil adgangskode | ${clientName}",passwordLabel:`Ny adgangskode`,passwordPlaceholder:`Ny adgangskode`,passwordTooWeak:`Adgangskoden er for svag`,passwordsDidntMatch:`Adgangskoderne matcher ikke`,successDescription:`Vi har sendt et link til nulstilling af adgangskode til din e-mailadresse.`,successTitle:`E-mail til nulstilling af adgangskode sendt`,title:`Har du glemt din adgangskode?`,"user-not-found":`Bruger ikke fundet`},"reset-password-code":{backToLoginText:`Tilbage til login`,buttonText:`Nulstil adgangskode`,codeLabel:`Nulstillingskode`,codePlaceholder:`Indtast 6-cifret kode`,confirmPasswordLabel:`Bekræft adgangskode`,confirmPasswordPlaceholder:`Bekræft adgangskode`,defaultDescription:`Indtast koden sendt til din e-mail og vælg en ny adgangskode`,description:"Vi sendte en kode til ${email}",failed:`Nulstilling af adgangskode mislykkedes. Prøv venligst igen.`,invalidCode:`Den indtastede kode er ugyldig eller udløbet`,noCode:`Indtast venligst nulstillingskoden`,pageTitle:"Indtast nulstillingskode | ${clientName}",passwordLabel:`Ny adgangskode`,passwordPlaceholder:`Ny adgangskode`,passwordTooWeak:`Adgangskoden er for svag`,passwordsDidntMatch:`Adgangskoderne matcher ikke`,resendFailed:`Kunne ikke sende koden igen. Prøv igen.`,resendSuccess:`En ny kode er blevet sendt til din e-mail`,resendText:`Send kode igen`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,title:`Indtast nulstillingskode`}},signup:hd,"signup-id":{"signup-id":{buttonText:`Fortsæt`,description:`Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.`,"email-already-exists":`E-mailen er allerede optaget`,emailPlaceholder:`E-mail-adresse`,federatedConnectionButtonText:"Fortsæt med ${connectionName}","invalid-email-format":`Ugyldig e-mail`,loginActionLinkText:`Log ind`,loginActionText:`Har du allerede en konto?`,"no-email":`Indtast venligst en e-mailadresse`,pageTitle:"Tilmeld dig | ${clientName}",phonePlaceholder:`Telefonnummer`,separatorText:`eller`,title:`Vælg adgangskode`,usernamePlaceholder:`Brugernavn`}},"signup-password":{"signup-password":{buttonText:`Fortsæt`,description:`Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.`,hidePasswordText:`Skjul adgangskode`,"no-password":`Adgangskode er påkrævet`,pageTitle:"Tilmeld dig | ${clientName}","password-policy-not-met":`Adgangskoden opfylder ikke kravene`,"password-too-weak":`Adgangskoden er for svag`,passwordPlaceholder:`Adgangskode`,showPasswordText:`Vis adgangskode`,title:`Vælg adgangskode`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Log ind`,codeLabel:`Bekræftelseskode`,codePlaceholder:`Indtast kode`,defaultDescription:`Indtast bekræftelseskoden, der blev sendt til din telefon`,description:"Vi sendte en kode til ${username}","invalid-code":`Ugyldig kode`,noCode:`Indtast venligst bekræftelseskoden`,pageTitle:"Indtast kode | ${clientName}",resendText:`Send koden igen`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,title:`Tjek din telefon`,unexpectedError:`Der opstod en uventet fejl`}},status:gd},$re=c({common:()=>_d,consent:()=>vd,default:()=>eie,invitation:()=>yd,login:()=>bd,mfa:()=>xd,organizations:()=>Cd,passkeys:()=>Sd,signup:()=>wd,status:()=>Td}),_d={common:{alertListTitle:`Alerts`,backText:`Back`,cancelText:`Cancel`,closeText:`Close`,contactSupportText:`Contact Support`,continueText:`Continue`,copyrightText:"© ${currentYear} ${companyName}",errorText:`An error occurred`,hidePasswordText:`Hide password`,loadingText:`Loading...`,orText:`or`,privacyPolicyText:`Privacy Policy`,showPasswordText:`Show password`,termsOfServiceText:`Terms of Service`,termsShortText:`Terms`,tryAgainText:`Try again`}},vd={consent:{buttonText:`Accept`,cancelButtonText:`Deny`,description:"${clientName} is requesting access to your account",pageTitle:"Authorize | ${clientName}",scopesTitle:"This will allow ${clientName} to:",title:"Authorize ${clientName}"}},yd={invitation:{acceptButtonText:`Accept invitation`,description:"${inviterName} has invited you to join ${organizationName} on ${clientName}",pageTitle:"Invitation | ${clientName}",title:`You've been invited`}},bd={login:{alertListTitle:`Alerts`,buttonText:`Continue`,description:"Log in to ${clientName}.",editEmailText:`Edit`,emailPlaceholder:`Email address`,enterACodeBtn:`Sign in with a code`,federatedConnectionButtonText:"Continue with ${connectionName}",footerLinkText:`Sign up`,footerText:`Don't have an account?`,forgotPasswordText:`Forgot password?`,hidePasswordText:`Hide password`,invalidEmail:`Invalid email`,invalidIdentifier:`Invalid email or username`,invitationDescription:"Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.",invitationTitle:`You've Been Invited!`,logoAltText:"${companyName}","no-email":`Please enter an email address`,"no-password":`Password is required`,pageTitle:"Log in | ${clientName}",passwordLoginNotAvailable:`Password authentication is not available`,passwordPlaceholder:`Password`,phonePlaceholder:`Phone number`,separatorText:`Or`,sessionExpired:`Your session has expired. Please try again.`,showPasswordText:`Show password`,signupActionLinkText:`Sign up`,signupActionText:`Don't have an account?`,title:`Welcome`,tooManyFailedLogins:`Too many failed login attempts. Please try again later.`,unverifiedEmail:`Please verify your email address before logging in`,userAccountDoesNotExist:`User account does not exist`,usernamePlaceholder:`Username or email address`,usernameTooLong:"Username must be ${max} characters or less",usernameTooShort:"Username must be at least ${min} characters",passkeyButtonText:`Sign in with a passkey`,wrongCredentials:`Wrong username or password`}},xd={mfa:{backupCodeText:`Use backup code`,description:`Choose a verification method`,pageTitle:"Multi-Factor Authentication | ${clientName}",title:`Verify your identity`}},Sd={"passkey-enrollment-nudge":{title:`Secure your account with a passkey`,description:`Passkeys use your device's biometrics or PIN to sign you in faster and more securely.`,enrollButtonText:`Set up passkey`,snoozeButtonText:`Maybe later`,optOutLinkText:`Don't show this again`,pageTitle:"Set Up Passkey | ${clientName}"},"passkey-enrollment":{title:`Create your passkey`,description:`Follow the prompts from your browser to create a passkey for this account.`,errorMessage:`Failed to create passkey. Please try again.`,cancelLinkText:`Skip for now`,retryButtonText:`Try again`,enrollmentComplete:`Your passkey has been set up successfully. You can close this page.`,pageTitle:"Create Passkey | ${clientName}"},"passkey-challenge":{title:`Sign in with a passkey`,description:`Follow the prompts from your browser to verify your identity.`,errorMessage:`Passkey authentication failed. Please try again.`,cancelLinkText:`Back to login`,retryButtonText:`Try again`,pageTitle:"Sign In with Passkey | ${clientName}"}},Cd={organizations:{description:`Choose which organization to log in to`,pageTitle:"Select Organization | ${clientName}",searchPlaceholder:`Search organizations`,title:`Select your organization`}},wd={signup:{buttonText:`Continue`,confirmPasswordPlaceholder:`Confirm password`,description:`Sign up to continue`,"email-already-exists":`This email is already registered`,emailPlaceholder:`Email address`,federatedConnectionButtonText:"Continue with ${connectionName}",hidePasswordText:`Hide password`,"invalid-email-format":`Email is not valid.`,loginActionLinkText:`Log in`,loginActionText:`Already have an account?`,"no-email":`Please enter an email address`,"no-password":`Password is required`,"no-username":`Username is required`,pageTitle:"Sign up | ${clientName}",passwordPlaceholder:`Password`,passwordsDidntMatch:`Passwords don't match`,phonePlaceholder:`Phone number`,privacyPolicyLinkText:`Privacy Policy`,separatorText:`Or`,sessionExpired:`Your session has expired. Please try again.`,showPasswordText:`Show password`,termsOfServiceLinkText:`Terms of Service`,termsText:`By signing up, you agree to our`,title:`Create your account`,"username-already-exists":`This username is already taken`,usernamePlaceholder:`Username`,verifyEmailText:`Please check your email to verify your account`}},Td={status:{continueButtonText:`Continue`,errorTitle:`Error`,pageTitle:"Status | ${clientName}",successTitle:`Success`,title:`Status`}},eie={common:_d,consent:vd,"device-flow":{"device-flow":{buttonText:`Continue`,codePlaceholder:`Enter code`,description:`Enter the code shown on your device`,"expired-code":`The code has expired`,"invalid-code":`The code you entered is invalid`,pageTitle:"Device Activation | ${clientName}",title:`Activate your device`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Continue`,codeLabel:`Verification Code`,codePlaceholder:`Enter code`,defaultDescription:`Enter the verification code sent to your email`,description:"We sent a code to ${email}","invalid-code":`The code you entered is invalid`,noCode:`Please enter the verification code`,pageTitle:"Enter Code | ${clientName}",resendText:`Resend code`,sessionExpired:`Your session has expired. Please try again.`,title:`Check your email`,unexpectedError:`An unexpected error occurred`}},"email-verification":{"email-verification":{description:"We sent an email to ${email}",pageTitle:"Verify Email | ${clientName}",resendText:`Resend email`,successDescription:`Your email has been verified successfully.`,successTitle:`Email verified`,title:`Verify your email`}},invitation:yd,login:bd,"login-id":{"login-id":{alertListTitle:`Alerts`,"auth0-users-validation":`Something went wrong, please try again later`,"authentication-failure":`We are sorry, something went wrong when attempting to log in`,buttonText:`Continue`,"captcha-client-failure":`We couldn't load the security challenge. Please try again. (Error code: #{errorCode})`,"captcha-validation-failure":`We are sorry, something went wrong while validating the captcha response. Please try again.`,captchaCodePlaceholder:`Enter the code shown above`,"custom-script-error-code":`Something went wrong, please try again later.`,description:"Log in to ${clientName}.",editEmailText:`Edit`,emailPlaceholder:`Email address`,federatedConnectionButtonText:"Continue with ${connectionName}",footerLinkText:`Sign up`,footerText:`Don't have an account?`,forgotPasswordText:`Forgot password?`,hidePasswordText:`Hide password`,"invalid-captcha":`Solve the challenge question to verify you are not a robot.`,"invalid-code":`The code you entered is invalid`,"invalid-connection":`Invalid connection`,"invalid-email-format":`Email is not valid.`,"invalid-email-phone":`Enter a valid email address or phone number. Phone numbers must include the country code.`,"invalid-email-phone-username":`Enter a valid email address, phone number or username. Phone numbers must include the country code.`,"invalid-email-username":`Enter a valid email address or username`,"invalid-expired-code":`Invalid or expired user code`,"invalid-login-id":`Invalid Login ID entered`,"invalid-phone-username":`Enter a valid phone number or username. Phone numbers must include the country code.`,"invalid-recaptcha":`Select the checkbox to verify you are not a robot.`,"invalid-username":"Username can only contain alphanumeric characters or: '${characters}'. Username should have between ${min} and ${max} characters.",invitationDescription:"Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.",invitationTitle:`You've Been Invited!`,"ip-blocked":`We have detected suspicious login behavior and further attempts will be blocked. Please contact the administrator.`,logoAltText:"${companyName}","no-db-connection":`Invalid connection`,"no-email":`Please enter an email address`,"no-email-phone":`Email address or phone number is required`,"no-email-phone-username":`Phone number, username, or email address is required`,"no-email-username":`Email address or username is required`,"no-password":`Password is required`,"no-phone":`Please enter a phone number`,"no-phone-username":`Phone number or username is required`,"no-username":`Username is required`,pageTitle:"Log in | ${clientName}","password-breached":`We have detected a potential security issue with this account. To protect your account, we have prevented this login. Please reset your password to proceed.`,passwordPlaceholder:`Password`,phoneOrEmailPlaceholder:`Phone number or Email address`,phoneOrUsernameOrEmailPlaceholder:`Phone or Username or Email`,phoneOrUsernamePlaceholder:`Phone Number or Username`,phonePlaceholder:`Phone number`,"same-user-login":`Too many login attempts for this user. Please wait, and try again later.`,selectCountryCode:"Select country code, currently set to ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`Or`,sessionExpired:`Your session has expired. Please try again.`,showPasswordText:`Show password`,signupActionLinkText:`Sign up`,signupActionText:`Don't have an account?`,termsAndConditionsTemplate:'By continuing, you agree to our <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Terms and Conditions</a>.',title:`Welcome`,"user-blocked":`Your account has been blocked after multiple consecutive login attempts.`,userAccountDoesNotExist:`User account does not exist`,usernameOnlyPlaceholder:`Username`,usernameOrEmailPlaceholder:`Username or Email address`,usernamePlaceholder:`Username or email address`,usernameTooLong:"Username must be ${max} characters or less",usernameTooShort:"Username must be at least ${min} characters","wrong-credentials":`Wrong username or password`,"wrong-email-credentials":`Wrong email or password`,"wrong-email-phone-credentials":`Incorrect email address, phone number, or password. Phone numbers must include the country code.`,"wrong-email-phone-username-credentials":`Incorrect email address, phone number, username, or password. Phone numbers must include the country code.`,"wrong-email-username-credentials":`Incorrect email address, username, or password`,"wrong-phone-credentials":`Incorrect phone number or password`,"wrong-phone-username-credentials":`Incorrect phone number, username or password. Phone numbers must include the country code.`,passkeyButtonText:`Sign in with a passkey`,"wrong-username-credentials":`Incorrect username or password`}},"login-password":{"login-password":{buttonText:`Continue`,description:"Log in to ${clientName}",forgotPasswordText:`Forgot password?`,hidePasswordText:`Hide password`,"no-password":`Password is required`,pageTitle:"Log in | ${clientName}","password-breached":`We have detected a potential security issue with this account. To protect your account, we have prevented this login. Please reset your password to proceed.`,passwordPlaceholder:`Password`,showPasswordText:`Show password`,signingInAs:"Signing in as ${email}",title:`Enter your password`,unverifiedEmail:`Please verify your email address before logging in`,"user-blocked":`Your account has been blocked after multiple consecutive login attempts.`,"wrong-credentials":`Wrong password`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`email`,authMethodEmailOrPhone:`email or phone number`,authMethodPhone:`phone number`,description:"Sign in using your ${authMethod}",emailOrPhonePlaceholder:`Email address or phone number`,emailPlaceholder:`Email address`,invalidEmail:`Please enter a valid email address`,invalidIdentifier:`Please enter a valid email address or phone number`,invalidPhone:`Please enter a valid phone number with country code`,noEmail:`Please enter your email address`,noPhone:`Please enter your phone number`,phonePlaceholder:`Phone number`,sessionExpired:`Your session has expired. Please try again.`,title:`Sign in with a code`,userAccountDoesNotExist:`User account does not exist`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Click the link in your email to sign in`,description:"We sent a link to ${username}. Click it to sign in.",resendText:`Resend link`,spamText:`Didn't receive the email? Check your spam folder.`,title:`Check your email`}},mfa:xd,"mfa-email":{"mfa-email":{buttonText:`Continue`,codePlaceholder:`Enter code`,description:"We sent a code to ${email}","invalid-code":`The code you entered is invalid`,pageTitle:"Email Verification | ${clientName}",resendText:`Resend code`,title:`Check your email`}},"mfa-otp":{"mfa-otp":{buttonText:`Continue`,codePlaceholder:`Enter code`,description:`Enter the 6-digit code from your authenticator app`,"invalid-code":`The code you entered is invalid`,pageTitle:"Enter Code | ${clientName}",title:`Enter your code`},"mfa-totp-enrollment":{title:`Set up authenticator`,description:`Scan the QR code below with your authenticator app, then enter the 6-digit code to verify`,secretLabel:`Or enter this code manually:`,codePlaceholder:`Enter code`,continueButtonText:`Verify & Activate`,"invalid-code":`The code you entered is invalid. Please try again.`,"transaction-not-found":`Your enrollment transaction expired, you will need to start again.`,unexpectedError:`Something went wrong. Please try again.`,pageTitle:"Set up Authenticator | ${clientName}",enrollmentComplete:`MFA enrollment is complete. You can close this page.`},"mfa-totp-challenge":{title:`Verify your identity`,description:`Enter the 6-digit code from your authenticator app`,codePlaceholder:`Enter code`,continueButtonText:`Continue`,"invalid-code":`The code you entered is invalid`,"transaction-not-found":`Your enrollment transaction expired, you will need to start again.`,unexpectedError:`Something went wrong. Please try again.`,pageTitle:"Verify Identity | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Use your phone number to log in | ${clientName}",title:`Verify Your Identity`,description:"We sent a code to ${phoneNumber}",continueButtonText:`Continue`,changePhoneText:`Choose another phone number.`,smsButtonText:`Text message`,voiceButtonText:`Voice call`,chooseMessageTypeText:`How do you want to receive the code?`,pickAuthenticatorText:`Try another method`,logoAltText:"${companyName}",codePlaceholder:`Enter code`,"send-sms-failed":`There was a problem sending the SMS`,"send-voice-failed":`There was a problem making the voice call`,"invalid-phone-format":`Phone number can only include digits.`,"invalid-phone":`It seems that your phone number is not valid. Please check and retry.`,"too-many-sms":`You have exceeded the maximum number of phone messages per hour. Wait a few minutes and try again.`,"too-many-voice":`You have exceeded the maximum number of phone messages per hour. Wait a few minutes and try again.`,"transaction-not-found":`Your enrollment transaction expired, you will need to start again.`,"no-phone":`Please enter a phone number`,noCode:`Please enter the verification code`,invalidCode:`The code you entered is invalid. Please try again.`,unexpectedError:`Something went wrong. Please try again.`,resendSuccess:`We sent a new code to your phone`,enrollmentComplete:`MFA enrollment is complete. You can close this page.`},"mfa-phone-enrollment":{pageTitle:"Enter your phone number to log in using a phone code | ${clientName}",title:`Secure Your Account`,description:`Enter your country code and phone number to which we can send a 6-digit code:`,continueButtonText:`Continue`,smsButtonText:`Text message`,voiceButtonText:`Voice call`,chooseMessageTypeText:`How do you want to receive the code?`,pickAuthenticatorText:`Try another method`,placeholder:`Enter your phone number`,logoAltText:"${companyName}",selectCountryCode:"Select country code, currently set to ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`There was a problem sending the SMS`,"send-voice-failed":`There was a problem making the voice call`,"sms-authenticator-error":`We couldn't send the SMS. Please try again later.`,"invalid-phone-format":`Phone number can only include digits.`,"invalid-phone":`It seems that your phone number is not valid. Please check and retry.`,"too-many-sms":`You have exceeded the maximum number of phone messages per hour. Wait a few minutes and try again.`,"too-many-voice":`You have exceeded the maximum number of phone messages per hour. Wait a few minutes and try again.`,"transaction-not-found":`Your enrollment transaction expired, you will need to start again.`,"no-phone":`Please enter a phone number`,"phone-is-too-short":`Phone number is too short`,"phone-is-too-long":`Phone number is too long`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Choose Verification Method | ${clientName}",title:`Choose your verification method`,description:`Select how you'd like to verify your identity`,authenticatorAppLabel:`Authenticator App`,authenticatorAppDescription:`Use your authenticator app to get a verification code`,smsLabel:`Text Message`,smsDescription:`Get a verification code sent to your phone`,passkeyLabel:`Passkey`,passkeyDescription:`Use your device's biometrics or security key`}},"mfa-push":{"mfa-push":{description:`We sent a notification to your device`,pageTitle:"Push Notification | ${clientName}",resendText:`Resend notification`,title:`Approve the request`,useCodeText:`Enter code manually`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Continue`,codePlaceholder:`Recovery code`,description:`Enter one of your recovery codes`,"invalid-code":`The recovery code you entered is invalid`,pageTitle:"Recovery Code | ${clientName}",title:`Enter recovery code`}},"mfa-voice":{"mfa-voice":{buttonText:`Call me`,codePlaceholder:`Enter code`,description:"We will call ${phoneNumber} with your code","invalid-code":`The code you entered is invalid`,pageTitle:"Voice Call | ${clientName}",title:`Receive a phone call`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Try again`,description:`Insert your security key and follow the instructions`,pageTitle:"Security Key | ${clientName}",title:`Use your security key`}},passkeys:Sd,organizations:Cd,"reset-password":{"reset-password":{backToLoginText:`Back to login`,buttonText:`Continue`,codeExpired:`Your password reset code has expired. Please request a new one.`,confirmPasswordLabel:`Confirm Password`,confirmPasswordPlaceholder:`Confirm password`,description:`Enter your email to reset your password`,emailPlaceholder:`Email address`,failed:`Password reset failed. Please try again.`,"invalid-email-format":`Email is not valid.`,"no-email":`Please enter an email address`,pageTitle:"Reset Password | ${clientName}",passwordLabel:`New Password`,passwordPlaceholder:`New password`,passwordTooWeak:`Password is too weak`,passwordsDidntMatch:`Passwords don't match`,successDescription:`We have sent a password reset link to your email address.`,successTitle:`Check your email`,title:`Forgot your password?`,"user-not-found":`User not found`},"reset-password-code":{backToLoginText:`Back to login`,buttonText:`Reset Password`,codeLabel:`Reset Code`,codePlaceholder:`Enter 6-digit code`,confirmPasswordLabel:`Confirm Password`,confirmPasswordPlaceholder:`Confirm password`,defaultDescription:`Enter the code sent to your email and choose a new password`,description:"We sent a code to ${email}",failed:`Password reset failed. Please try again.`,invalidCode:`The code you entered is invalid or has expired`,noCode:`Please enter the reset code`,pageTitle:"Enter Reset Code | ${clientName}",passwordLabel:`New Password`,passwordPlaceholder:`New password`,passwordTooWeak:`Password is too weak`,passwordsDidntMatch:`Passwords don't match`,resendFailed:`Failed to resend the code. Please try again.`,resendSuccess:`A new code has been sent to your email`,resendText:`Resend code`,sessionExpired:`Your session has expired. Please try again.`,title:`Enter reset code`}},signup:wd,"signup-id":{"signup-id":{buttonText:`Continue`,description:`Sign up to continue`,"email-already-exists":`This email is already registered`,emailPlaceholder:`Email address`,federatedConnectionButtonText:"Continue with ${connectionName}","invalid-email-format":`Email is not valid.`,loginActionLinkText:`Log in`,loginActionText:`Already have an account?`,"no-email":`Please enter an email address`,pageTitle:"Sign up | ${clientName}",phonePlaceholder:`Phone number`,separatorText:`Or`,title:`Create your account`,usernamePlaceholder:`Username`}},"signup-password":{"signup-password":{buttonText:`Continue`,description:`Sign up to continue`,hidePasswordText:`Hide password`,"no-password":`Password is required`,pageTitle:"Sign up | ${clientName}","password-policy-not-met":`Password does not meet the requirements`,"password-too-weak":`Password is too weak`,passwordPlaceholder:`Password`,showPasswordText:`Show password`,title:`Create your password`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Continue`,codeLabel:`Verification Code`,codePlaceholder:`Enter code`,defaultDescription:`Enter the verification code sent to your phone`,description:"We sent a code to ${username}","invalid-code":`The code you entered is invalid`,noCode:`Please enter the verification code`,pageTitle:"Enter Code | ${clientName}",resendText:`Resend code`,sessionExpired:`Your session has expired. Please try again.`,title:`Check your phone`,unexpectedError:`An unexpected error occurred`}},status:Td},tie=c({common:()=>Ed,consent:()=>Dd,default:()=>nie,invitation:()=>Od,login:()=>kd,mfa:()=>Ad,organizations:()=>Md,passkeys:()=>jd,signup:()=>Nd,status:()=>Pd}),Ed={common:{alertListTitle:`Ilmoitukset`,backText:`Palaa takaisin`,cancelText:`Palaa takaisin`,closeText:`Sulje`,contactSupportText:`Tarvitsetko apua?`,continueText:`Jatka`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Jokin meni pieleen. Yritä uudelleen.`,hidePasswordText:`Piilota salasana`,loadingText:`Ladataan...`,orText:`tai`,privacyPolicyText:`Tietosuojakäytäntö`,showPasswordText:`Näytä salasana`,termsOfServiceText:`Käyttöehdot`,termsShortText:`Ehdot`,tryAgainText:`Yritä uudelleen`}},Dd={consent:{buttonText:`Hyväksy`,cancelButtonText:`Hylkää`,description:"${clientName} pyytää pääsyä tilillesi",pageTitle:"Valtuuta | ${clientName}",scopesTitle:"Tämä sallii sovelluksen ${clientName}:",title:"Valtuuta ${clientName}"}},Od={invitation:{acceptButtonText:`Hyväksy kutsu`,description:"${inviterName} on kutsunut sinut liittymään organisaatioon ${organizationName} palvelussa ${clientName}",pageTitle:"Kutsu | ${clientName}",title:`Sinut on kutsuttu`}},kd={login:{alertListTitle:`Ilmoitukset`,buttonText:`Jatka`,description:"Kirjaudu sisään ${clientName}.",editEmailText:`Muokkaa`,emailPlaceholder:`Sähköpostiosoite`,enterACodeBtn:`Kirjaudu koodilla`,federatedConnectionButtonText:"Jatka palvelulla ${connectionName}",footerLinkText:`Rekisteröidy`,footerText:`Eikö sinulla ole tiliä?`,forgotPasswordText:`Unohditko salasanan?`,hidePasswordText:`Piilota salasana`,invalidEmail:`Virheellinen sähköpostiosoite`,invalidIdentifier:`Virheellinen sähköpostiosoite tai käyttäjänimi`,invitationDescription:"Kirjaudu sisään hyväksyäksesi käyttäjän ${inviterName} kutsun liittyä palveluun ${companyName} sovelluksessa ${clientName}.",invitationTitle:`Sinut on kutsuttu!`,logoAltText:"${companyName}","no-email":`Sähköpostiosoite vaaditaan`,"no-password":`Salasana vaaditaan`,pageTitle:"Kirjaudu sisään | ${clientName}",passwordLoginNotAvailable:`Salasanakirjautuminen ei ole käytettävissä`,passwordPlaceholder:`Salasana`,phonePlaceholder:`Puhelinnumero`,separatorText:`tai`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,showPasswordText:`Näytä salasana`,signupActionLinkText:`Rekisteröidy`,signupActionText:`Eikö sinulla ole tiliä?`,title:`Tervetuloa`,tooManyFailedLogins:`Liian monta epäonnistunutta kirjautumisyritystä. Yritä myöhemmin uudelleen.`,unverifiedEmail:`Vahvista sähköpostiosoitteesi ennen kirjautumista`,userAccountDoesNotExist:`Käyttäjätiliä ei ole olemassa`,usernamePlaceholder:`Käyttäjänimi tai sähköpostiosoite`,usernameTooLong:"Käyttäjänimen on oltava enintään ${max} merkkiä",usernameTooShort:"Käyttäjänimen on oltava vähintään ${min} merkkiä",wrongCredentials:`Väärä käyttäjänimi tai salasana`,passkeyButtonText:`Kirjaudu sisään passkey:llä`}},Ad={mfa:{backupCodeText:`Käytä varakoodia`,description:`Valitse vahvistusmenetelmä`,pageTitle:"Monivaiheinen tunnistautuminen | ${clientName}",title:`Vahvista henkilöllisyytesi`}},jd={"passkey-enrollment-nudge":{title:`Suojaa tilisi tunnistautumisavaimella`,description:`Tunnistautumisavaimet käyttävät laitteesi biometriikkaa tai PIN-koodia kirjautuaksesi nopeammin ja turvallisemmin.`,enrollButtonText:`Määritä tunnistautumisavain`,snoozeButtonText:`Ehkä myöhemmin`,optOutLinkText:`Älä näytä tätä uudelleen`,pageTitle:"Määritä Tunnistautumisavain | ${clientName}"},"passkey-enrollment":{title:`Luo tunnistautumisavain`,description:`Seuraa selaimesi ohjeita luodaksesi tunnistautumisavaimen tälle tilille.`,errorMessage:`Tunnistautumisavaimen luominen epäonnistui. Yritä uudelleen.`,cancelLinkText:`Ohita toistaiseksi`,retryButtonText:`Yritä uudelleen`,enrollmentComplete:`Tunnistautumisavaimesi on määritetty onnistuneesti. Voit sulkea tämän sivun.`,pageTitle:"Luo Tunnistautumisavain | ${clientName}"},"passkey-challenge":{title:`Kirjaudu sisään passkey:llä`,description:`Noudata selaimesi ohjeita henkilöllisyytesi vahvistamiseksi.`,errorMessage:`Passkey-todennus epäonnistui. Yritä uudelleen.`,cancelLinkText:`Takaisin kirjautumiseen`,retryButtonText:`Yritä uudelleen`,pageTitle:"Kirjaudu sisään passkey:llä | ${clientName}"}},Md={organizations:{description:`Valitse organisaatio, johon haluat kirjautua`,pageTitle:"Valitse organisaatio | ${clientName}",searchPlaceholder:`Hae organisaatioita`,title:`Valitse organisaatiosi`}},Nd={signup:{buttonText:`Rekisteröityminen`,confirmPasswordPlaceholder:`Vahvista salasana`,description:`Valitse salasana, jossa on isoja ja pieniä kirjaimia, numeroita ja symboleja.`,"email-already-exists":`Sähköposti on jo varattu`,emailPlaceholder:`Sähköpostiosoite`,federatedConnectionButtonText:"Jatka palvelulla ${connectionName}",hidePasswordText:`Piilota salasana`,"invalid-email-format":`Virheellinen sähköpostiosoite`,loginActionLinkText:`Kirjaudu sisään`,loginActionText:`Onko sinulla jo tili?`,"no-email":`Sähköpostiosoite vaaditaan`,"no-password":`Salasana vaaditaan`,"no-username":`Käyttäjänimi vaaditaan`,pageTitle:"Rekisteröidy | ${clientName}",passwordPlaceholder:`Salasana`,passwordsDidntMatch:`Salasanat eivät täsmää`,phonePlaceholder:`Puhelinnumero`,privacyPolicyLinkText:`Tietosuojakäytäntö`,separatorText:`tai`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,showPasswordText:`Näytä salasana`,termsOfServiceLinkText:`Käyttöehdot`,termsText:`Rekisteröitymällä hyväksyt`,title:`Valitse salasana`,"username-already-exists":`Tämä käyttäjänimi on jo varattu`,usernamePlaceholder:`Käyttäjänimi`,verifyEmailText:`Tarkista sähköpostisi vahvistaaksesi tilisi`}},Pd={status:{continueButtonText:`Jatka`,errorTitle:`Virhe`,pageTitle:"Tila | ${clientName}",successTitle:`Onnistui`,title:`Tila`}},nie={common:Ed,consent:Dd,"device-flow":{"device-flow":{buttonText:`Jatka`,codePlaceholder:`Syötä koodi`,description:`Syötä laitteessasi näkyvä koodi`,"expired-code":`Koodi on vanhentunut`,"invalid-code":`Syöttämäsi koodi on virheellinen`,pageTitle:"Laitteen aktivointi | ${clientName}",title:`Aktivoi laitteesi`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Kirjaudu sisään`,codeLabel:`Vahvistuskoodi`,codePlaceholder:`Syötä koodi`,defaultDescription:`Syötä sähköpostiisi lähetetty vahvistuskoodi`,description:"Lähetimme koodin osoitteeseen ${email}","invalid-code":`Virheellinen koodi`,noCode:`Syötä vahvistuskoodi`,pageTitle:"Syötä koodi | ${clientName}",resendText:`Lähetä koodi uudelleen`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,title:`Tarkista sähköpostisi`,unexpectedError:`Odottamaton virhe tapahtui`}},"email-verification":{"email-verification":{description:"Lähetimme sähköpostin osoitteeseen ${email}",pageTitle:"Vahvista sähköposti | ${clientName}",resendText:`Lähetä koodi uudelleen`,successDescription:`Sähköpostiosoitteesi on vahvistettu onnistuneesti.`,successTitle:`Sähköposti vahvistettu`,title:`Vahvista sähköpostiosoitteesi`}},invitation:Od,login:kd,"login-id":{"login-id":{alertListTitle:`Ilmoitukset`,"auth0-users-validation":`Jokin meni pieleen, yritä myöhemmin uudelleen`,"authentication-failure":`Valitettavasti jokin meni pieleen kirjautumisyrityksen aikana`,buttonText:`Jatka`,"captcha-client-failure":`Turvatarkistuksen lataaminen epäonnistui. Yritä uudelleen. (Virhekoodi: #{errorCode})`,"captcha-validation-failure":`Valitettavasti jokin meni pieleen captcha-vastauksen tarkistuksessa. Yritä uudelleen.`,captchaCodePlaceholder:`Syötä yllä näkyvä koodi`,"custom-script-error-code":`Jokin meni pieleen, yritä myöhemmin uudelleen.`,description:"Kirjaudu sisään ${clientName}.",editEmailText:`Muokkaa`,emailPlaceholder:`Sähköpostiosoite`,federatedConnectionButtonText:"Jatka palvelulla ${connectionName}",footerLinkText:`Rekisteröidy`,footerText:`Eikö sinulla ole tiliä?`,forgotPasswordText:`Unohditko salasanan?`,hidePasswordText:`Piilota salasana`,"invalid-captcha":`Ratkaise haaste varmistaaksesi, ettet ole robotti.`,"invalid-code":`Virheellinen koodi`,"invalid-connection":`Virheellinen yhteys`,"invalid-email-format":`Virheellinen sähköpostiosoite`,"invalid-email-phone":`Syötä kelvollinen sähköpostiosoite tai puhelinnumero. Puhelinnumeron tulee sisältää maatunnus.`,"invalid-email-phone-username":`Syötä kelvollinen sähköpostiosoite, puhelinnumero tai käyttäjänimi. Puhelinnumeron tulee sisältää maatunnus.`,"invalid-email-username":`Syötä kelvollinen sähköpostiosoite tai käyttäjänimi`,"invalid-expired-code":`Virheellinen tai vanhentunut käyttäjäkoodi`,"invalid-login-id":`Virheellinen kirjautumistunnus`,"invalid-phone-username":`Syötä kelvollinen puhelinnumero tai käyttäjänimi. Puhelinnumeron tulee sisältää maatunnus.`,"invalid-recaptcha":`Valitse valintaruutu varmistaaksesi, ettet ole robotti.`,"invalid-username":"Käyttäjänimi voi sisältää vain aakkosnumeerisia merkkejä tai: '${characters}'. Käyttäjänimen tulee olla ${min}–${max} merkkiä.",invitationDescription:"Kirjaudu sisään hyväksyäksesi käyttäjän ${inviterName} kutsun liittyä palveluun ${companyName} sovelluksessa ${clientName}.",invitationTitle:`Sinut on kutsuttu!`,"ip-blocked":`Olemme havainneet epäilyttävää kirjautumiskäyttäytymistä ja lisäyritykset estetään. Ota yhteyttä ylläpitäjään.`,logoAltText:"${companyName}","no-db-connection":`Virheellinen yhteys`,"no-email":`Sähköpostiosoite vaaditaan`,"no-email-phone":`Sähköpostiosoite tai puhelinnumero vaaditaan`,"no-email-phone-username":`Puhelinnumero, käyttäjänimi tai sähköpostiosoite vaaditaan`,"no-email-username":`Sähköpostiosoite tai käyttäjänimi vaaditaan`,"no-password":`Salasana vaaditaan`,"no-phone":`Syötä puhelinnumero`,"no-phone-username":`Puhelinnumero tai käyttäjänimi vaaditaan`,"no-username":`Käyttäjänimi vaaditaan`,pageTitle:"Kirjaudu sisään | ${clientName}","password-breached":`Olemme havainneet mahdollisen tietoturvaongelman tässä tilissä. Tilisi suojaamiseksi olemme estäneet tämän kirjautumisen. Vaihda salasanasi jatkaaksesi.`,passwordPlaceholder:`Salasana`,phoneOrEmailPlaceholder:`Sähköposti tai puhelinnumero`,phoneOrUsernameOrEmailPlaceholder:`Puhelin, käyttäjänimi tai sähköposti`,phoneOrUsernamePlaceholder:`Puhelinnumero tai käyttäjänimi`,phonePlaceholder:`Puhelinnumero`,"same-user-login":`Liian monta kirjautumisyritystä tälle käyttäjälle. Odota hetki ja yritä myöhemmin uudelleen.`,selectCountryCode:"Valitse maakoodi, tällä hetkellä ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`tai`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,showPasswordText:`Näytä salasana`,signupActionLinkText:`Rekisteröidy`,signupActionText:`Eikö sinulla ole tiliä?`,termsAndConditionsTemplate:'Jatkamalla hyväksyt <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Käyttöehdot</a>.',title:`Tervetuloa`,"user-blocked":`Tilisi on estetty useiden peräkkäisten kirjautumisyritysten jälkeen.`,userAccountDoesNotExist:`Käyttäjätiliä ei ole olemassa`,usernameOnlyPlaceholder:`Käyttäjänimi`,usernameOrEmailPlaceholder:`Käyttäjänimi tai sähköpostiosoite`,usernamePlaceholder:`Käyttäjänimi`,usernameTooLong:"Käyttäjänimen on oltava enintään ${max} merkkiä",usernameTooShort:"Käyttäjänimen on oltava vähintään ${min} merkkiä","wrong-credentials":`Väärä käyttäjänimi tai salasana`,"wrong-email-credentials":`Väärä sähköpostiosoite tai salasana`,"wrong-email-phone-credentials":`Virheellinen sähköpostiosoite, puhelinnumero tai salasana. Puhelinnumeron tulee sisältää maatunnus.`,"wrong-email-phone-username-credentials":`Virheellinen sähköpostiosoite, puhelinnumero, käyttäjänimi tai salasana. Puhelinnumeron tulee sisältää maatunnus.`,"wrong-email-username-credentials":`Virheellinen sähköpostiosoite, käyttäjänimi tai salasana`,"wrong-phone-credentials":`Virheellinen puhelinnumero tai salasana`,"wrong-phone-username-credentials":`Virheellinen puhelinnumero, käyttäjänimi tai salasana. Puhelinnumeron tulee sisältää maatunnus.`,"wrong-username-credentials":`Virheellinen käyttäjänimi tai salasana`,passkeyButtonText:`Kirjaudu sisään passkey:llä`}},"login-password":{"login-password":{buttonText:`Kirjaudu sisään`,description:`Anna sähköpostiosoitteesi ja salasanasi kirjautuaksesi sisään.`,forgotPasswordText:`Unohditko salasanan?`,hidePasswordText:`Piilota salasana`,"no-password":`Salasana vaaditaan`,pageTitle:"Kirjaudu sisään | ${clientName}","password-breached":`Olemme havainneet mahdollisen tietoturvaongelman tässä tilissä. Tilisi suojaamiseksi olemme estäneet tämän kirjautumisen. Vaihda salasanasi jatkaaksesi.`,passwordPlaceholder:`Salasana`,showPasswordText:`Näytä salasana`,signingInAs:"Kirjaudutaan käyttäjänä ${email}",title:`Anna salasana`,unverifiedEmail:`Vahvista sähköpostiosoitteesi ennen kirjautumista`,"user-blocked":`Tilisi on estetty useiden peräkkäisten kirjautumisyritysten jälkeen.`,"wrong-credentials":`Väärä salasana`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`sähköposti`,authMethodEmailOrPhone:`sähköposti tai puhelinnumero`,authMethodPhone:`puhelinnumero`,description:"Kirjaudu sisään käyttämällä ${authMethod}",emailOrPhonePlaceholder:`Sähköpostiosoite tai puhelinnumero`,emailPlaceholder:`Sähköpostiosoite`,invalidEmail:`Syötä kelvollinen sähköpostiosoite`,invalidIdentifier:`Syötä kelvollinen sähköpostiosoite tai puhelinnumero`,invalidPhone:`Syötä kelvollinen puhelinnumero maatunnuksella`,noEmail:`Syötä sähköpostiosoitteesi`,noPhone:`Syötä puhelinnumerosi`,phonePlaceholder:`Puhelinnumero`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,title:`Kirjaudu koodilla`,userAccountDoesNotExist:`Käyttäjätiliä ei ole olemassa`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Napsauta sähköpostissasi olevaa linkkiä kirjautuaksesi sisään`,description:"Lähetimme linkin osoitteeseen ${username}. Napsauta sitä kirjautuaksesi.",resendText:`Lähetä linkki uudelleen`,spamText:`Etkö saanut sähköpostia? Tarkista roskapostikansiosi.`,title:`Tarkista sähköpostisi`}},mfa:Ad,"mfa-email":{"mfa-email":{buttonText:`Jatka`,codePlaceholder:`Syötä koodi`,description:"Lähetimme koodin osoitteeseen ${email}","invalid-code":`Syöttämäsi koodi on virheellinen`,pageTitle:"Sähköpostivahvistus | ${clientName}",resendText:`Lähetä koodi uudelleen`,title:`Tarkista sähköpostisi`}},"mfa-otp":{"mfa-otp":{buttonText:`Jatka`,codePlaceholder:`Syötä koodi`,description:`Syötä 6-numeroinen koodi todentajasovelluksestasi`,"invalid-code":`Syöttämäsi koodi on virheellinen`,pageTitle:"Syötä koodi | ${clientName}",title:`Syötä koodisi`},"mfa-totp-enrollment":{title:`Ota todentajasovellus käyttöön`,description:`Skannaa alla oleva QR-koodi todentajasovelluksellasi ja syötä sitten 6-numeroinen koodi vahvistaaksesi`,secretLabel:`Tai syötä tämä koodi manuaalisesti:`,codePlaceholder:`Syötä koodi`,continueButtonText:`Vahvista ja aktivoi`,"invalid-code":`Syöttämäsi koodi on virheellinen. Yritä uudelleen.`,"transaction-not-found":`Rekisteröintitapahtumasi on vanhentunut, sinun täytyy aloittaa alusta.`,pageTitle:"Ota todentaja käyttöön | ${clientName}",unexpectedError:`Jokin meni pieleen. Yritä uudelleen.`,enrollmentComplete:`MFA-rekisteröinti on valmis. Voit sulkea tämän sivun.`},"mfa-totp-challenge":{title:`Vahvista henkilöllisyytesi`,description:`Syötä 6-numeroinen koodi todentajasovelluksestasi`,codePlaceholder:`Syötä koodi`,continueButtonText:`Jatka`,"invalid-code":`Syöttämäsi koodi on virheellinen`,"transaction-not-found":`Rekisteröintitapahtumasi on vanhentunut, sinun täytyy aloittaa alusta.`,unexpectedError:`Jokin meni pieleen. Yritä uudelleen.`,pageTitle:"Vahvista henkilöllisyys | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Käytä puhelinnumeroasi kirjautumiseen | ${clientName}",title:`Vahvista henkilöllisyytesi`,description:"Lähetimme koodin numeroon ${phoneNumber}",continueButtonText:`Jatka`,changePhoneText:`Valitse toinen puhelinnumero.`,smsButtonText:`Tekstiviesti`,voiceButtonText:`Äänipuhelu`,chooseMessageTypeText:`Miten haluat vastaanottaa koodin?`,pickAuthenticatorText:`Kokeile toista menetelmää`,logoAltText:"${companyName}",codePlaceholder:`Syötä koodi`,"send-sms-failed":`Tekstiviestin lähettämisessä oli ongelma`,"send-voice-failed":`Äänipuhelun soittamisessa oli ongelma`,"invalid-phone-format":`Puhelinnumero voi sisältää vain numeroita.`,"invalid-phone":`Puhelinnumerosi ei vaikuta olevan kelvollinen. Tarkista ja yritä uudelleen.`,"too-many-sms":`Olet ylittänyt tunnin enimmäismäärän puhelinviestejä. Odota muutama minuutti ja yritä uudelleen.`,"too-many-voice":`Olet ylittänyt tunnin enimmäismäärän puhelinviestejä. Odota muutama minuutti ja yritä uudelleen.`,"transaction-not-found":`Rekisteröintitapahtumasi on vanhentunut, sinun täytyy aloittaa alusta.`,"no-phone":`Syötä puhelinnumero`,noCode:`Syötä vahvistuskoodi`,invalidCode:`Antamasi koodi on virheellinen. Yritä uudelleen.`,unexpectedError:`Jokin meni pieleen. Yritä uudelleen.`,resendSuccess:`Lähetimme uuden koodin puhelimeesi`,enrollmentComplete:`MFA-rekisteröinti on valmis. Voit sulkea tämän sivun.`},"mfa-phone-enrollment":{pageTitle:"Syötä puhelinnumerosi kirjautuaksesi puhelinkoodilla | ${clientName}",title:`Suojaa tilisi`,description:`Syötä maakoodisi ja puhelinnumero, johon voimme lähettää 6-numeroisen koodin:`,continueButtonText:`Jatka`,smsButtonText:`Tekstiviesti`,voiceButtonText:`Äänipuhelu`,chooseMessageTypeText:`Miten haluat vastaanottaa koodin?`,pickAuthenticatorText:`Kokeile toista menetelmää`,placeholder:`Syötä puhelinnumerosi`,logoAltText:"${companyName}",selectCountryCode:"Valitse maakoodi, tällä hetkellä asetettu ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Tekstiviestin lähettämisessä oli ongelma`,"send-voice-failed":`Äänipuhelun soittamisessa oli ongelma`,"sms-authenticator-error":`Emme pystyneet lähettämään tekstiviestiä. Yritä myöhemmin uudelleen.`,"invalid-phone-format":`Puhelinnumero voi sisältää vain numeroita.`,"invalid-phone":`Puhelinnumerosi ei vaikuta olevan kelvollinen. Tarkista ja yritä uudelleen.`,"too-many-sms":`Olet ylittänyt tunnin enimmäismäärän puhelinviestejä. Odota muutama minuutti ja yritä uudelleen.`,"too-many-voice":`Olet ylittänyt tunnin enimmäismäärän puhelinviestejä. Odota muutama minuutti ja yritä uudelleen.`,"transaction-not-found":`Rekisteröintitapahtumasi on vanhentunut, sinun täytyy aloittaa alusta.`,"no-phone":`Syötä puhelinnumero`,"phone-is-too-short":`Puhelinnumero on liian lyhyt`,"phone-is-too-long":`Puhelinnumero on liian pitkä`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Valitse vahvistusmenetelmä | ${clientName}",title:`Valitse vahvistusmenetelmä`,description:`Valitse, miten haluat vahvistaa henkilöllisyytesi`,authenticatorAppLabel:`Todennussovellus`,authenticatorAppDescription:`Käytä todennussovellusta vahvistuskoodin saamiseksi`,smsLabel:`Tekstiviesti`,smsDescription:`Saat vahvistuskoodin puhelimeesi tekstiviestillä`,passkeyLabel:`Tunnistautumisavain`,passkeyDescription:`Käytä laitteesi biometriikkaa tai suojausavainta`}},"mfa-push":{"mfa-push":{description:`Lähetimme ilmoituksen laitteellesi`,pageTitle:"Push-ilmoitus | ${clientName}",resendText:`Lähetä ilmoitus uudelleen`,title:`Hyväksy pyyntö`,useCodeText:`Syötä koodi manuaalisesti`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Jatka`,codePlaceholder:`Palautuskoodi`,description:`Syötä yksi palautuskoodeistasi`,"invalid-code":`Syöttämäsi palautuskoodi on virheellinen`,pageTitle:"Palautuskoodi | ${clientName}",title:`Syötä palautuskoodi`}},"mfa-voice":{"mfa-voice":{buttonText:`Soita minulle`,codePlaceholder:`Syötä koodi`,description:"Soitamme numeroon ${phoneNumber} ja kerromme koodisi","invalid-code":`Syöttämäsi koodi on virheellinen`,pageTitle:"Äänipuhelu | ${clientName}",title:`Vastaanota puhelu`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Yritä uudelleen`,description:`Aseta turva-avaimesi ja seuraa ohjeita`,pageTitle:"Turva-avain | ${clientName}",title:`Käytä turva-avaintasi`}},passkeys:jd,organizations:Md,"reset-password":{"reset-password":{backToLoginText:`Palaa takaisin`,buttonText:`Lähetä salasanan palautussähköposti`,codeExpired:`Salasanan palautuskoodisi on vanhentunut. Pyydä uusi koodi.`,confirmPasswordLabel:`Vahvista salasana`,confirmPasswordPlaceholder:`Vahvista salasana`,description:`Napsauta alla olevaa painiketta, niin lähetämme ohjeet salasanasi palauttamiseen.`,emailPlaceholder:`Sähköpostiosoite`,failed:`Salasanan vaihto epäonnistui. Yritä uudelleen.`,"invalid-email-format":`Virheellinen sähköpostiosoite`,"no-email":`Sähköpostiosoite vaaditaan`,pageTitle:"Vaihda salasana | ${clientName}",passwordLabel:`Uusi salasana`,passwordPlaceholder:`Uusi salasana`,passwordTooWeak:`Salasana on liian heikko`,passwordsDidntMatch:`Salasanat eivät täsmää`,successDescription:`Olemme lähettäneet salasanan palautuslinkin sähköpostiosoitteeseesi.`,successTitle:`Salasanan palautussähköposti lähetetty`,title:`Unohditko salasanan?`,"user-not-found":`Käyttäjää ei löytynyt`},"reset-password-code":{backToLoginText:`Takaisin kirjautumiseen`,buttonText:`Vaihda salasana`,codeLabel:`Palautuskoodi`,codePlaceholder:`Syötä 6-numeroinen koodi`,confirmPasswordLabel:`Vahvista salasana`,confirmPasswordPlaceholder:`Vahvista salasana`,defaultDescription:`Syötä sähköpostiisi lähetetty koodi ja valitse uusi salasana`,description:"Lähetimme koodin osoitteeseen ${email}",failed:`Salasanan vaihto epäonnistui. Yritä uudelleen.`,invalidCode:`Syöttämäsi koodi on virheellinen tai vanhentunut`,noCode:`Syötä palautuskoodi`,pageTitle:"Syötä palautuskoodi | ${clientName}",passwordLabel:`Uusi salasana`,passwordPlaceholder:`Uusi salasana`,passwordTooWeak:`Salasana on liian heikko`,passwordsDidntMatch:`Salasanat eivät täsmää`,resendFailed:`Koodin uudelleenlähetys epäonnistui. Yritä uudelleen.`,resendSuccess:`Uusi koodi on lähetetty sähköpostiisi`,resendText:`Lähetä koodi uudelleen`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,title:`Syötä palautuskoodi`}},signup:Nd,"signup-id":{"signup-id":{buttonText:`Jatka`,description:`Valitse salasana, jossa on isoja ja pieniä kirjaimia, numeroita ja symboleja.`,"email-already-exists":`Sähköposti on jo varattu`,emailPlaceholder:`Sähköpostiosoite`,federatedConnectionButtonText:"Jatka palvelulla ${connectionName}","invalid-email-format":`Virheellinen sähköpostiosoite`,loginActionLinkText:`Kirjaudu sisään`,loginActionText:`Onko sinulla jo tili?`,"no-email":`Sähköpostiosoite vaaditaan`,pageTitle:"Rekisteröidy | ${clientName}",phonePlaceholder:`Puhelinnumero`,separatorText:`tai`,title:`Valitse salasana`,usernamePlaceholder:`Käyttäjänimi`}},"signup-password":{"signup-password":{buttonText:`Jatka`,description:`Valitse salasana, jossa on isoja ja pieniä kirjaimia, numeroita ja symboleja.`,hidePasswordText:`Piilota salasana`,"no-password":`Salasana vaaditaan`,pageTitle:"Rekisteröidy | ${clientName}","password-policy-not-met":`Salasana ei täytä vaatimuksia`,"password-too-weak":`Salasana on liian heikko`,passwordPlaceholder:`Salasana`,showPasswordText:`Näytä salasana`,title:`Valitse salasana`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Jatka`,codeLabel:`Vahvistuskoodi`,codePlaceholder:`Syötä koodi`,defaultDescription:`Syötä puhelimeesi lähetetty vahvistuskoodi`,description:"Lähetimme koodin käyttäjälle ${username}","invalid-code":`Virheellinen koodi`,noCode:`Syötä vahvistuskoodi`,pageTitle:"Syötä koodi | ${clientName}",resendText:`Lähetä koodi uudelleen`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,title:`Tarkista puhelimesi`,unexpectedError:`Odottamaton virhe tapahtui`}},status:Pd},rie=c({common:()=>Fd,consent:()=>Id,default:()=>iie,invitation:()=>Ld,login:()=>Rd,mfa:()=>zd,organizations:()=>Vd,passkeys:()=>Bd,signup:()=>Hd,status:()=>Ud}),Fd={common:{alertListTitle:`Avvisi`,backText:`Torna indietro`,cancelText:`Annulla`,closeText:`Chiudi`,contactSupportText:`Contatta l'assistenza`,continueText:`Continua`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Si è verificato un errore`,hidePasswordText:`Nascondi password`,loadingText:`Caricamento...`,orText:`o`,privacyPolicyText:`Informativa sulla privacy`,showPasswordText:`Mostra password`,termsOfServiceText:`Termini di servizio`,termsShortText:`Termini`,tryAgainText:`Riprova`}},Id={consent:{buttonText:`Accetta`,cancelButtonText:`Rifiuta`,description:"${clientName} richiede l'accesso al tuo account",pageTitle:"Autorizza | ${clientName}",scopesTitle:"Questo permetterà a ${clientName} di:",title:"Autorizza ${clientName}"}},Ld={invitation:{acceptButtonText:`Accetta invito`,description:"${inviterName} ti ha invitato a unirti a ${organizationName} su ${clientName}",pageTitle:"Invito | ${clientName}",title:`Sei stato invitato`}},Rd={login:{alertListTitle:`Avvisi`,buttonText:`Continua`,description:"Accedi a ${clientName}.",editEmailText:`Modifica`,emailPlaceholder:`Indirizzo e-mail`,enterACodeBtn:`Accedi con un codice`,federatedConnectionButtonText:"Continua con ${connectionName}",footerLinkText:`Iscriviti`,footerText:`Non hai un account?`,forgotPasswordText:`Hai dimenticato la password?`,hidePasswordText:`Nascondi password`,invalidEmail:`Email non valida`,invalidIdentifier:`Email o nome utente non valido`,invitationDescription:"Accedi per accettare l'invito di ${inviterName} a unirti a ${companyName} su ${clientName}.",invitationTitle:`Sei stato invitato!`,logoAltText:"${companyName}","no-email":`Inserisci un indirizzo email`,"no-password":`La password è obbligatoria`,pageTitle:"Accedi | ${clientName}",passwordLoginNotAvailable:`L'autenticazione con password non è disponibile`,passwordPlaceholder:`Password`,phonePlaceholder:`Numero di telefono`,separatorText:`o`,sessionExpired:`La sessione è scaduta. Riprova.`,showPasswordText:`Mostra password`,signupActionLinkText:`Iscriviti`,signupActionText:`Non hai un account?`,title:`Benvenuto`,tooManyFailedLogins:`Troppi tentativi di accesso falliti. Riprova più tardi.`,unverifiedEmail:`Verifica il tuo indirizzo email prima di accedere`,userAccountDoesNotExist:`L'account utente non esiste`,usernamePlaceholder:`Nome utente o indirizzo email`,usernameTooLong:"Il nome utente deve avere al massimo ${max} caratteri",usernameTooShort:"Il nome utente deve avere almeno ${min} caratteri",wrongCredentials:`Nome utente o password errati`,passkeyButtonText:`Accedi con una passkey`}},zd={mfa:{backupCodeText:`Usa codice di backup`,description:`Scegli un metodo di verifica`,pageTitle:"Autenticazione a più fattori | ${clientName}",title:`Verifica la tua identità`}},Bd={"passkey-enrollment-nudge":{title:`Proteggi il tuo account con una passkey`,description:`Le passkey utilizzano la biometria o il PIN del tuo dispositivo per accedere più velocemente e in modo più sicuro.`,enrollButtonText:`Configura passkey`,snoozeButtonText:`Forse più tardi`,optOutLinkText:`Non mostrare più`,pageTitle:"Configura Passkey | ${clientName}"},"passkey-enrollment":{title:`Crea la tua passkey`,description:`Segui le istruzioni del browser per creare una passkey per questo account.`,errorMessage:`Creazione della passkey non riuscita. Riprova.`,cancelLinkText:`Salta per ora`,retryButtonText:`Riprova`,enrollmentComplete:`La tua passkey è stata configurata con successo. Puoi chiudere questa pagina.`,pageTitle:"Crea Passkey | ${clientName}"},"passkey-challenge":{title:`Accedi con passkey`,description:`Segui le istruzioni del browser per verificare la tua identità.`,errorMessage:`Autenticazione con passkey non riuscita. Riprova.`,cancelLinkText:`Torna al login`,retryButtonText:`Riprova`,pageTitle:"Accedi con passkey | ${clientName}"}},Vd={organizations:{description:`Scegli a quale organizzazione accedere`,pageTitle:"Seleziona organizzazione | ${clientName}",searchPlaceholder:`Cerca organizzazioni`,title:`Seleziona la tua organizzazione`}},Hd={signup:{buttonText:`Iscriviti`,confirmPasswordPlaceholder:`Conferma password`,description:`Registrati per continuare`,"email-already-exists":`Questa email è già registrata`,emailPlaceholder:`Indirizzo e-mail`,federatedConnectionButtonText:"Continua con ${connectionName}",hidePasswordText:`Nascondi password`,"invalid-email-format":`Email non valida`,loginActionLinkText:`Accedi`,loginActionText:`Hai già un account?`,"no-email":`Inserisci un indirizzo email`,"no-password":`La password è obbligatoria`,"no-username":`Il nome utente è obbligatorio`,pageTitle:"Registrati | ${clientName}",passwordPlaceholder:`Password`,passwordsDidntMatch:`Le password non corrispondono`,phonePlaceholder:`Numero di telefono`,privacyPolicyLinkText:`Informativa sulla privacy`,separatorText:`o`,sessionExpired:`La sessione è scaduta. Riprova.`,showPasswordText:`Mostra password`,termsOfServiceLinkText:`Termini di servizio`,termsText:`Registrandoti, accetti i nostri`,title:`Crea il tuo account`,"username-already-exists":`Questo nome utente è già in uso`,usernamePlaceholder:`Nome utente`,verifyEmailText:`Controlla la tua email per verificare il tuo account`}},Ud={status:{continueButtonText:`Continua`,errorTitle:`Errore`,pageTitle:"Stato | ${clientName}",successTitle:`Operazione riuscita`,title:`Stato`}},iie={common:Fd,consent:Id,"device-flow":{"device-flow":{buttonText:`Continua`,codePlaceholder:`Inserisci il codice`,description:`Inserisci il codice mostrato sul tuo dispositivo`,"expired-code":`Il codice è scaduto`,"invalid-code":`Il codice inserito non è valido`,pageTitle:"Attivazione dispositivo | ${clientName}",title:`Attiva il tuo dispositivo`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Continua`,codeLabel:`Codice di verifica`,codePlaceholder:`Inserisci il codice`,defaultDescription:`Inserisci il codice di verifica inviato alla tua email`,description:"Abbiamo inviato un codice a ${email}","invalid-code":`Codice non valido`,noCode:`Inserisci il codice di verifica`,pageTitle:"Inserisci il codice | ${clientName}",resendText:`Reinvio del codice`,sessionExpired:`La sessione è scaduta. Riprova.`,title:`Controlla la tua email`,unexpectedError:`Si è verificato un errore imprevisto`}},"email-verification":{"email-verification":{description:"Abbiamo inviato un'email a ${email}",pageTitle:"Verifica email | ${clientName}",resendText:`Reinvia email`,successDescription:`La tua email è stata verificata con successo.`,successTitle:`Email verificata`,title:`Verificare l'e-mail`}},invitation:Ld,login:Rd,"login-id":{"login-id":{alertListTitle:`Avvisi`,"auth0-users-validation":`Qualcosa è andato storto, riprova più tardi`,"authentication-failure":`Siamo spiacenti, si è verificato un errore durante il tentativo di accesso`,buttonText:`Continua`,"captcha-client-failure":`Non è stato possibile caricare la verifica di sicurezza. Riprova. (Codice errore: #{errorCode})`,"captcha-validation-failure":`Siamo spiacenti, si è verificato un errore durante la convalida della risposta captcha. Riprova.`,captchaCodePlaceholder:`Inserisci il codice mostrato sopra`,"custom-script-error-code":`Qualcosa è andato storto, riprova più tardi.`,description:"Accedi a ${clientName}.",editEmailText:`Modifica`,emailPlaceholder:`Indirizzo e-mail`,federatedConnectionButtonText:"Continua con ${connectionName}",footerLinkText:`Iscriviti`,footerText:`Non hai un account?`,forgotPasswordText:`Hai dimenticato la password?`,hidePasswordText:`Nascondi password`,"invalid-captcha":`Risolvi la domanda di verifica per confermare che non sei un robot.`,"invalid-code":`Codice non valido`,"invalid-connection":`Connessione non valida`,"invalid-email-format":`Email non valida`,"invalid-email-phone":`Inserisci un indirizzo email o un numero di telefono valido. I numeri di telefono devono includere il prefisso internazionale.`,"invalid-email-phone-username":`Inserisci un indirizzo email, un numero di telefono o un nome utente valido. I numeri di telefono devono includere il prefisso internazionale.`,"invalid-email-username":`Inserisci un indirizzo email o un nome utente valido`,"invalid-expired-code":`Codice utente non valido o scaduto`,"invalid-login-id":`ID di accesso non valido`,"invalid-phone-username":`Inserisci un numero di telefono o un nome utente valido. I numeri di telefono devono includere il prefisso internazionale.`,"invalid-recaptcha":`Seleziona la casella per confermare che non sei un robot.`,"invalid-username":"Il nome utente può contenere solo caratteri alfanumerici o: '${characters}'. Il nome utente deve avere tra ${min} e ${max} caratteri.",invitationDescription:"Accedi per accettare l'invito di ${inviterName} a unirti a ${companyName} su ${clientName}.",invitationTitle:`Sei stato invitato!`,"ip-blocked":`Abbiamo rilevato un comportamento di accesso sospetto e ulteriori tentativi saranno bloccati. Contatta l'amministratore.`,logoAltText:"${companyName}","no-db-connection":`Connessione non valida`,"no-email":`Inserisci un indirizzo email`,"no-email-phone":`È richiesto un indirizzo email o un numero di telefono`,"no-email-phone-username":`È richiesto un numero di telefono, un nome utente o un indirizzo email`,"no-email-username":`È richiesto un indirizzo email o un nome utente`,"no-password":`La password è obbligatoria`,"no-phone":`Inserisci un numero di telefono`,"no-phone-username":`È richiesto un numero di telefono o un nome utente`,"no-username":`Il nome utente è obbligatorio`,pageTitle:"Accedi | ${clientName}","password-breached":`Abbiamo rilevato un potenziale problema di sicurezza con questo account. Per proteggere il tuo account, abbiamo impedito questo accesso. Reimposta la password per procedere.`,passwordPlaceholder:`Password`,phoneOrEmailPlaceholder:`Indirizzo e-mail o numero di telefono`,phoneOrUsernameOrEmailPlaceholder:`Telefono, nome utente o email`,phoneOrUsernamePlaceholder:`Numero di telefono o nome utente`,phonePlaceholder:`Numero di telefono`,"same-user-login":`Troppi tentativi di accesso per questo utente. Attendi e riprova più tardi.`,selectCountryCode:"Seleziona prefisso paese, attualmente impostato su ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`o`,sessionExpired:`La sessione è scaduta. Riprova.`,showPasswordText:`Mostra password`,signupActionLinkText:`Iscriviti`,signupActionText:`Non hai un account?`,termsAndConditionsTemplate:'Continuando, accetti i nostri <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Termini e condizioni</a>.',title:`Benvenuto`,"user-blocked":`Il tuo account è stato bloccato dopo diversi tentativi di accesso consecutivi.`,userAccountDoesNotExist:`L'account utente non esiste`,usernameOnlyPlaceholder:`Nome utente`,usernameOrEmailPlaceholder:`Nome utente o indirizzo email`,usernamePlaceholder:`Nome utente`,usernameTooLong:"Il nome utente deve avere al massimo ${max} caratteri",usernameTooShort:"Il nome utente deve avere almeno ${min} caratteri","wrong-credentials":`Nome utente o password errati`,"wrong-email-credentials":`Email o password errati`,"wrong-email-phone-credentials":`Indirizzo email, numero di telefono o password errati. I numeri di telefono devono includere il prefisso internazionale.`,"wrong-email-phone-username-credentials":`Indirizzo email, numero di telefono, nome utente o password errati. I numeri di telefono devono includere il prefisso internazionale.`,"wrong-email-username-credentials":`Indirizzo email, nome utente o password errati`,"wrong-phone-credentials":`Numero di telefono o password errati`,"wrong-phone-username-credentials":`Numero di telefono, nome utente o password errati. I numeri di telefono devono includere il prefisso internazionale.`,"wrong-username-credentials":`Nome utente o password errati`,passkeyButtonText:`Accedi con una passkey`}},"login-password":{"login-password":{buttonText:`Accedi`,description:"Accedi a ${clientName}",forgotPasswordText:`Hai dimenticato la password?`,hidePasswordText:`Nascondi password`,"no-password":`La password è obbligatoria`,pageTitle:"Accedi | ${clientName}","password-breached":`Abbiamo rilevato un potenziale problema di sicurezza con questo account. Per proteggere il tuo account, abbiamo impedito questo accesso. Reimposta la password per procedere.`,passwordPlaceholder:`Password`,showPasswordText:`Mostra password`,signingInAs:"Accesso come ${email}",title:`Inserire la password`,unverifiedEmail:`Verifica il tuo indirizzo email prima di accedere`,"user-blocked":`Il tuo account è stato bloccato dopo diversi tentativi di accesso consecutivi.`,"wrong-credentials":`Password errata`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`email`,authMethodEmailOrPhone:`email o numero di telefono`,authMethodPhone:`numero di telefono`,description:"Accedi usando il tuo ${authMethod}",emailOrPhonePlaceholder:`Indirizzo email o numero di telefono`,emailPlaceholder:`Indirizzo e-mail`,invalidEmail:`Inserisci un indirizzo email valido`,invalidIdentifier:`Inserisci un indirizzo email o un numero di telefono valido`,invalidPhone:`Inserisci un numero di telefono valido con il prefisso internazionale`,noEmail:`Inserisci il tuo indirizzo email`,noPhone:`Inserisci il tuo numero di telefono`,phonePlaceholder:`Numero di telefono`,sessionExpired:`La sessione è scaduta. Riprova.`,title:`Accedi con un codice`,userAccountDoesNotExist:`L'account utente non esiste`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Clicca il link nella tua email per accedere`,description:"Abbiamo inviato un link a ${username}. Cliccalo per accedere.",resendText:`Reinvia link`,spamText:`Non hai ricevuto l'email? Controlla la cartella spam.`,title:`Controlla la tua email`}},mfa:zd,"mfa-email":{"mfa-email":{buttonText:`Continua`,codePlaceholder:`Inserisci il codice`,description:"Abbiamo inviato un codice a ${email}","invalid-code":`Il codice inserito non è valido`,pageTitle:"Verifica email | ${clientName}",resendText:`Reinvia codice`,title:`Controlla la tua email`}},"mfa-otp":{"mfa-otp":{buttonText:`Continua`,codePlaceholder:`Inserisci il codice`,description:`Inserisci il codice a 6 cifre dalla tua app di autenticazione`,"invalid-code":`Il codice inserito non è valido`,pageTitle:"Inserisci il codice | ${clientName}",title:`Inserisci il tuo codice`},"mfa-totp-enrollment":{title:`Configura l'autenticatore`,description:`Scansiona il codice QR qui sotto con la tua app di autenticazione, poi inserisci il codice a 6 cifre per verificare`,secretLabel:`Oppure inserisci questo codice manualmente:`,codePlaceholder:`Inserisci il codice`,continueButtonText:`Verifica e attiva`,"invalid-code":`Il codice inserito non è valido. Riprova.`,"transaction-not-found":`La tua transazione di registrazione è scaduta, dovrai ricominciare.`,pageTitle:"Configura autenticatore | ${clientName}",unexpectedError:`Qualcosa è andato storto. Riprova.`,enrollmentComplete:`La registrazione MFA è completata. Puoi chiudere questa pagina.`},"mfa-totp-challenge":{title:`Verifica la tua identità`,description:`Inserisci il codice a 6 cifre dalla tua app di autenticazione`,codePlaceholder:`Inserisci il codice`,continueButtonText:`Continua`,"invalid-code":`Il codice inserito non è valido`,"transaction-not-found":`La tua transazione di registrazione è scaduta, dovrai ricominciare.`,unexpectedError:`Qualcosa è andato storto. Riprova.`,pageTitle:"Verifica identità | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Usa il tuo numero di telefono per accedere | ${clientName}",title:`Verifica la tua identità`,description:"Abbiamo inviato un codice a ${phoneNumber}",continueButtonText:`Continua`,changePhoneText:`Scegli un altro numero di telefono.`,smsButtonText:`Messaggio di testo`,voiceButtonText:`Chiamata vocale`,chooseMessageTypeText:`Come vuoi ricevere il codice?`,pickAuthenticatorText:`Prova un altro metodo`,logoAltText:"${companyName}",codePlaceholder:`Inserisci il codice`,"send-sms-failed":`Si è verificato un problema nell'invio dell'SMS`,"send-voice-failed":`Si è verificato un problema nell'effettuare la chiamata vocale`,"invalid-phone-format":`Il numero di telefono può contenere solo cifre.`,"invalid-phone":`Sembra che il tuo numero di telefono non sia valido. Controlla e riprova.`,"too-many-sms":`Hai superato il numero massimo di messaggi telefonici all'ora. Attendi qualche minuto e riprova.`,"too-many-voice":`Hai superato il numero massimo di messaggi telefonici all'ora. Attendi qualche minuto e riprova.`,"transaction-not-found":`La tua transazione di registrazione è scaduta, dovrai ricominciare.`,"no-phone":`Inserisci un numero di telefono`,noCode:`Inserisci il codice di verifica`,invalidCode:`Il codice inserito non è valido. Riprova.`,unexpectedError:`Qualcosa è andato storto. Riprova.`,resendSuccess:`Abbiamo inviato un nuovo codice al tuo telefono`,enrollmentComplete:`La registrazione MFA è completata. Puoi chiudere questa pagina.`},"mfa-phone-enrollment":{pageTitle:"Inserisci il tuo numero di telefono per accedere con un codice telefonico | ${clientName}",title:`Proteggi il tuo account`,description:`Inserisci il prefisso del paese e il numero di telefono a cui possiamo inviare un codice a 6 cifre:`,continueButtonText:`Continua`,smsButtonText:`Messaggio di testo`,voiceButtonText:`Chiamata vocale`,chooseMessageTypeText:`Come vuoi ricevere il codice?`,pickAuthenticatorText:`Prova un altro metodo`,placeholder:`Inserisci il tuo numero di telefono`,logoAltText:"${companyName}",selectCountryCode:"Seleziona prefisso paese, attualmente impostato su ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Si è verificato un problema nell'invio dell'SMS`,"send-voice-failed":`Si è verificato un problema nell'effettuare la chiamata vocale`,"sms-authenticator-error":`Non siamo riusciti a inviare l'SMS. Riprova più tardi.`,"invalid-phone-format":`Il numero di telefono può contenere solo cifre.`,"invalid-phone":`Sembra che il tuo numero di telefono non sia valido. Controlla e riprova.`,"too-many-sms":`Hai superato il numero massimo di messaggi telefonici all'ora. Attendi qualche minuto e riprova.`,"too-many-voice":`Hai superato il numero massimo di messaggi telefonici all'ora. Attendi qualche minuto e riprova.`,"transaction-not-found":`La tua transazione di registrazione è scaduta, dovrai ricominciare.`,"no-phone":`Inserisci un numero di telefono`,"phone-is-too-short":`Il numero di telefono è troppo corto`,"phone-is-too-long":`Il numero di telefono è troppo lungo`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Scegli il metodo di verifica | ${clientName}",title:`Scegli il metodo di verifica`,description:`Seleziona come vuoi verificare la tua identità`,authenticatorAppLabel:`App di autenticazione`,authenticatorAppDescription:`Usa la tua app di autenticazione per ottenere un codice di verifica`,smsLabel:`Messaggio di testo`,smsDescription:`Ricevi un codice di verifica inviato al tuo telefono`,passkeyLabel:`Passkey`,passkeyDescription:`Usa la biometria del tuo dispositivo o una chiave di sicurezza`}},"mfa-push":{"mfa-push":{description:`Abbiamo inviato una notifica al tuo dispositivo`,pageTitle:"Notifica push | ${clientName}",resendText:`Reinvia notifica`,title:`Approva la richiesta`,useCodeText:`Inserisci il codice manualmente`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Continua`,codePlaceholder:`Codice di recupero`,description:`Inserisci uno dei tuoi codici di recupero`,"invalid-code":`Il codice di recupero inserito non è valido`,pageTitle:"Codice di recupero | ${clientName}",title:`Inserisci il codice di recupero`}},"mfa-voice":{"mfa-voice":{buttonText:`Chiamami`,codePlaceholder:`Inserisci il codice`,description:"Chiameremo ${phoneNumber} con il tuo codice","invalid-code":`Il codice inserito non è valido`,pageTitle:"Chiamata vocale | ${clientName}",title:`Ricevi una telefonata`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Riprova`,description:`Inserisci la tua chiave di sicurezza e segui le istruzioni`,pageTitle:"Chiave di sicurezza | ${clientName}",title:`Usa la tua chiave di sicurezza`}},passkeys:Bd,organizations:Vd,"reset-password":{"reset-password":{backToLoginText:`Torna al login`,buttonText:`Continua`,codeExpired:`Il codice di reimpostazione della password è scaduto. Richiedine uno nuovo.`,confirmPasswordLabel:`Conferma password`,confirmPasswordPlaceholder:`Conferma password`,description:`Inserisci la tua email per reimpostare la password`,emailPlaceholder:`Indirizzo e-mail`,failed:`Reimpostazione della password non riuscita. Riprova.`,"invalid-email-format":`Email non valida`,"no-email":`Inserisci un indirizzo email`,pageTitle:"Reimposta password | ${clientName}",passwordLabel:`Nuova password`,passwordPlaceholder:`Nuova password`,passwordTooWeak:`La password è troppo debole`,passwordsDidntMatch:`Le password non corrispondono`,successDescription:`Abbiamo inviato un link per reimpostare la password al tuo indirizzo email.`,successTitle:`Controlla la tua email`,title:`Hai dimenticato la password?`,"user-not-found":`Utente non trovato`},"reset-password-code":{backToLoginText:`Torna al login`,buttonText:`Reimposta password`,codeLabel:`Codice di reimpostazione`,codePlaceholder:`Inserisci il codice a 6 cifre`,confirmPasswordLabel:`Conferma password`,confirmPasswordPlaceholder:`Conferma password`,defaultDescription:`Inserisci il codice inviato alla tua email e scegli una nuova password`,description:"Abbiamo inviato un codice a ${email}",failed:`Reimpostazione della password non riuscita. Riprova.`,invalidCode:`Il codice inserito non è valido o è scaduto`,noCode:`Inserisci il codice di reimpostazione`,pageTitle:"Inserisci il codice di reimpostazione | ${clientName}",passwordLabel:`Nuova password`,passwordPlaceholder:`Nuova password`,passwordTooWeak:`La password è troppo debole`,passwordsDidntMatch:`Le password non corrispondono`,resendFailed:`Impossibile reinviare il codice. Riprova.`,resendSuccess:`Un nuovo codice è stato inviato alla tua email`,resendText:`Reinvia codice`,sessionExpired:`La sessione è scaduta. Riprova.`,title:`Inserisci il codice di reimpostazione`}},signup:Hd,"signup-id":{"signup-id":{buttonText:`Continua`,description:`Registrati per continuare`,"email-already-exists":`Questa email è già registrata`,emailPlaceholder:`Indirizzo e-mail`,federatedConnectionButtonText:"Continua con ${connectionName}","invalid-email-format":`Email non valida`,loginActionLinkText:`Accedi`,loginActionText:`Hai già un account?`,"no-email":`Inserisci un indirizzo email`,pageTitle:"Registrati | ${clientName}",phonePlaceholder:`Numero di telefono`,separatorText:`o`,title:`Crea il tuo account`,usernamePlaceholder:`Nome utente`}},"signup-password":{"signup-password":{buttonText:`Continua`,description:`Registrati per continuare`,hidePasswordText:`Nascondi password`,"no-password":`La password è obbligatoria`,pageTitle:"Registrati | ${clientName}","password-policy-not-met":`La password non soddisfa i requisiti`,"password-too-weak":`La password è troppo debole`,passwordPlaceholder:`Password`,showPasswordText:`Mostra password`,title:`Crea la tua password`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Continua`,codeLabel:`Codice di verifica`,codePlaceholder:`Inserisci il codice`,defaultDescription:`Inserisci il codice di verifica inviato al tuo telefono`,description:"Abbiamo inviato un codice a ${username}","invalid-code":`Codice non valido`,noCode:`Inserisci il codice di verifica`,pageTitle:"Inserisci il codice | ${clientName}",resendText:`Reinvia codice`,sessionExpired:`La sessione è scaduta. Riprova.`,title:`Controlla il tuo telefono`,unexpectedError:`Si è verificato un errore imprevisto`}},status:Ud},aie=c({common:()=>Wd,consent:()=>Gd,default:()=>oie,invitation:()=>Kd,login:()=>qd,mfa:()=>Jd,organizations:()=>Xd,passkeys:()=>Yd,signup:()=>Zd,status:()=>Qd}),Wd={common:{alertListTitle:`Varsler`,backText:`Gå tilbake`,cancelText:`Avbryt`,closeText:`Lukk`,contactSupportText:`Kontakt kundestøtte`,continueText:`Fortsett`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Det oppstod en feil`,hidePasswordText:`Skjul passord`,loadingText:`Laster...`,orText:`eller`,privacyPolicyText:`Personvernerklæring`,showPasswordText:`Vis passord`,termsOfServiceText:`Vilkår for bruk`,termsShortText:`Vilkår`,tryAgainText:`Prøv igjen`}},Gd={consent:{buttonText:`Godta`,cancelButtonText:`Avslå`,description:"${clientName} ber om tilgang til kontoen din",pageTitle:"Godkjenn | ${clientName}",scopesTitle:"Dette vil gi ${clientName} tillatelse til å:",title:"Godkjenn ${clientName}"}},Kd={invitation:{acceptButtonText:`Godta invitasjon`,description:"${inviterName} har invitert deg til å bli med i ${organizationName} på ${clientName}",pageTitle:"Invitasjon | ${clientName}",title:`Du har blitt invitert`}},qd={login:{alertListTitle:`Varsler`,buttonText:`Fortsett`,description:"Logg inn på ${clientName}.",editEmailText:`Rediger`,emailPlaceholder:`E-postadresse`,enterACodeBtn:`Logg inn med en kode`,federatedConnectionButtonText:"Fortsett med ${connectionName}",footerLinkText:`Registrer deg`,footerText:`Har du ikke en konto?`,forgotPasswordText:`Har du glemt passordet?`,hidePasswordText:`Skjul passord`,invalidEmail:`Ugyldig e-postadresse`,invalidIdentifier:`Ugyldig e-postadresse eller brukernavn`,invitationDescription:"Logg inn for å godta ${inviterName} sin invitasjon til å bli med i ${companyName} på ${clientName}.",invitationTitle:`Du har blitt invitert!`,logoAltText:"${companyName}","no-email":`Vennligst oppgi en e-postadresse`,"no-password":`Passord er påkrevd`,pageTitle:"Logg inn | ${clientName}",passwordLoginNotAvailable:`Passordautentisering er ikke tilgjengelig`,passwordPlaceholder:`Passord`,phonePlaceholder:`Telefonnummer`,separatorText:`eller`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,showPasswordText:`Vis passord`,signupActionLinkText:`Registrer deg`,signupActionText:`Har du ikke en konto?`,title:`Velkommen`,tooManyFailedLogins:`For mange mislykkede innloggingsforsøk. Vennligst prøv igjen senere.`,unverifiedEmail:`Vennligst bekreft e-postadressen din før du logger inn`,userAccountDoesNotExist:`Brukerkontoen finnes ikke`,usernamePlaceholder:`Brukernavn eller e-postadresse`,usernameTooLong:"Brukernavnet må være ${max} tegn eller færre",usernameTooShort:"Brukernavnet må være minst ${min} tegn",wrongCredentials:`Feil brukernavn eller passord`,passkeyButtonText:`Logg inn med passkey`}},Jd={mfa:{backupCodeText:`Bruk reservekode`,description:`Velg en bekreftelsesmetode`,pageTitle:"Flerfaktorautentisering | ${clientName}",title:`Bekreft identiteten din`}},Yd={"passkey-enrollment-nudge":{title:`Sikre kontoen din med en passnøkkel`,description:`Passnøkler bruker enhetens biometri eller PIN-kode for å logge deg inn raskere og sikrere.`,enrollButtonText:`Sett opp passnøkkel`,snoozeButtonText:`Kanskje senere`,optOutLinkText:`Ikke vis dette igjen`,pageTitle:"Sett Opp Passnøkkel | ${clientName}"},"passkey-enrollment":{title:`Opprett passnøkkelen din`,description:`Følg instruksjonene fra nettleseren for å opprette en passnøkkel for denne kontoen.`,errorMessage:`Kunne ikke opprette passnøkkel. Vennligst prøv igjen.`,cancelLinkText:`Hopp over for nå`,retryButtonText:`Prøv igjen`,enrollmentComplete:`Passnøkkelen din er konfigurert. Du kan lukke denne siden.`,pageTitle:"Opprett Passnøkkel | ${clientName}"},"passkey-challenge":{title:`Logg inn med passkey`,description:`Følg instruksjonene fra nettleseren for å bekrefte identiteten din.`,errorMessage:`Autentisering med passkey mislyktes. Vennligst prøv igjen.`,cancelLinkText:`Tilbake til innlogging`,retryButtonText:`Prøv igjen`,pageTitle:"Logg inn med passkey | ${clientName}"}},Xd={organizations:{description:`Velg hvilken organisasjon du vil logge inn på`,pageTitle:"Velg organisasjon | ${clientName}",searchPlaceholder:`Søk etter organisasjoner`,title:`Velg din organisasjon`}},Zd={signup:{buttonText:`Registrer deg`,confirmPasswordPlaceholder:`Bekreft passord`,description:`Registrer deg for å fortsette`,"email-already-exists":`E-postadressen er allerede registrert`,emailPlaceholder:`E-postadresse`,federatedConnectionButtonText:"Fortsett med ${connectionName}",hidePasswordText:`Skjul passord`,"invalid-email-format":`Ugyldig e-postadresse`,loginActionLinkText:`Logg inn`,loginActionText:`Har du allerede en konto?`,"no-email":`Vennligst oppgi en e-postadresse`,"no-password":`Passord er påkrevd`,"no-username":`Brukernavn er påkrevd`,pageTitle:"Registrer deg | ${clientName}",passwordPlaceholder:`Passord`,passwordsDidntMatch:`Passordene samsvarer ikke`,phonePlaceholder:`Telefonnummer`,privacyPolicyLinkText:`Personvernerklæring`,separatorText:`eller`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,showPasswordText:`Vis passord`,termsOfServiceLinkText:`Vilkår for bruk`,termsText:`Ved å registrere deg godtar du våre`,title:`Opprett kontoen din`,"username-already-exists":`Dette brukernavnet er allerede tatt`,usernamePlaceholder:`Brukernavn`,verifyEmailText:`Sjekk e-posten din for å bekrefte kontoen`}},Qd={status:{continueButtonText:`Fortsett`,errorTitle:`Feil`,pageTitle:"Status | ${clientName}",successTitle:`Vellykket`,title:`Status`}},oie={common:Wd,consent:Gd,"device-flow":{"device-flow":{buttonText:`Fortsett`,codePlaceholder:`Skriv inn kode`,description:`Skriv inn koden som vises på enheten din`,"expired-code":`Koden har utløpt`,"invalid-code":`Koden du skrev inn er ugyldig`,pageTitle:"Enhetsaktivering | ${clientName}",title:`Aktiver enheten din`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Fortsett`,codeLabel:`Bekreftelseskode`,codePlaceholder:`Skriv inn kode`,defaultDescription:`Skriv inn bekreftelseskoden som ble sendt til e-posten din`,description:"Vi sendte en kode til ${email}","invalid-code":`Ugyldig kode`,noCode:`Vennligst skriv inn bekreftelseskoden`,pageTitle:"Skriv inn kode | ${clientName}",resendText:`Send kode på nytt`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,title:`Sjekk e-posten din`,unexpectedError:`En uventet feil oppstod`}},"email-verification":{"email-verification":{description:"Vi sendte en e-post til ${email}",pageTitle:"Bekreft e-post | ${clientName}",resendText:`Send e-post på nytt`,successDescription:`E-postadressen din er bekreftet.`,successTitle:`E-post bekreftet`,title:`Bekreft e-posten din`}},invitation:Kd,login:qd,"login-id":{"login-id":{alertListTitle:`Varsler`,"auth0-users-validation":`Noe gikk galt, vennligst prøv igjen senere`,"authentication-failure":`Beklager, noe gikk galt under innloggingsforsøket`,buttonText:`Fortsett`,"captcha-client-failure":`Vi kunne ikke laste sikkerhetsutfordringen. Vennligst prøv igjen. (Feilkode: #{errorCode})`,"captcha-validation-failure":`Beklager, noe gikk galt under validering av captcha-svaret. Vennligst prøv igjen.`,captchaCodePlaceholder:`Skriv inn koden som vises ovenfor`,"custom-script-error-code":`Noe gikk galt, vennligst prøv igjen senere.`,description:"Logg inn på ${clientName}.",editEmailText:`Rediger`,emailPlaceholder:`E-postadresse`,federatedConnectionButtonText:"Fortsett med ${connectionName}",footerLinkText:`Registrer deg`,footerText:`Har du ikke en konto?`,forgotPasswordText:`Har du glemt passordet?`,hidePasswordText:`Skjul passord`,"invalid-captcha":`Løs utfordringen for å bekrefte at du ikke er en robot.`,"invalid-code":`Ugyldig kode`,"invalid-connection":`Ugyldig tilkobling`,"invalid-email-format":`Ugyldig e-postadresse`,"invalid-email-phone":`Skriv inn en gyldig e-postadresse eller telefonnummer. Telefonnumre må inkludere landskode.`,"invalid-email-phone-username":`Skriv inn en gyldig e-postadresse, telefonnummer eller brukernavn. Telefonnumre må inkludere landskode.`,"invalid-email-username":`Skriv inn en gyldig e-postadresse eller brukernavn`,"invalid-expired-code":`Ugyldig eller utløpt brukerkode`,"invalid-login-id":`Ugyldig innloggings-ID`,"invalid-phone-username":`Skriv inn et gyldig telefonnummer eller brukernavn. Telefonnumre må inkludere landskode.`,"invalid-recaptcha":`Kryss av i boksen for å bekrefte at du ikke er en robot.`,"invalid-username":"Brukernavnet kan bare inneholde alfanumeriske tegn eller: '${characters}'. Brukernavnet må ha mellom ${min} og ${max} tegn.",invitationDescription:"Logg inn for å godta ${inviterName} sin invitasjon til å bli med i ${companyName} på ${clientName}.",invitationTitle:`Du har blitt invitert!`,"ip-blocked":`Vi har oppdaget mistenkelig innloggingsaktivitet, og videre forsøk vil bli blokkert. Vennligst kontakt administratoren.`,logoAltText:"${companyName}","no-db-connection":`Ugyldig tilkobling`,"no-email":`Vennligst oppgi en e-postadresse`,"no-email-phone":`E-postadresse eller telefonnummer er påkrevd`,"no-email-phone-username":`Telefonnummer, brukernavn eller e-postadresse er påkrevd`,"no-email-username":`E-postadresse eller brukernavn er påkrevd`,"no-password":`Passord er påkrevd`,"no-phone":`Vennligst oppgi et telefonnummer`,"no-phone-username":`Telefonnummer eller brukernavn er påkrevd`,"no-username":`Brukernavn er påkrevd`,pageTitle:"Logg inn | ${clientName}","password-breached":`Vi har oppdaget et potensielt sikkerhetsproblem med denne kontoen. For å beskytte kontoen din har vi forhindret denne innloggingen. Vennligst tilbakestill passordet ditt for å fortsette.`,passwordPlaceholder:`Passord`,phoneOrEmailPlaceholder:`E-post eller telefonnummer`,phoneOrUsernameOrEmailPlaceholder:`Telefon, brukernavn eller e-post`,phoneOrUsernamePlaceholder:`Telefonnummer eller brukernavn`,phonePlaceholder:`Telefonnummer`,"same-user-login":`For mange innloggingsforsøk for denne brukeren. Vennligst vent og prøv igjen senere.`,selectCountryCode:"Velg landskode, for øyeblikket satt til ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`eller`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,showPasswordText:`Vis passord`,signupActionLinkText:`Registrer deg`,signupActionText:`Har du ikke en konto?`,termsAndConditionsTemplate:'Ved å fortsette godtar du våre <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">vilkår</a>.',title:`Velkommen`,"user-blocked":`Kontoen din har blitt blokkert etter flere påfølgende innloggingsforsøk.`,userAccountDoesNotExist:`Brukerkontoen finnes ikke`,usernameOnlyPlaceholder:`Brukernavn`,usernameOrEmailPlaceholder:`Brukernavn eller e-postadresse`,usernamePlaceholder:`Brukernavn eller e-postadresse`,usernameTooLong:"Brukernavnet må være ${max} tegn eller færre",usernameTooShort:"Brukernavnet må være minst ${min} tegn","wrong-credentials":`Feil brukernavn eller passord`,"wrong-email-credentials":`Feil e-postadresse eller passord`,"wrong-email-phone-credentials":`Feil e-postadresse, telefonnummer eller passord. Telefonnumre må inkludere landskode.`,"wrong-email-phone-username-credentials":`Feil e-postadresse, telefonnummer, brukernavn eller passord. Telefonnumre må inkludere landskode.`,"wrong-email-username-credentials":`Feil e-postadresse, brukernavn eller passord`,"wrong-phone-credentials":`Feil telefonnummer eller passord`,"wrong-phone-username-credentials":`Feil telefonnummer, brukernavn eller passord. Telefonnumre må inkludere landskode.`,"wrong-username-credentials":`Feil brukernavn eller passord`,passkeyButtonText:`Logg inn med passkey`}},"login-password":{"login-password":{buttonText:`Logg inn`,description:"Logg inn på ${clientName}",forgotPasswordText:`Har du glemt passordet?`,hidePasswordText:`Skjul passord`,"no-password":`Passord er påkrevd`,pageTitle:"Logg inn | ${clientName}","password-breached":`Vi har oppdaget et potensielt sikkerhetsproblem med denne kontoen. For å beskytte kontoen din har vi forhindret denne innloggingen. Vennligst tilbakestill passordet ditt for å fortsette.`,passwordPlaceholder:`Passord`,showPasswordText:`Vis passord`,signingInAs:"Logger inn som ${email}",title:`Oppgi passord`,unverifiedEmail:`Vennligst bekreft e-postadressen din før du logger inn`,"user-blocked":`Kontoen din har blitt blokkert etter flere påfølgende innloggingsforsøk.`,"wrong-credentials":`Feil passord`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-post`,authMethodEmailOrPhone:`e-post eller telefonnummer`,authMethodPhone:`telefonnummer`,description:"Logg inn med din ${authMethod}",emailOrPhonePlaceholder:`E-postadresse eller telefonnummer`,emailPlaceholder:`E-postadresse`,invalidEmail:`Vennligst oppgi en gyldig e-postadresse`,invalidIdentifier:`Vennligst oppgi en gyldig e-postadresse eller telefonnummer`,invalidPhone:`Vennligst oppgi et gyldig telefonnummer med landskode`,noEmail:`Vennligst oppgi e-postadressen din`,noPhone:`Vennligst oppgi telefonnummeret ditt`,phonePlaceholder:`Telefonnummer`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,title:`Logg inn med en kode`,userAccountDoesNotExist:`Brukerkontoen finnes ikke`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Klikk på lenken i e-posten for å logge inn`,description:"Vi sendte en lenke til ${username}. Klikk på den for å logge inn.",resendText:`Send lenke på nytt`,spamText:`Fikk du ikke e-posten? Sjekk søppelpostmappen.`,title:`Sjekk e-posten din`}},mfa:Jd,"mfa-email":{"mfa-email":{buttonText:`Fortsett`,codePlaceholder:`Skriv inn kode`,description:"Vi sendte en kode til ${email}","invalid-code":`Koden du skrev inn er ugyldig`,pageTitle:"E-postbekreftelse | ${clientName}",resendText:`Send kode på nytt`,title:`Sjekk e-posten din`}},"mfa-otp":{"mfa-otp":{buttonText:`Fortsett`,codePlaceholder:`Skriv inn kode`,description:`Skriv inn den 6-sifrede koden fra autentiseringsappen din`,"invalid-code":`Koden du skrev inn er ugyldig`,pageTitle:"Skriv inn kode | ${clientName}",title:`Skriv inn koden din`},"mfa-totp-enrollment":{title:`Sett opp autentisering`,description:`Skann QR-koden nedenfor med autentiseringsappen din, og skriv deretter inn den 6-sifrede koden for å verifisere`,secretLabel:`Eller skriv inn denne koden manuelt:`,codePlaceholder:`Skriv inn kode`,continueButtonText:`Bekreft og aktiver`,"invalid-code":`Koden du skrev inn er ugyldig. Vennligst prøv igjen.`,"transaction-not-found":`Registreringsøkten din har utløpt, du må starte på nytt.`,pageTitle:"Sett opp autentisering | ${clientName}",unexpectedError:`Noe gikk galt. Vennligst prøv igjen.`,enrollmentComplete:`MFA-registreringen er fullført. Du kan lukke denne siden.`},"mfa-totp-challenge":{title:`Bekreft identiteten din`,description:`Skriv inn den 6-sifrede koden fra autentiseringsappen din`,codePlaceholder:`Skriv inn kode`,continueButtonText:`Fortsett`,"invalid-code":`Koden du skrev inn er ugyldig`,"transaction-not-found":`Registreringsøkten din har utløpt, du må starte på nytt.`,unexpectedError:`Noe gikk galt. Vennligst prøv igjen.`,pageTitle:"Bekreft identitet | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Bruk telefonnummeret ditt for å logge inn | ${clientName}",title:`Bekreft identiteten din`,description:"Vi sendte en kode til ${phoneNumber}",continueButtonText:`Fortsett`,changePhoneText:`Velg et annet telefonnummer.`,smsButtonText:`Tekstmelding`,voiceButtonText:`Taleanrop`,chooseMessageTypeText:`Hvordan vil du motta koden?`,pickAuthenticatorText:`Prøv en annen metode`,logoAltText:"${companyName}",codePlaceholder:`Skriv inn kode`,"send-sms-failed":`Det oppstod et problem med å sende SMS-en`,"send-voice-failed":`Det oppstod et problem med å ringe taleanropet`,"invalid-phone-format":`Telefonnummeret kan bare inneholde sifre.`,"invalid-phone":`Det ser ut som telefonnummeret ditt ikke er gyldig. Sjekk og prøv igjen.`,"too-many-sms":`Du har overskredet maksimalt antall telefonmeldinger per time. Vent noen minutter og prøv igjen.`,"too-many-voice":`Du har overskredet maksimalt antall telefonmeldinger per time. Vent noen minutter og prøv igjen.`,"transaction-not-found":`Registreringstransaksjonen din har utløpt, du må starte på nytt.`,"no-phone":`Skriv inn et telefonnummer`,noCode:`Vennligst skriv inn bekreftelseskoden`,invalidCode:`Koden du skrev inn er ugyldig. Prøv igjen.`,unexpectedError:`Noe gikk galt. Prøv igjen.`,resendSuccess:`Vi sendte en ny kode til telefonen din`,enrollmentComplete:`MFA-registreringen er fullført. Du kan lukke denne siden.`},"mfa-phone-enrollment":{pageTitle:"Skriv inn telefonnummeret ditt for å logge inn med en telefonkode | ${clientName}",title:`Sikre kontoen din`,description:`Skriv inn landskoden og telefonnummeret vi kan sende en 6-sifret kode til:`,continueButtonText:`Fortsett`,smsButtonText:`Tekstmelding`,voiceButtonText:`Taleanrop`,chooseMessageTypeText:`Hvordan vil du motta koden?`,pickAuthenticatorText:`Prøv en annen metode`,placeholder:`Skriv inn telefonnummeret ditt`,logoAltText:"${companyName}",selectCountryCode:"Velg landskode, for øyeblikket satt til ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Det oppstod et problem med å sende SMS-en`,"send-voice-failed":`Det oppstod et problem med å ringe taleanropet`,"sms-authenticator-error":`Vi kunne ikke sende SMS-en. Prøv igjen senere.`,"invalid-phone-format":`Telefonnummeret kan bare inneholde sifre.`,"invalid-phone":`Det ser ut som telefonnummeret ditt ikke er gyldig. Sjekk og prøv igjen.`,"too-many-sms":`Du har overskredet maksimalt antall telefonmeldinger per time. Vent noen minutter og prøv igjen.`,"too-many-voice":`Du har overskredet maksimalt antall telefonmeldinger per time. Vent noen minutter og prøv igjen.`,"transaction-not-found":`Registreringstransaksjonen din har utløpt, du må starte på nytt.`,"no-phone":`Skriv inn et telefonnummer`,"phone-is-too-short":`Telefonnummeret er for kort`,"phone-is-too-long":`Telefonnummeret er for langt`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Velg bekreftelsesmetode | ${clientName}",title:`Velg bekreftelsesmetode`,description:`Velg hvordan du vil bekrefte identiteten din`,authenticatorAppLabel:`Autentiseringsapp`,authenticatorAppDescription:`Bruk autentiseringsappen din for å få en bekreftelseskode`,smsLabel:`Tekstmelding`,smsDescription:`Få en bekreftelseskode sendt til telefonen din`,passkeyLabel:`Passnøkkel`,passkeyDescription:`Bruk enhetens biometri eller sikkerhetsnøkkel`}},"mfa-push":{"mfa-push":{description:`Vi sendte en varsling til enheten din`,pageTitle:"Push-varsling | ${clientName}",resendText:`Send varsling på nytt`,title:`Godkjenn forespørselen`,useCodeText:`Skriv inn kode manuelt`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Fortsett`,codePlaceholder:`Gjenopprettingskode`,description:`Skriv inn en av gjenopprettingskodene dine`,"invalid-code":`Gjenopprettingskoden du skrev inn er ugyldig`,pageTitle:"Gjenopprettingskode | ${clientName}",title:`Skriv inn gjenopprettingskode`}},"mfa-voice":{"mfa-voice":{buttonText:`Ring meg`,codePlaceholder:`Skriv inn kode`,description:"Vi ringer ${phoneNumber} med koden din","invalid-code":`Koden du skrev inn er ugyldig`,pageTitle:"Taleanrop | ${clientName}",title:`Motta en telefonsamtale`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Prøv igjen`,description:`Sett inn sikkerhetsnøkkelen din og følg instruksjonene`,pageTitle:"Sikkerhetsnøkkel | ${clientName}",title:`Bruk sikkerhetsnøkkelen din`}},passkeys:Yd,organizations:Xd,"reset-password":{"reset-password":{backToLoginText:`Tilbake til innlogging`,buttonText:`Fortsett`,codeExpired:`Koden for tilbakestilling av passord har utløpt. Vennligst be om en ny.`,confirmPasswordLabel:`Bekreft passord`,confirmPasswordPlaceholder:`Bekreft passord`,description:`Oppgi e-postadressen din for å tilbakestille passordet`,emailPlaceholder:`E-postadresse`,failed:`Tilbakestilling av passord mislyktes. Vennligst prøv igjen.`,"invalid-email-format":`Ugyldig e-postadresse`,"no-email":`Vennligst oppgi en e-postadresse`,pageTitle:"Tilbakestill passord | ${clientName}",passwordLabel:`Nytt passord`,passwordPlaceholder:`Nytt passord`,passwordTooWeak:`Passordet er for svakt`,passwordsDidntMatch:`Passordene samsvarer ikke`,successDescription:`Vi har sendt en lenke for tilbakestilling av passord til e-postadressen din.`,successTitle:`Sjekk e-posten din`,title:`Har du glemt passordet?`,"user-not-found":`Brukeren ble ikke funnet`},"reset-password-code":{backToLoginText:`Tilbake til innlogging`,buttonText:`Tilbakestill passord`,codeLabel:`Tilbakestillingskode`,codePlaceholder:`Skriv inn 6-sifret kode`,confirmPasswordLabel:`Bekreft passord`,confirmPasswordPlaceholder:`Bekreft passord`,defaultDescription:`Skriv inn koden som ble sendt til e-posten din og velg et nytt passord`,description:"Vi sendte en kode til ${email}",failed:`Tilbakestilling av passord mislyktes. Vennligst prøv igjen.`,invalidCode:`Koden du skrev inn er ugyldig eller har utløpt`,noCode:`Vennligst skriv inn tilbakestillingskoden`,pageTitle:"Skriv inn tilbakestillingskode | ${clientName}",passwordLabel:`Nytt passord`,passwordPlaceholder:`Nytt passord`,passwordTooWeak:`Passordet er for svakt`,passwordsDidntMatch:`Passordene samsvarer ikke`,resendFailed:`Kunne ikke sende koden på nytt. Vennligst prøv igjen.`,resendSuccess:`En ny kode har blitt sendt til e-posten din`,resendText:`Send kode på nytt`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,title:`Skriv inn tilbakestillingskode`}},signup:Zd,"signup-id":{"signup-id":{buttonText:`Fortsett`,description:`Registrer deg for å fortsette`,"email-already-exists":`E-postadressen er allerede registrert`,emailPlaceholder:`E-postadresse`,federatedConnectionButtonText:"Fortsett med ${connectionName}","invalid-email-format":`Ugyldig e-postadresse`,loginActionLinkText:`Logg inn`,loginActionText:`Har du allerede en konto?`,"no-email":`Vennligst oppgi en e-postadresse`,pageTitle:"Registrer deg | ${clientName}",phonePlaceholder:`Telefonnummer`,separatorText:`eller`,title:`Opprett kontoen din`,usernamePlaceholder:`Brukernavn`}},"signup-password":{"signup-password":{buttonText:`Fortsett`,description:`Opprett et passord for å fortsette`,hidePasswordText:`Skjul passord`,"no-password":`Passord er påkrevd`,pageTitle:"Registrer deg | ${clientName}","password-policy-not-met":`Passordet oppfyller ikke kravene`,"password-too-weak":`Passordet er for svakt`,passwordPlaceholder:`Passord`,showPasswordText:`Vis passord`,title:`Opprett passordet ditt`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Fortsett`,codeLabel:`Bekreftelseskode`,codePlaceholder:`Skriv inn kode`,defaultDescription:`Skriv inn bekreftelseskoden som ble sendt til telefonen din`,description:"Vi sendte en kode til ${username}","invalid-code":`Ugyldig kode`,noCode:`Vennligst skriv inn bekreftelseskoden`,pageTitle:"Skriv inn kode | ${clientName}",resendText:`Send kode på nytt`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,title:`Sjekk telefonen din`,unexpectedError:`En uventet feil oppstod`}},status:Qd},sie=c({common:()=>$d,consent:()=>ef,default:()=>lf,invitation:()=>tf,login:()=>nf,mfa:()=>rf,organizations:()=>of,passkeys:()=>af,signup:()=>sf,status:()=>cf}),$d={common:{alertListTitle:`Powiadomienia`,backText:`Wróć`,cancelText:`Anuluj`,closeText:`Zamknij`,contactSupportText:`Potrzebujesz pomocy?`,continueText:`Kontynuuj`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Coś poszło nie tak. Spróbuj ponownie.`,hidePasswordText:`Ukryj hasło`,loadingText:`Ładowanie...`,orText:`lub`,privacyPolicyText:`Polityka prywatności`,showPasswordText:`Pokaż hasło`,termsOfServiceText:`Regulamin`,termsShortText:`Zasady`,tryAgainText:`Spróbuj ponownie`}},ef={consent:{buttonText:`Zaakceptuj`,cancelButtonText:`Odmów`,description:"${clientName} prosi o dostęp do Twojego konta",pageTitle:"Autoryzacja | ${clientName}",scopesTitle:"Umożliwi to ${clientName}:",title:"Autoryzuj ${clientName}"}},tf={invitation:{acceptButtonText:`Przyjmij zaproszenie`,description:"${inviterName} zaprosił Cię do dołączenia do ${organizationName} w ${clientName}",pageTitle:"Zaproszenie | ${clientName}",title:`Otrzymałeś zaproszenie`}},nf={login:{alertListTitle:`Powiadomienia`,buttonText:`Kontynuuj`,description:"Zaloguj się do ${clientName}.",editEmailText:`Edytuj`,emailPlaceholder:`Adres e-mail`,enterACodeBtn:`Zaloguj się kodem`,federatedConnectionButtonText:"Kontynuuj z ${connectionName}",footerLinkText:`Zarejestruj się`,footerText:`Nie masz konta?`,forgotPasswordText:`Zapomniałeś hasła?`,hidePasswordText:`Ukryj hasło`,invalidEmail:`Nieprawidłowy adres e-mail`,invalidIdentifier:`Nieprawidłowy adres e-mail lub nazwa użytkownika`,invitationDescription:"Zaloguj się, aby przyjąć zaproszenie od ${inviterName} do dołączenia do ${companyName} w ${clientName}.",invitationTitle:`Otrzymałeś zaproszenie!`,logoAltText:"${companyName}","no-email":`Wprowadź adres e-mail`,"no-password":`Hasło jest wymagane`,pageTitle:"Logowanie | ${clientName}",passwordLoginNotAvailable:`Logowanie hasłem jest niedostępne`,passwordPlaceholder:`Hasło`,phonePlaceholder:`Numer telefonu`,separatorText:`lub`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,showPasswordText:`Pokaż hasło`,signupActionLinkText:`Zarejestruj się`,signupActionText:`Nie masz konta?`,title:`Witamy`,tooManyFailedLogins:`Zbyt wiele nieudanych prób logowania. Spróbuj ponownie później.`,unverifiedEmail:`Zweryfikuj swój adres e-mail przed zalogowaniem`,userAccountDoesNotExist:`Konto użytkownika nie istnieje`,usernamePlaceholder:`Nazwa użytkownika lub adres e-mail`,usernameTooLong:"Nazwa użytkownika musi mieć maksymalnie ${max} znaków",usernameTooShort:"Nazwa użytkownika musi mieć co najmniej ${min} znaków",wrongCredentials:`Nieprawidłowa nazwa użytkownika lub hasło`,passkeyButtonText:`Zaloguj się za pomocą passkey`}},rf={mfa:{backupCodeText:`Użyj kodu zapasowego`,description:`Wybierz metodę weryfikacji`,pageTitle:"Uwierzytelnianie wieloskładnikowe | ${clientName}",title:`Zweryfikuj swoją tożsamość`}},af={"passkey-enrollment-nudge":{title:`Zabezpiecz swoje konto kluczem dostępu`,description:`Klucze dostępu wykorzystują biometrię lub PIN urządzenia, aby logować się szybciej i bezpieczniej.`,enrollButtonText:`Skonfiguruj klucz dostępu`,snoozeButtonText:`Może później`,optOutLinkText:`Nie pokazuj ponownie`,pageTitle:"Konfiguracja Klucza Dostępu | ${clientName}"},"passkey-enrollment":{title:`Utwórz klucz dostępu`,description:`Postępuj zgodnie z instrukcjami przeglądarki, aby utworzyć klucz dostępu dla tego konta.`,errorMessage:`Nie udało się utworzyć klucza dostępu. Spróbuj ponownie.`,cancelLinkText:`Pomiń na razie`,retryButtonText:`Spróbuj ponownie`,enrollmentComplete:`Twój klucz dostępu został pomyślnie skonfigurowany. Możesz zamknąć tę stronę.`,pageTitle:"Tworzenie Klucza Dostępu | ${clientName}"},"passkey-challenge":{title:`Zaloguj się za pomocą passkey`,description:`Postępuj zgodnie z instrukcjami przeglądarki, aby zweryfikować swoją tożsamość.`,errorMessage:`Uwierzytelnianie za pomocą passkey nie powiodło się. Spróbuj ponownie.`,cancelLinkText:`Powrót do logowania`,retryButtonText:`Spróbuj ponownie`,pageTitle:"Logowanie za pomocą passkey | ${clientName}"}},of={organizations:{description:`Wybierz organizację, do której chcesz się zalogować`,pageTitle:"Wybierz organizację | ${clientName}",searchPlaceholder:`Szukaj organizacji`,title:`Wybierz swoją organizację`}},sf={signup:{buttonText:`Zarejestruj się`,confirmPasswordPlaceholder:`Potwierdź hasło`,description:`Zarejestruj się, aby kontynuować`,"email-already-exists":`Ten adres e-mail jest już zarejestrowany`,emailPlaceholder:`Adres e-mail`,federatedConnectionButtonText:"Kontynuuj z ${connectionName}",hidePasswordText:`Ukryj hasło`,"invalid-email-format":`Nieprawidłowy adres e-mail`,loginActionLinkText:`Zaloguj się`,loginActionText:`Masz już konto?`,"no-email":`Wprowadź adres e-mail`,"no-password":`Hasło jest wymagane`,"no-username":`Nazwa użytkownika jest wymagana`,pageTitle:"Rejestracja | ${clientName}",passwordPlaceholder:`Hasło`,passwordsDidntMatch:`Hasła nie są zgodne`,phonePlaceholder:`Numer telefonu`,privacyPolicyLinkText:`Polityka prywatności`,separatorText:`lub`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,showPasswordText:`Pokaż hasło`,termsOfServiceLinkText:`Regulamin`,termsText:`Rejestrując się, akceptujesz nasz`,title:`Utwórz konto`,"username-already-exists":`Ta nazwa użytkownika jest już zajęta`,usernamePlaceholder:`Nazwa użytkownika`,verifyEmailText:`Sprawdź swoją pocztę, aby zweryfikować konto`}},cf={status:{continueButtonText:`Kontynuuj`,errorTitle:`Błąd`,pageTitle:"Status | ${clientName}",successTitle:`Sukces`,title:`Status`}},lf={common:$d,consent:ef,"device-flow":{"device-flow":{buttonText:`Kontynuuj`,codePlaceholder:`Wprowadź kod`,description:`Wprowadź kod wyświetlony na Twoim urządzeniu`,"expired-code":`Kod wygasł`,"invalid-code":`Wprowadzony kod jest nieprawidłowy`,pageTitle:"Aktywacja urządzenia | ${clientName}",title:`Aktywuj swoje urządzenie`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Kontynuuj`,codeLabel:`Kod weryfikacyjny`,codePlaceholder:`Wprowadź kod`,defaultDescription:`Wprowadź kod weryfikacyjny wysłany na Twój adres e-mail`,description:"Wysłaliśmy kod na ${email}","invalid-code":`Nieprawidłowy kod`,noCode:`Wprowadź kod weryfikacyjny`,pageTitle:"Wprowadź kod | ${clientName}",resendText:`Wyślij ponownie kod`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,title:`Sprawdź swoją pocztę`,unexpectedError:`Wystąpił nieoczekiwany błąd`}},"email-verification":{"email-verification":{description:"Wysłaliśmy wiadomość na ${email}",pageTitle:"Weryfikacja e-mail | ${clientName}",resendText:`Wyślij ponownie e-mail`,successDescription:`Twój adres e-mail został pomyślnie zweryfikowany.`,successTitle:`E-mail zweryfikowany`,title:`Zweryfikuj swój adres e-mail`}},invitation:tf,login:nf,"login-id":{"login-id":{alertListTitle:`Powiadomienia`,"auth0-users-validation":`Coś poszło nie tak, spróbuj ponownie później`,"authentication-failure":`Przepraszamy, wystąpił błąd podczas logowania`,buttonText:`Kontynuuj`,"captcha-client-failure":`Nie udało się załadować weryfikacji bezpieczeństwa. Spróbuj ponownie. (Kod błędu: #{errorCode})`,"captcha-validation-failure":`Przepraszamy, wystąpił błąd podczas weryfikacji captcha. Spróbuj ponownie.`,captchaCodePlaceholder:`Wprowadź kod widoczny powyżej`,"custom-script-error-code":`Coś poszło nie tak, spróbuj ponownie później.`,description:"Zaloguj się do ${clientName}.",editEmailText:`Edytuj`,emailPlaceholder:`Adres e-mail`,federatedConnectionButtonText:"Kontynuuj z ${connectionName}",footerLinkText:`Zarejestruj się`,footerText:`Nie masz konta?`,forgotPasswordText:`Zapomniałeś hasła?`,hidePasswordText:`Ukryj hasło`,"invalid-captcha":`Rozwiąż zadanie, aby potwierdzić, że nie jesteś robotem.`,"invalid-code":`Nieprawidłowy kod`,"invalid-connection":`Nieprawidłowe połączenie`,"invalid-email-format":`Nieprawidłowy adres e-mail`,"invalid-email-phone":`Wprowadź prawidłowy adres e-mail lub numer telefonu. Numery telefonów muszą zawierać kod kraju.`,"invalid-email-phone-username":`Wprowadź prawidłowy adres e-mail, numer telefonu lub nazwę użytkownika. Numery telefonów muszą zawierać kod kraju.`,"invalid-email-username":`Wprowadź prawidłowy adres e-mail lub nazwę użytkownika`,"invalid-expired-code":`Nieprawidłowy lub wygasły kod użytkownika`,"invalid-login-id":`Wprowadzono nieprawidłowy identyfikator logowania`,"invalid-phone-username":`Wprowadź prawidłowy numer telefonu lub nazwę użytkownika. Numery telefonów muszą zawierać kod kraju.`,"invalid-recaptcha":`Zaznacz pole wyboru, aby potwierdzić, że nie jesteś robotem.`,"invalid-username":"Nazwa użytkownika może zawierać tylko znaki alfanumeryczne lub: '${characters}'. Nazwa użytkownika powinna mieć od ${min} do ${max} znaków.",invitationDescription:"Zaloguj się, aby przyjąć zaproszenie od ${inviterName} do dołączenia do ${companyName} w ${clientName}.",invitationTitle:`Otrzymałeś zaproszenie!`,"ip-blocked":`Wykryliśmy podejrzaną aktywność logowania i dalsze próby zostaną zablokowane. Skontaktuj się z administratorem.`,logoAltText:"${companyName}","no-db-connection":`Nieprawidłowe połączenie`,"no-email":`Wprowadź adres e-mail`,"no-email-phone":`Adres e-mail lub numer telefonu jest wymagany`,"no-email-phone-username":`Numer telefonu, nazwa użytkownika lub adres e-mail jest wymagany`,"no-email-username":`Adres e-mail lub nazwa użytkownika jest wymagany`,"no-password":`Hasło jest wymagane`,"no-phone":`Wprowadź numer telefonu`,"no-phone-username":`Numer telefonu lub nazwa użytkownika jest wymagany`,"no-username":`Nazwa użytkownika jest wymagana`,pageTitle:"Logowanie | ${clientName}","password-breached":`Wykryliśmy potencjalny problem z bezpieczeństwem tego konta. Aby chronić Twoje konto, zablokowano to logowanie. Zresetuj hasło, aby kontynuować.`,passwordPlaceholder:`Hasło`,phoneOrEmailPlaceholder:`E-mail lub numer telefonu`,phoneOrUsernameOrEmailPlaceholder:`Telefon, nazwa użytkownika lub e-mail`,phoneOrUsernamePlaceholder:`Numer telefonu lub nazwa użytkownika`,phonePlaceholder:`Numer telefonu`,"same-user-login":`Zbyt wiele prób logowania dla tego użytkownika. Poczekaj chwilę i spróbuj ponownie.`,selectCountryCode:"Wybierz kod kraju, aktualnie ustawiony na ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`lub`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,showPasswordText:`Pokaż hasło`,signupActionLinkText:`Zarejestruj się`,signupActionText:`Nie masz konta?`,termsAndConditionsTemplate:'Kontynuując, akceptujesz nasze <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Zasady i warunki</a>.',title:`Witamy`,"user-blocked":`Twoje konto zostało zablokowane po wielu kolejnych nieudanych próbach logowania.`,userAccountDoesNotExist:`Konto użytkownika nie istnieje`,usernameOnlyPlaceholder:`Nazwa użytkownika`,usernameOrEmailPlaceholder:`Nazwa użytkownika lub adres e-mail`,usernamePlaceholder:`Nazwa użytkownika`,usernameTooLong:"Nazwa użytkownika musi mieć maksymalnie ${max} znaków",usernameTooShort:"Nazwa użytkownika musi mieć co najmniej ${min} znaków","wrong-credentials":`Nieprawidłowa nazwa użytkownika lub hasło`,"wrong-email-credentials":`Nieprawidłowy adres e-mail lub hasło`,"wrong-email-phone-credentials":`Nieprawidłowy adres e-mail, numer telefonu lub hasło. Numery telefonów muszą zawierać kod kraju.`,"wrong-email-phone-username-credentials":`Nieprawidłowy adres e-mail, numer telefonu, nazwa użytkownika lub hasło. Numery telefonów muszą zawierać kod kraju.`,"wrong-email-username-credentials":`Nieprawidłowy adres e-mail, nazwa użytkownika lub hasło`,"wrong-phone-credentials":`Nieprawidłowy numer telefonu lub hasło`,"wrong-phone-username-credentials":`Nieprawidłowy numer telefonu, nazwa użytkownika lub hasło. Numery telefonów muszą zawierać kod kraju.`,"wrong-username-credentials":`Nieprawidłowa nazwa użytkownika lub hasło`,passkeyButtonText:`Zaloguj się za pomocą passkey`}},"login-password":{"login-password":{buttonText:`Zaloguj się`,description:"Zaloguj się do ${clientName}",forgotPasswordText:`Zapomniałeś hasła?`,hidePasswordText:`Ukryj hasło`,"no-password":`Hasło jest wymagane`,pageTitle:"Logowanie | ${clientName}","password-breached":`Wykryliśmy potencjalny problem z bezpieczeństwem tego konta. Aby chronić Twoje konto, zablokowano to logowanie. Zresetuj hasło, aby kontynuować.`,passwordPlaceholder:`Hasło`,showPasswordText:`Pokaż hasło`,signingInAs:"Logujesz się jako ${email}",title:`Wprowadź hasło`,unverifiedEmail:`Zweryfikuj swój adres e-mail przed zalogowaniem`,"user-blocked":`Twoje konto zostało zablokowane po wielu kolejnych nieudanych próbach logowania.`,"wrong-credentials":`Nieprawidłowe hasło`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-mail`,authMethodEmailOrPhone:`e-mail lub numer telefonu`,authMethodPhone:`numer telefonu`,description:"Zaloguj się za pomocą swojego ${authMethod}",emailOrPhonePlaceholder:`Adres e-mail lub numer telefonu`,emailPlaceholder:`Adres e-mail`,invalidEmail:`Wprowadź prawidłowy adres e-mail`,invalidIdentifier:`Wprowadź prawidłowy adres e-mail lub numer telefonu`,invalidPhone:`Wprowadź prawidłowy numer telefonu z kodem kraju`,noEmail:`Wprowadź swój adres e-mail`,noPhone:`Wprowadź swój numer telefonu`,phonePlaceholder:`Numer telefonu`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,title:`Zaloguj się kodem`,userAccountDoesNotExist:`Konto użytkownika nie istnieje`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Kliknij link w wiadomości e-mail, aby się zalogować`,description:"Wysłaliśmy link na ${username}. Kliknij go, aby się zalogować.",resendText:`Wyślij ponownie link`,spamText:`Nie otrzymałeś wiadomości? Sprawdź folder spam.`,title:`Sprawdź swoją pocztę`}},mfa:rf,"mfa-email":{"mfa-email":{buttonText:`Kontynuuj`,codePlaceholder:`Wprowadź kod`,description:"Wysłaliśmy kod na ${email}","invalid-code":`Wprowadzony kod jest nieprawidłowy`,pageTitle:"Weryfikacja e-mail | ${clientName}",resendText:`Wyślij ponownie kod`,title:`Sprawdź swoją pocztę`}},"mfa-otp":{"mfa-otp":{buttonText:`Kontynuuj`,codePlaceholder:`Wprowadź kod`,description:`Wprowadź 6-cyfrowy kod z aplikacji uwierzytelniającej`,"invalid-code":`Wprowadzony kod jest nieprawidłowy`,pageTitle:"Wprowadź kod | ${clientName}",title:`Wprowadź swój kod`},"mfa-totp-enrollment":{title:`Skonfiguruj aplikację uwierzytelniającą`,description:`Zeskanuj poniższy kod QR za pomocą aplikacji uwierzytelniającej, a następnie wprowadź 6-cyfrowy kod w celu weryfikacji`,secretLabel:`Lub wprowadź ten kod ręcznie:`,codePlaceholder:`Wprowadź kod`,continueButtonText:`Zweryfikuj i aktywuj`,"invalid-code":`Wprowadzony kod jest nieprawidłowy. Spróbuj ponownie.`,"transaction-not-found":`Twoja transakcja rejestracji wygasła, musisz zacząć od nowa.`,pageTitle:"Konfiguracja uwierzytelniania | ${clientName}",unexpectedError:`Coś poszło nie tak. Spróbuj ponownie.`,enrollmentComplete:`Rejestracja MFA została zakończona. Możesz zamknąć tę stronę.`},"mfa-totp-challenge":{title:`Zweryfikuj swoją tożsamość`,description:`Wprowadź 6-cyfrowy kod z aplikacji uwierzytelniającej`,codePlaceholder:`Wprowadź kod`,continueButtonText:`Kontynuuj`,"invalid-code":`Wprowadzony kod jest nieprawidłowy`,"transaction-not-found":`Twoja transakcja rejestracji wygasła, musisz zacząć od nowa.`,unexpectedError:`Coś poszło nie tak. Spróbuj ponownie.`,pageTitle:"Weryfikacja tożsamości | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Użyj swojego numeru telefonu, aby się zalogować | ${clientName}",title:`Zweryfikuj swoją tożsamość`,description:"Wysłaliśmy kod na ${phoneNumber}",continueButtonText:`Kontynuuj`,changePhoneText:`Wybierz inny numer telefonu.`,smsButtonText:`Wiadomość tekstowa`,voiceButtonText:`Połączenie głosowe`,chooseMessageTypeText:`Jak chcesz otrzymać kod?`,pickAuthenticatorText:`Wypróbuj inną metodę`,logoAltText:"${companyName}",codePlaceholder:`Wpisz kod`,"send-sms-failed":`Wystąpił problem z wysłaniem SMS-a`,"send-voice-failed":`Wystąpił problem z wykonaniem połączenia głosowego`,"invalid-phone-format":`Numer telefonu może zawierać tylko cyfry.`,"invalid-phone":`Wygląda na to, że Twój numer telefonu jest nieprawidłowy. Sprawdź i spróbuj ponownie.`,"too-many-sms":`Przekroczono maksymalną liczbę wiadomości telefonicznych na godzinę. Poczekaj kilka minut i spróbuj ponownie.`,"too-many-voice":`Przekroczono maksymalną liczbę połączeń telefonicznych na godzinę. Poczekaj kilka minut i spróbuj ponownie.`,"transaction-not-found":`Twoja transakcja rejestracji wygasła, musisz zacząć od nowa.`,"no-phone":`Wpisz numer telefonu`,noCode:`Wprowadź kod weryfikacyjny`,invalidCode:`Wprowadzony kod jest nieprawidłowy. Spróbuj ponownie.`,unexpectedError:`Coś poszło nie tak. Spróbuj ponownie.`,resendSuccess:`Wysłaliśmy nowy kod na Twój telefon`,enrollmentComplete:`Rejestracja MFA została zakończona. Możesz zamknąć tę stronę.`},"mfa-phone-enrollment":{pageTitle:"Wpisz swój numer telefonu, aby zalogować się kodem telefonicznym | ${clientName}",title:`Zabezpiecz swoje konto`,description:`Wpisz kod kraju i numer telefonu, na który możemy wysłać 6-cyfrowy kod:`,continueButtonText:`Kontynuuj`,smsButtonText:`Wiadomość tekstowa`,voiceButtonText:`Połączenie głosowe`,chooseMessageTypeText:`Jak chcesz otrzymać kod?`,pickAuthenticatorText:`Wypróbuj inną metodę`,placeholder:`Wpisz swój numer telefonu`,logoAltText:"${companyName}",selectCountryCode:"Wybierz kod kraju, aktualnie ustawiony na ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Wystąpił problem z wysłaniem SMS-a`,"send-voice-failed":`Wystąpił problem z wykonaniem połączenia głosowego`,"sms-authenticator-error":`Nie udało się wysłać SMS-a. Spróbuj ponownie później.`,"invalid-phone-format":`Numer telefonu może zawierać tylko cyfry.`,"invalid-phone":`Wygląda na to, że Twój numer telefonu jest nieprawidłowy. Sprawdź i spróbuj ponownie.`,"too-many-sms":`Przekroczono maksymalną liczbę wiadomości telefonicznych na godzinę. Poczekaj kilka minut i spróbuj ponownie.`,"too-many-voice":`Przekroczono maksymalną liczbę połączeń telefonicznych na godzinę. Poczekaj kilka minut i spróbuj ponownie.`,"transaction-not-found":`Twoja transakcja rejestracji wygasła, musisz zacząć od nowa.`,"no-phone":`Wpisz numer telefonu`,"phone-is-too-short":`Numer telefonu jest za krótki`,"phone-is-too-long":`Numer telefonu jest za długi`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Wybierz metodę weryfikacji | ${clientName}",title:`Wybierz metodę weryfikacji`,description:`Wybierz, w jaki sposób chcesz zweryfikować swoją tożsamość`,authenticatorAppLabel:`Aplikacja uwierzytelniająca`,authenticatorAppDescription:`Użyj aplikacji uwierzytelniającej, aby uzyskać kod weryfikacyjny`,smsLabel:`Wiadomość tekstowa`,smsDescription:`Otrzymaj kod weryfikacyjny wysłany na swój telefon`,passkeyLabel:`Klucz dostępu`,passkeyDescription:`Użyj biometrii urządzenia lub klucza bezpieczeństwa`}},"mfa-push":{"mfa-push":{description:`Wysłaliśmy powiadomienie na Twoje urządzenie`,pageTitle:"Powiadomienie push | ${clientName}",resendText:`Wyślij ponownie powiadomienie`,title:`Zatwierdź żądanie`,useCodeText:`Wprowadź kod ręcznie`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Kontynuuj`,codePlaceholder:`Kod odzyskiwania`,description:`Wprowadź jeden z kodów odzyskiwania`,"invalid-code":`Wprowadzony kod odzyskiwania jest nieprawidłowy`,pageTitle:"Kod odzyskiwania | ${clientName}",title:`Wprowadź kod odzyskiwania`}},"mfa-voice":{"mfa-voice":{buttonText:`Zadzwoń do mnie`,codePlaceholder:`Wprowadź kod`,description:"Zadzwonimy na ${phoneNumber} z Twoim kodem","invalid-code":`Wprowadzony kod jest nieprawidłowy`,pageTitle:"Połączenie głosowe | ${clientName}",title:`Odbierz połączenie telefoniczne`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Spróbuj ponownie`,description:`Włóż klucz bezpieczeństwa i postępuj zgodnie z instrukcjami`,pageTitle:"Klucz bezpieczeństwa | ${clientName}",title:`Użyj klucza bezpieczeństwa`}},passkeys:af,organizations:of,"reset-password":{"reset-password":{backToLoginText:`Wróć do logowania`,buttonText:`Kontynuuj`,codeExpired:`Kod resetu hasła wygasł. Poproś o nowy.`,confirmPasswordLabel:`Potwierdź hasło`,confirmPasswordPlaceholder:`Potwierdź hasło`,description:`Wprowadź swój adres e-mail, aby zresetować hasło`,emailPlaceholder:`Adres e-mail`,failed:`Reset hasła nie powiódł się. Spróbuj ponownie.`,"invalid-email-format":`Nieprawidłowy adres e-mail`,"no-email":`Wprowadź adres e-mail`,pageTitle:"Resetowanie hasła | ${clientName}",passwordLabel:`Nowe hasło`,passwordPlaceholder:`Nowe hasło`,passwordTooWeak:`Hasło jest zbyt słabe`,passwordsDidntMatch:`Hasła nie są zgodne`,successDescription:`Wysłaliśmy link do resetowania hasła na Twój adres e-mail.`,successTitle:`Sprawdź swoją pocztę`,title:`Zapomniałeś hasła?`,"user-not-found":`Nie znaleziono użytkownika`},"reset-password-code":{backToLoginText:`Wróć do logowania`,buttonText:`Zresetuj hasło`,codeLabel:`Kod resetowania`,codePlaceholder:`Wprowadź 6-cyfrowy kod`,confirmPasswordLabel:`Potwierdź hasło`,confirmPasswordPlaceholder:`Potwierdź hasło`,defaultDescription:`Wprowadź kod wysłany na Twój e-mail i wybierz nowe hasło`,description:"Wysłaliśmy kod na ${email}",failed:`Reset hasła nie powiódł się. Spróbuj ponownie.`,invalidCode:`Wprowadzony kod jest nieprawidłowy lub wygasł`,noCode:`Wprowadź kod resetowania`,pageTitle:"Wprowadź kod resetowania | ${clientName}",passwordLabel:`Nowe hasło`,passwordPlaceholder:`Nowe hasło`,passwordTooWeak:`Hasło jest zbyt słabe`,passwordsDidntMatch:`Hasła nie są zgodne`,resendFailed:`Nie udało się ponownie wysłać kodu. Spróbuj ponownie.`,resendSuccess:`Nowy kod został wysłany na Twój e-mail`,resendText:`Wyślij kod ponownie`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,title:`Wprowadź kod resetowania`}},signup:sf,"signup-id":{"signup-id":{buttonText:`Kontynuuj`,description:`Zarejestruj się, aby kontynuować`,"email-already-exists":`Ten adres e-mail jest już zarejestrowany`,emailPlaceholder:`Adres e-mail`,federatedConnectionButtonText:"Kontynuuj z ${connectionName}","invalid-email-format":`Nieprawidłowy adres e-mail`,loginActionLinkText:`Zaloguj się`,loginActionText:`Masz już konto?`,"no-email":`Wprowadź adres e-mail`,pageTitle:"Rejestracja | ${clientName}",phonePlaceholder:`Numer telefonu`,separatorText:`lub`,title:`Utwórz konto`,usernamePlaceholder:`Nazwa użytkownika`}},"signup-password":{"signup-password":{buttonText:`Kontynuuj`,description:`Utwórz swoje hasło`,hidePasswordText:`Ukryj hasło`,"no-password":`Hasło jest wymagane`,pageTitle:"Rejestracja | ${clientName}","password-policy-not-met":`Hasło nie spełnia wymagań`,"password-too-weak":`Hasło jest zbyt słabe`,passwordPlaceholder:`Hasło`,showPasswordText:`Pokaż hasło`,title:`Utwórz hasło`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Kontynuuj`,codeLabel:`Kod weryfikacyjny`,codePlaceholder:`Wprowadź kod`,defaultDescription:`Wprowadź kod weryfikacyjny wysłany na Twój telefon`,description:"Wysłaliśmy kod na ${username}","invalid-code":`Nieprawidłowy kod`,noCode:`Wprowadź kod weryfikacyjny`,pageTitle:"Wprowadź kod | ${clientName}",resendText:`Wyślij ponownie kod`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,title:`Sprawdź swój telefon`,unexpectedError:`Wystąpił nieoczekiwany błąd`}},status:cf},uf=c({common:()=>df,consent:()=>ff,default:()=>bf,invitation:()=>pf,login:()=>mf,mfa:()=>hf,organizations:()=>_f,passkeys:()=>gf,signup:()=>vf,status:()=>yf}),df={common:{alertListTitle:`Meddelanden`,backText:`Gå tillbaka`,cancelText:`Gå tillbaka`,closeText:`Stäng`,contactSupportText:`Behöver du hjälp?`,continueText:`Fortsätt`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Något gick fel. Vänligen försök igen.`,hidePasswordText:`Dölj lösenord`,loadingText:`Laddar...`,orText:`eller`,privacyPolicyText:`Integritetspolicy`,showPasswordText:`Visa lösenord`,termsOfServiceText:`Användarvillkor`,termsShortText:`Villkor`,tryAgainText:`Försök igen`}},ff={consent:{buttonText:`Godkänn`,cancelButtonText:`Neka`,description:"${clientName} begär åtkomst till ditt konto",pageTitle:"Auktorisera | ${clientName}",scopesTitle:"Detta ger ${clientName} tillåtelse att:",title:"Auktorisera ${clientName}"}},pf={invitation:{acceptButtonText:`Acceptera inbjudan`,description:"${inviterName} har bjudit in dig att gå med i ${organizationName} på ${clientName}",pageTitle:"Inbjudan | ${clientName}",title:`Du har blivit inbjuden`}},mf={login:{alertListTitle:`Meddelanden`,buttonText:`Fortsätt`,description:"Logga in på ${clientName}.",editEmailText:`Redigera`,emailPlaceholder:`E-postadress`,enterACodeBtn:`Logga in med en kod`,federatedConnectionButtonText:"Fortsätt med ${connectionName}",footerLinkText:`Registrera dig`,footerText:`Har du inget konto?`,forgotPasswordText:`Har du glömt lösenordet?`,hidePasswordText:`Dölj lösenord`,invalidEmail:`Ogiltig e-postadress`,invalidIdentifier:`Ogiltig e-postadress eller användarnamn`,invitationDescription:"Logga in för att acceptera ${inviterName}s inbjudan att gå med i ${companyName} på ${clientName}.",invitationTitle:`Du har blivit inbjuden!`,logoAltText:"${companyName}","no-email":`Vänligen ange en e-postadress`,"no-password":`Lösenord krävs`,pageTitle:"Logga in | ${clientName}",passwordLoginNotAvailable:`Lösenordsinloggning är inte tillgänglig`,passwordPlaceholder:`Lösenord`,phonePlaceholder:`Telefonnummer`,separatorText:`eller`,sessionExpired:`Din session har gått ut. Försök igen.`,showPasswordText:`Visa lösenord`,signupActionLinkText:`Registrera dig`,signupActionText:`Har du inget konto?`,title:`Välkommen`,tooManyFailedLogins:`För många misslyckade inloggningsförsök. Försök igen senare.`,unverifiedEmail:`Verifiera din e-postadress innan du loggar in`,userAccountDoesNotExist:`Användarkontot finns inte`,usernamePlaceholder:`Användarnamn eller e-postadress`,usernameTooLong:"Användarnamnet får vara högst ${max} tecken",usernameTooShort:"Användarnamnet måste vara minst ${min} tecken",wrongCredentials:`Fel användarnamn eller lösenord`,passkeyButtonText:`Logga in med passkey`}},hf={mfa:{backupCodeText:`Använd reservkod`,description:`Välj en verifieringsmetod`,pageTitle:"Multifaktorautentisering | ${clientName}",title:`Verifiera din identitet`}},gf={"passkey-enrollment-nudge":{title:`Skydda ditt konto med en nyckel`,description:`Nycklar använder enhetens biometri eller PIN-kod för att logga in snabbare och säkrare.`,enrollButtonText:`Konfigurera nyckel`,snoozeButtonText:`Kanske senare`,optOutLinkText:`Visa inte detta igen`,pageTitle:"Konfigurera Nyckel | ${clientName}"},"passkey-enrollment":{title:`Skapa din nyckel`,description:`Följ anvisningarna från din webbläsare för att skapa en nyckel för detta konto.`,errorMessage:`Det gick inte att skapa nyckeln. Försök igen.`,cancelLinkText:`Hoppa över för nu`,retryButtonText:`Försök igen`,enrollmentComplete:`Din nyckel har konfigurerats. Du kan stänga denna sida.`,pageTitle:"Skapa Nyckel | ${clientName}"},"passkey-challenge":{title:`Logga in med passkey`,description:`Följ instruktionerna från din webbläsare för att verifiera din identitet.`,errorMessage:`Autentisering med passkey misslyckades. Försök igen.`,cancelLinkText:`Tillbaka till inloggning`,retryButtonText:`Försök igen`,pageTitle:"Logga in med passkey | ${clientName}"}},_f={organizations:{description:`Välj vilken organisation du vill logga in på`,pageTitle:"Välj organisation | ${clientName}",searchPlaceholder:`Sök organisationer`,title:`Välj din organisation`}},vf={signup:{buttonText:`Registrera dig`,confirmPasswordPlaceholder:`Bekräfta lösenord`,description:`Välj ett lösenord med en blandning av stora och små bokstäver, siffror och symboler.`,"email-already-exists":`E-postadressen är redan upptagen`,emailPlaceholder:`E-postadress`,federatedConnectionButtonText:"Fortsätt med ${connectionName}",hidePasswordText:`Dölj lösenord`,"invalid-email-format":`Ogiltig e-postadress`,loginActionLinkText:`Logga in`,loginActionText:`Har du redan ett konto?`,"no-email":`Vänligen ange en e-postadress`,"no-password":`Lösenord krävs`,"no-username":`Användarnamn krävs`,pageTitle:"Registrera dig | ${clientName}",passwordPlaceholder:`Lösenord`,passwordsDidntMatch:`Lösenorden matchar inte`,phonePlaceholder:`Telefonnummer`,privacyPolicyLinkText:`Integritetspolicy`,separatorText:`eller`,sessionExpired:`Din session har gått ut. Försök igen.`,showPasswordText:`Visa lösenord`,termsOfServiceLinkText:`Användarvillkor`,termsText:`Genom att registrera dig godkänner du våra`,title:`Välj lösenord`,"username-already-exists":`Användarnamnet är redan taget`,usernamePlaceholder:`Användarnamn`,verifyEmailText:`Kontrollera din e-post för att verifiera ditt konto`}},yf={status:{continueButtonText:`Fortsätt`,errorTitle:`Fel`,pageTitle:"Status | ${clientName}",successTitle:`Klart`,title:`Status`}},bf={common:df,consent:ff,"device-flow":{"device-flow":{buttonText:`Fortsätt`,codePlaceholder:`Ange kod`,description:`Ange koden som visas på din enhet`,"expired-code":`Koden har gått ut`,"invalid-code":`Koden du angav är ogiltig`,pageTitle:"Enhetsaktivering | ${clientName}",title:`Aktivera din enhet`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Logga in`,codeLabel:`Verifieringskod`,codePlaceholder:`Ange kod`,defaultDescription:`Ange verifieringskoden som skickades till din e-post`,description:"Vi skickade en kod till ${email}","invalid-code":`Ogiltig kod`,noCode:`Ange verifieringskoden`,pageTitle:"Ange kod | ${clientName}",resendText:`Skicka koden igen`,sessionExpired:`Din session har gått ut. Försök igen.`,title:`Kolla din e-post`,unexpectedError:`Ett oväntat fel uppstod`}},"email-verification":{"email-verification":{description:"Vi skickade ett e-postmeddelande till ${email}",pageTitle:"Verifiera e-post | ${clientName}",resendText:`Skicka koden igen`,successDescription:`Din e-postadress har verifierats.`,successTitle:`E-post verifierad`,title:`Ange engångskod`}},invitation:pf,login:mf,"login-id":{"login-id":{alertListTitle:`Meddelanden`,"auth0-users-validation":`Något gick fel, försök igen senare`,"authentication-failure":`Vi beklagar, något gick fel vid inloggningsförsöket`,buttonText:`Fortsätt`,"captcha-client-failure":`Vi kunde inte ladda säkerhetsutmaningen. Försök igen. (Felkod: #{errorCode})`,"captcha-validation-failure":`Vi beklagar, något gick fel vid validering av captcha-svaret. Försök igen.`,captchaCodePlaceholder:`Ange koden som visas ovan`,"custom-script-error-code":`Något gick fel, försök igen senare.`,description:"Logga in på ${clientName}.",editEmailText:`Redigera`,emailPlaceholder:`E-postadress`,federatedConnectionButtonText:"Fortsätt med ${connectionName}",footerLinkText:`Registrera dig`,footerText:`Har du inget konto?`,forgotPasswordText:`Har du glömt lösenordet?`,hidePasswordText:`Dölj lösenord`,"invalid-captcha":`Lös utmaningen för att verifiera att du inte är en robot.`,"invalid-code":`Ogiltig kod`,"invalid-connection":`Ogiltig anslutning`,"invalid-email-format":`Ogiltig e-postadress`,"invalid-email-phone":`Ange en giltig e-postadress eller telefonnummer. Telefonnummer måste innehålla landskod.`,"invalid-email-phone-username":`Ange en giltig e-postadress, telefonnummer eller användarnamn. Telefonnummer måste innehålla landskod.`,"invalid-email-username":`Ange en giltig e-postadress eller användarnamn`,"invalid-expired-code":`Ogiltig eller utgången användarkod`,"invalid-login-id":`Ogiltigt inloggnings-ID angivet`,"invalid-phone-username":`Ange ett giltigt telefonnummer eller användarnamn. Telefonnummer måste innehålla landskod.`,"invalid-recaptcha":`Markera kryssrutan för att verifiera att du inte är en robot.`,"invalid-username":"Användarnamn kan bara innehålla alfanumeriska tecken eller: '${characters}'. Användarnamn ska vara mellan ${min} och ${max} tecken.",invitationDescription:"Logga in för att acceptera ${inviterName}s inbjudan att gå med i ${companyName} på ${clientName}.",invitationTitle:`Du har blivit inbjuden!`,"ip-blocked":`Vi har upptäckt misstänkt inloggningsaktivitet och ytterligare försök kommer att blockeras. Kontakta administratören.`,logoAltText:"${companyName}","no-db-connection":`Ogiltig anslutning`,"no-email":`Vänligen ange en e-postadress`,"no-email-phone":`E-postadress eller telefonnummer krävs`,"no-email-phone-username":`Telefonnummer, användarnamn eller e-postadress krävs`,"no-email-username":`E-postadress eller användarnamn krävs`,"no-password":`Lösenord krävs`,"no-phone":`Ange ett telefonnummer`,"no-phone-username":`Telefonnummer eller användarnamn krävs`,"no-username":`Användarnamn krävs`,pageTitle:"Logga in | ${clientName}","password-breached":`Vi har upptäckt ett potentiellt säkerhetsproblem med detta konto. För att skydda ditt konto har vi förhindrat denna inloggning. Återställ ditt lösenord för att fortsätta.`,passwordPlaceholder:`Lösenord`,phoneOrEmailPlaceholder:`E-post eller telefonnummer`,phoneOrUsernameOrEmailPlaceholder:`Telefon, användarnamn eller e-post`,phoneOrUsernamePlaceholder:`Telefonnummer eller användarnamn`,phonePlaceholder:`Telefonnummer`,"same-user-login":`För många inloggningsförsök för denna användare. Vänta en stund och försök igen.`,selectCountryCode:"Välj landskod, för närvarande inställd på ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`eller`,sessionExpired:`Din session har gått ut. Försök igen.`,showPasswordText:`Visa lösenord`,signupActionLinkText:`Registrera dig`,signupActionText:`Har du inget konto?`,termsAndConditionsTemplate:'Genom att fortsätta godkänner du våra <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Villkor</a>.',title:`Välkommen`,"user-blocked":`Ditt konto har blockerats efter flera misslyckade inloggningsförsök i rad.`,userAccountDoesNotExist:`Användarkontot finns inte`,usernameOnlyPlaceholder:`Användarnamn`,usernameOrEmailPlaceholder:`Användarnamn eller e-postadress`,usernamePlaceholder:`Användarnamn`,usernameTooLong:"Användarnamnet får vara högst ${max} tecken",usernameTooShort:"Användarnamnet måste vara minst ${min} tecken","wrong-credentials":`Fel användarnamn eller lösenord`,"wrong-email-credentials":`Fel e-postadress eller lösenord`,"wrong-email-phone-credentials":`Fel e-postadress, telefonnummer eller lösenord. Telefonnummer måste innehålla landskod.`,"wrong-email-phone-username-credentials":`Fel e-postadress, telefonnummer, användarnamn eller lösenord. Telefonnummer måste innehålla landskod.`,"wrong-email-username-credentials":`Fel e-postadress, användarnamn eller lösenord`,"wrong-phone-credentials":`Fel telefonnummer eller lösenord`,"wrong-phone-username-credentials":`Fel telefonnummer, användarnamn eller lösenord. Telefonnummer måste innehålla landskod.`,"wrong-username-credentials":`Fel användarnamn eller lösenord`,passkeyButtonText:`Logga in med passkey`}},"login-password":{"login-password":{buttonText:`Logga in`,description:`Ange din e-postadress och ditt lösenord för att logga in.`,forgotPasswordText:`Har du glömt lösenordet?`,hidePasswordText:`Dölj lösenord`,"no-password":`Lösenord krävs`,pageTitle:"Logga in | ${clientName}","password-breached":`Vi har upptäckt ett potentiellt säkerhetsproblem med detta konto. För att skydda ditt konto har vi förhindrat denna inloggning. Återställ ditt lösenord för att fortsätta.`,passwordPlaceholder:`Lösenord`,showPasswordText:`Visa lösenord`,signingInAs:"Loggar in som ${email}",title:`Ange lösenord`,unverifiedEmail:`Verifiera din e-postadress innan du loggar in`,"user-blocked":`Ditt konto har blockerats efter flera misslyckade inloggningsförsök i rad.`,"wrong-credentials":`Fel lösenord`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-post`,authMethodEmailOrPhone:`e-post eller telefonnummer`,authMethodPhone:`telefonnummer`,description:"Logga in med din ${authMethod}",emailOrPhonePlaceholder:`E-postadress eller telefonnummer`,emailPlaceholder:`E-postadress`,invalidEmail:`Ange en giltig e-postadress`,invalidIdentifier:`Ange en giltig e-postadress eller telefonnummer`,invalidPhone:`Ange ett giltigt telefonnummer med landskod`,noEmail:`Ange din e-postadress`,noPhone:`Ange ditt telefonnummer`,phonePlaceholder:`Telefonnummer`,sessionExpired:`Din session har gått ut. Försök igen.`,title:`Logga in med en kod`,userAccountDoesNotExist:`Användarkontot finns inte`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Klicka på länken i ditt e-postmeddelande för att logga in`,description:"Vi skickade en länk till ${username}. Klicka på den för att logga in.",resendText:`Skicka länken igen`,spamText:`Fick du inte e-postmeddelandet? Kolla din skräppost.`,title:`Kolla din e-post`}},mfa:hf,"mfa-email":{"mfa-email":{buttonText:`Fortsätt`,codePlaceholder:`Ange kod`,description:"Vi skickade en kod till ${email}","invalid-code":`Koden du angav är ogiltig`,pageTitle:"E-postverifiering | ${clientName}",resendText:`Skicka koden igen`,title:`Kolla din e-post`}},"mfa-otp":{"mfa-otp":{buttonText:`Fortsätt`,codePlaceholder:`Ange kod`,description:`Ange den 6-siffriga koden från din autentiseringsapp`,"invalid-code":`Koden du angav är ogiltig`,pageTitle:"Ange kod | ${clientName}",title:`Ange din kod`},"mfa-totp-enrollment":{title:`Konfigurera autentiseringsapp`,description:`Skanna QR-koden nedan med din autentiseringsapp och ange sedan den 6-siffriga koden för att verifiera`,secretLabel:`Eller ange denna kod manuellt:`,codePlaceholder:`Ange kod`,continueButtonText:`Verifiera och aktivera`,"invalid-code":`Koden du angav är ogiltig. Försök igen.`,"transaction-not-found":`Din registreringstransaktion har gått ut, du behöver börja om.`,pageTitle:"Konfigurera autentiseringsapp | ${clientName}",unexpectedError:`Något gick fel. Försök igen.`,enrollmentComplete:`MFA-registreringen är klar. Du kan stänga denna sida.`},"mfa-totp-challenge":{title:`Verifiera din identitet`,description:`Ange den 6-siffriga koden från din autentiseringsapp`,codePlaceholder:`Ange kod`,continueButtonText:`Fortsätt`,"invalid-code":`Koden du angav är ogiltig`,"transaction-not-found":`Din registreringstransaktion har gått ut, du behöver börja om.`,unexpectedError:`Något gick fel. Försök igen.`,pageTitle:"Verifiera identitet | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Använd ditt telefonnummer för att logga in | ${clientName}",title:`Verifiera din identitet`,description:"Vi skickade en kod till ${phoneNumber}",continueButtonText:`Fortsätt`,changePhoneText:`Välj ett annat telefonnummer.`,smsButtonText:`SMS`,voiceButtonText:`Röstsamtal`,chooseMessageTypeText:`Hur vill du ta emot koden?`,pickAuthenticatorText:`Prova en annan metod`,logoAltText:"${companyName}",codePlaceholder:`Ange kod`,"send-sms-failed":`Det gick inte att skicka SMS:et`,"send-voice-failed":`Det gick inte att ringa röstsamtalet`,"invalid-phone-format":`Telefonnumret kan bara innehålla siffror.`,"invalid-phone":`Det verkar som att ditt telefonnummer inte är giltigt. Kontrollera och försök igen.`,"too-many-sms":`Du har överskridit det maximala antalet telefonmeddelanden per timme. Vänta några minuter och försök igen.`,"too-many-voice":`Du har överskridit det maximala antalet telefonmeddelanden per timme. Vänta några minuter och försök igen.`,"transaction-not-found":`Din registreringstransaktion har gått ut, du behöver börja om.`,"no-phone":`Ange ett telefonnummer`,noCode:`Ange verifieringskoden`,invalidCode:`Koden du angav är ogiltig. Försök igen.`,unexpectedError:`Något gick fel. Försök igen.`,resendSuccess:`Vi skickade en ny kod till din telefon`,enrollmentComplete:`MFA-registreringen är klar. Du kan stänga denna sida.`},"mfa-phone-enrollment":{pageTitle:"Ange ditt telefonnummer för att logga in med en telefonkod | ${clientName}",title:`Säkra ditt konto`,description:`Ange din landskod och telefonnummer som vi kan skicka en 6-siffrig kod till:`,continueButtonText:`Fortsätt`,smsButtonText:`SMS`,voiceButtonText:`Röstsamtal`,chooseMessageTypeText:`Hur vill du ta emot koden?`,pickAuthenticatorText:`Prova en annan metod`,placeholder:`Ange ditt telefonnummer`,logoAltText:"${companyName}",selectCountryCode:"Välj landskod, för närvarande inställd på ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Det gick inte att skicka SMS:et`,"send-voice-failed":`Det gick inte att ringa röstsamtalet`,"sms-authenticator-error":`Vi kunde inte skicka SMS:et. Försök igen senare.`,"invalid-phone-format":`Telefonnumret kan bara innehålla siffror.`,"invalid-phone":`Det verkar som att ditt telefonnummer inte är giltigt. Kontrollera och försök igen.`,"too-many-sms":`Du har överskridit det maximala antalet telefonmeddelanden per timme. Vänta några minuter och försök igen.`,"too-many-voice":`Du har överskridit det maximala antalet telefonmeddelanden per timme. Vänta några minuter och försök igen.`,"transaction-not-found":`Din registreringstransaktion har gått ut, du behöver börja om.`,"no-phone":`Ange ett telefonnummer`,"phone-is-too-short":`Telefonnumret är för kort`,"phone-is-too-long":`Telefonnumret är för långt`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Välj verifieringsmetod | ${clientName}",title:`Välj din verifieringsmetod`,description:`Välj hur du vill verifiera din identitet`,authenticatorAppLabel:`Autentiseringsapp`,authenticatorAppDescription:`Använd din autentiseringsapp för att få en verifieringskod`,smsLabel:`Sms`,smsDescription:`Få en verifieringskod skickad till din telefon`,passkeyLabel:`Lösenordsnyckel`,passkeyDescription:`Använd din enhets biometri eller säkerhetsnyckel`}},"mfa-push":{"mfa-push":{description:`Vi skickade en notis till din enhet`,pageTitle:"Push-notis | ${clientName}",resendText:`Skicka notisen igen`,title:`Godkänn förfrågan`,useCodeText:`Ange kod manuellt`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Fortsätt`,codePlaceholder:`Återställningskod`,description:`Ange en av dina återställningskoder`,"invalid-code":`Återställningskoden du angav är ogiltig`,pageTitle:"Återställningskod | ${clientName}",title:`Ange återställningskod`}},"mfa-voice":{"mfa-voice":{buttonText:`Ring mig`,codePlaceholder:`Ange kod`,description:"Vi ringer ${phoneNumber} med din kod","invalid-code":`Koden du angav är ogiltig`,pageTitle:"Röstsamtal | ${clientName}",title:`Ta emot ett telefonsamtal`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Försök igen`,description:`Sätt in din säkerhetsnyckel och följ instruktionerna`,pageTitle:"Säkerhetsnyckel | ${clientName}",title:`Använd din säkerhetsnyckel`}},passkeys:gf,organizations:_f,"reset-password":{"reset-password":{backToLoginText:`Gå tillbaka`,buttonText:`Skicka`,codeExpired:`Din kod för lösenordsåterställning har gått ut. Begär en ny.`,confirmPasswordLabel:`Bekräfta lösenord`,confirmPasswordPlaceholder:`Bekräfta lösenord`,description:`Klicka på knappen nedan så skickar vi instruktioner om hur du återställer ditt lösenord.`,emailPlaceholder:`E-postadress`,failed:`Lösenordsåterställningen misslyckades. Försök igen.`,"invalid-email-format":`Ogiltig e-postadress`,"no-email":`Vänligen ange en e-postadress`,pageTitle:"Återställ lösenord | ${clientName}",passwordLabel:`Nytt lösenord`,passwordPlaceholder:`Nytt lösenord`,passwordTooWeak:`Lösenordet är för svagt`,passwordsDidntMatch:`Lösenorden matchar inte`,successDescription:`Vi har skickat en länk för lösenordsåterställning till din e-postadress.`,successTitle:`Vi har skickat ett e-postmeddelande med instruktioner om hur du återställer ditt lösenord till den e-postadress du angav.`,title:`Har du glömt lösenordet?`,"user-not-found":`Användaren hittades inte`},"reset-password-code":{backToLoginText:`Tillbaka till inloggning`,buttonText:`Återställ lösenord`,codeLabel:`Återställningskod`,codePlaceholder:`Ange 6-siffrig kod`,confirmPasswordLabel:`Bekräfta lösenord`,confirmPasswordPlaceholder:`Bekräfta lösenord`,defaultDescription:`Ange koden som skickades till din e-post och välj ett nytt lösenord`,description:"Vi skickade en kod till ${email}",failed:`Lösenordsåterställningen misslyckades. Försök igen.`,invalidCode:`Koden du angav är ogiltig eller har gått ut`,noCode:`Vänligen ange återställningskoden`,pageTitle:"Ange återställningskod | ${clientName}",passwordLabel:`Nytt lösenord`,passwordPlaceholder:`Nytt lösenord`,passwordTooWeak:`Lösenordet är för svagt`,passwordsDidntMatch:`Lösenorden matchar inte`,resendFailed:`Kunde inte skicka koden igen. Försök igen.`,resendSuccess:`En ny kod har skickats till din e-post`,resendText:`Skicka koden igen`,sessionExpired:`Din session har gått ut. Försök igen.`,title:`Ange återställningskod`}},signup:vf,"signup-id":{"signup-id":{buttonText:`Fortsätt`,description:`Välj ett lösenord med en blandning av stora och små bokstäver, siffror och symboler.`,"email-already-exists":`E-postadressen är redan upptagen`,emailPlaceholder:`E-postadress`,federatedConnectionButtonText:"Fortsätt med ${connectionName}","invalid-email-format":`Ogiltig e-postadress`,loginActionLinkText:`Logga in`,loginActionText:`Har du redan ett konto?`,"no-email":`Vänligen ange en e-postadress`,pageTitle:"Registrera dig | ${clientName}",phonePlaceholder:`Telefonnummer`,separatorText:`eller`,title:`Välj lösenord`,usernamePlaceholder:`Användarnamn`}},"signup-password":{"signup-password":{buttonText:`Fortsätt`,description:`Välj ett lösenord med en blandning av stora och små bokstäver, siffror och symboler.`,hidePasswordText:`Dölj lösenord`,"no-password":`Lösenord krävs`,pageTitle:"Registrera dig | ${clientName}","password-policy-not-met":`Lösenordet uppfyller inte kraven`,"password-too-weak":`Lösenordet är för svagt`,passwordPlaceholder:`Lösenord`,showPasswordText:`Visa lösenord`,title:`Välj lösenord`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Fortsätt`,codeLabel:`Verifieringskod`,codePlaceholder:`Ange kod`,defaultDescription:`Ange verifieringskoden som skickades till din telefon`,description:"Vi skickade en kod till ${username}","invalid-code":`Ogiltig kod`,noCode:`Ange verifieringskoden`,pageTitle:"Ange kod | ${clientName}",resendText:`Skicka koden igen`,sessionExpired:`Din session har gått ut. Försök igen.`,title:`Kolla din telefon`,unexpectedError:`Ett oväntat fel uppstod`}},status:yf},xf=[`cs`,`da`,`en`,`fi`,`it`,`nb`,`pl`,`sv`],Sf={cs:`Čeština`,da:`Dansk`,en:`English`,fi:`Suomi`,it:`Italiano`,nb:`Norsk`,pl:`Polski`,sv:`Svenska`};function Cf(e){return Sf[e]??e}var wf=Object.assign({"../../locales/cs.json":Yre,"../../locales/da.json":Zre,"../../locales/en.json":$re,"../../locales/fi.json":tie,"../../locales/it.json":rie,"../../locales/nb.json":aie,"../../locales/pl.json":sie,"../../locales/sv.json":uf}),Tf={};for(let[e,t]of Object.entries(wf)){let n=e.match(/\/(\w+)\.json$/)?.[1];n&&(Tf[n]=t.default||t)}var Ef={},Df=Tf.en;if(Df)for(let[e,t]of Object.entries(Df))for(let[n,r]of Object.entries(t)){let t={};for(let e of Object.keys(r))t[e]=f.z.string();Ef[`${e}.${n}`]=f.z.object(t)}function Of(e,t){if(!t)return e;let n=e;for(let[e,r]of Object.entries(t))if(r!==void 0){let t=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);n=n.replace(RegExp(`\\$\\{${t}\\}`,`g`),String(r)).replace(RegExp(`#\\{${t}\\}`,`g`),String(r)).replace(RegExp(`\\{${t}\\}`,`g`),String(r))}return n}function kf(e){let t=e.split(`-`)[0]?.toLowerCase()||`en`;return xf.includes(t)?t:`en`}function Af(e,t,n,r){let i=kf(n),a=Tf.en?.[e]?.[t]??{},o=Tf[i]?.[e]?.[t]??{},s={...a,...o},c=r?.[t]??{},l={...s,...c},u=Ef[`${e}.${t}`];if(u){let n=u.safeParse(l);n.success||console.warn(`[i18n] Missing translations for ${e}.${t} (${i}):`,n.error.issues.map(e=>e.path.join(`.`)).join(`, `))}let d={};for(let[e,t]of Object.entries(l))d[e]=e=>Of(t,e);return{m:new Proxy(d,{get:(e,t)=>e[t]??(()=>t)}),locale:i}}function jf(e){let t=e?.language?.split(`-`)[0]?.toLowerCase(),n=[];for(let[r,i]of Object.entries(Tf))if(!(t&&r!==t))for(let[t,a]of Object.entries(i))e?.prompt&&t!==e.prompt||n.push({prompt:t,language:r,custom_text:a});return n}var Mf={Stringify:1,BeforeStream:2,Stream:3},Nf=(e,t)=>{let n=new String(e);return n.isEscaped=!0,n.callbacks=t,n},Pf=/[&<>'"]/,Ff=async(e,t)=>{let n=``;t||=[];let r=await Promise.all(e);for(let e=r.length-1;n+=r[e],e--,!(e<0);e--){let i=r[e];typeof i==`object`&&t.push(...i.callbacks||[]);let a=i.isEscaped;if(i=await(typeof i==`object`?i.toString():i),typeof i==`object`&&t.push(...i.callbacks||[]),i.isEscaped??a)n+=i;else{let e=[n];If(i,e),n=e[0]}}return Nf(n,t)},If=(e,t)=>{let n=e.search(Pf);if(n===-1){t[0]+=e;return}let r,i,a=0;for(i=n;i<e.length;i++){switch(e.charCodeAt(i)){case 34:r=`&quot;`;break;case 39:r=`&#39;`;break;case 38:r=`&amp;`;break;case 60:r=`&lt;`;break;case 62:r=`&gt;`;break;default:continue}t[0]+=e.substring(a,i)+r,a=i+1}t[0]+=e.substring(a,i)},Lf=e=>{let t=e.callbacks;if(!t?.length)return e;let n=[e],r={};return t.forEach(e=>e({phase:Mf.Stringify,buffer:n,context:r})),n[0]},Rf=async(e,t,n,r,i)=>{typeof e==`object`&&!(e instanceof String)&&(e instanceof Promise||(e=e.toString()),e instanceof Promise&&(e=await e));let a=e.callbacks;if(!a?.length)return Promise.resolve(e);i?i[0]+=e:i=[e];let o=Promise.all(a.map(e=>e({phase:t,buffer:i,context:r}))).then(e=>Promise.all(e.filter(Boolean).map(e=>Rf(e,t,!1,r,i))).then(()=>i[0]));return n?Nf(await o,a):o},zf=Symbol(`RENDERER`),Bf=Symbol(`ERROR_HANDLER`),Vf=Symbol(`STASH`),Hf=Symbol(`INTERNAL`),Uf=Symbol(`MEMO`),Wf=Symbol(`PERMALINK`),Gf=e=>(e[Hf]=!0,e),Kf=e=>({value:t,children:n})=>{if(!n)return;let r={children:[{tag:Gf(()=>{e.push(t)}),props:{}}]};Array.isArray(n)?r.children.push(...n.flat()):r.children.push(n),r.children.push({tag:Gf(()=>{e.pop()}),props:{}});let i={tag:``,props:r,type:``};return i[Bf]=t=>{throw e.pop(),t},i},qf=e=>{let t=[e],n=Kf(t);return n.values=t,n.Provider=n,Jf.push(n),n},Jf=[],Yf=!1,Xf,Zf,Qf=0,$f=!1,ep=()=>{if(Yf)return Xf;Yf=!0;let e=globalThis,t;for(let n of[()=>e.process?.getBuiltinModule?.(`node:async_hooks`)?.AsyncLocalStorage,()=>e.process?.mainModule?.require?.(`node:async_hooks`)?.AsyncLocalStorage]){try{t=n()}catch{}if(t)break}return t&&(Xf=new t),Xf},tp=()=>ep()?.getStore()||Zf,np=()=>{Qf>0&&!$f&&($f=!0,console.warn(`hono/jsx: AsyncLocalStorage is unavailable in this runtime, so useContext() after an await in an async component falls back to the context default value during server-side rendering. To get provided values across await boundaries, use a runtime with AsyncLocalStorage (Node.js >= 20.16, Deno, Bun, or Cloudflare Workers with the nodejs_compat flag).`))},rp=(e,t)=>{if(!e)return np(),t.values;let n=e.get(t);return n||(n=[t.values[0]],e.set(t,n)),n},ip=(e,t)=>{if(!e)return np(),t.values.at(-1);let n=e.get(t);return n?.length?n.at(-1):t.values[0]},ap=e=>(e?Jf.filter(t=>e.has(t)):Jf).map(t=>[t,ip(e,t)]),op=(e,t,n)=>sp(()=>{let t=tp(),r=n.map(([e,n])=>{let r=rp(t,e);return r.push(n),r}),i=()=>{r.forEach(e=>{e.pop()})};try{let t=e();return t instanceof Promise?t.finally(i):(i(),t)}catch(e){throw i(),e}},t),sp=(e,t)=>{if(tp())return e();let n=t??new WeakMap,r=ep();if(r)return r.run(n,e);Zf=n;let i;try{i=e()}finally{Zf=void 0}return!$f&&i instanceof Promise&&(Qf++,i=i.finally(()=>{Qf--})),i},cp=()=>{let e=tp(),t=ap(e);return n=>op(n,e,t)},lp=e=>{let t=[e],n=(e=>{let t=rp(tp(),n);t.push(e.value);let r;try{r=e.children?(Array.isArray(e.children)?new im(``,{},e.children):e.children).toString():``}catch(e){throw t.pop(),e}return r instanceof Promise?r.finally(()=>t.pop()).then(e=>Nf(e,e.callbacks)):(t.pop(),Nf(r))});return n.values=t,n.Provider=n,n[zf]=Kf(t),Jf.push(n),n},up=e=>ip(tp(),e),dp={title:[],script:[`src`],style:[`data-href`],link:[`href`],meta:[`name`,`httpEquiv`,`charset`,`itemProp`]},fp={},pp=`data-precedence`,mp=e=>e.rel===`stylesheet`&&`precedence`in e,hp=(e,t)=>e===`link`?t:dp[e].length>0,gp=e=>Array.isArray(e)?e:[e],_p=c({button:()=>jp,form:()=>Op,input:()=>Ap,link:()=>Tp,meta:()=>Ep,script:()=>Cp,style:()=>wp,title:()=>Sp}),vp=new WeakMap,yp=(e,t,n,r)=>({buffer:i,context:a})=>{if(!i)return;let o=vp.get(a)||{};vp.set(a,o);let s=o[e]||=[],c=!1,l=dp[e],u=hp(e,r!==void 0);if(u){LOOP:for(let[,t]of s)if(!(e===`link`&&!(t.rel===`stylesheet`&&t[`data-precedence`]!==void 0))){for(let e of l)if((t?.[e]??null)===n?.[e]){c=!0;break LOOP}}}if(c?i[0]=i[0].replaceAll(t,``):u||e===`link`?s.push([t,n,r]):s.unshift([t,n,r]),i[0].indexOf(`</head>`)!==-1){let t;if(e===`link`||r!==void 0){let e=[];t=s.map(([t,,n],r)=>{if(n===void 0)return[t,2**53-1,r];let i=e.indexOf(n);return i===-1&&(e.push(n),i=e.length-1),[t,i,r]}).sort((e,t)=>e[1]-t[1]||e[2]-t[2]).map(([e])=>e)}else t=s.map(([e])=>e);t.forEach(e=>{i[0]=i[0].replaceAll(e,``)}),i[0]=i[0].replace(/(?=<\/head>)/,t.join(``))}},bp=(e,t,n)=>Nf(new nm(e,n,gp(t??[])).toString()),xp=(e,t,n,r)=>{if(`itemProp`in n)return bp(e,t,n);let{precedence:i,blocking:a,...o}=n;i=r?i??``:void 0,r&&(o[pp]=i);let s=new nm(e,o,gp(t||[])).toString();return s instanceof Promise?s.then(t=>Nf(s,[...t.callbacks||[],yp(e,t,o,i)])):Nf(s,[yp(e,s,o,i)])},Sp=({children:e,...t})=>{let n=Zp();if(n){let r=up(n);if(r===`svg`||r===`head`)return new nm(`title`,t,gp(e??[]))}return xp(`title`,e,t,!1)},Cp=({children:e,...t})=>{let n=Zp();return[`src`,`async`].some(e=>!t[e])||n&&up(n)===`head`?bp(`script`,e,t):xp(`script`,e,t,!1)},wp=({children:e,...t})=>[`href`,`precedence`].every(e=>e in t)?(t[`data-href`]=t.href,delete t.href,xp(`style`,e,t,!0)):bp(`style`,e,t),Tp=({children:e,...t})=>[`onLoad`,`onError`].some(e=>e in t)||t.rel===`stylesheet`&&(!(`precedence`in t)||`disabled`in t)?bp(`link`,e,t):xp(`link`,e,t,mp(t)),Ep=({children:e,...t})=>{let n=Zp();return n&&up(n)===`head`?bp(`meta`,e,t):xp(`meta`,e,t,!1)},Dp=(e,{children:t,...n})=>new nm(e,n,gp(t??[])),Op=e=>(typeof e.action==`function`&&(e.action=Wf in e.action?e.action[Wf]:void 0),Dp(`form`,e)),kp=(e,t)=>(typeof t.formAction==`function`&&(t.formAction=Wf in t.formAction?t.formAction[Wf]:void 0),Dp(e,t)),Ap=e=>kp(`input`,e),jp=e=>kp(`button`,e),Mp=new Map([[`className`,`class`],[`htmlFor`,`for`],[`crossOrigin`,`crossorigin`],[`httpEquiv`,`http-equiv`],[`itemProp`,`itemprop`],[`fetchPriority`,`fetchpriority`],[`noModule`,`nomodule`],[`formAction`,`formaction`]]),Np=e=>Mp.get(e)||e,Pp=/[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,Fp=new Set,Ip=1024,Lp=/^[!?]|[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,Rp=new Set,zp=256,Bp=(e,t,n)=>{e.size>=t&&e.clear(),e.add(n)},Vp=e=>Rp.has(e)?!0:typeof e==`string`?e.length===0?!0:Lp.test(e)?!1:(Bp(Rp,zp,e),!0):!1,Hp=e=>{if(Fp.has(e))return!0;let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===95||t===46||t===58))return Pp.test(e)?!1:(Bp(Fp,Ip,e),!0)}return Bp(Fp,Ip,e),!0},Up=/[\s"'():;\\/\[\]{}\x00-\x1f\x7f-\x9f]/,Wp=new Set,Gp=1024,Kp=e=>{if(Wp.has(e))return!0;let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===95))return Up.test(e)?!1:(Bp(Wp,Gp,e),!0)}return Bp(Wp,Gp,e),!0},qp=/[;"'\\/\[\](){}]/,Jp=e=>{if(!qp.test(e))return!1;let t=0,n=[];for(let r=0,i=e.length;r<i;r++){let a=e.charCodeAt(r);if(a===92){if(r===i-1)return!0;r++}else if(t!==0){if(a===10||a===12||a===13)return!0;a===t&&(t=0)}else if(a===47&&e.charCodeAt(r+1)===42){let t=e.indexOf(`*/`,r+2);if(t===-1)return!0;r=t+1}else if(a===34||a===39)t=a;else if(a===40)n.push(41);else if(a===91)n.push(93);else if(a===123||a===125)return!0;else if(a===41||a===93){if(n[n.length-1]!==a)return!0;n.pop()}else if(a===59&&n.length===0)return!0}return t!==0||n.length!==0},Yp=(e,t)=>{for(let[n,r]of Object.entries(e)){let e=n[0]===`-`||!/[A-Z]/.test(n)?n:n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);if(!Kp(e))continue;if(r==null){t(e,null);continue}let i;if(typeof r==`number`)i=e.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${r}`:`${r}px`;else if(typeof r==`string`){if(Jp(r))continue;i=r}else continue;t(e,i)}},Xp=void 0,Zp=()=>Xp,Qp=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,`-$1`).toLowerCase():e,$p=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],em=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.defer.disabled.download.formnovalidate.hidden.inert.ismap.itemscope.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.selected`.split(`.`),tm=(e,t)=>{for(let n=0,r=e.length;n<r;n++){let r=e[n];if(typeof r==`string`)If(r,t);else if(typeof r==`boolean`||r==null)continue;else r instanceof nm?r.toStringToBuffer(t):typeof r==`number`||r.isEscaped?t[0]+=r:r instanceof Promise?t.unshift(``,r):tm(r,t)}},nm=class{tag;props;key;children;isEscaped=!0;suspendedContext;constructor(e,t,n){if(typeof e!=`function`&&!Vp(e))throw Error(`Invalid JSX tag name: ${e}`);this.tag=e,this.props=t,this.children=n}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){let e=()=>{let e=[``];return this.toStringToBuffer(e),e.length===1?`callbacks`in e?Lf(Nf(e[0],e.callbacks)).toString():e[0]:Ff(e,e.callbacks)};return this.suspendedContext?this.suspendedContext(e):sp(e)}toStringToBuffer(e){let t=this.tag,n=this.props,{children:r}=this;e[0]+=`<${t}`;let i=t===`svg`||Xp&&up(Xp)===`svg`?e=>Qp(Np(e)):e=>Np(e);for(let[a,o]of Object.entries(n))if(a=i(a),Hp(a)&&a!==`children`){if(a===`style`&&typeof o==`object`){let t=``;Yp(o,(e,n)=>{n!=null&&(t+=`${t?`;`:``}${e}:${n}`)}),e[0]+=` style="`,If(t,e),e[0]+=`"`}else if(typeof o==`string`)e[0]+=` ${a}="`,If(o,e),e[0]+=`"`;else if(o!=null)if(typeof o==`number`||o.isEscaped)e[0]+=` ${a}="${o}"`;else if(typeof o==`boolean`&&em.includes(a))o&&(e[0]+=` ${a}=""`);else if(a===`dangerouslySetInnerHTML`){if(r.length>0)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r=[Nf(o.__html)]}else if(o instanceof Promise)e[0]+=` ${a}="`,e.unshift(`"`,o);else if(typeof o==`function`){if(!a.startsWith(`on`)&&a!==`ref`)throw Error(`Invalid prop '${a}' of type 'function' supplied to '${t}'.`)}else e[0]+=` ${a}="`,If(o.toString(),e),e[0]+=`"`}if($p.includes(t)&&r.length===0){e[0]+=`/>`;return}e[0]+=`>`,tm(r,e),e[0]+=`</${t}>`}},rm=class extends nm{toStringToBuffer(e){let{children:t}=this,n={...this.props};t.length&&(n.children=t.length===1?t[0]:t);let r=this.tag.call(null,n);if(!(typeof r==`boolean`||r==null))if(r instanceof Promise)if(Jf.length===0)e.unshift(``,r);else{let t=cp();e.unshift(``,r.then(e=>(e instanceof nm&&(e.suspendedContext=t),e)))}else r instanceof nm?r.toStringToBuffer(e):typeof r==`number`||r.isEscaped?(e[0]+=r,r.callbacks&&(e.callbacks||=[],e.callbacks.push(...r.callbacks))):If(r,e)}},im=class extends nm{toStringToBuffer(e){tm(this.children,e)}},am=(e,t,...n)=>{t??={},n.length&&(t.children=n.length===1?n[0]:n);let r=t.key;delete t.key;let i=sm(e,t,n);return i.key=r,i},om=!1,sm=(e,t,n)=>{if(!om){for(let e in fp)_p[e][zf]=fp[e];om=!0}return typeof e==`function`?new rm(e,t,n):_p[e]?new rm(_p[e],t,n):e===`svg`||e===`head`?(Xp||=lp(``),new nm(e,t,[new rm(Xp,{value:e},n)])):new nm(e,t,n)},cm=({children:e})=>new im(``,{children:e},Array.isArray(e)?e:e?[e]:[]),lm=(e,t,...n)=>{let r;if(n.length>0)r=n;else{let t=e.props.children;r=Array.isArray(t)?t:[t]}return am(e.tag,{...e.props,...t},...r)};function I(e,t,n){let r;if(!t||!(`children`in t))r=sm(e,t,[]);else{let n=t.children;r=Array.isArray(n)?sm(e,t,n):sm(e,t,[n])}return r.key=n,r}function um(e,t){let n=qre(e,`ah-dark-mode`);if(n===`dark`||n===`light`||n===`auto`)return n;let r=t?.dark_mode;return r===`dark`||r===`light`||r===`auto`?r:`auto`}var dm={"--ah-color-text":`#f9fafb`,"--ah-color-text-muted":`#9ca3af`,"--ah-color-text-label":`#d1d5db`,"--ah-color-text-header":`#f9fafb`,"--ah-color-header":`#f9fafb`,"--ah-color-bg":`#1f2937`,"--ah-color-bg-hover":`#374151`,"--ah-color-bg-muted":`#374151`,"--ah-color-bg-disabled":`#4b5563`,"--ah-color-input-bg":`#374151`,"--ah-color-input-text":`#f9fafb`,"--ah-btn-secondary-text":`#f9fafb`,"--ah-color-border":`#4b5563`,"--ah-color-border-hover":`#6b7280`,"--ah-color-border-muted":`#374151`,"--ah-color-error-bg":`rgba(220,38,38,0.2)`,"--ah-color-success-bg":`rgba(22,163,74,0.2)`,"--ah-color-link":`#60a5fa`};function fm(e){let t=e.replace(`#`,``),n=parseInt(t,16);return[n>>16&255,n>>8&255,n&255]}function pm(e){let[t,n,r]=fm(e).map(e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function mm(e,t){let n=pm(e),r=pm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function hm(e,t){let[n,r,i]=fm(e),a=e=>Math.min(255,Math.round(e+(255-e)*t)).toString(16).padStart(2,`0`);return`#${a(n)}${a(r)}${a(i)}`}function gm(e,t){let n={...dm};if(t){let e=dm[`--ah-color-bg`]||`#1f2937`;if(mm(t,e)<3){let r=t;for(let n=1;n<=10&&(r=hm(t,n*.1),!(mm(r,e)>=3));n++);n[`--ah-color-primary`]=r,n[`--ah-color-primary-hover`]=r}let r=n[`--ah-color-primary`]||t,i=mm(r,`#ffffff`);n[`--ah-color-text-on-primary`]=mm(r,`#000000`)>i*1.35?`#000000`:`#ffffff`}return`${e} { ${Object.entries(n).map(([e,t])=>`${e}: ${t} !important`).join(`; `)}; }`}var _m=`(function(btn){var h=document.documentElement;var cur=h.classList.contains('ah-dark-mode')?'dark':h.classList.contains('ah-light-mode')?'light':'auto';var next=cur==='auto'?'dark':cur==='dark'?'light':'auto';h.classList.remove('ah-dark-mode','ah-light-mode');if(next==='dark'){h.classList.add('ah-dark-mode');h.setAttribute('data-mode','dark')}else if(next==='light'){h.classList.add('ah-light-mode');h.setAttribute('data-mode','light')}else{h.removeAttribute('data-mode')}btn.querySelector('.icon-sun').style.display=next==='light'?'block':'none';btn.querySelector('.icon-moon').style.display=next==='dark'?'block':'none';btn.querySelector('.icon-auto').style.display=next==='auto'?'block':'none';document.cookie='ah-dark-mode='+next+';path=/;max-age=31536000;SameSite=Lax';if(window.__ahDarkMode){window.__ahDarkMode(next)}})(this)`,vm=`var p=new URLSearchParams(window.location.search);p.set('ui_locales',this.value);window.location.search=p.toString()`;function ym(e){return e===`plain`?` ah-chip--plain`:e===`pill`?` ah-chip--pill`:``}function bm({logoUrl:e,clientName:t,variant:n}){let r=e?Bu(e):null;return I(`div`,{class:`ah-chip ah-chip-logo${ym(n)}`,"data-ah-slot":`top-left`,children:r?I(`img`,{src:r,alt:t}):I(`span`,{class:`ah-logo-text`,children:t})})}function xm({darkMode:e}){return I(`button`,{type:`button`,"aria-label":`Toggle dark mode`,onclick:_m,children:[I(`svg`,{class:`icon-auto`,width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:e===`auto`?void 0:`display:none`,children:[I(`circle`,{cx:`12`,cy:`12`,r:`9`}),I(`path`,{d:`M12 3a9 9 0 0 1 0 18`,fill:`currentColor`})]}),I(`svg`,{class:`icon-sun`,width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:e===`light`?void 0:`display:none`,children:[I(`circle`,{cx:`12`,cy:`12`,r:`5`}),I(`line`,{x1:`12`,y1:`1`,x2:`12`,y2:`3`}),I(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`23`}),I(`line`,{x1:`4.22`,y1:`4.22`,x2:`5.64`,y2:`5.64`}),I(`line`,{x1:`18.36`,y1:`18.36`,x2:`19.78`,y2:`19.78`}),I(`line`,{x1:`1`,y1:`12`,x2:`3`,y2:`12`}),I(`line`,{x1:`21`,y1:`12`,x2:`23`,y2:`12`})]}),I(`svg`,{class:`icon-moon`,width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:e===`dark`?void 0:`display:none`,children:I(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})})]})}function Sm({language:e,availableLanguages:t}){return!t||t.length<2?null:I(`div`,{class:`ah-lang`,children:[I(`svg`,{width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,children:[I(`circle`,{cx:`12`,cy:`12`,r:`10`}),I(`path`,{d:`M2 12h20`}),I(`path`,{d:`M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z`})]}),I(`select`,{"aria-label":`Language`,onchange:vm,children:t.map(t=>I(`option`,{value:t,selected:t===e,children:Cf(t)}))})]})}function Cm({darkMode:e,language:t,availableLanguages:n,variant:r}){return I(`div`,{class:`ah-chip ah-chip-settings${ym(r)}`,"data-ah-slot":`top-right`,children:[I(xm,{darkMode:e}),n&&I(Sm,{language:t,availableLanguages:n})]})}function wm({url:e,href:t,alt:n,height:r,variant:i}){let a=Bu(e),o=t?Bu(t):null;if(!a)return null;let s=I(`img`,{src:a,alt:n||``,height:r||18});return I(`div`,{class:`ah-chip ah-chip-trust${ym(i)}`,"data-ah-slot":`bottom-left`,children:o?I(`a`,{href:o,target:`_blank`,rel:`noopener noreferrer`,children:s}):s})}function Tm({termsAndConditionsUrl:e,language:t,variant:n}){if(!e)return null;let{m:r}=Af(`common`,`common`,t||`en`);return I(`div`,{class:`ah-chip-legal${ym(n)}`,"data-ah-slot":`bottom-right`,children:I(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,children:r.termsShortText()})})}function Em(e,t){let n=[],r=Vu(e?.colors?.primary);r&&n.push(`--ah-color-primary: ${r}`);let i=Vu(t?.colors?.primary_button)||r;if(i){let e=mm(i,`#ffffff`),t=mm(i,`#000000`)>e*1.35?`#000000`:`#ffffff`;n.push(`--ah-color-text-on-primary: ${t}`)}return n.length>0?n.join(`; `)+`; width: clamp(320px, 100%, 400px);`:`width: clamp(320px, 100%, 400px);`}function Dm(e){let t=e.themePageBackground?.page_layout||`center`,n=t===`left`?`flex-start`:t===`right`?`flex-end`:`center`,r=t===`left`?`20px 20px 20px 80px`:t===`right`?`20px 80px 20px 20px`:`20px`;return{background:Uu(e.themePageBackground,e.brandingPageBackground),fontFamily:e.fontUrl?`'Inter', system-ui, sans-serif`:`system-ui, -apple-system, sans-serif`,justifyContent:n,padding:r}}function Om(e){let{primaryColor:t,themePrimary:n,widgetBackground:r,bodyLayout:i}=e;return`
14
+ `,` `,t],r=new Set(n);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(t)?this.readOutputToken(e):this.readHTMLToken(n)}match(e){for(let t=0;t<e.length;t++)if(e[t]!==this.input[this.p+t])return!1;return!0}rmatch(e){for(let t=0;t<e.length;t++)if(e[e.length-1-t]!==this.input[this.p-1-t])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:Jo[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?``:this.input[this.p+e]}skipBlank(){for(;this.peekType()&Yo;)++this.p}},pc=class{constructor(e,t){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=t}on(e,t){return this.handlers[e]=t,this}trigger(e,t){let n=this.handlers[e];return n?(n.call(this,t),!0):!1}start(){this.trigger(`start`);let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger(`token`,e)||Vc(e)&&this.trigger(`tag:${e.name}`,e))continue;let t=this.parseToken(e,this.tokens);this.trigger(`template`,t)}return this.stopRequested||this.trigger(`end`),this}stop(){return this.stopRequested=!0,this}},mc=class{constructor(e){this.token=e}},hc=class extends mc{constructor(e,t,n){super(e),this.name=e.name,this.liquid=n,this.tokenizer=e.tokenizer}},gc=class{constructor(e,t){this.hash={};let n=e instanceof fc?e:new fc(e,{});for(let e of n.readHashes(t))this.hash[e.name.content]=e.value}*render(e){let t={};for(let n of Object.keys(this.hash))t[n]=this.hash[n]===void 0?!0:yield Hs(this.hash[n],e);return t}};function _c(e){return class extends hc{constructor(t,n,r){super(t,n,r),ho(e.parse)&&e.parse.call(this,t,n)}*render(t,n){let r=yield new gc(this.token.args,t.opts.keyValueSeparator).render(t);return yield e.render.call(this,t,n,r)}}}function vc(e){return Eo(e)}var yc=class{constructor(e,t,n){this.token=e,this.name=e.name,this.handler=ho(t)?t:ho(t?.handler)?t.handler:Po,this.raw=!ho(t)&&!!t?.raw,this.args=e.args,this.liquid=n}*render(e,t){let n=[];for(let e of this.args)vc(e)?n.push([e[0],yield Hs(e[1],t)]):n.push(yield Hs(e,t));return yield this.handler.apply({context:t,token:this.token,liquid:this.liquid},[e,...n])}},bc=class{constructor(e,t){this.filters=[];let n=typeof e==`string`?new fc(e,t.options.operators).readFilteredValue():e;this.initial=n.initial,this.filters=n.filters.map(e=>new yc(e,this.getFilter(t,e.name),t))}*value(e,t){t||=e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let n=yield this.initial.evaluate(e,t);for(let t of this.filters)n=yield t.render(n,e);return n}getFilter(e,t){let n=e.filters[t];return $o(n||!e.options.strictFilters,()=>`undefined filter: ${t}`),n}},xc=class extends mc{constructor(e,t){super(e);let n=new fc(e.input,t.options.operators,e.file,e.contentRange);this.value=new bc(n.readFilteredValue(),t);let r=this.value.filters,i=t.options.outputEscape;if(!r[r.length-1]?.raw&&i){let e=new Ls(toString.call(i),[],``,0,0);r.push(new yc(e,i,t))}}*render(e,t){let n=yield this.value.value(e,!1);t.write(n)}*arguments(){yield this.value}},Sc=class extends mc{constructor(e){super(e),this.str=e.getContent()}*render(e,t){t.write(this.str)}},Cc=class e{constructor(e,t){this.segments=e,this.location=t}toString(){return Fc(this.segments,!0)}toArray(){function*t(...n){for(let r of n)r instanceof e?yield Array.from(t(...r.segments)):yield r}return Array.from(t(...this.segments))}},wc=class{constructor(){this.map=new Map}get(e){let t=Fc([e.segments[0]]);return this.map.has(t)||this.map.set(t,[]),this.map.get(t)}has(e){return this.map.has(Fc([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}},Tc={partials:!0};function*Ec(e,t,n){let r=new wc,i=new wc,a=new wc,o=new kc(new Set),s=new Set;function c(e,t){r.push(e);let n=t.alias(e);if(n!==void 0){let e=n.segments[0];mo(e)&&!o.has(e)&&i.push(n)}else{let n=e.segments[0];mo(n)&&!t.has(n)&&i.push(e)}for(let n of e.segments)n instanceof Cc&&c(n,t)}function*l(e,r){if(e.arguments)for(let t of e.arguments())for(let e of Ac(t))c(e,r);if(e.localScope)for(let t of e.localScope()){r.add(t.content),r.deleteAlias(t.content);let[e,n]=t.getPosition();a.push(new Cc([t.content],{row:e,col:n,file:t.file}))}if(e.children)if(e.partialScope){let i=e.partialScope();if(i===void 0){for(let i of yield e.children(t,n))yield l(i,r);return}if(s.has(i.name))return;let a=new Set,o=i.isolated?new kc(a):r.push(a);for(let e of i.scope)if(mo(e))a.add(e);else{let[t,n]=e;a.add(t);let r=Array.from(Ac(n));r.length&&o.setAlias(t,r[0].segments)}for(let r of yield e.children(t,n))yield l(r,o),s.add(i.name);o.pop()}else{e.blockScope&&r.push(new Set(e.blockScope()));for(let i of yield e.children(t,n))yield l(i,r);e.blockScope&&r.pop()}}for(let t of e)yield l(t,o);return{variables:r.asObject(),globals:i.asObject(),locals:a.asObject()}}function Dc(e,t={}){return hs(Ec(e,Object.assign(Object.assign({},Tc),t).partials,!1))}function Oc(e,t={}){return gs(Ec(e,Object.assign(Object.assign({},Tc),t).partials,!0))}var kc=class{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(let t of this.stack)if(t.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){return this.stack.pop()?.names}add(e){this.stack[0].names.add(e)}alias(e){let t=e.segments[0];if(!mo(t))return;let n=this.getAlias(t);if(n!==void 0)return new Cc([...n,...e.segments.slice(1)],e.location)}setAlias(e,t){this.stack[this.stack.length-1].aliases.set(e,t)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(let t of this.stack){if(t.aliases.has(e))return t.aliases.get(e);if(t.names.has(e))return}}};function*Ac(e){qc(e)?yield*Mc(e):e instanceof bc&&(yield*jc(e))}function*jc(e){for(let t of e.initial.postfix)qc(t)&&(yield*Mc(t));for(let t of e.filters)for(let e of t.args)vc(e)&&e[1]?yield*Mc(e[1]):qc(e)&&(yield*Mc(e))}function*Mc(e){Kc(e)?(yield*Mc(e.lhs),yield*Mc(e.rhs)):Wc(e)&&(yield Nc(e))}function Nc(e){let t=[],n=e.file,r=e.props[0];n||=r.file,Hc(r)||Uc(r)||Gc(r)?t.push(r.content):Wc(r)&&t.push(...Nc(r).segments);for(let r of e.props.slice(1))n||=r.file,Hc(r)||Uc(r)||Gc(r)?t.push(r.content):Wc(r)&&t.push(Nc(r));let[i,a]=e.getPosition();return new Cc(t,{row:i,col:a,file:n})}var Pc=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function Fc(e,t=!1){let n=[],r=e[0];mo(r)&&(!t||r.match(Pc)?n.push(`${r}`):n.push(`['${r}']`));for(let t of e.slice(1))t instanceof Cc?n.push(`[${Fc(t.segments)}]`):mo(t)?t.match(Pc)?n.push(`.${t}`):n.push(`['${t}']`):n.push(`[${t}]`);return n.join(``)}var Ic;(function(e){e.Partials=`partials`,e.Layouts=`layouts`,e.Root=`root`})(Ic||={});var sre=class{constructor(e){if(this.options=e,e.relativeReference){let t=e.fs.sep;$o(t,"`fs.sep` is required for relative reference");let n=[`.`+t,`..`+t,`./`,`../`];this.shouldLoadRelative=e=>n.some(t=>e.startsWith(t))}else this.shouldLoadRelative=e=>!1;let t=e.fs;this.contains=ms(t.contains?.bind(t)||(()=>ps(this,void 0,void 0,function*(){return!0})),t.containsSync?.bind(t)||(()=>!0)),this.exists=ms(t.exists?.bind(t)||(()=>ps(this,void 0,void 0,function*(){return!1})),t.existsSync?.bind(t))}*lookup(e,t,n,r){let i=this.options[t];for(let t of this.candidates(e,i,r)){let e=!1;for(let r of i)if(yield this.contains(!!n,r,t)){e=!0;break}if(e&&(yield this.exists(!!n,t)))return t}throw this.lookupError(e,i)}*candidates(e,t,n){let{fs:r,extname:i}=this.options;this.shouldLoadRelative(e)&&n&&(yield r.resolve(this.dirname(n),e,i));for(let n of t)yield r.resolve(n,e,i);if(r.fallback!==void 0){let t=r.fallback(e);t!==void 0&&(yield t)}}dirname(e){let t=this.options.fs;return $o(t.dirname,"`fs.dirname` is required for relative reference"),t.dirname(e)}lookupError(e,t){let n=Error(`ENOENT`);return n.message=`ENOENT: Failed to lookup "${e}" in "${t}"`,n.code=`ENOENT`,n}},Lc=class{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new sre(this.liquid.options),this.parseLimit=new As(`parse length`,e.options.parseLimit),this.readFile=ms(this.fs.readFile?.bind(this.fs)||(()=>ps(this,void 0,void 0,function*(){throw Error(`readFile not implemented`)})),this.fs.readFileSync?.bind(this.fs))}parse(e,t){e=String(e),this.parseLimit.use(e.length);let n=new fc(e,this.liquid.options.operators,t).readTopLevelTokens(this.liquid.options);return this.parseTokens(n)}parseTokens(e){let t,n=[],r=[];for(;t=e.shift();)try{n.push(this.parseToken(t,e))}catch(e){if(this.liquid.options.catchAllErrors)r.push(e);else throw e}if(r.length)throw new qo(r);return n}parseToken(e,t){try{if(Vc(e)){let n=this.liquid.tags[e.name];return $o(n,`tag "${e.name}" not found`),new n(e,t,this.liquid,this)}return lre(e)?new xc(e,this.liquid):new Sc(e)}catch(t){throw Uo.is(t)?t:new Go(t,e)}}parseStream(e){return new pc(e,(e,t)=>this.parseToken(e,t))}*_parseFileCached(e,t,n=Ic.Root,r){let i=this.cache,a=this.loader.shouldLoadRelative(e)?r+`,`+e:n+`:`+e,o=yield i.read(a);if(o)return o;let s=this._parseFile(e,t,n,r),c=t?yield s:hs(s);i.write(a,c);try{return yield c}catch(e){throw i.remove(a),e}}*_parseFile(e,t,n=Ic.Root,r){let i=yield this.loader.lookup(e,n,t,r);return this.parse(yield this.readFile(!!t,i),i)}},Rc;(function(e){e[e.Number=1]=`Number`,e[e.Literal=2]=`Literal`,e[e.Tag=4]=`Tag`,e[e.Output=8]=`Output`,e[e.HTML=16]=`HTML`,e[e.Filter=32]=`Filter`,e[e.Hash=64]=`Hash`,e[e.PropertyAccess=128]=`PropertyAccess`,e[e.Word=256]=`Word`,e[e.Range=512]=`Range`,e[e.Quoted=1024]=`Quoted`,e[e.Operator=2048]=`Operator`,e[e.FilteredValue=4096]=`FilteredValue`,e[e.Delimited=12]=`Delimited`})(Rc||={});function cre(e){return!!(Jc(e)&Rc.Delimited)}function zc(e){return Jc(e)===Rc.Operator}function Bc(e){return Jc(e)===Rc.HTML}function lre(e){return Jc(e)===Rc.Output}function Vc(e){return Jc(e)===Rc.Tag}function Hc(e){return Jc(e)===Rc.Quoted}function Uc(e){return Jc(e)===Rc.Number}function Wc(e){return Jc(e)===Rc.PropertyAccess}function Gc(e){return Jc(e)===Rc.Word}function Kc(e){return Jc(e)===Rc.Range}function qc(e){return(Jc(e)&1667)>0}function Jc(e){return e?e.kind:-1}function Yc(e){let t=Object.create(null);return e&&Object.assign(t,e),t}var Xc=class e{constructor(e={},t=ac,n={},{memoryLimit:r,renderLimit:i}={}){this.scopes=[Yc()],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!n.sync,this.opts=t,this.globals=n.globals??t.globals,this.environments=ko(e)?e:Object(e),this.strictVariables=n.strictVariables??this.opts.strictVariables,this.ownPropertyOnly=n.ownPropertyOnly??t.ownPropertyOnly,this.memoryLimit=r??new As(`memory alloc`,n.memoryLimit??t.memoryLimit),this.renderLimit=i??new As(`template render`,Vs().now()+(n.renderLimit??t.renderLimit))}getRegister(e,t=void 0){return this.registers[e]=this.registers[e]||t}setRegister(e,t){return this.registers[e]=t}saveRegister(...e){return e.map(e=>[e,this.getRegister(e)])}restoreRegister(e){return e.forEach(([e,t])=>this.setRegister(e,t))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,t)=>fs(e,t),{})}get(e){return this.getSync(e)}getSync(e){return gs(this._get(e))}*_get(e){let t=this.findScope(e[0]);return yield this._getFromScope(t,e)}getFromScope(e,t){return gs(this._getFromScope(e,t))}*_getFromScope(e,t,n=this.strictVariables){mo(t)&&(t=t.split(`.`));for(let r=0;r<t.length;r++)if(e=yield this.readProperty(e,t[r]),n&&To(e))throw new cne(t.slice(0,r+1).join(`.`));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(t={}){return new e(t,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables,ownPropertyOnly:this.ownPropertyOnly},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let t=this.scopes.length-1;t>=0;t--){let n=this.scopes[t];if(e in n)return n}return e in this.environments?this.environments:this.globals}readProperty(e,t){if(e=Co(e),t=bo(t),wo(e))return e;if(Eo(e)&&So(t))return _o(e,t,this.ownPropertyOnly);let n=Zc(e,t,this.ownPropertyOnly);return n===void 0&&e instanceof lo?e.liquidMethodMissing(t,this):ho(n)?n.call(e):t===`size`?fre(e):t===`first`?ure(e,this.ownPropertyOnly):t===`last`?dre(e,this.ownPropertyOnly):n}};function Zc(e,t,n){if(!(n&&!po.call(e,t)&&!(e instanceof lo)))return e[t]}function ure(e,t){return Eo(e)?_o(e,0,t):Zc(e,`first`,t)}function dre(e,t){return Eo(e)?_o(e,-1,t):Zc(e,`last`,t)}function fre(e){if(po.call(e,`size`)||e.size!==void 0)return e.size;if(Eo(e)||mo(e))return e.length;if(typeof e==`object`)return Object.keys(e).length}var Qc;(function(e){e[e.OUTPUT=0]=`OUTPUT`,e[e.STORE=1]=`STORE`})(Qc||={});var pre=Bo(Math.abs),mre=Bo(Math.max),hre=Bo(Math.min),gre=Bo(Math.ceil),_re=Bo((e,t,n=!1)=>n?Math.floor(e/t):e/t),vre=Bo(Math.floor),yre=Bo((e,t)=>e-t),bre=Bo((e,t)=>e+t),xre=Bo((e,t)=>(e%t+t)%t),Sre=Bo((e,t)=>e*t);function Cre(e,t=0){e=xo(e),t=xo(t);let n=10**t,r=e*n*(1+2**-52);return Math.round(r)/n}var wre=Object.freeze({__proto__:null,abs:pre,at_least:mre,at_most:hre,ceil:gre,divided_by:_re,floor:vre,minus:yre,plus:bre,modulo:xre,times:Sre,round:Cre}),Tre=e=>decodeURIComponent(F(e)).replace(/\+/g,` `),Ere=e=>encodeURIComponent(F(e)).replace(/%20/g,`+`),Dre=e=>encodeURIComponent(F(e)).replace(/%20/g,`+`).replace(/[!'()*]/g,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase()),Ore=e=>encodeURI(F(e)).replace(/%5B/g,`[`).replace(/%5D/g,`]`),$c=/[^\p{M}\p{L}\p{Nd}]+/gu,kre={raw:/\s+/g,default:$c,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,ascii:/[^A-Za-z0-9]+/g,latin:$c,none:null};function Are(e,t=`default`,n=!1){e=F(e);let r=kre[t];return r&&(t===`latin`&&(e=jre(e)),e=e.replace(r,`-`).replace(/^-|-$/g,``)),n?e:e.toLowerCase()}function jre(e){return e.replace(/[àáâãäå]/g,`a`).replace(/[æ]/g,`ae`).replace(/[ç]/g,`c`).replace(/[èéêë]/g,`e`).replace(/[ìíîï]/g,`i`).replace(/[ð]/g,`d`).replace(/[ñ]/g,`n`).replace(/[òóôõöø]/g,`o`).replace(/[ùúûü]/g,`u`).replace(/[ýÿ]/g,`y`).replace(/[ß]/g,`ss`).replace(/[œ]/g,`oe`).replace(/[þ]/g,`th`).replace(/[ẞ]/g,`SS`).replace(/[Œ]/g,`OE`).replace(/[Þ]/g,`TH`)}var Mre=Object.freeze({__proto__:null,url_decode:Tre,url_encode:Ere,cgi_escape:Dre,uri_escape:Ore,slugify:Are}),Nre=zo(function(e,t){let n=yo(e),r=wo(t)?` `:F(t),i=r.length*Math.max(n.length-1,0);for(let e=0;e<n.length;e++)i+=String(n[e]).length;return this.context.memoryLimit.use(i),Array.prototype.join.call(n,r)}),Pre=zo(function(e){return Do(e)?_o(e,-1,this.context.ownPropertyOnly):``}),Fre=zo(function(e){return Do(e)?_o(e,0,this.context.ownPropertyOnly):``}),Ire=zo(function(e){let t=yo(e);return this.context.memoryLimit.use(t.length),[...t].reverse()});function*el(e,t,n){let r=[],i=yo(e);this.context.memoryLimit.use(i.length);for(let e of i)r.push([e,t?yield this.context._getFromScope(e,F(t).split(`.`),!1):e]);return r.sort((e,t)=>n(e[1],t[1])).map(e=>e[0])}function*Lre(e,t){return yield*el.call(this,e,t,Lo)}function*Rre(e,t){return yield*el.call(this,e,t,Ro)}var zre=e=>e&&e.length||0;function*Bre(e,t){let n=[],r=yo(e);this.context.memoryLimit.use(r.length);for(let e of r)n.push(yield this.context._getFromScope(e,F(t),!1));return n}function*Vre(e,t){let n=0,r=yo(e);for(let e of r){let r=Number(t?yield this.context._getFromScope(e,F(t),!1):e);n+=Number.isNaN(r)?0:r}return n}function Hre(e){let t=yo(e);return this.context.memoryLimit.use(t.length),Array.prototype.filter.call(t,e=>!wo(bo(e)))}function tl(e,t=[]){let n=yo(e),r=yo(t);return this.context.memoryLimit.use(n.length+r.length),Array.prototype.concat.call(n,r)}function Ure(e,t){return tl.call(this,e,[t])}function Wre(e,t){let n=yo(e);this.context.memoryLimit.use(n.length);let r=[...n];return r.unshift(t),r}function Gre(e){let t=yo(e);this.context.memoryLimit.use(t.length);let n=[...t];return n.pop(),n}function nl(e){let t=yo(e);this.context.memoryLimit.use(t.length);let n=[...t];return n.shift(),n}function rl(e,t,n=1){return e=bo(e),wo(e)?[]:(Eo(e)||(e=F(e)),t=t<0?e.length+t:t,t<0||n<0?Eo(e)?[]:``:(this.context.memoryLimit.use(n),Eo(e)?Array.prototype.slice.call(e,t,t+n):String.prototype.slice.call(e,t,t+n)))}function il(e){return this.context.opts.jekyllWhere?t=>ts.is(e)?Gs(t,e):Eo(t)?qne(t,e):Gs(t,e):e===void 0?e=>Us(e,this.context):t=>Gs(t,e)}function*al(e,t,n,r){let i=[];t=yo(t),this.context.memoryLimit.use(t.length);let a=new fc(F(n)).readScopeValue();for(let e of t)i.push(yield Hs(a,this.context.spawn(e)));let o=il.call(this,r);return Array.prototype.filter.call(t,(t,n)=>o(i[n])===e)}function*ol(e,t,n,r){let i=[],a=new bc(F(r),this.liquid),o=yo(t);this.context.memoryLimit.use(o.length);for(let t of o){this.context.push({[n]:t});let r=yield a.value(this.context);this.context.pop(),r===e&&i.push(t)}return i}function*sl(e,t,n){return yield*al.call(this,!0,e,t,n)}function*cl(e,t,n){return yield*al.call(this,!1,e,t,n)}function*ll(e,t,n){return yield*ol.call(this,!0,e,t,n)}function*ul(e,t,n){return yield*ol.call(this,!1,e,t,n)}function*dl(e,t){let n=new Map;e=vo(e);let r=new fc(F(t)).readScopeValue();this.context.memoryLimit.use(e.length);for(let t of e){let e=yield Hs(r,this.context.spawn(t));n.has(e)||n.set(e,[]),n.get(e).push(t)}return[...n.entries()].map(([e,t])=>({name:e,items:t}))}function*fl(e,t,n){let r=new Map,i=new bc(F(n),this.liquid);e=vo(e),this.context.memoryLimit.use(e.length);for(let n of e){this.context.push({[t]:n});let e=yield i.value(this.context);this.context.pop(),r.has(e)||r.set(e,[]),r.get(e).push(n)}return[...r.entries()].map(([e,t])=>({name:e,items:t}))}function*pl(e,t,n){let r=new fc(F(t)).readScopeValue(),i=yo(e),a=il.call(this,n);for(let e=0;e<i.length;e++)if(a(yield Hs(r,this.context.spawn(i[e]))))return[e,i[e]]}function*ml(e,t,n){let r=new bc(F(n),this.liquid),i=yo(e);for(let e=0;e<i.length;e++){this.context.push({[t]:i[e]});let n=yield r.value(this.context);if(this.context.pop(),n)return[e,i[e]]}}function*hl(e,t,n){return!!(yield*pl.call(this,e,t,n))}function*gl(e,t,n){return!!(yield*ml.call(this,e,t,n))}function*_l(e,t,n){let r=yield*pl.call(this,e,t,n);return r?r[0]:void 0}function*vl(e,t,n){let r=yield*ml.call(this,e,t,n);return r?r[0]:void 0}function*yl(e,t,n){let r=yield*pl.call(this,e,t,n);return r?r[1]:void 0}function*bl(e,t,n){let r=yield*ml.call(this,e,t,n);return r?r[1]:void 0}function xl(e){return e=yo(e),this.context.memoryLimit.use(e.length),[...new Set(e)]}function Sl(e,t=1){if(e=bo(e),wo(e))return[];Eo(e)||(e=F(e)),this.context.memoryLimit.use(e.length);let n=[...e].sort(()=>Math.random()-.5);return t===1?n[0]:n.slice(0,t)}var Cl=Object.freeze({__proto__:null,join:Nre,last:Pre,first:Fre,reverse:Ire,sort:Lre,sort_natural:Rre,size:zre,map:Bre,sum:Vre,compact:Hre,concat:tl,push:Ure,unshift:Wre,pop:Gre,shift:nl,slice:rl,where:sl,reject:cl,where_exp:ll,reject_exp:ul,group_by:dl,group_by_exp:fl,has:hl,has_exp:gl,find_index:_l,find_index_exp:vl,find:yl,find_exp:bl,uniq:xl,sample:Sl});function wl(e,t,n){let r=(e?.length??0)+(n?.length??0);this.context.memoryLimit.use(r);let i=Al(e,this.context.opts,n);return i?(t=bo(t),t=wo(t)?this.context.opts.dateFormat:F(t),this.context.memoryLimit.use(t.length),Ts(i,t,this.context.memoryLimit)):e}function Tl(e){return wl.call(this,e,`%Y-%m-%dT%H:%M:%S%:z`)}function El(e){return wl.call(this,e,`%a, %d %b %Y %H:%M:%S %z`)}function Dl(e,t,n){return kl.call(this,e,`%b`,t,n)}function Ol(e,t,n){return kl.call(this,e,`%B`,t,n)}function kl(e,t,n,r){let i=Al(e,this.context.opts);if(!i)return e;let a=this.context.memoryLimit;if(n===`ordinal`){let e=i.getDate();return r===`US`?Ts(i,`${t} ${e}%q, %Y`,a):Ts(i,`${e}%q ${t} %Y`,a)}return Ts(i,`%d ${t} %Y`,a)}function Al(e,t,n){let r,i=n??t.timezoneOffset,a=t.locale;if(e=bo(e),!wo(e))return r=e===`now`||e===`today`?new ks(Date.now(),a,i):So(e)?new ks(e*1e3,a,i):mo(e)?/^\d+$/.test(e)?new ks(e*1e3,a,i):t.preserveTimezones&&n===void 0?ks.createDateFixedToTimezone(e,a):new ks(e,a,i):new ks(e,a,i),r.valid()?r:void 0}var jl=Object.freeze({__proto__:null,date:wl,date_to_xmlschema:Tl,date_to_rfc822:El,date_to_string:Dl,date_to_long_string:Ol}),Ml=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,Nl=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function Pl(e,t){$o(arguments.length===2,`append expect 2 arguments`);let n=F(e),r=F(t);return this.context.memoryLimit.use(n.length+r.length),n+r}function Fl(e,t){$o(arguments.length===2,`prepend expect 2 arguments`);let n=F(e),r=F(t);return this.context.memoryLimit.use(n.length+r.length),r+n}function Il(e,t){let n=F(e);if(this.context.memoryLimit.use(n.length),t){t=F(t),this.context.memoryLimit.use(t.length);for(let e=0,r=new Set(t);e<n.length;e++)if(!r.has(n[e]))return n.slice(e);return``}return n.trimStart()}function Ll(e){let t=F(e);return this.context.memoryLimit.use(t.length),t.toLowerCase()}function Rl(e){let t=F(e);return this.context.memoryLimit.use(t.length),F(t).toUpperCase()}function zl(e,t){let n=F(e);return t=F(t),this.context.memoryLimit.use(n.length+t.length),n.split(t).join(``)}function Bl(e,t){let n=F(e);return t=F(t),this.context.memoryLimit.use(n.length+t.length),n.replace(t,``)}function Vl(e,t){let n=F(e),r=F(t);this.context.memoryLimit.use(n.length+r.length);let i=n.lastIndexOf(r);return i===-1?n:n.substring(0,i)+n.substring(i+r.length)}function Hl(e,t){if(e=F(e),this.context.memoryLimit.use(e.length),t){t=F(t),this.context.memoryLimit.use(t.length);for(let n=e.length-1,r=new Set(t);n>=0;n--)if(!r.has(e[n]))return e.slice(0,n+1);return``}return e.trimEnd()}function Ul(e,t){let n=F(e);this.context.memoryLimit.use(n.length);let r=n.split(F(t));for(;r.length&&r[r.length-1]===``;)r.pop();return r}function Wl(e,t){let n=F(e);if(this.context.memoryLimit.use(n.length),t){let e=new Set(F(t));this.context.memoryLimit.use(e.size);let r=0,i=n.length-1;for(;e.has(n[r]);)r++;for(;i>=r&&e.has(n[i]);)i--;return n.slice(r,i+1)}return n.trim()}function Gl(e){let t=F(e);return this.context.memoryLimit.use(t.length),t.replace(/\r?\n/gm,``)}function Kl(e){return e=F(e),this.context.memoryLimit.use(e.length),e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function ql(e,t,n){let r=F(e);t=F(t),n=F(n);let i=r.split(t),a=r.length+(i.length-1)*(n.length-t.length);return this.context.memoryLimit.use(a),i.join(n)}function Jl(e,t,n){let r=F(e);return t=F(t),n=F(n),this.context.memoryLimit.use(r.length+t.length+n.length),r.replace(t,()=>n)}function Yl(e,t,n){let r=F(e),i=F(t),a=F(n);this.context.memoryLimit.use(r.length+i.length+a.length);let o=r.lastIndexOf(i);return o===-1?r:r.substring(0,o)+a+r.substring(o+i.length)}function Xl(e,t=50,n=`...`){let r=F(e);return n=F(n),this.context.memoryLimit.use(r.length+n.length),r.length<=t?e:r.substring(0,t-n.length)+n}function Zl(e,t=15,n=`...`){let r=F(e);n=F(n),this.context.memoryLimit.use(r.length+n.length);let i=r.split(/\s+/);t<=0&&(t=1);let a=i.slice(0,t).join(` `);return i.length>=t&&(a+=n),a}function Ql(e){let t=F(e);return this.context.memoryLimit.use(t.length),t.replace(/\s+/g,` `)}function $l(e,t){let n=F(e);if(this.context.memoryLimit.use(n.length),e=n.trim(),!e)return 0;switch(t){case`cjk`:return(e.match(Ml)||[]).length+(e.match(Nl)||[]).length;case`auto`:return Ml.test(e)?e.match(Ml).length+(e.match(Nl)||[]).length:e.split(/\s+/).length;default:return e.split(/\s+/).length}}function eu(e,t=`and`){t=F(t);let n=t.length+e.length*2;for(let t=0;t<e.length;t++)n+=F(e[t]).length;switch(this.context.memoryLimit.use(n),e.length){case 0:return``;case 1:return e[0];case 2:return`${e[0]} ${t} ${e[1]}`;default:return`${e.slice(0,-1).join(`, `)}, ${t} ${e[e.length-1]}`}}var tu=Object.freeze({__proto__:null,append:Pl,prepend:Fl,lstrip:Il,downcase:Ll,upcase:Rl,remove:zl,remove_first:Bl,remove_last:Vl,rstrip:Hl,split:Ul,strip:Wl,strip_newlines:Gl,capitalize:Kl,replace:ql,replace_first:Jl,replace_last:Yl,truncate:Xl,truncatewords:Zl,normalize_whitespace:Ql,number_of_words:$l,array_to_sentence_string:eu});function nu(e){return btoa(String.fromCharCode(...new TextEncoder().encode(e)))}function ru(e){return new TextDecoder().decode(Uint8Array.from(atob(e),e=>e.charCodeAt(0)))}function iu(e){if(typeof Buffer<`u`&&Buffer.isBuffer(e))return this.context.memoryLimit.use(e.byteLength),e.toString(`base64`);let t=F(e);return this.context.memoryLimit.use(t.length),nu(t)}function au(e){let t=F(e);return this.context.memoryLimit.use(t.length),ru(t)}var ou=Object.freeze({__proto__:null,base64_encode:iu,base64_decode:au});function su(e){let t=new Uint8Array(e),n=``;for(let e=0;e<t.length;e++)n+=t[e].toString(16).padStart(2,`0`);return n}function cu(e){return ps(this,void 0,void 0,function*(){let t=new TextEncoder().encode(e);return su(yield crypto.subtle.digest(`SHA-256`,t))})}function lu(e,t){return ps(this,void 0,void 0,function*(){let n=new TextEncoder,r=yield crypto.subtle.importKey(`raw`,n.encode(t),{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]);return su(yield crypto.subtle.sign(`HMAC`,r,n.encode(e)))})}function uu(e){let t=F(e);return this.context.memoryLimit.use(t.length),cu(t)}function du(e,t){let n=F(e),r=F(t);return this.context.memoryLimit.use(n.length+r.length),lu(n,r)}var fu=Object.freeze({__proto__:null,sha256:uu,hmac_sha256:du}),pu=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},rc),wre),Mre),Cl),jl),tu),ou),fu),Zs),mu=class extends hc{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,`expected variable name`),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()===`=`,`expected "="`),this.tokenizer.advance(),this.value=new bc(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},hu=[`offset`,`limit`,`reversed`],gu=class extends hc{constructor(e,t,n,r){super(e,t,n);let i=this.tokenizer.readIdentifier(),a=this.tokenizer.readIdentifier(),o=this.tokenizer.readValue();if(!i.size()||a.content!==`in`||!o)throw Error(`illegal tag: ${e.getText()}`);this.variable=i.content,this.collection=o,this.hash=new gc(this.tokenizer,n.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let s,c=r.parseStream(t).on(`start`,()=>s=this.templates).on(`tag:else`,e=>{es(e.args),s=this.elseTemplates}).on(`tag:endfor`,e=>{es(e.args),c.stop()}).on(`template`,e=>s.push(e)).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)});c.start()}*render(e,t){let n=this.liquid.renderer,r=vo(yield Hs(this.collection,e));if(!r.length){yield n.renderTemplates(this.elseTemplates,e,t);return}let i=`continue-`+this.variable+`-`+this.collection.getText();e.push(Yc({continue:e.getRegister(i,{})}));let a=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(a).filter(e=>hu.includes(e)):hu.filter(e=>a[e]!==void 0)).reduce((e,t)=>t===`offset`?vu(e,a.offset):t===`limit`?yu(e,a.limit):_u(e),r),e.setRegister(i,(a.offset||0)+r.length);let o=Yc({forloop:new ns(r.length,this.collection.getText(),this.variable)});e.push(o);for(let i of r){if(o[this.variable]=i,e.continueCalled=e.breakCalled=!1,yield n.renderTemplates(this.templates,e,t),e.breakCalled)break;o.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){let e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(let e of Object.values(this.hash.hash))qc(e)&&(yield e)}blockScope(){return[this.variable,`forloop`]}};function _u(e){return[...e].reverse()}function vu(e,t){return e.slice(t)}function yu(e,t){return e.slice(0,t)}var bu=class extends hc{constructor(e,t,n,r){for(super(e,t,n),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;t.length;){let e=t.shift();if(Vc(e)&&e.name===`endcapture`)return;this.templates.push(r.parseToken(e,t))}throw Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted(),e))return e;throw this.tokenizer.error(`invalid capture name`)}*render(e){let t=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=t}*children(){return this.templates}*localScope(){yield this.identifier}},xu=class extends hc{constructor(e,t,n,r){super(e,t,n),this.branches=[],this.elseTemplates=[],this.value=new bc(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let i=[],a=0,o=r.parseStream(t).on(`tag:when`,e=>{if(a>0)return;i=[];let t=[];for(;!e.tokenizer.end();)t.push(e.tokenizer.readValueOrThrow()),e.tokenizer.skipBlank(),e.tokenizer.peek()===`,`?e.tokenizer.readTo(`,`):e.tokenizer.readTo(`or`);this.branches.push({values:t,templates:i})}).on(`tag:else`,()=>{a++,i=this.elseTemplates}).on(`tag:endcase`,()=>o.stop()).on(`template`,e=>{(i!==this.elseTemplates||a===1)&&i.push(e)}).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)});o.start()}*render(e,t){let n=this.liquid.renderer,r=bo(yield this.value.value(e,e.opts.lenientIf)),i=!1;for(let a of this.branches)for(let o of a.values)if(Gs(r,yield Hs(o,e,e.opts.lenientIf))){yield n.renderTemplates(a.templates,e,t),i=!0;break}i||(yield n.renderTemplates(this.elseTemplates,e,t))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},Su=class extends hc{constructor(e,t,n){for(super(e,t,n);t.length;){let e=t.shift();if(Vc(e)&&e.name===`endcomment`)return}throw Error(`tag ${e.getText()} not closed`)}render(){}},Cu=class extends hc{constructor(e,t,n,r){super(e,t,n);let i=this.tokenizer;for(this.file=wu(i,this.liquid,r),this.currentFile=e.file;!i.end();){i.skipBlank();let e=i.p,t=i.readIdentifier();if((t.content===`with`||t.content===`for`)&&(i.skipBlank(),i.peek()!==`:`)){let e=i.readValue();if(e){let n=i.p,r=i.readIdentifier(),a;r.content===`as`?a=i.readIdentifier():i.p=n;let o={value:e,alias:a&&a.content};t.content===`with`?this.with=o:this.forBinding=o,i.skipBlank(),i.peek()===`,`&&i.advance();continue}}i.p=e;break}this.hash=new gc(i,n.options.keyValueSeparator)}*render(e,t){let{liquid:n,hash:r}=this,i=yield Eu(this.file,e,n);$o(i,()=>`illegal file path "${i}"`);let a=e.spawn(),o=a.bottom();if(fs(o,yield r.render(e)),this.with){let{value:t,alias:n}=this.with;o[n||i]=yield Hs(t,e)}if(this.forBinding){let{value:r,alias:s}=this.forBinding,c=vo(yield Hs(r,e));o.forloop=new ns(c.length,r.getText(),s);for(let e of c){o[s]=e;let r=yield n._parsePartialFile(i,a.sync,this.currentFile);yield n.renderer.renderTemplates(r,a,t),o.forloop.next()}}else{let e=yield n._parsePartialFile(i,a.sync,this.currentFile);yield n.renderer.renderTemplates(e,a,t)}}*children(e,t){return e&&mo(this.file)?yield this.liquid._parsePartialFile(this.file,t,this.currentFile):[]}partialScope(){if(mo(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:t,alias:n}=this.with;mo(n)?e.push([n,t]):mo(this.file)&&e.push([this.file,t])}if(this.forBinding){let{value:t,alias:n}=this.forBinding;mo(n)?e.push([n,t]):mo(this.file)&&e.push([this.file,t])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(let e of Object.values(this.hash.hash))qc(e)&&(yield e);if(this.with){let{value:e}=this.with;qc(e)&&(yield e)}if(this.forBinding){let{value:e}=this.forBinding;qc(e)&&(yield e)}}};function wu(e,t,n){if(t.options.dynamicPartials){let t=e.readValue();return e.assert(t,`illegal file path`),t.getText()===`none`?void 0:Hc(t)?Tu(n.parse(Hne(t))):t}let r=[...e.readFileNameTemplate(t.options)],i=Tu(n.parseTokens(r));return i===`none`?void 0:i}function Tu(e){return e.length===1&&Bc(e[0].token)?e[0].token.getContent():e}function*Eu(e,t,n){return typeof e==`string`?e:Array.isArray(e)?n.renderer.renderTemplates(e,t):yield Hs(e,t)}var Du=class extends hc{constructor(e,t,n,r){super(e,t,n);let{tokenizer:i}=e;this.file=wu(i,this.liquid,r),this.currentFile=e.file;let a=i.p;i.readIdentifier().content===`with`?(i.skipBlank(),i.peek()===`:`?i.p=a:this.withVar=i.readValue()):i.p=a,this.hash=new gc(i,n.options.jekyllInclude||n.options.keyValueSeparator)}*render(e,t){let{liquid:n,hash:r,withVar:i}=this,{renderer:a}=n,o=yield Eu(this.file,e,n);$o(o,()=>`illegal file path "${o}"`);let s=e.saveRegister(`blocks`,`blockMode`);e.setRegister(`blocks`,{}),e.setRegister(`blockMode`,Qc.OUTPUT);let c=Yc(yield r.render(e));i&&(c[o]=yield Hs(i,e));let l=yield n._parsePartialFile(o,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?Yc({include:c}):c),yield a.renderTemplates(l,e,t),e.pop(),e.restoreRegister(s)}*children(e,t){return e&&mo(this.file)?yield this.liquid._parsePartialFile(this.file,t,this.currentFile):[]}partialScope(){if(mo(this.file)){let e;return this.liquid.options.jekyllInclude?e=[`include`]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(qc),qc(this.file)&&(yield this.file),qc(this.withVar)&&(yield this.withVar)}},Ou=class extends hc{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,t){let n=e.environments;So(n[this.variable])||(n[this.variable]=0),t.write(F(--n[this.variable]))}*localScope(){yield this.identifier}},ku=class extends hc{constructor(e,t,n){super(e,t,n),this.candidates=[];let r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(this.tokenizer.peek()===`:`?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){let e=this.tokenizer.readValue();e&&this.candidates.push(e),this.tokenizer.readTo(`,`)}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,t){let n=`cycle:${yield Hs(this.group,e)}:`+this.candidates.join(`,`),r=e.getRegister(`cycle`,{}),i=r[n];i===void 0&&(i=r[n]=0);let a=this.candidates[i];return i=(i+1)%this.candidates.length,r[n]=i,yield Hs(a,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},Au=class extends hc{constructor(e,t,n,r){super(e,t,n),this.branches=[];let i=[];r.parseStream(t).on(`start`,()=>this.branches.push({value:new bc(e.tokenizer.readFilteredValue(),this.liquid),templates:i=[]})).on(`tag:elsif`,e=>{$o(!this.elseTemplates,`unexpected elsif after else`),this.branches.push({value:new bc(e.tokenizer.readFilteredValue(),this.liquid),templates:i=[]})}).on(`tag:else`,e=>{es(e.args),$o(!this.elseTemplates,`duplicated else`),i=this.elseTemplates=[]}).on(`tag:endif`,function(e){es(e.args),this.stop()}).on(`template`,e=>i.push(e)).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)}).start()}*render(e,t){let n=this.liquid.renderer;for(let{value:r,templates:i}of this.branches)if(Us(yield r.value(e,e.opts.lenientIf),e)){yield n.renderTemplates(i,e,t);return}yield n.renderTemplates(this.elseTemplates||[],e,t)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},ju=class extends hc{constructor(e,t,n){super(e,t,n),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,t){let n=e.environments;So(n[this.variable])||(n[this.variable]=0);let r=n[this.variable];n[this.variable]++,t.write(F(r))}*localScope(){yield this.identifier}},Mu=class extends hc{constructor(e,t,n,r){super(e,t,n),this.file=wu(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new gc(this.tokenizer,n.options.keyValueSeparator),this.templates=r.parseTokens(t)}*render(e,t){let{liquid:n,args:r,file:i}=this,{renderer:a}=n;if(i===void 0){e.setRegister(`blockMode`,Qc.OUTPUT),yield a.renderTemplates(this.templates,e,t);return}let o=yield Eu(this.file,e,n);$o(o,()=>`illegal file path "${o}"`);let s=yield n._parseLayoutFile(o,e.sync,this.currentFile);e.setRegister(`blockMode`,Qc.STORE);let c=yield a.renderTemplates(this.templates,e),l=e.getRegister(`blocks`,{});l[``]===void 0&&(l[``]=(e,t)=>t.write(c)),e.setRegister(`blockMode`,Qc.OUTPUT),e.push(Yc(yield r.render(e))),yield a.renderTemplates(s,e,t),e.pop()}*children(e){let t=this.templates.slice();return e&&mo(this.file)&&t.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),t}*arguments(){for(let e of Object.values(this.args.hash))qc(e)&&(yield e);qc(this.file)&&(yield this.file)}partialScope(){if(mo(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},Nu=class extends hc{constructor(e,t,n,r){super(e,t,n),this.templates=[];let i=/\w+/.exec(e.args);for(this.block=i?i[0]:``;t.length;){let e=t.shift();if(Vc(e)&&e.name===`endblock`)return;let n=r.parseToken(e,t);this.templates.push(n)}throw Error(`tag ${e.getText()} not closed`)}*render(e,t){let n=this.getBlockRender(e);e.getRegister(`blockMode`)===Qc.STORE?e.getRegister(`blocks`,{})[this.block]=n:yield n(new os,t)}getBlockRender(e){let t=this,{liquid:n,templates:r}=this,i=e.getRegister(`blocks`,{})[this.block],a=function*(i,a){let o=e.getRegister(`blockStack`,[]);if(o.includes(t))throw Error(`block tag cannot be nested`);o.push(t),e.push(Yc({block:i})),yield n.renderer.renderTemplates(r,e,a),e.pop(),o.pop()};return i?(e,t)=>i(new os(t=>a(e,t)),t):a}*children(){return this.templates}blockScope(){return[`block`]}},Pu=class extends hc{constructor(e,t,n){for(super(e,t,n),this.tokens=[];t.length;){let e=t.shift();if(Vc(e)&&e.name===`endraw`)return;this.tokens.push(e)}throw Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join(``)}},Fu=class extends ns{constructor(e,t,n,r){super(e,n,r),this.length=e,this.cols=t}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}},Iu={assign:mu,for:gu,capture:bu,case:xu,comment:Su,include:Du,render:Cu,decrement:Ou,increment:ju,cycle:ku,if:Au,layout:Mu,block:Nu,raw:Pu,tablerow:class extends hc{constructor(e,t,n,r){super(e,t,n);let i=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();let a=this.tokenizer.readIdentifier(),o=this.tokenizer.readValue();if(a.content!==`in`||!o)throw Error(`illegal tag: ${e.getText()}`);this.variable=i.content,this.collection=o,this.args=new gc(this.tokenizer,n.options.keyValueSeparator),this.templates=[];let s,c=r.parseStream(t).on(`start`,()=>s=this.templates).on(`tag:endtablerow`,()=>c.stop()).on(`template`,e=>s.push(e)).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)});c.start()}*render(e,t){let n=vo(yield Hs(this.collection,e)),r=yield this.args.render(e),i=r.offset||0,a=r.limit===void 0?n.length:r.limit;n=n.slice(i,i+a);let o=r.cols||n.length,s=this.liquid.renderer,c=new Fu(n.length,o,this.collection.getText(),this.variable),l=Yc({tablerowloop:c});e.push(l);for(let r=0;r<n.length;r++,c.next())l[this.variable]=n[r],c.col0()===0&&(c.row()!==1&&t.write(`</tr>`),t.write(`<tr class="row${c.row()}">`)),t.write(`<td class="col${c.col()}">`),yield s.renderTemplates(this.templates,e,t),t.write(`</td>`);n.length&&t.write(`</tr>`),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(let e of Object.values(this.args.hash))qc(e)&&(yield e)}blockScope(){return[this.variable,`tablerowloop`]}},unless:class extends hc{constructor(e,t,n,r){super(e,t,n),this.branches=[],this.elseTemplates=[];let i=[],a=0;r.parseStream(t).on(`start`,()=>this.branches.push({value:new bc(e.tokenizer.readFilteredValue(),this.liquid),test:Ws,templates:i=[]})).on(`tag:elsif`,e=>{if(a>0){i=[];return}this.branches.push({value:new bc(e.tokenizer.readFilteredValue(),this.liquid),test:Us,templates:i=[]})}).on(`tag:else`,()=>{a++,i=this.elseTemplates}).on(`tag:endunless`,function(){this.stop()}).on(`template`,e=>{(i!==this.elseTemplates||a===1)&&i.push(e)}).on(`end`,()=>{throw Error(`tag ${e.getText()} not closed`)}).start()}*render(e,t){let n=this.liquid.renderer;for(let{value:r,test:i,templates:a}of this.branches)if(i(yield r.value(e,e.opts.lenientIf),e)){yield n.renderTemplates(a,e,t);return}yield n.renderTemplates(this.elseTemplates,e,t)}*children(){let e=this.branches.flatMap(e=>e.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},break:class extends hc{render(e,t){e.breakCalled=!0}},continue:class extends hc{render(e,t){e.continueCalled=!0}},echo:class extends hc{constructor(e,t,n){super(e,t,n),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new bc(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,t){if(!this.value)return;let n=yield this.value.value(e,!1);t.write(n)}*arguments(){this.value&&(yield this.value)}},liquid:class extends hc{constructor(e,t,n,r){super(e,t,n);let i=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(i)}*render(e,t){yield this.liquid.renderer.renderTemplates(this.templates,e,t)}*children(){return this.templates}},"#":class extends hc{constructor(e,t,n){if(super(e,t,n),e.args.search(/\n\s*[^#\s]/g)!==-1)throw Error(`every line of an inline comment must start with a '#' character`)}render(){}}},Lu=class e{constructor(e={}){this.renderer=new zne,this.filters=Object.create(null),this.tags=Object.create(null),this.options=oc(e),this.parser=new Lc(this),Oo(Iu,(e,t)=>this.registerTag(t,e)),Oo(pu,(e,t)=>this.registerFilter(t,e))}parse(e,t){return new Lc(this).parse(e,t)}_render(e,t,n){let r=t instanceof Xc?t:new Xc(t,this.options,n);return this.renderer.renderTemplates(e,r)}render(e,t,n){return ps(this,void 0,void 0,function*(){return hs(this._render(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}renderSync(e,t,n){return gs(this._render(e,t,Object.assign(Object.assign({},n),{sync:!0})))}renderToNodeStream(e,t,n={}){let r=new Xc(t,this.options,n);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,t,n){let r=this.parse(e);return this._render(r,t,n)}parseAndRender(e,t,n){return ps(this,void 0,void 0,function*(){return hs(this._parseAndRender(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}parseAndRenderSync(e,t,n){return gs(this._parseAndRender(e,t,Object.assign(Object.assign({},n),{sync:!0})))}_parsePartialFile(e,t,n){return new Lc(this).parseFile(e,t,Ic.Partials,n)}_parseLayoutFile(e,t,n){return new Lc(this).parseFile(e,t,Ic.Layouts,n)}_parseFile(e,t,n,r){return new Lc(this).parseFile(e,t,n,r)}parseFile(e,t){return ps(this,void 0,void 0,function*(){return hs(new Lc(this).parseFile(e,!1,t))})}parseFileSync(e,t){return gs(new Lc(this).parseFile(e,!0,t))}*_renderFile(e,t,n){let r=yield this._parseFile(e,n.sync,n.lookupType);return yield this._render(r,t,n)}renderFile(e,t,n){return ps(this,void 0,void 0,function*(){return hs(this._renderFile(e,t,Object.assign(Object.assign({},n),{sync:!1})))})}renderFileSync(e,t,n){return gs(this._renderFile(e,t,Object.assign(Object.assign({},n),{sync:!0})))}renderFileToNodeStream(e,t,n){return ps(this,void 0,void 0,function*(){let r=yield this.parseFile(e);return this.renderToNodeStream(r,t,n)})}_evalValue(e,t){let n=new bc(e,this),r=t instanceof Xc?t:new Xc(t,this.options);return n.value(r)}evalValue(e,t){return ps(this,void 0,void 0,function*(){return hs(this._evalValue(e,t))})}evalValueSync(e,t){return gs(this._evalValue(e,t))}registerFilter(e,t){this.filters[e]=t}registerTag(e,t){this.tags[e]=ho(t)?t:_c(t)}plugin(t){return t.call(this,e)}express(){let e=this,t=!0;return function(n,r,i){if(t){t=!1;let n=cc(this.root);e.options.root.unshift(...n),e.options.layouts.unshift(...n),e.options.partials.unshift(...n)}e.renderFile(n,r).then(e=>i(null,e),i)}}analyze(e,t={}){return ps(this,void 0,void 0,function*(){return Dc(e,t)})}analyzeSync(e,t={}){return Oc(e,t)}parseAndAnalyze(e,t,n={}){return ps(this,void 0,void 0,function*(){return Dc(this.parse(e,t),n)})}parseAndAnalyzeSync(e,t,n={}){return Oc(this.parse(e,t),n)}variables(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Object.keys(n.variables)})}variablesSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Object.keys(n.variables)}fullVariables(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.variables).flatMap(e=>e.map(e=>String(e)))))})}fullVariablesSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.variables).flatMap(e=>e.map(e=>String(e)))))}variableSegments(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Array.from(Vo(Object.values(n.variables).flatMap(e=>e.map(e=>e.toArray()))))})}variableSegmentsSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Array.from(Vo(Object.values(n.variables).flatMap(e=>e.map(e=>e.toArray()))))}globalVariables(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Object.keys(n.globals)})}globalVariablesSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Object.keys(n.globals)}globalFullVariables(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.globals).flatMap(e=>e.map(e=>String(e)))))})}globalFullVariablesSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Array.from(new Set(Object.values(n.globals).flatMap(e=>e.map(e=>String(e)))))}globalVariableSegments(e,t={}){return ps(this,void 0,void 0,function*(){let n=yield Dc(mo(e)?this.parse(e):e,t);return Array.from(Vo(Object.values(n.globals).flatMap(e=>e.map(e=>e.toArray()))))})}globalVariableSegmentsSync(e,t={}){let n=Oc(mo(e)?this.parse(e):e,t);return Array.from(Vo(Object.values(n.globals).flatMap(e=>e.map(e=>e.toArray()))))}};function Ru(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function zu(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/'/g,`\\'`).replace(/\(/g,`\\(`).replace(/\)/g,`\\)`).replace(/\n/g,``).replace(/\r/g,``).replace(/\t/g,``)}function Bu(e){if(!e)return``;try{let t=new URL(e);return[`http:`,`https:`,`data:`].includes(t.protocol)?Ru(e):``}catch{return e.startsWith(`/`)?Ru(e):``}}function Vu(e){return e&&/^(#[0-9a-fA-F]{3,8}|rgba?\([^)]+\)|hsla?\([^)]+\)|[a-zA-Z]+)$/.test(e.trim())?e.trim():``}function Hu(e){if(!e)return`#f5f5f5`;if(typeof e==`string`)return Vu(e)||`#f5f5f5`;let{type:t,start:n,end:r,angle_deg:i}=e;if(t===`linear-gradient`&&n&&r){let e=Vu(n),t=Vu(r);if(e&&t)return`linear-gradient(${typeof i==`number`?i:180}deg, ${e}, ${t})`}if(n){let e=Vu(n);if(e)return e}return`#f5f5f5`}function Uu(e,t){if(e?.background_image_url){let t=Bu(e.background_image_url);if(t)return`${Vu(e.background_color)||`#f5f5f5`} url("${zu(t)}") center / cover no-repeat`}if(e?.background_color){let t=Vu(e.background_color);if(t)return t}return Hu(t)}var Wu=(e,t)=>{try{return t(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,e=>{try{return t(e)}catch{return e}})}},Gu=decodeURIComponent,Ku=/^[\w!#$%&'*.^`|~+-]+$/,qu=/^[ !#-:<-[\]-~]*$/,Ju=e=>{let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==32&&n!==9)break;t++}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==32&&t!==9)break;n--}return t===0&&n===e.length?e:e.slice(t,n)},Yu=(e,t)=>{if(t&&e.indexOf(t)===-1)return{};let n=e.split(`;`),r=Object.create(null);for(let e of n){let n=e.indexOf(`=`);if(n===-1)continue;let i=Ju(e.substring(0,n));if(t&&t!==i||!Ku.test(i)||i in r)continue;let a=Ju(e.substring(n+1));if(a.startsWith(`"`)&&a.endsWith(`"`)&&(a=a.slice(1,-1)),qu.test(a)&&(r[i]=a.indexOf(`%`)===-1?a:Wu(a,Gu),t))break}return r},Kre=(e,t,n={})=>{if(!Ku.test(e))throw Error(`Invalid cookie name`);let r=`${e}=${t}`;if(e.startsWith(`__Secure-`)&&!n.secure)throw Error(`__Secure- Cookie must have Secure attributes`);if(e.startsWith(`__Host-`)){if(!n.secure)throw Error(`__Host- Cookie must have Secure attributes`);if(n.path!==`/`)throw Error(`__Host- Cookie must have Path attributes with "/"`);if(n.domain)throw Error(`__Host- Cookie must not have Domain attributes`)}for(let e of[`domain`,`path`,`sameSite`,`priority`])if(n[e]&&/[;\r\n]/.test(n[e]))throw Error(`${e} must not contain ";", "\\r", or "\\n"`);if(n&&typeof n.maxAge==`number`&&n.maxAge>=0){if(n.maxAge>3456e4)throw Error(`Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.`);r+=`; Max-Age=${n.maxAge|0}`}if(n.domain&&n.prefix!==`host`&&(r+=`; Domain=${n.domain}`),n.path&&(r+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw Error(`Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.`);r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+=`; HttpOnly`),n.secure&&(r+=`; Secure`),n.sameSite&&(r+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.priority&&(r+=`; Priority=${n.priority.charAt(0).toUpperCase()+n.priority.slice(1)}`),n.partitioned){if(!n.secure)throw Error(`Partitioned Cookie must have Secure attributes`);r+=`; Partitioned`}return r},Xu=(e,t,n)=>(t=encodeURIComponent(t),Kre(e,t,n)),qre=(e,t,n)=>{let r=e.req.raw.headers.get(`Cookie`);if(typeof t==`string`){if(!r)return;let e=t;return n===`secure`?e=`__Secure-`+t:n===`host`&&(e=`__Host-`+t),Yu(r,e)[e]}return r?Yu(r):{}},Jre=(e,t,n)=>{let r;return r=n?.prefix===`secure`?Xu(`__Secure-`+e,t,{path:`/`,...n,secure:!0}):n?.prefix===`host`?Xu(`__Host-`+e,t,{...n,path:`/`,secure:!0,domain:void 0}):Xu(e,t,{path:`/`,...n}),r},Zu=(e,t,n,r)=>{let i=Jre(t,n,r);e.header(`Set-Cookie`,i,{append:!0})},Qu=`mrp5hprf`,Yre=c({common:()=>$u,consent:()=>ed,default:()=>Xre,invitation:()=>td,login:()=>nd,mfa:()=>rd,organizations:()=>ad,passkeys:()=>id,signup:()=>od,status:()=>sd}),$u={common:{alertListTitle:`Upozornění`,backText:`Vrátit se zpět`,cancelText:`Zrušit`,closeText:`Zavřít`,contactSupportText:`Potřebujete pomoc?`,continueText:`Pokračovat`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Něco se pokazilo. Zkuste to prosím znovu.`,hidePasswordText:`Skrýt heslo`,loadingText:`Načítání...`,orText:`nebo`,privacyPolicyText:`Zásady ochrany osobních údajů`,showPasswordText:`Zobrazit heslo`,termsOfServiceText:`Podmínky služby`,termsShortText:`Podmínky`,tryAgainText:`Zkusit znovu`}},ed={consent:{buttonText:`Přijmout`,cancelButtonText:`Zamítnout`,description:"${clientName} žádá o přístup k vašemu účtu",pageTitle:"Autorizace | ${clientName}",scopesTitle:"Tímto povolíte ${clientName}:",title:"Autorizovat ${clientName}"}},td={invitation:{acceptButtonText:`Přijmout pozvánku`,description:"${inviterName} vás pozval(a), abyste se připojili k ${organizationName} na ${clientName}",pageTitle:"Pozvánka | ${clientName}",title:`Byli jste pozváni`}},nd={login:{alertListTitle:`Upozornění`,buttonText:`Pokračovat`,description:"Přihlaste se k ${clientName}.",editEmailText:`Upravit`,emailPlaceholder:`E-mailová adresa`,enterACodeBtn:`Přihlásit se kódem`,federatedConnectionButtonText:"Pokračovat s ${connectionName}",footerLinkText:`Zaregistrujte se`,footerText:`Nemáte účet?`,forgotPasswordText:`Zapomněli jste heslo?`,hidePasswordText:`Skrýt heslo`,invalidEmail:`Neplatný e-mail`,invalidIdentifier:`Neplatný e-mail nebo uživatelské jméno`,invitationDescription:"Přihlaste se pro přijetí pozvánky od ${inviterName} k připojení k ${companyName} na ${clientName}.",invitationTitle:`Byli jste pozváni!`,logoAltText:"${companyName}","no-email":`Zadejte prosím e-mailovou adresu`,"no-password":`Heslo je povinné`,pageTitle:"Přihlášení | ${clientName}",passwordLoginNotAvailable:`Přihlášení heslem není k dispozici`,passwordPlaceholder:`Heslo`,phonePlaceholder:`Telefonní číslo`,separatorText:`nebo`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,showPasswordText:`Zobrazit heslo`,signupActionLinkText:"${footerLinkText}",signupActionText:"${footerText}",title:`Vítejte`,tooManyFailedLogins:`Příliš mnoho neúspěšných pokusů o přihlášení. Zkuste to prosím později.`,unverifiedEmail:`Před přihlášením prosím ověřte svou e-mailovou adresu`,userAccountDoesNotExist:`Uživatelský účet neexistuje`,usernamePlaceholder:`Uživatelské jméno nebo e-mailová adresa`,usernameTooLong:"Uživatelské jméno musí mít nejvýše ${max} znaků",usernameTooShort:"Uživatelské jméno musí mít alespoň ${min} znaků",wrongCredentials:`Nesprávné uživatelské jméno nebo heslo`,passkeyButtonText:`Přihlásit se pomocí passkey`}},rd={mfa:{backupCodeText:`Použít záložní kód`,description:`Zvolte metodu ověření`,pageTitle:"Vícefaktorové ověření | ${clientName}",title:`Ověřte svou identitu`}},id={"passkey-enrollment-nudge":{title:`Zabezpečte svůj účet pomocí passkey`,description:`Passkey používají biometrii nebo PIN vašeho zařízení k rychlejšímu a bezpečnějšímu přihlášení.`,enrollButtonText:`Nastavit passkey`,snoozeButtonText:`Možná později`,optOutLinkText:`Nezobrazovat znovu`,pageTitle:"Nastavení Passkey | ${clientName}"},"passkey-enrollment":{title:`Vytvořte svůj passkey`,description:`Postupujte podle pokynů prohlížeče a vytvořte passkey pro tento účet.`,errorMessage:`Vytvoření passkey se nezdařilo. Zkuste to prosím znovu.`,cancelLinkText:`Prozatím přeskočit`,retryButtonText:`Zkusit znovu`,enrollmentComplete:`Váš passkey byl úspěšně nastaven. Tuto stránku můžete zavřít.`,pageTitle:"Vytvoření Passkey | ${clientName}"},"passkey-challenge":{title:`Přihlásit se pomocí passkey`,description:`Postupujte podle pokynů prohlížeče k ověření vaší identity.`,errorMessage:`Ověření pomocí passkey selhalo. Zkuste to prosím znovu.`,cancelLinkText:`Zpět na přihlášení`,retryButtonText:`Zkusit znovu`,pageTitle:"Přihlášení pomocí passkey | ${clientName}"}},ad={organizations:{description:`Vyberte, ke které organizaci se chcete přihlásit`,pageTitle:"Výběr organizace | ${clientName}",searchPlaceholder:`Hledat organizace`,title:`Vyberte svou organizaci`}},od={signup:{buttonText:`Pokračovat`,confirmPasswordPlaceholder:`Potvrzení hesla`,description:`Zaregistrujte se a pokračujte`,"email-already-exists":`Tento e-mail je již zaregistrován`,emailPlaceholder:`E-mailová adresa`,federatedConnectionButtonText:"Pokračovat s ${connectionName}",hidePasswordText:`Skrýt heslo`,"invalid-email-format":`Neplatný e-mail`,loginActionLinkText:`Přihlásit se`,loginActionText:`Už máte účet?`,"no-email":`Zadejte prosím e-mailovou adresu`,"no-password":`Heslo je povinné`,"no-username":`Uživatelské jméno je povinné`,pageTitle:"Registrace | ${clientName}",passwordPlaceholder:`Heslo`,passwordsDidntMatch:`Hesla se neshodují`,phonePlaceholder:`Telefonní číslo`,privacyPolicyLinkText:`Zásady ochrany osobních údajů`,separatorText:`nebo`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,showPasswordText:`Zobrazit heslo`,termsOfServiceLinkText:`Podmínky služby`,termsText:`Registrací souhlasíte s našimi`,title:`Vytvořte svůj účet`,"username-already-exists":`Toto uživatelské jméno je již obsazeno`,usernamePlaceholder:`Uživatelské jméno`,verifyEmailText:`Zkontrolujte prosím svůj e-mail pro ověření účtu`}},sd={status:{continueButtonText:`Pokračovat`,errorTitle:`Chyba`,pageTitle:"Stav | ${clientName}",successTitle:`Hotovo`,title:`Stav`}},Xre={common:$u,consent:ed,"device-flow":{"device-flow":{buttonText:`Pokračovat`,codePlaceholder:`Zadejte kód`,description:`Zadejte kód zobrazený na vašem zařízení`,"expired-code":`Platnost kódu vypršela`,"invalid-code":`Zadaný kód je neplatný`,pageTitle:"Aktivace zařízení | ${clientName}",title:`Aktivujte své zařízení`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Přihlásit se`,codeLabel:`Ověřovací kód`,codePlaceholder:`Zadejte kód`,defaultDescription:`Zadejte ověřovací kód zaslaný na váš e-mail`,description:"Odeslali jsme kód na ${email}","invalid-code":`Neplatný kód`,noCode:`Zadejte prosím ověřovací kód`,pageTitle:"Zadejte kód | ${clientName}",resendText:`Opětovné odeslání kódu`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,title:`Zkontrolujte svůj e-mail`,unexpectedError:`Došlo k neočekávané chybě`}},"email-verification":{"email-verification":{description:"Odeslali jsme e-mail na ${email}",pageTitle:"Ověření e-mailu | ${clientName}",resendText:`Opětovné odeslání kódu`,successDescription:`Váš e-mail byl úspěšně ověřen.`,successTitle:`E-mail ověřen`,title:`Ověření e-mailu`}},invitation:td,login:nd,"login-id":{"login-id":{alertListTitle:`Upozornění`,"auth0-users-validation":`Něco se pokazilo, zkuste to prosím později`,"authentication-failure":`Omlouváme se, při pokusu o přihlášení se něco pokazilo`,buttonText:`Pokračovat`,"captcha-client-failure":`Nepodařilo se načíst bezpečnostní výzvu. Zkuste to prosím znovu. (Kód chyby: #{errorCode})`,"captcha-validation-failure":`Omlouváme se, při ověřování captcha došlo k chybě. Zkuste to prosím znovu.`,captchaCodePlaceholder:`Zadejte kód zobrazený výše`,"custom-script-error-code":`Něco se pokazilo, zkuste to prosím později.`,description:"Přihlaste se k ${clientName}.",editEmailText:`Upravit`,emailPlaceholder:`E-mailová adresa`,federatedConnectionButtonText:"Pokračovat s ${connectionName}",footerLinkText:`Zaregistrujte se`,footerText:`Nemáte účet?`,forgotPasswordText:`Zapomněli jste heslo?`,hidePasswordText:`Skrýt heslo`,"invalid-captcha":`Vyřešte úlohu, abyste ověřili, že nejste robot.`,"invalid-code":`Neplatný kód`,"invalid-connection":`Neplatné připojení`,"invalid-email-format":`Neplatný e-mail`,"invalid-email-phone":`Zadejte platnou e-mailovou adresu nebo telefonní číslo. Telefonní čísla musí obsahovat předvolbu země.`,"invalid-email-phone-username":`Zadejte platnou e-mailovou adresu, telefonní číslo nebo uživatelské jméno. Telefonní čísla musí obsahovat předvolbu země.`,"invalid-email-username":`Zadejte platnou e-mailovou adresu nebo uživatelské jméno`,"invalid-expired-code":`Neplatný nebo vypršelý uživatelský kód`,"invalid-login-id":`Zadáno neplatné přihlašovací ID`,"invalid-phone-username":`Zadejte platné telefonní číslo nebo uživatelské jméno. Telefonní čísla musí obsahovat předvolbu země.`,"invalid-recaptcha":`Zaškrtněte políčko, abyste ověřili, že nejste robot.`,"invalid-username":"Uživatelské jméno může obsahovat pouze alfanumerické znaky nebo: '${characters}'. Uživatelské jméno musí mít ${min} až ${max} znaků.",invitationDescription:"Přihlaste se pro přijetí pozvánky od ${inviterName} k připojení k ${companyName} na ${clientName}.",invitationTitle:`Byli jste pozváni!`,"ip-blocked":`Zjistili jsme podezřelé přihlašovací chování a další pokusy budou blokovány. Kontaktujte prosím administrátora.`,logoAltText:"${companyName}","no-db-connection":`Neplatné připojení`,"no-email":`Zadejte prosím e-mailovou adresu`,"no-email-phone":`Je vyžadována e-mailová adresa nebo telefonní číslo`,"no-email-phone-username":`Je vyžadováno telefonní číslo, uživatelské jméno nebo e-mailová adresa`,"no-email-username":`Je vyžadována e-mailová adresa nebo uživatelské jméno`,"no-password":`Heslo je povinné`,"no-phone":`Zadejte prosím telefonní číslo`,"no-phone-username":`Je vyžadováno telefonní číslo nebo uživatelské jméno`,"no-username":`Uživatelské jméno je povinné`,pageTitle:"Přihlášení | ${clientName}","password-breached":`Zjistili jsme potenciální bezpečnostní problém s tímto účtem. Pro ochranu vašeho účtu jsme toto přihlášení zablokovali. Pro pokračování prosím resetujte své heslo.`,passwordPlaceholder:`Heslo`,phoneOrEmailPlaceholder:`E-mail nebo telefonní číslo`,phoneOrUsernameOrEmailPlaceholder:`Telefon, uživatelské jméno nebo e-mail`,phoneOrUsernamePlaceholder:`Telefonní číslo nebo uživatelské jméno`,phonePlaceholder:`Telefonní číslo`,"same-user-login":`Příliš mnoho pokusů o přihlášení pro tohoto uživatele. Počkejte prosím a zkuste to znovu později.`,selectCountryCode:"Vyberte předvolbu země, aktuálně nastaveno na ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`nebo`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,showPasswordText:`Zobrazit heslo`,signupActionLinkText:"${footerLinkText}",signupActionText:"${footerText}",termsAndConditionsTemplate:'Pokračováním souhlasíte s našimi <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Podmínkami a pravidly</a>.',title:`Vítejte`,"user-blocked":`Váš účet byl zablokován po několika po sobě jdoucích neúspěšných pokusech o přihlášení.`,userAccountDoesNotExist:`Uživatelský účet neexistuje`,usernameOnlyPlaceholder:`Uživatelské jméno`,usernameOrEmailPlaceholder:`Uživatelské jméno nebo e-mailová adresa`,usernamePlaceholder:`Uživatelské jméno nebo e-mailová adresa`,usernameTooLong:"Uživatelské jméno musí mít nejvýše ${max} znaků",usernameTooShort:"Uživatelské jméno musí mít alespoň ${min} znaků","wrong-credentials":`Nesprávné uživatelské jméno nebo heslo`,"wrong-email-credentials":`Nesprávný e-mail nebo heslo`,"wrong-email-phone-credentials":`Nesprávná e-mailová adresa, telefonní číslo nebo heslo. Telefonní čísla musí obsahovat předvolbu země.`,"wrong-email-phone-username-credentials":`Nesprávná e-mailová adresa, telefonní číslo, uživatelské jméno nebo heslo. Telefonní čísla musí obsahovat předvolbu země.`,"wrong-email-username-credentials":`Nesprávná e-mailová adresa, uživatelské jméno nebo heslo`,"wrong-phone-credentials":`Nesprávné telefonní číslo nebo heslo`,"wrong-phone-username-credentials":`Nesprávné telefonní číslo, uživatelské jméno nebo heslo. Telefonní čísla musí obsahovat předvolbu země.`,"wrong-username-credentials":`Nesprávné uživatelské jméno nebo heslo`,passkeyButtonText:`Přihlásit se pomocí passkey`}},"login-password":{"login-password":{buttonText:`Přihlásit se`,description:"Přihlaste se k ${clientName}",forgotPasswordText:`Zapomněli jste heslo?`,hidePasswordText:`Skrýt heslo`,"no-password":`Heslo je povinné`,pageTitle:"Přihlášení | ${clientName}","password-breached":`Zjistili jsme potenciální bezpečnostní problém s tímto účtem. Pro ochranu vašeho účtu jsme toto přihlášení zablokovali. Pro pokračování prosím resetujte své heslo.`,passwordPlaceholder:`Heslo`,showPasswordText:`Zobrazit heslo`,signingInAs:"Přihlášení jako ${email}",title:`Zadejte heslo`,unverifiedEmail:`Před přihlášením prosím ověřte svou e-mailovou adresu`,"user-blocked":`Váš účet byl zablokován po několika po sobě jdoucích neúspěšných pokusech o přihlášení.`,"wrong-credentials":`Nesprávné heslo`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-mailová adresa`,authMethodEmailOrPhone:`e-mail nebo telefonní číslo`,authMethodPhone:`telefonní číslo`,description:"Přihlaste se pomocí ${authMethod}",emailOrPhonePlaceholder:`E-mailová adresa nebo telefonní číslo`,emailPlaceholder:`E-mailová adresa`,invalidEmail:`Zadejte prosím platnou e-mailovou adresu`,invalidIdentifier:`Zadejte prosím platnou e-mailovou adresu nebo telefonní číslo`,invalidPhone:`Zadejte prosím platné telefonní číslo s předvolbou země`,noEmail:`Zadejte prosím svou e-mailovou adresu`,noPhone:`Zadejte prosím své telefonní číslo`,phonePlaceholder:`Telefonní číslo`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,title:`Přihlásit se kódem`,userAccountDoesNotExist:`Uživatelský účet neexistuje`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Klikněte na odkaz ve svém e-mailu pro přihlášení`,description:"Odeslali jsme odkaz na ${username}. Kliknutím na něj se přihlásíte.",resendText:`Odeslat odkaz znovu`,spamText:`Nedostali jste e-mail? Zkontrolujte složku nevyžádané pošty.`,title:`Zkontrolujte svůj e-mail`}},mfa:rd,"mfa-email":{"mfa-email":{buttonText:`Pokračovat`,codePlaceholder:`Zadejte kód`,description:"Odeslali jsme kód na ${email}","invalid-code":`Zadaný kód je neplatný`,pageTitle:"Ověření e-mailem | ${clientName}",resendText:`Opětovné odeslání kódu`,title:`Zkontrolujte svůj e-mail`}},"mfa-otp":{"mfa-otp":{buttonText:`Pokračovat`,codePlaceholder:`Zadejte kód`,description:`Zadejte šestimístný kód z vaší ověřovací aplikace`,"invalid-code":`Zadaný kód je neplatný`,pageTitle:"Zadejte kód | ${clientName}",title:`Zadejte svůj kód`},"mfa-totp-enrollment":{title:`Nastavit ověřovací aplikaci`,description:`Naskenujte QR kód níže pomocí ověřovací aplikace a poté zadejte šestimístný kód pro ověření`,secretLabel:`Nebo zadejte tento kód ručně:`,codePlaceholder:`Zadejte kód`,continueButtonText:`Ověřit a aktivovat`,"invalid-code":`Zadaný kód je neplatný. Zkuste to prosím znovu.`,"transaction-not-found":`Platnost vaší registrace vypršela, budete muset začít znovu.`,pageTitle:"Nastavení ověřovací aplikace | ${clientName}",unexpectedError:`Něco se pokazilo. Zkuste to prosím znovu.`,enrollmentComplete:`Registrace MFA je dokončena. Tuto stránku můžete zavřít.`},"mfa-totp-challenge":{title:`Ověřte svou identitu`,description:`Zadejte šestimístný kód z vaší ověřovací aplikace`,codePlaceholder:`Zadejte kód`,continueButtonText:`Pokračovat`,"invalid-code":`Zadaný kód je neplatný`,"transaction-not-found":`Platnost vaší registrace vypršela, budete muset začít znovu.`,unexpectedError:`Něco se pokazilo. Zkuste to prosím znovu.`,pageTitle:"Ověření identity | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Použijte své telefonní číslo pro přihlášení | ${clientName}",title:`Ověřte svou identitu`,description:"Odeslali jsme kód na ${phoneNumber}",continueButtonText:`Pokračovat`,changePhoneText:`Zvolte jiné telefonní číslo.`,smsButtonText:`Textová zpráva`,voiceButtonText:`Hlasový hovor`,chooseMessageTypeText:`Jak chcete kód přijmout?`,pickAuthenticatorText:`Zkusit jinou metodu`,logoAltText:"${companyName}",codePlaceholder:`Zadejte kód`,"send-sms-failed":`Při odesílání SMS došlo k problému`,"send-voice-failed":`Při uskutečnění hlasového hovoru došlo k problému`,"invalid-phone-format":`Telefonní číslo může obsahovat pouze číslice.`,"invalid-phone":`Zdá se, že vaše telefonní číslo není platné. Zkontrolujte a zkuste to znovu.`,"too-many-sms":`Překročili jste maximální počet telefonních zpráv za hodinu. Počkejte pár minut a zkuste to znovu.`,"too-many-voice":`Překročili jste maximální počet hlasových hovorů za hodinu. Počkejte pár minut a zkuste to znovu.`,"transaction-not-found":`Vaše registrační transakce vypršela, budete muset začít znovu.`,"no-phone":`Zadejte telefonní číslo`,noCode:`Zadejte ověřovací kód`,invalidCode:`Zadaný kód je neplatný. Zkuste to znovu.`,unexpectedError:`Něco se pokazilo. Zkuste to znovu.`,resendSuccess:`Odeslali jsme nový kód na váš telefon`,enrollmentComplete:`Registrace MFA je dokončena. Tuto stránku můžete zavřít.`},"mfa-phone-enrollment":{pageTitle:"Zadejte své telefonní číslo pro přihlášení pomocí telefonního kódu | ${clientName}",title:`Zabezpečte svůj účet`,description:`Zadejte kód země a telefonní číslo, na které můžeme odeslat 6místný kód:`,continueButtonText:`Pokračovat`,smsButtonText:`Textová zpráva`,voiceButtonText:`Hlasový hovor`,chooseMessageTypeText:`Jak chcete kód přijmout?`,pickAuthenticatorText:`Zkusit jinou metodu`,placeholder:`Zadejte své telefonní číslo`,logoAltText:"${companyName}",selectCountryCode:"Vyberte kód země, aktuálně nastaveno na ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Při odesílání SMS došlo k problému`,"send-voice-failed":`Při uskutečnění hlasového hovoru došlo k problému`,"sms-authenticator-error":`Nepodařilo se odeslat SMS. Zkuste to prosím později.`,"invalid-phone-format":`Telefonní číslo může obsahovat pouze číslice.`,"invalid-phone":`Zdá se, že vaše telefonní číslo není platné. Zkontrolujte a zkuste to znovu.`,"too-many-sms":`Překročili jste maximální počet telefonních zpráv za hodinu. Počkejte pár minut a zkuste to znovu.`,"too-many-voice":`Překročili jste maximální počet hlasových hovorů za hodinu. Počkejte pár minut a zkuste to znovu.`,"transaction-not-found":`Vaše registrační transakce vypršela, budete muset začít znovu.`,"no-phone":`Zadejte telefonní číslo`,"phone-is-too-short":`Telefonní číslo je příliš krátké`,"phone-is-too-long":`Telefonní číslo je příliš dlouhé`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Vyberte metodu ověření | ${clientName}",title:`Vyberte způsob ověření`,description:`Zvolte, jak chcete ověřit svou identitu`,authenticatorAppLabel:`Autentizační aplikace`,authenticatorAppDescription:`Použijte autentizační aplikaci k získání ověřovacího kódu`,smsLabel:`Textová zpráva`,smsDescription:`Nechte si zaslat ověřovací kód na telefon`,passkeyLabel:`Passkey`,passkeyDescription:`Použijte biometrii zařízení nebo bezpečnostní klíč`}},"mfa-push":{"mfa-push":{description:`Odeslali jsme oznámení na vaše zařízení`,pageTitle:"Push oznámení | ${clientName}",resendText:`Odeslat oznámení znovu`,title:`Schvalte požadavek`,useCodeText:`Zadat kód ručně`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Pokračovat`,codePlaceholder:`Záložní kód`,description:`Zadejte jeden z vašich záložních kódů`,"invalid-code":`Zadaný záložní kód je neplatný`,pageTitle:"Záložní kód | ${clientName}",title:`Zadejte záložní kód`}},"mfa-voice":{"mfa-voice":{buttonText:`Zavolat mi`,codePlaceholder:`Zadejte kód`,description:"Zavoláme na ${phoneNumber} s vaším kódem","invalid-code":`Zadaný kód je neplatný`,pageTitle:"Hlasový hovor | ${clientName}",title:`Přijmout telefonní hovor`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Zkusit znovu`,description:`Vložte svůj bezpečnostní klíč a postupujte podle pokynů`,pageTitle:"Bezpečnostní klíč | ${clientName}",title:`Použijte svůj bezpečnostní klíč`}},passkeys:id,organizations:ad,"reset-password":{"reset-password":{backToLoginText:`Zpět na přihlášení`,buttonText:`Pokračovat`,codeExpired:`Platnost kódu pro obnovení hesla vypršela. Požádejte prosím o nový.`,confirmPasswordLabel:`Potvrzení hesla`,confirmPasswordPlaceholder:`Potvrzení hesla`,description:`Zadejte svůj e-mail pro obnovení hesla`,emailPlaceholder:`E-mailová adresa`,failed:`Obnovení hesla se nezdařilo. Zkuste to prosím znovu.`,"invalid-email-format":`Neplatný e-mail`,"no-email":`Zadejte prosím e-mailovou adresu`,pageTitle:"Obnovení hesla | ${clientName}",passwordLabel:`Nové heslo`,passwordPlaceholder:`Nové heslo`,passwordTooWeak:`Heslo je příliš slabé`,passwordsDidntMatch:`Hesla se neshodují`,successDescription:`Odkaz na obnovení hesla jsme odeslali na vaši e-mailovou adresu.`,successTitle:`Zkontrolujte svůj e-mail`,title:`Zapomněli jste heslo?`,"user-not-found":`Uživatel nenalezen`},"reset-password-code":{backToLoginText:`Zpět na přihlášení`,buttonText:`Obnovit heslo`,codeLabel:`Kód pro obnovení`,codePlaceholder:`Zadejte 6místný kód`,confirmPasswordLabel:`Potvrzení hesla`,confirmPasswordPlaceholder:`Potvrzení hesla`,defaultDescription:`Zadejte kód zaslaný na váš e-mail a zvolte nové heslo`,description:"Odeslali jsme kód na ${email}",failed:`Obnovení hesla se nezdařilo. Zkuste to prosím znovu.`,invalidCode:`Zadaný kód je neplatný nebo vypršel`,noCode:`Zadejte prosím kód pro obnovení`,pageTitle:"Zadejte kód pro obnovení | ${clientName}",passwordLabel:`Nové heslo`,passwordPlaceholder:`Nové heslo`,passwordTooWeak:`Heslo je příliš slabé`,passwordsDidntMatch:`Hesla se neshodují`,resendFailed:`Nepodařilo se znovu odeslat kód. Zkuste to prosím znovu.`,resendSuccess:`Nový kód byl odeslán na váš e-mail`,resendText:`Odeslat kód znovu`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,title:`Zadejte kód pro obnovení`}},signup:od,"signup-id":{"signup-id":{buttonText:`Pokračovat`,description:`Zaregistrujte se a pokračujte`,"email-already-exists":`Tento e-mail je již zaregistrován`,emailPlaceholder:`E-mailová adresa`,federatedConnectionButtonText:"Pokračovat s ${connectionName}","invalid-email-format":`Neplatný e-mail`,loginActionLinkText:`Přihlásit se`,loginActionText:`Už máte účet?`,"no-email":`Zadejte prosím e-mailovou adresu`,pageTitle:"Registrace | ${clientName}",phonePlaceholder:`Telefonní číslo`,separatorText:`nebo`,title:`Vytvořte svůj účet`,usernamePlaceholder:`Uživatelské jméno`}},"signup-password":{"signup-password":{buttonText:`Pokračovat`,description:`Zaregistrujte se a pokračujte`,hidePasswordText:`Skrýt heslo`,"no-password":`Heslo je povinné`,pageTitle:"Registrace | ${clientName}","password-policy-not-met":`Heslo nesplňuje požadavky`,"password-too-weak":`Heslo je příliš slabé`,passwordPlaceholder:`Heslo`,showPasswordText:`Zobrazit heslo`,title:`Vytvořte své heslo`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Pokračovat`,codeLabel:`Ověřovací kód`,codePlaceholder:`Zadejte kód`,defaultDescription:`Zadejte ověřovací kód zaslaný na váš telefon`,description:"Odeslali jsme kód na ${username}","invalid-code":`Neplatný kód`,noCode:`Zadejte prosím ověřovací kód`,pageTitle:"Zadejte kód | ${clientName}",resendText:`Opětovné odeslání kódu`,sessionExpired:`Platnost vaší relace vypršela. Zkuste to prosím znovu.`,title:`Zkontrolujte svůj telefon`,unexpectedError:`Došlo k neočekávané chybě`}},status:sd},Zre=c({common:()=>cd,consent:()=>ld,default:()=>Qre,invitation:()=>ud,login:()=>dd,mfa:()=>fd,organizations:()=>md,passkeys:()=>pd,signup:()=>hd,status:()=>gd}),cd={common:{alertListTitle:`Advarsler`,backText:`Gå tilbage`,cancelText:`Gå tilbage`,closeText:`Luk`,contactSupportText:`Har du brug for hjælp?`,continueText:`Fortsæt`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Noget gik galt. Prøv venligst igen.`,hidePasswordText:`Skjul adgangskode`,loadingText:`Indlæser...`,orText:`eller`,privacyPolicyText:`Privatlivspolitik`,showPasswordText:`Vis adgangskode`,termsOfServiceText:`Servicevilkår`,termsShortText:`Vilkår`,tryAgainText:`Prøv igen`}},ld={consent:{buttonText:`Acceptér`,cancelButtonText:`Afvis`,description:"${clientName} anmoder om adgang til din konto",pageTitle:"Godkend | ${clientName}",scopesTitle:"Dette vil give ${clientName} tilladelse til at:",title:"Godkend ${clientName}"}},ud={invitation:{acceptButtonText:`Acceptér invitation`,description:"${inviterName} har inviteret dig til at deltage i ${organizationName} på ${clientName}",pageTitle:"Invitation | ${clientName}",title:`Du er blevet inviteret`}},dd={login:{alertListTitle:`Advarsler`,buttonText:`Fortsæt`,description:"Log ind på ${clientName}.",editEmailText:`Rediger`,emailPlaceholder:`E-mail-adresse`,enterACodeBtn:`Log ind med en kode`,federatedConnectionButtonText:"Fortsæt med ${connectionName}",footerLinkText:`Tilmeld dig`,footerText:`Har du ikke en konto?`,forgotPasswordText:`Har du glemt din adgangskode?`,hidePasswordText:`Skjul adgangskode`,invalidEmail:`Ugyldig e-mail`,invalidIdentifier:`Ugyldig e-mail eller brugernavn`,invitationDescription:"Log ind for at acceptere ${inviterName}s invitation til at deltage i ${companyName} på ${clientName}.",invitationTitle:`Du er blevet inviteret!`,logoAltText:"${companyName}","no-email":`Indtast venligst en e-mailadresse`,"no-password":`Adgangskode er påkrævet`,pageTitle:"Log ind | ${clientName}",passwordLoginNotAvailable:`Adgangskodegodkendelse er ikke tilgængelig`,passwordPlaceholder:`Adgangskode`,phonePlaceholder:`Telefonnummer`,separatorText:`eller`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,showPasswordText:`Vis adgangskode`,signupActionLinkText:`Tilmeld dig`,signupActionText:`Har du ikke en konto?`,title:`Velkommen`,tooManyFailedLogins:`For mange mislykkede loginforsøg. Prøv venligst igen senere.`,unverifiedEmail:`Bekræft venligst din e-mailadresse, før du logger ind`,userAccountDoesNotExist:`Brugerkontoen findes ikke`,usernamePlaceholder:`Brugernavn eller e-mailadresse`,usernameTooLong:"Brugernavnet må højst være ${max} tegn",usernameTooShort:"Brugernavnet skal være mindst ${min} tegn",wrongCredentials:`Forkert brugernavn eller adgangskode`,passkeyButtonText:`Log ind med passkey`}},fd={mfa:{backupCodeText:`Brug backupkode`,description:`Vælg en bekræftelsesmetode`,pageTitle:"Multifaktorgodkendelse | ${clientName}",title:`Bekræft din identitet`}},pd={"passkey-enrollment-nudge":{title:`Sikr din konto med en adgangsnøgle`,description:`Adgangsnøgler bruger din enheds biometri eller PIN til at logge dig ind hurtigere og mere sikkert.`,enrollButtonText:`Konfigurer adgangsnøgle`,snoozeButtonText:`Måske senere`,optOutLinkText:`Vis ikke dette igen`,pageTitle:"Konfigurer Adgangsnøgle | ${clientName}"},"passkey-enrollment":{title:`Opret din adgangsnøgle`,description:`Følg anvisningerne fra din browser for at oprette en adgangsnøgle til denne konto.`,errorMessage:`Oprettelse af adgangsnøgle mislykkedes. Prøv venligst igen.`,cancelLinkText:`Spring over for nu`,retryButtonText:`Prøv igen`,enrollmentComplete:`Din adgangsnøgle er konfigureret. Du kan lukke denne side.`,pageTitle:"Opret Adgangsnøgle | ${clientName}"},"passkey-challenge":{title:`Log ind med passkey`,description:`Følg anvisningerne fra din browser for at bekræfte din identitet.`,errorMessage:`Godkendelse med passkey mislykkedes. Prøv venligst igen.`,cancelLinkText:`Tilbage til login`,retryButtonText:`Prøv igen`,pageTitle:"Log ind med passkey | ${clientName}"}},md={organizations:{description:`Vælg hvilken organisation du vil logge ind på`,pageTitle:"Vælg organisation | ${clientName}",searchPlaceholder:`Søg organisationer`,title:`Vælg din organisation`}},hd={signup:{buttonText:`Tilmelding`,confirmPasswordPlaceholder:`Bekræft adgangskode`,description:`Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.`,"email-already-exists":`E-mailen er allerede optaget`,emailPlaceholder:`E-mail-adresse`,federatedConnectionButtonText:"Fortsæt med ${connectionName}",hidePasswordText:`Skjul adgangskode`,"invalid-email-format":`Ugyldig e-mail`,loginActionLinkText:`Log ind`,loginActionText:`Har du allerede en konto?`,"no-email":`Indtast venligst en e-mailadresse`,"no-password":`Adgangskode er påkrævet`,"no-username":`Brugernavn er påkrævet`,pageTitle:"Tilmeld dig | ${clientName}",passwordPlaceholder:`Adgangskode`,passwordsDidntMatch:`Adgangskoderne matcher ikke`,phonePlaceholder:`Telefonnummer`,privacyPolicyLinkText:`Privatlivspolitik`,separatorText:`eller`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,showPasswordText:`Vis adgangskode`,termsOfServiceLinkText:`Servicevilkår`,termsText:`Ved at tilmelde dig accepterer du vores`,title:`Vælg adgangskode`,"username-already-exists":`Dette brugernavn er allerede taget`,usernamePlaceholder:`Brugernavn`,verifyEmailText:`Tjek venligst din e-mail for at bekræfte din konto`}},gd={status:{continueButtonText:`Fortsæt`,errorTitle:`Fejl`,pageTitle:"Status | ${clientName}",successTitle:`Succes`,title:`Status`}},Qre={common:cd,consent:ld,"device-flow":{"device-flow":{buttonText:`Fortsæt`,codePlaceholder:`Indtast kode`,description:`Indtast koden, der vises på din enhed`,"expired-code":`Koden er udløbet`,"invalid-code":`Den indtastede kode er ugyldig`,pageTitle:"Enhedsaktivering | ${clientName}",title:`Aktivér din enhed`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Log ind`,codeLabel:`Bekræftelseskode`,codePlaceholder:`Indtast kode`,defaultDescription:`Indtast bekræftelseskoden, der blev sendt til din e-mail`,description:"Vi sendte en kode til ${email}","invalid-code":`Ugyldig kode`,noCode:`Indtast venligst bekræftelseskoden`,pageTitle:"Indtast kode | ${clientName}",resendText:`Send koden igen`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,title:`Tjek din e-mail`,unexpectedError:`Der opstod en uventet fejl`}},"email-verification":{"email-verification":{description:"Vi sendte en e-mail til ${email}",pageTitle:"Bekræft e-mail | ${clientName}",resendText:`Send koden igen`,successDescription:`Din e-mail er blevet bekræftet.`,successTitle:`E-mail bekræftet`,title:`Bekræft din e-mail`}},invitation:ud,login:dd,"login-id":{"login-id":{alertListTitle:`Advarsler`,"auth0-users-validation":`Noget gik galt, prøv venligst igen senere`,"authentication-failure":`Vi beklager, noget gik galt under loginforsøget`,buttonText:`Fortsæt`,"captcha-client-failure":`Vi kunne ikke indlæse sikkerhedsudfordringen. Prøv venligst igen. (Fejlkode: #{errorCode})`,"captcha-validation-failure":`Vi beklager, noget gik galt under validering af captcha-svaret. Prøv venligst igen.`,captchaCodePlaceholder:`Indtast koden vist ovenfor`,"custom-script-error-code":`Noget gik galt, prøv venligst igen senere.`,description:"Log ind på ${clientName}.",editEmailText:`Rediger`,emailPlaceholder:`E-mail-adresse`,federatedConnectionButtonText:"Fortsæt med ${connectionName}",footerLinkText:`Tilmeld dig`,footerText:`Har du ikke en konto?`,forgotPasswordText:`Har du glemt din adgangskode?`,hidePasswordText:`Skjul adgangskode`,"invalid-captcha":`Løs sikkerhedsspørgsmålet for at bekræfte, at du ikke er en robot.`,"invalid-code":`Ugyldig kode`,"invalid-connection":`Ugyldig forbindelse`,"invalid-email-format":`Ugyldig e-mail`,"invalid-email-phone":`Indtast en gyldig e-mailadresse eller telefonnummer. Telefonnumre skal inkludere landekoden.`,"invalid-email-phone-username":`Indtast en gyldig e-mailadresse, telefonnummer eller brugernavn. Telefonnumre skal inkludere landekoden.`,"invalid-email-username":`Indtast en gyldig e-mailadresse eller brugernavn`,"invalid-expired-code":`Ugyldig eller udløbet brugerkode`,"invalid-login-id":`Ugyldigt login-ID indtastet`,"invalid-phone-username":`Indtast et gyldigt telefonnummer eller brugernavn. Telefonnumre skal inkludere landekoden.`,"invalid-recaptcha":`Markér afkrydsningsfeltet for at bekræfte, at du ikke er en robot.`,"invalid-username":"Brugernavnet kan kun indeholde alfanumeriske tegn eller: '${characters}'. Brugernavnet skal være mellem ${min} og ${max} tegn.",invitationDescription:"Log ind for at acceptere ${inviterName}s invitation til at deltage i ${companyName} på ${clientName}.",invitationTitle:`Du er blevet inviteret!`,"ip-blocked":`Vi har registreret mistænkelig loginadfærd, og yderligere forsøg vil blive blokeret. Kontakt venligst administratoren.`,logoAltText:"${companyName}","no-db-connection":`Ugyldig forbindelse`,"no-email":`Indtast venligst en e-mailadresse`,"no-email-phone":`E-mailadresse eller telefonnummer er påkrævet`,"no-email-phone-username":`Telefonnummer, brugernavn eller e-mailadresse er påkrævet`,"no-email-username":`E-mailadresse eller brugernavn er påkrævet`,"no-password":`Adgangskode er påkrævet`,"no-phone":`Indtast venligst et telefonnummer`,"no-phone-username":`Telefonnummer eller brugernavn er påkrævet`,"no-username":`Brugernavn er påkrævet`,pageTitle:"Log ind | ${clientName}","password-breached":`Vi har registreret et potentielt sikkerhedsproblem med denne konto. For at beskytte din konto har vi forhindret dette login. Nulstil venligst din adgangskode for at fortsætte.`,passwordPlaceholder:`Adgangskode`,phoneOrEmailPlaceholder:`E-mail eller telefonnummer`,phoneOrUsernameOrEmailPlaceholder:`Telefon, brugernavn eller e-mail`,phoneOrUsernamePlaceholder:`Telefonnummer eller brugernavn`,phonePlaceholder:`Telefonnummer`,"same-user-login":`For mange loginforsøg for denne bruger. Vent venligst, og prøv igen senere.`,selectCountryCode:"Vælg landekode, i øjeblikket sat til ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`eller`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,showPasswordText:`Vis adgangskode`,signupActionLinkText:`Tilmeld dig`,signupActionText:`Har du ikke en konto?`,termsAndConditionsTemplate:'Ved at fortsætte accepterer du vores <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Vilkår og betingelser</a>.',title:`Velkommen`,"user-blocked":`Din konto er blevet blokeret efter flere på hinanden følgende loginforsøg.`,userAccountDoesNotExist:`Brugerkontoen findes ikke`,usernameOnlyPlaceholder:`Brugernavn`,usernameOrEmailPlaceholder:`Brugernavn eller e-mailadresse`,usernamePlaceholder:`Brugernavn`,usernameTooLong:"Brugernavnet må højst være ${max} tegn",usernameTooShort:"Brugernavnet skal være mindst ${min} tegn","wrong-credentials":`Forkert brugernavn eller adgangskode`,"wrong-email-credentials":`Forkert e-mail eller adgangskode`,"wrong-email-phone-credentials":`Forkert e-mailadresse, telefonnummer eller adgangskode. Telefonnumre skal inkludere landekoden.`,"wrong-email-phone-username-credentials":`Forkert e-mailadresse, telefonnummer, brugernavn eller adgangskode. Telefonnumre skal inkludere landekoden.`,"wrong-email-username-credentials":`Forkert e-mailadresse, brugernavn eller adgangskode`,"wrong-phone-credentials":`Forkert telefonnummer eller adgangskode`,"wrong-phone-username-credentials":`Forkert telefonnummer, brugernavn eller adgangskode. Telefonnumre skal inkludere landekoden.`,"wrong-username-credentials":`Forkert brugernavn eller adgangskode`,passkeyButtonText:`Log ind med passkey`}},"login-password":{"login-password":{buttonText:`Log ind`,description:`Indtast din e-mailadresse og adgangskode for at logge ind.`,forgotPasswordText:`Har du glemt din adgangskode?`,hidePasswordText:`Skjul adgangskode`,"no-password":`Adgangskode er påkrævet`,pageTitle:"Log ind | ${clientName}","password-breached":`Vi har registreret et potentielt sikkerhedsproblem med denne konto. For at beskytte din konto har vi forhindret dette login. Nulstil venligst din adgangskode for at fortsætte.`,passwordPlaceholder:`Adgangskode`,showPasswordText:`Vis adgangskode`,signingInAs:"Logger ind som ${email}",title:`Indtast adgangskode`,unverifiedEmail:`Bekræft venligst din e-mailadresse, før du logger ind`,"user-blocked":`Din konto er blevet blokeret efter flere på hinanden følgende loginforsøg.`,"wrong-credentials":`Forkert adgangskode`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-mail`,authMethodEmailOrPhone:`e-mail eller telefonnummer`,authMethodPhone:`telefonnummer`,description:"Log ind med din ${authMethod}",emailOrPhonePlaceholder:`E-mailadresse eller telefonnummer`,emailPlaceholder:`E-mail-adresse`,invalidEmail:`Indtast venligst en gyldig e-mailadresse`,invalidIdentifier:`Indtast venligst en gyldig e-mailadresse eller telefonnummer`,invalidPhone:`Indtast venligst et gyldigt telefonnummer med landekode`,noEmail:`Indtast venligst din e-mailadresse`,noPhone:`Indtast venligst dit telefonnummer`,phonePlaceholder:`Telefonnummer`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,title:`Log ind med en kode`,userAccountDoesNotExist:`Brugerkontoen findes ikke`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Klik på linket i din e-mail for at logge ind`,description:"Vi sendte et link til ${username}. Klik på det for at logge ind.",resendText:`Send link igen`,spamText:`Har du ikke modtaget e-mailen? Tjek din spam-mappe.`,title:`Tjek din e-mail`}},mfa:fd,"mfa-email":{"mfa-email":{buttonText:`Fortsæt`,codePlaceholder:`Indtast kode`,description:"Vi sendte en kode til ${email}","invalid-code":`Den indtastede kode er ugyldig`,pageTitle:"E-mailbekræftelse | ${clientName}",resendText:`Send kode igen`,title:`Tjek din e-mail`}},"mfa-otp":{"mfa-otp":{buttonText:`Fortsæt`,codePlaceholder:`Indtast kode`,description:`Indtast den 6-cifrede kode fra din autentificeringsapp`,"invalid-code":`Den indtastede kode er ugyldig`,pageTitle:"Indtast kode | ${clientName}",title:`Indtast din kode`},"mfa-totp-enrollment":{title:`Opsæt autentificeringsapp`,description:`Scan QR-koden nedenfor med din autentificeringsapp, og indtast derefter den 6-cifrede kode for at bekræfte`,secretLabel:`Eller indtast denne kode manuelt:`,codePlaceholder:`Indtast kode`,continueButtonText:`Bekræft og aktiver`,"invalid-code":`Den indtastede kode er ugyldig. Prøv venligst igen.`,"transaction-not-found":`Din tilmeldingssession er udløbet. Du skal starte forfra.`,pageTitle:"Opsæt autentificeringsapp | ${clientName}",unexpectedError:`Noget gik galt. Prøv venligst igen.`,enrollmentComplete:`MFA-tilmeldingen er fuldført. Du kan lukke denne side.`},"mfa-totp-challenge":{title:`Bekræft din identitet`,description:`Indtast den 6-cifrede kode fra din autentificeringsapp`,codePlaceholder:`Indtast kode`,continueButtonText:`Fortsæt`,"invalid-code":`Den indtastede kode er ugyldig`,"transaction-not-found":`Din session er udløbet. Du skal starte forfra.`,unexpectedError:`Noget gik galt. Prøv venligst igen.`,pageTitle:"Bekræft identitet | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Brug dit telefonnummer til at logge ind | ${clientName}",title:`Bekræft din identitet`,description:"Vi sendte en kode til ${phoneNumber}",continueButtonText:`Fortsæt`,changePhoneText:`Vælg et andet telefonnummer.`,smsButtonText:`SMS`,voiceButtonText:`Taleopkald`,chooseMessageTypeText:`Hvordan vil du modtage koden?`,pickAuthenticatorText:`Prøv en anden metode`,logoAltText:"${companyName}",codePlaceholder:`Indtast kode`,"send-sms-failed":`Der opstod et problem med at sende SMS'en`,"send-voice-failed":`Der opstod et problem med at foretage taleopkaldet`,"invalid-phone-format":`Telefonnummeret kan kun indeholde cifre.`,"invalid-phone":`Det ser ud til, at dit telefonnummer ikke er gyldigt. Kontrollér og prøv igen.`,"too-many-sms":`Du har overskredet det maksimale antal telefonbeskeder pr. time. Vent et par minutter og prøv igen.`,"too-many-voice":`Du har overskredet det maksimale antal telefonopkald pr. time. Vent et par minutter og prøv igen.`,"transaction-not-found":`Din registreringstransaktion er udløbet, du skal starte forfra.`,"no-phone":`Indtast et telefonnummer`,noCode:`Indtast bekræftelseskoden`,invalidCode:`Den indtastede kode er ugyldig. Prøv igen.`,unexpectedError:`Noget gik galt. Prøv igen.`,resendSuccess:`Vi sendte en ny kode til din telefon`,enrollmentComplete:`MFA-tilmeldingen er fuldført. Du kan lukke denne side.`},"mfa-phone-enrollment":{pageTitle:"Indtast dit telefonnummer for at logge ind med en telefonkode | ${clientName}",title:`Sikre din konto`,description:`Indtast din landekode og telefonnummer, som vi kan sende en 6-cifret kode til:`,continueButtonText:`Fortsæt`,smsButtonText:`SMS`,voiceButtonText:`Taleopkald`,chooseMessageTypeText:`Hvordan vil du modtage koden?`,pickAuthenticatorText:`Prøv en anden metode`,placeholder:`Indtast dit telefonnummer`,logoAltText:"${companyName}",selectCountryCode:"Vælg landekode, i øjeblikket sat til ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Der opstod et problem med at sende SMS'en`,"send-voice-failed":`Der opstod et problem med at foretage taleopkaldet`,"sms-authenticator-error":`Vi kunne ikke sende SMS'en. Prøv igen senere.`,"invalid-phone-format":`Telefonnummeret kan kun indeholde cifre.`,"invalid-phone":`Det ser ud til, at dit telefonnummer ikke er gyldigt. Kontrollér og prøv igen.`,"too-many-sms":`Du har overskredet det maksimale antal telefonbeskeder pr. time. Vent et par minutter og prøv igen.`,"too-many-voice":`Du har overskredet det maksimale antal telefonopkald pr. time. Vent et par minutter og prøv igen.`,"transaction-not-found":`Din registreringstransaktion er udløbet, du skal starte forfra.`,"no-phone":`Indtast et telefonnummer`,"phone-is-too-short":`Telefonnummeret er for kort`,"phone-is-too-long":`Telefonnummeret er for langt`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Vælg bekræftelsesmetode | ${clientName}",title:`Vælg din bekræftelsesmetode`,description:`Vælg hvordan du vil bekræfte din identitet`,authenticatorAppLabel:`Godkendelsesapp`,authenticatorAppDescription:`Brug din godkendelsesapp til at få en bekræftelseskode`,smsLabel:`Sms-besked`,smsDescription:`Få en bekræftelseskode sendt til din telefon`,passkeyLabel:`Adgangsnøgle`,passkeyDescription:`Brug din enheds biometri eller sikkerhedsnøgle`}},"mfa-push":{"mfa-push":{description:`Vi sendte en notifikation til din enhed`,pageTitle:"Push-notifikation | ${clientName}",resendText:`Send notifikation igen`,title:`Godkend anmodningen`,useCodeText:`Indtast kode manuelt`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Fortsæt`,codePlaceholder:`Gendannelseskode`,description:`Indtast en af dine gendannelseskoder`,"invalid-code":`Den indtastede gendannelseskode er ugyldig`,pageTitle:"Gendannelseskode | ${clientName}",title:`Indtast gendannelseskode`}},"mfa-voice":{"mfa-voice":{buttonText:`Ring til mig`,codePlaceholder:`Indtast kode`,description:"Vi ringer til ${phoneNumber} med din kode","invalid-code":`Den indtastede kode er ugyldig`,pageTitle:"Taleopkald | ${clientName}",title:`Modtag et telefonopkald`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Prøv igen`,description:`Indsæt din sikkerhedsnøgle og følg instruktionerne`,pageTitle:"Sikkerhedsnøgle | ${clientName}",title:`Brug din sikkerhedsnøgle`}},passkeys:pd,organizations:md,"reset-password":{"reset-password":{backToLoginText:`Gå tilbage`,buttonText:`Send e-mail til nulstilling af adgangskode`,codeExpired:`Din kode til nulstilling af adgangskode er udløbet. Anmod venligst om en ny.`,confirmPasswordLabel:`Bekræft adgangskode`,confirmPasswordPlaceholder:`Bekræft adgangskode`,description:`Klik på knappen nedenfor, så sender vi instruktioner om, hvordan du nulstiller din adgangskode.`,emailPlaceholder:`E-mail-adresse`,failed:`Nulstilling af adgangskode mislykkedes. Prøv venligst igen.`,"invalid-email-format":`Ugyldig e-mail`,"no-email":`Indtast venligst en e-mailadresse`,pageTitle:"Nulstil adgangskode | ${clientName}",passwordLabel:`Ny adgangskode`,passwordPlaceholder:`Ny adgangskode`,passwordTooWeak:`Adgangskoden er for svag`,passwordsDidntMatch:`Adgangskoderne matcher ikke`,successDescription:`Vi har sendt et link til nulstilling af adgangskode til din e-mailadresse.`,successTitle:`E-mail til nulstilling af adgangskode sendt`,title:`Har du glemt din adgangskode?`,"user-not-found":`Bruger ikke fundet`},"reset-password-code":{backToLoginText:`Tilbage til login`,buttonText:`Nulstil adgangskode`,codeLabel:`Nulstillingskode`,codePlaceholder:`Indtast 6-cifret kode`,confirmPasswordLabel:`Bekræft adgangskode`,confirmPasswordPlaceholder:`Bekræft adgangskode`,defaultDescription:`Indtast koden sendt til din e-mail og vælg en ny adgangskode`,description:"Vi sendte en kode til ${email}",failed:`Nulstilling af adgangskode mislykkedes. Prøv venligst igen.`,invalidCode:`Den indtastede kode er ugyldig eller udløbet`,noCode:`Indtast venligst nulstillingskoden`,pageTitle:"Indtast nulstillingskode | ${clientName}",passwordLabel:`Ny adgangskode`,passwordPlaceholder:`Ny adgangskode`,passwordTooWeak:`Adgangskoden er for svag`,passwordsDidntMatch:`Adgangskoderne matcher ikke`,resendFailed:`Kunne ikke sende koden igen. Prøv igen.`,resendSuccess:`En ny kode er blevet sendt til din e-mail`,resendText:`Send kode igen`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,title:`Indtast nulstillingskode`}},signup:hd,"signup-id":{"signup-id":{buttonText:`Fortsæt`,description:`Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.`,"email-already-exists":`E-mailen er allerede optaget`,emailPlaceholder:`E-mail-adresse`,federatedConnectionButtonText:"Fortsæt med ${connectionName}","invalid-email-format":`Ugyldig e-mail`,loginActionLinkText:`Log ind`,loginActionText:`Har du allerede en konto?`,"no-email":`Indtast venligst en e-mailadresse`,pageTitle:"Tilmeld dig | ${clientName}",phonePlaceholder:`Telefonnummer`,separatorText:`eller`,title:`Vælg adgangskode`,usernamePlaceholder:`Brugernavn`}},"signup-password":{"signup-password":{buttonText:`Fortsæt`,description:`Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.`,hidePasswordText:`Skjul adgangskode`,"no-password":`Adgangskode er påkrævet`,pageTitle:"Tilmeld dig | ${clientName}","password-policy-not-met":`Adgangskoden opfylder ikke kravene`,"password-too-weak":`Adgangskoden er for svag`,passwordPlaceholder:`Adgangskode`,showPasswordText:`Vis adgangskode`,title:`Vælg adgangskode`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Log ind`,codeLabel:`Bekræftelseskode`,codePlaceholder:`Indtast kode`,defaultDescription:`Indtast bekræftelseskoden, der blev sendt til din telefon`,description:"Vi sendte en kode til ${username}","invalid-code":`Ugyldig kode`,noCode:`Indtast venligst bekræftelseskoden`,pageTitle:"Indtast kode | ${clientName}",resendText:`Send koden igen`,sessionExpired:`Din session er udløbet. Prøv venligst igen.`,title:`Tjek din telefon`,unexpectedError:`Der opstod en uventet fejl`}},status:gd},$re=c({common:()=>_d,consent:()=>vd,default:()=>eie,invitation:()=>yd,login:()=>bd,mfa:()=>xd,organizations:()=>Cd,passkeys:()=>Sd,signup:()=>wd,status:()=>Td}),_d={common:{alertListTitle:`Alerts`,backText:`Back`,cancelText:`Cancel`,closeText:`Close`,contactSupportText:`Contact Support`,continueText:`Continue`,copyrightText:"© ${currentYear} ${companyName}",errorText:`An error occurred`,hidePasswordText:`Hide password`,loadingText:`Loading...`,orText:`or`,privacyPolicyText:`Privacy Policy`,showPasswordText:`Show password`,termsOfServiceText:`Terms of Service`,termsShortText:`Terms`,tryAgainText:`Try again`}},vd={consent:{buttonText:`Accept`,cancelButtonText:`Deny`,description:"${clientName} is requesting access to your account",pageTitle:"Authorize | ${clientName}",scopesTitle:"This will allow ${clientName} to:",title:"Authorize ${clientName}"}},yd={invitation:{acceptButtonText:`Accept invitation`,description:"${inviterName} has invited you to join ${organizationName} on ${clientName}",pageTitle:"Invitation | ${clientName}",title:`You've been invited`}},bd={login:{alertListTitle:`Alerts`,buttonText:`Continue`,description:"Log in to ${clientName}.",editEmailText:`Edit`,emailPlaceholder:`Email address`,enterACodeBtn:`Sign in with a code`,federatedConnectionButtonText:"Continue with ${connectionName}",footerLinkText:`Sign up`,footerText:`Don't have an account?`,forgotPasswordText:`Forgot password?`,hidePasswordText:`Hide password`,invalidEmail:`Invalid email`,invalidIdentifier:`Invalid email or username`,invitationDescription:"Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.",invitationTitle:`You've Been Invited!`,logoAltText:"${companyName}","no-email":`Please enter an email address`,"no-password":`Password is required`,pageTitle:"Log in | ${clientName}",passwordLoginNotAvailable:`Password authentication is not available`,passwordPlaceholder:`Password`,phonePlaceholder:`Phone number`,separatorText:`Or`,sessionExpired:`Your session has expired. Please try again.`,showPasswordText:`Show password`,signupActionLinkText:`Sign up`,signupActionText:`Don't have an account?`,title:`Welcome`,tooManyFailedLogins:`Too many failed login attempts. Please try again later.`,unverifiedEmail:`Please verify your email address before logging in`,userAccountDoesNotExist:`User account does not exist`,usernamePlaceholder:`Username or email address`,usernameTooLong:"Username must be ${max} characters or less",usernameTooShort:"Username must be at least ${min} characters",passkeyButtonText:`Sign in with a passkey`,wrongCredentials:`Wrong username or password`}},xd={mfa:{backupCodeText:`Use backup code`,description:`Choose a verification method`,pageTitle:"Multi-Factor Authentication | ${clientName}",title:`Verify your identity`}},Sd={"passkey-enrollment-nudge":{title:`Secure your account with a passkey`,description:`Passkeys use your device's biometrics or PIN to sign you in faster and more securely.`,enrollButtonText:`Set up passkey`,snoozeButtonText:`Maybe later`,optOutLinkText:`Don't show this again`,pageTitle:"Set Up Passkey | ${clientName}"},"passkey-enrollment":{title:`Create your passkey`,description:`Follow the prompts from your browser to create a passkey for this account.`,errorMessage:`Failed to create passkey. Please try again.`,cancelLinkText:`Skip for now`,retryButtonText:`Try again`,enrollmentComplete:`Your passkey has been set up successfully. You can close this page.`,pageTitle:"Create Passkey | ${clientName}"},"passkey-challenge":{title:`Sign in with a passkey`,description:`Follow the prompts from your browser to verify your identity.`,errorMessage:`Passkey authentication failed. Please try again.`,cancelLinkText:`Back to login`,retryButtonText:`Try again`,pageTitle:"Sign In with Passkey | ${clientName}"}},Cd={organizations:{description:`Choose which organization to log in to`,pageTitle:"Select Organization | ${clientName}",searchPlaceholder:`Search organizations`,title:`Select your organization`}},wd={signup:{buttonText:`Continue`,confirmPasswordPlaceholder:`Confirm password`,description:`Sign up to continue`,"email-already-exists":`This email is already registered`,emailPlaceholder:`Email address`,federatedConnectionButtonText:"Continue with ${connectionName}",hidePasswordText:`Hide password`,"invalid-email-format":`Email is not valid.`,loginActionLinkText:`Log in`,loginActionText:`Already have an account?`,"no-email":`Please enter an email address`,"no-password":`Password is required`,"no-username":`Username is required`,pageTitle:"Sign up | ${clientName}",passwordPlaceholder:`Password`,passwordsDidntMatch:`Passwords don't match`,phonePlaceholder:`Phone number`,privacyPolicyLinkText:`Privacy Policy`,separatorText:`Or`,sessionExpired:`Your session has expired. Please try again.`,showPasswordText:`Show password`,termsOfServiceLinkText:`Terms of Service`,termsText:`By signing up, you agree to our`,title:`Create your account`,"username-already-exists":`This username is already taken`,usernamePlaceholder:`Username`,verifyEmailText:`Please check your email to verify your account`}},Td={status:{continueButtonText:`Continue`,errorTitle:`Error`,pageTitle:"Status | ${clientName}",successTitle:`Success`,title:`Status`}},eie={common:_d,consent:vd,"device-flow":{"device-flow":{buttonText:`Continue`,codePlaceholder:`Enter code`,description:`Enter the code shown on your device`,"expired-code":`The code has expired`,"invalid-code":`The code you entered is invalid`,pageTitle:"Device Activation | ${clientName}",title:`Activate your device`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Continue`,codeLabel:`Verification Code`,codePlaceholder:`Enter code`,defaultDescription:`Enter the verification code sent to your email`,description:"We sent a code to ${email}","invalid-code":`The code you entered is invalid`,noCode:`Please enter the verification code`,pageTitle:"Enter Code | ${clientName}",resendText:`Resend code`,sessionExpired:`Your session has expired. Please try again.`,title:`Check your email`,unexpectedError:`An unexpected error occurred`}},"email-verification":{"email-verification":{description:"We sent an email to ${email}",pageTitle:"Verify Email | ${clientName}",resendText:`Resend email`,successDescription:`Your email has been verified successfully.`,successTitle:`Email verified`,title:`Verify your email`}},invitation:yd,login:bd,"login-id":{"login-id":{alertListTitle:`Alerts`,"auth0-users-validation":`Something went wrong, please try again later`,"authentication-failure":`We are sorry, something went wrong when attempting to log in`,buttonText:`Continue`,"captcha-client-failure":`We couldn't load the security challenge. Please try again. (Error code: #{errorCode})`,"captcha-validation-failure":`We are sorry, something went wrong while validating the captcha response. Please try again.`,captchaCodePlaceholder:`Enter the code shown above`,"custom-script-error-code":`Something went wrong, please try again later.`,description:"Log in to ${clientName}.",editEmailText:`Edit`,emailPlaceholder:`Email address`,federatedConnectionButtonText:"Continue with ${connectionName}",footerLinkText:`Sign up`,footerText:`Don't have an account?`,forgotPasswordText:`Forgot password?`,hidePasswordText:`Hide password`,"invalid-captcha":`Solve the challenge question to verify you are not a robot.`,"invalid-code":`The code you entered is invalid`,"invalid-connection":`Invalid connection`,"invalid-email-format":`Email is not valid.`,"invalid-email-phone":`Enter a valid email address or phone number. Phone numbers must include the country code.`,"invalid-email-phone-username":`Enter a valid email address, phone number or username. Phone numbers must include the country code.`,"invalid-email-username":`Enter a valid email address or username`,"invalid-expired-code":`Invalid or expired user code`,"invalid-login-id":`Invalid Login ID entered`,"invalid-phone-username":`Enter a valid phone number or username. Phone numbers must include the country code.`,"invalid-recaptcha":`Select the checkbox to verify you are not a robot.`,"invalid-username":"Username can only contain alphanumeric characters or: '${characters}'. Username should have between ${min} and ${max} characters.",invitationDescription:"Log in to accept ${inviterName}'s invitation to join ${companyName} on ${clientName}.",invitationTitle:`You've Been Invited!`,"ip-blocked":`We have detected suspicious login behavior and further attempts will be blocked. Please contact the administrator.`,logoAltText:"${companyName}","no-db-connection":`Invalid connection`,"no-email":`Please enter an email address`,"no-email-phone":`Email address or phone number is required`,"no-email-phone-username":`Phone number, username, or email address is required`,"no-email-username":`Email address or username is required`,"no-password":`Password is required`,"no-phone":`Please enter a phone number`,"no-phone-username":`Phone number or username is required`,"no-username":`Username is required`,pageTitle:"Log in | ${clientName}","password-breached":`We have detected a potential security issue with this account. To protect your account, we have prevented this login. Please reset your password to proceed.`,passwordPlaceholder:`Password`,phoneOrEmailPlaceholder:`Phone number or Email address`,phoneOrUsernameOrEmailPlaceholder:`Phone or Username or Email`,phoneOrUsernamePlaceholder:`Phone Number or Username`,phonePlaceholder:`Phone number`,"same-user-login":`Too many login attempts for this user. Please wait, and try again later.`,selectCountryCode:"Select country code, currently set to ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`Or`,sessionExpired:`Your session has expired. Please try again.`,showPasswordText:`Show password`,signupActionLinkText:`Sign up`,signupActionText:`Don't have an account?`,termsAndConditionsTemplate:'By continuing, you agree to our <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Terms and Conditions</a>.',title:`Welcome`,"user-blocked":`Your account has been blocked after multiple consecutive login attempts.`,userAccountDoesNotExist:`User account does not exist`,usernameOnlyPlaceholder:`Username`,usernameOrEmailPlaceholder:`Username or Email address`,usernamePlaceholder:`Username or email address`,usernameTooLong:"Username must be ${max} characters or less",usernameTooShort:"Username must be at least ${min} characters","wrong-credentials":`Wrong username or password`,"wrong-email-credentials":`Wrong email or password`,"wrong-email-phone-credentials":`Incorrect email address, phone number, or password. Phone numbers must include the country code.`,"wrong-email-phone-username-credentials":`Incorrect email address, phone number, username, or password. Phone numbers must include the country code.`,"wrong-email-username-credentials":`Incorrect email address, username, or password`,"wrong-phone-credentials":`Incorrect phone number or password`,"wrong-phone-username-credentials":`Incorrect phone number, username or password. Phone numbers must include the country code.`,passkeyButtonText:`Sign in with a passkey`,"wrong-username-credentials":`Incorrect username or password`}},"login-password":{"login-password":{buttonText:`Continue`,description:"Log in to ${clientName}",forgotPasswordText:`Forgot password?`,hidePasswordText:`Hide password`,"no-password":`Password is required`,pageTitle:"Log in | ${clientName}","password-breached":`We have detected a potential security issue with this account. To protect your account, we have prevented this login. Please reset your password to proceed.`,passwordPlaceholder:`Password`,showPasswordText:`Show password`,signingInAs:"Signing in as ${email}",title:`Enter your password`,unverifiedEmail:`Please verify your email address before logging in`,"user-blocked":`Your account has been blocked after multiple consecutive login attempts.`,"wrong-credentials":`Wrong password`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`email`,authMethodEmailOrPhone:`email or phone number`,authMethodPhone:`phone number`,description:"Sign in using your ${authMethod}",emailOrPhonePlaceholder:`Email address or phone number`,emailPlaceholder:`Email address`,invalidEmail:`Please enter a valid email address`,invalidIdentifier:`Please enter a valid email address or phone number`,invalidPhone:`Please enter a valid phone number with country code`,noEmail:`Please enter your email address`,noPhone:`Please enter your phone number`,phonePlaceholder:`Phone number`,sessionExpired:`Your session has expired. Please try again.`,title:`Sign in with a code`,userAccountDoesNotExist:`User account does not exist`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Click the link in your email to sign in`,description:"We sent a link to ${username}. Click it to sign in.",resendText:`Resend link`,spamText:`Didn't receive the email? Check your spam folder.`,title:`Check your email`}},mfa:xd,"mfa-email":{"mfa-email":{buttonText:`Continue`,codePlaceholder:`Enter code`,description:"We sent a code to ${email}","invalid-code":`The code you entered is invalid`,pageTitle:"Email Verification | ${clientName}",resendText:`Resend code`,title:`Check your email`}},"mfa-otp":{"mfa-otp":{buttonText:`Continue`,codePlaceholder:`Enter code`,description:`Enter the 6-digit code from your authenticator app`,"invalid-code":`The code you entered is invalid`,pageTitle:"Enter Code | ${clientName}",title:`Enter your code`},"mfa-totp-enrollment":{title:`Set up authenticator`,description:`Scan the QR code below with your authenticator app, then enter the 6-digit code to verify`,secretLabel:`Or enter this code manually:`,codePlaceholder:`Enter code`,continueButtonText:`Verify & Activate`,"invalid-code":`The code you entered is invalid. Please try again.`,"transaction-not-found":`Your enrollment transaction expired, you will need to start again.`,unexpectedError:`Something went wrong. Please try again.`,pageTitle:"Set up Authenticator | ${clientName}",enrollmentComplete:`MFA enrollment is complete. You can close this page.`},"mfa-totp-challenge":{title:`Verify your identity`,description:`Enter the 6-digit code from your authenticator app`,codePlaceholder:`Enter code`,continueButtonText:`Continue`,"invalid-code":`The code you entered is invalid`,"transaction-not-found":`Your enrollment transaction expired, you will need to start again.`,unexpectedError:`Something went wrong. Please try again.`,pageTitle:"Verify Identity | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Use your phone number to log in | ${clientName}",title:`Verify Your Identity`,description:"We sent a code to ${phoneNumber}",continueButtonText:`Continue`,changePhoneText:`Choose another phone number.`,smsButtonText:`Text message`,voiceButtonText:`Voice call`,chooseMessageTypeText:`How do you want to receive the code?`,pickAuthenticatorText:`Try another method`,logoAltText:"${companyName}",codePlaceholder:`Enter code`,"send-sms-failed":`There was a problem sending the SMS`,"send-voice-failed":`There was a problem making the voice call`,"invalid-phone-format":`Phone number can only include digits.`,"invalid-phone":`It seems that your phone number is not valid. Please check and retry.`,"too-many-sms":`You have exceeded the maximum number of phone messages per hour. Wait a few minutes and try again.`,"too-many-voice":`You have exceeded the maximum number of phone messages per hour. Wait a few minutes and try again.`,"transaction-not-found":`Your enrollment transaction expired, you will need to start again.`,"no-phone":`Please enter a phone number`,noCode:`Please enter the verification code`,invalidCode:`The code you entered is invalid. Please try again.`,unexpectedError:`Something went wrong. Please try again.`,resendSuccess:`We sent a new code to your phone`,enrollmentComplete:`MFA enrollment is complete. You can close this page.`},"mfa-phone-enrollment":{pageTitle:"Enter your phone number to log in using a phone code | ${clientName}",title:`Secure Your Account`,description:`Enter your country code and phone number to which we can send a 6-digit code:`,continueButtonText:`Continue`,smsButtonText:`Text message`,voiceButtonText:`Voice call`,chooseMessageTypeText:`How do you want to receive the code?`,pickAuthenticatorText:`Try another method`,placeholder:`Enter your phone number`,logoAltText:"${companyName}",selectCountryCode:"Select country code, currently set to ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`There was a problem sending the SMS`,"send-voice-failed":`There was a problem making the voice call`,"sms-authenticator-error":`We couldn't send the SMS. Please try again later.`,"invalid-phone-format":`Phone number can only include digits.`,"invalid-phone":`It seems that your phone number is not valid. Please check and retry.`,"too-many-sms":`You have exceeded the maximum number of phone messages per hour. Wait a few minutes and try again.`,"too-many-voice":`You have exceeded the maximum number of phone messages per hour. Wait a few minutes and try again.`,"transaction-not-found":`Your enrollment transaction expired, you will need to start again.`,"no-phone":`Please enter a phone number`,"phone-is-too-short":`Phone number is too short`,"phone-is-too-long":`Phone number is too long`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Choose Verification Method | ${clientName}",title:`Choose your verification method`,description:`Select how you'd like to verify your identity`,authenticatorAppLabel:`Authenticator App`,authenticatorAppDescription:`Use your authenticator app to get a verification code`,smsLabel:`Text Message`,smsDescription:`Get a verification code sent to your phone`,passkeyLabel:`Passkey`,passkeyDescription:`Use your device's biometrics or security key`}},"mfa-push":{"mfa-push":{description:`We sent a notification to your device`,pageTitle:"Push Notification | ${clientName}",resendText:`Resend notification`,title:`Approve the request`,useCodeText:`Enter code manually`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Continue`,codePlaceholder:`Recovery code`,description:`Enter one of your recovery codes`,"invalid-code":`The recovery code you entered is invalid`,pageTitle:"Recovery Code | ${clientName}",title:`Enter recovery code`}},"mfa-voice":{"mfa-voice":{buttonText:`Call me`,codePlaceholder:`Enter code`,description:"We will call ${phoneNumber} with your code","invalid-code":`The code you entered is invalid`,pageTitle:"Voice Call | ${clientName}",title:`Receive a phone call`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Try again`,description:`Insert your security key and follow the instructions`,pageTitle:"Security Key | ${clientName}",title:`Use your security key`}},passkeys:Sd,organizations:Cd,"reset-password":{"reset-password":{backToLoginText:`Back to login`,buttonText:`Continue`,codeExpired:`Your password reset code has expired. Please request a new one.`,confirmPasswordLabel:`Confirm Password`,confirmPasswordPlaceholder:`Confirm password`,description:`Enter your email to reset your password`,emailPlaceholder:`Email address`,failed:`Password reset failed. Please try again.`,"invalid-email-format":`Email is not valid.`,"no-email":`Please enter an email address`,pageTitle:"Reset Password | ${clientName}",passwordLabel:`New Password`,passwordPlaceholder:`New password`,passwordTooWeak:`Password is too weak`,passwordsDidntMatch:`Passwords don't match`,successDescription:`We have sent a password reset link to your email address.`,successTitle:`Check your email`,title:`Forgot your password?`,"user-not-found":`User not found`},"reset-password-code":{backToLoginText:`Back to login`,buttonText:`Reset Password`,codeLabel:`Reset Code`,codePlaceholder:`Enter 6-digit code`,confirmPasswordLabel:`Confirm Password`,confirmPasswordPlaceholder:`Confirm password`,defaultDescription:`Enter the code sent to your email and choose a new password`,description:"We sent a code to ${email}",failed:`Password reset failed. Please try again.`,invalidCode:`The code you entered is invalid or has expired`,noCode:`Please enter the reset code`,pageTitle:"Enter Reset Code | ${clientName}",passwordLabel:`New Password`,passwordPlaceholder:`New password`,passwordTooWeak:`Password is too weak`,passwordsDidntMatch:`Passwords don't match`,resendFailed:`Failed to resend the code. Please try again.`,resendSuccess:`A new code has been sent to your email`,resendText:`Resend code`,sessionExpired:`Your session has expired. Please try again.`,title:`Enter reset code`}},signup:wd,"signup-id":{"signup-id":{buttonText:`Continue`,description:`Sign up to continue`,"email-already-exists":`This email is already registered`,emailPlaceholder:`Email address`,federatedConnectionButtonText:"Continue with ${connectionName}","invalid-email-format":`Email is not valid.`,loginActionLinkText:`Log in`,loginActionText:`Already have an account?`,"no-email":`Please enter an email address`,pageTitle:"Sign up | ${clientName}",phonePlaceholder:`Phone number`,separatorText:`Or`,title:`Create your account`,usernamePlaceholder:`Username`}},"signup-password":{"signup-password":{buttonText:`Continue`,description:`Sign up to continue`,hidePasswordText:`Hide password`,"no-password":`Password is required`,pageTitle:"Sign up | ${clientName}","password-policy-not-met":`Password does not meet the requirements`,"password-too-weak":`Password is too weak`,passwordPlaceholder:`Password`,showPasswordText:`Show password`,title:`Create your password`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Continue`,codeLabel:`Verification Code`,codePlaceholder:`Enter code`,defaultDescription:`Enter the verification code sent to your phone`,description:"We sent a code to ${username}","invalid-code":`The code you entered is invalid`,noCode:`Please enter the verification code`,pageTitle:"Enter Code | ${clientName}",resendText:`Resend code`,sessionExpired:`Your session has expired. Please try again.`,title:`Check your phone`,unexpectedError:`An unexpected error occurred`}},status:Td},tie=c({common:()=>Ed,consent:()=>Dd,default:()=>nie,invitation:()=>Od,login:()=>kd,mfa:()=>Ad,organizations:()=>Md,passkeys:()=>jd,signup:()=>Nd,status:()=>Pd}),Ed={common:{alertListTitle:`Ilmoitukset`,backText:`Palaa takaisin`,cancelText:`Palaa takaisin`,closeText:`Sulje`,contactSupportText:`Tarvitsetko apua?`,continueText:`Jatka`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Jokin meni pieleen. Yritä uudelleen.`,hidePasswordText:`Piilota salasana`,loadingText:`Ladataan...`,orText:`tai`,privacyPolicyText:`Tietosuojakäytäntö`,showPasswordText:`Näytä salasana`,termsOfServiceText:`Käyttöehdot`,termsShortText:`Ehdot`,tryAgainText:`Yritä uudelleen`}},Dd={consent:{buttonText:`Hyväksy`,cancelButtonText:`Hylkää`,description:"${clientName} pyytää pääsyä tilillesi",pageTitle:"Valtuuta | ${clientName}",scopesTitle:"Tämä sallii sovelluksen ${clientName}:",title:"Valtuuta ${clientName}"}},Od={invitation:{acceptButtonText:`Hyväksy kutsu`,description:"${inviterName} on kutsunut sinut liittymään organisaatioon ${organizationName} palvelussa ${clientName}",pageTitle:"Kutsu | ${clientName}",title:`Sinut on kutsuttu`}},kd={login:{alertListTitle:`Ilmoitukset`,buttonText:`Jatka`,description:"Kirjaudu sisään ${clientName}.",editEmailText:`Muokkaa`,emailPlaceholder:`Sähköpostiosoite`,enterACodeBtn:`Kirjaudu koodilla`,federatedConnectionButtonText:"Jatka palvelulla ${connectionName}",footerLinkText:`Rekisteröidy`,footerText:`Eikö sinulla ole tiliä?`,forgotPasswordText:`Unohditko salasanan?`,hidePasswordText:`Piilota salasana`,invalidEmail:`Virheellinen sähköpostiosoite`,invalidIdentifier:`Virheellinen sähköpostiosoite tai käyttäjänimi`,invitationDescription:"Kirjaudu sisään hyväksyäksesi käyttäjän ${inviterName} kutsun liittyä palveluun ${companyName} sovelluksessa ${clientName}.",invitationTitle:`Sinut on kutsuttu!`,logoAltText:"${companyName}","no-email":`Sähköpostiosoite vaaditaan`,"no-password":`Salasana vaaditaan`,pageTitle:"Kirjaudu sisään | ${clientName}",passwordLoginNotAvailable:`Salasanakirjautuminen ei ole käytettävissä`,passwordPlaceholder:`Salasana`,phonePlaceholder:`Puhelinnumero`,separatorText:`tai`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,showPasswordText:`Näytä salasana`,signupActionLinkText:`Rekisteröidy`,signupActionText:`Eikö sinulla ole tiliä?`,title:`Tervetuloa`,tooManyFailedLogins:`Liian monta epäonnistunutta kirjautumisyritystä. Yritä myöhemmin uudelleen.`,unverifiedEmail:`Vahvista sähköpostiosoitteesi ennen kirjautumista`,userAccountDoesNotExist:`Käyttäjätiliä ei ole olemassa`,usernamePlaceholder:`Käyttäjänimi tai sähköpostiosoite`,usernameTooLong:"Käyttäjänimen on oltava enintään ${max} merkkiä",usernameTooShort:"Käyttäjänimen on oltava vähintään ${min} merkkiä",wrongCredentials:`Väärä käyttäjänimi tai salasana`,passkeyButtonText:`Kirjaudu sisään passkey:llä`}},Ad={mfa:{backupCodeText:`Käytä varakoodia`,description:`Valitse vahvistusmenetelmä`,pageTitle:"Monivaiheinen tunnistautuminen | ${clientName}",title:`Vahvista henkilöllisyytesi`}},jd={"passkey-enrollment-nudge":{title:`Suojaa tilisi tunnistautumisavaimella`,description:`Tunnistautumisavaimet käyttävät laitteesi biometriikkaa tai PIN-koodia kirjautuaksesi nopeammin ja turvallisemmin.`,enrollButtonText:`Määritä tunnistautumisavain`,snoozeButtonText:`Ehkä myöhemmin`,optOutLinkText:`Älä näytä tätä uudelleen`,pageTitle:"Määritä Tunnistautumisavain | ${clientName}"},"passkey-enrollment":{title:`Luo tunnistautumisavain`,description:`Seuraa selaimesi ohjeita luodaksesi tunnistautumisavaimen tälle tilille.`,errorMessage:`Tunnistautumisavaimen luominen epäonnistui. Yritä uudelleen.`,cancelLinkText:`Ohita toistaiseksi`,retryButtonText:`Yritä uudelleen`,enrollmentComplete:`Tunnistautumisavaimesi on määritetty onnistuneesti. Voit sulkea tämän sivun.`,pageTitle:"Luo Tunnistautumisavain | ${clientName}"},"passkey-challenge":{title:`Kirjaudu sisään passkey:llä`,description:`Noudata selaimesi ohjeita henkilöllisyytesi vahvistamiseksi.`,errorMessage:`Passkey-todennus epäonnistui. Yritä uudelleen.`,cancelLinkText:`Takaisin kirjautumiseen`,retryButtonText:`Yritä uudelleen`,pageTitle:"Kirjaudu sisään passkey:llä | ${clientName}"}},Md={organizations:{description:`Valitse organisaatio, johon haluat kirjautua`,pageTitle:"Valitse organisaatio | ${clientName}",searchPlaceholder:`Hae organisaatioita`,title:`Valitse organisaatiosi`}},Nd={signup:{buttonText:`Rekisteröityminen`,confirmPasswordPlaceholder:`Vahvista salasana`,description:`Valitse salasana, jossa on isoja ja pieniä kirjaimia, numeroita ja symboleja.`,"email-already-exists":`Sähköposti on jo varattu`,emailPlaceholder:`Sähköpostiosoite`,federatedConnectionButtonText:"Jatka palvelulla ${connectionName}",hidePasswordText:`Piilota salasana`,"invalid-email-format":`Virheellinen sähköpostiosoite`,loginActionLinkText:`Kirjaudu sisään`,loginActionText:`Onko sinulla jo tili?`,"no-email":`Sähköpostiosoite vaaditaan`,"no-password":`Salasana vaaditaan`,"no-username":`Käyttäjänimi vaaditaan`,pageTitle:"Rekisteröidy | ${clientName}",passwordPlaceholder:`Salasana`,passwordsDidntMatch:`Salasanat eivät täsmää`,phonePlaceholder:`Puhelinnumero`,privacyPolicyLinkText:`Tietosuojakäytäntö`,separatorText:`tai`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,showPasswordText:`Näytä salasana`,termsOfServiceLinkText:`Käyttöehdot`,termsText:`Rekisteröitymällä hyväksyt`,title:`Valitse salasana`,"username-already-exists":`Tämä käyttäjänimi on jo varattu`,usernamePlaceholder:`Käyttäjänimi`,verifyEmailText:`Tarkista sähköpostisi vahvistaaksesi tilisi`}},Pd={status:{continueButtonText:`Jatka`,errorTitle:`Virhe`,pageTitle:"Tila | ${clientName}",successTitle:`Onnistui`,title:`Tila`}},nie={common:Ed,consent:Dd,"device-flow":{"device-flow":{buttonText:`Jatka`,codePlaceholder:`Syötä koodi`,description:`Syötä laitteessasi näkyvä koodi`,"expired-code":`Koodi on vanhentunut`,"invalid-code":`Syöttämäsi koodi on virheellinen`,pageTitle:"Laitteen aktivointi | ${clientName}",title:`Aktivoi laitteesi`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Kirjaudu sisään`,codeLabel:`Vahvistuskoodi`,codePlaceholder:`Syötä koodi`,defaultDescription:`Syötä sähköpostiisi lähetetty vahvistuskoodi`,description:"Lähetimme koodin osoitteeseen ${email}","invalid-code":`Virheellinen koodi`,noCode:`Syötä vahvistuskoodi`,pageTitle:"Syötä koodi | ${clientName}",resendText:`Lähetä koodi uudelleen`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,title:`Tarkista sähköpostisi`,unexpectedError:`Odottamaton virhe tapahtui`}},"email-verification":{"email-verification":{description:"Lähetimme sähköpostin osoitteeseen ${email}",pageTitle:"Vahvista sähköposti | ${clientName}",resendText:`Lähetä koodi uudelleen`,successDescription:`Sähköpostiosoitteesi on vahvistettu onnistuneesti.`,successTitle:`Sähköposti vahvistettu`,title:`Vahvista sähköpostiosoitteesi`}},invitation:Od,login:kd,"login-id":{"login-id":{alertListTitle:`Ilmoitukset`,"auth0-users-validation":`Jokin meni pieleen, yritä myöhemmin uudelleen`,"authentication-failure":`Valitettavasti jokin meni pieleen kirjautumisyrityksen aikana`,buttonText:`Jatka`,"captcha-client-failure":`Turvatarkistuksen lataaminen epäonnistui. Yritä uudelleen. (Virhekoodi: #{errorCode})`,"captcha-validation-failure":`Valitettavasti jokin meni pieleen captcha-vastauksen tarkistuksessa. Yritä uudelleen.`,captchaCodePlaceholder:`Syötä yllä näkyvä koodi`,"custom-script-error-code":`Jokin meni pieleen, yritä myöhemmin uudelleen.`,description:"Kirjaudu sisään ${clientName}.",editEmailText:`Muokkaa`,emailPlaceholder:`Sähköpostiosoite`,federatedConnectionButtonText:"Jatka palvelulla ${connectionName}",footerLinkText:`Rekisteröidy`,footerText:`Eikö sinulla ole tiliä?`,forgotPasswordText:`Unohditko salasanan?`,hidePasswordText:`Piilota salasana`,"invalid-captcha":`Ratkaise haaste varmistaaksesi, ettet ole robotti.`,"invalid-code":`Virheellinen koodi`,"invalid-connection":`Virheellinen yhteys`,"invalid-email-format":`Virheellinen sähköpostiosoite`,"invalid-email-phone":`Syötä kelvollinen sähköpostiosoite tai puhelinnumero. Puhelinnumeron tulee sisältää maatunnus.`,"invalid-email-phone-username":`Syötä kelvollinen sähköpostiosoite, puhelinnumero tai käyttäjänimi. Puhelinnumeron tulee sisältää maatunnus.`,"invalid-email-username":`Syötä kelvollinen sähköpostiosoite tai käyttäjänimi`,"invalid-expired-code":`Virheellinen tai vanhentunut käyttäjäkoodi`,"invalid-login-id":`Virheellinen kirjautumistunnus`,"invalid-phone-username":`Syötä kelvollinen puhelinnumero tai käyttäjänimi. Puhelinnumeron tulee sisältää maatunnus.`,"invalid-recaptcha":`Valitse valintaruutu varmistaaksesi, ettet ole robotti.`,"invalid-username":"Käyttäjänimi voi sisältää vain aakkosnumeerisia merkkejä tai: '${characters}'. Käyttäjänimen tulee olla ${min}–${max} merkkiä.",invitationDescription:"Kirjaudu sisään hyväksyäksesi käyttäjän ${inviterName} kutsun liittyä palveluun ${companyName} sovelluksessa ${clientName}.",invitationTitle:`Sinut on kutsuttu!`,"ip-blocked":`Olemme havainneet epäilyttävää kirjautumiskäyttäytymistä ja lisäyritykset estetään. Ota yhteyttä ylläpitäjään.`,logoAltText:"${companyName}","no-db-connection":`Virheellinen yhteys`,"no-email":`Sähköpostiosoite vaaditaan`,"no-email-phone":`Sähköpostiosoite tai puhelinnumero vaaditaan`,"no-email-phone-username":`Puhelinnumero, käyttäjänimi tai sähköpostiosoite vaaditaan`,"no-email-username":`Sähköpostiosoite tai käyttäjänimi vaaditaan`,"no-password":`Salasana vaaditaan`,"no-phone":`Syötä puhelinnumero`,"no-phone-username":`Puhelinnumero tai käyttäjänimi vaaditaan`,"no-username":`Käyttäjänimi vaaditaan`,pageTitle:"Kirjaudu sisään | ${clientName}","password-breached":`Olemme havainneet mahdollisen tietoturvaongelman tässä tilissä. Tilisi suojaamiseksi olemme estäneet tämän kirjautumisen. Vaihda salasanasi jatkaaksesi.`,passwordPlaceholder:`Salasana`,phoneOrEmailPlaceholder:`Sähköposti tai puhelinnumero`,phoneOrUsernameOrEmailPlaceholder:`Puhelin, käyttäjänimi tai sähköposti`,phoneOrUsernamePlaceholder:`Puhelinnumero tai käyttäjänimi`,phonePlaceholder:`Puhelinnumero`,"same-user-login":`Liian monta kirjautumisyritystä tälle käyttäjälle. Odota hetki ja yritä myöhemmin uudelleen.`,selectCountryCode:"Valitse maakoodi, tällä hetkellä ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`tai`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,showPasswordText:`Näytä salasana`,signupActionLinkText:`Rekisteröidy`,signupActionText:`Eikö sinulla ole tiliä?`,termsAndConditionsTemplate:'Jatkamalla hyväksyt <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Käyttöehdot</a>.',title:`Tervetuloa`,"user-blocked":`Tilisi on estetty useiden peräkkäisten kirjautumisyritysten jälkeen.`,userAccountDoesNotExist:`Käyttäjätiliä ei ole olemassa`,usernameOnlyPlaceholder:`Käyttäjänimi`,usernameOrEmailPlaceholder:`Käyttäjänimi tai sähköpostiosoite`,usernamePlaceholder:`Käyttäjänimi`,usernameTooLong:"Käyttäjänimen on oltava enintään ${max} merkkiä",usernameTooShort:"Käyttäjänimen on oltava vähintään ${min} merkkiä","wrong-credentials":`Väärä käyttäjänimi tai salasana`,"wrong-email-credentials":`Väärä sähköpostiosoite tai salasana`,"wrong-email-phone-credentials":`Virheellinen sähköpostiosoite, puhelinnumero tai salasana. Puhelinnumeron tulee sisältää maatunnus.`,"wrong-email-phone-username-credentials":`Virheellinen sähköpostiosoite, puhelinnumero, käyttäjänimi tai salasana. Puhelinnumeron tulee sisältää maatunnus.`,"wrong-email-username-credentials":`Virheellinen sähköpostiosoite, käyttäjänimi tai salasana`,"wrong-phone-credentials":`Virheellinen puhelinnumero tai salasana`,"wrong-phone-username-credentials":`Virheellinen puhelinnumero, käyttäjänimi tai salasana. Puhelinnumeron tulee sisältää maatunnus.`,"wrong-username-credentials":`Virheellinen käyttäjänimi tai salasana`,passkeyButtonText:`Kirjaudu sisään passkey:llä`}},"login-password":{"login-password":{buttonText:`Kirjaudu sisään`,description:`Anna sähköpostiosoitteesi ja salasanasi kirjautuaksesi sisään.`,forgotPasswordText:`Unohditko salasanan?`,hidePasswordText:`Piilota salasana`,"no-password":`Salasana vaaditaan`,pageTitle:"Kirjaudu sisään | ${clientName}","password-breached":`Olemme havainneet mahdollisen tietoturvaongelman tässä tilissä. Tilisi suojaamiseksi olemme estäneet tämän kirjautumisen. Vaihda salasanasi jatkaaksesi.`,passwordPlaceholder:`Salasana`,showPasswordText:`Näytä salasana`,signingInAs:"Kirjaudutaan käyttäjänä ${email}",title:`Anna salasana`,unverifiedEmail:`Vahvista sähköpostiosoitteesi ennen kirjautumista`,"user-blocked":`Tilisi on estetty useiden peräkkäisten kirjautumisyritysten jälkeen.`,"wrong-credentials":`Väärä salasana`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`sähköposti`,authMethodEmailOrPhone:`sähköposti tai puhelinnumero`,authMethodPhone:`puhelinnumero`,description:"Kirjaudu sisään käyttämällä ${authMethod}",emailOrPhonePlaceholder:`Sähköpostiosoite tai puhelinnumero`,emailPlaceholder:`Sähköpostiosoite`,invalidEmail:`Syötä kelvollinen sähköpostiosoite`,invalidIdentifier:`Syötä kelvollinen sähköpostiosoite tai puhelinnumero`,invalidPhone:`Syötä kelvollinen puhelinnumero maatunnuksella`,noEmail:`Syötä sähköpostiosoitteesi`,noPhone:`Syötä puhelinnumerosi`,phonePlaceholder:`Puhelinnumero`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,title:`Kirjaudu koodilla`,userAccountDoesNotExist:`Käyttäjätiliä ei ole olemassa`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Napsauta sähköpostissasi olevaa linkkiä kirjautuaksesi sisään`,description:"Lähetimme linkin osoitteeseen ${username}. Napsauta sitä kirjautuaksesi.",resendText:`Lähetä linkki uudelleen`,spamText:`Etkö saanut sähköpostia? Tarkista roskapostikansiosi.`,title:`Tarkista sähköpostisi`}},mfa:Ad,"mfa-email":{"mfa-email":{buttonText:`Jatka`,codePlaceholder:`Syötä koodi`,description:"Lähetimme koodin osoitteeseen ${email}","invalid-code":`Syöttämäsi koodi on virheellinen`,pageTitle:"Sähköpostivahvistus | ${clientName}",resendText:`Lähetä koodi uudelleen`,title:`Tarkista sähköpostisi`}},"mfa-otp":{"mfa-otp":{buttonText:`Jatka`,codePlaceholder:`Syötä koodi`,description:`Syötä 6-numeroinen koodi todentajasovelluksestasi`,"invalid-code":`Syöttämäsi koodi on virheellinen`,pageTitle:"Syötä koodi | ${clientName}",title:`Syötä koodisi`},"mfa-totp-enrollment":{title:`Ota todentajasovellus käyttöön`,description:`Skannaa alla oleva QR-koodi todentajasovelluksellasi ja syötä sitten 6-numeroinen koodi vahvistaaksesi`,secretLabel:`Tai syötä tämä koodi manuaalisesti:`,codePlaceholder:`Syötä koodi`,continueButtonText:`Vahvista ja aktivoi`,"invalid-code":`Syöttämäsi koodi on virheellinen. Yritä uudelleen.`,"transaction-not-found":`Rekisteröintitapahtumasi on vanhentunut, sinun täytyy aloittaa alusta.`,pageTitle:"Ota todentaja käyttöön | ${clientName}",unexpectedError:`Jokin meni pieleen. Yritä uudelleen.`,enrollmentComplete:`MFA-rekisteröinti on valmis. Voit sulkea tämän sivun.`},"mfa-totp-challenge":{title:`Vahvista henkilöllisyytesi`,description:`Syötä 6-numeroinen koodi todentajasovelluksestasi`,codePlaceholder:`Syötä koodi`,continueButtonText:`Jatka`,"invalid-code":`Syöttämäsi koodi on virheellinen`,"transaction-not-found":`Rekisteröintitapahtumasi on vanhentunut, sinun täytyy aloittaa alusta.`,unexpectedError:`Jokin meni pieleen. Yritä uudelleen.`,pageTitle:"Vahvista henkilöllisyys | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Käytä puhelinnumeroasi kirjautumiseen | ${clientName}",title:`Vahvista henkilöllisyytesi`,description:"Lähetimme koodin numeroon ${phoneNumber}",continueButtonText:`Jatka`,changePhoneText:`Valitse toinen puhelinnumero.`,smsButtonText:`Tekstiviesti`,voiceButtonText:`Äänipuhelu`,chooseMessageTypeText:`Miten haluat vastaanottaa koodin?`,pickAuthenticatorText:`Kokeile toista menetelmää`,logoAltText:"${companyName}",codePlaceholder:`Syötä koodi`,"send-sms-failed":`Tekstiviestin lähettämisessä oli ongelma`,"send-voice-failed":`Äänipuhelun soittamisessa oli ongelma`,"invalid-phone-format":`Puhelinnumero voi sisältää vain numeroita.`,"invalid-phone":`Puhelinnumerosi ei vaikuta olevan kelvollinen. Tarkista ja yritä uudelleen.`,"too-many-sms":`Olet ylittänyt tunnin enimmäismäärän puhelinviestejä. Odota muutama minuutti ja yritä uudelleen.`,"too-many-voice":`Olet ylittänyt tunnin enimmäismäärän puhelinviestejä. Odota muutama minuutti ja yritä uudelleen.`,"transaction-not-found":`Rekisteröintitapahtumasi on vanhentunut, sinun täytyy aloittaa alusta.`,"no-phone":`Syötä puhelinnumero`,noCode:`Syötä vahvistuskoodi`,invalidCode:`Antamasi koodi on virheellinen. Yritä uudelleen.`,unexpectedError:`Jokin meni pieleen. Yritä uudelleen.`,resendSuccess:`Lähetimme uuden koodin puhelimeesi`,enrollmentComplete:`MFA-rekisteröinti on valmis. Voit sulkea tämän sivun.`},"mfa-phone-enrollment":{pageTitle:"Syötä puhelinnumerosi kirjautuaksesi puhelinkoodilla | ${clientName}",title:`Suojaa tilisi`,description:`Syötä maakoodisi ja puhelinnumero, johon voimme lähettää 6-numeroisen koodin:`,continueButtonText:`Jatka`,smsButtonText:`Tekstiviesti`,voiceButtonText:`Äänipuhelu`,chooseMessageTypeText:`Miten haluat vastaanottaa koodin?`,pickAuthenticatorText:`Kokeile toista menetelmää`,placeholder:`Syötä puhelinnumerosi`,logoAltText:"${companyName}",selectCountryCode:"Valitse maakoodi, tällä hetkellä asetettu ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Tekstiviestin lähettämisessä oli ongelma`,"send-voice-failed":`Äänipuhelun soittamisessa oli ongelma`,"sms-authenticator-error":`Emme pystyneet lähettämään tekstiviestiä. Yritä myöhemmin uudelleen.`,"invalid-phone-format":`Puhelinnumero voi sisältää vain numeroita.`,"invalid-phone":`Puhelinnumerosi ei vaikuta olevan kelvollinen. Tarkista ja yritä uudelleen.`,"too-many-sms":`Olet ylittänyt tunnin enimmäismäärän puhelinviestejä. Odota muutama minuutti ja yritä uudelleen.`,"too-many-voice":`Olet ylittänyt tunnin enimmäismäärän puhelinviestejä. Odota muutama minuutti ja yritä uudelleen.`,"transaction-not-found":`Rekisteröintitapahtumasi on vanhentunut, sinun täytyy aloittaa alusta.`,"no-phone":`Syötä puhelinnumero`,"phone-is-too-short":`Puhelinnumero on liian lyhyt`,"phone-is-too-long":`Puhelinnumero on liian pitkä`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Valitse vahvistusmenetelmä | ${clientName}",title:`Valitse vahvistusmenetelmä`,description:`Valitse, miten haluat vahvistaa henkilöllisyytesi`,authenticatorAppLabel:`Todennussovellus`,authenticatorAppDescription:`Käytä todennussovellusta vahvistuskoodin saamiseksi`,smsLabel:`Tekstiviesti`,smsDescription:`Saat vahvistuskoodin puhelimeesi tekstiviestillä`,passkeyLabel:`Tunnistautumisavain`,passkeyDescription:`Käytä laitteesi biometriikkaa tai suojausavainta`}},"mfa-push":{"mfa-push":{description:`Lähetimme ilmoituksen laitteellesi`,pageTitle:"Push-ilmoitus | ${clientName}",resendText:`Lähetä ilmoitus uudelleen`,title:`Hyväksy pyyntö`,useCodeText:`Syötä koodi manuaalisesti`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Jatka`,codePlaceholder:`Palautuskoodi`,description:`Syötä yksi palautuskoodeistasi`,"invalid-code":`Syöttämäsi palautuskoodi on virheellinen`,pageTitle:"Palautuskoodi | ${clientName}",title:`Syötä palautuskoodi`}},"mfa-voice":{"mfa-voice":{buttonText:`Soita minulle`,codePlaceholder:`Syötä koodi`,description:"Soitamme numeroon ${phoneNumber} ja kerromme koodisi","invalid-code":`Syöttämäsi koodi on virheellinen`,pageTitle:"Äänipuhelu | ${clientName}",title:`Vastaanota puhelu`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Yritä uudelleen`,description:`Aseta turva-avaimesi ja seuraa ohjeita`,pageTitle:"Turva-avain | ${clientName}",title:`Käytä turva-avaintasi`}},passkeys:jd,organizations:Md,"reset-password":{"reset-password":{backToLoginText:`Palaa takaisin`,buttonText:`Lähetä salasanan palautussähköposti`,codeExpired:`Salasanan palautuskoodisi on vanhentunut. Pyydä uusi koodi.`,confirmPasswordLabel:`Vahvista salasana`,confirmPasswordPlaceholder:`Vahvista salasana`,description:`Napsauta alla olevaa painiketta, niin lähetämme ohjeet salasanasi palauttamiseen.`,emailPlaceholder:`Sähköpostiosoite`,failed:`Salasanan vaihto epäonnistui. Yritä uudelleen.`,"invalid-email-format":`Virheellinen sähköpostiosoite`,"no-email":`Sähköpostiosoite vaaditaan`,pageTitle:"Vaihda salasana | ${clientName}",passwordLabel:`Uusi salasana`,passwordPlaceholder:`Uusi salasana`,passwordTooWeak:`Salasana on liian heikko`,passwordsDidntMatch:`Salasanat eivät täsmää`,successDescription:`Olemme lähettäneet salasanan palautuslinkin sähköpostiosoitteeseesi.`,successTitle:`Salasanan palautussähköposti lähetetty`,title:`Unohditko salasanan?`,"user-not-found":`Käyttäjää ei löytynyt`},"reset-password-code":{backToLoginText:`Takaisin kirjautumiseen`,buttonText:`Vaihda salasana`,codeLabel:`Palautuskoodi`,codePlaceholder:`Syötä 6-numeroinen koodi`,confirmPasswordLabel:`Vahvista salasana`,confirmPasswordPlaceholder:`Vahvista salasana`,defaultDescription:`Syötä sähköpostiisi lähetetty koodi ja valitse uusi salasana`,description:"Lähetimme koodin osoitteeseen ${email}",failed:`Salasanan vaihto epäonnistui. Yritä uudelleen.`,invalidCode:`Syöttämäsi koodi on virheellinen tai vanhentunut`,noCode:`Syötä palautuskoodi`,pageTitle:"Syötä palautuskoodi | ${clientName}",passwordLabel:`Uusi salasana`,passwordPlaceholder:`Uusi salasana`,passwordTooWeak:`Salasana on liian heikko`,passwordsDidntMatch:`Salasanat eivät täsmää`,resendFailed:`Koodin uudelleenlähetys epäonnistui. Yritä uudelleen.`,resendSuccess:`Uusi koodi on lähetetty sähköpostiisi`,resendText:`Lähetä koodi uudelleen`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,title:`Syötä palautuskoodi`}},signup:Nd,"signup-id":{"signup-id":{buttonText:`Jatka`,description:`Valitse salasana, jossa on isoja ja pieniä kirjaimia, numeroita ja symboleja.`,"email-already-exists":`Sähköposti on jo varattu`,emailPlaceholder:`Sähköpostiosoite`,federatedConnectionButtonText:"Jatka palvelulla ${connectionName}","invalid-email-format":`Virheellinen sähköpostiosoite`,loginActionLinkText:`Kirjaudu sisään`,loginActionText:`Onko sinulla jo tili?`,"no-email":`Sähköpostiosoite vaaditaan`,pageTitle:"Rekisteröidy | ${clientName}",phonePlaceholder:`Puhelinnumero`,separatorText:`tai`,title:`Valitse salasana`,usernamePlaceholder:`Käyttäjänimi`}},"signup-password":{"signup-password":{buttonText:`Jatka`,description:`Valitse salasana, jossa on isoja ja pieniä kirjaimia, numeroita ja symboleja.`,hidePasswordText:`Piilota salasana`,"no-password":`Salasana vaaditaan`,pageTitle:"Rekisteröidy | ${clientName}","password-policy-not-met":`Salasana ei täytä vaatimuksia`,"password-too-weak":`Salasana on liian heikko`,passwordPlaceholder:`Salasana`,showPasswordText:`Näytä salasana`,title:`Valitse salasana`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Jatka`,codeLabel:`Vahvistuskoodi`,codePlaceholder:`Syötä koodi`,defaultDescription:`Syötä puhelimeesi lähetetty vahvistuskoodi`,description:"Lähetimme koodin käyttäjälle ${username}","invalid-code":`Virheellinen koodi`,noCode:`Syötä vahvistuskoodi`,pageTitle:"Syötä koodi | ${clientName}",resendText:`Lähetä koodi uudelleen`,sessionExpired:`Istuntosi on vanhentunut. Yritä uudelleen.`,title:`Tarkista puhelimesi`,unexpectedError:`Odottamaton virhe tapahtui`}},status:Pd},rie=c({common:()=>Fd,consent:()=>Id,default:()=>iie,invitation:()=>Ld,login:()=>Rd,mfa:()=>zd,organizations:()=>Vd,passkeys:()=>Bd,signup:()=>Hd,status:()=>Ud}),Fd={common:{alertListTitle:`Avvisi`,backText:`Torna indietro`,cancelText:`Annulla`,closeText:`Chiudi`,contactSupportText:`Contatta l'assistenza`,continueText:`Continua`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Si è verificato un errore`,hidePasswordText:`Nascondi password`,loadingText:`Caricamento...`,orText:`o`,privacyPolicyText:`Informativa sulla privacy`,showPasswordText:`Mostra password`,termsOfServiceText:`Termini di servizio`,termsShortText:`Termini`,tryAgainText:`Riprova`}},Id={consent:{buttonText:`Accetta`,cancelButtonText:`Rifiuta`,description:"${clientName} richiede l'accesso al tuo account",pageTitle:"Autorizza | ${clientName}",scopesTitle:"Questo permetterà a ${clientName} di:",title:"Autorizza ${clientName}"}},Ld={invitation:{acceptButtonText:`Accetta invito`,description:"${inviterName} ti ha invitato a unirti a ${organizationName} su ${clientName}",pageTitle:"Invito | ${clientName}",title:`Sei stato invitato`}},Rd={login:{alertListTitle:`Avvisi`,buttonText:`Continua`,description:"Accedi a ${clientName}.",editEmailText:`Modifica`,emailPlaceholder:`Indirizzo e-mail`,enterACodeBtn:`Accedi con un codice`,federatedConnectionButtonText:"Continua con ${connectionName}",footerLinkText:`Iscriviti`,footerText:`Non hai un account?`,forgotPasswordText:`Hai dimenticato la password?`,hidePasswordText:`Nascondi password`,invalidEmail:`Email non valida`,invalidIdentifier:`Email o nome utente non valido`,invitationDescription:"Accedi per accettare l'invito di ${inviterName} a unirti a ${companyName} su ${clientName}.",invitationTitle:`Sei stato invitato!`,logoAltText:"${companyName}","no-email":`Inserisci un indirizzo email`,"no-password":`La password è obbligatoria`,pageTitle:"Accedi | ${clientName}",passwordLoginNotAvailable:`L'autenticazione con password non è disponibile`,passwordPlaceholder:`Password`,phonePlaceholder:`Numero di telefono`,separatorText:`o`,sessionExpired:`La sessione è scaduta. Riprova.`,showPasswordText:`Mostra password`,signupActionLinkText:`Iscriviti`,signupActionText:`Non hai un account?`,title:`Benvenuto`,tooManyFailedLogins:`Troppi tentativi di accesso falliti. Riprova più tardi.`,unverifiedEmail:`Verifica il tuo indirizzo email prima di accedere`,userAccountDoesNotExist:`L'account utente non esiste`,usernamePlaceholder:`Nome utente o indirizzo email`,usernameTooLong:"Il nome utente deve avere al massimo ${max} caratteri",usernameTooShort:"Il nome utente deve avere almeno ${min} caratteri",wrongCredentials:`Nome utente o password errati`,passkeyButtonText:`Accedi con una passkey`}},zd={mfa:{backupCodeText:`Usa codice di backup`,description:`Scegli un metodo di verifica`,pageTitle:"Autenticazione a più fattori | ${clientName}",title:`Verifica la tua identità`}},Bd={"passkey-enrollment-nudge":{title:`Proteggi il tuo account con una passkey`,description:`Le passkey utilizzano la biometria o il PIN del tuo dispositivo per accedere più velocemente e in modo più sicuro.`,enrollButtonText:`Configura passkey`,snoozeButtonText:`Forse più tardi`,optOutLinkText:`Non mostrare più`,pageTitle:"Configura Passkey | ${clientName}"},"passkey-enrollment":{title:`Crea la tua passkey`,description:`Segui le istruzioni del browser per creare una passkey per questo account.`,errorMessage:`Creazione della passkey non riuscita. Riprova.`,cancelLinkText:`Salta per ora`,retryButtonText:`Riprova`,enrollmentComplete:`La tua passkey è stata configurata con successo. Puoi chiudere questa pagina.`,pageTitle:"Crea Passkey | ${clientName}"},"passkey-challenge":{title:`Accedi con passkey`,description:`Segui le istruzioni del browser per verificare la tua identità.`,errorMessage:`Autenticazione con passkey non riuscita. Riprova.`,cancelLinkText:`Torna al login`,retryButtonText:`Riprova`,pageTitle:"Accedi con passkey | ${clientName}"}},Vd={organizations:{description:`Scegli a quale organizzazione accedere`,pageTitle:"Seleziona organizzazione | ${clientName}",searchPlaceholder:`Cerca organizzazioni`,title:`Seleziona la tua organizzazione`}},Hd={signup:{buttonText:`Iscriviti`,confirmPasswordPlaceholder:`Conferma password`,description:`Registrati per continuare`,"email-already-exists":`Questa email è già registrata`,emailPlaceholder:`Indirizzo e-mail`,federatedConnectionButtonText:"Continua con ${connectionName}",hidePasswordText:`Nascondi password`,"invalid-email-format":`Email non valida`,loginActionLinkText:`Accedi`,loginActionText:`Hai già un account?`,"no-email":`Inserisci un indirizzo email`,"no-password":`La password è obbligatoria`,"no-username":`Il nome utente è obbligatorio`,pageTitle:"Registrati | ${clientName}",passwordPlaceholder:`Password`,passwordsDidntMatch:`Le password non corrispondono`,phonePlaceholder:`Numero di telefono`,privacyPolicyLinkText:`Informativa sulla privacy`,separatorText:`o`,sessionExpired:`La sessione è scaduta. Riprova.`,showPasswordText:`Mostra password`,termsOfServiceLinkText:`Termini di servizio`,termsText:`Registrandoti, accetti i nostri`,title:`Crea il tuo account`,"username-already-exists":`Questo nome utente è già in uso`,usernamePlaceholder:`Nome utente`,verifyEmailText:`Controlla la tua email per verificare il tuo account`}},Ud={status:{continueButtonText:`Continua`,errorTitle:`Errore`,pageTitle:"Stato | ${clientName}",successTitle:`Operazione riuscita`,title:`Stato`}},iie={common:Fd,consent:Id,"device-flow":{"device-flow":{buttonText:`Continua`,codePlaceholder:`Inserisci il codice`,description:`Inserisci il codice mostrato sul tuo dispositivo`,"expired-code":`Il codice è scaduto`,"invalid-code":`Il codice inserito non è valido`,pageTitle:"Attivazione dispositivo | ${clientName}",title:`Attiva il tuo dispositivo`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Continua`,codeLabel:`Codice di verifica`,codePlaceholder:`Inserisci il codice`,defaultDescription:`Inserisci il codice di verifica inviato alla tua email`,description:"Abbiamo inviato un codice a ${email}","invalid-code":`Codice non valido`,noCode:`Inserisci il codice di verifica`,pageTitle:"Inserisci il codice | ${clientName}",resendText:`Reinvio del codice`,sessionExpired:`La sessione è scaduta. Riprova.`,title:`Controlla la tua email`,unexpectedError:`Si è verificato un errore imprevisto`}},"email-verification":{"email-verification":{description:"Abbiamo inviato un'email a ${email}",pageTitle:"Verifica email | ${clientName}",resendText:`Reinvia email`,successDescription:`La tua email è stata verificata con successo.`,successTitle:`Email verificata`,title:`Verificare l'e-mail`}},invitation:Ld,login:Rd,"login-id":{"login-id":{alertListTitle:`Avvisi`,"auth0-users-validation":`Qualcosa è andato storto, riprova più tardi`,"authentication-failure":`Siamo spiacenti, si è verificato un errore durante il tentativo di accesso`,buttonText:`Continua`,"captcha-client-failure":`Non è stato possibile caricare la verifica di sicurezza. Riprova. (Codice errore: #{errorCode})`,"captcha-validation-failure":`Siamo spiacenti, si è verificato un errore durante la convalida della risposta captcha. Riprova.`,captchaCodePlaceholder:`Inserisci il codice mostrato sopra`,"custom-script-error-code":`Qualcosa è andato storto, riprova più tardi.`,description:"Accedi a ${clientName}.",editEmailText:`Modifica`,emailPlaceholder:`Indirizzo e-mail`,federatedConnectionButtonText:"Continua con ${connectionName}",footerLinkText:`Iscriviti`,footerText:`Non hai un account?`,forgotPasswordText:`Hai dimenticato la password?`,hidePasswordText:`Nascondi password`,"invalid-captcha":`Risolvi la domanda di verifica per confermare che non sei un robot.`,"invalid-code":`Codice non valido`,"invalid-connection":`Connessione non valida`,"invalid-email-format":`Email non valida`,"invalid-email-phone":`Inserisci un indirizzo email o un numero di telefono valido. I numeri di telefono devono includere il prefisso internazionale.`,"invalid-email-phone-username":`Inserisci un indirizzo email, un numero di telefono o un nome utente valido. I numeri di telefono devono includere il prefisso internazionale.`,"invalid-email-username":`Inserisci un indirizzo email o un nome utente valido`,"invalid-expired-code":`Codice utente non valido o scaduto`,"invalid-login-id":`ID di accesso non valido`,"invalid-phone-username":`Inserisci un numero di telefono o un nome utente valido. I numeri di telefono devono includere il prefisso internazionale.`,"invalid-recaptcha":`Seleziona la casella per confermare che non sei un robot.`,"invalid-username":"Il nome utente può contenere solo caratteri alfanumerici o: '${characters}'. Il nome utente deve avere tra ${min} e ${max} caratteri.",invitationDescription:"Accedi per accettare l'invito di ${inviterName} a unirti a ${companyName} su ${clientName}.",invitationTitle:`Sei stato invitato!`,"ip-blocked":`Abbiamo rilevato un comportamento di accesso sospetto e ulteriori tentativi saranno bloccati. Contatta l'amministratore.`,logoAltText:"${companyName}","no-db-connection":`Connessione non valida`,"no-email":`Inserisci un indirizzo email`,"no-email-phone":`È richiesto un indirizzo email o un numero di telefono`,"no-email-phone-username":`È richiesto un numero di telefono, un nome utente o un indirizzo email`,"no-email-username":`È richiesto un indirizzo email o un nome utente`,"no-password":`La password è obbligatoria`,"no-phone":`Inserisci un numero di telefono`,"no-phone-username":`È richiesto un numero di telefono o un nome utente`,"no-username":`Il nome utente è obbligatorio`,pageTitle:"Accedi | ${clientName}","password-breached":`Abbiamo rilevato un potenziale problema di sicurezza con questo account. Per proteggere il tuo account, abbiamo impedito questo accesso. Reimposta la password per procedere.`,passwordPlaceholder:`Password`,phoneOrEmailPlaceholder:`Indirizzo e-mail o numero di telefono`,phoneOrUsernameOrEmailPlaceholder:`Telefono, nome utente o email`,phoneOrUsernamePlaceholder:`Numero di telefono o nome utente`,phonePlaceholder:`Numero di telefono`,"same-user-login":`Troppi tentativi di accesso per questo utente. Attendi e riprova più tardi.`,selectCountryCode:"Seleziona prefisso paese, attualmente impostato su ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`o`,sessionExpired:`La sessione è scaduta. Riprova.`,showPasswordText:`Mostra password`,signupActionLinkText:`Iscriviti`,signupActionText:`Non hai un account?`,termsAndConditionsTemplate:'Continuando, accetti i nostri <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Termini e condizioni</a>.',title:`Benvenuto`,"user-blocked":`Il tuo account è stato bloccato dopo diversi tentativi di accesso consecutivi.`,userAccountDoesNotExist:`L'account utente non esiste`,usernameOnlyPlaceholder:`Nome utente`,usernameOrEmailPlaceholder:`Nome utente o indirizzo email`,usernamePlaceholder:`Nome utente`,usernameTooLong:"Il nome utente deve avere al massimo ${max} caratteri",usernameTooShort:"Il nome utente deve avere almeno ${min} caratteri","wrong-credentials":`Nome utente o password errati`,"wrong-email-credentials":`Email o password errati`,"wrong-email-phone-credentials":`Indirizzo email, numero di telefono o password errati. I numeri di telefono devono includere il prefisso internazionale.`,"wrong-email-phone-username-credentials":`Indirizzo email, numero di telefono, nome utente o password errati. I numeri di telefono devono includere il prefisso internazionale.`,"wrong-email-username-credentials":`Indirizzo email, nome utente o password errati`,"wrong-phone-credentials":`Numero di telefono o password errati`,"wrong-phone-username-credentials":`Numero di telefono, nome utente o password errati. I numeri di telefono devono includere il prefisso internazionale.`,"wrong-username-credentials":`Nome utente o password errati`,passkeyButtonText:`Accedi con una passkey`}},"login-password":{"login-password":{buttonText:`Accedi`,description:"Accedi a ${clientName}",forgotPasswordText:`Hai dimenticato la password?`,hidePasswordText:`Nascondi password`,"no-password":`La password è obbligatoria`,pageTitle:"Accedi | ${clientName}","password-breached":`Abbiamo rilevato un potenziale problema di sicurezza con questo account. Per proteggere il tuo account, abbiamo impedito questo accesso. Reimposta la password per procedere.`,passwordPlaceholder:`Password`,showPasswordText:`Mostra password`,signingInAs:"Accesso come ${email}",title:`Inserire la password`,unverifiedEmail:`Verifica il tuo indirizzo email prima di accedere`,"user-blocked":`Il tuo account è stato bloccato dopo diversi tentativi di accesso consecutivi.`,"wrong-credentials":`Password errata`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`email`,authMethodEmailOrPhone:`email o numero di telefono`,authMethodPhone:`numero di telefono`,description:"Accedi usando il tuo ${authMethod}",emailOrPhonePlaceholder:`Indirizzo email o numero di telefono`,emailPlaceholder:`Indirizzo e-mail`,invalidEmail:`Inserisci un indirizzo email valido`,invalidIdentifier:`Inserisci un indirizzo email o un numero di telefono valido`,invalidPhone:`Inserisci un numero di telefono valido con il prefisso internazionale`,noEmail:`Inserisci il tuo indirizzo email`,noPhone:`Inserisci il tuo numero di telefono`,phonePlaceholder:`Numero di telefono`,sessionExpired:`La sessione è scaduta. Riprova.`,title:`Accedi con un codice`,userAccountDoesNotExist:`L'account utente non esiste`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Clicca il link nella tua email per accedere`,description:"Abbiamo inviato un link a ${username}. Cliccalo per accedere.",resendText:`Reinvia link`,spamText:`Non hai ricevuto l'email? Controlla la cartella spam.`,title:`Controlla la tua email`}},mfa:zd,"mfa-email":{"mfa-email":{buttonText:`Continua`,codePlaceholder:`Inserisci il codice`,description:"Abbiamo inviato un codice a ${email}","invalid-code":`Il codice inserito non è valido`,pageTitle:"Verifica email | ${clientName}",resendText:`Reinvia codice`,title:`Controlla la tua email`}},"mfa-otp":{"mfa-otp":{buttonText:`Continua`,codePlaceholder:`Inserisci il codice`,description:`Inserisci il codice a 6 cifre dalla tua app di autenticazione`,"invalid-code":`Il codice inserito non è valido`,pageTitle:"Inserisci il codice | ${clientName}",title:`Inserisci il tuo codice`},"mfa-totp-enrollment":{title:`Configura l'autenticatore`,description:`Scansiona il codice QR qui sotto con la tua app di autenticazione, poi inserisci il codice a 6 cifre per verificare`,secretLabel:`Oppure inserisci questo codice manualmente:`,codePlaceholder:`Inserisci il codice`,continueButtonText:`Verifica e attiva`,"invalid-code":`Il codice inserito non è valido. Riprova.`,"transaction-not-found":`La tua transazione di registrazione è scaduta, dovrai ricominciare.`,pageTitle:"Configura autenticatore | ${clientName}",unexpectedError:`Qualcosa è andato storto. Riprova.`,enrollmentComplete:`La registrazione MFA è completata. Puoi chiudere questa pagina.`},"mfa-totp-challenge":{title:`Verifica la tua identità`,description:`Inserisci il codice a 6 cifre dalla tua app di autenticazione`,codePlaceholder:`Inserisci il codice`,continueButtonText:`Continua`,"invalid-code":`Il codice inserito non è valido`,"transaction-not-found":`La tua transazione di registrazione è scaduta, dovrai ricominciare.`,unexpectedError:`Qualcosa è andato storto. Riprova.`,pageTitle:"Verifica identità | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Usa il tuo numero di telefono per accedere | ${clientName}",title:`Verifica la tua identità`,description:"Abbiamo inviato un codice a ${phoneNumber}",continueButtonText:`Continua`,changePhoneText:`Scegli un altro numero di telefono.`,smsButtonText:`Messaggio di testo`,voiceButtonText:`Chiamata vocale`,chooseMessageTypeText:`Come vuoi ricevere il codice?`,pickAuthenticatorText:`Prova un altro metodo`,logoAltText:"${companyName}",codePlaceholder:`Inserisci il codice`,"send-sms-failed":`Si è verificato un problema nell'invio dell'SMS`,"send-voice-failed":`Si è verificato un problema nell'effettuare la chiamata vocale`,"invalid-phone-format":`Il numero di telefono può contenere solo cifre.`,"invalid-phone":`Sembra che il tuo numero di telefono non sia valido. Controlla e riprova.`,"too-many-sms":`Hai superato il numero massimo di messaggi telefonici all'ora. Attendi qualche minuto e riprova.`,"too-many-voice":`Hai superato il numero massimo di messaggi telefonici all'ora. Attendi qualche minuto e riprova.`,"transaction-not-found":`La tua transazione di registrazione è scaduta, dovrai ricominciare.`,"no-phone":`Inserisci un numero di telefono`,noCode:`Inserisci il codice di verifica`,invalidCode:`Il codice inserito non è valido. Riprova.`,unexpectedError:`Qualcosa è andato storto. Riprova.`,resendSuccess:`Abbiamo inviato un nuovo codice al tuo telefono`,enrollmentComplete:`La registrazione MFA è completata. Puoi chiudere questa pagina.`},"mfa-phone-enrollment":{pageTitle:"Inserisci il tuo numero di telefono per accedere con un codice telefonico | ${clientName}",title:`Proteggi il tuo account`,description:`Inserisci il prefisso del paese e il numero di telefono a cui possiamo inviare un codice a 6 cifre:`,continueButtonText:`Continua`,smsButtonText:`Messaggio di testo`,voiceButtonText:`Chiamata vocale`,chooseMessageTypeText:`Come vuoi ricevere il codice?`,pickAuthenticatorText:`Prova un altro metodo`,placeholder:`Inserisci il tuo numero di telefono`,logoAltText:"${companyName}",selectCountryCode:"Seleziona prefisso paese, attualmente impostato su ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Si è verificato un problema nell'invio dell'SMS`,"send-voice-failed":`Si è verificato un problema nell'effettuare la chiamata vocale`,"sms-authenticator-error":`Non siamo riusciti a inviare l'SMS. Riprova più tardi.`,"invalid-phone-format":`Il numero di telefono può contenere solo cifre.`,"invalid-phone":`Sembra che il tuo numero di telefono non sia valido. Controlla e riprova.`,"too-many-sms":`Hai superato il numero massimo di messaggi telefonici all'ora. Attendi qualche minuto e riprova.`,"too-many-voice":`Hai superato il numero massimo di messaggi telefonici all'ora. Attendi qualche minuto e riprova.`,"transaction-not-found":`La tua transazione di registrazione è scaduta, dovrai ricominciare.`,"no-phone":`Inserisci un numero di telefono`,"phone-is-too-short":`Il numero di telefono è troppo corto`,"phone-is-too-long":`Il numero di telefono è troppo lungo`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Scegli il metodo di verifica | ${clientName}",title:`Scegli il metodo di verifica`,description:`Seleziona come vuoi verificare la tua identità`,authenticatorAppLabel:`App di autenticazione`,authenticatorAppDescription:`Usa la tua app di autenticazione per ottenere un codice di verifica`,smsLabel:`Messaggio di testo`,smsDescription:`Ricevi un codice di verifica inviato al tuo telefono`,passkeyLabel:`Passkey`,passkeyDescription:`Usa la biometria del tuo dispositivo o una chiave di sicurezza`}},"mfa-push":{"mfa-push":{description:`Abbiamo inviato una notifica al tuo dispositivo`,pageTitle:"Notifica push | ${clientName}",resendText:`Reinvia notifica`,title:`Approva la richiesta`,useCodeText:`Inserisci il codice manualmente`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Continua`,codePlaceholder:`Codice di recupero`,description:`Inserisci uno dei tuoi codici di recupero`,"invalid-code":`Il codice di recupero inserito non è valido`,pageTitle:"Codice di recupero | ${clientName}",title:`Inserisci il codice di recupero`}},"mfa-voice":{"mfa-voice":{buttonText:`Chiamami`,codePlaceholder:`Inserisci il codice`,description:"Chiameremo ${phoneNumber} con il tuo codice","invalid-code":`Il codice inserito non è valido`,pageTitle:"Chiamata vocale | ${clientName}",title:`Ricevi una telefonata`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Riprova`,description:`Inserisci la tua chiave di sicurezza e segui le istruzioni`,pageTitle:"Chiave di sicurezza | ${clientName}",title:`Usa la tua chiave di sicurezza`}},passkeys:Bd,organizations:Vd,"reset-password":{"reset-password":{backToLoginText:`Torna al login`,buttonText:`Continua`,codeExpired:`Il codice di reimpostazione della password è scaduto. Richiedine uno nuovo.`,confirmPasswordLabel:`Conferma password`,confirmPasswordPlaceholder:`Conferma password`,description:`Inserisci la tua email per reimpostare la password`,emailPlaceholder:`Indirizzo e-mail`,failed:`Reimpostazione della password non riuscita. Riprova.`,"invalid-email-format":`Email non valida`,"no-email":`Inserisci un indirizzo email`,pageTitle:"Reimposta password | ${clientName}",passwordLabel:`Nuova password`,passwordPlaceholder:`Nuova password`,passwordTooWeak:`La password è troppo debole`,passwordsDidntMatch:`Le password non corrispondono`,successDescription:`Abbiamo inviato un link per reimpostare la password al tuo indirizzo email.`,successTitle:`Controlla la tua email`,title:`Hai dimenticato la password?`,"user-not-found":`Utente non trovato`},"reset-password-code":{backToLoginText:`Torna al login`,buttonText:`Reimposta password`,codeLabel:`Codice di reimpostazione`,codePlaceholder:`Inserisci il codice a 6 cifre`,confirmPasswordLabel:`Conferma password`,confirmPasswordPlaceholder:`Conferma password`,defaultDescription:`Inserisci il codice inviato alla tua email e scegli una nuova password`,description:"Abbiamo inviato un codice a ${email}",failed:`Reimpostazione della password non riuscita. Riprova.`,invalidCode:`Il codice inserito non è valido o è scaduto`,noCode:`Inserisci il codice di reimpostazione`,pageTitle:"Inserisci il codice di reimpostazione | ${clientName}",passwordLabel:`Nuova password`,passwordPlaceholder:`Nuova password`,passwordTooWeak:`La password è troppo debole`,passwordsDidntMatch:`Le password non corrispondono`,resendFailed:`Impossibile reinviare il codice. Riprova.`,resendSuccess:`Un nuovo codice è stato inviato alla tua email`,resendText:`Reinvia codice`,sessionExpired:`La sessione è scaduta. Riprova.`,title:`Inserisci il codice di reimpostazione`}},signup:Hd,"signup-id":{"signup-id":{buttonText:`Continua`,description:`Registrati per continuare`,"email-already-exists":`Questa email è già registrata`,emailPlaceholder:`Indirizzo e-mail`,federatedConnectionButtonText:"Continua con ${connectionName}","invalid-email-format":`Email non valida`,loginActionLinkText:`Accedi`,loginActionText:`Hai già un account?`,"no-email":`Inserisci un indirizzo email`,pageTitle:"Registrati | ${clientName}",phonePlaceholder:`Numero di telefono`,separatorText:`o`,title:`Crea il tuo account`,usernamePlaceholder:`Nome utente`}},"signup-password":{"signup-password":{buttonText:`Continua`,description:`Registrati per continuare`,hidePasswordText:`Nascondi password`,"no-password":`La password è obbligatoria`,pageTitle:"Registrati | ${clientName}","password-policy-not-met":`La password non soddisfa i requisiti`,"password-too-weak":`La password è troppo debole`,passwordPlaceholder:`Password`,showPasswordText:`Mostra password`,title:`Crea la tua password`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Continua`,codeLabel:`Codice di verifica`,codePlaceholder:`Inserisci il codice`,defaultDescription:`Inserisci il codice di verifica inviato al tuo telefono`,description:"Abbiamo inviato un codice a ${username}","invalid-code":`Codice non valido`,noCode:`Inserisci il codice di verifica`,pageTitle:"Inserisci il codice | ${clientName}",resendText:`Reinvia codice`,sessionExpired:`La sessione è scaduta. Riprova.`,title:`Controlla il tuo telefono`,unexpectedError:`Si è verificato un errore imprevisto`}},status:Ud},aie=c({common:()=>Wd,consent:()=>Gd,default:()=>oie,invitation:()=>Kd,login:()=>qd,mfa:()=>Jd,organizations:()=>Xd,passkeys:()=>Yd,signup:()=>Zd,status:()=>Qd}),Wd={common:{alertListTitle:`Varsler`,backText:`Gå tilbake`,cancelText:`Avbryt`,closeText:`Lukk`,contactSupportText:`Kontakt kundestøtte`,continueText:`Fortsett`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Det oppstod en feil`,hidePasswordText:`Skjul passord`,loadingText:`Laster...`,orText:`eller`,privacyPolicyText:`Personvernerklæring`,showPasswordText:`Vis passord`,termsOfServiceText:`Vilkår for bruk`,termsShortText:`Vilkår`,tryAgainText:`Prøv igjen`}},Gd={consent:{buttonText:`Godta`,cancelButtonText:`Avslå`,description:"${clientName} ber om tilgang til kontoen din",pageTitle:"Godkjenn | ${clientName}",scopesTitle:"Dette vil gi ${clientName} tillatelse til å:",title:"Godkjenn ${clientName}"}},Kd={invitation:{acceptButtonText:`Godta invitasjon`,description:"${inviterName} har invitert deg til å bli med i ${organizationName} på ${clientName}",pageTitle:"Invitasjon | ${clientName}",title:`Du har blitt invitert`}},qd={login:{alertListTitle:`Varsler`,buttonText:`Fortsett`,description:"Logg inn på ${clientName}.",editEmailText:`Rediger`,emailPlaceholder:`E-postadresse`,enterACodeBtn:`Logg inn med en kode`,federatedConnectionButtonText:"Fortsett med ${connectionName}",footerLinkText:`Registrer deg`,footerText:`Har du ikke en konto?`,forgotPasswordText:`Har du glemt passordet?`,hidePasswordText:`Skjul passord`,invalidEmail:`Ugyldig e-postadresse`,invalidIdentifier:`Ugyldig e-postadresse eller brukernavn`,invitationDescription:"Logg inn for å godta ${inviterName} sin invitasjon til å bli med i ${companyName} på ${clientName}.",invitationTitle:`Du har blitt invitert!`,logoAltText:"${companyName}","no-email":`Vennligst oppgi en e-postadresse`,"no-password":`Passord er påkrevd`,pageTitle:"Logg inn | ${clientName}",passwordLoginNotAvailable:`Passordautentisering er ikke tilgjengelig`,passwordPlaceholder:`Passord`,phonePlaceholder:`Telefonnummer`,separatorText:`eller`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,showPasswordText:`Vis passord`,signupActionLinkText:`Registrer deg`,signupActionText:`Har du ikke en konto?`,title:`Velkommen`,tooManyFailedLogins:`For mange mislykkede innloggingsforsøk. Vennligst prøv igjen senere.`,unverifiedEmail:`Vennligst bekreft e-postadressen din før du logger inn`,userAccountDoesNotExist:`Brukerkontoen finnes ikke`,usernamePlaceholder:`Brukernavn eller e-postadresse`,usernameTooLong:"Brukernavnet må være ${max} tegn eller færre",usernameTooShort:"Brukernavnet må være minst ${min} tegn",wrongCredentials:`Feil brukernavn eller passord`,passkeyButtonText:`Logg inn med passkey`}},Jd={mfa:{backupCodeText:`Bruk reservekode`,description:`Velg en bekreftelsesmetode`,pageTitle:"Flerfaktorautentisering | ${clientName}",title:`Bekreft identiteten din`}},Yd={"passkey-enrollment-nudge":{title:`Sikre kontoen din med en passnøkkel`,description:`Passnøkler bruker enhetens biometri eller PIN-kode for å logge deg inn raskere og sikrere.`,enrollButtonText:`Sett opp passnøkkel`,snoozeButtonText:`Kanskje senere`,optOutLinkText:`Ikke vis dette igjen`,pageTitle:"Sett Opp Passnøkkel | ${clientName}"},"passkey-enrollment":{title:`Opprett passnøkkelen din`,description:`Følg instruksjonene fra nettleseren for å opprette en passnøkkel for denne kontoen.`,errorMessage:`Kunne ikke opprette passnøkkel. Vennligst prøv igjen.`,cancelLinkText:`Hopp over for nå`,retryButtonText:`Prøv igjen`,enrollmentComplete:`Passnøkkelen din er konfigurert. Du kan lukke denne siden.`,pageTitle:"Opprett Passnøkkel | ${clientName}"},"passkey-challenge":{title:`Logg inn med passkey`,description:`Følg instruksjonene fra nettleseren for å bekrefte identiteten din.`,errorMessage:`Autentisering med passkey mislyktes. Vennligst prøv igjen.`,cancelLinkText:`Tilbake til innlogging`,retryButtonText:`Prøv igjen`,pageTitle:"Logg inn med passkey | ${clientName}"}},Xd={organizations:{description:`Velg hvilken organisasjon du vil logge inn på`,pageTitle:"Velg organisasjon | ${clientName}",searchPlaceholder:`Søk etter organisasjoner`,title:`Velg din organisasjon`}},Zd={signup:{buttonText:`Registrer deg`,confirmPasswordPlaceholder:`Bekreft passord`,description:`Registrer deg for å fortsette`,"email-already-exists":`E-postadressen er allerede registrert`,emailPlaceholder:`E-postadresse`,federatedConnectionButtonText:"Fortsett med ${connectionName}",hidePasswordText:`Skjul passord`,"invalid-email-format":`Ugyldig e-postadresse`,loginActionLinkText:`Logg inn`,loginActionText:`Har du allerede en konto?`,"no-email":`Vennligst oppgi en e-postadresse`,"no-password":`Passord er påkrevd`,"no-username":`Brukernavn er påkrevd`,pageTitle:"Registrer deg | ${clientName}",passwordPlaceholder:`Passord`,passwordsDidntMatch:`Passordene samsvarer ikke`,phonePlaceholder:`Telefonnummer`,privacyPolicyLinkText:`Personvernerklæring`,separatorText:`eller`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,showPasswordText:`Vis passord`,termsOfServiceLinkText:`Vilkår for bruk`,termsText:`Ved å registrere deg godtar du våre`,title:`Opprett kontoen din`,"username-already-exists":`Dette brukernavnet er allerede tatt`,usernamePlaceholder:`Brukernavn`,verifyEmailText:`Sjekk e-posten din for å bekrefte kontoen`}},Qd={status:{continueButtonText:`Fortsett`,errorTitle:`Feil`,pageTitle:"Status | ${clientName}",successTitle:`Vellykket`,title:`Status`}},oie={common:Wd,consent:Gd,"device-flow":{"device-flow":{buttonText:`Fortsett`,codePlaceholder:`Skriv inn kode`,description:`Skriv inn koden som vises på enheten din`,"expired-code":`Koden har utløpt`,"invalid-code":`Koden du skrev inn er ugyldig`,pageTitle:"Enhetsaktivering | ${clientName}",title:`Aktiver enheten din`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Fortsett`,codeLabel:`Bekreftelseskode`,codePlaceholder:`Skriv inn kode`,defaultDescription:`Skriv inn bekreftelseskoden som ble sendt til e-posten din`,description:"Vi sendte en kode til ${email}","invalid-code":`Ugyldig kode`,noCode:`Vennligst skriv inn bekreftelseskoden`,pageTitle:"Skriv inn kode | ${clientName}",resendText:`Send kode på nytt`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,title:`Sjekk e-posten din`,unexpectedError:`En uventet feil oppstod`}},"email-verification":{"email-verification":{description:"Vi sendte en e-post til ${email}",pageTitle:"Bekreft e-post | ${clientName}",resendText:`Send e-post på nytt`,successDescription:`E-postadressen din er bekreftet.`,successTitle:`E-post bekreftet`,title:`Bekreft e-posten din`}},invitation:Kd,login:qd,"login-id":{"login-id":{alertListTitle:`Varsler`,"auth0-users-validation":`Noe gikk galt, vennligst prøv igjen senere`,"authentication-failure":`Beklager, noe gikk galt under innloggingsforsøket`,buttonText:`Fortsett`,"captcha-client-failure":`Vi kunne ikke laste sikkerhetsutfordringen. Vennligst prøv igjen. (Feilkode: #{errorCode})`,"captcha-validation-failure":`Beklager, noe gikk galt under validering av captcha-svaret. Vennligst prøv igjen.`,captchaCodePlaceholder:`Skriv inn koden som vises ovenfor`,"custom-script-error-code":`Noe gikk galt, vennligst prøv igjen senere.`,description:"Logg inn på ${clientName}.",editEmailText:`Rediger`,emailPlaceholder:`E-postadresse`,federatedConnectionButtonText:"Fortsett med ${connectionName}",footerLinkText:`Registrer deg`,footerText:`Har du ikke en konto?`,forgotPasswordText:`Har du glemt passordet?`,hidePasswordText:`Skjul passord`,"invalid-captcha":`Løs utfordringen for å bekrefte at du ikke er en robot.`,"invalid-code":`Ugyldig kode`,"invalid-connection":`Ugyldig tilkobling`,"invalid-email-format":`Ugyldig e-postadresse`,"invalid-email-phone":`Skriv inn en gyldig e-postadresse eller telefonnummer. Telefonnumre må inkludere landskode.`,"invalid-email-phone-username":`Skriv inn en gyldig e-postadresse, telefonnummer eller brukernavn. Telefonnumre må inkludere landskode.`,"invalid-email-username":`Skriv inn en gyldig e-postadresse eller brukernavn`,"invalid-expired-code":`Ugyldig eller utløpt brukerkode`,"invalid-login-id":`Ugyldig innloggings-ID`,"invalid-phone-username":`Skriv inn et gyldig telefonnummer eller brukernavn. Telefonnumre må inkludere landskode.`,"invalid-recaptcha":`Kryss av i boksen for å bekrefte at du ikke er en robot.`,"invalid-username":"Brukernavnet kan bare inneholde alfanumeriske tegn eller: '${characters}'. Brukernavnet må ha mellom ${min} og ${max} tegn.",invitationDescription:"Logg inn for å godta ${inviterName} sin invitasjon til å bli med i ${companyName} på ${clientName}.",invitationTitle:`Du har blitt invitert!`,"ip-blocked":`Vi har oppdaget mistenkelig innloggingsaktivitet, og videre forsøk vil bli blokkert. Vennligst kontakt administratoren.`,logoAltText:"${companyName}","no-db-connection":`Ugyldig tilkobling`,"no-email":`Vennligst oppgi en e-postadresse`,"no-email-phone":`E-postadresse eller telefonnummer er påkrevd`,"no-email-phone-username":`Telefonnummer, brukernavn eller e-postadresse er påkrevd`,"no-email-username":`E-postadresse eller brukernavn er påkrevd`,"no-password":`Passord er påkrevd`,"no-phone":`Vennligst oppgi et telefonnummer`,"no-phone-username":`Telefonnummer eller brukernavn er påkrevd`,"no-username":`Brukernavn er påkrevd`,pageTitle:"Logg inn | ${clientName}","password-breached":`Vi har oppdaget et potensielt sikkerhetsproblem med denne kontoen. For å beskytte kontoen din har vi forhindret denne innloggingen. Vennligst tilbakestill passordet ditt for å fortsette.`,passwordPlaceholder:`Passord`,phoneOrEmailPlaceholder:`E-post eller telefonnummer`,phoneOrUsernameOrEmailPlaceholder:`Telefon, brukernavn eller e-post`,phoneOrUsernamePlaceholder:`Telefonnummer eller brukernavn`,phonePlaceholder:`Telefonnummer`,"same-user-login":`For mange innloggingsforsøk for denne brukeren. Vennligst vent og prøv igjen senere.`,selectCountryCode:"Velg landskode, for øyeblikket satt til ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`eller`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,showPasswordText:`Vis passord`,signupActionLinkText:`Registrer deg`,signupActionText:`Har du ikke en konto?`,termsAndConditionsTemplate:'Ved å fortsette godtar du våre <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">vilkår</a>.',title:`Velkommen`,"user-blocked":`Kontoen din har blitt blokkert etter flere påfølgende innloggingsforsøk.`,userAccountDoesNotExist:`Brukerkontoen finnes ikke`,usernameOnlyPlaceholder:`Brukernavn`,usernameOrEmailPlaceholder:`Brukernavn eller e-postadresse`,usernamePlaceholder:`Brukernavn eller e-postadresse`,usernameTooLong:"Brukernavnet må være ${max} tegn eller færre",usernameTooShort:"Brukernavnet må være minst ${min} tegn","wrong-credentials":`Feil brukernavn eller passord`,"wrong-email-credentials":`Feil e-postadresse eller passord`,"wrong-email-phone-credentials":`Feil e-postadresse, telefonnummer eller passord. Telefonnumre må inkludere landskode.`,"wrong-email-phone-username-credentials":`Feil e-postadresse, telefonnummer, brukernavn eller passord. Telefonnumre må inkludere landskode.`,"wrong-email-username-credentials":`Feil e-postadresse, brukernavn eller passord`,"wrong-phone-credentials":`Feil telefonnummer eller passord`,"wrong-phone-username-credentials":`Feil telefonnummer, brukernavn eller passord. Telefonnumre må inkludere landskode.`,"wrong-username-credentials":`Feil brukernavn eller passord`,passkeyButtonText:`Logg inn med passkey`}},"login-password":{"login-password":{buttonText:`Logg inn`,description:"Logg inn på ${clientName}",forgotPasswordText:`Har du glemt passordet?`,hidePasswordText:`Skjul passord`,"no-password":`Passord er påkrevd`,pageTitle:"Logg inn | ${clientName}","password-breached":`Vi har oppdaget et potensielt sikkerhetsproblem med denne kontoen. For å beskytte kontoen din har vi forhindret denne innloggingen. Vennligst tilbakestill passordet ditt for å fortsette.`,passwordPlaceholder:`Passord`,showPasswordText:`Vis passord`,signingInAs:"Logger inn som ${email}",title:`Oppgi passord`,unverifiedEmail:`Vennligst bekreft e-postadressen din før du logger inn`,"user-blocked":`Kontoen din har blitt blokkert etter flere påfølgende innloggingsforsøk.`,"wrong-credentials":`Feil passord`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-post`,authMethodEmailOrPhone:`e-post eller telefonnummer`,authMethodPhone:`telefonnummer`,description:"Logg inn med din ${authMethod}",emailOrPhonePlaceholder:`E-postadresse eller telefonnummer`,emailPlaceholder:`E-postadresse`,invalidEmail:`Vennligst oppgi en gyldig e-postadresse`,invalidIdentifier:`Vennligst oppgi en gyldig e-postadresse eller telefonnummer`,invalidPhone:`Vennligst oppgi et gyldig telefonnummer med landskode`,noEmail:`Vennligst oppgi e-postadressen din`,noPhone:`Vennligst oppgi telefonnummeret ditt`,phonePlaceholder:`Telefonnummer`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,title:`Logg inn med en kode`,userAccountDoesNotExist:`Brukerkontoen finnes ikke`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Klikk på lenken i e-posten for å logge inn`,description:"Vi sendte en lenke til ${username}. Klikk på den for å logge inn.",resendText:`Send lenke på nytt`,spamText:`Fikk du ikke e-posten? Sjekk søppelpostmappen.`,title:`Sjekk e-posten din`}},mfa:Jd,"mfa-email":{"mfa-email":{buttonText:`Fortsett`,codePlaceholder:`Skriv inn kode`,description:"Vi sendte en kode til ${email}","invalid-code":`Koden du skrev inn er ugyldig`,pageTitle:"E-postbekreftelse | ${clientName}",resendText:`Send kode på nytt`,title:`Sjekk e-posten din`}},"mfa-otp":{"mfa-otp":{buttonText:`Fortsett`,codePlaceholder:`Skriv inn kode`,description:`Skriv inn den 6-sifrede koden fra autentiseringsappen din`,"invalid-code":`Koden du skrev inn er ugyldig`,pageTitle:"Skriv inn kode | ${clientName}",title:`Skriv inn koden din`},"mfa-totp-enrollment":{title:`Sett opp autentisering`,description:`Skann QR-koden nedenfor med autentiseringsappen din, og skriv deretter inn den 6-sifrede koden for å verifisere`,secretLabel:`Eller skriv inn denne koden manuelt:`,codePlaceholder:`Skriv inn kode`,continueButtonText:`Bekreft og aktiver`,"invalid-code":`Koden du skrev inn er ugyldig. Vennligst prøv igjen.`,"transaction-not-found":`Registreringsøkten din har utløpt, du må starte på nytt.`,pageTitle:"Sett opp autentisering | ${clientName}",unexpectedError:`Noe gikk galt. Vennligst prøv igjen.`,enrollmentComplete:`MFA-registreringen er fullført. Du kan lukke denne siden.`},"mfa-totp-challenge":{title:`Bekreft identiteten din`,description:`Skriv inn den 6-sifrede koden fra autentiseringsappen din`,codePlaceholder:`Skriv inn kode`,continueButtonText:`Fortsett`,"invalid-code":`Koden du skrev inn er ugyldig`,"transaction-not-found":`Registreringsøkten din har utløpt, du må starte på nytt.`,unexpectedError:`Noe gikk galt. Vennligst prøv igjen.`,pageTitle:"Bekreft identitet | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Bruk telefonnummeret ditt for å logge inn | ${clientName}",title:`Bekreft identiteten din`,description:"Vi sendte en kode til ${phoneNumber}",continueButtonText:`Fortsett`,changePhoneText:`Velg et annet telefonnummer.`,smsButtonText:`Tekstmelding`,voiceButtonText:`Taleanrop`,chooseMessageTypeText:`Hvordan vil du motta koden?`,pickAuthenticatorText:`Prøv en annen metode`,logoAltText:"${companyName}",codePlaceholder:`Skriv inn kode`,"send-sms-failed":`Det oppstod et problem med å sende SMS-en`,"send-voice-failed":`Det oppstod et problem med å ringe taleanropet`,"invalid-phone-format":`Telefonnummeret kan bare inneholde sifre.`,"invalid-phone":`Det ser ut som telefonnummeret ditt ikke er gyldig. Sjekk og prøv igjen.`,"too-many-sms":`Du har overskredet maksimalt antall telefonmeldinger per time. Vent noen minutter og prøv igjen.`,"too-many-voice":`Du har overskredet maksimalt antall telefonmeldinger per time. Vent noen minutter og prøv igjen.`,"transaction-not-found":`Registreringstransaksjonen din har utløpt, du må starte på nytt.`,"no-phone":`Skriv inn et telefonnummer`,noCode:`Vennligst skriv inn bekreftelseskoden`,invalidCode:`Koden du skrev inn er ugyldig. Prøv igjen.`,unexpectedError:`Noe gikk galt. Prøv igjen.`,resendSuccess:`Vi sendte en ny kode til telefonen din`,enrollmentComplete:`MFA-registreringen er fullført. Du kan lukke denne siden.`},"mfa-phone-enrollment":{pageTitle:"Skriv inn telefonnummeret ditt for å logge inn med en telefonkode | ${clientName}",title:`Sikre kontoen din`,description:`Skriv inn landskoden og telefonnummeret vi kan sende en 6-sifret kode til:`,continueButtonText:`Fortsett`,smsButtonText:`Tekstmelding`,voiceButtonText:`Taleanrop`,chooseMessageTypeText:`Hvordan vil du motta koden?`,pickAuthenticatorText:`Prøv en annen metode`,placeholder:`Skriv inn telefonnummeret ditt`,logoAltText:"${companyName}",selectCountryCode:"Velg landskode, for øyeblikket satt til ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Det oppstod et problem med å sende SMS-en`,"send-voice-failed":`Det oppstod et problem med å ringe taleanropet`,"sms-authenticator-error":`Vi kunne ikke sende SMS-en. Prøv igjen senere.`,"invalid-phone-format":`Telefonnummeret kan bare inneholde sifre.`,"invalid-phone":`Det ser ut som telefonnummeret ditt ikke er gyldig. Sjekk og prøv igjen.`,"too-many-sms":`Du har overskredet maksimalt antall telefonmeldinger per time. Vent noen minutter og prøv igjen.`,"too-many-voice":`Du har overskredet maksimalt antall telefonmeldinger per time. Vent noen minutter og prøv igjen.`,"transaction-not-found":`Registreringstransaksjonen din har utløpt, du må starte på nytt.`,"no-phone":`Skriv inn et telefonnummer`,"phone-is-too-short":`Telefonnummeret er for kort`,"phone-is-too-long":`Telefonnummeret er for langt`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Velg bekreftelsesmetode | ${clientName}",title:`Velg bekreftelsesmetode`,description:`Velg hvordan du vil bekrefte identiteten din`,authenticatorAppLabel:`Autentiseringsapp`,authenticatorAppDescription:`Bruk autentiseringsappen din for å få en bekreftelseskode`,smsLabel:`Tekstmelding`,smsDescription:`Få en bekreftelseskode sendt til telefonen din`,passkeyLabel:`Passnøkkel`,passkeyDescription:`Bruk enhetens biometri eller sikkerhetsnøkkel`}},"mfa-push":{"mfa-push":{description:`Vi sendte en varsling til enheten din`,pageTitle:"Push-varsling | ${clientName}",resendText:`Send varsling på nytt`,title:`Godkjenn forespørselen`,useCodeText:`Skriv inn kode manuelt`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Fortsett`,codePlaceholder:`Gjenopprettingskode`,description:`Skriv inn en av gjenopprettingskodene dine`,"invalid-code":`Gjenopprettingskoden du skrev inn er ugyldig`,pageTitle:"Gjenopprettingskode | ${clientName}",title:`Skriv inn gjenopprettingskode`}},"mfa-voice":{"mfa-voice":{buttonText:`Ring meg`,codePlaceholder:`Skriv inn kode`,description:"Vi ringer ${phoneNumber} med koden din","invalid-code":`Koden du skrev inn er ugyldig`,pageTitle:"Taleanrop | ${clientName}",title:`Motta en telefonsamtale`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Prøv igjen`,description:`Sett inn sikkerhetsnøkkelen din og følg instruksjonene`,pageTitle:"Sikkerhetsnøkkel | ${clientName}",title:`Bruk sikkerhetsnøkkelen din`}},passkeys:Yd,organizations:Xd,"reset-password":{"reset-password":{backToLoginText:`Tilbake til innlogging`,buttonText:`Fortsett`,codeExpired:`Koden for tilbakestilling av passord har utløpt. Vennligst be om en ny.`,confirmPasswordLabel:`Bekreft passord`,confirmPasswordPlaceholder:`Bekreft passord`,description:`Oppgi e-postadressen din for å tilbakestille passordet`,emailPlaceholder:`E-postadresse`,failed:`Tilbakestilling av passord mislyktes. Vennligst prøv igjen.`,"invalid-email-format":`Ugyldig e-postadresse`,"no-email":`Vennligst oppgi en e-postadresse`,pageTitle:"Tilbakestill passord | ${clientName}",passwordLabel:`Nytt passord`,passwordPlaceholder:`Nytt passord`,passwordTooWeak:`Passordet er for svakt`,passwordsDidntMatch:`Passordene samsvarer ikke`,successDescription:`Vi har sendt en lenke for tilbakestilling av passord til e-postadressen din.`,successTitle:`Sjekk e-posten din`,title:`Har du glemt passordet?`,"user-not-found":`Brukeren ble ikke funnet`},"reset-password-code":{backToLoginText:`Tilbake til innlogging`,buttonText:`Tilbakestill passord`,codeLabel:`Tilbakestillingskode`,codePlaceholder:`Skriv inn 6-sifret kode`,confirmPasswordLabel:`Bekreft passord`,confirmPasswordPlaceholder:`Bekreft passord`,defaultDescription:`Skriv inn koden som ble sendt til e-posten din og velg et nytt passord`,description:"Vi sendte en kode til ${email}",failed:`Tilbakestilling av passord mislyktes. Vennligst prøv igjen.`,invalidCode:`Koden du skrev inn er ugyldig eller har utløpt`,noCode:`Vennligst skriv inn tilbakestillingskoden`,pageTitle:"Skriv inn tilbakestillingskode | ${clientName}",passwordLabel:`Nytt passord`,passwordPlaceholder:`Nytt passord`,passwordTooWeak:`Passordet er for svakt`,passwordsDidntMatch:`Passordene samsvarer ikke`,resendFailed:`Kunne ikke sende koden på nytt. Vennligst prøv igjen.`,resendSuccess:`En ny kode har blitt sendt til e-posten din`,resendText:`Send kode på nytt`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,title:`Skriv inn tilbakestillingskode`}},signup:Zd,"signup-id":{"signup-id":{buttonText:`Fortsett`,description:`Registrer deg for å fortsette`,"email-already-exists":`E-postadressen er allerede registrert`,emailPlaceholder:`E-postadresse`,federatedConnectionButtonText:"Fortsett med ${connectionName}","invalid-email-format":`Ugyldig e-postadresse`,loginActionLinkText:`Logg inn`,loginActionText:`Har du allerede en konto?`,"no-email":`Vennligst oppgi en e-postadresse`,pageTitle:"Registrer deg | ${clientName}",phonePlaceholder:`Telefonnummer`,separatorText:`eller`,title:`Opprett kontoen din`,usernamePlaceholder:`Brukernavn`}},"signup-password":{"signup-password":{buttonText:`Fortsett`,description:`Opprett et passord for å fortsette`,hidePasswordText:`Skjul passord`,"no-password":`Passord er påkrevd`,pageTitle:"Registrer deg | ${clientName}","password-policy-not-met":`Passordet oppfyller ikke kravene`,"password-too-weak":`Passordet er for svakt`,passwordPlaceholder:`Passord`,showPasswordText:`Vis passord`,title:`Opprett passordet ditt`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Fortsett`,codeLabel:`Bekreftelseskode`,codePlaceholder:`Skriv inn kode`,defaultDescription:`Skriv inn bekreftelseskoden som ble sendt til telefonen din`,description:"Vi sendte en kode til ${username}","invalid-code":`Ugyldig kode`,noCode:`Vennligst skriv inn bekreftelseskoden`,pageTitle:"Skriv inn kode | ${clientName}",resendText:`Send kode på nytt`,sessionExpired:`Økten din har utløpt. Vennligst prøv igjen.`,title:`Sjekk telefonen din`,unexpectedError:`En uventet feil oppstod`}},status:Qd},sie=c({common:()=>$d,consent:()=>ef,default:()=>lf,invitation:()=>tf,login:()=>nf,mfa:()=>rf,organizations:()=>of,passkeys:()=>af,signup:()=>sf,status:()=>cf}),$d={common:{alertListTitle:`Powiadomienia`,backText:`Wróć`,cancelText:`Anuluj`,closeText:`Zamknij`,contactSupportText:`Potrzebujesz pomocy?`,continueText:`Kontynuuj`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Coś poszło nie tak. Spróbuj ponownie.`,hidePasswordText:`Ukryj hasło`,loadingText:`Ładowanie...`,orText:`lub`,privacyPolicyText:`Polityka prywatności`,showPasswordText:`Pokaż hasło`,termsOfServiceText:`Regulamin`,termsShortText:`Zasady`,tryAgainText:`Spróbuj ponownie`}},ef={consent:{buttonText:`Zaakceptuj`,cancelButtonText:`Odmów`,description:"${clientName} prosi o dostęp do Twojego konta",pageTitle:"Autoryzacja | ${clientName}",scopesTitle:"Umożliwi to ${clientName}:",title:"Autoryzuj ${clientName}"}},tf={invitation:{acceptButtonText:`Przyjmij zaproszenie`,description:"${inviterName} zaprosił Cię do dołączenia do ${organizationName} w ${clientName}",pageTitle:"Zaproszenie | ${clientName}",title:`Otrzymałeś zaproszenie`}},nf={login:{alertListTitle:`Powiadomienia`,buttonText:`Kontynuuj`,description:"Zaloguj się do ${clientName}.",editEmailText:`Edytuj`,emailPlaceholder:`Adres e-mail`,enterACodeBtn:`Zaloguj się kodem`,federatedConnectionButtonText:"Kontynuuj z ${connectionName}",footerLinkText:`Zarejestruj się`,footerText:`Nie masz konta?`,forgotPasswordText:`Zapomniałeś hasła?`,hidePasswordText:`Ukryj hasło`,invalidEmail:`Nieprawidłowy adres e-mail`,invalidIdentifier:`Nieprawidłowy adres e-mail lub nazwa użytkownika`,invitationDescription:"Zaloguj się, aby przyjąć zaproszenie od ${inviterName} do dołączenia do ${companyName} w ${clientName}.",invitationTitle:`Otrzymałeś zaproszenie!`,logoAltText:"${companyName}","no-email":`Wprowadź adres e-mail`,"no-password":`Hasło jest wymagane`,pageTitle:"Logowanie | ${clientName}",passwordLoginNotAvailable:`Logowanie hasłem jest niedostępne`,passwordPlaceholder:`Hasło`,phonePlaceholder:`Numer telefonu`,separatorText:`lub`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,showPasswordText:`Pokaż hasło`,signupActionLinkText:`Zarejestruj się`,signupActionText:`Nie masz konta?`,title:`Witamy`,tooManyFailedLogins:`Zbyt wiele nieudanych prób logowania. Spróbuj ponownie później.`,unverifiedEmail:`Zweryfikuj swój adres e-mail przed zalogowaniem`,userAccountDoesNotExist:`Konto użytkownika nie istnieje`,usernamePlaceholder:`Nazwa użytkownika lub adres e-mail`,usernameTooLong:"Nazwa użytkownika musi mieć maksymalnie ${max} znaków",usernameTooShort:"Nazwa użytkownika musi mieć co najmniej ${min} znaków",wrongCredentials:`Nieprawidłowa nazwa użytkownika lub hasło`,passkeyButtonText:`Zaloguj się za pomocą passkey`}},rf={mfa:{backupCodeText:`Użyj kodu zapasowego`,description:`Wybierz metodę weryfikacji`,pageTitle:"Uwierzytelnianie wieloskładnikowe | ${clientName}",title:`Zweryfikuj swoją tożsamość`}},af={"passkey-enrollment-nudge":{title:`Zabezpiecz swoje konto kluczem dostępu`,description:`Klucze dostępu wykorzystują biometrię lub PIN urządzenia, aby logować się szybciej i bezpieczniej.`,enrollButtonText:`Skonfiguruj klucz dostępu`,snoozeButtonText:`Może później`,optOutLinkText:`Nie pokazuj ponownie`,pageTitle:"Konfiguracja Klucza Dostępu | ${clientName}"},"passkey-enrollment":{title:`Utwórz klucz dostępu`,description:`Postępuj zgodnie z instrukcjami przeglądarki, aby utworzyć klucz dostępu dla tego konta.`,errorMessage:`Nie udało się utworzyć klucza dostępu. Spróbuj ponownie.`,cancelLinkText:`Pomiń na razie`,retryButtonText:`Spróbuj ponownie`,enrollmentComplete:`Twój klucz dostępu został pomyślnie skonfigurowany. Możesz zamknąć tę stronę.`,pageTitle:"Tworzenie Klucza Dostępu | ${clientName}"},"passkey-challenge":{title:`Zaloguj się za pomocą passkey`,description:`Postępuj zgodnie z instrukcjami przeglądarki, aby zweryfikować swoją tożsamość.`,errorMessage:`Uwierzytelnianie za pomocą passkey nie powiodło się. Spróbuj ponownie.`,cancelLinkText:`Powrót do logowania`,retryButtonText:`Spróbuj ponownie`,pageTitle:"Logowanie za pomocą passkey | ${clientName}"}},of={organizations:{description:`Wybierz organizację, do której chcesz się zalogować`,pageTitle:"Wybierz organizację | ${clientName}",searchPlaceholder:`Szukaj organizacji`,title:`Wybierz swoją organizację`}},sf={signup:{buttonText:`Zarejestruj się`,confirmPasswordPlaceholder:`Potwierdź hasło`,description:`Zarejestruj się, aby kontynuować`,"email-already-exists":`Ten adres e-mail jest już zarejestrowany`,emailPlaceholder:`Adres e-mail`,federatedConnectionButtonText:"Kontynuuj z ${connectionName}",hidePasswordText:`Ukryj hasło`,"invalid-email-format":`Nieprawidłowy adres e-mail`,loginActionLinkText:`Zaloguj się`,loginActionText:`Masz już konto?`,"no-email":`Wprowadź adres e-mail`,"no-password":`Hasło jest wymagane`,"no-username":`Nazwa użytkownika jest wymagana`,pageTitle:"Rejestracja | ${clientName}",passwordPlaceholder:`Hasło`,passwordsDidntMatch:`Hasła nie są zgodne`,phonePlaceholder:`Numer telefonu`,privacyPolicyLinkText:`Polityka prywatności`,separatorText:`lub`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,showPasswordText:`Pokaż hasło`,termsOfServiceLinkText:`Regulamin`,termsText:`Rejestrując się, akceptujesz nasz`,title:`Utwórz konto`,"username-already-exists":`Ta nazwa użytkownika jest już zajęta`,usernamePlaceholder:`Nazwa użytkownika`,verifyEmailText:`Sprawdź swoją pocztę, aby zweryfikować konto`}},cf={status:{continueButtonText:`Kontynuuj`,errorTitle:`Błąd`,pageTitle:"Status | ${clientName}",successTitle:`Sukces`,title:`Status`}},lf={common:$d,consent:ef,"device-flow":{"device-flow":{buttonText:`Kontynuuj`,codePlaceholder:`Wprowadź kod`,description:`Wprowadź kod wyświetlony na Twoim urządzeniu`,"expired-code":`Kod wygasł`,"invalid-code":`Wprowadzony kod jest nieprawidłowy`,pageTitle:"Aktywacja urządzenia | ${clientName}",title:`Aktywuj swoje urządzenie`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Kontynuuj`,codeLabel:`Kod weryfikacyjny`,codePlaceholder:`Wprowadź kod`,defaultDescription:`Wprowadź kod weryfikacyjny wysłany na Twój adres e-mail`,description:"Wysłaliśmy kod na ${email}","invalid-code":`Nieprawidłowy kod`,noCode:`Wprowadź kod weryfikacyjny`,pageTitle:"Wprowadź kod | ${clientName}",resendText:`Wyślij ponownie kod`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,title:`Sprawdź swoją pocztę`,unexpectedError:`Wystąpił nieoczekiwany błąd`}},"email-verification":{"email-verification":{description:"Wysłaliśmy wiadomość na ${email}",pageTitle:"Weryfikacja e-mail | ${clientName}",resendText:`Wyślij ponownie e-mail`,successDescription:`Twój adres e-mail został pomyślnie zweryfikowany.`,successTitle:`E-mail zweryfikowany`,title:`Zweryfikuj swój adres e-mail`}},invitation:tf,login:nf,"login-id":{"login-id":{alertListTitle:`Powiadomienia`,"auth0-users-validation":`Coś poszło nie tak, spróbuj ponownie później`,"authentication-failure":`Przepraszamy, wystąpił błąd podczas logowania`,buttonText:`Kontynuuj`,"captcha-client-failure":`Nie udało się załadować weryfikacji bezpieczeństwa. Spróbuj ponownie. (Kod błędu: #{errorCode})`,"captcha-validation-failure":`Przepraszamy, wystąpił błąd podczas weryfikacji captcha. Spróbuj ponownie.`,captchaCodePlaceholder:`Wprowadź kod widoczny powyżej`,"custom-script-error-code":`Coś poszło nie tak, spróbuj ponownie później.`,description:"Zaloguj się do ${clientName}.",editEmailText:`Edytuj`,emailPlaceholder:`Adres e-mail`,federatedConnectionButtonText:"Kontynuuj z ${connectionName}",footerLinkText:`Zarejestruj się`,footerText:`Nie masz konta?`,forgotPasswordText:`Zapomniałeś hasła?`,hidePasswordText:`Ukryj hasło`,"invalid-captcha":`Rozwiąż zadanie, aby potwierdzić, że nie jesteś robotem.`,"invalid-code":`Nieprawidłowy kod`,"invalid-connection":`Nieprawidłowe połączenie`,"invalid-email-format":`Nieprawidłowy adres e-mail`,"invalid-email-phone":`Wprowadź prawidłowy adres e-mail lub numer telefonu. Numery telefonów muszą zawierać kod kraju.`,"invalid-email-phone-username":`Wprowadź prawidłowy adres e-mail, numer telefonu lub nazwę użytkownika. Numery telefonów muszą zawierać kod kraju.`,"invalid-email-username":`Wprowadź prawidłowy adres e-mail lub nazwę użytkownika`,"invalid-expired-code":`Nieprawidłowy lub wygasły kod użytkownika`,"invalid-login-id":`Wprowadzono nieprawidłowy identyfikator logowania`,"invalid-phone-username":`Wprowadź prawidłowy numer telefonu lub nazwę użytkownika. Numery telefonów muszą zawierać kod kraju.`,"invalid-recaptcha":`Zaznacz pole wyboru, aby potwierdzić, że nie jesteś robotem.`,"invalid-username":"Nazwa użytkownika może zawierać tylko znaki alfanumeryczne lub: '${characters}'. Nazwa użytkownika powinna mieć od ${min} do ${max} znaków.",invitationDescription:"Zaloguj się, aby przyjąć zaproszenie od ${inviterName} do dołączenia do ${companyName} w ${clientName}.",invitationTitle:`Otrzymałeś zaproszenie!`,"ip-blocked":`Wykryliśmy podejrzaną aktywność logowania i dalsze próby zostaną zablokowane. Skontaktuj się z administratorem.`,logoAltText:"${companyName}","no-db-connection":`Nieprawidłowe połączenie`,"no-email":`Wprowadź adres e-mail`,"no-email-phone":`Adres e-mail lub numer telefonu jest wymagany`,"no-email-phone-username":`Numer telefonu, nazwa użytkownika lub adres e-mail jest wymagany`,"no-email-username":`Adres e-mail lub nazwa użytkownika jest wymagany`,"no-password":`Hasło jest wymagane`,"no-phone":`Wprowadź numer telefonu`,"no-phone-username":`Numer telefonu lub nazwa użytkownika jest wymagany`,"no-username":`Nazwa użytkownika jest wymagana`,pageTitle:"Logowanie | ${clientName}","password-breached":`Wykryliśmy potencjalny problem z bezpieczeństwem tego konta. Aby chronić Twoje konto, zablokowano to logowanie. Zresetuj hasło, aby kontynuować.`,passwordPlaceholder:`Hasło`,phoneOrEmailPlaceholder:`E-mail lub numer telefonu`,phoneOrUsernameOrEmailPlaceholder:`Telefon, nazwa użytkownika lub e-mail`,phoneOrUsernamePlaceholder:`Numer telefonu lub nazwa użytkownika`,phonePlaceholder:`Numer telefonu`,"same-user-login":`Zbyt wiele prób logowania dla tego użytkownika. Poczekaj chwilę i spróbuj ponownie.`,selectCountryCode:"Wybierz kod kraju, aktualnie ustawiony na ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`lub`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,showPasswordText:`Pokaż hasło`,signupActionLinkText:`Zarejestruj się`,signupActionText:`Nie masz konta?`,termsAndConditionsTemplate:'Kontynuując, akceptujesz nasze <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Zasady i warunki</a>.',title:`Witamy`,"user-blocked":`Twoje konto zostało zablokowane po wielu kolejnych nieudanych próbach logowania.`,userAccountDoesNotExist:`Konto użytkownika nie istnieje`,usernameOnlyPlaceholder:`Nazwa użytkownika`,usernameOrEmailPlaceholder:`Nazwa użytkownika lub adres e-mail`,usernamePlaceholder:`Nazwa użytkownika`,usernameTooLong:"Nazwa użytkownika musi mieć maksymalnie ${max} znaków",usernameTooShort:"Nazwa użytkownika musi mieć co najmniej ${min} znaków","wrong-credentials":`Nieprawidłowa nazwa użytkownika lub hasło`,"wrong-email-credentials":`Nieprawidłowy adres e-mail lub hasło`,"wrong-email-phone-credentials":`Nieprawidłowy adres e-mail, numer telefonu lub hasło. Numery telefonów muszą zawierać kod kraju.`,"wrong-email-phone-username-credentials":`Nieprawidłowy adres e-mail, numer telefonu, nazwa użytkownika lub hasło. Numery telefonów muszą zawierać kod kraju.`,"wrong-email-username-credentials":`Nieprawidłowy adres e-mail, nazwa użytkownika lub hasło`,"wrong-phone-credentials":`Nieprawidłowy numer telefonu lub hasło`,"wrong-phone-username-credentials":`Nieprawidłowy numer telefonu, nazwa użytkownika lub hasło. Numery telefonów muszą zawierać kod kraju.`,"wrong-username-credentials":`Nieprawidłowa nazwa użytkownika lub hasło`,passkeyButtonText:`Zaloguj się za pomocą passkey`}},"login-password":{"login-password":{buttonText:`Zaloguj się`,description:"Zaloguj się do ${clientName}",forgotPasswordText:`Zapomniałeś hasła?`,hidePasswordText:`Ukryj hasło`,"no-password":`Hasło jest wymagane`,pageTitle:"Logowanie | ${clientName}","password-breached":`Wykryliśmy potencjalny problem z bezpieczeństwem tego konta. Aby chronić Twoje konto, zablokowano to logowanie. Zresetuj hasło, aby kontynuować.`,passwordPlaceholder:`Hasło`,showPasswordText:`Pokaż hasło`,signingInAs:"Logujesz się jako ${email}",title:`Wprowadź hasło`,unverifiedEmail:`Zweryfikuj swój adres e-mail przed zalogowaniem`,"user-blocked":`Twoje konto zostało zablokowane po wielu kolejnych nieudanych próbach logowania.`,"wrong-credentials":`Nieprawidłowe hasło`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-mail`,authMethodEmailOrPhone:`e-mail lub numer telefonu`,authMethodPhone:`numer telefonu`,description:"Zaloguj się za pomocą swojego ${authMethod}",emailOrPhonePlaceholder:`Adres e-mail lub numer telefonu`,emailPlaceholder:`Adres e-mail`,invalidEmail:`Wprowadź prawidłowy adres e-mail`,invalidIdentifier:`Wprowadź prawidłowy adres e-mail lub numer telefonu`,invalidPhone:`Wprowadź prawidłowy numer telefonu z kodem kraju`,noEmail:`Wprowadź swój adres e-mail`,noPhone:`Wprowadź swój numer telefonu`,phonePlaceholder:`Numer telefonu`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,title:`Zaloguj się kodem`,userAccountDoesNotExist:`Konto użytkownika nie istnieje`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Kliknij link w wiadomości e-mail, aby się zalogować`,description:"Wysłaliśmy link na ${username}. Kliknij go, aby się zalogować.",resendText:`Wyślij ponownie link`,spamText:`Nie otrzymałeś wiadomości? Sprawdź folder spam.`,title:`Sprawdź swoją pocztę`}},mfa:rf,"mfa-email":{"mfa-email":{buttonText:`Kontynuuj`,codePlaceholder:`Wprowadź kod`,description:"Wysłaliśmy kod na ${email}","invalid-code":`Wprowadzony kod jest nieprawidłowy`,pageTitle:"Weryfikacja e-mail | ${clientName}",resendText:`Wyślij ponownie kod`,title:`Sprawdź swoją pocztę`}},"mfa-otp":{"mfa-otp":{buttonText:`Kontynuuj`,codePlaceholder:`Wprowadź kod`,description:`Wprowadź 6-cyfrowy kod z aplikacji uwierzytelniającej`,"invalid-code":`Wprowadzony kod jest nieprawidłowy`,pageTitle:"Wprowadź kod | ${clientName}",title:`Wprowadź swój kod`},"mfa-totp-enrollment":{title:`Skonfiguruj aplikację uwierzytelniającą`,description:`Zeskanuj poniższy kod QR za pomocą aplikacji uwierzytelniającej, a następnie wprowadź 6-cyfrowy kod w celu weryfikacji`,secretLabel:`Lub wprowadź ten kod ręcznie:`,codePlaceholder:`Wprowadź kod`,continueButtonText:`Zweryfikuj i aktywuj`,"invalid-code":`Wprowadzony kod jest nieprawidłowy. Spróbuj ponownie.`,"transaction-not-found":`Twoja transakcja rejestracji wygasła, musisz zacząć od nowa.`,pageTitle:"Konfiguracja uwierzytelniania | ${clientName}",unexpectedError:`Coś poszło nie tak. Spróbuj ponownie.`,enrollmentComplete:`Rejestracja MFA została zakończona. Możesz zamknąć tę stronę.`},"mfa-totp-challenge":{title:`Zweryfikuj swoją tożsamość`,description:`Wprowadź 6-cyfrowy kod z aplikacji uwierzytelniającej`,codePlaceholder:`Wprowadź kod`,continueButtonText:`Kontynuuj`,"invalid-code":`Wprowadzony kod jest nieprawidłowy`,"transaction-not-found":`Twoja transakcja rejestracji wygasła, musisz zacząć od nowa.`,unexpectedError:`Coś poszło nie tak. Spróbuj ponownie.`,pageTitle:"Weryfikacja tożsamości | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Użyj swojego numeru telefonu, aby się zalogować | ${clientName}",title:`Zweryfikuj swoją tożsamość`,description:"Wysłaliśmy kod na ${phoneNumber}",continueButtonText:`Kontynuuj`,changePhoneText:`Wybierz inny numer telefonu.`,smsButtonText:`Wiadomość tekstowa`,voiceButtonText:`Połączenie głosowe`,chooseMessageTypeText:`Jak chcesz otrzymać kod?`,pickAuthenticatorText:`Wypróbuj inną metodę`,logoAltText:"${companyName}",codePlaceholder:`Wpisz kod`,"send-sms-failed":`Wystąpił problem z wysłaniem SMS-a`,"send-voice-failed":`Wystąpił problem z wykonaniem połączenia głosowego`,"invalid-phone-format":`Numer telefonu może zawierać tylko cyfry.`,"invalid-phone":`Wygląda na to, że Twój numer telefonu jest nieprawidłowy. Sprawdź i spróbuj ponownie.`,"too-many-sms":`Przekroczono maksymalną liczbę wiadomości telefonicznych na godzinę. Poczekaj kilka minut i spróbuj ponownie.`,"too-many-voice":`Przekroczono maksymalną liczbę połączeń telefonicznych na godzinę. Poczekaj kilka minut i spróbuj ponownie.`,"transaction-not-found":`Twoja transakcja rejestracji wygasła, musisz zacząć od nowa.`,"no-phone":`Wpisz numer telefonu`,noCode:`Wprowadź kod weryfikacyjny`,invalidCode:`Wprowadzony kod jest nieprawidłowy. Spróbuj ponownie.`,unexpectedError:`Coś poszło nie tak. Spróbuj ponownie.`,resendSuccess:`Wysłaliśmy nowy kod na Twój telefon`,enrollmentComplete:`Rejestracja MFA została zakończona. Możesz zamknąć tę stronę.`},"mfa-phone-enrollment":{pageTitle:"Wpisz swój numer telefonu, aby zalogować się kodem telefonicznym | ${clientName}",title:`Zabezpiecz swoje konto`,description:`Wpisz kod kraju i numer telefonu, na który możemy wysłać 6-cyfrowy kod:`,continueButtonText:`Kontynuuj`,smsButtonText:`Wiadomość tekstowa`,voiceButtonText:`Połączenie głosowe`,chooseMessageTypeText:`Jak chcesz otrzymać kod?`,pickAuthenticatorText:`Wypróbuj inną metodę`,placeholder:`Wpisz swój numer telefonu`,logoAltText:"${companyName}",selectCountryCode:"Wybierz kod kraju, aktualnie ustawiony na ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Wystąpił problem z wysłaniem SMS-a`,"send-voice-failed":`Wystąpił problem z wykonaniem połączenia głosowego`,"sms-authenticator-error":`Nie udało się wysłać SMS-a. Spróbuj ponownie później.`,"invalid-phone-format":`Numer telefonu może zawierać tylko cyfry.`,"invalid-phone":`Wygląda na to, że Twój numer telefonu jest nieprawidłowy. Sprawdź i spróbuj ponownie.`,"too-many-sms":`Przekroczono maksymalną liczbę wiadomości telefonicznych na godzinę. Poczekaj kilka minut i spróbuj ponownie.`,"too-many-voice":`Przekroczono maksymalną liczbę połączeń telefonicznych na godzinę. Poczekaj kilka minut i spróbuj ponownie.`,"transaction-not-found":`Twoja transakcja rejestracji wygasła, musisz zacząć od nowa.`,"no-phone":`Wpisz numer telefonu`,"phone-is-too-short":`Numer telefonu jest za krótki`,"phone-is-too-long":`Numer telefonu jest za długi`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Wybierz metodę weryfikacji | ${clientName}",title:`Wybierz metodę weryfikacji`,description:`Wybierz, w jaki sposób chcesz zweryfikować swoją tożsamość`,authenticatorAppLabel:`Aplikacja uwierzytelniająca`,authenticatorAppDescription:`Użyj aplikacji uwierzytelniającej, aby uzyskać kod weryfikacyjny`,smsLabel:`Wiadomość tekstowa`,smsDescription:`Otrzymaj kod weryfikacyjny wysłany na swój telefon`,passkeyLabel:`Klucz dostępu`,passkeyDescription:`Użyj biometrii urządzenia lub klucza bezpieczeństwa`}},"mfa-push":{"mfa-push":{description:`Wysłaliśmy powiadomienie na Twoje urządzenie`,pageTitle:"Powiadomienie push | ${clientName}",resendText:`Wyślij ponownie powiadomienie`,title:`Zatwierdź żądanie`,useCodeText:`Wprowadź kod ręcznie`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Kontynuuj`,codePlaceholder:`Kod odzyskiwania`,description:`Wprowadź jeden z kodów odzyskiwania`,"invalid-code":`Wprowadzony kod odzyskiwania jest nieprawidłowy`,pageTitle:"Kod odzyskiwania | ${clientName}",title:`Wprowadź kod odzyskiwania`}},"mfa-voice":{"mfa-voice":{buttonText:`Zadzwoń do mnie`,codePlaceholder:`Wprowadź kod`,description:"Zadzwonimy na ${phoneNumber} z Twoim kodem","invalid-code":`Wprowadzony kod jest nieprawidłowy`,pageTitle:"Połączenie głosowe | ${clientName}",title:`Odbierz połączenie telefoniczne`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Spróbuj ponownie`,description:`Włóż klucz bezpieczeństwa i postępuj zgodnie z instrukcjami`,pageTitle:"Klucz bezpieczeństwa | ${clientName}",title:`Użyj klucza bezpieczeństwa`}},passkeys:af,organizations:of,"reset-password":{"reset-password":{backToLoginText:`Wróć do logowania`,buttonText:`Kontynuuj`,codeExpired:`Kod resetu hasła wygasł. Poproś o nowy.`,confirmPasswordLabel:`Potwierdź hasło`,confirmPasswordPlaceholder:`Potwierdź hasło`,description:`Wprowadź swój adres e-mail, aby zresetować hasło`,emailPlaceholder:`Adres e-mail`,failed:`Reset hasła nie powiódł się. Spróbuj ponownie.`,"invalid-email-format":`Nieprawidłowy adres e-mail`,"no-email":`Wprowadź adres e-mail`,pageTitle:"Resetowanie hasła | ${clientName}",passwordLabel:`Nowe hasło`,passwordPlaceholder:`Nowe hasło`,passwordTooWeak:`Hasło jest zbyt słabe`,passwordsDidntMatch:`Hasła nie są zgodne`,successDescription:`Wysłaliśmy link do resetowania hasła na Twój adres e-mail.`,successTitle:`Sprawdź swoją pocztę`,title:`Zapomniałeś hasła?`,"user-not-found":`Nie znaleziono użytkownika`},"reset-password-code":{backToLoginText:`Wróć do logowania`,buttonText:`Zresetuj hasło`,codeLabel:`Kod resetowania`,codePlaceholder:`Wprowadź 6-cyfrowy kod`,confirmPasswordLabel:`Potwierdź hasło`,confirmPasswordPlaceholder:`Potwierdź hasło`,defaultDescription:`Wprowadź kod wysłany na Twój e-mail i wybierz nowe hasło`,description:"Wysłaliśmy kod na ${email}",failed:`Reset hasła nie powiódł się. Spróbuj ponownie.`,invalidCode:`Wprowadzony kod jest nieprawidłowy lub wygasł`,noCode:`Wprowadź kod resetowania`,pageTitle:"Wprowadź kod resetowania | ${clientName}",passwordLabel:`Nowe hasło`,passwordPlaceholder:`Nowe hasło`,passwordTooWeak:`Hasło jest zbyt słabe`,passwordsDidntMatch:`Hasła nie są zgodne`,resendFailed:`Nie udało się ponownie wysłać kodu. Spróbuj ponownie.`,resendSuccess:`Nowy kod został wysłany na Twój e-mail`,resendText:`Wyślij kod ponownie`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,title:`Wprowadź kod resetowania`}},signup:sf,"signup-id":{"signup-id":{buttonText:`Kontynuuj`,description:`Zarejestruj się, aby kontynuować`,"email-already-exists":`Ten adres e-mail jest już zarejestrowany`,emailPlaceholder:`Adres e-mail`,federatedConnectionButtonText:"Kontynuuj z ${connectionName}","invalid-email-format":`Nieprawidłowy adres e-mail`,loginActionLinkText:`Zaloguj się`,loginActionText:`Masz już konto?`,"no-email":`Wprowadź adres e-mail`,pageTitle:"Rejestracja | ${clientName}",phonePlaceholder:`Numer telefonu`,separatorText:`lub`,title:`Utwórz konto`,usernamePlaceholder:`Nazwa użytkownika`}},"signup-password":{"signup-password":{buttonText:`Kontynuuj`,description:`Utwórz swoje hasło`,hidePasswordText:`Ukryj hasło`,"no-password":`Hasło jest wymagane`,pageTitle:"Rejestracja | ${clientName}","password-policy-not-met":`Hasło nie spełnia wymagań`,"password-too-weak":`Hasło jest zbyt słabe`,passwordPlaceholder:`Hasło`,showPasswordText:`Pokaż hasło`,title:`Utwórz hasło`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Kontynuuj`,codeLabel:`Kod weryfikacyjny`,codePlaceholder:`Wprowadź kod`,defaultDescription:`Wprowadź kod weryfikacyjny wysłany na Twój telefon`,description:"Wysłaliśmy kod na ${username}","invalid-code":`Nieprawidłowy kod`,noCode:`Wprowadź kod weryfikacyjny`,pageTitle:"Wprowadź kod | ${clientName}",resendText:`Wyślij ponownie kod`,sessionExpired:`Twoja sesja wygasła. Spróbuj ponownie.`,title:`Sprawdź swój telefon`,unexpectedError:`Wystąpił nieoczekiwany błąd`}},status:cf},uf=c({common:()=>df,consent:()=>ff,default:()=>bf,invitation:()=>pf,login:()=>mf,mfa:()=>hf,organizations:()=>_f,passkeys:()=>gf,signup:()=>vf,status:()=>yf}),df={common:{alertListTitle:`Meddelanden`,backText:`Gå tillbaka`,cancelText:`Gå tillbaka`,closeText:`Stäng`,contactSupportText:`Behöver du hjälp?`,continueText:`Fortsätt`,copyrightText:"© ${currentYear} ${companyName}",errorText:`Något gick fel. Vänligen försök igen.`,hidePasswordText:`Dölj lösenord`,loadingText:`Laddar...`,orText:`eller`,privacyPolicyText:`Integritetspolicy`,showPasswordText:`Visa lösenord`,termsOfServiceText:`Användarvillkor`,termsShortText:`Villkor`,tryAgainText:`Försök igen`}},ff={consent:{buttonText:`Godkänn`,cancelButtonText:`Neka`,description:"${clientName} begär åtkomst till ditt konto",pageTitle:"Auktorisera | ${clientName}",scopesTitle:"Detta ger ${clientName} tillåtelse att:",title:"Auktorisera ${clientName}"}},pf={invitation:{acceptButtonText:`Acceptera inbjudan`,description:"${inviterName} har bjudit in dig att gå med i ${organizationName} på ${clientName}",pageTitle:"Inbjudan | ${clientName}",title:`Du har blivit inbjuden`}},mf={login:{alertListTitle:`Meddelanden`,buttonText:`Fortsätt`,description:"Logga in på ${clientName}.",editEmailText:`Redigera`,emailPlaceholder:`E-postadress`,enterACodeBtn:`Logga in med en kod`,federatedConnectionButtonText:"Fortsätt med ${connectionName}",footerLinkText:`Registrera dig`,footerText:`Har du inget konto?`,forgotPasswordText:`Har du glömt lösenordet?`,hidePasswordText:`Dölj lösenord`,invalidEmail:`Ogiltig e-postadress`,invalidIdentifier:`Ogiltig e-postadress eller användarnamn`,invitationDescription:"Logga in för att acceptera ${inviterName}s inbjudan att gå med i ${companyName} på ${clientName}.",invitationTitle:`Du har blivit inbjuden!`,logoAltText:"${companyName}","no-email":`Vänligen ange en e-postadress`,"no-password":`Lösenord krävs`,pageTitle:"Logga in | ${clientName}",passwordLoginNotAvailable:`Lösenordsinloggning är inte tillgänglig`,passwordPlaceholder:`Lösenord`,phonePlaceholder:`Telefonnummer`,separatorText:`eller`,sessionExpired:`Din session har gått ut. Försök igen.`,showPasswordText:`Visa lösenord`,signupActionLinkText:`Registrera dig`,signupActionText:`Har du inget konto?`,title:`Välkommen`,tooManyFailedLogins:`För många misslyckade inloggningsförsök. Försök igen senare.`,unverifiedEmail:`Verifiera din e-postadress innan du loggar in`,userAccountDoesNotExist:`Användarkontot finns inte`,usernamePlaceholder:`Användarnamn eller e-postadress`,usernameTooLong:"Användarnamnet får vara högst ${max} tecken",usernameTooShort:"Användarnamnet måste vara minst ${min} tecken",wrongCredentials:`Fel användarnamn eller lösenord`,passkeyButtonText:`Logga in med passkey`}},hf={mfa:{backupCodeText:`Använd reservkod`,description:`Välj en verifieringsmetod`,pageTitle:"Multifaktorautentisering | ${clientName}",title:`Verifiera din identitet`}},gf={"passkey-enrollment-nudge":{title:`Skydda ditt konto med en nyckel`,description:`Nycklar använder enhetens biometri eller PIN-kod för att logga in snabbare och säkrare.`,enrollButtonText:`Konfigurera nyckel`,snoozeButtonText:`Kanske senare`,optOutLinkText:`Visa inte detta igen`,pageTitle:"Konfigurera Nyckel | ${clientName}"},"passkey-enrollment":{title:`Skapa din nyckel`,description:`Följ anvisningarna från din webbläsare för att skapa en nyckel för detta konto.`,errorMessage:`Det gick inte att skapa nyckeln. Försök igen.`,cancelLinkText:`Hoppa över för nu`,retryButtonText:`Försök igen`,enrollmentComplete:`Din nyckel har konfigurerats. Du kan stänga denna sida.`,pageTitle:"Skapa Nyckel | ${clientName}"},"passkey-challenge":{title:`Logga in med passkey`,description:`Följ instruktionerna från din webbläsare för att verifiera din identitet.`,errorMessage:`Autentisering med passkey misslyckades. Försök igen.`,cancelLinkText:`Tillbaka till inloggning`,retryButtonText:`Försök igen`,pageTitle:"Logga in med passkey | ${clientName}"}},_f={organizations:{description:`Välj vilken organisation du vill logga in på`,pageTitle:"Välj organisation | ${clientName}",searchPlaceholder:`Sök organisationer`,title:`Välj din organisation`}},vf={signup:{buttonText:`Registrera dig`,confirmPasswordPlaceholder:`Bekräfta lösenord`,description:`Välj ett lösenord med en blandning av stora och små bokstäver, siffror och symboler.`,"email-already-exists":`E-postadressen är redan upptagen`,emailPlaceholder:`E-postadress`,federatedConnectionButtonText:"Fortsätt med ${connectionName}",hidePasswordText:`Dölj lösenord`,"invalid-email-format":`Ogiltig e-postadress`,loginActionLinkText:`Logga in`,loginActionText:`Har du redan ett konto?`,"no-email":`Vänligen ange en e-postadress`,"no-password":`Lösenord krävs`,"no-username":`Användarnamn krävs`,pageTitle:"Registrera dig | ${clientName}",passwordPlaceholder:`Lösenord`,passwordsDidntMatch:`Lösenorden matchar inte`,phonePlaceholder:`Telefonnummer`,privacyPolicyLinkText:`Integritetspolicy`,separatorText:`eller`,sessionExpired:`Din session har gått ut. Försök igen.`,showPasswordText:`Visa lösenord`,termsOfServiceLinkText:`Användarvillkor`,termsText:`Genom att registrera dig godkänner du våra`,title:`Välj lösenord`,"username-already-exists":`Användarnamnet är redan taget`,usernamePlaceholder:`Användarnamn`,verifyEmailText:`Kontrollera din e-post för att verifiera ditt konto`}},yf={status:{continueButtonText:`Fortsätt`,errorTitle:`Fel`,pageTitle:"Status | ${clientName}",successTitle:`Klart`,title:`Status`}},bf={common:df,consent:ff,"device-flow":{"device-flow":{buttonText:`Fortsätt`,codePlaceholder:`Ange kod`,description:`Ange koden som visas på din enhet`,"expired-code":`Koden har gått ut`,"invalid-code":`Koden du angav är ogiltig`,pageTitle:"Enhetsaktivering | ${clientName}",title:`Aktivera din enhet`}},"email-otp-challenge":{"email-otp-challenge":{buttonText:`Logga in`,codeLabel:`Verifieringskod`,codePlaceholder:`Ange kod`,defaultDescription:`Ange verifieringskoden som skickades till din e-post`,description:"Vi skickade en kod till ${email}","invalid-code":`Ogiltig kod`,noCode:`Ange verifieringskoden`,pageTitle:"Ange kod | ${clientName}",resendText:`Skicka koden igen`,sessionExpired:`Din session har gått ut. Försök igen.`,title:`Kolla din e-post`,unexpectedError:`Ett oväntat fel uppstod`}},"email-verification":{"email-verification":{description:"Vi skickade ett e-postmeddelande till ${email}",pageTitle:"Verifiera e-post | ${clientName}",resendText:`Skicka koden igen`,successDescription:`Din e-postadress har verifierats.`,successTitle:`E-post verifierad`,title:`Ange engångskod`}},invitation:pf,login:mf,"login-id":{"login-id":{alertListTitle:`Meddelanden`,"auth0-users-validation":`Något gick fel, försök igen senare`,"authentication-failure":`Vi beklagar, något gick fel vid inloggningsförsöket`,buttonText:`Fortsätt`,"captcha-client-failure":`Vi kunde inte ladda säkerhetsutmaningen. Försök igen. (Felkod: #{errorCode})`,"captcha-validation-failure":`Vi beklagar, något gick fel vid validering av captcha-svaret. Försök igen.`,captchaCodePlaceholder:`Ange koden som visas ovan`,"custom-script-error-code":`Något gick fel, försök igen senare.`,description:"Logga in på ${clientName}.",editEmailText:`Redigera`,emailPlaceholder:`E-postadress`,federatedConnectionButtonText:"Fortsätt med ${connectionName}",footerLinkText:`Registrera dig`,footerText:`Har du inget konto?`,forgotPasswordText:`Har du glömt lösenordet?`,hidePasswordText:`Dölj lösenord`,"invalid-captcha":`Lös utmaningen för att verifiera att du inte är en robot.`,"invalid-code":`Ogiltig kod`,"invalid-connection":`Ogiltig anslutning`,"invalid-email-format":`Ogiltig e-postadress`,"invalid-email-phone":`Ange en giltig e-postadress eller telefonnummer. Telefonnummer måste innehålla landskod.`,"invalid-email-phone-username":`Ange en giltig e-postadress, telefonnummer eller användarnamn. Telefonnummer måste innehålla landskod.`,"invalid-email-username":`Ange en giltig e-postadress eller användarnamn`,"invalid-expired-code":`Ogiltig eller utgången användarkod`,"invalid-login-id":`Ogiltigt inloggnings-ID angivet`,"invalid-phone-username":`Ange ett giltigt telefonnummer eller användarnamn. Telefonnummer måste innehålla landskod.`,"invalid-recaptcha":`Markera kryssrutan för att verifiera att du inte är en robot.`,"invalid-username":"Användarnamn kan bara innehålla alfanumeriska tecken eller: '${characters}'. Användarnamn ska vara mellan ${min} och ${max} tecken.",invitationDescription:"Logga in för att acceptera ${inviterName}s inbjudan att gå med i ${companyName} på ${clientName}.",invitationTitle:`Du har blivit inbjuden!`,"ip-blocked":`Vi har upptäckt misstänkt inloggningsaktivitet och ytterligare försök kommer att blockeras. Kontakta administratören.`,logoAltText:"${companyName}","no-db-connection":`Ogiltig anslutning`,"no-email":`Vänligen ange en e-postadress`,"no-email-phone":`E-postadress eller telefonnummer krävs`,"no-email-phone-username":`Telefonnummer, användarnamn eller e-postadress krävs`,"no-email-username":`E-postadress eller användarnamn krävs`,"no-password":`Lösenord krävs`,"no-phone":`Ange ett telefonnummer`,"no-phone-username":`Telefonnummer eller användarnamn krävs`,"no-username":`Användarnamn krävs`,pageTitle:"Logga in | ${clientName}","password-breached":`Vi har upptäckt ett potentiellt säkerhetsproblem med detta konto. För att skydda ditt konto har vi förhindrat denna inloggning. Återställ ditt lösenord för att fortsätta.`,passwordPlaceholder:`Lösenord`,phoneOrEmailPlaceholder:`E-post eller telefonnummer`,phoneOrUsernameOrEmailPlaceholder:`Telefon, användarnamn eller e-post`,phoneOrUsernamePlaceholder:`Telefonnummer eller användarnamn`,phonePlaceholder:`Telefonnummer`,"same-user-login":`För många inloggningsförsök för denna användare. Vänta en stund och försök igen.`,selectCountryCode:"Välj landskod, för närvarande inställd på ${countryName}, ${countryCode}, +${countryPrefix}",separatorText:`eller`,sessionExpired:`Din session har gått ut. Försök igen.`,showPasswordText:`Visa lösenord`,signupActionLinkText:`Registrera dig`,signupActionText:`Har du inget konto?`,termsAndConditionsTemplate:'Genom att fortsätta godkänner du våra <a href="${termsAndConditionsUrl}" target="_blank" rel="noopener noreferrer">Villkor</a>.',title:`Välkommen`,"user-blocked":`Ditt konto har blockerats efter flera misslyckade inloggningsförsök i rad.`,userAccountDoesNotExist:`Användarkontot finns inte`,usernameOnlyPlaceholder:`Användarnamn`,usernameOrEmailPlaceholder:`Användarnamn eller e-postadress`,usernamePlaceholder:`Användarnamn`,usernameTooLong:"Användarnamnet får vara högst ${max} tecken",usernameTooShort:"Användarnamnet måste vara minst ${min} tecken","wrong-credentials":`Fel användarnamn eller lösenord`,"wrong-email-credentials":`Fel e-postadress eller lösenord`,"wrong-email-phone-credentials":`Fel e-postadress, telefonnummer eller lösenord. Telefonnummer måste innehålla landskod.`,"wrong-email-phone-username-credentials":`Fel e-postadress, telefonnummer, användarnamn eller lösenord. Telefonnummer måste innehålla landskod.`,"wrong-email-username-credentials":`Fel e-postadress, användarnamn eller lösenord`,"wrong-phone-credentials":`Fel telefonnummer eller lösenord`,"wrong-phone-username-credentials":`Fel telefonnummer, användarnamn eller lösenord. Telefonnummer måste innehålla landskod.`,"wrong-username-credentials":`Fel användarnamn eller lösenord`,passkeyButtonText:`Logga in med passkey`}},"login-password":{"login-password":{buttonText:`Logga in`,description:`Ange din e-postadress och ditt lösenord för att logga in.`,forgotPasswordText:`Har du glömt lösenordet?`,hidePasswordText:`Dölj lösenord`,"no-password":`Lösenord krävs`,pageTitle:"Logga in | ${clientName}","password-breached":`Vi har upptäckt ett potentiellt säkerhetsproblem med detta konto. För att skydda ditt konto har vi förhindrat denna inloggning. Återställ ditt lösenord för att fortsätta.`,passwordPlaceholder:`Lösenord`,showPasswordText:`Visa lösenord`,signingInAs:"Loggar in som ${email}",title:`Ange lösenord`,unverifiedEmail:`Verifiera din e-postadress innan du loggar in`,"user-blocked":`Ditt konto har blockerats efter flera misslyckade inloggningsförsök i rad.`,"wrong-credentials":`Fel lösenord`}},"login-passwordless":{"login-passwordless":{authMethodEmail:`e-post`,authMethodEmailOrPhone:`e-post eller telefonnummer`,authMethodPhone:`telefonnummer`,description:"Logga in med din ${authMethod}",emailOrPhonePlaceholder:`E-postadress eller telefonnummer`,emailPlaceholder:`E-postadress`,invalidEmail:`Ange en giltig e-postadress`,invalidIdentifier:`Ange en giltig e-postadress eller telefonnummer`,invalidPhone:`Ange ett giltigt telefonnummer med landskod`,noEmail:`Ange din e-postadress`,noPhone:`Ange ditt telefonnummer`,phonePlaceholder:`Telefonnummer`,sessionExpired:`Din session har gått ut. Försök igen.`,title:`Logga in med en kod`,userAccountDoesNotExist:`Användarkontot finns inte`}},"magic-link-sent":{"magic-link-sent":{defaultDescription:`Klicka på länken i ditt e-postmeddelande för att logga in`,description:"Vi skickade en länk till ${username}. Klicka på den för att logga in.",resendText:`Skicka länken igen`,spamText:`Fick du inte e-postmeddelandet? Kolla din skräppost.`,title:`Kolla din e-post`}},mfa:hf,"mfa-email":{"mfa-email":{buttonText:`Fortsätt`,codePlaceholder:`Ange kod`,description:"Vi skickade en kod till ${email}","invalid-code":`Koden du angav är ogiltig`,pageTitle:"E-postverifiering | ${clientName}",resendText:`Skicka koden igen`,title:`Kolla din e-post`}},"mfa-otp":{"mfa-otp":{buttonText:`Fortsätt`,codePlaceholder:`Ange kod`,description:`Ange den 6-siffriga koden från din autentiseringsapp`,"invalid-code":`Koden du angav är ogiltig`,pageTitle:"Ange kod | ${clientName}",title:`Ange din kod`},"mfa-totp-enrollment":{title:`Konfigurera autentiseringsapp`,description:`Skanna QR-koden nedan med din autentiseringsapp och ange sedan den 6-siffriga koden för att verifiera`,secretLabel:`Eller ange denna kod manuellt:`,codePlaceholder:`Ange kod`,continueButtonText:`Verifiera och aktivera`,"invalid-code":`Koden du angav är ogiltig. Försök igen.`,"transaction-not-found":`Din registreringstransaktion har gått ut, du behöver börja om.`,pageTitle:"Konfigurera autentiseringsapp | ${clientName}",unexpectedError:`Något gick fel. Försök igen.`,enrollmentComplete:`MFA-registreringen är klar. Du kan stänga denna sida.`},"mfa-totp-challenge":{title:`Verifiera din identitet`,description:`Ange den 6-siffriga koden från din autentiseringsapp`,codePlaceholder:`Ange kod`,continueButtonText:`Fortsätt`,"invalid-code":`Koden du angav är ogiltig`,"transaction-not-found":`Din registreringstransaktion har gått ut, du behöver börja om.`,unexpectedError:`Något gick fel. Försök igen.`,pageTitle:"Verifiera identitet | ${clientName}"}},"mfa-phone":{"mfa-phone-challenge":{pageTitle:"Använd ditt telefonnummer för att logga in | ${clientName}",title:`Verifiera din identitet`,description:"Vi skickade en kod till ${phoneNumber}",continueButtonText:`Fortsätt`,changePhoneText:`Välj ett annat telefonnummer.`,smsButtonText:`SMS`,voiceButtonText:`Röstsamtal`,chooseMessageTypeText:`Hur vill du ta emot koden?`,pickAuthenticatorText:`Prova en annan metod`,logoAltText:"${companyName}",codePlaceholder:`Ange kod`,"send-sms-failed":`Det gick inte att skicka SMS:et`,"send-voice-failed":`Det gick inte att ringa röstsamtalet`,"invalid-phone-format":`Telefonnumret kan bara innehålla siffror.`,"invalid-phone":`Det verkar som att ditt telefonnummer inte är giltigt. Kontrollera och försök igen.`,"too-many-sms":`Du har överskridit det maximala antalet telefonmeddelanden per timme. Vänta några minuter och försök igen.`,"too-many-voice":`Du har överskridit det maximala antalet telefonmeddelanden per timme. Vänta några minuter och försök igen.`,"transaction-not-found":`Din registreringstransaktion har gått ut, du behöver börja om.`,"no-phone":`Ange ett telefonnummer`,noCode:`Ange verifieringskoden`,invalidCode:`Koden du angav är ogiltig. Försök igen.`,unexpectedError:`Något gick fel. Försök igen.`,resendSuccess:`Vi skickade en ny kod till din telefon`,enrollmentComplete:`MFA-registreringen är klar. Du kan stänga denna sida.`},"mfa-phone-enrollment":{pageTitle:"Ange ditt telefonnummer för att logga in med en telefonkod | ${clientName}",title:`Säkra ditt konto`,description:`Ange din landskod och telefonnummer som vi kan skicka en 6-siffrig kod till:`,continueButtonText:`Fortsätt`,smsButtonText:`SMS`,voiceButtonText:`Röstsamtal`,chooseMessageTypeText:`Hur vill du ta emot koden?`,pickAuthenticatorText:`Prova en annan metod`,placeholder:`Ange ditt telefonnummer`,logoAltText:"${companyName}",selectCountryCode:"Välj landskod, för närvarande inställd på ${countryName}, ${countryCode}, +${countryPrefix}","send-sms-failed":`Det gick inte att skicka SMS:et`,"send-voice-failed":`Det gick inte att ringa röstsamtalet`,"sms-authenticator-error":`Vi kunde inte skicka SMS:et. Försök igen senare.`,"invalid-phone-format":`Telefonnumret kan bara innehålla siffror.`,"invalid-phone":`Det verkar som att ditt telefonnummer inte är giltigt. Kontrollera och försök igen.`,"too-many-sms":`Du har överskridit det maximala antalet telefonmeddelanden per timme. Vänta några minuter och försök igen.`,"too-many-voice":`Du har överskridit det maximala antalet telefonmeddelanden per timme. Vänta några minuter och försök igen.`,"transaction-not-found":`Din registreringstransaktion har gått ut, du behöver börja om.`,"no-phone":`Ange ett telefonnummer`,"phone-is-too-short":`Telefonnumret är för kort`,"phone-is-too-long":`Telefonnumret är för långt`}},"mfa-login-options":{"mfa-login-options":{pageTitle:"Välj verifieringsmetod | ${clientName}",title:`Välj din verifieringsmetod`,description:`Välj hur du vill verifiera din identitet`,authenticatorAppLabel:`Autentiseringsapp`,authenticatorAppDescription:`Använd din autentiseringsapp för att få en verifieringskod`,smsLabel:`Sms`,smsDescription:`Få en verifieringskod skickad till din telefon`,passkeyLabel:`Lösenordsnyckel`,passkeyDescription:`Använd din enhets biometri eller säkerhetsnyckel`}},"mfa-push":{"mfa-push":{description:`Vi skickade en notis till din enhet`,pageTitle:"Push-notis | ${clientName}",resendText:`Skicka notisen igen`,title:`Godkänn förfrågan`,useCodeText:`Ange kod manuellt`}},"mfa-recovery-code":{"mfa-recovery-code":{buttonText:`Fortsätt`,codePlaceholder:`Återställningskod`,description:`Ange en av dina återställningskoder`,"invalid-code":`Återställningskoden du angav är ogiltig`,pageTitle:"Återställningskod | ${clientName}",title:`Ange återställningskod`}},"mfa-voice":{"mfa-voice":{buttonText:`Ring mig`,codePlaceholder:`Ange kod`,description:"Vi ringer ${phoneNumber} med din kod","invalid-code":`Koden du angav är ogiltig`,pageTitle:"Röstsamtal | ${clientName}",title:`Ta emot ett telefonsamtal`}},"mfa-webauthn":{"mfa-webauthn":{buttonText:`Försök igen`,description:`Sätt in din säkerhetsnyckel och följ instruktionerna`,pageTitle:"Säkerhetsnyckel | ${clientName}",title:`Använd din säkerhetsnyckel`}},passkeys:gf,organizations:_f,"reset-password":{"reset-password":{backToLoginText:`Gå tillbaka`,buttonText:`Skicka`,codeExpired:`Din kod för lösenordsåterställning har gått ut. Begär en ny.`,confirmPasswordLabel:`Bekräfta lösenord`,confirmPasswordPlaceholder:`Bekräfta lösenord`,description:`Klicka på knappen nedan så skickar vi instruktioner om hur du återställer ditt lösenord.`,emailPlaceholder:`E-postadress`,failed:`Lösenordsåterställningen misslyckades. Försök igen.`,"invalid-email-format":`Ogiltig e-postadress`,"no-email":`Vänligen ange en e-postadress`,pageTitle:"Återställ lösenord | ${clientName}",passwordLabel:`Nytt lösenord`,passwordPlaceholder:`Nytt lösenord`,passwordTooWeak:`Lösenordet är för svagt`,passwordsDidntMatch:`Lösenorden matchar inte`,successDescription:`Vi har skickat en länk för lösenordsåterställning till din e-postadress.`,successTitle:`Vi har skickat ett e-postmeddelande med instruktioner om hur du återställer ditt lösenord till den e-postadress du angav.`,title:`Har du glömt lösenordet?`,"user-not-found":`Användaren hittades inte`},"reset-password-code":{backToLoginText:`Tillbaka till inloggning`,buttonText:`Återställ lösenord`,codeLabel:`Återställningskod`,codePlaceholder:`Ange 6-siffrig kod`,confirmPasswordLabel:`Bekräfta lösenord`,confirmPasswordPlaceholder:`Bekräfta lösenord`,defaultDescription:`Ange koden som skickades till din e-post och välj ett nytt lösenord`,description:"Vi skickade en kod till ${email}",failed:`Lösenordsåterställningen misslyckades. Försök igen.`,invalidCode:`Koden du angav är ogiltig eller har gått ut`,noCode:`Vänligen ange återställningskoden`,pageTitle:"Ange återställningskod | ${clientName}",passwordLabel:`Nytt lösenord`,passwordPlaceholder:`Nytt lösenord`,passwordTooWeak:`Lösenordet är för svagt`,passwordsDidntMatch:`Lösenorden matchar inte`,resendFailed:`Kunde inte skicka koden igen. Försök igen.`,resendSuccess:`En ny kod har skickats till din e-post`,resendText:`Skicka koden igen`,sessionExpired:`Din session har gått ut. Försök igen.`,title:`Ange återställningskod`}},signup:vf,"signup-id":{"signup-id":{buttonText:`Fortsätt`,description:`Välj ett lösenord med en blandning av stora och små bokstäver, siffror och symboler.`,"email-already-exists":`E-postadressen är redan upptagen`,emailPlaceholder:`E-postadress`,federatedConnectionButtonText:"Fortsätt med ${connectionName}","invalid-email-format":`Ogiltig e-postadress`,loginActionLinkText:`Logga in`,loginActionText:`Har du redan ett konto?`,"no-email":`Vänligen ange en e-postadress`,pageTitle:"Registrera dig | ${clientName}",phonePlaceholder:`Telefonnummer`,separatorText:`eller`,title:`Välj lösenord`,usernamePlaceholder:`Användarnamn`}},"signup-password":{"signup-password":{buttonText:`Fortsätt`,description:`Välj ett lösenord med en blandning av stora och små bokstäver, siffror och symboler.`,hidePasswordText:`Dölj lösenord`,"no-password":`Lösenord krävs`,pageTitle:"Registrera dig | ${clientName}","password-policy-not-met":`Lösenordet uppfyller inte kraven`,"password-too-weak":`Lösenordet är för svagt`,passwordPlaceholder:`Lösenord`,showPasswordText:`Visa lösenord`,title:`Välj lösenord`}},"sms-otp-challenge":{"sms-otp-challenge":{buttonText:`Fortsätt`,codeLabel:`Verifieringskod`,codePlaceholder:`Ange kod`,defaultDescription:`Ange verifieringskoden som skickades till din telefon`,description:"Vi skickade en kod till ${username}","invalid-code":`Ogiltig kod`,noCode:`Ange verifieringskoden`,pageTitle:"Ange kod | ${clientName}",resendText:`Skicka koden igen`,sessionExpired:`Din session har gått ut. Försök igen.`,title:`Kolla din telefon`,unexpectedError:`Ett oväntat fel uppstod`}},status:yf},xf=[`cs`,`da`,`en`,`fi`,`it`,`nb`,`pl`,`sv`],Sf={cs:`Čeština`,da:`Dansk`,en:`English`,fi:`Suomi`,it:`Italiano`,nb:`Norsk`,pl:`Polski`,sv:`Svenska`};function Cf(e){return Sf[e]??e}var wf=Object.assign({"../../locales/cs.json":Yre,"../../locales/da.json":Zre,"../../locales/en.json":$re,"../../locales/fi.json":tie,"../../locales/it.json":rie,"../../locales/nb.json":aie,"../../locales/pl.json":sie,"../../locales/sv.json":uf}),Tf={};for(let[e,t]of Object.entries(wf)){let n=e.match(/\/(\w+)\.json$/)?.[1];n&&(Tf[n]=t.default||t)}var Ef={},Df=Tf.en;if(Df)for(let[e,t]of Object.entries(Df))for(let[n,r]of Object.entries(t)){let t={};for(let e of Object.keys(r))t[e]=f.z.string();Ef[`${e}.${n}`]=f.z.object(t)}function Of(e,t){if(!t)return e;let n=e;for(let[e,r]of Object.entries(t))if(r!==void 0){let t=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);n=n.replace(RegExp(`\\$\\{${t}\\}`,`g`),String(r)).replace(RegExp(`#\\{${t}\\}`,`g`),String(r)).replace(RegExp(`\\{${t}\\}`,`g`),String(r))}return n}function kf(e){let t=e.split(`-`)[0]?.toLowerCase()||`en`;return xf.includes(t)?t:`en`}function Af(e,t,n,r){let i=kf(n),a=Tf.en?.[e]?.[t]??{},o=Tf[i]?.[e]?.[t]??{},s={...a,...o},c=r?.[t]??{},l={...s,...c},u=Ef[`${e}.${t}`];if(u){let n=u.safeParse(l);n.success||console.warn(`[i18n] Missing translations for ${e}.${t} (${i}):`,n.error.issues.map(e=>e.path.join(`.`)).join(`, `))}let d={};for(let[e,t]of Object.entries(l))d[e]=e=>Of(t,e);return{m:new Proxy(d,{get:(e,t)=>e[t]??(()=>t)}),locale:i}}function jf(e){let t=e?.language?.split(`-`)[0]?.toLowerCase(),n=[];for(let[r,i]of Object.entries(Tf))if(!(t&&r!==t))for(let[t,a]of Object.entries(i))e?.prompt&&t!==e.prompt||n.push({prompt:t,language:r,custom_text:a});return n}var Mf={Stringify:1,BeforeStream:2,Stream:3},Nf=(e,t)=>{let n=new String(e);return n.isEscaped=!0,n.callbacks=t,n},Pf=/[&<>'"]/,Ff=async(e,t)=>{let n=``;t||=[];let r=await Promise.all(e);for(let e=r.length-1;n+=r[e],e--,!(e<0);e--){let i=r[e];typeof i==`object`&&t.push(...i.callbacks||[]);let a=i.isEscaped;if(i=await(typeof i==`object`?i.toString():i),typeof i==`object`&&t.push(...i.callbacks||[]),i.isEscaped??a)n+=i;else{let e=[n];If(i,e),n=e[0]}}return Nf(n,t)},If=(e,t)=>{let n=e.search(Pf);if(n===-1){t[0]+=e;return}let r,i,a=0;for(i=n;i<e.length;i++){switch(e.charCodeAt(i)){case 34:r=`&quot;`;break;case 39:r=`&#39;`;break;case 38:r=`&amp;`;break;case 60:r=`&lt;`;break;case 62:r=`&gt;`;break;default:continue}t[0]+=e.substring(a,i)+r,a=i+1}t[0]+=e.substring(a,i)},Lf=e=>{let t=e.callbacks;if(!t?.length)return e;let n=[e],r={};return t.forEach(e=>e({phase:Mf.Stringify,buffer:n,context:r})),n[0]},Rf=async(e,t,n,r,i)=>{typeof e==`object`&&!(e instanceof String)&&(e instanceof Promise||(e=e.toString()),e instanceof Promise&&(e=await e));let a=e.callbacks;if(!a?.length)return Promise.resolve(e);i?i[0]+=e:i=[e];let o=Promise.all(a.map(e=>e({phase:t,buffer:i,context:r}))).then(e=>Promise.all(e.filter(Boolean).map(e=>Rf(e,t,!1,r,i))).then(()=>i[0]));return n?Nf(await o,a):o},zf=Symbol(`RENDERER`),Bf=Symbol(`ERROR_HANDLER`),Vf=Symbol(`STASH`),Hf=Symbol(`INTERNAL`),Uf=Symbol(`MEMO`),Wf=Symbol(`PERMALINK`),Gf=e=>(e[Hf]=!0,e),Kf=e=>({value:t,children:n})=>{if(!n)return;let r={children:[{tag:Gf(()=>{e.push(t)}),props:{}}]};Array.isArray(n)?r.children.push(...n.flat()):r.children.push(n),r.children.push({tag:Gf(()=>{e.pop()}),props:{}});let i={tag:``,props:r,type:``};return i[Bf]=t=>{throw e.pop(),t},i},qf=e=>{let t=[e],n=Kf(t);return n.values=t,n.Provider=n,Jf.push(n),n},Jf=[],Yf=!1,Xf,Zf,Qf=0,$f=!1,ep=()=>{if(Yf)return Xf;Yf=!0;let e=globalThis,t;for(let n of[()=>e.process?.getBuiltinModule?.(`node:async_hooks`)?.AsyncLocalStorage,()=>e.process?.mainModule?.require?.(`node:async_hooks`)?.AsyncLocalStorage]){try{t=n()}catch{}if(t)break}return t&&(Xf=new t),Xf},tp=()=>ep()?.getStore()||Zf,np=()=>{Qf>0&&!$f&&($f=!0,console.warn(`hono/jsx: AsyncLocalStorage is unavailable in this runtime, so useContext() after an await in an async component falls back to the context default value during server-side rendering. To get provided values across await boundaries, use a runtime with AsyncLocalStorage (Node.js >= 20.16, Deno, Bun, or Cloudflare Workers with the nodejs_compat flag).`))},rp=(e,t)=>{if(!e)return np(),t.values;let n=e.get(t);return n||(n=[t.values[0]],e.set(t,n)),n},ip=(e,t)=>{if(!e)return np(),t.values.at(-1);let n=e.get(t);return n?.length?n.at(-1):t.values[0]},ap=e=>(e?Jf.filter(t=>e.has(t)):Jf).map(t=>[t,ip(e,t)]),op=(e,t,n)=>sp(()=>{let t=tp(),r=n.map(([e,n])=>{let r=rp(t,e);return r.push(n),r}),i=()=>{r.forEach(e=>{e.pop()})};try{let t=e();return t instanceof Promise?t.finally(i):(i(),t)}catch(e){throw i(),e}},t),sp=(e,t)=>{if(tp())return e();let n=t??new WeakMap,r=ep();if(r)return r.run(n,e);Zf=n;let i;try{i=e()}finally{Zf=void 0}return!$f&&i instanceof Promise&&(Qf++,i=i.finally(()=>{Qf--})),i},cp=()=>{let e=tp(),t=ap(e);return n=>op(n,e,t)},lp=e=>{let t=[e],n=(e=>{let t=rp(tp(),n);t.push(e.value);let r;try{r=e.children?(Array.isArray(e.children)?new im(``,{},e.children):e.children).toString():``}catch(e){throw t.pop(),e}return r instanceof Promise?r.finally(()=>t.pop()).then(e=>Nf(e,e.callbacks)):(t.pop(),Nf(r))});return n.values=t,n.Provider=n,n[zf]=Kf(t),Jf.push(n),n},up=e=>ip(tp(),e),dp={title:[],script:[`src`],style:[`data-href`],link:[`href`],meta:[`name`,`httpEquiv`,`charset`,`itemProp`]},fp={},pp=`data-precedence`,mp=e=>e.rel===`stylesheet`&&`precedence`in e,hp=(e,t)=>e===`link`?t:dp[e].length>0,gp=e=>Array.isArray(e)?e:[e],_p=c({button:()=>jp,form:()=>Op,input:()=>Ap,link:()=>Tp,meta:()=>Ep,script:()=>Cp,style:()=>wp,title:()=>Sp}),vp=new WeakMap,yp=(e,t,n,r)=>({buffer:i,context:a})=>{if(!i)return;let o=vp.get(a)||{};vp.set(a,o);let s=o[e]||=[],c=!1,l=dp[e],u=hp(e,r!==void 0);if(u){LOOP:for(let[,t]of s)if(!(e===`link`&&!(t.rel===`stylesheet`&&t[`data-precedence`]!==void 0))){for(let e of l)if((t?.[e]??null)===n?.[e]){c=!0;break LOOP}}}if(c?i[0]=i[0].replaceAll(t,``):u||e===`link`?s.push([t,n,r]):s.unshift([t,n,r]),i[0].indexOf(`</head>`)!==-1){let t;if(e===`link`||r!==void 0){let e=[];t=s.map(([t,,n],r)=>{if(n===void 0)return[t,2**53-1,r];let i=e.indexOf(n);return i===-1&&(e.push(n),i=e.length-1),[t,i,r]}).sort((e,t)=>e[1]-t[1]||e[2]-t[2]).map(([e])=>e)}else t=s.map(([e])=>e);t.forEach(e=>{i[0]=i[0].replaceAll(e,``)}),i[0]=i[0].replace(/(?=<\/head>)/,t.join(``))}},bp=(e,t,n)=>Nf(new nm(e,n,gp(t??[])).toString()),xp=(e,t,n,r)=>{if(`itemProp`in n)return bp(e,t,n);let{precedence:i,blocking:a,...o}=n;i=r?i??``:void 0,r&&(o[pp]=i);let s=new nm(e,o,gp(t||[])).toString();return s instanceof Promise?s.then(t=>Nf(s,[...t.callbacks||[],yp(e,t,o,i)])):Nf(s,[yp(e,s,o,i)])},Sp=({children:e,...t})=>{let n=Zp();if(n){let r=up(n);if(r===`svg`||r===`head`)return new nm(`title`,t,gp(e??[]))}return xp(`title`,e,t,!1)},Cp=({children:e,...t})=>{let n=Zp();return[`src`,`async`].some(e=>!t[e])||n&&up(n)===`head`?bp(`script`,e,t):xp(`script`,e,t,!1)},wp=({children:e,...t})=>[`href`,`precedence`].every(e=>e in t)?(t[`data-href`]=t.href,delete t.href,xp(`style`,e,t,!0)):bp(`style`,e,t),Tp=({children:e,...t})=>[`onLoad`,`onError`].some(e=>e in t)||t.rel===`stylesheet`&&(!(`precedence`in t)||`disabled`in t)?bp(`link`,e,t):xp(`link`,e,t,mp(t)),Ep=({children:e,...t})=>{let n=Zp();return n&&up(n)===`head`?bp(`meta`,e,t):xp(`meta`,e,t,!1)},Dp=(e,{children:t,...n})=>new nm(e,n,gp(t??[])),Op=e=>(typeof e.action==`function`&&(e.action=Wf in e.action?e.action[Wf]:void 0),Dp(`form`,e)),kp=(e,t)=>(typeof t.formAction==`function`&&(t.formAction=Wf in t.formAction?t.formAction[Wf]:void 0),Dp(e,t)),Ap=e=>kp(`input`,e),jp=e=>kp(`button`,e),Mp=new Map([[`className`,`class`],[`htmlFor`,`for`],[`crossOrigin`,`crossorigin`],[`httpEquiv`,`http-equiv`],[`itemProp`,`itemprop`],[`fetchPriority`,`fetchpriority`],[`noModule`,`nomodule`],[`formAction`,`formaction`]]),Np=e=>Mp.get(e)||e,Pp=/[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,Fp=new Set,Ip=1024,Lp=/^[!?]|[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,Rp=new Set,zp=256,Bp=(e,t,n)=>{e.size>=t&&e.clear(),e.add(n)},Vp=e=>Rp.has(e)?!0:typeof e==`string`?e.length===0?!0:Lp.test(e)?!1:(Bp(Rp,zp,e),!0):!1,Hp=e=>{if(Fp.has(e))return!0;let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===95||t===46||t===58))return Pp.test(e)?!1:(Bp(Fp,Ip,e),!0)}return Bp(Fp,Ip,e),!0},Up=/[\s"'():;\\/\[\]{}\x00-\x1f\x7f-\x9f]/,Wp=new Set,Gp=1024,Kp=e=>{if(Wp.has(e))return!0;let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===95))return Up.test(e)?!1:(Bp(Wp,Gp,e),!0)}return Bp(Wp,Gp,e),!0},qp=/[;"'\\/\[\](){}]/,Jp=e=>{if(!qp.test(e))return!1;let t=0,n=[];for(let r=0,i=e.length;r<i;r++){let a=e.charCodeAt(r);if(a===92){if(r===i-1)return!0;r++}else if(t!==0){if(a===10||a===12||a===13)return!0;a===t&&(t=0)}else if(a===47&&e.charCodeAt(r+1)===42){let t=e.indexOf(`*/`,r+2);if(t===-1)return!0;r=t+1}else if(a===34||a===39)t=a;else if(a===40)n.push(41);else if(a===91)n.push(93);else if(a===123||a===125)return!0;else if(a===41||a===93){if(n[n.length-1]!==a)return!0;n.pop()}else if(a===59&&n.length===0)return!0}return t!==0||n.length!==0},Yp=(e,t)=>{for(let[n,r]of Object.entries(e)){let e=n[0]===`-`||!/[A-Z]/.test(n)?n:n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);if(!Kp(e))continue;if(r==null){t(e,null);continue}let i;if(typeof r==`number`)i=e.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${r}`:`${r}px`;else if(typeof r==`string`){if(Jp(r))continue;i=r}else continue;t(e,i)}},Xp=void 0,Zp=()=>Xp,Qp=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,`-$1`).toLowerCase():e,$p=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],em=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.defer.disabled.download.formnovalidate.hidden.inert.ismap.itemscope.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.selected`.split(`.`),tm=(e,t)=>{for(let n=0,r=e.length;n<r;n++){let r=e[n];if(typeof r==`string`)If(r,t);else if(typeof r==`boolean`||r==null)continue;else r instanceof nm?r.toStringToBuffer(t):typeof r==`number`||r.isEscaped?t[0]+=r:r instanceof Promise?t.unshift(``,r):tm(r,t)}},nm=class{tag;props;key;children;isEscaped=!0;suspendedContext;constructor(e,t,n){if(typeof e!=`function`&&!Vp(e))throw Error(`Invalid JSX tag name: ${e}`);this.tag=e,this.props=t,this.children=n}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){let e=()=>{let e=[``];return this.toStringToBuffer(e),e.length===1?`callbacks`in e?Lf(Nf(e[0],e.callbacks)).toString():e[0]:Ff(e,e.callbacks)};return this.suspendedContext?this.suspendedContext(e):sp(e)}toStringToBuffer(e){let t=this.tag,n=this.props,{children:r}=this;e[0]+=`<${t}`;let i=t===`svg`||Xp&&up(Xp)===`svg`?e=>Qp(Np(e)):e=>Np(e);for(let[a,o]of Object.entries(n))if(a=i(a),Hp(a)&&a!==`children`){if(a===`style`&&typeof o==`object`){let t=``;Yp(o,(e,n)=>{n!=null&&(t+=`${t?`;`:``}${e}:${n}`)}),e[0]+=` style="`,If(t,e),e[0]+=`"`}else if(typeof o==`string`)e[0]+=` ${a}="`,If(o,e),e[0]+=`"`;else if(o!=null)if(typeof o==`number`||o.isEscaped)e[0]+=` ${a}="${o}"`;else if(typeof o==`boolean`&&em.includes(a))o&&(e[0]+=` ${a}=""`);else if(a===`dangerouslySetInnerHTML`){if(r.length>0)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r=[Nf(o.__html)]}else if(o instanceof Promise)e[0]+=` ${a}="`,e.unshift(`"`,o);else if(typeof o==`function`){if(!a.startsWith(`on`)&&a!==`ref`)throw Error(`Invalid prop '${a}' of type 'function' supplied to '${t}'.`)}else e[0]+=` ${a}="`,If(o.toString(),e),e[0]+=`"`}if($p.includes(t)&&r.length===0){e[0]+=`/>`;return}e[0]+=`>`,tm(r,e),e[0]+=`</${t}>`}},rm=class extends nm{toStringToBuffer(e){let{children:t}=this,n={...this.props};t.length&&(n.children=t.length===1?t[0]:t);let r=this.tag.call(null,n);if(!(typeof r==`boolean`||r==null))if(r instanceof Promise)if(Jf.length===0)e.unshift(``,r);else{let t=cp();e.unshift(``,r.then(e=>(e instanceof nm&&(e.suspendedContext=t),e)))}else r instanceof nm?r.toStringToBuffer(e):typeof r==`number`||r.isEscaped?(e[0]+=r,r.callbacks&&(e.callbacks||=[],e.callbacks.push(...r.callbacks))):If(r,e)}},im=class extends nm{toStringToBuffer(e){tm(this.children,e)}},am=(e,t,...n)=>{t??={},n.length&&(t.children=n.length===1?n[0]:n);let r=t.key;delete t.key;let i=sm(e,t,n);return i.key=r,i},om=!1,sm=(e,t,n)=>{if(!om){for(let e in fp)_p[e][zf]=fp[e];om=!0}return typeof e==`function`?new rm(e,t,n):_p[e]?new rm(_p[e],t,n):e===`svg`||e===`head`?(Xp||=lp(``),new nm(e,t,[new rm(Xp,{value:e},n)])):new nm(e,t,n)},cm=({children:e})=>new im(``,{children:e},Array.isArray(e)?e:e?[e]:[]),lm=(e,t,...n)=>{let r;if(n.length>0)r=n;else{let t=e.props.children;r=Array.isArray(t)?t:[t]}return am(e.tag,{...e.props,...t},...r)};function I(e,t,n){let r;if(!t||!(`children`in t))r=sm(e,t,[]);else{let n=t.children;r=Array.isArray(n)?sm(e,t,n):sm(e,t,[n])}return r.key=n,r}function um(e,t){let n=qre(e,`ah-dark-mode`);if(n===`dark`||n===`light`||n===`auto`)return n;let r=t?.dark_mode;return r===`dark`||r===`light`||r===`auto`?r:`auto`}var dm={"--ah-color-text":`#f9fafb`,"--ah-color-text-muted":`#9ca3af`,"--ah-color-text-label":`#d1d5db`,"--ah-color-text-header":`#f9fafb`,"--ah-color-header":`#f9fafb`,"--ah-color-bg":`#1f2937`,"--ah-color-bg-hover":`#374151`,"--ah-color-bg-muted":`#374151`,"--ah-color-bg-disabled":`#4b5563`,"--ah-color-input-bg":`#374151`,"--ah-color-input-text":`#f9fafb`,"--ah-btn-secondary-text":`#f9fafb`,"--ah-color-border":`#4b5563`,"--ah-color-border-hover":`#6b7280`,"--ah-color-border-muted":`#374151`,"--ah-color-error-bg":`rgba(220,38,38,0.2)`,"--ah-color-success-bg":`rgba(22,163,74,0.2)`,"--ah-color-link":`#60a5fa`};function fm(e){let t=e.replace(`#`,``),n=parseInt(t,16);return[n>>16&255,n>>8&255,n&255]}function pm(e){let[t,n,r]=fm(e).map(e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4});return .2126*t+.7152*n+.0722*r}function mm(e,t){let n=pm(e),r=pm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function hm(e,t){let[n,r,i]=fm(e),a=e=>Math.min(255,Math.round(e+(255-e)*t)).toString(16).padStart(2,`0`);return`#${a(n)}${a(r)}${a(i)}`}function gm(e,t){let n={...dm};if(t){let e=dm[`--ah-color-bg`]||`#1f2937`;if(mm(t,e)<3){let r=t;for(let n=1;n<=10&&(r=hm(t,n*.1),!(mm(r,e)>=3));n++);n[`--ah-color-primary`]=r,n[`--ah-color-primary-hover`]=r}let r=n[`--ah-color-primary`]||t,i=mm(r,`#ffffff`);n[`--ah-color-text-on-primary`]=mm(r,`#000000`)>i*1.35?`#000000`:`#ffffff`}return`${e} { ${Object.entries(n).map(([e,t])=>`${e}: ${t} !important`).join(`; `)}; }`}var _m=`(function(btn){var h=document.documentElement;var cur=h.classList.contains('ah-dark-mode')?'dark':h.classList.contains('ah-light-mode')?'light':'auto';var next=cur==='auto'?'dark':cur==='dark'?'light':'auto';h.classList.remove('ah-dark-mode','ah-light-mode');if(next==='dark'){h.classList.add('ah-dark-mode');h.setAttribute('data-mode','dark')}else if(next==='light'){h.classList.add('ah-light-mode');h.setAttribute('data-mode','light')}else{h.removeAttribute('data-mode')}btn.querySelector('.icon-sun').style.display=next==='light'?'block':'none';btn.querySelector('.icon-moon').style.display=next==='dark'?'block':'none';btn.querySelector('.icon-auto').style.display=next==='auto'?'block':'none';document.cookie='ah-dark-mode='+next+';path=/;max-age=31536000;SameSite=Lax';if(window.__ahDarkMode){window.__ahDarkMode(next)}})(this)`,vm=`var p=new URLSearchParams(window.location.search);p.set('ui_locales',this.value);window.location.search=p.toString()`;function ym(e){return e===`plain`?` ah-chip--plain`:e===`pill`?` ah-chip--pill`:``}function bm({logoUrl:e,clientName:t,variant:n}){let r=e?Bu(e):null;return I(`div`,{class:`ah-chip ah-chip-logo${ym(n)}`,"data-ah-slot":`top-left`,children:r?I(`img`,{src:r,alt:t}):I(`span`,{class:`ah-logo-text`,children:t})})}function xm({darkMode:e}){return I(`button`,{type:`button`,"aria-label":`Toggle dark mode`,onclick:_m,children:[I(`svg`,{class:`icon-auto`,width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:e===`auto`?void 0:`display:none`,children:[I(`circle`,{cx:`12`,cy:`12`,r:`9`}),I(`path`,{d:`M12 3a9 9 0 0 1 0 18`,fill:`currentColor`})]}),I(`svg`,{class:`icon-sun`,width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:e===`light`?void 0:`display:none`,children:[I(`circle`,{cx:`12`,cy:`12`,r:`5`}),I(`line`,{x1:`12`,y1:`1`,x2:`12`,y2:`3`}),I(`line`,{x1:`12`,y1:`21`,x2:`12`,y2:`23`}),I(`line`,{x1:`4.22`,y1:`4.22`,x2:`5.64`,y2:`5.64`}),I(`line`,{x1:`18.36`,y1:`18.36`,x2:`19.78`,y2:`19.78`}),I(`line`,{x1:`1`,y1:`12`,x2:`3`,y2:`12`}),I(`line`,{x1:`21`,y1:`12`,x2:`23`,y2:`12`})]}),I(`svg`,{class:`icon-moon`,width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:e===`dark`?void 0:`display:none`,children:I(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z`})})]})}function Sm({language:e,availableLanguages:t}){return!t||t.length<2?null:I(`div`,{class:`ah-lang`,children:[I(`svg`,{width:`13`,height:`13`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2.2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,children:[I(`circle`,{cx:`12`,cy:`12`,r:`10`}),I(`path`,{d:`M2 12h20`}),I(`path`,{d:`M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z`})]}),I(`select`,{"aria-label":`Language`,onchange:vm,children:t.map(t=>I(`option`,{value:t,selected:t===e,children:Cf(t)}))})]})}function Cm({darkMode:e,language:t,availableLanguages:n,variant:r}){return I(`div`,{class:`ah-chip ah-chip-settings${ym(r)}`,"data-ah-slot":`top-right`,children:[I(xm,{darkMode:e}),n&&I(Sm,{language:t,availableLanguages:n})]})}function wm({url:e,href:t,alt:n,height:r,variant:i}){let a=Bu(e),o=t?Bu(t):null;if(!a)return null;let s=I(`img`,{src:a,alt:n||``,height:r||18});return I(`div`,{class:`ah-chip ah-chip-trust${ym(i)}`,"data-ah-slot":`bottom-left`,children:o?I(`a`,{href:o,target:`_blank`,rel:`noopener noreferrer`,children:s}):s})}function Tm({termsAndConditionsUrl:e,language:t,variant:n}){if(!e)return null;let{m:r}=Af(`common`,`common`,t||`en`);return I(`div`,{class:`ah-chip-legal${ym(n)}`,"data-ah-slot":`bottom-right`,children:I(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,children:r.termsShortText()})})}function Em(e,t){let n=[],r=Vu(e?.colors?.primary);r&&n.push(`--ah-color-primary: ${r}`);let i=Vu(t?.colors?.primary_button)||r;if(i){let e=mm(i,`#ffffff`),t=mm(i,`#000000`)>e*1.35?`#000000`:`#ffffff`;n.push(`--ah-color-text-on-primary: ${t}`)}return n.length>0?n.join(`; `)+`; width: clamp(320px, 100%, 400px);`:`width: clamp(320px, 100%, 400px);`}function Dm(e){let t=e.themePageBackground?.page_layout||`center`,n=t===`left`?`flex-start`:t===`right`?`flex-end`:`center`,r=t===`left`?`20px 20px 20px 80px`:t===`right`?`20px 80px 20px 20px`:`20px`;return{background:Uu(e.themePageBackground,e.brandingPageBackground),fontFamily:e.fontUrl?`'Inter', system-ui, sans-serif`:`system-ui, -apple-system, sans-serif`,justifyContent:n,padding:r}}function Om(e){let{primaryColor:t,themePrimary:n,widgetBackground:r,bodyLayout:i}=e;return`
15
15
  * { box-sizing: border-box; margin: 0; padding: 0; }
16
16
  ${i?`
17
17
  body {
@@ -376,7 +376,7 @@ var h2=document.documentElement;if(!h2.classList.contains('ah-dark-mode')&&!h2.c
376
376
  `).replace(/\\0d/gi,`\r`).replace(/\\0g/gi,` `).replace(/\\(.)/g,`$1`)}toArrayBuffer(){return G.serialize(this.asn)}async getThumbprint(...e){let t,n=`SHA-1`;return e.length>=1&&!e[0]?.subtle?(n=e[0]||n,t=e[1]||FE.get()):t=e[0]||FE.get(),await t.subtle.digest(n,this.toArrayBuffer())}},UE=`Cannot initialize GeneralName from ASN.1 data.`,WE=`${UE} Unsupported string format in use.`,GE=`${UE} Value doesn't match to GUID regular expression.`,KE=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i,qE=`1.3.6.1.4.1.311.25.1`,JE=`1.3.6.1.4.1.311.20.2.3`,YE=`email`,XE=`guid`,ZE=class extends jE{constructor(...e){let t;if(e.length===2)switch(e[0]){case`dn`:{let n=new HE(e[1]).toArrayBuffer(),r=G.parse(n,Ky);t=new Yy({directoryName:r});break}case`dns`:t=new Yy({dNSName:e[1]});break;case YE:t=new Yy({rfc822Name:e[1]});break;case XE:{let n=new RegExp(KE,`i`).exec(e[1]);if(!n)throw Error(`Cannot parse GUID value. Value doesn't match to regular expression`);let r=n.slice(1).map((e,t)=>t<3?R.Convert.ToHex(new Uint8Array(R.Convert.FromHex(e)).reverse()):e).join(``);t=new Yy({otherName:new qy({typeId:qE,value:G.serialize(new H(R.Convert.FromHex(r)))})});break}case`ip`:t=new Yy({iPAddress:e[1]});break;case`id`:t=new Yy({registeredID:e[1]});break;case`upn`:t=new Yy({otherName:new qy({typeId:JE,value:G.serialize(Ey.toASN(e[1]))})});break;case`url`:t=new Yy({uniformResourceIdentifier:e[1]});break;default:throw Error(`Cannot create GeneralName. Unsupported type of the name`)}else t=R.BufferSourceConverter.isBufferSource(e[0])?G.parse(e[0],Yy):e[0];super(t)}onInit(e){if(e.dNSName!=null)this.type=`dns`,this.value=e.dNSName;else if(e.rfc822Name!=null)this.type=YE,this.value=e.rfc822Name;else if(e.iPAddress!=null)this.type=`ip`,this.value=e.iPAddress;else if(e.uniformResourceIdentifier!=null)this.type=`url`,this.value=e.uniformResourceIdentifier;else if(e.registeredID!=null)this.type=`id`,this.value=e.registeredID;else if(e.directoryName!=null)this.type=`dn`,this.value=new HE(e.directoryName).toString();else if(e.otherName!=null)if(e.otherName.typeId===qE){this.type=XE;let t=G.parse(e.otherName.value,H),n=new RegExp(KE,`i`).exec(R.Convert.ToHex(t));if(!n)throw Error(GE);this.value=n.slice(1).map((e,t)=>t<3?R.Convert.ToHex(new Uint8Array(R.Convert.FromHex(e)).reverse()):e).join(`-`)}else if(e.otherName.typeId===JE)this.type=`upn`,this.value=G.parse(e.otherName.value,Vy).toString();else throw Error(WE);else throw Error(WE)}toJSON(){return{type:this.type,value:this.value}}toTextObject(){let e;switch(this.type){case`dn`:case`dns`:case XE:case`ip`:case`id`:case`upn`:case`url`:e=this.type.toUpperCase();break;case YE:e=`Email`;break;default:throw Error(`Unsupported GeneralName type`)}let t=this.value;return this.type===`id`&&(t=OE.toString(t)),new DE(e,void 0,t)}},QE=class extends jE{constructor(e){let t;if(e instanceof gb)t=e;else if(Array.isArray(e)){let n=[];for(let t of e)if(t instanceof Yy)n.push(t);else{let e=G.parse(new ZE(t.type,t.value).rawData,Yy);n.push(e)}t=new gb(n)}else if(R.BufferSourceConverter.isBufferSource(e))t=G.parse(e,gb);else throw Error(`Cannot initialize GeneralNames. Incorrect incoming arguments`);super(t)}onInit(e){let t=[];for(let n of e){let e=null;try{e=new ZE(n)}catch{continue}t.push(e)}this.items=t}toJSON(){return this.items.map(e=>e.toJSON())}toTextObject(){let e=super.toTextObjectEmpty();for(let t of this.items){let n=t.toTextObject(),r=e[n[DE.NAME]];Array.isArray(r)||(r=[],e[n[DE.NAME]]=r),r.push(n)}return e}};QE.NAME=`GeneralNames`;var $E=`-{5}`,eD=`\\n`,tD=`${$E}BEGIN (${`[^${eD}]+`}(?=${$E}))${$E}`,nD=`${$E}END \\1${$E}`,rD=`\\n`,iD=`${tD}${rD}(?:((?:${`[^:${eD}]+`}: ${`(?:[^${eD}]+${rD}(?: +[^${eD}]+${rD})*)`})+))?${rD}?(${`(?:[a-zA-Z0-9=+/]+${rD})+`})${nD}`,aD=class{static isPem(e){return typeof e==`string`&&new RegExp(iD,`g`).test(e.replace(/\r/g,``))}static decodeWithHeaders(e){e=e.replace(/\r/g,``);let t=new RegExp(iD,`g`),n=[],r=null;for(;r=t.exec(e);){let e=r[3].replace(RegExp(`[${eD}]+`,`g`),``),t={type:r[1],headers:[],rawData:R.Convert.FromBase64(e)},i=r[2];if(i){let e=i.split(new RegExp(rD,`g`)),n=null;for(let r of e){let[e,i]=r.split(/:(.*)/);if(i===void 0){if(!n)throw Error(`Cannot parse PEM string. Incorrect header value`);n.value+=e.trim()}else n&&t.headers.push(n),n={key:e,value:i.trim()}}n&&t.headers.push(n)}n.push(t)}return n}static decode(e){return this.decodeWithHeaders(e).map(e=>e.rawData)}static decodeFirst(e){let t=this.decode(e);if(!t.length)throw RangeError(`PEM string doesn't contain any objects`);return t[0]}static encode(e,t){if(Array.isArray(e)){let n=[];return t?e.forEach(e=>{if(!R.BufferSourceConverter.isBufferSource(e))throw TypeError(`Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource`);n.push(this.encodeStruct({type:t,rawData:R.BufferSourceConverter.toArrayBuffer(e)}))}):e.forEach(e=>{if(!(`type`in e))throw TypeError(`Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut`);n.push(this.encodeStruct(e))}),n.join(`
377
377
  `)}else{if(!t)throw Error(`Required argument 'tag' is missed`);return this.encodeStruct({type:t,rawData:R.BufferSourceConverter.toArrayBuffer(e)})}}static encodeStruct(e){let t=e.type.toLocaleUpperCase(),n=[];if(n.push(`-----BEGIN ${t}-----`),e.headers?.length){for(let t of e.headers)n.push(`${t.key}: ${t.value}`);n.push(``)}let r=R.Convert.ToBase64(e.rawData),i,a=0,o=[];for(;a<r.length&&(r.length-a<64?i=r.substring(a):(i=r.substring(a,a+64),a+=64),i.length!==0)&&(o.push(i),!(i.length<64)););return n.push(...o),n.push(`-----END ${t}-----`),n.join(`
378
378
  `)}};aD.CertificateTag=`CERTIFICATE`,aD.CrlTag=`CRL`,aD.CertificateRequestTag=`CERTIFICATE REQUEST`,aD.PublicKeyTag=`PUBLIC KEY`,aD.PrivateKeyTag=`PRIVATE KEY`;var oD=class e extends jE{static isAsnEncoded(e){return R.BufferSourceConverter.isBufferSource(e)||typeof e==`string`}static toArrayBuffer(e){if(typeof e==`string`){if(aD.isPem(e))return aD.decode(e)[0];if(R.Convert.isHex(e))return R.Convert.FromHex(e);if(R.Convert.isBase64(e))return R.Convert.FromBase64(e);if(R.Convert.isBase64Url(e))return R.Convert.FromBase64Url(e);throw TypeError(`Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url`)}else{let t=R.BufferSourceConverter.toUint8Array(e);if(t.length>0&&t[0]===48)return R.BufferSourceConverter.toArrayBuffer(e);let n=R.Convert.ToBinary(e);if(aD.isPem(n))return aD.decode(n)[0];if(R.Convert.isHex(n))return R.Convert.FromHex(n);if(R.Convert.isBase64(n))return R.Convert.FromBase64(n);if(R.Convert.isBase64Url(n))return R.Convert.FromBase64Url(n);throw TypeError(`Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url`)}}constructor(...t){e.isAsnEncoded(t[0])?super(e.toArrayBuffer(t[0]),t[1]):super(t[0])}toString(e=`pem`){switch(e){case`pem`:return aD.encode(this.rawData,this.tag);default:return super.toString(e)}}},sD=class e extends oD{static async create(t,n=FE.get()){if(t instanceof e)return t;if(PE.isCryptoKey(t)){if(t.type!==`public`)throw TypeError(`Public key is required`);let r=await n.subtle.exportKey(`spki`,t);return new e(r)}else if(t.publicKey)return t.publicKey;else if(R.BufferSourceConverter.isBufferSource(t))return new e(t);else throw TypeError(`Unsupported PublicKeyType`)}constructor(e){oD.isAsnEncoded(e)?super(e,xx):super(e),this.tag=aD.PublicKeyTag}async export(...e){let t,n=[`verify`],r={hash:`SHA-256`,...this.algorithm};e.length>1?(r=e[0]||r,n=e[1]||n,t=e[2]||FE.get()):t=e[0]||FE.get();let i=this.rawData,a=G.parse(this.rawData,xx);return a.algorithm.algorithm===LC&&(i=cD(a,i)),t.subtle.importKey(`spki`,i,r,!0,n)}onInit(e){let t=Mw.resolve(KT),n=this.algorithm=t.toWebAlgorithm(e.algorithm);switch(e.algorithm.algorithm){case PC:{let t=G.parse(e.subjectPublicKey,mw),r=R.BufferSourceConverter.toUint8Array(t.modulus);n.publicExponent=R.BufferSourceConverter.toUint8Array(t.publicExponent),n.modulusLength=(r[0]?r:r.slice(1)).byteLength<<3;break}}}async getThumbprint(...e){let t,n=`SHA-1`;return e.length>=1&&!e[0]?.subtle?(n=e[0]||n,t=e[1]||FE.get()):t=e[0]||FE.get(),await t.subtle.digest(n,this.rawData)}async getKeyIdentifier(...e){let t,n=`SHA-1`;e.length===1?typeof e[0]==`string`?(n=e[0],t=FE.get()):t=e[0]:e.length===2?(n=e[0],t=e[1]):t=FE.get();let r=G.parse(this.rawData,xx);return await t.subtle.digest(n,r.subjectPublicKey)}toTextObject(){let e=this.toTextObjectEmpty(),t=G.parse(this.rawData,xx);switch(e.Algorithm=kE.serializeAlgorithm(t.algorithm),t.algorithm.algorithm){case dC:e[`EC Point`]=t.subjectPublicKey;break;case PC:default:e[`Raw Data`]=t.subjectPublicKey}return e}};function cD(e,t){return e.algorithm=new J({algorithm:PC,parameters:null}),t=G.serialize(e),t}var lD=class e extends ME{static async create(t,n=!1,r=FE.get()){if(`name`in t&&`serialNumber`in t)return new e(t,n);let i=await(await sD.create(t,r)).getKeyIdentifier(r);return new e(R.Convert.ToHex(i),n)}constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else if(typeof e[0]==`string`){let t=new fb({keyIdentifier:new db(R.Convert.FromHex(e[0]))});super(ub,e[1],G.serialize(t))}else{let t=e[0],n=new fb({authorityCertIssuer:t.name instanceof QE?G.parse(t.name.rawData,gb):t.name,authorityCertSerialNumber:R.Convert.FromHex(t.serialNumber)});super(ub,e[1],G.serialize(n))}}onInit(e){super.onInit(e);let t=G.parse(e.extnValue,fb);t.keyIdentifier&&(this.keyId=R.Convert.ToHex(t.keyIdentifier)),(t.authorityCertIssuer||t.authorityCertSerialNumber)&&(this.certId={name:t.authorityCertIssuer||[],serialNumber:t.authorityCertSerialNumber?R.Convert.ToHex(t.authorityCertSerialNumber):``})}toTextObject(){let e=this.toTextObjectWithoutValue(),t=G.parse(this.value,fb);return t.authorityCertIssuer&&(e[`Authority Issuer`]=new QE(t.authorityCertIssuer).toTextObject()),t.authorityCertSerialNumber&&(e[`Authority Serial Number`]=t.authorityCertSerialNumber),t.keyIdentifier&&(e[``]=t.keyIdentifier),e}};lD.NAME=`Authority Key Identifier`;var uD=class extends ME{constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);let t=G.parse(this.value,mb);this.ca=t.cA,this.pathLength=t.pathLenConstraint}else{let t=new mb({cA:e[0],pathLenConstraint:e[1]});super(pb,e[2],G.serialize(t)),this.ca=e[0],this.pathLength=e[1]}}toTextObject(){let e=this.toTextObjectWithoutValue();return this.ca&&(e.CA=this.ca),this.pathLength!==void 0&&(e[`Path Length`]=this.pathLength),e}};uD.NAME=`Basic Constraints`;var dD;(function(e){e.serverAuth=`1.3.6.1.5.5.7.3.1`,e.clientAuth=`1.3.6.1.5.5.7.3.2`,e.codeSigning=`1.3.6.1.5.5.7.3.3`,e.emailProtection=`1.3.6.1.5.5.7.3.4`,e.timeStamping=`1.3.6.1.5.5.7.3.8`,e.ocspSigning=`1.3.6.1.5.5.7.3.9`})(dD||={});var fD=class extends ME{constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);let t=G.parse(this.value,Wb);this.usages=t.map(e=>e)}else{let t=new Wb(e[0]);super(Ub,e[1],G.serialize(t)),this.usages=e[0]}}toTextObject(){let e=this.toTextObjectWithoutValue();return e[``]=this.usages.map(e=>OE.toString(e)).join(`, `),e}};fD.NAME=`Extended Key Usages`;var pD;(function(e){e[e.digitalSignature=1]=`digitalSignature`,e[e.nonRepudiation=2]=`nonRepudiation`,e[e.keyEncipherment=4]=`keyEncipherment`,e[e.dataEncipherment=8]=`dataEncipherment`,e[e.keyAgreement=16]=`keyAgreement`,e[e.keyCertSign=32]=`keyCertSign`,e[e.cRLSign=64]=`cRLSign`,e[e.encipherOnly=128]=`encipherOnly`,e[e.decipherOnly=256]=`decipherOnly`})(pD||={});var mD=class extends ME{constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);let t=G.parse(this.value,Qb);this.usages=t.toNumber()}else{let t=new Qb(e[0]);super(Xb,e[1],G.serialize(t)),this.usages=e[0]}}toTextObject(){let e=this.toTextObjectWithoutValue();return e[``]=G.parse(this.value,Qb).toJSON().join(`, `),e}};mD.NAME=`Key Usages`;var hD=class e extends ME{static async create(t,n=!1,r=FE.get()){let i=await(await sD.create(t,r)).getKeyIdentifier(r);return new e(R.Convert.ToHex(i),n)}constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);let t=G.parse(this.value,mx);this.keyId=R.Convert.ToHex(t)}else{let t=typeof e[0]==`string`?R.Convert.FromHex(e[0]):e[0],n=new mx(t);super(px,e[1],G.serialize(n)),this.keyId=R.Convert.ToHex(t)}}toTextObject(){let e=this.toTextObjectWithoutValue();return e[``]=G.parse(this.value,mx),e}};hD.NAME=`Subject Key Identifier`;var gD=class extends ME{constructor(...e){R.BufferSourceConverter.isBufferSource(e[0])?super(e[0]):super(cx,e[1],new QE(e[0]||[]).rawData)}onInit(e){super.onInit(e);let t=G.parse(e.extnValue,lx);this.names=new QE(t)}toTextObject(){let e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(let n in t)e[n]=t[n];return e}};gD.NAME=`Subject Alternative Name`;var _D=class{static register(e,t){this.items.set(e,t)}static create(e){let t=new ME(e),n=this.items.get(t.type);return n?new n(e):t}};_D.items=new Map;var vD=class extends ME{constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0])){super(e[0]);let t=G.parse(this.value,Db);this.policies=t.map(e=>e.policyIdentifier)}else{let t=e[0],n=e[1]??!1,r=new Db(t.map(e=>new Eb({policyIdentifier:e})));super(bb,n,G.serialize(r)),this.policies=t}}toTextObject(){let e=this.toTextObjectWithoutValue();return e.Policy=this.policies.map(e=>new DE(``,{},OE.toString(e))),e}};vD.NAME=`Certificate Policies`,_D.register(bb,vD);var yD=class extends ME{constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else if(Array.isArray(e[0])&&typeof e[0][0]==`string`){let t=e[0].map(e=>new Fb({distributionPoint:new Pb({fullName:[new Yy({uniformResourceIdentifier:e})]})})),n=new Ib(t);super(jb,e[1],G.serialize(n))}else{let t=new Ib(e[0]);super(jb,e[1],G.serialize(t))}this.distributionPoints??=[]}onInit(e){super.onInit(e);let t=G.parse(e.extnValue,Ib);this.distributionPoints=t}toTextObject(){let e=this.toTextObjectWithoutValue();return e[`Distribution Point`]=this.distributionPoints.map(e=>{let t={};return e.distributionPoint&&(t[``]=e.distributionPoint.fullName?.map(e=>new ZE(e).toString()).join(`, `)),e.reasons&&(t.Reasons=e.reasons.toString()),e.cRLIssuer&&(t[`CRL Issuer`]=e.cRLIssuer.map(e=>e.toString()).join(`, `)),t}),e}};yD.NAME=`CRL Distribution Points`;var bD=class extends ME{constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else if(e[0]instanceof lb){let t=new lb(e[0]);super(sb,e[1],G.serialize(t))}else{let t=e[0],n=new lb;SD(n,t,tb,`ocsp`),SD(n,t,nb,`caIssuers`),SD(n,t,rb,`timeStamping`),SD(n,t,ib,`caRepository`),super(sb,e[1],G.serialize(n))}this.ocsp??=[],this.caIssuers??=[],this.timeStamping??=[],this.caRepository??=[]}onInit(e){super.onInit(e),this.ocsp=[],this.caIssuers=[],this.timeStamping=[],this.caRepository=[],G.parse(e.extnValue,lb).forEach(e=>{switch(e.accessMethod){case tb:this.ocsp.push(new ZE(e.accessLocation));break;case nb:this.caIssuers.push(new ZE(e.accessLocation));break;case rb:this.timeStamping.push(new ZE(e.accessLocation));break;case ib:this.caRepository.push(new ZE(e.accessLocation));break}})}toTextObject(){let e=this.toTextObjectWithoutValue();return this.ocsp.length&&xD(e,`OCSP`,this.ocsp),this.caIssuers.length&&xD(e,`CA Issuers`,this.caIssuers),this.timeStamping.length&&xD(e,`Time Stamping`,this.timeStamping),this.caRepository.length&&xD(e,`CA Repository`,this.caRepository),e}};bD.NAME=`Authority Info Access`;function xD(e,t,n){if(n.length===1)e[t]=n[0].toTextObject();else{let r=new DE(``);n.forEach((e,t)=>{let n=e.toTextObject(),i=`${n[DE.NAME]} ${t+1}`,a=r[i];Array.isArray(a)||(a=[],r[i]=a),a.push(n)}),e[t]=r}}function SD(e,t,n,r){let i=t[r];i&&(Array.isArray(i)?i:[i]).forEach(t=>{typeof t==`string`&&(t=new ZE(`url`,t)),e.push(new cb({accessMethod:n,accessLocation:G.parse(t.rawData,Yy)}))})}var CD=class extends ME{constructor(...e){R.BufferSourceConverter.isBufferSource(e[0])?super(e[0]):super(Jb,e[1],new QE(e[0]||[]).rawData)}onInit(e){super.onInit(e);let t=G.parse(e.extnValue,gb);this.names=new QE(t)}toTextObject(){let e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(let n in t)e[n]=t[n];return e}};CD.NAME=`Issuer Alternative Name`;var wD=class e extends jE{constructor(...e){let t;if(R.BufferSourceConverter.isBufferSource(e[0]))t=R.BufferSourceConverter.toArrayBuffer(e[0]);else{let n=e[0],r=Array.isArray(e[1])?e[1].map(e=>R.BufferSourceConverter.toArrayBuffer(e)):[];t=G.serialize(new ux({type:n,values:r}))}super(t,ux)}onInit(e){this.type=e.type,this.values=e.values}toTextObject(){let e=this.toTextObjectWithoutValue();return e.Value=this.values.map(e=>new DE(``,{"":e})),e}toTextObjectWithoutValue(){let t=this.toTextObjectEmpty();return t[DE.NAME]===e.NAME&&(t[DE.NAME]=OE.toString(this.type)),t}};wD.NAME=`Attribute`;var TD=class extends wD{constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else{let t=new FT({printableString:e[0]});super(hT,[G.serialize(t)])}this.password??=``}onInit(e){if(super.onInit(e),this.values[0]){let e=G.parse(this.values[0],FT);this.password=e.toString()}}toTextObject(){let e=this.toTextObjectWithoutValue();return e[DE.VALUE]=this.password,e}};TD.NAME=`Challenge Password`;var ED=class extends wD{constructor(...e){if(R.BufferSourceConverter.isBufferSource(e[0]))super(e[0]);else{let t=e[0],n=new Ex;for(let e of t)n.push(G.parse(e.rawData,Tx));super(gT,[G.serialize(n)])}this.items??=[]}onInit(e){if(super.onInit(e),this.values[0]){let e=G.parse(this.values[0],Ex);this.items=e.map(e=>_D.create(G.serialize(e)))}}toTextObject(){let e=this.toTextObjectWithoutValue(),t=this.items.map(e=>e.toTextObject());for(let n of t)e[n[DE.NAME]]=n;return e}};ED.NAME=`Extensions`;var DD=class{static register(e,t){this.items.set(e,t)}static create(e){let t=new wD(e),n=this.items.get(t.type);return n?new n(e):t}};DD.items=new Map;var OD=`crypto.signatureFormatter`,kD=class{toAsnSignature(e,t){return R.BufferSourceConverter.toArrayBuffer(t)}toWebSignature(e,t){return R.BufferSourceConverter.toArrayBuffer(t)}},AD,jD=AD=class{static createPssParams(e,t){let n=AD.getHashAlgorithm(e);return n?new cw({hashAlgorithm:n,maskGenAlgorithm:new J({algorithm:nw,parameters:G.serialize(n)}),saltLength:t}):null}static getHashAlgorithm(e){let t=Mw.resolve(KT);return typeof e==`string`?t.toAsnAlgorithm({name:e}):typeof e==`object`&&e&&`name`in e?t.toAsnAlgorithm(e):null}toAsnAlgorithm(e){switch(e.name.toLowerCase()){case`rsassa-pkcs1-v1_5`:if(`hash`in e){let t;if(typeof e.hash==`string`)t=e.hash;else if(e.hash&&typeof e.hash==`object`&&`name`in e.hash&&typeof e.hash.name==`string`)t=e.hash.name.toUpperCase();else throw Error(`Cannot get hash algorithm name`);switch(t.toLowerCase()){case`sha-1`:return new J({algorithm:BC,parameters:null});case`sha-256`:return new J({algorithm:HC,parameters:null});case`sha-384`:return new J({algorithm:UC,parameters:null});case`sha-512`:return new J({algorithm:WC,parameters:null})}}else return new J({algorithm:PC,parameters:null});break;case`rsa-pss`:if(`hash`in e){if(!(`saltLength`in e&&typeof e.saltLength==`number`))throw Error(`Cannot get 'saltLength' from 'alg' argument`);let t=AD.createPssParams(e.hash,e.saltLength);if(!t)throw Error(`Cannot create PSS parameters`);return new J({algorithm:LC,parameters:G.serialize(t)})}else return new J({algorithm:LC,parameters:null})}return null}toWebAlgorithm(e){switch(e.algorithm){case PC:return{name:`RSASSA-PKCS1-v1_5`};case BC:return{name:`RSASSA-PKCS1-v1_5`,hash:{name:`SHA-1`}};case HC:return{name:`RSASSA-PKCS1-v1_5`,hash:{name:`SHA-256`}};case UC:return{name:`RSASSA-PKCS1-v1_5`,hash:{name:`SHA-384`}};case WC:return{name:`RSASSA-PKCS1-v1_5`,hash:{name:`SHA-512`}};case LC:if(e.parameters){let t=G.parse(e.parameters,cw);return{name:`RSA-PSS`,hash:Mw.resolve(KT).toWebAlgorithm(t.hashAlgorithm),saltLength:t.saltLength}}else return{name:`RSA-PSS`}}return null}};jD=AD=K([Nw()],jD),Mw.registerSingleton(GT,jD);var MD=class{toAsnAlgorithm(e){switch(e.name.toLowerCase()){case`sha-1`:return new J({algorithm:qC});case`sha-256`:return new J({algorithm:YC});case`sha-384`:return new J({algorithm:XC});case`sha-512`:return new J({algorithm:ZC})}return null}toWebAlgorithm(e){switch(e.algorithm){case qC:return{name:`SHA-1`};case YC:return{name:`SHA-256`};case XC:return{name:`SHA-384`};case ZC:return{name:`SHA-512`}}return null}};MD=K([Nw()],MD),Mw.registerSingleton(GT,MD);var ND=class e{addPadding(e,t){let n=R.BufferSourceConverter.toUint8Array(t),r=new Uint8Array(e);return r.set(n,e-n.length),r.buffer}removePadding(e,t=!1){let n=R.BufferSourceConverter.toUint8Array(e);for(let e=0;e<n.length;e++)if(n[e]){n=n.slice(e);break}if(t&&n[0]>127){let e=new Uint8Array(n.length+1);return e.set(n,1),e.buffer}return n.buffer}toAsnSignature(t,n){if(t.name===`ECDSA`){let r=t.namedCurve,i=e.namedCurveSize.get(r)||e.defaultNamedCurveSize,a=new MC,o=R.BufferSourceConverter.toUint8Array(n);return a.r=this.removePadding(o.slice(0,i),!0),a.s=this.removePadding(o.slice(i,i+i),!0),G.serialize(a)}return null}toWebSignature(t,n){if(t.name===`ECDSA`){let r=G.parse(n,MC),i=t.namedCurve,a=e.namedCurveSize.get(i)||e.defaultNamedCurveSize;return(0,R.combine)(this.addPadding(a,this.removePadding(r.r)),this.addPadding(a,this.removePadding(r.s)))}return null}};ND.namedCurveSize=new Map,ND.defaultNamedCurveSize=32;var PD=`1.3.101.110`,FD=`1.3.101.111`,ID=`1.3.101.112`,LD=`1.3.101.113`,RD=class{toAsnAlgorithm(e){let t=null;switch(e.name.toLowerCase()){case`ed25519`:t=ID;break;case`x25519`:t=PD;break;case`eddsa`:switch(e.namedCurve.toLowerCase()){case`ed25519`:t=ID;break;case`ed448`:t=LD;break}break;case`ecdh-es`:switch(e.namedCurve.toLowerCase()){case`x25519`:t=PD;break;case`x448`:t=FD;break}}return t?new J({algorithm:t}):null}toWebAlgorithm(e){switch(e.algorithm){case ID:return{name:`Ed25519`};case LD:return{name:`EdDSA`,namedCurve:`Ed448`};case PD:return{name:`X25519`};case FD:return{name:`ECDH-ES`,namedCurve:`X448`}}return null}};RD=K([Nw()],RD),Mw.registerSingleton(GT,RD);var zD,BD,VD,HD,UD,WD,GD,KD,qD=class extends oD{get subjectName(){return q(this,BD,`f`)||Py(this,BD,new HE(this.asn.certificationRequestInfo.subject),`f`),q(this,BD,`f`)}get subject(){return q(this,VD,`f`)||Py(this,VD,this.subjectName.toString(),`f`),q(this,VD,`f`)}get signatureAlgorithm(){if(!q(this,HD,`f`)){let e=Mw.resolve(KT);Py(this,HD,e.toWebAlgorithm(this.asn.signatureAlgorithm),`f`)}return q(this,HD,`f`)}get signature(){return q(this,UD,`f`)||Py(this,UD,this.asn.signature,`f`),q(this,UD,`f`)}get publicKey(){return q(this,WD,`f`)||Py(this,WD,new sD(this.asn.certificationRequestInfo.subjectPKInfo),`f`),q(this,WD,`f`)}get attributes(){return q(this,GD,`f`)||Py(this,GD,this.asn.certificationRequestInfo.attributes.map(e=>DD.create(G.serialize(e))),`f`),q(this,GD,`f`)}get extensions(){if(!q(this,KD,`f`)){Py(this,KD,[],`f`);let e=this.getAttribute(gT);e instanceof ED&&Py(this,KD,e.items,`f`)}return q(this,KD,`f`)}get tbs(){return q(this,zD,`f`)||Py(this,zD,this.asn.certificationRequestInfoRaw||G.serialize(this.asn.certificationRequestInfo),`f`),q(this,zD,`f`)}constructor(e){let t=oD.isAsnEncoded(e)?[e,WT]:[e];super(t[0],t[1]),zD.set(this,void 0),BD.set(this,void 0),VD.set(this,void 0),HD.set(this,void 0),UD.set(this,void 0),WD.set(this,void 0),GD.set(this,void 0),KD.set(this,void 0),this.tag=aD.CertificateRequestTag}onInit(e){}getAttribute(e){for(let t of this.attributes)if(t.type===e)return t;return null}getAttributes(e){return this.attributes.filter(t=>t.type===e)}getExtension(e){for(let t of this.extensions)if(t.type===e)return t;return null}getExtensions(e){return this.extensions.filter(t=>t.type===e)}async verify(e=FE.get()){let t={...this.publicKey.algorithm,...this.signatureAlgorithm},n=await this.publicKey.export(t,[`verify`],e),r=Mw.resolveAll(OD).reverse(),i=null;for(let e of r)if(i=e.toWebSignature(t,this.signature),i)break;if(!i)throw Error(`Cannot convert WebCrypto signature value to ASN.1 format`);return await e.subtle.verify(this.signatureAlgorithm,n,i,this.tbs)}toTextObject(){let e=this.toTextObjectEmpty(),t=G.parse(this.rawData,WT),n=t.certificationRequestInfo,r=new DE(``,{Version:`${Dx[n.version]} (${n.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){let e=new DE(``);for(let t of this.attributes){let n=t.toTextObject();e[n[DE.NAME]]=n}r.Attributes=e}return e.Data=r,e.Signature=new DE(``,{Algorithm:kE.serializeAlgorithm(t.signatureAlgorithm),"":t.signature}),e}};zD=new WeakMap,BD=new WeakMap,VD=new WeakMap,HD=new WeakMap,UD=new WeakMap,WD=new WeakMap,GD=new WeakMap,KD=new WeakMap,qD.NAME=`PKCS#10 Certificate Request`;var JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO,iO,aO,oO=class extends oD{get publicKey(){return q(this,aO,`f`)||Py(this,aO,new sD(this.asn.tbsCertificate.subjectPublicKeyInfo),`f`),q(this,aO,`f`)}get serialNumber(){if(!q(this,YD,`f`)){let e=this.asn.tbsCertificate,t=new Uint8Array(e.serialNumber);t.length>1&&t[0]===0&&t[1]>127&&(t=t.slice(1)),Py(this,YD,R.Convert.ToHex(t),`f`)}return q(this,YD,`f`)}get subjectName(){return q(this,XD,`f`)||Py(this,XD,new HE(this.asn.tbsCertificate.subject),`f`),q(this,XD,`f`)}get subject(){return q(this,ZD,`f`)||Py(this,ZD,this.subjectName.toString(),`f`),q(this,ZD,`f`)}get issuerName(){return q(this,QD,`f`)||Py(this,QD,new HE(this.asn.tbsCertificate.issuer),`f`),q(this,QD,`f`)}get issuer(){return q(this,$D,`f`)||Py(this,$D,this.issuerName.toString(),`f`),q(this,$D,`f`)}get notBefore(){if(!q(this,eO,`f`)){let e=this.asn.tbsCertificate.validity.notBefore.utcTime||this.asn.tbsCertificate.validity.notBefore.generalTime;if(!e)throw Error(`Cannot get 'notBefore' value`);Py(this,eO,e,`f`)}return q(this,eO,`f`)}get notAfter(){if(!q(this,tO,`f`)){let e=this.asn.tbsCertificate.validity.notAfter.utcTime||this.asn.tbsCertificate.validity.notAfter.generalTime;if(!e)throw Error(`Cannot get 'notAfter' value`);Py(this,tO,e,`f`)}return q(this,tO,`f`)}get signatureAlgorithm(){if(!q(this,nO,`f`)){let e=Mw.resolve(KT);Py(this,nO,e.toWebAlgorithm(this.asn.signatureAlgorithm),`f`)}return q(this,nO,`f`)}get signature(){return q(this,rO,`f`)||Py(this,rO,this.asn.signatureValue,`f`),q(this,rO,`f`)}get extensions(){return q(this,iO,`f`)||(Py(this,iO,[],`f`),this.asn.tbsCertificate.extensions&&Py(this,iO,this.asn.tbsCertificate.extensions.map(e=>_D.create(G.serialize(e))),`f`)),q(this,iO,`f`)}get tbs(){return q(this,JD,`f`)||Py(this,JD,this.asn.tbsCertificateRaw||G.serialize(this.asn.tbsCertificate),`f`),q(this,JD,`f`)}constructor(e){let t=oD.isAsnEncoded(e)?[e,kx]:[e];super(t[0],t[1]),JD.set(this,void 0),YD.set(this,void 0),XD.set(this,void 0),ZD.set(this,void 0),QD.set(this,void 0),$D.set(this,void 0),eO.set(this,void 0),tO.set(this,void 0),nO.set(this,void 0),rO.set(this,void 0),iO.set(this,void 0),aO.set(this,void 0),this.tag=aD.CertificateTag}onInit(e){}getExtension(e){for(let t of this.extensions)if(typeof e==`string`){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>typeof e==`string`?t.type===e:t instanceof e)}async verify(e={},t=FE.get()){let n,r,i=e.publicKey;try{if(!i)n={...this.publicKey.algorithm,...this.signatureAlgorithm},r=await this.publicKey.export(n,[`verify`],t);else if(`publicKey`in i)n={...i.publicKey.algorithm,...this.signatureAlgorithm},r=await i.publicKey.export(n,[`verify`],t);else if(i instanceof sD)n={...i.algorithm,...this.signatureAlgorithm},r=await i.export(n,[`verify`],t);else if(R.BufferSourceConverter.isBufferSource(i)){let e=new sD(i);n={...e.algorithm,...this.signatureAlgorithm},r=await e.export(n,[`verify`],t)}else n={...i.algorithm,...this.signatureAlgorithm},r=i}catch{return!1}let a=Mw.resolveAll(OD).reverse(),o=null;for(let e of a)if(o=e.toWebSignature(n,this.signature),o)break;if(!o)throw Error(`Cannot convert ASN.1 signature value to WebCrypto format`);let s=await t.subtle.verify(this.signatureAlgorithm,r,o,this.tbs);if(e.signatureOnly)return s;{let t=(e.date||new Date).getTime();return s&&this.notBefore.getTime()<t&&t<this.notAfter.getTime()}}async getThumbprint(...e){let t,n=`SHA-1`;return e[0]&&(e[0].subtle?t=e[0]:(n=e[0]||n,t=e[1])),t??=FE.get(),await t.subtle.digest(n,this.rawData)}async isSelfSigned(e=FE.get()){return this.subject===this.issuer&&await this.verify({signatureOnly:!0},e)}toTextObject(){let e=this.toTextObjectEmpty(),t=G.parse(this.rawData,kx),n=t.tbsCertificate,r=new DE(``,{Version:`${Dx[n.version]} (${n.version})`,"Serial Number":n.serialNumber,"Signature Algorithm":kE.serializeAlgorithm(n.signature),Issuer:this.issuer,Validity:new DE(``,{"Not Before":n.validity.notBefore.getTime(),"Not After":n.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(n.issuerUniqueID&&(r[`Issuer Unique ID`]=n.issuerUniqueID),n.subjectUniqueID&&(r[`Subject Unique ID`]=n.subjectUniqueID),this.extensions.length){let e=new DE(``);for(let t of this.extensions){let n=t.toTextObject();e[n[DE.NAME]]=n}r.Extensions=e}return e.Data=r,e.Signature=new DE(``,{Algorithm:kE.serializeAlgorithm(t.signatureAlgorithm),"":t.signatureValue}),e}};JD=new WeakMap,YD=new WeakMap,XD=new WeakMap,ZD=new WeakMap,QD=new WeakMap,$D=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,iO=new WeakMap,aO=new WeakMap,oO.NAME=`Certificate`;var sO=class extends Array{constructor(e){if(super(),oD.isAsnEncoded(e))this.import(e);else if(e instanceof oO)this.push(e);else if(Array.isArray(e))for(let t of e)this.push(t)}export(e){let t=new uC;t.version=1,t.encapContentInfo.eContentType=oC,t.encapContentInfo.eContent=new kS({single:new H}),t.certificates=new DS(this.map(e=>new ES({certificate:G.parse(e.rawData,kx)})));let n=new OS({contentType:sC,content:G.serialize(t)}),r=G.serialize(n);return e===`raw`?r:this.toString(e)}import(e){let t=oD.toArrayBuffer(e),n=G.parse(t,OS);if(n.contentType!==`1.2.840.113549.1.7.2`)throw TypeError(`Cannot parse CMS package. Incoming data is not a SignedData object.`);let r=G.parse(n.content,uC);this.clear();for(let e of r.certificates||[])e.certificate&&this.push(new oO(e.certificate))}clear(){for(;this.pop(););}toString(e=`pem`){let t=this.export(`raw`);switch(e){case`pem`:return aD.encode(t,`CMS`);case`pem-chain`:return this.map(e=>e.toString(`pem`)).join(`
379
- `);case`asn`:return G.toString(t);case`hex`:return R.Convert.ToHex(t);case`base64`:return R.Convert.ToBase64(t);case`base64url`:return R.Convert.ToBase64Url(t);case`text`:return kE.serialize(this.toTextObject());default:throw TypeError(`Argument 'format' is unsupported value`)}}toTextObject(){let e=G.parse(this.export(`raw`),OS),t=G.parse(e.content,uC);return new DE(`X509Certificates`,{"Content Type":OE.toString(e.contentType),Content:new DE(``,{Version:`${Fx[t.version]} (${t.version})`,Certificates:new DE(``,{Certificate:this.map(e=>e.toTextObject())})})})}},cO=class{constructor(e={}){this.certificates=[],e.certificates&&(this.certificates=e.certificates)}async build(e,t=FE.get()){let n=new sO(e),r=e;for(;r=await this.findIssuer(r,t);){let e=await r.getThumbprint(t);for(let r of n)if((0,R.isEqual)(e,await r.getThumbprint(t)))throw Error(`Cannot build a certificate chain. Circular dependency.`);n.push(r)}return n}async findIssuer(e,t=FE.get()){if(!await e.isSelfSigned(t)){let n=e.getExtension(ub);for(let r of this.certificates)if(r.subject===e.issuer){if(n){if(n.keyId){let e=r.getExtension(px);if(e&&e.keyId!==n.keyId)continue}else if(n.certId){let e=r.getExtension(cx);if(e&&!(n.certId.serialNumber===r.serialNumber&&(0,R.isEqual)(G.serialize(n.certId.name),G.serialize(e))))continue}}try{let n={...r.publicKey.algorithm,...e.signatureAlgorithm},i=await r.publicKey.export(n,[`verify`],t);if(!await e.verify({publicKey:i,signatureOnly:!0},t))continue}catch{continue}return r}}return null}};function lO(e,t=FE.get()){let n=R.BufferSourceConverter.toUint8Array(R.Convert.FromHex(e||``)),r=n&&n.length&&n.some(e=>e>0)?new Uint8Array(n):void 0;r||=t.getRandomValues(new Uint8Array(16));let i=0;for(;i<r.length-1&&r[i]===0;)i++;if(r=r.slice(i),r[0]>127){let e=new Uint8Array(r.length+1);e[0]=0,e.set(r,1),r=e}return r.buffer}var uO=class{static async createSelfSigned(e,t=FE.get()){if(!e.keys.privateKey)throw Error(`Bad field 'keys' in 'params' argument. 'privateKey' is empty`);if(!e.keys.publicKey)throw Error(`Bad field 'keys' in 'params' argument. 'publicKey' is empty`);return this.create({serialNumber:e.serialNumber,subject:e.name,issuer:e.name,notBefore:e.notBefore,notAfter:e.notAfter,publicKey:e.keys.publicKey,signingKey:e.keys.privateKey,signingAlgorithm:e.signingAlgorithm,extensions:e.extensions},t)}static async create(e,t=FE.get()){let n;n=e.publicKey instanceof sD?e.publicKey.rawData:`publicKey`in e.publicKey?e.publicKey.publicKey.rawData:R.BufferSourceConverter.isBufferSource(e.publicKey)?e.publicKey:await t.subtle.exportKey(`spki`,e.publicKey);let r=lO(e.serialNumber,t),i=e.notBefore||new Date,a=e.notAfter||new Date(i.getTime()+31536e6),o=new kx({tbsCertificate:new Ox({version:Dx.v3,serialNumber:r,validity:new Cx({notBefore:i,notAfter:a}),extensions:new Ex(e.extensions?.map(e=>G.parse(e.rawData,Tx))||[]),subjectPublicKeyInfo:G.parse(n,xx)})});if(e.subject){let t=e.subject instanceof HE?e.subject:new HE(e.subject);o.tbsCertificate.subject=G.parse(t.toArrayBuffer(),Ky)}if(e.issuer){let t=e.issuer instanceof HE?e.issuer:new HE(e.issuer);o.tbsCertificate.issuer=G.parse(t.toArrayBuffer(),Ky)}let s={hash:`SHA-256`},c=`signingKey`in e?{...s,...e.signingAlgorithm,...e.signingKey.algorithm}:{...s,...e.signingAlgorithm},l=Mw.resolve(KT);o.tbsCertificate.signature=o.signatureAlgorithm=l.toAsnAlgorithm(c);let u=G.serialize(o.tbsCertificate),d=`signingKey`in e?await t.subtle.sign(c,e.signingKey,u):e.signature,f=Mw.resolveAll(OD).reverse(),p=null;for(let e of f)if(p=e.toAsnSignature(c,d),p)break;if(!p)throw Error(`Cannot convert ASN.1 signature value to WebCrypto format`);return o.signatureValue=p,new oO(G.serialize(o))}},dO,fO,pO,mO,hO,gO;(function(e){e[e.unspecified=0]=`unspecified`,e[e.keyCompromise=1]=`keyCompromise`,e[e.cACompromise=2]=`cACompromise`,e[e.affiliationChanged=3]=`affiliationChanged`,e[e.superseded=4]=`superseded`,e[e.cessationOfOperation=5]=`cessationOfOperation`,e[e.certificateHold=6]=`certificateHold`,e[e.removeFromCRL=8]=`removeFromCRL`,e[e.privilegeWithdrawn=9]=`privilegeWithdrawn`,e[e.aACompromise=10]=`aACompromise`})(gO||={});var _O=class extends jE{get serialNumber(){return q(this,dO,`f`)||Py(this,dO,R.Convert.ToHex(this.asn.userCertificate),`f`),q(this,dO,`f`)}get revocationDate(){return q(this,fO,`f`)||Py(this,fO,this.asn.revocationDate.getTime(),`f`),q(this,fO,`f`)}get reason(){return q(this,pO,`f`)===void 0&&this.extensions,q(this,pO,`f`)}get invalidity(){return q(this,mO,`f`)===void 0&&this.extensions,q(this,mO,`f`)}get extensions(){return q(this,hO,`f`)||(Py(this,hO,[],`f`),this.asn.crlEntryExtensions&&Py(this,hO,this.asn.crlEntryExtensions.map(e=>{let t=_D.create(G.serialize(e));switch(t.type){case poe:q(this,pO,`f`)===void 0&&Py(this,pO,G.parse(t.value,Vb).reason,`f`);break;case boe:q(this,mO,`f`)===void 0&&Py(this,mO,G.parse(t.value,Kb).value,`f`);break}return t}),`f`)),q(this,hO,`f`)}constructor(...e){let t;if(R.BufferSourceConverter.isBufferSource(e[0])?t=R.BufferSourceConverter.toArrayBuffer(e[0]):typeof e[0]==`string`?t=G.serialize(new Ax({userCertificate:lO(e[0]),revocationDate:new Sx(e[1]),crlEntryExtensions:e[2]})):e[0]instanceof Ax&&(t=e[0]),!t)throw TypeError(`Cannot create X509CrlEntry instance. Wrong constructor arguments.`);super(t,Ax),dO.set(this,void 0),fO.set(this,void 0),pO.set(this,void 0),mO.set(this,void 0),hO.set(this,void 0)}onInit(e){}};dO=new WeakMap,fO=new WeakMap,pO=new WeakMap,mO=new WeakMap,hO=new WeakMap;var vO,yO,bO,xO,SO,CO,wO,TO=class extends oD{get version(){return this.asn.tbsCertList.version}get signatureAlgorithm(){if(!q(this,yO,`f`)){let e=Mw.resolve(KT);Py(this,yO,e.toWebAlgorithm(this.asn.signatureAlgorithm),`f`)}return q(this,yO,`f`)}get signature(){return this.asn.signature}get issuer(){return this.issuerName.toString()}get issuerName(){return q(this,bO,`f`)||Py(this,bO,new HE(this.asn.tbsCertList.issuer),`f`),q(this,bO,`f`)}get thisUpdate(){if(!q(this,xO,`f`)){let e=this.asn.tbsCertList.thisUpdate.getTime();if(!e)throw Error(`Cannot get 'thisUpdate' value`);Py(this,xO,e,`f`)}return q(this,xO,`f`)}get nextUpdate(){return q(this,SO,`f`)===void 0&&Py(this,SO,this.asn.tbsCertList.nextUpdate?.getTime()||void 0,`f`),q(this,SO,`f`)}get entries(){return q(this,CO,`f`)||Py(this,CO,this.asn.tbsCertList.revokedCertificates?.map(e=>new _O(e))||[],`f`),q(this,CO,`f`)}get extensions(){return q(this,wO,`f`)||(Py(this,wO,[],`f`),this.asn.tbsCertList.crlExtensions&&Py(this,wO,this.asn.tbsCertList.crlExtensions.map(e=>_D.create(G.serialize(e))),`f`)),q(this,wO,`f`)}get tbs(){return q(this,vO,`f`)||Py(this,vO,this.asn.tbsCertListRaw||G.serialize(this.asn.tbsCertList),`f`),q(this,vO,`f`)}get tbsCertListSignatureAlgorithm(){return this.asn.tbsCertList.signature}get certListSignatureAlgorithm(){return this.asn.signatureAlgorithm}constructor(e){super(e,oD.isAsnEncoded(e)?Mx:void 0),this.tag=aD.CrlTag,vO.set(this,void 0),yO.set(this,void 0),bO.set(this,void 0),xO.set(this,void 0),SO.set(this,void 0),CO.set(this,void 0),wO.set(this,void 0)}onInit(e){}getExtension(e){for(let t of this.extensions)if(typeof e==`string`){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>typeof e==`string`?t.type===e:t instanceof e)}async verify(e,t=FE.get()){if(!this.certListSignatureAlgorithm.isEqual(this.tbsCertListSignatureAlgorithm))throw Error(`algorithm identifier in the sequence tbsCertList and CertificateList mismatch`);let n,r,i=e.publicKey;try{i instanceof oO?(n={...i.publicKey.algorithm,...i.signatureAlgorithm},r=await i.publicKey.export(n,[`verify`])):i instanceof sD?(n={...i.algorithm,...this.signatureAlgorithm},r=await i.export(n,[`verify`])):(n={...i.algorithm,...this.signatureAlgorithm},r=i)}catch{return!1}let a=Mw.resolveAll(OD).reverse(),o=null;for(let e of a)if(o=e.toWebSignature(n,this.signature),o)break;if(!o)throw Error(`Cannot convert ASN.1 signature value to WebCrypto format`);return await t.subtle.verify(this.signatureAlgorithm,r,o,this.tbs)}async getThumbprint(...e){let t,n=`SHA-1`;return e[0]&&(e[0].subtle?t=e[0]:(n=e[0]||n,t=e[1])),t??=FE.get(),await t.subtle.digest(n,this.rawData)}findRevoked(e){let t=lO(typeof e==`string`?e:e.serialNumber);for(let e of this.asn.tbsCertList.revokedCertificates||[])if(R.BufferSourceConverter.isEqual(e.userCertificate,t))return new _O(G.serialize(e));return null}};vO=new WeakMap,yO=new WeakMap,bO=new WeakMap,xO=new WeakMap,SO=new WeakMap,CO=new WeakMap,wO=new WeakMap,_D.register(pb,uD),_D.register(Ub,fD),_D.register(Xb,mD),_D.register(px,hD),_D.register(ub,lD),_D.register(cx,gD),_D.register(jb,yD),_D.register(sb,bD),_D.register(Jb,CD),DD.register(hT,TD),DD.register(gT,ED),Mw.registerSingleton(OD,kD),Mw.registerSingleton(OD,ND),ND.namedCurveSize.set(`P-256`,32),ND.namedCurveSize.set(`K-256`,32),ND.namedCurveSize.set(`P-384`,48),ND.namedCurveSize.set(`P-521`,66);var EO={"P-256":`ES256`,"P-384":`ES384`,"P-521":`ES512`},DO={RS256:`SHA-256`,RS384:`SHA-384`,RS512:`SHA-512`},OO=new Set([`RS256`,`RS384`,`RS512`,`ES256`,`ES384`,`ES512`]);function kO(e){return typeof e==`string`&&OO.has(e)}function AO(e){if(kO(e.alg)){if(e.kty===`RSA`&&e.alg.startsWith(`RS`))return e.alg;if(e.kty===`EC`&&e.alg.startsWith(`ES`)){let t=e.crv&&e.crv in EO?EO[e.crv]:void 0;if(t&&t!==e.alg)throw Error(`EC alg/curve mismatch: curve ${e.crv} requires ${t}, got ${e.alg}`);return e.alg}}if(e.kty===`RSA`)return`RS256`;if(e.kty===`EC`){if(!e.crv||!(e.crv in EO))throw Error(`Unsupported EC curve: ${e.crv??`(missing)`}`);return EO[e.crv]}throw Error(`Unsupported JWK kty: ${e.kty}`)}function jO(e,t){if(e.kty===`RSA`){let e=DO[t];if(!e)throw Error(`Unsupported RSA alg: ${t}`);return{name:`RSASSA-PKCS1-v1_5`,hash:e}}if(e.kty===`EC`){if(!e.crv||!(e.crv in EO))throw Error(`Unsupported EC curve: ${e.crv??`(missing)`}`);let n=EO[e.crv];if(t!==n)throw Error(`EC alg/curve mismatch: curve ${e.crv} requires ${n}, got ${t}`);return{name:`ECDSA`,namedCurve:e.crv}}throw Error(`Unsupported JWK kty: ${e.kty}`)}var MO=[`RS256`,`ES256`,`ES384`,`ES512`];async function NO(e){let t=await new oO(e).publicKey.export();return AO(await crypto.subtle.exportKey(`jwk`,t))}function PO(e){let t=new Date;return e.filter(e=>!e.revoked_at||new Date(e.revoked_at)>t).sort((e,t)=>{let n=e.current_since?new Date(e.current_since).getTime():0,r=t.current_since?new Date(t.current_since).getTime():0;return r===n?t.kid.localeCompare(e.kid):r-n})}var FO=/^[A-Za-z0-9._-]+$/;function IO(e,t){if(!FO.test(e))throw Error(`Invalid ${t}: must match ${FO}`)}var LO=1e3;async function RO(e,t,n){IO(t,`tenant_id`),IO(n,`type`);let{signingKeys:r}=await e.list({q:`type:${n} AND tenant_id:${t}`,sort:{sort_by:`created_at`,sort_order:`desc`},per_page:LO});return PO(r)}async function zO(e,t=`jwt_signing`){IO(t,`type`);let{signingKeys:n}=await e.list({q:`type:${t} AND -_exists_:tenant_id`,sort:{sort_by:`created_at`,sort_order:`desc`},per_page:LO});return PO(n)}async function BO(e,t){return e?typeof e==`string`?e:e({tenant_id:t}):`control-plane`}async function VO(e,t,n,r){let i=r.type??`jwt_signing`;if(await BO(n,t)===`control-plane`){let t=await zO(e,i);if(r.purpose===`sign`){let e=t[0];return e?[e]:[]}return t}let[a,o]=await Promise.all([RO(e,t,i),zO(e,i)]);if(r.purpose===`sign`){let e=a[0]??o[0];return e?[e]:[]}let s=new Set,c=[];for(let e of[...a,...o])s.has(e.kid)||(s.add(e.kid),c.push(e));return c}async function HO(e){return Promise.all(e.map(async e=>{let t=await new oO(e.cert).publicKey.export(),n=await crypto.subtle.exportKey(`jwk`,t),r=n.alg??AO(n);return ir.parse({...n,alg:r,use:`sig`,kid:e.kid})}))}async function UO(e,t,n){return HO(await VO(e.keys,t,n,{purpose:`publish`}))}async function WO(e,t,n){return t?UO(e,t,n):HO(await zO(e.keys))}var GO={ES256:`P-256`,ES384:`P-384`,ES512:`P-521`};function KO(e){if(!(e instanceof Uint8Array))return e;let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}function qO(e){return`SHA-${e.slice(2)}`}async function JO(e,t){let n=KO(t);if(e.startsWith(`HS`))return crypto.subtle.importKey(`raw`,n,{name:`HMAC`,hash:qO(e)},!1,[`sign`]);if(e.startsWith(`RS`))return crypto.subtle.importKey(`pkcs8`,n,{name:`RSASSA-PKCS1-v1_5`,hash:qO(e)},!1,[`sign`]);let r=GO[e];if(!r)throw Error(`Unsupported JWT signing alg: ${e}`);return crypto.subtle.importKey(`pkcs8`,n,{name:`ECDSA`,namedCurve:r},!1,[`sign`])}async function YO(e,t,n,r={}){let i={alg:e,typ:`JWT`,...r.headers},a={...n};r.expiresInSeconds!==void 0&&(a.exp=Math.floor(Date.now()/1e3)+r.expiresInSeconds),r.includeIssuedTimestamp===!0&&(a.iat=Math.floor(Date.now()/1e3));let o=new TextEncoder,s=ga(o.encode(JSON.stringify(i))),c=ga(o.encode(JSON.stringify(a))),l=o.encode(`${s}.${c}`),u=await JO(e,t),d=await crypto.subtle.sign(e.startsWith(`ES`)?{name:`ECDSA`,hash:qO(e)}:u.algorithm.name,u,l);return`${s}.${c}.${ga(new Uint8Array(d))}`}function XO(e){try{let{header:t,payload:n}=t_(e);return typeof t!=`object`||!t||typeof n!=`object`||!n?null:{header:t,payload:n}}catch{return null}}function ZO(e){switch(e){case`RS256`:case`RS384`:case`RS512`:case`ES256`:case`ES384`:case`ES512`:return e;default:throw new L(401,{message:`Unsupported JWS alg: ${e??`(missing)`}`})}}var QO=class extends L{constructor(){super(403,{message:`Invalid JWT signature`}),this.name=`JwtExpiredError`}};async function $O(e,t,n={}){try{let{header:r}=t_(t),i=ZO(r?.alg),a=(await WO(e.env.data,e.var.tenant_id,e.env.signingKeyMode)).find(e=>e.kid===r.kid);if(!a)throw new L(401,{message:`No matching kid found`});if(a.alg!==i)throw new L(401,{message:`alg mismatch between token header and JWK`});let o=jO(a,i),s=await e_(t,await crypto.subtle.importKey(`jwk`,a,o,!1,[`verify`]),i);if(!n.skipIssuerCheck){let t=Ea(e.env,e.var.custom_domain),r=n.additionalIssuers??[];if(s.iss!==t&&!r.includes(s.iss))throw new L(401,{message:`Invalid issuer`})}return s}catch(e){throw e instanceof m?e:e instanceof Error&&e.name===`JwtTokenExpired`?new QO:new L(403,{message:`Invalid JWT signature`})}}var ek=f.z.object({iss:f.z.string().url(),sub:f.z.string(),aud:f.z.union([f.z.string(),f.z.array(f.z.string())]),exp:f.z.number(),email:f.z.string().optional(),given_name:f.z.string().optional(),family_name:f.z.string().optional(),name:f.z.string().optional(),iat:f.z.number(),auth_time:f.z.number().optional(),nonce:f.z.string().optional(),acr:f.z.string().optional(),amr:f.z.array(f.z.string()).optional(),azp:f.z.string().optional(),at_hash:f.z.string().optional(),c_hash:f.z.string().optional()}).passthrough();ek.omit({iat:!0,auth_time:!0,nonce:!0,acr:!0,amr:!0,azp:!0,at_hash:!0,c_hash:!0});var tk=c({displayName:()=>nk,getRedirect:()=>ak,logoDataUri:()=>rk,validateAuthorizationCodeAndGetUser:()=>ok}),nk=`Apple`,rk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M45%200H0V45H45V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5344%2010.3846C25.5313%2010.3846%2028.0344%209.01144%2029.525%207.18055C30.875%205.5213%2031.8594%203.20407%2031.8594%200.886839C31.8594%200.572154%2031.8313%200.25747%2031.775%200C29.5531%200.0858233%2026.8813%201.51621%2025.2781%203.43293C24.0125%204.89193%2022.8594%207.18055%2022.8594%209.52638C22.8594%209.86968%2022.9156%2010.213%2022.9438%2010.3274C23.0844%2010.356%2023.3094%2010.3846%2023.5344%2010.3846ZM16.5031%2045C19.2313%2045%2020.4406%2043.1405%2023.8438%2043.1405C27.3031%2043.1405%2028.0625%2044.9428%2031.1%2044.9428C34.0813%2044.9428%2036.0781%2042.1392%2037.9625%2039.3929C40.0719%2036.246%2040.9438%2033.1564%2041%2033.0134C40.8031%2032.9561%2035.0938%2030.5817%2035.0938%2023.9161C35.0938%2018.1373%2039.5938%2015.534%2039.8469%2015.3338C36.8656%2010.9854%2032.3375%2010.8709%2031.1%2010.8709C27.7531%2010.8709%2025.025%2012.9307%2023.3094%2012.9307C21.4531%2012.9307%2019.0063%2010.9854%2016.1094%2010.9854C10.5969%2010.9854%205%2015.6198%205%2024.3738C5%2029.8093%207.08125%2035.5594%209.64063%2039.2784C11.8344%2042.4253%2013.7469%2045%2016.5031%2045Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E`;function ik(e){let{options:t}=e;if(!t||!t.client_id||!t.team_id||!t.kid||!t.app_secret)throw Error(`Missing required Apple authentication parameters`);let n=Buffer.from(t.app_secret,`utf-8`),r=n.toString().replace(/-----BEGIN PRIVATE KEY-----|-----END PRIVATE KEY-----|\s/g,``),i=Uint8Array.from(Buffer.from(r,`base64`));return n.fill(0),{options:t,keyArray:i}}async function ak(e,t){let{options:n,keyArray:r}=ik(t),i=lA(e,t),a=new Eg(n.client_id,n.team_id,n.kid,r,i),o=qa(),s=await a.createAuthorizationURL(o,n.scope?.split(` `)||[`name`,`email`]);return(n.scope?.split(` `)||[`name`,`email`]).some(e=>[`email`,`name`].includes(e))&&s.searchParams.set(`response_mode`,`form_post`),{redirectUrl:s.href,code:o}}async function ok(e,t,n){let{options:r,keyArray:i}=ik(t),a=XO((await new Eg(r.client_id,r.team_id,r.kid,i,lA(e,t)).validateAuthorizationCode(n)).idToken());if(!a)throw Error(`Invalid ID token`);let o=ek.parse(a.payload);return{sub:o.sub,email:o.email,given_name:o.given_name,family_name:o.family_name,name:o.name,picture:o.picture,locale:o.locale}}var sk=c({displayName:()=>ck,getRedirect:()=>uk,logoDataUri:()=>lk,validateAuthorizationCodeAndGetUser:()=>dk}),ck=`Facebook`,lk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M45%2022.5C45%2010.0736%2034.9264%200%2022.5%200C10.0736%200%200%2010.0736%200%2022.5C0%2033.7031%208.23242%2042.9785%2019.0039%2044.6953V28.9746H13.2861V22.5H19.0039V17.5391C19.0039%2011.8945%2022.3828%208.75977%2027.5391%208.75977C29.9658%208.75977%2032.5049%209.19922%2032.5049%209.19922V14.7656H29.7012C26.9414%2014.7656%2026.0156%2016.4824%2026.0156%2018.2432V22.5H32.2412L31.2012%2028.9746H26.0156V44.6953C36.7871%2042.9785%2045%2033.7031%2045%2022.5Z%22%20fill%3D%22%231877F2%22%2F%3E%3Cpath%20d%3D%22M31.2012%2028.9746L32.2412%2022.5H26.0156V18.2432C26.0156%2016.4824%2026.9414%2014.7656%2029.7012%2014.7656H32.5049V9.19922C32.5049%209.19922%2029.9658%208.75977%2027.5391%208.75977C22.3828%208.75977%2019.0039%2011.8945%2019.0039%2017.5391V22.5H13.2861V28.9746H19.0039V44.6953C20.1562%2044.8984%2021.3203%2045%2022.5%2045C23.6797%2045%2024.8438%2044.8984%2026.0156%2044.6953V28.9746H31.2012Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E`;async function uk(e,t){let{options:n}=t;if(!n?.client_id||!n.client_secret)throw Error(`Missing required authentication parameters`);let r=lA(e,t),i=new Dg(n.client_id,n.client_secret,r),a=qa();return{redirectUrl:i.createAuthorizationURL(a,n.scope?.split(` `)||[`email`]).href,code:a}}async function dk(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required authentication parameters`);let i=await new Dg(r.client_id,r.client_secret,lA(e,t)).validateAuthorizationCode(n),a=await fetch(`https://graph.facebook.com/v22.0/me?fields=id,email,name`,{headers:{Authorization:`Bearer ${i.accessToken()}`}});if(!a.ok)throw Error(`Failed to fetch user info`);let o=await a.json();return e.set(`log`,`Userinfo: ${JSON.stringify(o)}`),{sub:o.id,email:o.email,name:o.name}}var fk=c({disableEmbeddedBrowsers:()=>!0,displayName:()=>pk,getRedirect:()=>hk,logoDataUri:()=>mk,validateAuthorizationCodeAndGetUser:()=>_k,validateAuthorizationCodeAndGetUserWithRaw:()=>vk}),pk=`Google`,mk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M44.1035%2023.0123C44.1054%2021.4791%2043.9758%2019.9486%2043.716%2018.4375H22.498V27.1028H34.6507C34.4021%2028.4868%2033.8757%2029.8061%2033.1034%2030.9812C32.3311%2032.1562%2031.3289%2033.1628%2030.1571%2033.9401V39.5649H37.41C41.6567%2035.6494%2044.1035%2029.859%2044.1035%2023.0123Z%22%20fill%3D%22%234285F4%22%2F%3E%3Cpath%20d%3D%22M22.4982%2044.9997C28.5698%2044.9997%2033.6821%2043.0061%2037.4101%2039.5687L30.1573%2033.9439C28.1386%2035.3126%2025.5387%2036.0938%2022.4982%2036.0938C16.6296%2036.0938%2011.6485%2032.1377%209.86736%2026.8066H2.39575V32.6033C4.26839%2036.3297%207.13989%2039.4622%2010.6896%2041.6512C14.2394%2043.8402%2018.3277%2044.9995%2022.4982%2044.9997Z%22%20fill%3D%22%2334A853%22%2F%3E%3Cpath%20d%3D%22M9.86737%2026.8073C8.92572%2024.0138%208.92572%2020.9886%209.86737%2018.1951V12.3984H2.39576C0.820432%2015.5332%200%2018.9929%200%2022.5012C0%2026.0095%200.820432%2029.4692%202.39576%2032.604L9.86737%2026.8073Z%22%20fill%3D%22%23FBBC04%22%2F%3E%3Cpath%20d%3D%22M22.4982%208.90741C25.7068%208.85499%2028.8071%2010.0673%2031.1291%2012.2823L37.5507%205.86064C33.4788%202.03602%2028.0843%20-0.0637686%2022.4982%200.00147616C18.3277%200.00166623%2014.2394%201.16098%2010.6896%203.34999C7.13989%205.539%204.26839%208.67155%202.39575%2012.3979L9.86736%2018.1946C11.6485%2012.8635%2016.6296%208.90741%2022.4982%208.90741Z%22%20fill%3D%22%23EA4335%22%2F%3E%3C%2Fsvg%3E`;async function hk(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required Google authentication parameters`);let i=lA(e,t),a=new Mg(r.client_id,r.client_secret,i),o=qa(),s=ug(),c=a.createAuthorizationURL(o,s,r.scope?.split(` `)??[`email`,`profile`]);return n&&c.searchParams.set(`login_hint`,n),{redirectUrl:c.href,code:o,codeVerifier:s}}async function gk(e,t,n,r){let{options:i}=t;if(!i?.client_id||!i.client_secret||!r)throw Error(`Missing required authentication parameters`);let a=XO((await new Mg(i.client_id,i.client_secret,lA(e,t)).validateAuthorizationCode(n,r)).idToken());if(!a)throw Error(`Invalid ID token`);let o=ek.parse(a.payload),s=typeof o.picture==`string`?o.picture:void 0,c=typeof o.locale==`string`?o.locale:void 0;return{userinfo:{sub:o.sub,email:o.email,given_name:o.given_name,family_name:o.family_name,name:o.name,picture:s,locale:c},raw:{...a.payload}}}async function _k(e,t,n,r){let{userinfo:i}=await gk(e,t,n,r);return i}var vk=gk,yk=c({displayName:()=>bk,getRedirect:()=>Sk,logoDataUri:()=>xk,validateAuthorizationCodeAndGetUser:()=>Ck}),bk=`Vipps`,xk=`data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2245%22%20height%3D%2245%22%3E%3Cpath%20fill%3D%22%23FF5B24%22%20d%3D%22M3.5%2C8h41c1.9%2C0%2C3.5%2C1.6%2C3.5%2C3.5v25c0%2C1.9-1.6%2C3.5-3.5%2C3.5h-41C1.6%2C40%2C0%2C38.4%2C0%2C36.5v-25C0%2C9.6%2C1.6%2C8%2C3.5%2C8z%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FFFFFF%22%20d%3D%22M27.9%2C20.3c1.4%2C0%2C2.6-1%2C2.6-2.5h0c0-1.5-1.2-2.5-2.6-2.5c-1.4%2C0-2.6%2C1-2.6%2C2.5C25.3%2C19.2%2C26.5%2C20.3%2C27.9%2C20.3z%20M31.2%2C24.4c-1.7%2C2.2-3.5%2C3.8-6.7%2C3.8h0c-3.2%2C0-5.8-2-7.7-4.8c-0.8-1.2-2-1.4-2.9-0.8c-0.8%2C0.6-1%2C1.8-0.3%2C2.9%20c2.7%2C4.1%2C6.5%2C6.6%2C10.9%2C6.6c4%2C0%2C7.2-2%2C9.6-5.2c0.9-1.2%2C0.9-2.5%2C0-3.1C33.3%2C22.9%2C32.1%2C23.2%2C31.2%2C24.4z%22%2F%3E%3C%2Fsvg%3E`;async function Sk(e,t){let{options:n}=t;if(!n?.client_id||!n.client_secret)throw Error(`Missing required authentication parameters`);let r=new Sg(n.client_id,n.client_secret,lA(e,t)),i=qa(),a=r.createAuthorizationURL(`https://api.vipps.no/access-management-1.0/access/oauth2/auth`,i,n.scope?.split(` `)||[`openid`,`email`,`phoneNumber`,`name`,`address`,`birthDate`]);return a.searchParams.set(`response_type`,`code`),a.searchParams.set(`response_mode`,`query`),{redirectUrl:a.href,code:i}}async function Ck(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required authentication parameters`);let i=await new Sg(r.client_id,r.client_secret,lA(e,t)).validateAuthorizationCode(`https://api.vipps.no/access-management-1.0/access/oauth2/token`,n,null),a=XO(i.idToken());if(!a)throw Error(`Invalid ID token`);let o=ek.parse(a.payload);if(typeof o.msn!=`string`)throw Error(`msn not available in id token`);let s=await fetch(`https://api.vipps.no/vipps-userinfo-api/userinfo`,{headers:{Authorization:`Bearer ${i.accessToken()}`,"Merchant-Serial-Number":o.msn}});if(!s.ok)throw new L(400,{message:`Failed to get user from vipps`});return await s.json()}var wk=c({displayName:()=>Tk,getRedirect:()=>Dk,logoDataUri:()=>Ek,validateAuthorizationCodeAndGetUser:()=>Ok}),Tk=`GitHub`,Ek=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M22.5%200C10.074%200%200%2010.335%200%2023.077C0%2033.266%206.444%2041.895%2015.39%2044.955C16.515%2045.165%2016.935%2044.46%2016.935%2043.857C16.935%2043.32%2016.92%2041.865%2016.905%2039.99C10.65%2041.355%209.33%2036.99%209.33%2036.99C8.31%2034.32%206.825%2033.615%206.825%2033.615C4.77%2032.205%206.975%2032.235%206.975%2032.235C9.24%2032.385%2010.425%2034.59%2010.425%2034.59C12.45%2038.13%2015.75%2037.125%2017.01%2036.555C17.22%2035.07%2017.82%2034.065%2018.48%2033.51C13.455%2032.94%208.19%2030.93%208.19%2022.035C8.19%2019.5%209.075%2017.43%2010.47%2015.81C10.23%2015.24%209.435%2012.87%2010.695%209.66C10.695%209.66%2012.585%209.045%2016.875%2012.06C18.675%2011.565%2020.595%2011.31%2022.5%2011.31C24.405%2011.31%2026.325%2011.565%2028.125%2012.06C32.415%209.045%2034.305%209.66%2034.305%209.66C35.565%2012.87%2034.77%2015.24%2034.53%2015.81C35.925%2017.43%2036.81%2019.5%2036.81%2022.035C36.81%2030.96%2031.53%2032.925%2026.49%2033.48C27.33%2034.2%2028.095%2035.625%2028.095%2037.815C28.095%2040.95%2028.065%2043.47%2028.065%2043.857C28.065%2044.46%2028.485%2045.18%2029.625%2044.955C38.571%2041.88%2045%2033.252%2045%2023.077C45%2010.335%2034.926%200%2022.5%200Z%22%20fill%3D%22%23181717%22%2F%3E%3C%2Fsvg%3E`;async function Dk(e,t){let{options:n}=t;if(!n?.client_id||!n.client_secret)throw Error(`Missing required GitHub authentication parameters`);let r=lA(e,t),i=new kg(n.client_id,n.client_secret,r),a=qa();return{redirectUrl:i.createAuthorizationURL(a,n.scope?.split(` `)||[`user:email`]).href,code:a}}async function Ok(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required authentication parameters`);let i=await new kg(r.client_id,r.client_secret,lA(e,t)).validateAuthorizationCode(n),a=await fetch(`https://api.github.com/user`,{headers:{Authorization:`Bearer ${i.accessToken()}`,"User-Agent":`AuthHero`}});if(!a.ok)throw Error(`Failed to fetch user info`);let o=await a.json(),s=await fetch(`https://api.github.com/user/emails`,{headers:{Authorization:`Bearer ${i.accessToken()}`,"User-Agent":`AuthHero`}}),c=o.email;if(s.ok){let e=await s.json(),t=e.find(e=>e.primary&&e.verified)||e.find(e=>e.verified);t&&(c=t.email)}return e.set(`log`,`GitHub user: ${JSON.stringify(o)}`),{sub:o.id.toString(),email:c,name:o.name,given_name:o.name?.split(` `)[0],family_name:o.name?.split(` `).slice(1).join(` `),picture:o.avatar_url}}function kk(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required Microsoft authentication parameters`);return new Gie(t.strategy===j.WINDOWSLIVE?`consumers`:r.realms||n,r.client_id,r.client_secret,lA(e,t))}async function Ak(e,t,n,r){let i=kk(e,t,r),a=qa(),o=ug(),s=t.options?.scope?.trim(),c=s?s.split(/\s+/):[`openid`,`profile`,`email`],l=i.createAuthorizationURL(a,o,c);return n&&l.searchParams.set(`login_hint`,n),{redirectUrl:l.href,code:a,codeVerifier:o}}async function jk(e,t,n,r,i){if(!r)throw Error(`Missing required authentication parameters`);let a=XO((await kk(e,t,i).validateAuthorizationCode(n,r)).idToken());if(!a)throw Error(`Invalid ID token`);let o=ek.parse(a.payload);return e.set(`log`,`Microsoft user: ${JSON.stringify(o)}`),{userinfo:{sub:o.sub,email:o.email,given_name:o.given_name,family_name:o.family_name,name:o.name,picture:o.picture},raw:{...a.payload}}}async function Mk(e,t,n,r,i){let{userinfo:a}=await jk(e,t,n,r,i);return a}async function Nk(e,t,n,r,i){return jk(e,t,n,r,i)}var Pk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23F25022%22%20d%3D%22M0%200H21.43V21.43H0V0Z%22%2F%3E%3Cpath%20fill%3D%22%237FBA00%22%20d%3D%22M23.57%200H45V21.43H23.57V0Z%22%2F%3E%3Cpath%20fill%3D%22%2300A4EF%22%20d%3D%22M0%2023.57H21.43V45H0V23.57Z%22%2F%3E%3Cpath%20fill%3D%22%23FFB900%22%20d%3D%22M23.57%2023.57H45V45H23.57V23.57Z%22%2F%3E%3C%2Fsvg%3E`,Fk=c({displayName:()=>Ik,getRedirect:()=>zk,logoDataUri:()=>Lk,validateAuthorizationCodeAndGetUser:()=>Bk}),Ik=`Microsoft Account`,Lk=Pk,Rk=`consumers`;function zk(e,t,n){return Ak(e,t,n,Rk)}function Bk(e,t,n,r){return Mk(e,t,n,r,Rk)}var Vk=c({displayName:()=>Hk,getRedirect:()=>Gk,logoDataUri:()=>Uk,validateAuthorizationCodeAndGetUser:()=>Kk,validateAuthorizationCodeAndGetUserWithRaw:()=>qk}),Hk=`Microsoft Azure AD`,Uk=Pk,Wk=`organizations`;function Gk(e,t,n){return Ak(e,t,n,Wk)}function Kk(e,t,n,r){return Mk(e,t,n,r,Wk)}function qk(e,t,n,r){return Nk(e,t,n,r,Wk)}var Jk=class extends Sg{_clientId;_clientPassword;_redirectURI;tokenEndpointAuthMethod;constructor(e,t,n,r=`client_secret_basic`){super(e,t,n),this._clientId=e,this._clientPassword=t,this._redirectURI=n,this.tokenEndpointAuthMethod=r}async validateAuthorizationCode(e,t,n){let r=new URLSearchParams;r.set(`grant_type`,`authorization_code`),r.set(`code`,t),this._redirectURI!==null&&r.set(`redirect_uri`,this._redirectURI),n!==null&&r.set(`code_verifier`,n);let i={"Content-Type":`application/x-www-form-urlencoded`,Accept:`application/json`};this._clientPassword!==null&&this.tokenEndpointAuthMethod===`client_secret_post`?(r.set(`client_id`,this._clientId),r.set(`client_secret`,this._clientPassword)):this._clientPassword===null?r.set(`client_id`,this._clientId):i.Authorization=`Basic ${btoa(`${this._clientId}:${this._clientPassword}`)}`;let a=await fetch(e,{method:`POST`,headers:i,body:r.toString()}),o=await a.text(),s;try{s=JSON.parse(o)}catch{throw Error(`Token endpoint returned non-JSON response (${a.status}): ${o}`)}if(typeof s!=`object`||!s)throw Error(`Token endpoint returned unexpected body (${a.status}): ${o}`);if(a.status>=400){let e=s;throw new yg(typeof e.error==`string`?e.error:`http_${a.status}`,typeof e.error_description==`string`&&e.error_description?`${e.error_description} (body: ${o})`:o,null,null)}return new cg(s)}},Yk=c({displayName:()=>Xk,getRedirect:()=>Qk,logoDataUri:()=>Zk,validateAuthorizationCodeAndGetUser:()=>eA,validateAuthorizationCodeAndGetUserWithRaw:()=>tA}),Xk=`OpenID Connect`,Zk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M22.5%200C10.074%200%200%2010.074%200%2022.5S10.074%2045%2022.5%2045%2045%2034.926%2045%2022.5%2034.926%200%2022.5%200zm0%2040.5c-9.941%200-18-8.059-18-18s8.059-18%2018-18%2018%208.059%2018%2018-8.059%2018-18%2018z%22%20fill%3D%22%23F7931E%22%2F%3E%3Cpath%20d%3D%22M22.5%209c-7.456%200-13.5%206.044-13.5%2013.5S15.044%2036%2022.5%2036%2036%2029.956%2036%2022.5%2029.956%209%2022.5%209zm0%2022.5c-4.971%200-9-4.029-9-9s4.029-9%209-9%209%204.029%209%209-4.029%209-9%209z%22%20fill%3D%22%23F7931E%22%2F%3E%3C%2Fsvg%3E`;async function Qk(e,t,n){let{options:r}=t;if(!r?.client_id||!r.authorization_endpoint)throw Error(`Missing required OIDC authentication parameters`);let i=lA(e,t),a=new Jk(r.client_id,r.client_secret||null,i,r.token_endpoint_auth_method),o=dg(),s=ug(),c=r.scope?.split(` `)??[`openid`,`profile`,`email`],l=a.createAuthorizationURLWithPKCE(r.authorization_endpoint,o,Cg.S256,s,c);return n&&l.searchParams.set(`login_hint`,n),{redirectUrl:l.href,code:o,codeVerifier:s}}async function $k(e,t,n,r){let{options:i}=t;if(!i?.client_id||!i.token_endpoint)throw Error(`Missing required OIDC authentication parameters`);let a=lA(e,t),o=await new Jk(i.client_id,i.client_secret||null,a,i.token_endpoint_auth_method).validateAuthorizationCode(i.token_endpoint,n,r||null);if(o.data.id_token){let e=XO(o.idToken());if(e?.payload){let t=ek.passthrough().parse(e.payload);return{userinfo:{sub:t.sub,email:t.email,given_name:t.given_name,family_name:t.family_name,name:t.name},raw:{...e.payload}}}}if(i.userinfo_endpoint){let e=await fetch(i.userinfo_endpoint,{headers:{Authorization:`Bearer ${o.accessToken()}`}});if(!e.ok)throw Error(`Failed to fetch user info`);let t=await e.json();if(!t.sub||typeof t.sub!=`string`)throw Error(`Unable to get user identifier: userinfo response missing sub`);return{userinfo:{sub:t.sub,email:typeof t.email==`string`?t.email:void 0,given_name:typeof t.given_name==`string`?t.given_name:void 0,family_name:typeof t.family_name==`string`?t.family_name:void 0,name:typeof t.name==`string`?t.name:void 0},raw:t}}throw Error(`Unable to get user information: no ID token or userinfo endpoint`)}async function eA(e,t,n,r){let{userinfo:i}=await $k(e,t,n,r);return i}var tA=$k,nA=c({displayName:()=>rA,getRedirect:()=>aA,logoDataUri:()=>iA,validateAuthorizationCodeAndGetUser:()=>sA,validateAuthorizationCodeAndGetUserWithRaw:()=>cA}),rA=`OAuth 2.0`,iA=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M22.5%200C14.492%200%208%206.492%208%2014.5V18H5v22h35V18h-3v-3.5C37%206.492%2030.508%200%2022.5%200zm0%204c5.799%200%2010.5%204.701%2010.5%2010.5V18h-21v-3.5C12%208.701%2016.701%204%2022.5%204z%22%20fill%3D%22%236B7280%22%2F%3E%3Ccircle%20cx%3D%2222.5%22%20cy%3D%2229%22%20r%3D%223%22%20fill%3D%22%236B7280%22%2F%3E%3C%2Fsvg%3E`;async function aA(e,t,n){let{options:r}=t;if(!r?.client_id||!r.authorization_endpoint)throw Error(`Missing required OAuth2 authentication parameters`);let i=lA(e,t),a=new Sg(r.client_id,r.client_secret||null,i),o=dg(),s=ug(),c=r.scope?.split(` `)??[],l=a.createAuthorizationURLWithPKCE(r.authorization_endpoint,o,Cg.S256,s,c);return n&&l.searchParams.set(`login_hint`,n),{redirectUrl:l.href,code:o,codeVerifier:s}}async function oA(e,t,n,r){let{options:i}=t;if(!i?.client_id||!i.token_endpoint)throw Error(`Missing required authentication parameters`);let a=lA(e,t),o=await new Sg(i.client_id,i.client_secret||null,a).validateAuthorizationCode(i.token_endpoint,n,r||null);if(!i.userinfo_endpoint)throw Error(`Missing userinfo_endpoint for OAuth2 provider`);let s=await fetch(i.userinfo_endpoint,{headers:{Authorization:`Bearer ${o.accessToken()}`}});if(!s.ok)throw Error(`Failed to fetch user info`);let c=await s.json(),l=c.sub??c.id??c.user_id;if(typeof l!=`string`&&typeof l!=`number`)throw Error(`Unable to get user identifier: response missing sub, id, or user_id`);let u=String(l),d=(typeof c.given_name==`string`?c.given_name:void 0)||(typeof c.first_name==`string`?c.first_name:void 0),f=(typeof c.family_name==`string`?c.family_name:void 0)||(typeof c.last_name==`string`?c.last_name:void 0);return{userinfo:{sub:u,email:typeof c.email==`string`?c.email:void 0,given_name:d,family_name:f,name:typeof c.name==`string`?c.name:`${d||``} ${f||``}`.trim()||void 0},raw:c}}async function sA(e,t,n,r){let{userinfo:i}=await oA(e,t,n,r);return i}var cA=oA;function lA(e,t){return t.options?.callback_url??`${ka(e.env,e.var.custom_domain)}login/callback`}var uA={[j.APPLE]:tk,[j.FACEBOOK]:sk,[j.GOOGLE_OAUTH2]:fk,[j.VIPPS]:yk,[j.GITHUB]:wk,[j.WINDOWSLIVE]:Fk,[j.WAAD]:Vk,[j.OIDC]:Yk,[j.OAUTH2]:nA,[j.OKTA]:Yk};function dA(e,t){let n=e.env.STRATEGIES||{},r={...uA,...n}[t];if(!r)throw Error(`Strategy ${t} not found`);return r}var fA=new Set([j.OIDC,j.SAMLP,j.WAAD,j.ADFS,j.OAUTH2,j.OKTA]);function pA(e){return e.strategy}var mA=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%2235%22%20height%3D%2225%22%20rx%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23666%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M5%2013l17.5%2012L40%2013%22%20fill%3D%22none%22%20stroke%3D%22%23666%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E`;function hA(e){return e.options?.icon_url?e.options.icon_url:e.strategy===j.EMAIL||e.strategy===j.SMS?mA:uA[e.strategy]?.logoDataUri}var gA=`auth2`,_A=`auth0`,vA=[gA,_A];async function yA(e,t){return e.usernamePasswordProvider?e.usernamePasswordProvider({tenant_id:t}):_A}function bA(e){return e===gA||e===_A}async function xA({env:e,tenant_id:t,username:n}){return await _h({userAdapter:e.data.users,tenant_id:t,username:n,provider:gA})||_h({userAdapter:e.data.users,tenant_id:t,username:n,provider:_A})}async function SA({env:e,tenant_id:t,username:n}){return await xh({userAdapter:e.data.users,tenant_id:t,username:n,provider:gA})||xh({userAdapter:e.data.users,tenant_id:t,username:n,provider:_A})}async function CA(e,t){let{client:n,username:r,connection:i,ip:a}=t;return await xA({env:e.env,tenant_id:n.tenant.id,username:r})||Ch(e,{client:n,username:r,provider:await yA(e.env,n.tenant.id),connection:i,isSocial:!1,ip:a})}var wA=[`1F77B4`,`FF7F0E`,`2CA02C`,`D62728`,`9467BD`,`8C564B`,`E377C2`,`17BECF`,`BCBD22`,`7F7F7F`];function TA(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Math.abs(t)}function EA(e){return e.email||e.name||e.user_id||`?`}function DA(e){return wA[TA(e.length>0?e:`?`)%wA.length]??`7F7F7F`}function OA(e){let t=(e.name?.trim()||`${e.given_name??``} ${e.family_name??``}`.trim()||e.nickname?.trim()||e.email?.trim()||e.username?.trim()||``).split(/\s+/).filter(Boolean),n=t[0];if(!n)return`?`;if(t.length===1)return n.slice(0,2).toUpperCase();let r=t[t.length-1]??n;return`${n[0]??``}${r[0]??``}`.toUpperCase()||`?`}function kA(e,t){return`${e.endsWith(`/`)?e:`${e}/`}${t}`}function AA(e,t){let n=OA(t),r=DA(EA(t));return kA(e,`avatars/${encodeURIComponent(n)}.svg?bg=${r}`)}function jA(e,t){return e.picture?e:{...e,picture:AA(t,e)}}function MA(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`)}function NA(e,t){let n=/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:`#7F7F7F`,r=MA(e.slice(0,2).toUpperCase())||`?`;return[`<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" role="img">`,`<rect width="120" height="120" fill="${n}"/>`,`<text x="50%" y="50%" dy=".05em" fill="#ffffff" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="52" font-weight="600" text-anchor="middle" dominant-baseline="central">${r}</text>`,`</svg>`].join(``)}var PA=[`email`,`email_verified`,`phone_number`,`phone_verified`,`username`];function FA(e){let t={connection:e.connection,provider:e.provider,user_id:hh(e.user_id),isSocial:e.is_social};for(let n of PA)e[n]!==void 0&&e[n]!==null&&(t[n]=e[n]);return t}var IA=Ua({users:f.z.array(Ot)}),LA=f.z.object({users:f.z.array(Ot),next:f.z.string().optional().openapi({description:`Opaque cursor for the next page; absent on the last page.`})}),RA=Ua({sessions:f.z.array(Fr)}),zA=Ua({logs:f.z.array(vr)}),BA=Ua({organizations:f.z.array(Ji)}),VA=f.z.object({client_id:f.z.string(),name:f.z.string(),logo_uri:f.z.string().optional(),registration_type:f.z.enum([`manual`,`open_dcr`,`iat_dcr`]).optional(),registration_metadata:f.z.record(f.z.string(),f.z.any()).optional(),created_at:f.z.string().optional(),updated_at:f.z.string().optional()}),HA=Ua({connected_clients:f.z.array(VA)}),UA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(Ot),IA,LA])}},description:`List of users`}}}),handler:async e=>{let{page:t,per_page:n,include_totals:r,sort:i,q:a,from:o,take:s}=e.req.valid(`query`),c=P(e),l=Ea(e.env,e.var.custom_domain);if(a?.includes(`identities.profileData.email`)){let i=a.split(`=`)[1],[u]=(await e.env.data.users.list(c,{page:t,per_page:n,include_totals:r,q:`email:${i}`})).users.filter(e=>e.linked_to);if(!u)return o!==void 0||s!==void 0?e.json(LA.parse({users:[]})):e.json([]);let d=await e.env.data.users.get(c,u.linked_to);if(!d)throw new m(500,{message:`Primary account not found`});let f=Ot.parse(jA(d,l));return o!==void 0||s!==void 0?e.json(LA.parse({users:[f]})):e.json([f])}let u=[`-_exists_:linked_to`];a&&u.push(a);let d=await e.env.data.users.list(c,{page:t,per_page:n,include_totals:r,sort:Ha(i),q:u.join(` `),from:o,take:s}),p=d.users.filter(e=>!e.linked_to).map(e=>jA(e,l));return o!==void 0||s!==void 0?e.json(LA.parse({users:p,next:d.next})):r?e.json(IA.parse({users:p,length:d.length,start:d.start,limit:d.limit})):e.json(f.z.array(Ot).parse(p))}}),WA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:Ot}},description:`List of users`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),n=P(e),r=await e.env.data.users.get(n,t);if(!r)throw new m(404);if(r.linked_to)if(e.var.prefer?.has(`include-linked`))e.var.prefer.applied(`include-linked`);else throw new m(404,{message:`User is linked to another user`});return e.json(Ot.parse(jA(r,Ea(e.env,e.var.custom_domain))))}}),GA=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`delete:users`,`auth:write`]}],responses:{204:{description:`Status`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),n=P(e),r=await e.env.data.users.get(n,t);if(!await e.env.data.users.remove(n,t))throw new m(404);return await M(e,n,{type:A.SUCCESS_API_OPERATION,description:`Delete a User`,beforeState:r??void 0,targetType:`user`,targetId:t,response:{statusCode:204,body:{}}}),e.body(null,204)}}),KA=N({route:(0,f.createRoute)({tags:[`users`],method:`post`,path:`/`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:Et.extend({password:f.z.string().optional()})}}}},security:[{Bearer:[`create:users`,`auth:write`]}],responses:{201:{content:{"application/json":{schema:Ot}},description:`Status`}}}),handler:async e=>{let t=e.req.valid(`json`);e.set(`body`,t);let n=P(e),{email:r,phone_number:i,name:a,linked_to:o,email_verified:s,provider:c,connection:l,password:u,user_id:d,verify_email:f,last_ip:p,is_social:h,last_login:g,registration_completed_at:_,...v}=t,y=await e.env.data.connections.get(n,l),b=(y?ca(y.strategy):l===j.USERNAME_PASSWORD||bA(c))?await yA(e.env,n):y?pA(y):c||l,x=t.user_id,S=`${b}|${x?hh(x):mh()}`;try{let t;u&&(t=await ng(u));let c={...v,email:r,user_id:S,name:a||r||i,phone_number:i,provider:b,connection:l,linked_to:o??void 0,email_verified:s||!1,last_ip:``,is_social:!1,last_login:new Date().toISOString(),...t&&{password:t}},d=await e.env.data.users.create(n,c);e.set(`user_id`,d.user_id),await M(e,n,{type:A.SUCCESS_API_OPERATION,description:`User created`,afterState:d,targetType:`user`,targetId:d.user_id});let f=d.identities?d:{...d,identities:[FA(d)]};return e.json(Ot.parse(jA(f,Ea(e.env,e.var.custom_domain))),{status:201})}catch(e){throw e.message===`User already exists`?new m(409,{message:`User already exists`}):e}}}),qA=N({route:(0,f.createRoute)({tags:[`users`],method:`patch`,path:`/{user_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:Et.extend({verify_email:f.z.boolean(),password:f.z.string()}).partial()}}},params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{description:`Status`}}}),handler:async e=>{let{data:t}=e.env,n=e.req.valid(`json`),{user_id:r}=e.req.valid(`param`),i=P(e),{verify_email:a,password:o,connection:s,...c}=n,l=await t.users.get(i,r);if(!l)throw new m(404);if(l.linked_to)throw new m(404,{message:`User is linked to another user`});let u=r,d=l;if(s){let e=s===j.USERNAME_PASSWORD,n=t=>e?bA(t.provider):t.connection===s,a=e&&l.provider===`auth0`?await t.users.list(i,{page:0,per_page:100,include_totals:!1,q:`linked_to:${r}`}):null,o=a?.users.find(e=>e.provider===`auth2`&&n(e));if(o)u=o.user_id,d=o;else if(n(l))u=r,d=l;else{let e=(a??await t.users.list(i,{page:0,per_page:100,include_totals:!1,q:`linked_to:${r}`})).users.find(n);if(!e)throw new m(404,{message:`No identity found with connection: ${s}`});u=e.user_id,d=e}}if(c.email&&c.email!==d.email){let t=await gh(e.env.data.users,i,c.email);if(t.length&&t.some(e=>e.user_id!==u))throw new m(409,{message:`Another user with the same email address already exists.`})}if(c.phone_number&&c.phone_number!==d.phone_number){let{users:e}=await t.users.list(i,{page:0,per_page:10,include_totals:!1,q:`phone_number:${c.phone_number}`});if(e.some(e=>e.user_id!==u))throw new m(409,{message:`Another user with the same phone number already exists.`})}if(await e.env.data.users.update(i,u,c),o){let e;if(s)if(s===j.USERNAME_PASSWORD)e={provider:d.provider,user_id:hh(u)};else throw new m(400,{message:`Cannot set password for connection: ${s}`});else if(e=l.identities?.find(e=>e.connection===j.USERNAME_PASSWORD&&e.provider===`auth2`)??l.identities?.find(e=>bA(e.provider))??l.identities?.find(e=>e.connection===j.USERNAME_PASSWORD),!e)throw new m(400,{message:`User does not have a password identity`});let n=`${e.provider}|${e.user_id}`,r=await t.passwords.get(i,n);r&&await t.passwords.update(i,{id:r.id,user_id:n,password:r.password,algorithm:r.algorithm,is_current:!1});let{hash:a,algorithm:c}=await ng(o);await t.passwords.create(i,{user_id:n,password:a,algorithm:c,is_current:!0})}let f=await e.env.data.users.get(i,r);if(!f)throw new m(500);return await M(e,i,{type:A.SUCCESS_API_OPERATION,description:`Update a User`,beforeState:l,afterState:f,targetType:`user`,targetId:r,body:n,response:{statusCode:200,body:f}}),e.json(Ot.parse(jA(f,Ea(e.env,e.var.custom_domain))))}}),JA=N({route:(0,f.createRoute)({tags:[`users`],method:`post`,path:`/{user_id}/identities`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:f.z.union([f.z.object({link_with:f.z.string()}),f.z.object({user_id:f.z.string(),provider:f.z.string(),connection:f.z.string().optional()})])}}},params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{201:{content:{"application/json":{schema:f.z.array(Ct)}},description:`Status`}}}),handler:async e=>{let t=e.req.valid(`json`),{user_id:n}=e.req.valid(`param`),r=P(e),i=`link_with`in t?t.link_with:t.user_id;if(i===n)throw new m(400,{message:`Cannot link a user to itself.`});let[a,o]=await Promise.all([e.env.data.users.get(r,n),e.env.data.users.get(r,i)]);if(!a||!o)throw new m(400,{message:`Linking an inexistent identity is not allowed.`});await e.env.data.users.update(r,i,{linked_to:n});let s=[a,...(await e.env.data.users.list(r,{page:0,per_page:10,include_totals:!1,q:`linked_to:${n}`})).users].map(FA);return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Link a user identity`,targetType:`identity`,targetId:n}),e.json(f.z.array(Ct).parse(s),{status:201})}}),YA=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}/identities/{provider}/{linked_user_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string(),provider:f.z.string(),linked_user_id:f.z.string()})},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{content:{"application/json":{schema:f.z.array(Ot)}},description:`Status`}}}),handler:async e=>{let{user_id:t,provider:n,linked_user_id:r}=e.req.valid(`param`),i=P(e);await e.env.data.users.unlink(i,t,n,r);let a=await e.env.data.users.get(i,t);if(!a)throw new m(404);return await M(e,i,{type:A.SUCCESS_API_OPERATION,description:`Unlink a user identity`,targetType:`identity`,targetId:t}),e.json([Ot.parse(jA(a,Ea(e.env,e.var.custom_domain)))])}}),XA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/connected-clients`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`read:clients`,`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(VA),HA])}},description:`List of clients connected to this user (created via IAT-gated DCR).`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{include_totals:n,page:r,per_page:i}=e.req.valid(`query`),a=P(e),o=await e.env.data.clients.list(a,{page:r,per_page:i,include_totals:n,q:`owner_user_id:"${t}"`}),s=o.clients.filter(e=>e.client_metadata?.status!==`deleted`).map(e=>VA.parse(e));return n?e.json({connected_clients:s,start:o.totals?.start??0,limit:o.totals?.limit??0,length:s.length}):e.json(s)}}),ZA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/sessions`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(Fr),RA])}},description:`List of sessions`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{include_totals:n,page:r,per_page:i}=e.req.valid(`query`),a=P(e),o=await e.env.data.sessions.list(a,{page:r,per_page:i,include_totals:n,q:`user_id:${t}`});return e.json(Wa(n,o,`sessions`))}}),QA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/logs`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`read:logs`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(vr),zA])}},description:`List of logs across the user and any linked accounts`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{include_totals:n,page:r,per_page:i,sort:a,q:o}=e.req.valid(`query`),s=P(e),c=await e.env.data.users.get(s,t);if(!c||c.linked_to)throw new m(404);let l=[t,...(await e.env.data.users.list(s,{page:0,per_page:100,include_totals:!1,q:`linked_to:${t}`})).users.map(e=>e.user_id)].map(e=>`user_id:"${e}"`).join(` OR `),u=l;if(o){let e=o.trim().replace(/^(AND|OR)\s+/i,``);if(/\sOR\s/i.test(e))throw new m(400,{message:`q must not contain top-level OR`});e&&(u=`${l} ${e}`)}let d=await e.env.data.logs.list(s,{page:r,per_page:i,include_totals:n,sort:Ha(a),q:u});return e.json(Wa(n,d,`logs`))}}),$A=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/permissions`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()}),query:Va},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:Li}},description:`User permissions`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{page:n,per_page:r,sort:i,q:a}=e.req.valid(`query`),o=P(e);if(!await e.env.data.users.get(o,t))throw new m(404,{message:`User not found`});let s=await e.env.data.userPermissions.list(o,t,{page:n,per_page:r,include_totals:!1,sort:Ha(i),q:a});return e.json(s)}}),ej=N({route:(0,f.createRoute)({tags:[`users`],method:`post`,path:`/{user_id}/permissions`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:f.z.object({permissions:f.z.array(f.z.object({permission_name:f.z.string(),resource_server_identifier:f.z.string(),organization_id:f.z.string().optional()}))})}}}},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{201:{description:`Permissions assigned to user`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{permissions:n}=e.req.valid(`json`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});for(let i of n)if(!await e.env.data.userPermissions.create(r,t,{user_id:t,resource_server_identifier:i.resource_server_identifier,permission_name:i.permission_name,organization_id:i.organization_id},i.organization_id))throw new m(500,{message:`Failed to assign permissions to user`});return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Assign permissions to a user`,targetType:`user_permission`,targetId:t}),e.json({message:`Permissions assigned successfully`},{status:201})}}),tj=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}/permissions`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:f.z.object({permissions:f.z.array(f.z.object({permission_name:f.z.string(),resource_server_identifier:f.z.string(),organization_id:f.z.string().optional()}))})}}}},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{description:`Permissions removed from user`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{permissions:n}=e.req.valid(`json`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});for(let i of n)if(!await e.env.data.userPermissions.remove(r,t,{resource_server_identifier:i.resource_server_identifier,permission_name:i.permission_name},i.organization_id))throw new m(500,{message:`Failed to remove permissions from user`});return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Remove permissions from a user`,targetType:`user_permission`,targetId:t}),e.json({message:`Permissions removed successfully`})}}),nj=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/roles`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:Ui}},description:`User roles`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),n=P(e);if(!await e.env.data.users.get(n,t))throw new m(404,{message:`User not found`});let r=await e.env.data.userRoles.list(n,t,void 0,``);return e.json(r)}}),rj=N({route:(0,f.createRoute)({tags:[`users`],method:`post`,path:`/{user_id}/roles`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string()}),body:{content:{"application/json":{schema:f.z.object({roles:f.z.array(f.z.string())})}}}},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{201:{description:`Roles assigned to user`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{roles:n}=e.req.valid(`json`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});for(let i of n)if(!await e.env.data.userRoles.create(r,t,i,``))throw new m(500,{message:`Failed to assign roles to user`});return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Assign roles to a user`,targetType:`user_role`,targetId:t}),e.json({message:`Roles assigned successfully`},{status:201})}}),ij=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}/roles`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string()}),body:{content:{"application/json":{schema:f.z.object({roles:f.z.array(f.z.string())})}}}},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{description:`Roles removed from user`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{roles:n}=e.req.valid(`json`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});for(let i of n)if(!await e.env.data.userRoles.remove(r,t,i,``))throw new m(500,{message:`Failed to remove roles from user`});return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Remove roles from a user`,targetType:`user_role`,targetId:t}),e.json({message:`Roles removed successfully`})}}),aj=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/organizations`,request:{params:f.z.object({user_id:f.z.string()}),query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([BA,f.z.array(Ji)])}},description:`List of user organizations`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{page:n,per_page:r,include_totals:i,sort:a}=e.req.valid(`query`),o=P(e);if(!await e.env.data.users.get(o,t))throw new m(404,{message:`User not found`});let s=await e.env.data.userOrganizations.listUserOrganizations(o,t,{page:n,per_page:r,sort:Ha(a)});return i?e.json({organizations:s.organizations,start:s.start,limit:s.limit,length:s.length}):e.json(s.organizations)}}),oj=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}/organizations/{organization_id}`,request:{params:f.z.object({user_id:f.z.string(),organization_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{description:`User removed from organization successfully`}}}),handler:async e=>{let{user_id:t,organization_id:n}=e.req.valid(`param`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});let i=(await e.env.data.userOrganizations.list(r,{q:`user_id:${t}`,per_page:100})).userOrganizations.find(e=>e.organization_id===n);if(!i)throw new m(404,{message:`User is not a member of this organization`});return await e.env.data.userOrganizations.remove(r,i.id),await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Remove a user from an organization`,targetType:`user_organization`,targetId:t}),e.json({message:`User removed from organization successfully`})}}),sj=new f.OpenAPIHono().openapiRoutes([UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj]),cj={RSA:[`e`,`kty`,`n`],EC:[`crv`,`kty`,`x`,`y`],oct:[`k`,`kty`],OKP:[`crv`,`kty`,`x`]};function lj(e){switch(e){case`RSA`:return{name:`RSASSA-PKCS1-v1_5`,hash:`SHA-256`,publicExponent:new Uint8Array([1,0,1]),modulusLength:2048};case`EC-P-256`:return{name:`ECDSA`,namedCurve:`P-256`};case`EC-P-384`:return{name:`ECDSA`,namedCurve:`P-384`};case`EC-P-521`:return{name:`ECDSA`,namedCurve:`P-521`}}}function uj(e){switch(e){case`RSA`:return{name:`RSASSA-PKCS1-v1_5`,hash:`SHA-256`,publicExponent:new Uint8Array([1,0,1]),modulusLength:2048};case`EC-P-256`:return{name:`ECDSA`,hash:`SHA-256`};case`EC-P-384`:return{name:`ECDSA`,hash:`SHA-384`};case`EC-P-521`:return{name:`ECDSA`,hash:`SHA-512`}}}async function dj(e){let t=e.keyType??`RSA`;if(t===`EC-P-521`&&Aa()===`workerd`)throw Error(`EC-P-521 signing keys are not supported on Cloudflare Workers: workerd's WebCrypto implementation cannot generate the P-521 curve. Use RSA, EC-P-256, or EC-P-384 instead.`);let n=await crypto.subtle.generateKey(lj(t),!0,[`sign`,`verify`]),r=qa(),i=Ta(new TextEncoder().encode(r)),a=await uO.createSelfSigned({serialNumber:i,name:e.name,notBefore:new Date,notAfter:new Date(Date.now()+365*24*60*60*1e3),signingAlgorithm:uj(t),keys:n,extensions:[new uD(!0,2,!0),new fD([`1.3.6.1.5.5.7.3.1`],!0),new mD(pD.keyCertSign|pD.cRLSign,!0),await hD.create(n.publicKey)]}),o=await crypto.subtle.exportKey(`pkcs8`,n.privateKey),s=a.toString(`pem`),c=await pj(a);return{kid:c,cert:s,thumbprint:Ta(await a.getThumbprint()),fingerprint:c,pkcs7:fj(`PRIVATE`,o),type:`jwt_signing`}}function fj(e,t){let n=ba(new Uint8Array(t)),r=`-----BEGIN ${e} KEY-----\r\n`,i=0;for(;i<n.length;)i+64<=n.length?r+=n.substr(i,64)+`\r
379
+ `);case`asn`:return G.toString(t);case`hex`:return R.Convert.ToHex(t);case`base64`:return R.Convert.ToBase64(t);case`base64url`:return R.Convert.ToBase64Url(t);case`text`:return kE.serialize(this.toTextObject());default:throw TypeError(`Argument 'format' is unsupported value`)}}toTextObject(){let e=G.parse(this.export(`raw`),OS),t=G.parse(e.content,uC);return new DE(`X509Certificates`,{"Content Type":OE.toString(e.contentType),Content:new DE(``,{Version:`${Fx[t.version]} (${t.version})`,Certificates:new DE(``,{Certificate:this.map(e=>e.toTextObject())})})})}},cO=class{constructor(e={}){this.certificates=[],e.certificates&&(this.certificates=e.certificates)}async build(e,t=FE.get()){let n=new sO(e),r=e;for(;r=await this.findIssuer(r,t);){let e=await r.getThumbprint(t);for(let r of n)if((0,R.isEqual)(e,await r.getThumbprint(t)))throw Error(`Cannot build a certificate chain. Circular dependency.`);n.push(r)}return n}async findIssuer(e,t=FE.get()){if(!await e.isSelfSigned(t)){let n=e.getExtension(ub);for(let r of this.certificates)if(r.subject===e.issuer){if(n){if(n.keyId){let e=r.getExtension(px);if(e&&e.keyId!==n.keyId)continue}else if(n.certId){let e=r.getExtension(cx);if(e&&!(n.certId.serialNumber===r.serialNumber&&(0,R.isEqual)(G.serialize(n.certId.name),G.serialize(e))))continue}}try{let n={...r.publicKey.algorithm,...e.signatureAlgorithm},i=await r.publicKey.export(n,[`verify`],t);if(!await e.verify({publicKey:i,signatureOnly:!0},t))continue}catch{continue}return r}}return null}};function lO(e,t=FE.get()){let n=R.BufferSourceConverter.toUint8Array(R.Convert.FromHex(e||``)),r=n&&n.length&&n.some(e=>e>0)?new Uint8Array(n):void 0;r||=t.getRandomValues(new Uint8Array(16));let i=0;for(;i<r.length-1&&r[i]===0;)i++;if(r=r.slice(i),r[0]>127){let e=new Uint8Array(r.length+1);e[0]=0,e.set(r,1),r=e}return r.buffer}var uO=class{static async createSelfSigned(e,t=FE.get()){if(!e.keys.privateKey)throw Error(`Bad field 'keys' in 'params' argument. 'privateKey' is empty`);if(!e.keys.publicKey)throw Error(`Bad field 'keys' in 'params' argument. 'publicKey' is empty`);return this.create({serialNumber:e.serialNumber,subject:e.name,issuer:e.name,notBefore:e.notBefore,notAfter:e.notAfter,publicKey:e.keys.publicKey,signingKey:e.keys.privateKey,signingAlgorithm:e.signingAlgorithm,extensions:e.extensions},t)}static async create(e,t=FE.get()){let n;n=e.publicKey instanceof sD?e.publicKey.rawData:`publicKey`in e.publicKey?e.publicKey.publicKey.rawData:R.BufferSourceConverter.isBufferSource(e.publicKey)?e.publicKey:await t.subtle.exportKey(`spki`,e.publicKey);let r=lO(e.serialNumber,t),i=e.notBefore||new Date,a=e.notAfter||new Date(i.getTime()+31536e6),o=new kx({tbsCertificate:new Ox({version:Dx.v3,serialNumber:r,validity:new Cx({notBefore:i,notAfter:a}),extensions:new Ex(e.extensions?.map(e=>G.parse(e.rawData,Tx))||[]),subjectPublicKeyInfo:G.parse(n,xx)})});if(e.subject){let t=e.subject instanceof HE?e.subject:new HE(e.subject);o.tbsCertificate.subject=G.parse(t.toArrayBuffer(),Ky)}if(e.issuer){let t=e.issuer instanceof HE?e.issuer:new HE(e.issuer);o.tbsCertificate.issuer=G.parse(t.toArrayBuffer(),Ky)}let s={hash:`SHA-256`},c=`signingKey`in e?{...s,...e.signingAlgorithm,...e.signingKey.algorithm}:{...s,...e.signingAlgorithm},l=Mw.resolve(KT);o.tbsCertificate.signature=o.signatureAlgorithm=l.toAsnAlgorithm(c);let u=G.serialize(o.tbsCertificate),d=`signingKey`in e?await t.subtle.sign(c,e.signingKey,u):e.signature,f=Mw.resolveAll(OD).reverse(),p=null;for(let e of f)if(p=e.toAsnSignature(c,d),p)break;if(!p)throw Error(`Cannot convert ASN.1 signature value to WebCrypto format`);return o.signatureValue=p,new oO(G.serialize(o))}},dO,fO,pO,mO,hO,gO;(function(e){e[e.unspecified=0]=`unspecified`,e[e.keyCompromise=1]=`keyCompromise`,e[e.cACompromise=2]=`cACompromise`,e[e.affiliationChanged=3]=`affiliationChanged`,e[e.superseded=4]=`superseded`,e[e.cessationOfOperation=5]=`cessationOfOperation`,e[e.certificateHold=6]=`certificateHold`,e[e.removeFromCRL=8]=`removeFromCRL`,e[e.privilegeWithdrawn=9]=`privilegeWithdrawn`,e[e.aACompromise=10]=`aACompromise`})(gO||={});var _O=class extends jE{get serialNumber(){return q(this,dO,`f`)||Py(this,dO,R.Convert.ToHex(this.asn.userCertificate),`f`),q(this,dO,`f`)}get revocationDate(){return q(this,fO,`f`)||Py(this,fO,this.asn.revocationDate.getTime(),`f`),q(this,fO,`f`)}get reason(){return q(this,pO,`f`)===void 0&&this.extensions,q(this,pO,`f`)}get invalidity(){return q(this,mO,`f`)===void 0&&this.extensions,q(this,mO,`f`)}get extensions(){return q(this,hO,`f`)||(Py(this,hO,[],`f`),this.asn.crlEntryExtensions&&Py(this,hO,this.asn.crlEntryExtensions.map(e=>{let t=_D.create(G.serialize(e));switch(t.type){case poe:q(this,pO,`f`)===void 0&&Py(this,pO,G.parse(t.value,Vb).reason,`f`);break;case boe:q(this,mO,`f`)===void 0&&Py(this,mO,G.parse(t.value,Kb).value,`f`);break}return t}),`f`)),q(this,hO,`f`)}constructor(...e){let t;if(R.BufferSourceConverter.isBufferSource(e[0])?t=R.BufferSourceConverter.toArrayBuffer(e[0]):typeof e[0]==`string`?t=G.serialize(new Ax({userCertificate:lO(e[0]),revocationDate:new Sx(e[1]),crlEntryExtensions:e[2]})):e[0]instanceof Ax&&(t=e[0]),!t)throw TypeError(`Cannot create X509CrlEntry instance. Wrong constructor arguments.`);super(t,Ax),dO.set(this,void 0),fO.set(this,void 0),pO.set(this,void 0),mO.set(this,void 0),hO.set(this,void 0)}onInit(e){}};dO=new WeakMap,fO=new WeakMap,pO=new WeakMap,mO=new WeakMap,hO=new WeakMap;var vO,yO,bO,xO,SO,CO,wO,TO=class extends oD{get version(){return this.asn.tbsCertList.version}get signatureAlgorithm(){if(!q(this,yO,`f`)){let e=Mw.resolve(KT);Py(this,yO,e.toWebAlgorithm(this.asn.signatureAlgorithm),`f`)}return q(this,yO,`f`)}get signature(){return this.asn.signature}get issuer(){return this.issuerName.toString()}get issuerName(){return q(this,bO,`f`)||Py(this,bO,new HE(this.asn.tbsCertList.issuer),`f`),q(this,bO,`f`)}get thisUpdate(){if(!q(this,xO,`f`)){let e=this.asn.tbsCertList.thisUpdate.getTime();if(!e)throw Error(`Cannot get 'thisUpdate' value`);Py(this,xO,e,`f`)}return q(this,xO,`f`)}get nextUpdate(){return q(this,SO,`f`)===void 0&&Py(this,SO,this.asn.tbsCertList.nextUpdate?.getTime()||void 0,`f`),q(this,SO,`f`)}get entries(){return q(this,CO,`f`)||Py(this,CO,this.asn.tbsCertList.revokedCertificates?.map(e=>new _O(e))||[],`f`),q(this,CO,`f`)}get extensions(){return q(this,wO,`f`)||(Py(this,wO,[],`f`),this.asn.tbsCertList.crlExtensions&&Py(this,wO,this.asn.tbsCertList.crlExtensions.map(e=>_D.create(G.serialize(e))),`f`)),q(this,wO,`f`)}get tbs(){return q(this,vO,`f`)||Py(this,vO,this.asn.tbsCertListRaw||G.serialize(this.asn.tbsCertList),`f`),q(this,vO,`f`)}get tbsCertListSignatureAlgorithm(){return this.asn.tbsCertList.signature}get certListSignatureAlgorithm(){return this.asn.signatureAlgorithm}constructor(e){super(e,oD.isAsnEncoded(e)?Mx:void 0),this.tag=aD.CrlTag,vO.set(this,void 0),yO.set(this,void 0),bO.set(this,void 0),xO.set(this,void 0),SO.set(this,void 0),CO.set(this,void 0),wO.set(this,void 0)}onInit(e){}getExtension(e){for(let t of this.extensions)if(typeof e==`string`){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>typeof e==`string`?t.type===e:t instanceof e)}async verify(e,t=FE.get()){if(!this.certListSignatureAlgorithm.isEqual(this.tbsCertListSignatureAlgorithm))throw Error(`algorithm identifier in the sequence tbsCertList and CertificateList mismatch`);let n,r,i=e.publicKey;try{i instanceof oO?(n={...i.publicKey.algorithm,...i.signatureAlgorithm},r=await i.publicKey.export(n,[`verify`])):i instanceof sD?(n={...i.algorithm,...this.signatureAlgorithm},r=await i.export(n,[`verify`])):(n={...i.algorithm,...this.signatureAlgorithm},r=i)}catch{return!1}let a=Mw.resolveAll(OD).reverse(),o=null;for(let e of a)if(o=e.toWebSignature(n,this.signature),o)break;if(!o)throw Error(`Cannot convert ASN.1 signature value to WebCrypto format`);return await t.subtle.verify(this.signatureAlgorithm,r,o,this.tbs)}async getThumbprint(...e){let t,n=`SHA-1`;return e[0]&&(e[0].subtle?t=e[0]:(n=e[0]||n,t=e[1])),t??=FE.get(),await t.subtle.digest(n,this.rawData)}findRevoked(e){let t=lO(typeof e==`string`?e:e.serialNumber);for(let e of this.asn.tbsCertList.revokedCertificates||[])if(R.BufferSourceConverter.isEqual(e.userCertificate,t))return new _O(G.serialize(e));return null}};vO=new WeakMap,yO=new WeakMap,bO=new WeakMap,xO=new WeakMap,SO=new WeakMap,CO=new WeakMap,wO=new WeakMap,_D.register(pb,uD),_D.register(Ub,fD),_D.register(Xb,mD),_D.register(px,hD),_D.register(ub,lD),_D.register(cx,gD),_D.register(jb,yD),_D.register(sb,bD),_D.register(Jb,CD),DD.register(hT,TD),DD.register(gT,ED),Mw.registerSingleton(OD,kD),Mw.registerSingleton(OD,ND),ND.namedCurveSize.set(`P-256`,32),ND.namedCurveSize.set(`K-256`,32),ND.namedCurveSize.set(`P-384`,48),ND.namedCurveSize.set(`P-521`,66);var EO={"P-256":`ES256`,"P-384":`ES384`,"P-521":`ES512`},DO={RS256:`SHA-256`,RS384:`SHA-384`,RS512:`SHA-512`},OO=new Set([`RS256`,`RS384`,`RS512`,`ES256`,`ES384`,`ES512`]);function kO(e){return typeof e==`string`&&OO.has(e)}function AO(e){if(kO(e.alg)){if(e.kty===`RSA`&&e.alg.startsWith(`RS`))return e.alg;if(e.kty===`EC`&&e.alg.startsWith(`ES`)){let t=e.crv&&e.crv in EO?EO[e.crv]:void 0;if(t&&t!==e.alg)throw Error(`EC alg/curve mismatch: curve ${e.crv} requires ${t}, got ${e.alg}`);return e.alg}}if(e.kty===`RSA`)return`RS256`;if(e.kty===`EC`){if(!e.crv||!(e.crv in EO))throw Error(`Unsupported EC curve: ${e.crv??`(missing)`}`);return EO[e.crv]}throw Error(`Unsupported JWK kty: ${e.kty}`)}function jO(e,t){if(e.kty===`RSA`){let e=DO[t];if(!e)throw Error(`Unsupported RSA alg: ${t}`);return{name:`RSASSA-PKCS1-v1_5`,hash:e}}if(e.kty===`EC`){if(!e.crv||!(e.crv in EO))throw Error(`Unsupported EC curve: ${e.crv??`(missing)`}`);let n=EO[e.crv];if(t!==n)throw Error(`EC alg/curve mismatch: curve ${e.crv} requires ${n}, got ${t}`);return{name:`ECDSA`,namedCurve:e.crv}}throw Error(`Unsupported JWK kty: ${e.kty}`)}var MO=[`RS256`,`ES256`,`ES384`,`ES512`];async function NO(e){let t=await new oO(e).publicKey.export();return AO(await crypto.subtle.exportKey(`jwk`,t))}function PO(e){let t=new Date;return e.filter(e=>!e.revoked_at||new Date(e.revoked_at)>t).sort((e,t)=>{let n=e.current_since?new Date(e.current_since).getTime():0,r=t.current_since?new Date(t.current_since).getTime():0;return r===n?t.kid.localeCompare(e.kid):r-n})}var FO=/^[A-Za-z0-9._-]+$/;function IO(e,t){if(!FO.test(e))throw Error(`Invalid ${t}: must match ${FO}`)}var LO=1e3;async function RO(e,t,n){IO(t,`tenant_id`),IO(n,`type`);let{signingKeys:r}=await e.list({q:`type:${n} AND tenant_id:${t}`,sort:{sort_by:`created_at`,sort_order:`desc`},per_page:LO});return PO(r)}async function zO(e,t=`jwt_signing`){IO(t,`type`);let{signingKeys:n}=await e.list({q:`type:${t} AND -_exists_:tenant_id`,sort:{sort_by:`created_at`,sort_order:`desc`},per_page:LO});return PO(n)}async function BO(e,t){return e?typeof e==`string`?e:e({tenant_id:t}):`control-plane`}async function VO(e,t,n,r){let i=r.type??`jwt_signing`;if(await BO(n,t)===`control-plane`){let t=await zO(e,i);if(r.purpose===`sign`){let e=t[0];return e?[e]:[]}return t}let[a,o]=await Promise.all([RO(e,t,i),zO(e,i)]);if(r.purpose===`sign`){let e=a[0]??o[0];return e?[e]:[]}let s=new Set,c=[];for(let e of[...a,...o])s.has(e.kid)||(s.add(e.kid),c.push(e));return c}async function HO(e){return Promise.all(e.map(async e=>{let t=await new oO(e.cert).publicKey.export(),n=await crypto.subtle.exportKey(`jwk`,t),r=n.alg??AO(n);return ir.parse({...n,alg:r,use:`sig`,kid:e.kid})}))}async function UO(e,t,n){return HO(await VO(e.keys,t,n,{purpose:`publish`}))}async function WO(e,t,n){return t?UO(e,t,n):HO(await zO(e.keys))}var GO={ES256:`P-256`,ES384:`P-384`,ES512:`P-521`};function KO(e){if(!(e instanceof Uint8Array))return e;let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}function qO(e){return`SHA-${e.slice(2)}`}async function JO(e,t){let n=KO(t);if(e.startsWith(`HS`))return crypto.subtle.importKey(`raw`,n,{name:`HMAC`,hash:qO(e)},!1,[`sign`]);if(e.startsWith(`RS`))return crypto.subtle.importKey(`pkcs8`,n,{name:`RSASSA-PKCS1-v1_5`,hash:qO(e)},!1,[`sign`]);let r=GO[e];if(!r)throw Error(`Unsupported JWT signing alg: ${e}`);return crypto.subtle.importKey(`pkcs8`,n,{name:`ECDSA`,namedCurve:r},!1,[`sign`])}async function YO(e,t,n,r={}){let i={alg:e,typ:`JWT`,...r.headers},a={...n};r.expiresInSeconds!==void 0&&(a.exp=Math.floor(Date.now()/1e3)+r.expiresInSeconds),r.includeIssuedTimestamp===!0&&(a.iat=Math.floor(Date.now()/1e3));let o=new TextEncoder,s=ga(o.encode(JSON.stringify(i))),c=ga(o.encode(JSON.stringify(a))),l=o.encode(`${s}.${c}`),u=await JO(e,t),d=await crypto.subtle.sign(e.startsWith(`ES`)?{name:`ECDSA`,hash:qO(e)}:u.algorithm.name,u,l);return`${s}.${c}.${ga(new Uint8Array(d))}`}function XO(e){try{let{header:t,payload:n}=t_(e);return typeof t!=`object`||!t||typeof n!=`object`||!n?null:{header:t,payload:n}}catch{return null}}function ZO(e){switch(e){case`RS256`:case`RS384`:case`RS512`:case`ES256`:case`ES384`:case`ES512`:return e;default:throw new L(401,{message:`Unsupported JWS alg: ${e??`(missing)`}`})}}var QO=class extends L{constructor(){super(403,{message:`Invalid JWT signature`}),this.name=`JwtExpiredError`}};async function $O(e,t,n={}){try{let{header:r}=t_(t),i=ZO(r?.alg),a=(await WO(e.env.data,e.var.tenant_id,e.env.signingKeyMode)).find(e=>e.kid===r.kid);if(!a)throw new L(401,{message:`No matching kid found`});if(a.alg!==i)throw new L(401,{message:`alg mismatch between token header and JWK`});let o=jO(a,i),s=await e_(t,await crypto.subtle.importKey(`jwk`,a,o,!1,[`verify`]),i);if(!n.skipIssuerCheck){let t=Ea(e.env,e.var.custom_domain),r=n.additionalIssuers??[];if(s.iss!==t&&!r.includes(s.iss))throw new L(401,{message:`Invalid issuer`})}return s}catch(e){throw e instanceof m?e:e instanceof Error&&e.name===`JwtTokenExpired`?new QO:new L(403,{message:`Invalid JWT signature`})}}var ek=f.z.object({iss:f.z.string().url(),sub:f.z.string(),aud:f.z.union([f.z.string(),f.z.array(f.z.string())]),exp:f.z.number(),email:f.z.string().optional(),given_name:f.z.string().optional(),family_name:f.z.string().optional(),name:f.z.string().optional(),iat:f.z.number(),auth_time:f.z.number().optional(),nonce:f.z.string().optional(),acr:f.z.string().optional(),amr:f.z.array(f.z.string()).optional(),azp:f.z.string().optional(),at_hash:f.z.string().optional(),c_hash:f.z.string().optional()}).passthrough();ek.omit({iat:!0,auth_time:!0,nonce:!0,acr:!0,amr:!0,azp:!0,at_hash:!0,c_hash:!0});var tk=c({displayName:()=>nk,getRedirect:()=>ak,logoDataUri:()=>rk,validateAuthorizationCodeAndGetUser:()=>ok}),nk=`Apple`,rk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M45%200H0V45H45V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M23.5344%2010.3846C25.5313%2010.3846%2028.0344%209.01144%2029.525%207.18055C30.875%205.5213%2031.8594%203.20407%2031.8594%200.886839C31.8594%200.572154%2031.8313%200.25747%2031.775%200C29.5531%200.0858233%2026.8813%201.51621%2025.2781%203.43293C24.0125%204.89193%2022.8594%207.18055%2022.8594%209.52638C22.8594%209.86968%2022.9156%2010.213%2022.9438%2010.3274C23.0844%2010.356%2023.3094%2010.3846%2023.5344%2010.3846ZM16.5031%2045C19.2313%2045%2020.4406%2043.1405%2023.8438%2043.1405C27.3031%2043.1405%2028.0625%2044.9428%2031.1%2044.9428C34.0813%2044.9428%2036.0781%2042.1392%2037.9625%2039.3929C40.0719%2036.246%2040.9438%2033.1564%2041%2033.0134C40.8031%2032.9561%2035.0938%2030.5817%2035.0938%2023.9161C35.0938%2018.1373%2039.5938%2015.534%2039.8469%2015.3338C36.8656%2010.9854%2032.3375%2010.8709%2031.1%2010.8709C27.7531%2010.8709%2025.025%2012.9307%2023.3094%2012.9307C21.4531%2012.9307%2019.0063%2010.9854%2016.1094%2010.9854C10.5969%2010.9854%205%2015.6198%205%2024.3738C5%2029.8093%207.08125%2035.5594%209.64063%2039.2784C11.8344%2042.4253%2013.7469%2045%2016.5031%2045Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E`;function ik(e){let{options:t}=e;if(!t||!t.client_id||!t.team_id||!t.kid||!t.app_secret)throw Error(`Missing required Apple authentication parameters`);let n=Buffer.from(t.app_secret,`utf-8`),r=n.toString().replace(/-----BEGIN PRIVATE KEY-----|-----END PRIVATE KEY-----|\s/g,``),i=Uint8Array.from(Buffer.from(r,`base64`));return n.fill(0),{options:t,keyArray:i}}async function ak(e,t){let{options:n,keyArray:r}=ik(t),i=lA(e,t),a=new Eg(n.client_id,n.team_id,n.kid,r,i),o=qa(),s=await a.createAuthorizationURL(o,n.scope?.split(` `)||[`name`,`email`]);return(n.scope?.split(` `)||[`name`,`email`]).some(e=>[`email`,`name`].includes(e))&&s.searchParams.set(`response_mode`,`form_post`),{redirectUrl:s.href,code:o}}async function ok(e,t,n){let{options:r,keyArray:i}=ik(t),a=XO((await new Eg(r.client_id,r.team_id,r.kid,i,lA(e,t)).validateAuthorizationCode(n)).idToken());if(!a)throw Error(`Invalid ID token`);let o=ek.parse(a.payload);return{sub:o.sub,email:o.email,given_name:o.given_name,family_name:o.family_name,name:o.name,picture:o.picture,locale:o.locale}}var sk=c({displayName:()=>ck,getRedirect:()=>uk,logoDataUri:()=>lk,validateAuthorizationCodeAndGetUser:()=>dk}),ck=`Facebook`,lk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M45%2022.5C45%2010.0736%2034.9264%200%2022.5%200C10.0736%200%200%2010.0736%200%2022.5C0%2033.7031%208.23242%2042.9785%2019.0039%2044.6953V28.9746H13.2861V22.5H19.0039V17.5391C19.0039%2011.8945%2022.3828%208.75977%2027.5391%208.75977C29.9658%208.75977%2032.5049%209.19922%2032.5049%209.19922V14.7656H29.7012C26.9414%2014.7656%2026.0156%2016.4824%2026.0156%2018.2432V22.5H32.2412L31.2012%2028.9746H26.0156V44.6953C36.7871%2042.9785%2045%2033.7031%2045%2022.5Z%22%20fill%3D%22%231877F2%22%2F%3E%3Cpath%20d%3D%22M31.2012%2028.9746L32.2412%2022.5H26.0156V18.2432C26.0156%2016.4824%2026.9414%2014.7656%2029.7012%2014.7656H32.5049V9.19922C32.5049%209.19922%2029.9658%208.75977%2027.5391%208.75977C22.3828%208.75977%2019.0039%2011.8945%2019.0039%2017.5391V22.5H13.2861V28.9746H19.0039V44.6953C20.1562%2044.8984%2021.3203%2045%2022.5%2045C23.6797%2045%2024.8438%2044.8984%2026.0156%2044.6953V28.9746H31.2012Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E`;async function uk(e,t){let{options:n}=t;if(!n?.client_id||!n.client_secret)throw Error(`Missing required authentication parameters`);let r=lA(e,t),i=new Dg(n.client_id,n.client_secret,r),a=qa();return{redirectUrl:i.createAuthorizationURL(a,n.scope?.split(` `)||[`email`]).href,code:a}}async function dk(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required authentication parameters`);let i=await new Dg(r.client_id,r.client_secret,lA(e,t)).validateAuthorizationCode(n),a=await fetch(`https://graph.facebook.com/v22.0/me?fields=id,email,name`,{headers:{Authorization:`Bearer ${i.accessToken()}`}});if(!a.ok)throw Error(`Failed to fetch user info`);let o=await a.json();return e.set(`log`,`Userinfo: ${JSON.stringify(o)}`),{sub:o.id,email:o.email,name:o.name}}var fk=c({disableEmbeddedBrowsers:()=>!0,displayName:()=>pk,getRedirect:()=>hk,logoDataUri:()=>mk,validateAuthorizationCodeAndGetUser:()=>_k,validateAuthorizationCodeAndGetUserWithRaw:()=>vk}),pk=`Google`,mk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M44.1035%2023.0123C44.1054%2021.4791%2043.9758%2019.9486%2043.716%2018.4375H22.498V27.1028H34.6507C34.4021%2028.4868%2033.8757%2029.8061%2033.1034%2030.9812C32.3311%2032.1562%2031.3289%2033.1628%2030.1571%2033.9401V39.5649H37.41C41.6567%2035.6494%2044.1035%2029.859%2044.1035%2023.0123Z%22%20fill%3D%22%234285F4%22%2F%3E%3Cpath%20d%3D%22M22.4982%2044.9997C28.5698%2044.9997%2033.6821%2043.0061%2037.4101%2039.5687L30.1573%2033.9439C28.1386%2035.3126%2025.5387%2036.0938%2022.4982%2036.0938C16.6296%2036.0938%2011.6485%2032.1377%209.86736%2026.8066H2.39575V32.6033C4.26839%2036.3297%207.13989%2039.4622%2010.6896%2041.6512C14.2394%2043.8402%2018.3277%2044.9995%2022.4982%2044.9997Z%22%20fill%3D%22%2334A853%22%2F%3E%3Cpath%20d%3D%22M9.86737%2026.8073C8.92572%2024.0138%208.92572%2020.9886%209.86737%2018.1951V12.3984H2.39576C0.820432%2015.5332%200%2018.9929%200%2022.5012C0%2026.0095%200.820432%2029.4692%202.39576%2032.604L9.86737%2026.8073Z%22%20fill%3D%22%23FBBC04%22%2F%3E%3Cpath%20d%3D%22M22.4982%208.90741C25.7068%208.85499%2028.8071%2010.0673%2031.1291%2012.2823L37.5507%205.86064C33.4788%202.03602%2028.0843%20-0.0637686%2022.4982%200.00147616C18.3277%200.00166623%2014.2394%201.16098%2010.6896%203.34999C7.13989%205.539%204.26839%208.67155%202.39575%2012.3979L9.86736%2018.1946C11.6485%2012.8635%2016.6296%208.90741%2022.4982%208.90741Z%22%20fill%3D%22%23EA4335%22%2F%3E%3C%2Fsvg%3E`;async function hk(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required Google authentication parameters`);let i=lA(e,t),a=new Mg(r.client_id,r.client_secret,i),o=qa(),s=ug(),c=a.createAuthorizationURL(o,s,r.scope?.split(` `)??[`email`,`profile`]);return n&&c.searchParams.set(`login_hint`,n),{redirectUrl:c.href,code:o,codeVerifier:s}}async function gk(e,t,n,r){let{options:i}=t;if(!i?.client_id||!i.client_secret||!r)throw Error(`Missing required authentication parameters`);let a=XO((await new Mg(i.client_id,i.client_secret,lA(e,t)).validateAuthorizationCode(n,r)).idToken());if(!a)throw Error(`Invalid ID token`);let o=ek.parse(a.payload),s=typeof o.picture==`string`?o.picture:void 0,c=typeof o.locale==`string`?o.locale:void 0;return{userinfo:{sub:o.sub,email:o.email,given_name:o.given_name,family_name:o.family_name,name:o.name,picture:s,locale:c},raw:{...a.payload}}}async function _k(e,t,n,r){let{userinfo:i}=await gk(e,t,n,r);return i}var vk=gk,yk=c({displayName:()=>bk,getRedirect:()=>Sk,logoDataUri:()=>xk,validateAuthorizationCodeAndGetUser:()=>Ck}),bk=`Vipps`,xk=`data:image/svg+xml,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2245%22%20height%3D%2245%22%3E%3Cpath%20fill%3D%22%23FF5B24%22%20d%3D%22M3.5%2C8h41c1.9%2C0%2C3.5%2C1.6%2C3.5%2C3.5v25c0%2C1.9-1.6%2C3.5-3.5%2C3.5h-41C1.6%2C40%2C0%2C38.4%2C0%2C36.5v-25C0%2C9.6%2C1.6%2C8%2C3.5%2C8z%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FFFFFF%22%20d%3D%22M27.9%2C20.3c1.4%2C0%2C2.6-1%2C2.6-2.5h0c0-1.5-1.2-2.5-2.6-2.5c-1.4%2C0-2.6%2C1-2.6%2C2.5C25.3%2C19.2%2C26.5%2C20.3%2C27.9%2C20.3z%20M31.2%2C24.4c-1.7%2C2.2-3.5%2C3.8-6.7%2C3.8h0c-3.2%2C0-5.8-2-7.7-4.8c-0.8-1.2-2-1.4-2.9-0.8c-0.8%2C0.6-1%2C1.8-0.3%2C2.9%20c2.7%2C4.1%2C6.5%2C6.6%2C10.9%2C6.6c4%2C0%2C7.2-2%2C9.6-5.2c0.9-1.2%2C0.9-2.5%2C0-3.1C33.3%2C22.9%2C32.1%2C23.2%2C31.2%2C24.4z%22%2F%3E%3C%2Fsvg%3E`;async function Sk(e,t){let{options:n}=t;if(!n?.client_id||!n.client_secret)throw Error(`Missing required authentication parameters`);let r=new Sg(n.client_id,n.client_secret,lA(e,t)),i=qa(),a=r.createAuthorizationURL(`https://api.vipps.no/access-management-1.0/access/oauth2/auth`,i,n.scope?.split(` `)||[`openid`,`email`,`phoneNumber`,`name`,`address`,`birthDate`]);return a.searchParams.set(`response_type`,`code`),a.searchParams.set(`response_mode`,`query`),{redirectUrl:a.href,code:i}}async function Ck(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required authentication parameters`);let i=await new Sg(r.client_id,r.client_secret,lA(e,t)).validateAuthorizationCode(`https://api.vipps.no/access-management-1.0/access/oauth2/token`,n,null),a=XO(i.idToken());if(!a)throw Error(`Invalid ID token`);let o=ek.parse(a.payload);if(typeof o.msn!=`string`)throw Error(`msn not available in id token`);let s=await fetch(`https://api.vipps.no/vipps-userinfo-api/userinfo`,{headers:{Authorization:`Bearer ${i.accessToken()}`,"Merchant-Serial-Number":o.msn}});if(!s.ok)throw new L(400,{message:`Failed to get user from vipps`});return await s.json()}var wk=c({displayName:()=>Tk,getRedirect:()=>Dk,logoDataUri:()=>Ek,validateAuthorizationCodeAndGetUser:()=>Ok}),Tk=`GitHub`,Ek=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M22.5%200C10.074%200%200%2010.335%200%2023.077C0%2033.266%206.444%2041.895%2015.39%2044.955C16.515%2045.165%2016.935%2044.46%2016.935%2043.857C16.935%2043.32%2016.92%2041.865%2016.905%2039.99C10.65%2041.355%209.33%2036.99%209.33%2036.99C8.31%2034.32%206.825%2033.615%206.825%2033.615C4.77%2032.205%206.975%2032.235%206.975%2032.235C9.24%2032.385%2010.425%2034.59%2010.425%2034.59C12.45%2038.13%2015.75%2037.125%2017.01%2036.555C17.22%2035.07%2017.82%2034.065%2018.48%2033.51C13.455%2032.94%208.19%2030.93%208.19%2022.035C8.19%2019.5%209.075%2017.43%2010.47%2015.81C10.23%2015.24%209.435%2012.87%2010.695%209.66C10.695%209.66%2012.585%209.045%2016.875%2012.06C18.675%2011.565%2020.595%2011.31%2022.5%2011.31C24.405%2011.31%2026.325%2011.565%2028.125%2012.06C32.415%209.045%2034.305%209.66%2034.305%209.66C35.565%2012.87%2034.77%2015.24%2034.53%2015.81C35.925%2017.43%2036.81%2019.5%2036.81%2022.035C36.81%2030.96%2031.53%2032.925%2026.49%2033.48C27.33%2034.2%2028.095%2035.625%2028.095%2037.815C28.095%2040.95%2028.065%2043.47%2028.065%2043.857C28.065%2044.46%2028.485%2045.18%2029.625%2044.955C38.571%2041.88%2045%2033.252%2045%2023.077C45%2010.335%2034.926%200%2022.5%200Z%22%20fill%3D%22%23181717%22%2F%3E%3C%2Fsvg%3E`;async function Dk(e,t){let{options:n}=t;if(!n?.client_id||!n.client_secret)throw Error(`Missing required GitHub authentication parameters`);let r=lA(e,t),i=new kg(n.client_id,n.client_secret,r),a=qa();return{redirectUrl:i.createAuthorizationURL(a,n.scope?.split(` `)||[`user:email`]).href,code:a}}async function Ok(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required authentication parameters`);let i=await new kg(r.client_id,r.client_secret,lA(e,t)).validateAuthorizationCode(n),a=await fetch(`https://api.github.com/user`,{headers:{Authorization:`Bearer ${i.accessToken()}`,"User-Agent":`AuthHero`}});if(!a.ok)throw Error(`Failed to fetch user info`);let o=await a.json(),s=await fetch(`https://api.github.com/user/emails`,{headers:{Authorization:`Bearer ${i.accessToken()}`,"User-Agent":`AuthHero`}}),c=o.email;if(s.ok){let e=await s.json(),t=e.find(e=>e.primary&&e.verified)||e.find(e=>e.verified);t&&(c=t.email)}return e.set(`log`,`GitHub user: ${JSON.stringify(o)}`),{sub:o.id.toString(),email:c,name:o.name,given_name:o.name?.split(` `)[0],family_name:o.name?.split(` `).slice(1).join(` `),picture:o.avatar_url}}function kk(e,t,n){let{options:r}=t;if(!r?.client_id||!r.client_secret)throw Error(`Missing required Microsoft authentication parameters`);return new Gie(t.strategy===j.WINDOWSLIVE?`consumers`:r.realms||n,r.client_id,r.client_secret,lA(e,t))}async function Ak(e,t,n,r){let i=kk(e,t,r),a=qa(),o=ug(),s=t.options?.scope?.trim(),c=s?s.split(/\s+/):[`openid`,`profile`,`email`],l=i.createAuthorizationURL(a,o,c);return n&&l.searchParams.set(`login_hint`,n),{redirectUrl:l.href,code:a,codeVerifier:o}}async function jk(e,t,n,r,i){if(!r)throw Error(`Missing required authentication parameters`);let a=XO((await kk(e,t,i).validateAuthorizationCode(n,r)).idToken());if(!a)throw Error(`Invalid ID token`);let o=ek.parse(a.payload);return e.set(`log`,`Microsoft user: ${JSON.stringify(o)}`),{userinfo:{sub:o.sub,email:o.email,given_name:o.given_name,family_name:o.family_name,name:o.name,picture:o.picture},raw:{...a.payload}}}async function Mk(e,t,n,r,i){let{userinfo:a}=await jk(e,t,n,r,i);return a}async function Nk(e,t,n,r,i){return jk(e,t,n,r,i)}var Pk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23F25022%22%20d%3D%22M0%200H21.43V21.43H0V0Z%22%2F%3E%3Cpath%20fill%3D%22%237FBA00%22%20d%3D%22M23.57%200H45V21.43H23.57V0Z%22%2F%3E%3Cpath%20fill%3D%22%2300A4EF%22%20d%3D%22M0%2023.57H21.43V45H0V23.57Z%22%2F%3E%3Cpath%20fill%3D%22%23FFB900%22%20d%3D%22M23.57%2023.57H45V45H23.57V23.57Z%22%2F%3E%3C%2Fsvg%3E`,Fk=c({displayName:()=>Ik,getRedirect:()=>zk,logoDataUri:()=>Lk,validateAuthorizationCodeAndGetUser:()=>Bk}),Ik=`Microsoft Account`,Lk=Pk,Rk=`consumers`;function zk(e,t,n){return Ak(e,t,n,Rk)}function Bk(e,t,n,r){return Mk(e,t,n,r,Rk)}var Vk=c({displayName:()=>Hk,getRedirect:()=>Gk,logoDataUri:()=>Uk,validateAuthorizationCodeAndGetUser:()=>Kk,validateAuthorizationCodeAndGetUserWithRaw:()=>qk}),Hk=`Microsoft Azure AD`,Uk=Pk,Wk=`organizations`;function Gk(e,t,n){return Ak(e,t,n,Wk)}function Kk(e,t,n,r){return Mk(e,t,n,r,Wk)}function qk(e,t,n,r){return Nk(e,t,n,r,Wk)}var Jk=class extends Sg{_clientId;_clientPassword;_redirectURI;tokenEndpointAuthMethod;constructor(e,t,n,r=`client_secret_basic`){super(e,t,n),this._clientId=e,this._clientPassword=t,this._redirectURI=n,this.tokenEndpointAuthMethod=r}async validateAuthorizationCode(e,t,n){let r=new URLSearchParams;r.set(`grant_type`,`authorization_code`),r.set(`code`,t),this._redirectURI!==null&&r.set(`redirect_uri`,this._redirectURI),n!==null&&r.set(`code_verifier`,n);let i={"Content-Type":`application/x-www-form-urlencoded`,Accept:`application/json`};this._clientPassword!==null&&this.tokenEndpointAuthMethod===`client_secret_post`?(r.set(`client_id`,this._clientId),r.set(`client_secret`,this._clientPassword)):this._clientPassword===null?r.set(`client_id`,this._clientId):i.Authorization=`Basic ${btoa(`${this._clientId}:${this._clientPassword}`)}`;let a=await fetch(e,{method:`POST`,headers:i,body:r.toString()}),o=await a.text(),s;try{s=JSON.parse(o)}catch{throw Error(`Token endpoint returned non-JSON response (${a.status}): ${o}`)}if(typeof s!=`object`||!s)throw Error(`Token endpoint returned unexpected body (${a.status}): ${o}`);if(a.status>=400){let e=s;throw new yg(typeof e.error==`string`?e.error:`http_${a.status}`,typeof e.error_description==`string`&&e.error_description?`${e.error_description} (body: ${o})`:o,null,null)}return new cg(s)}},Yk=c({displayName:()=>Xk,getRedirect:()=>Qk,logoDataUri:()=>Zk,validateAuthorizationCodeAndGetUser:()=>eA,validateAuthorizationCodeAndGetUserWithRaw:()=>tA}),Xk=`OpenID Connect`,Zk=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M22.5%200C10.074%200%200%2010.074%200%2022.5S10.074%2045%2022.5%2045%2045%2034.926%2045%2022.5%2034.926%200%2022.5%200zm0%2040.5c-9.941%200-18-8.059-18-18s8.059-18%2018-18%2018%208.059%2018%2018-8.059%2018-18%2018z%22%20fill%3D%22%23F7931E%22%2F%3E%3Cpath%20d%3D%22M22.5%209c-7.456%200-13.5%206.044-13.5%2013.5S15.044%2036%2022.5%2036%2036%2029.956%2036%2022.5%2029.956%209%2022.5%209zm0%2022.5c-4.971%200-9-4.029-9-9s4.029-9%209-9%209%204.029%209%209-4.029%209-9%209z%22%20fill%3D%22%23F7931E%22%2F%3E%3C%2Fsvg%3E`;async function Qk(e,t,n){let{options:r}=t;if(!r?.client_id||!r.authorization_endpoint)throw Error(`Missing required OIDC authentication parameters`);let i=lA(e,t),a=new Jk(r.client_id,r.client_secret||null,i,r.token_endpoint_auth_method),o=dg(),s=ug(),c=r.scope?.split(` `)??[`openid`,`profile`,`email`],l=a.createAuthorizationURLWithPKCE(r.authorization_endpoint,o,Cg.S256,s,c);return n&&l.searchParams.set(`login_hint`,n),{redirectUrl:l.href,code:o,codeVerifier:s}}async function $k(e,t,n,r){let{options:i}=t;if(!i?.client_id||!i.token_endpoint)throw Error(`Missing required OIDC authentication parameters`);let a=lA(e,t),o=await new Jk(i.client_id,i.client_secret||null,a,i.token_endpoint_auth_method).validateAuthorizationCode(i.token_endpoint,n,r||null);if(o.data.id_token){let e=XO(o.idToken());if(e?.payload){let t=ek.passthrough().parse(e.payload);return{userinfo:{sub:t.sub,email:t.email,given_name:t.given_name,family_name:t.family_name,name:t.name},raw:{...e.payload}}}}if(i.userinfo_endpoint){let e=await fetch(i.userinfo_endpoint,{headers:{Authorization:`Bearer ${o.accessToken()}`}});if(!e.ok)throw Error(`Failed to fetch user info`);let t=await e.json();if(!t.sub||typeof t.sub!=`string`)throw Error(`Unable to get user identifier: userinfo response missing sub`);return{userinfo:{sub:t.sub,email:typeof t.email==`string`?t.email:void 0,given_name:typeof t.given_name==`string`?t.given_name:void 0,family_name:typeof t.family_name==`string`?t.family_name:void 0,name:typeof t.name==`string`?t.name:void 0},raw:t}}throw Error(`Unable to get user information: no ID token or userinfo endpoint`)}async function eA(e,t,n,r){let{userinfo:i}=await $k(e,t,n,r);return i}var tA=$k,nA=c({displayName:()=>rA,getRedirect:()=>aA,logoDataUri:()=>iA,validateAuthorizationCodeAndGetUser:()=>sA,validateAuthorizationCodeAndGetUserWithRaw:()=>cA}),rA=`OAuth 2.0`,iA=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M22.5%200C14.492%200%208%206.492%208%2014.5V18H5v22h35V18h-3v-3.5C37%206.492%2030.508%200%2022.5%200zm0%204c5.799%200%2010.5%204.701%2010.5%2010.5V18h-21v-3.5C12%208.701%2016.701%204%2022.5%204z%22%20fill%3D%22%236B7280%22%2F%3E%3Ccircle%20cx%3D%2222.5%22%20cy%3D%2229%22%20r%3D%223%22%20fill%3D%22%236B7280%22%2F%3E%3C%2Fsvg%3E`;async function aA(e,t,n){let{options:r}=t;if(!r?.client_id||!r.authorization_endpoint)throw Error(`Missing required OAuth2 authentication parameters`);let i=lA(e,t),a=new Sg(r.client_id,r.client_secret||null,i),o=dg(),s=ug(),c=r.scope?.split(` `)??[],l=a.createAuthorizationURLWithPKCE(r.authorization_endpoint,o,Cg.S256,s,c);return n&&l.searchParams.set(`login_hint`,n),{redirectUrl:l.href,code:o,codeVerifier:s}}async function oA(e,t,n,r){let{options:i}=t;if(!i?.client_id||!i.token_endpoint)throw Error(`Missing required authentication parameters`);let a=lA(e,t),o=await new Sg(i.client_id,i.client_secret||null,a).validateAuthorizationCode(i.token_endpoint,n,r||null);if(!i.userinfo_endpoint)throw Error(`Missing userinfo_endpoint for OAuth2 provider`);let s=await fetch(i.userinfo_endpoint,{headers:{Authorization:`Bearer ${o.accessToken()}`}});if(!s.ok)throw Error(`Failed to fetch user info`);let c=await s.json(),l=c.sub??c.id??c.user_id;if(typeof l!=`string`&&typeof l!=`number`)throw Error(`Unable to get user identifier: response missing sub, id, or user_id`);let u=String(l),d=(typeof c.given_name==`string`?c.given_name:void 0)||(typeof c.first_name==`string`?c.first_name:void 0),f=(typeof c.family_name==`string`?c.family_name:void 0)||(typeof c.last_name==`string`?c.last_name:void 0);return{userinfo:{sub:u,email:typeof c.email==`string`?c.email:void 0,given_name:d,family_name:f,name:typeof c.name==`string`?c.name:`${d||``} ${f||``}`.trim()||void 0},raw:c}}async function sA(e,t,n,r){let{userinfo:i}=await oA(e,t,n,r);return i}var cA=oA;function lA(e,t){return t.options?.callback_url??`${ka(e.env,e.var.custom_domain)}login/callback`}var uA={[j.APPLE]:tk,[j.FACEBOOK]:sk,[j.GOOGLE_OAUTH2]:fk,[j.VIPPS]:yk,[j.GITHUB]:wk,[j.WINDOWSLIVE]:Fk,[j.WAAD]:Vk,[j.OIDC]:Yk,[j.OAUTH2]:nA,[j.OKTA]:Yk};function dA(e,t){let n=e.env.STRATEGIES||{},r={...uA,...n}[t];if(!r)throw Error(`Strategy ${t} not found`);return r}var fA=new Set([j.OIDC,j.SAMLP,j.WAAD,j.ADFS,j.OAUTH2,j.OKTA]);function pA(e){return e.strategy}var mA=`data:image/svg+xml,%3Csvg%20width%3D%2245%22%20height%3D%2245%22%20viewBox%3D%220%200%2045%2045%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%2235%22%20height%3D%2225%22%20rx%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23666%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M5%2013l17.5%2012L40%2013%22%20fill%3D%22none%22%20stroke%3D%22%23666%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E`;function hA(e){return e.options?.icon_url?e.options.icon_url:e.strategy===j.EMAIL||e.strategy===j.SMS?mA:uA[e.strategy]?.logoDataUri}var gA=`auth2`,_A=`auth0`,vA=[gA,_A];async function yA(e,t){return e.usernamePasswordProvider?e.usernamePasswordProvider({tenant_id:t}):_A}function bA(e){return e===gA||e===_A}async function xA({env:e,tenant_id:t,username:n}){return await _h({userAdapter:e.data.users,tenant_id:t,username:n,provider:gA})||_h({userAdapter:e.data.users,tenant_id:t,username:n,provider:_A})}async function SA({env:e,tenant_id:t,username:n}){return await xh({userAdapter:e.data.users,tenant_id:t,username:n,provider:gA})||xh({userAdapter:e.data.users,tenant_id:t,username:n,provider:_A})}async function CA(e,t){let{client:n,username:r,connection:i,ip:a}=t;return await xA({env:e.env,tenant_id:n.tenant.id,username:r})||Ch(e,{client:n,username:r,provider:await yA(e.env,n.tenant.id),connection:i,isSocial:!1,ip:a})}var wA=[`1F77B4`,`FF7F0E`,`2CA02C`,`D62728`,`9467BD`,`8C564B`,`E377C2`,`17BECF`,`BCBD22`,`7F7F7F`];function TA(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return Math.abs(t)}function EA(e){return e.email||e.name||e.user_id||`?`}function DA(e){return wA[TA(e.length>0?e:`?`)%wA.length]??`7F7F7F`}function OA(e){let t=(e.name?.trim()||`${e.given_name??``} ${e.family_name??``}`.trim()||e.nickname?.trim()||e.email?.trim()||e.username?.trim()||``).split(/\s+/).filter(Boolean),n=t[0];if(!n)return`?`;if(t.length===1)return n.slice(0,2).toUpperCase();let r=t[t.length-1]??n;return`${n[0]??``}${r[0]??``}`.toUpperCase()||`?`}function kA(e,t){return`${e.endsWith(`/`)?e:`${e}/`}${t}`}function AA(e,t){let n=OA(t),r=DA(EA(t));return kA(e,`avatars/${encodeURIComponent(n)}.svg?bg=${r}`)}function jA(e,t){return e.picture?e:{...e,picture:AA(t,e)}}function MA(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`)}function NA(e,t){let n=/^[0-9a-fA-F]{6}$/.test(t)?`#${t}`:`#7F7F7F`,r=MA(e.slice(0,2).toUpperCase())||`?`;return[`<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120" role="img">`,`<rect width="120" height="120" fill="${n}"/>`,`<text x="50%" y="50%" dy=".05em" fill="#ffffff" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif" font-size="52" font-weight="600" text-anchor="middle" dominant-baseline="central">${r}</text>`,`</svg>`].join(``)}var PA=[`email`,`email_verified`,`phone_number`,`phone_verified`,`username`];function FA(e){let t={connection:e.connection,provider:e.provider,user_id:hh(e.user_id),isSocial:e.is_social};for(let n of PA)e[n]!==void 0&&e[n]!==null&&(t[n]=e[n]);return t}var IA=Ua({users:f.z.array(Ot)}),LA=f.z.object({users:f.z.array(Ot),next:f.z.string().optional().openapi({description:`Opaque cursor for the next page; absent on the last page.`})}),RA=Ua({sessions:f.z.array(Fr)}),zA=Ua({logs:f.z.array(vr)}),BA=Ua({organizations:f.z.array(Ji)}),VA=f.z.object({client_id:f.z.string(),name:f.z.string(),logo_uri:f.z.string().optional(),registration_type:f.z.enum([`manual`,`open_dcr`,`iat_dcr`]).optional(),registration_metadata:f.z.record(f.z.string(),f.z.any()).optional(),created_at:f.z.string().optional(),updated_at:f.z.string().optional()}),HA=Ua({connected_clients:f.z.array(VA)}),UA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(Ot),IA,LA])}},description:`List of users`}}}),handler:async e=>{let{page:t,per_page:n,include_totals:r,sort:i,q:a,from:o,take:s}=e.req.valid(`query`),c=P(e),l=Ea(e.env,e.var.custom_domain);if(a?.includes(`identities.profileData.email`)){let i=a.split(`=`)[1],[u]=(await e.env.data.users.list(c,{page:t,per_page:n,include_totals:r,q:`email:${i}`})).users.filter(e=>e.linked_to);if(!u)return o!==void 0||s!==void 0?e.json(LA.parse({users:[]})):e.json([]);let d=await e.env.data.users.get(c,u.linked_to);if(!d)throw new m(500,{message:`Primary account not found`});let f=Ot.parse(jA(d,l));return o!==void 0||s!==void 0?e.json(LA.parse({users:[f]})):e.json([f])}let u=[`-_exists_:linked_to`];a&&u.push(a);let d=await e.env.data.users.list(c,{page:t,per_page:n,include_totals:r,sort:Ha(i),q:u.join(` `),from:o,take:s}),p=d.users.filter(e=>!e.linked_to).map(e=>jA(e,l));return o!==void 0||s!==void 0?e.json(LA.parse({users:p,next:d.next})):r?e.json(IA.parse({users:p,length:d.length,start:d.start,limit:d.limit})):e.json(f.z.array(Ot).parse(p))}}),WA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:Ot}},description:`List of users`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),n=P(e),r=await e.env.data.users.get(n,t);if(!r)throw new m(404);if(r.linked_to)if(e.var.prefer?.has(`include-linked`))e.var.prefer.applied(`include-linked`);else throw new m(404,{message:`User is linked to another user`});return e.json(Ot.parse(jA(r,Ea(e.env,e.var.custom_domain))))}}),GA=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`delete:users`,`auth:write`]}],responses:{204:{description:`Status`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),n=P(e),r=await e.env.data.users.get(n,t);if(!await e.env.data.users.remove(n,t))throw new m(404);return await M(e,n,{type:A.SUCCESS_API_OPERATION,description:`Delete a User`,beforeState:r??void 0,targetType:`user`,targetId:t,response:{statusCode:204,body:{}}}),e.body(null,204)}}),KA=N({route:(0,f.createRoute)({tags:[`users`],method:`post`,path:`/`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{required:!0,content:{"application/json":{schema:Et.extend({password:f.z.string().optional()})}}}},security:[{Bearer:[`create:users`,`auth:write`]}],responses:{201:{content:{"application/json":{schema:Ot}},description:`Status`}}}),handler:async e=>{let t=e.req.valid(`json`);e.set(`body`,t);let n=P(e),{email:r,phone_number:i,name:a,linked_to:o,email_verified:s,provider:c,connection:l,password:u,user_id:d,verify_email:f,last_ip:p,is_social:h,last_login:g,registration_completed_at:_,...v}=t,y=await e.env.data.connections.get(n,l),b=(y?ca(y.strategy):l===j.USERNAME_PASSWORD||bA(c))?await yA(e.env,n):y?pA(y):c||l,x=t.user_id,S=`${b}|${x?hh(x):mh()}`;if(b===`sms`&&i&&await _h({userAdapter:e.env.data.users,tenant_id:n,username:i,provider:`sms`}))throw new m(409,{message:`User already exists`});try{let t;u&&(t=await ng(u));let c={...v,email:r,user_id:S,name:a||r||i,phone_number:i,provider:b,connection:l,linked_to:o??void 0,email_verified:s||!1,last_ip:``,is_social:!1,last_login:new Date().toISOString(),...t&&{password:t}},d=await e.env.data.users.create(n,c);e.set(`user_id`,d.user_id),await M(e,n,{type:A.SUCCESS_API_OPERATION,description:`User created`,afterState:d,targetType:`user`,targetId:d.user_id});let f=d.identities?d:{...d,identities:[FA(d)]};return e.json(Ot.parse(jA(f,Ea(e.env,e.var.custom_domain))),{status:201})}catch(e){throw e.message===`User already exists`?new m(409,{message:`User already exists`}):e}}}),qA=N({route:(0,f.createRoute)({tags:[`users`],method:`patch`,path:`/{user_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:Et.extend({verify_email:f.z.boolean(),password:f.z.string()}).partial()}}},params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{description:`Status`}}}),handler:async e=>{let{data:t}=e.env,n=e.req.valid(`json`),{user_id:r}=e.req.valid(`param`),i=P(e),{verify_email:a,password:o,connection:s,...c}=n,l=await t.users.get(i,r);if(!l)throw new m(404);if(l.linked_to)throw new m(404,{message:`User is linked to another user`});let u=r,d=l;if(s){let e=s===j.USERNAME_PASSWORD,n=t=>e?bA(t.provider):t.connection===s,a=e&&l.provider===`auth0`?await t.users.list(i,{page:0,per_page:100,include_totals:!1,q:`linked_to:${r}`}):null,o=a?.users.find(e=>e.provider===`auth2`&&n(e));if(o)u=o.user_id,d=o;else if(n(l))u=r,d=l;else{let e=(a??await t.users.list(i,{page:0,per_page:100,include_totals:!1,q:`linked_to:${r}`})).users.find(n);if(!e)throw new m(404,{message:`No identity found with connection: ${s}`});u=e.user_id,d=e}}if(c.email&&c.email!==d.email){let t=await gh(e.env.data.users,i,c.email);if(t.length&&t.some(e=>e.user_id!==u))throw new m(409,{message:`Another user with the same email address already exists.`})}if(c.phone_number&&c.phone_number!==d.phone_number){let{users:e}=await t.users.list(i,{page:0,per_page:10,include_totals:!1,q:`phone_number:${c.phone_number}`});if(e.some(e=>e.user_id!==u))throw new m(409,{message:`Another user with the same phone number already exists.`})}if(await e.env.data.users.update(i,u,c),o){let e;if(s)if(s===j.USERNAME_PASSWORD)e={provider:d.provider,user_id:hh(u)};else throw new m(400,{message:`Cannot set password for connection: ${s}`});else if(e=l.identities?.find(e=>e.connection===j.USERNAME_PASSWORD&&e.provider===`auth2`)??l.identities?.find(e=>bA(e.provider))??l.identities?.find(e=>e.connection===j.USERNAME_PASSWORD),!e)throw new m(400,{message:`User does not have a password identity`});let n=`${e.provider}|${e.user_id}`,r=await t.passwords.get(i,n);r&&await t.passwords.update(i,{id:r.id,user_id:n,password:r.password,algorithm:r.algorithm,is_current:!1});let{hash:a,algorithm:c}=await ng(o);await t.passwords.create(i,{user_id:n,password:a,algorithm:c,is_current:!0})}let f=await e.env.data.users.get(i,r);if(!f)throw new m(500);return await M(e,i,{type:A.SUCCESS_API_OPERATION,description:`Update a User`,beforeState:l,afterState:f,targetType:`user`,targetId:r,body:n,response:{statusCode:200,body:f}}),e.json(Ot.parse(jA(f,Ea(e.env,e.var.custom_domain))))}}),JA=N({route:(0,f.createRoute)({tags:[`users`],method:`post`,path:`/{user_id}/identities`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:f.z.union([f.z.object({link_with:f.z.string()}),f.z.object({user_id:f.z.string(),provider:f.z.string(),connection:f.z.string().optional()})])}}},params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{201:{content:{"application/json":{schema:f.z.array(Ct)}},description:`Status`}}}),handler:async e=>{let t=e.req.valid(`json`),{user_id:n}=e.req.valid(`param`),r=P(e),i=`link_with`in t?t.link_with:t.user_id;if(i===n)throw new m(400,{message:`Cannot link a user to itself.`});let[a,o]=await Promise.all([e.env.data.users.get(r,n),e.env.data.users.get(r,i)]);if(!a||!o)throw new m(400,{message:`Linking an inexistent identity is not allowed.`});await e.env.data.users.update(r,i,{linked_to:n});let s=[a,...(await e.env.data.users.list(r,{page:0,per_page:10,include_totals:!1,q:`linked_to:${n}`})).users].map(FA);return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Link a user identity`,targetType:`identity`,targetId:n}),e.json(f.z.array(Ct).parse(s),{status:201})}}),YA=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}/identities/{provider}/{linked_user_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string(),provider:f.z.string(),linked_user_id:f.z.string()})},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{content:{"application/json":{schema:f.z.array(Ot)}},description:`Status`}}}),handler:async e=>{let{user_id:t,provider:n,linked_user_id:r}=e.req.valid(`param`),i=P(e);await e.env.data.users.unlink(i,t,n,r);let a=await e.env.data.users.get(i,t);if(!a)throw new m(404);return await M(e,i,{type:A.SUCCESS_API_OPERATION,description:`Unlink a user identity`,targetType:`identity`,targetId:t}),e.json([Ot.parse(jA(a,Ea(e.env,e.var.custom_domain)))])}}),XA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/connected-clients`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`read:clients`,`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(VA),HA])}},description:`List of clients connected to this user (created via IAT-gated DCR).`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{include_totals:n,page:r,per_page:i}=e.req.valid(`query`),a=P(e),o=await e.env.data.clients.list(a,{page:r,per_page:i,include_totals:n,q:`owner_user_id:"${t}"`}),s=o.clients.filter(e=>e.client_metadata?.status!==`deleted`).map(e=>VA.parse(e));return n?e.json({connected_clients:s,start:o.totals?.start??0,limit:o.totals?.limit??0,length:s.length}):e.json(s)}}),ZA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/sessions`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(Fr),RA])}},description:`List of sessions`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{include_totals:n,page:r,per_page:i}=e.req.valid(`query`),a=P(e),o=await e.env.data.sessions.list(a,{page:r,per_page:i,include_totals:n,q:`user_id:${t}`});return e.json(Wa(n,o,`sessions`))}}),QA=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/logs`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({user_id:f.z.string()})},security:[{Bearer:[`read:logs`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(vr),zA])}},description:`List of logs across the user and any linked accounts`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{include_totals:n,page:r,per_page:i,sort:a,q:o}=e.req.valid(`query`),s=P(e),c=await e.env.data.users.get(s,t);if(!c||c.linked_to)throw new m(404);let l=[t,...(await e.env.data.users.list(s,{page:0,per_page:100,include_totals:!1,q:`linked_to:${t}`})).users.map(e=>e.user_id)].map(e=>`user_id:"${e}"`).join(` OR `),u=l;if(o){let e=o.trim().replace(/^(AND|OR)\s+/i,``);if(/\sOR\s/i.test(e))throw new m(400,{message:`q must not contain top-level OR`});e&&(u=`${l} ${e}`)}let d=await e.env.data.logs.list(s,{page:r,per_page:i,include_totals:n,sort:Ha(a),q:u});return e.json(Wa(n,d,`logs`))}}),$A=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/permissions`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()}),query:Va},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:Li}},description:`User permissions`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{page:n,per_page:r,sort:i,q:a}=e.req.valid(`query`),o=P(e);if(!await e.env.data.users.get(o,t))throw new m(404,{message:`User not found`});let s=await e.env.data.userPermissions.list(o,t,{page:n,per_page:r,include_totals:!1,sort:Ha(i),q:a});return e.json(s)}}),ej=N({route:(0,f.createRoute)({tags:[`users`],method:`post`,path:`/{user_id}/permissions`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:f.z.object({permissions:f.z.array(f.z.object({permission_name:f.z.string(),resource_server_identifier:f.z.string(),organization_id:f.z.string().optional()}))})}}}},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{201:{description:`Permissions assigned to user`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{permissions:n}=e.req.valid(`json`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});for(let i of n)if(!await e.env.data.userPermissions.create(r,t,{user_id:t,resource_server_identifier:i.resource_server_identifier,permission_name:i.permission_name,organization_id:i.organization_id},i.organization_id))throw new m(500,{message:`Failed to assign permissions to user`});return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Assign permissions to a user`,targetType:`user_permission`,targetId:t}),e.json({message:`Permissions assigned successfully`},{status:201})}}),tj=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}/permissions`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:f.z.object({permissions:f.z.array(f.z.object({permission_name:f.z.string(),resource_server_identifier:f.z.string(),organization_id:f.z.string().optional()}))})}}}},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{description:`Permissions removed from user`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{permissions:n}=e.req.valid(`json`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});for(let i of n)if(!await e.env.data.userPermissions.remove(r,t,{resource_server_identifier:i.resource_server_identifier,permission_name:i.permission_name},i.organization_id))throw new m(500,{message:`Failed to remove permissions from user`});return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Remove permissions from a user`,targetType:`user_permission`,targetId:t}),e.json({message:`Permissions removed successfully`})}}),nj=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/roles`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:Ui}},description:`User roles`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),n=P(e);if(!await e.env.data.users.get(n,t))throw new m(404,{message:`User not found`});let r=await e.env.data.userRoles.list(n,t,void 0,``);return e.json(r)}}),rj=N({route:(0,f.createRoute)({tags:[`users`],method:`post`,path:`/{user_id}/roles`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string()}),body:{content:{"application/json":{schema:f.z.object({roles:f.z.array(f.z.string())})}}}},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{201:{description:`Roles assigned to user`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{roles:n}=e.req.valid(`json`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});for(let i of n)if(!await e.env.data.userRoles.create(r,t,i,``))throw new m(500,{message:`Failed to assign roles to user`});return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Assign roles to a user`,targetType:`user_role`,targetId:t}),e.json({message:`Roles assigned successfully`},{status:201})}}),ij=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}/roles`,request:{params:f.z.object({user_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string()}),body:{content:{"application/json":{schema:f.z.object({roles:f.z.array(f.z.string())})}}}},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{description:`Roles removed from user`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{roles:n}=e.req.valid(`json`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});for(let i of n)if(!await e.env.data.userRoles.remove(r,t,i,``))throw new m(500,{message:`Failed to remove roles from user`});return await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Remove roles from a user`,targetType:`user_role`,targetId:t}),e.json({message:`Roles removed successfully`})}}),aj=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/{user_id}/organizations`,request:{params:f.z.object({user_id:f.z.string()}),query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.union([BA,f.z.array(Ji)])}},description:`List of user organizations`}}}),handler:async e=>{let{user_id:t}=e.req.valid(`param`),{page:n,per_page:r,include_totals:i,sort:a}=e.req.valid(`query`),o=P(e);if(!await e.env.data.users.get(o,t))throw new m(404,{message:`User not found`});let s=await e.env.data.userOrganizations.listUserOrganizations(o,t,{page:n,per_page:r,sort:Ha(a)});return i?e.json({organizations:s.organizations,start:s.start,limit:s.limit,length:s.length}):e.json(s.organizations)}}),oj=N({route:(0,f.createRoute)({tags:[`users`],method:`delete`,path:`/{user_id}/organizations/{organization_id}`,request:{params:f.z.object({user_id:f.z.string(),organization_id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`update:users`,`auth:write`]}],responses:{200:{description:`User removed from organization successfully`}}}),handler:async e=>{let{user_id:t,organization_id:n}=e.req.valid(`param`),r=P(e);if(!await e.env.data.users.get(r,t))throw new m(404,{message:`User not found`});let i=(await e.env.data.userOrganizations.list(r,{q:`user_id:${t}`,per_page:100})).userOrganizations.find(e=>e.organization_id===n);if(!i)throw new m(404,{message:`User is not a member of this organization`});return await e.env.data.userOrganizations.remove(r,i.id),await M(e,r,{type:A.SUCCESS_API_OPERATION,description:`Remove a user from an organization`,targetType:`user_organization`,targetId:t}),e.json({message:`User removed from organization successfully`})}}),sj=new f.OpenAPIHono().openapiRoutes([UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj]),cj={RSA:[`e`,`kty`,`n`],EC:[`crv`,`kty`,`x`,`y`],oct:[`k`,`kty`],OKP:[`crv`,`kty`,`x`]};function lj(e){switch(e){case`RSA`:return{name:`RSASSA-PKCS1-v1_5`,hash:`SHA-256`,publicExponent:new Uint8Array([1,0,1]),modulusLength:2048};case`EC-P-256`:return{name:`ECDSA`,namedCurve:`P-256`};case`EC-P-384`:return{name:`ECDSA`,namedCurve:`P-384`};case`EC-P-521`:return{name:`ECDSA`,namedCurve:`P-521`}}}function uj(e){switch(e){case`RSA`:return{name:`RSASSA-PKCS1-v1_5`,hash:`SHA-256`,publicExponent:new Uint8Array([1,0,1]),modulusLength:2048};case`EC-P-256`:return{name:`ECDSA`,hash:`SHA-256`};case`EC-P-384`:return{name:`ECDSA`,hash:`SHA-384`};case`EC-P-521`:return{name:`ECDSA`,hash:`SHA-512`}}}async function dj(e){let t=e.keyType??`RSA`;if(t===`EC-P-521`&&Aa()===`workerd`)throw Error(`EC-P-521 signing keys are not supported on Cloudflare Workers: workerd's WebCrypto implementation cannot generate the P-521 curve. Use RSA, EC-P-256, or EC-P-384 instead.`);let n=await crypto.subtle.generateKey(lj(t),!0,[`sign`,`verify`]),r=qa(),i=Ta(new TextEncoder().encode(r)),a=await uO.createSelfSigned({serialNumber:i,name:e.name,notBefore:new Date,notAfter:new Date(Date.now()+365*24*60*60*1e3),signingAlgorithm:uj(t),keys:n,extensions:[new uD(!0,2,!0),new fD([`1.3.6.1.5.5.7.3.1`],!0),new mD(pD.keyCertSign|pD.cRLSign,!0),await hD.create(n.publicKey)]}),o=await crypto.subtle.exportKey(`pkcs8`,n.privateKey),s=a.toString(`pem`),c=await pj(a);return{kid:c,cert:s,thumbprint:Ta(await a.getThumbprint()),fingerprint:c,pkcs7:fj(`PRIVATE`,o),type:`jwt_signing`}}function fj(e,t){let n=ba(new Uint8Array(t)),r=`-----BEGIN ${e} KEY-----\r\n`,i=0;for(;i<n.length;)i+64<=n.length?r+=n.substr(i,64)+`\r
380
380
  `:r+=n.substr(i)+`\r
381
381
  `,i+=64;return r+=`-----END ${e} KEY-----\r\n`,r}async function pj(e){let t=await e.publicKey.export();return mj(await crypto.subtle.exportKey(`jwk`,t))}async function mj(e){if(!e.kty)throw Error(`JWK is missing required 'kty' member`);let t=cj[e.kty];if(!t)throw Error(`Unsupported JWK kty for thumbprint: ${e.kty}`);let n={};for(let r of t){let t=e[r];if(typeof t!=`string`||t.length===0)throw Error(`JWK is missing required member '${r}' for kty=${e.kty}`);n[r]=t}let r=JSON.stringify(n),i=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(r));return ga(new Uint8Array(i))}var hj=1e3*60*60*24;async function gj(e){let t=e.var.tenant_id;return t&&await BO(e.env.signingKeyMode,t)===`tenant`?{tenantId:t}:`control-plane`}function _j(e){return e===`control-plane`?`type:jwt_signing AND -_exists_:tenant_id`:`type:jwt_signing AND tenant_id:${e.tenantId}`}var vj=N({route:(0,f.createRoute)({tags:[`keys`],method:`get`,path:`/signing`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:signing_keys`]}],responses:{200:{content:{"application/json":{schema:f.z.array(Ir)}},description:`List of keys`}}}),handler:async e=>{let t=await gj(e),{signingKeys:n}=await e.env.data.keys.list({q:_j(t)}),r=n.filter(e=>`cert`in e).map(e=>e);return e.json(r)}}),yj=N({route:(0,f.createRoute)({tags:[`keys`],method:`get`,path:`/signing/{kid}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({kid:f.z.string().regex(/^[A-Za-z0-9._-]+$/)})},security:[{Bearer:[`read:signing_keys`]}],responses:{200:{content:{"application/json":{schema:Ir}},description:`The requested key`}}}),handler:async e=>{let{kid:t}=e.req.valid(`param`),{signingKeys:n}=await e.env.data.keys.list({q:`type:jwt_signing AND kid:${t}`}),r=n.find(e=>e.kid===t);if(!r||e.var.tenant_id&&r.tenant_id&&r.tenant_id!==e.var.tenant_id)throw new m(404,{message:`Key not found`});return e.json(r)}}),bj=N({route:(0,f.createRoute)({tags:[`keys`],method:`post`,path:`/signing/rotate`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`create:signing_keys`]}],responses:{201:{description:`Status`}}}),handler:async e=>{let t=await gj(e),n=0;for(;;){let{signingKeys:r}=await e.env.data.keys.list({q:_j(t),page:n,per_page:100});for(let t of r)await e.env.data.keys.update(t.kid,{revoked_at:new Date(Date.now()+hj).toISOString()});if(r.length<100)break;n++}let r=await dj({name:`CN=${e.env.ORGANIZATION_NAME}`});return await e.env.data.keys.create({...r,type:`jwt_signing`,current_since:new Date().toISOString(),...t===`control-plane`?{}:{tenant_id:t.tenantId}}),e.text(`OK`,{status:201})}}),xj=N({route:(0,f.createRoute)({tags:[`keys`],method:`put`,path:`/signing/{kid}/revoke`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({kid:f.z.string().regex(/^[A-Za-z0-9._-]+$/)})},security:[{Bearer:[`update:signing_keys`]}],responses:{201:{description:`Status`}}}),handler:async e=>{let{kid:t}=e.req.valid(`param`),n=e.var.tenant_id,{signingKeys:r}=await e.env.data.keys.list({q:`type:jwt_signing AND kid:${t}`}),i=r.find(e=>e.kid===t);if(!i||n&&i.tenant_id&&i.tenant_id!==n||!await e.env.data.keys.update(t,{revoked_at:new Date().toISOString()}))throw new m(404,{message:`Key not found`});let a=await dj({name:`CN=${e.env.ORGANIZATION_NAME}`});return await e.env.data.keys.create({...a,type:`jwt_signing`,current_since:new Date().toISOString(),...i.tenant_id?{tenant_id:i.tenant_id}:{}}),e.text(`OK`)}}),Sj=new f.OpenAPIHono().openapiRoutes([vj,yj,bj,xj]),Cj=N({route:(0,f.createRoute)({tags:[`users`],method:`get`,path:`/`,request:{query:f.z.object({email:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:users`,`auth:read`]}],responses:{200:{content:{"application/json":{schema:f.z.array(Dt)}},description:`List of users`}}}),handler:async e=>{let t=P(e),{email:n}=e.req.valid(`query`),r=(await gh(e.env.data.users,t,n)).filter(e=>!e.linked_to);return e.json(r)}}),wj=new f.OpenAPIHono().openapiRoutes([Cj]),Tj=[/^10\./,/^192\.168\./,/^172\.(1[6-9]|2\d|3[01])\./,/^169\.254\./,/^127\./,/^0\./,/^100\.(6[4-9]|[7-9]\d|1[01]\d|12[0-7])\./],Ej=new Set([`localhost`,`ip6-localhost`,`ip6-loopback`,`broadcasthost`]);function Dj(e){let t=e.replace(/^\[|\]$/g,``).toLowerCase();if(t===`::`||t===`::1`||t.startsWith(`fc`)||t.startsWith(`fd`))return!0;let n=t.split(`:`)[0];if(n&&/^[0-9a-f]+$/.test(n)){let e=parseInt(n,16);if(!Number.isNaN(e)&&e>=65152&&e<=65215)return!0}let r=Oj(t);return!!(r&&kj(r))}function Oj(e){let t=e.match(/^::(?:ffff:)?(\d+\.\d+\.\d+\.\d+)$/);if(t&&t[1])return t[1];let n=e.match(/^::(?:ffff:)?([0-9a-f]{1,4}):([0-9a-f]{1,4})$/);if(n&&n[1]&&n[2]){let e=parseInt(n[1],16),t=parseInt(n[2],16);if(!Number.isNaN(e)&&!Number.isNaN(t))return[e>>8,e&255,t>>8,t&255].join(`.`)}return null}function kj(e){return/^\d+\.\d+\.\d+\.\d+$/.test(e)?Tj.some(t=>t.test(e)):!1}function Aj(e){let t=e.ALLOW_PRIVATE_OUTBOUND_FETCH===!0;return{allowPrivateHosts:t,allowedSchemes:t?[`http:`,`https:`]:[`https:`]}}var jj=class extends Error{constructor(e){super(`SSRF check failed: ${e}`),this.name=`SsrfBlockedError`}};function Mj(e,t={}){let n=t.allowedSchemes??[`https:`],r;try{r=new URL(e)}catch{throw new jj(`invalid URL`)}if(!n.includes(r.protocol))throw new jj(`scheme ${r.protocol} not allowed`);if(t.allowPrivateHosts)return r;let i=r.hostname.toLowerCase();if(Ej.has(i))throw new jj(`hostname ${i} blocked`);if(kj(i))throw new jj(`IPv4 ${i} is in a blocked range`);if(i.includes(`:`)&&Dj(i))throw new jj(`IPv6 ${i} is in a blocked range`);return r}async function Nj(e,t={}){let n=Mj(e,t),r=t.maxBytes??64*1024,i=t.timeoutMs??5e3,a=new AbortController,o=setTimeout(()=>a.abort(),i);try{let e=await fetch(n,{method:`GET`,redirect:`manual`,signal:a.signal,headers:{accept:`application/json, application/jwt, text/plain`}});if(e.status>=300&&e.status<400)throw new jj(`redirect (status ${e.status}) not allowed`);if(!e.body)return{status:e.status,body:``,contentType:e.headers.get(`content-type`)};let t=e.body.getReader(),i=[],o=0;for(;;){let{value:e,done:n}=await t.read();if(n)break;if(e){if(o+=e.byteLength,o>r)throw await t.cancel(),new jj(`response body exceeds ${r} bytes`);i.push(e)}}let s=new Uint8Array(o),c=0;for(let e of i)s.set(e,c),c+=e.byteLength;return{status:e.status,body:new TextDecoder().decode(s),contentType:e.headers.get(`content-type`)}}finally{clearTimeout(o)}}var Pj=120,Loe=5*1024,Fj=[`authorization_code`,`refresh_token`];function Ij(e){if(!/^https?:\/\//i.test(e))return!1;try{return new URL(e),!0}catch{return!1}}var Roe=f.z.object({client_id:f.z.string().url(),client_name:f.z.string().min(1),grant_types:f.z.array(f.z.string()).refine(e=>e.some(e=>Fj.includes(e)),{message:`grant_types must include authorization_code or refresh_token`}),redirect_uris:f.z.array(f.z.string().url()).optional(),application_type:f.z.enum([`native`,`web`]).optional(),token_endpoint_auth_method:f.z.enum([`none`,`private_key_jwt`]).optional(),jwks_uri:f.z.string().url().optional()});function Lj(e){throw new L(400,{message:`Invalid CIMD client: ${e}`})}function zoe(e){Buffer.byteLength(e,`utf8`)>Pj&&Lj(`client_id exceeds ${Pj} bytes`);let t;try{t=new URL(e)}catch{Lj(`client_id is not a valid URL`)}return(t.username||t.password)&&Lj(`URL must not contain credentials`),t.hash&&Lj(`URL must not contain a fragment`),t.search&&Lj(`URL must not contain a query string`),t.port===`0`&&Lj(`URL must not use port 0`),(t.pathname===``||t.pathname===`/`)&&Lj(`URL must contain a path`),t}function Boe(e){return e===`native`?`native`:`regular_web`}async function Voe(e,t={}){zoe(e);let n;try{n=await Nj(e,{...t,maxBytes:Loe})}catch(e){throw e instanceof jj&&Lj(e.message),e}n.status!==200&&Lj(`document fetch returned status ${n.status}`);let r;try{r=JSON.parse(n.body)}catch{Lj(`document is not valid JSON`)}let i=Roe.safeParse(r);i.success||Lj(i.error.issues.map(e=>e.message).join(`; `));let a=i.data;a.client_id!==e&&Lj(`document client_id does not match the requested URL`);let o=a.token_endpoint_auth_method??`none`;o===`private_key_jwt`&&!a.jwks_uri&&Lj(`jwks_uri is required when token_endpoint_auth_method is private_key_jwt`);let s=a.grant_types.filter(e=>Fj.includes(e)),c=new Date().toISOString();return{...At.parse({client_id:e,name:a.client_name,app_type:Boe(a.application_type),is_first_party:!1,token_endpoint_auth_method:o,grant_types:s,callbacks:a.redirect_uris??[],connections:[],...a.jwks_uri?{client_metadata:{jwks_uri:a.jwks_uri}}:{},created_at:c,updated_at:c}),client_secret:void 0}}var Rj=`auth0`,zj=720*60*60,Bj=1440*60,Hoe=`auth-token`,Vj=1800*1e3,Hj=10080*60*1e3,Uoe=1800*1e3,Woe=1800*1e3,Uj=1440*60*1e3,Wj=`authhero-try-connection-`;function Goe(e){return`${Wj}${e}`}function Gj(e){return e.startsWith(Wj)}function Kj(e){return e?.client_id?e.client_metadata?.system_purpose===`try_connection`||Gj(e.client_id):!1}function Koe(e){return e?.client_metadata?.cimd!==`true`||!e.client_id?!1:Ij(e.client_id)}function qj(e){if(!e.client_metadata)return e;let{cimd:t,...n}=e.client_metadata;return{...e,client_metadata:n}}var qoe={native:{token_endpoint_auth_method:`none`,grant_types:[`authorization_code`,`refresh_token`]},spa:{token_endpoint_auth_method:`none`,grant_types:[`authorization_code`,`refresh_token`]},regular_web:{token_endpoint_auth_method:`client_secret_post`,grant_types:[`authorization_code`,`refresh_token`]},non_interactive:{token_endpoint_auth_method:`client_secret_post`,grant_types:[`client_credentials`]}};function Joe(e,t){let n=t.app_type,r=qoe[typeof n==`string`?n:`regular_web`];return r?{...e,token_endpoint_auth_method:`token_endpoint_auth_method`in t?e.token_endpoint_auth_method:r.token_endpoint_auth_method,grant_types:`grant_types`in t?e.grant_types:r.grant_types}:e}var Yoe=Ua({clients:f.z.array(At)}),Xoe=f.z.object({clients:f.z.array(At),next:f.z.string().optional().openapi({description:`Opaque cursor for the next page; absent on the last page.`})}),Jj=f.z.object({enabled_connections:f.z.array(f.z.object({connection_id:f.z.string(),connection:gn.optional()}))}),Zoe=f.z.array(f.z.string()),Qoe=N({route:(0,f.createRoute)({tags:[`clients`],method:`get`,path:`/`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:clients`]}],responses:{200:{content:{"application/json":{schema:f.z.union([Yoe,f.z.array(At),Xoe])}},description:`List of clients`}}}),handler:async e=>{let t=P(e),{page:n,per_page:r,include_totals:i,sort:a,q:o,from:s,take:c}=e.req.valid(`query`),l=await e.env.data.clients.list(t,{page:n,per_page:r,include_totals:i,sort:Ha(a),q:o,from:s,take:c}),u=l.clients.filter(e=>!Kj(e));return s!==void 0||c!==void 0?e.json({clients:u,next:l.totals?.next}):i?e.json({clients:u,start:l.totals?.start??0,limit:l.totals?.limit??r,length:u.length,total:l.totals?.total}):e.json(u)}}),$oe=N({route:(0,f.createRoute)({tags:[`clients`],method:`get`,path:`/{id}`,request:{params:f.z.object({id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:clients`]}],responses:{200:{content:{"application/json":{schema:At}},description:`A client`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=await e.env.data.clients.get(t,n);if(!r)throw new m(404);return e.json(r)}}),ese=N({route:(0,f.createRoute)({tags:[`clients`],method:`delete`,path:`/{id}`,request:{params:f.z.object({id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`delete:clients`]}],responses:{200:{description:`Status`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=await e.env.data.clients.get(t,n);if(r&&Kj(r)||!await e.env.data.clients.remove(t,n))throw new m(404,{message:`Client not found`});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Delete a Client`,targetType:`client`,targetId:n}),e.text(`OK`)}}),tse=N({route:(0,f.createRoute)({tags:[`clients`],method:`patch`,path:`/{id}`,request:{body:{content:{"application/json":{schema:f.z.object(kt.shape).partial()}}},params:f.z.object({id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`update:clients`]}],responses:{200:{content:{"application/json":{schema:At}},description:`The updated client`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=e.req.valid(`json`),i=qj(r),a=await e.env.data.clients.get(t,n);if(Koe(a))throw new m(400,{message:`Client is managed via its Client ID Metadata Document at ${n}. Update the document instead.`});if(a&&Kj(a))throw new m(404,{message:`Client not found`});await e.env.data.clients.update(t,n,i);let o=await e.env.data.clients.get(t,n);if(!o)throw new m(404,{message:`Client not found`});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Update a Client`,beforeState:a,afterState:o,targetType:`client`,targetId:n,body:r}),e.json(o)}}),nse=N({route:(0,f.createRoute)({tags:[`clients`],method:`post`,path:`/`,request:{body:{content:{"application/json":{schema:f.z.object(kt.shape)}}},headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`create:clients`]}],responses:{201:{content:{"application/json":{schema:f.z.object(At.shape)}},description:`A client`}}}),handler:async e=>{let t=P(e),n=qj(e.req.valid(`json`)),r=await e.req.json().catch(()=>({}));if(n.client_id&&Ij(n.client_id))throw new m(400,{message:`Cannot create a Client ID Metadata Document client via the management API. CIMD clients are registered automatically on first /authorize.`});if(n.client_id&&Gj(n.client_id))throw new m(400,{message:`Cannot create a client with a reserved 'authhero-try-connection-' prefix.`});let i=Joe(n,r),a=i.token_endpoint_auth_method===`none`,o={...i,client_id:i.client_id||qa(),client_secret:a?void 0:i.client_secret||qa()},s=await e.env.data.clients.create(t,o);return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Create a Client`,afterState:s,targetType:`client`,targetId:s.client_id}),e.json(s,{status:201})}}),rse=N({route:(0,f.createRoute)({tags:[`clients`],method:`get`,path:`/{id}/connections`,request:{params:f.z.object({id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:clients`]}],responses:{200:{content:{"application/json":{schema:Jj}},description:`List of connections enabled for this client`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=await e.env.data.clients.get(t,n);if(!r)throw new m(404,{message:`Client not found`});let i=r.connections&&r.connections.length>0,a;if(i)a=await Promise.all(r.connections.map(async n=>({connection_id:n,connection:await e.env.data.connections.get(t,n)||void 0})));else{let{connections:n}=await e.env.data.connections.list(t,{});a=n.filter(e=>e.id).map(e=>({connection_id:e.id,connection:e}))}return e.json({enabled_connections:a})}}),ise=N({route:(0,f.createRoute)({tags:[`clients`],method:`patch`,path:`/{id}/connections`,request:{body:{content:{"application/json":{schema:Zoe}}},params:f.z.object({id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`update:clients`]}],responses:{200:{content:{"application/json":{schema:Jj}},description:`Updated list of connections for this client`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=e.req.valid(`json`),i=await e.env.data.clients.get(t,n);if(!i||Kj(i))throw new m(404,{message:`Client not found`});let a=[];for(let n of r)await e.env.data.connections.get(t,n)&&a.push(n);await e.env.data.clientConnections.updateByClient(t,n,a);let o=await Promise.all(a.map(async n=>({connection_id:n,connection:await e.env.data.connections.get(t,n)||void 0})));return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Update Client Connections`,targetType:`client_connection`,targetId:n}),e.json({enabled_connections:o})}}),ase=new f.OpenAPIHono().openapiRoutes([Qoe,$oe,ese,tse,nse,rse,ise]);function Yj(e){if(!e)return;let[t,n]=e.split(` `);if(!(!t||t.toLowerCase()!==`bearer`))return n?.trim()||void 0}function Xj(e){if(!e)return{};let[t,n]=e.split(` `);if(t?.toLowerCase()!==`basic`||!n)return{};try{let[e,t]=atob(n).split(`:`);return!e||!t?{}:{client_id:e,client_secret:t}}catch{return{}}}var Zj=`urn:authhero:management`;function ose(e){return e.replace(/:([a-zA-Z_][a-zA-Z0-9_]*)/g,`{$1}`)}function sse(e){let t=e.split(`:`);if(t.length!==2||!t[0]||!t[1])return[e];let n=`${t[1]}:${t[0]}`;return n===e?[e]:[e,n]}function Qj(e,t={}){let n=t.requireManagementAudience??!1,r=t.relaxManagementAudience??!1,i=t.additionalManagementAudiences,a=t.additionalIssuers;return async(t,o)=>{let s=t.req.matchedRoutes.find(e=>e.method.toUpperCase()===t.req.method&&e.path!==`/*`);if(!s)return await o();let c=ose(s.path),l=c.startsWith(`/api/v2`)?c.slice(7)||`/`:c,u=e.openAPIRegistry.definitions.find(e=>`route`in e&&e.route.path===l&&e.route.method.toUpperCase()===t.req.method.toUpperCase());if(u&&`route`in u){let e=u.route.security?.[0]?.Bearer;if(e===void 0)return await o();let s=Yj(t.req.header(`authorization`));if(!s)throw new L(401,{message:`Missing bearer token`});try{let o;if(a){let{payload:e}=t_(s),t=typeof e?.tenant_id==`string`?e.tenant_id:void 0;o=await a({tenant_id:t})}let c=await $O(t,s,{additionalIssuers:o});if(t.set(`user_id`,c.sub),t.set(`user`,c),c.azp&&t.set(`client_id`,c.azp),c.org_name&&t.set(`org_name`,c.org_name),c.org_id&&t.set(`organization_id`,c.org_id),!t.var.tenant_id&&c.tenant_id&&t.set(`tenant_id`,c.tenant_id),n){let e=c.aud,n=Array.isArray(e)?e:e?[e]:[],a=typeof c.tenant_id==`string`?c.tenant_id:void 0,o=i?await i({tenant_id:a}):[],s=new Set([Zj,...o]);if(!n.some(e=>s.has(e)))if(r)console.warn(`[authhero] management API accepted token without management audience (relaxManagementAudience=true): sub=${c.sub??`unknown`} aud=${JSON.stringify(e)}`);else throw new L(403,{message:`Invalid audience`});let l=typeof c.tenant_id==`string`?c.tenant_id:void 0,u=t.var.tenant_id;if(l&&u&&l!==u){let e=t.env.data?.multiTenancyConfig?.controlPlaneTenantId;if(!e||l!==e)throw new L(403,{message:`Cross-tenant management requires a control-plane token`})}}let l=Array.isArray(c.permissions)?c.permissions:[],u=typeof c.scope==`string`?c.scope.split(` `):Array.isArray(c.scope)?c.scope:[];if(e.length){let t=e.flatMap(sse);if(!(t.some(e=>l.includes(e))||t.some(e=>u.includes(e))))throw new L(403,{message:`Unauthorized`})}}catch(e){throw e instanceof m?e:new L(403,{message:`Invalid token`})}}return await o()}}function $j(e){if(e.app_type===`non_interactive`||e.app_type===`resource_server`)return!1;let t=e.grant_types??[];return t.length===0||t.some(e=>e===`authorization_code`||e===`implicit`)}var eM=`API Explorer Application`;async function tM(e,t,n={}){let{defaultAppName:r=`Default App`,callbacks:i=[],allowedLogoutUrls:a=[],webOrigins:o=[],createManagementClient:s=!0,managementApiIdentifier:c=Zj,managementApiScopes:l,debug:u=!1}=n,d=await e.tenants.get(t);if(!d)throw Error(`Cannot provision clients: tenant "${t}" not found`);let f=await cse(e,t,{currentDefaultClientId:d.default_client_id,defaultAppName:r,callbacks:i,allowedLogoutUrls:a,webOrigins:o,debug:u});d.default_client_id!==f.client_id&&(await e.tenants.update(t,{default_client_id:f.client_id}),u&&console.log(`✅ default_client_id set to "${f.client_id}"`));let p;return s&&(p=await lse(e,t,{managementApiIdentifier:c,managementApiScopes:l,debug:u})),{defaultClientId:f.client_id,managementClientId:p}}async function cse(e,t,n){if(n.currentDefaultClientId){let r=await e.clients.get(t,n.currentDefaultClientId);if(r&&$j(r))return r}let r=(await rM(e,t)).find($j);if(r)return r;let i=await e.clients.create(t,{client_id:qa(),client_secret:qa(),name:n.defaultAppName,app_type:`regular_web`,is_first_party:!0,grant_types:[`authorization_code`,`refresh_token`],callbacks:n.callbacks,allowed_logout_urls:n.allowedLogoutUrls,web_origins:n.webOrigins,connections:[],client_metadata:{universal_login_version:`2`}});return n.debug&&console.log(`✅ Default App created (${i.client_id})`),i}async function lse(e,t,n){let r=(await rM(e,t)).find(e=>e.app_type===`non_interactive`&&e.name===eM);if(r)return await nM(e,t,r.client_id,n),r.client_id;if(n.managementApiScopes){let{resource_servers:r}=await e.resourceServers.list(t,{});r.some(e=>e.identifier===n.managementApiIdentifier)||(await e.resourceServers.create(t,{name:`Authhero Management API`,identifier:n.managementApiIdentifier,allow_offline_access:!0,skip_consent_for_verifiable_first_party_clients:!1,token_lifetime:86400,token_lifetime_for_web:7200,signing_alg:`RS256`,scopes:n.managementApiScopes,options:{enforce_policies:!0,token_dialect:`access_token_authz`}}),n.debug&&console.log(`✅ Management API resource server created`))}let i=await e.clients.create(t,{client_id:qa(),client_secret:qa(),name:eM,app_type:`non_interactive`,is_first_party:!0,grant_types:[`client_credentials`]});return await nM(e,t,i.client_id,n),n.debug&&console.log(`✅ Management API (M2M) client created (${i.client_id})`),i.client_id}async function nM(e,t,n,r){(await use(e,t)).some(e=>e.client_id===n&&e.audience===r.managementApiIdentifier)||await e.clientGrants.create(t,{client_id:n,audience:r.managementApiIdentifier,scope:r.managementApiScopes?.map(e=>e.value)??[]})}async function rM(e,t){let n=[];for(let r=0;;r++){let{clients:i}=await e.clients.list(t,{page:r,per_page:100});if(n.push(...i),i.length<100)return n}}async function use(e,t){let n=[];for(let r=0;;r++){let{client_grants:i}=await e.clientGrants.list(t,{page:r,per_page:100});if(n.push(...i),i.length<100)return n}}var dse=N({route:(0,f.createRoute)({tags:[`tenants`,`settings`],method:`get`,path:`/settings`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:tenants`]}],responses:{200:{content:{"application/json":{schema:Rr}},description:`Current tenant settings`}}}),handler:async e=>{let t=P(e),n=await e.env.data.tenants.get(t);if(!n)throw new m(404,{message:`Tenant not found`});return e.json({...n,is_control_plane:iM(e,t)})}}),fse=N({route:(0,f.createRoute)({tags:[`tenants`,`settings`],method:`patch`,path:`/settings`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:f.z.object(Lr.shape).omit({database_version:!0}).partial()}}}},security:[{Bearer:[`update:tenants`]}],responses:{200:{content:{"application/json":{schema:Rr}},description:`Updated tenant settings`}}}),handler:async e=>{let t=P(e),{id:n,...r}=e.req.valid(`json`),i=await e.env.data.tenants.get(t);if(!i)throw new m(404,{message:`Tenant not found`});if(`default_audience`in r){let n=r.default_audience;if(typeof n==`string`&&n.length>0){let{resource_servers:r}=await e.env.data.resourceServers.list(t);if(!r.some(e=>e.identifier===n))throw new m(400,{message:`Resource server with identifier '${n}' not found`})}}if(`default_client_id`in r){let n=r.default_client_id;if(typeof n==`string`&&n.length>0){let r=await e.env.data.clients.get(t,n);if(!r)throw new m(400,{message:`Client with id '${n}' not found`});if(!$j(r))throw new m(400,{message:`Client '${n}' is not an interactive client and cannot be used as the default client`})}}let a=no(i,r);await e.env.data.tenants.update(t,a);let o=await e.env.data.tenants.get(t);if(!o)throw new m(500,{message:`Failed to retrieve updated tenant`});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Update tenant settings`,targetType:`tenant`,targetId:t,beforeState:i,afterState:o}),e.json({...o,is_control_plane:iM(e,t)})}}),pse=N({route:(0,f.createRoute)({tags:[`tenants`],method:`post`,path:`/{id}/redeploy`,request:{params:f.z.object({id:f.z.string()}),headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`update:tenants`]}],responses:{200:{content:{"application/json":{schema:Rr}},description:`Upgraded tenant settings`}}}),handler:async e=>{if(!iM(e,e.var.tenant_id))throw new m(403,{message:`Tenant upgrades can only be triggered from the control plane`});if(!e.env.tenantUpgrade)throw new m(501,{message:`Tenant upgrades are not configured for this deployment`});let{id:t}=e.req.valid(`param`),n=await e.env.data.tenants.get(t);if(!n)throw new m(404,{message:`Tenant not found`});if(n.deployment_type!==`wfp`)throw new m(400,{message:`Only WFP-provisioned tenants can be redeployed`});try{await e.env.tenantUpgrade(t)}catch(e){throw console.error(`Tenant upgrade failed`,{tenantId:t,err:e}),new m(500,{message:`Tenant upgrade failed`})}let r=await e.env.data.tenants.get(t);if(!r)throw new m(500,{message:`Failed to retrieve upgraded tenant`});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Redeploy tenant`,targetType:`tenant`,targetId:t,beforeState:n,afterState:r}),e.json({...r,is_control_plane:iM(e,t)})}}),mse=new f.OpenAPIHono().openapiRoutes([dse,fse,pse]);function iM(e,t){let n=e.env.data.multiTenancyConfig?.controlPlaneTenantId;return!n||n===t}var hse=Ua({logs:f.z.array(vr)}),gse=f.z.object({logs:f.z.array(vr),next:f.z.string().optional().openapi({description:`Opaque cursor for the next page; absent on the last page.`})}),_se=N({route:(0,f.createRoute)({tags:[`logs`],method:`get`,path:`/`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:logs`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(vr),hse,gse])}},description:`List of log rows`}}}),handler:async e=>{let t=P(e),{page:n,per_page:r,include_totals:i,sort:a,q:o,from:s,take:c,from_date:l,to_date:u}=e.req.valid(`query`),d=await e.env.data.logs.list(t,{page:n,per_page:r,include_totals:i,sort:Ha(a),q:o,from:s,take:c,from_date:l,to_date:u});return s!==void 0||c!==void 0?e.json({logs:d.logs,next:d.next}):e.json(Wa(i,d,`logs`))}}),vse=N({route:(0,f.createRoute)({tags:[`logs`],method:`get`,path:`/{id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({id:f.z.string()})},security:[{Bearer:[`read:logs`]}],responses:{200:{content:{"application/json":{schema:vr}},description:`A log entry`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=await e.env.data.logs.get(t,n);if(!r)throw new m(404);return e.json(r)}}),yse=new f.OpenAPIHono().openapiRoutes([_se,vse]),bse=ut.extend({created_at:f.z.string(),processed_at:f.z.string().nullable(),retry_count:f.z.number(),next_retry_at:f.z.string().nullable(),error:f.z.string().nullable(),dead_lettered_at:f.z.string().nullable().optional(),final_error:f.z.string().nullable().optional()}),xse=f.z.object({events:f.z.array(bse),start:f.z.number(),limit:f.z.number(),length:f.z.number()}),Sse=N({route:(0,f.createRoute)({tags:[`failed-events`],method:`get`,path:`/`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:logs`]}],responses:{200:{content:{"application/json":{schema:xse}},description:`Dead-lettered outbox events`}}}),handler:async e=>{let t=P(e),n=e.env.data.outbox;if(!n)throw new m(501,{message:`Outbox is not configured for this adapter`});let{page:r,per_page:i,include_totals:a}=e.req.valid(`query`),o=await n.listFailed(t,{page:r,per_page:i,include_totals:a});return e.json({events:o.events,start:o.start,limit:o.limit,length:o.length})}}),Cse=N({route:(0,f.createRoute)({tags:[`failed-events`],method:`post`,path:`/{id}/retry`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({id:f.z.string()})},security:[{Bearer:[`update:logs`]}],responses:{200:{content:{"application/json":{schema:f.z.object({id:f.z.string(),replayed:f.z.boolean()})}},description:`Event queued for retry`},404:{description:`Not found`}}}),handler:async e=>{let t=P(e),n=e.env.data.outbox;if(!n)throw new m(501,{message:`Outbox is not configured for this adapter`});let{id:r}=e.req.valid(`param`);if(!await n.replay(r,t))throw new m(404,{message:`Dead-lettered event not found`});return e.json({id:r,replayed:!0})}}),wse=new f.OpenAPIHono().openapiRoutes([Sse,Cse]),Tse=new Date(`2026-08-04T00:00:00.000Z`);function aM(e){let t=new Uint8Array(e);return crypto.getRandomValues(t),t}function oM(){return{lookup:ga(aM(7)),secret:ga(aM(32))}}async function sM(e){return Ta(await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(e)))}function cM(e,t){return`rt_${e}.${t}`}function lM(e){if(e.startsWith(`rt_`)){let t=e.slice(3),n=t.indexOf(`.`);if(n>0&&n<t.length-1)return{kind:`new`,lookup:t.slice(0,n),secret:t.slice(n+1)}}return{kind:`legacy`,id:e}}function uM(e=new Date){return e<Tse}var dM=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`,fM=32,Ese=10,pM=16;function Dse(e){let t=``;for(let n=Ese;n>0;n--)t=dM.charAt(e%fM)+t,e=Math.floor(e/fM);return t}function Ose(){let e=new Uint8Array(pM);crypto.getRandomValues(e);let t=``;for(let n=0;n<pM;n++)t+=dM.charAt(e[n]%fM);return t}function mM(){return Dse(Date.now())+Ose()}function hM(e){try{let t=/-----BEGIN (?:RSA )?(?:PRIVATE|PUBLIC) KEY-----([^-]*)-----END (?:RSA )?(?:PRIVATE|PUBLIC) KEY-----/.exec(e);if(!t||!t[1])throw Error(`Invalid PEM format`);return Uint8Array.from(atob(t[1].replace(/\s/g,``)),e=>e.charCodeAt(0)).buffer}finally{e=e.replace(/./g,`\0`)}}function kse(){return ga(crypto.getRandomValues(new Uint8Array(32)))}async function Ase(e,t){if(t===`plain`)return e;let n=new TextEncoder().encode(e),r=await crypto.subtle.digest(`SHA-256`,n);return ga(new Uint8Array(r))}var jse={RS256:`SHA-256`,RS384:`SHA-384`,RS512:`SHA-512`,ES256:`SHA-256`,ES384:`SHA-384`,ES512:`SHA-512`,HS256:`SHA-256`,HS384:`SHA-384`,HS512:`SHA-512`};async function gM(e,t){let n=jse[t];if(!n)throw Error(`Cannot compute id_token hash: unsupported signing alg ${t}`);let r=new TextEncoder().encode(e),i=await crypto.subtle.digest(n,r),a=new Uint8Array(i);return ga(a.slice(0,a.length/2))}var _M=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parse=s,e.stringifySetCookie=c,e.serialize=c,e.stringifySetCookie=c,e.serialize=c;var t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function s(e,t){let n=new o,r=e.length;if(r<2)return n;let i=t?.decode||f,a=0;do{let t=u(e,a,r);if(t===-1)break;let o=l(e,a,r);if(t>o){a=e.lastIndexOf(`;`,t-1)+1;continue}let s=d(e,a,t);n[s]===void 0&&(n[s]=i(d(e,t+1,o))),a=o+1}while(a<r);return n}function c(e,a,o){let s=typeof e==`object`?e:{...o,name:e,value:String(a)},c=(typeof a==`object`?a:o)?.encode||encodeURIComponent;if(!t.test(s.name))throw TypeError(`argument name is invalid: ${s.name}`);let l=s.value?c(s.value):``;if(!n.test(l))throw TypeError(`argument val is invalid: ${s.value}`);let u=s.name+`=`+l;if(s.maxAge!==void 0){if(!Number.isInteger(s.maxAge))throw TypeError(`option maxAge is invalid: ${s.maxAge}`);u+=`; Max-Age=`+s.maxAge}if(s.domain){if(!r.test(s.domain))throw TypeError(`option domain is invalid: ${s.domain}`);u+=`; Domain=`+s.domain}if(s.path){if(!i.test(s.path))throw TypeError(`option path is invalid: ${s.path}`);u+=`; Path=`+s.path}if(s.expires){if(!p(s.expires)||!Number.isFinite(s.expires.valueOf()))throw TypeError(`option expires is invalid: ${s.expires}`);u+=`; Expires=`+s.expires.toUTCString()}if(s.httpOnly&&(u+=`; HttpOnly`),s.secure&&(u+=`; Secure`),s.partitioned&&(u+=`; Partitioned`),s.priority)switch(typeof s.priority==`string`?s.priority.toLowerCase():void 0){case`low`:u+=`; Priority=Low`;break;case`medium`:u+=`; Priority=Medium`;break;case`high`:u+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${s.priority}`)}if(s.sameSite)switch(typeof s.sameSite==`string`?s.sameSite.toLowerCase():s.sameSite){case!0:case`strict`:u+=`; SameSite=Strict`;break;case`lax`:u+=`; SameSite=Lax`;break;case`none`:u+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${s.sameSite}`)}return u}function l(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function u(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function d(e,t,n){let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}function f(e){if(e.indexOf(`%`)===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function p(e){return a.call(e)===`[object Date]`}}))();function vM(e){return`${e}-${Hoe}`}function yM(e){if(!e)return!1;let t;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n===-1)return!1;t=e.slice(1,n)}else t=e.split(`:`)[0]??``;return t?t===`localhost`||t===`host.docker.internal`||t===`::1`||/^127(?:\.\d{1,3}){3}$/.test(t):!1}function bM(e){if(!e)return;let[t]=e.split(`:`);if(!t||t===`localhost`||/^(\d{1,3}\.){3}\d{1,3}$/.test(t))return;let n=t.split(`.`);return n.length>2?`.${n.slice(-2).join(`.`)}`:`.${t}`}function Mse(e,t){if(!t)return[];let n=vM(e),r=[],i=t.split(`;`);for(let e of i){let[t,...i]=e.trim().split(`=`);t===n&&i.length>0&&r.push(i.join(`=`))}return r}function xM(e,t){if(t)return(0,_M.parse)(t)[vM(e)]}function SM(e,t){let n=vM(e),r=yM(t),i={path:`/`,httpOnly:!0,secure:!r,maxAge:0,sameSite:r?`lax`:`none`,domain:t?bM(t):void 0};return r?[(0,_M.serialize)(n,``,i)]:[(0,_M.serialize)(n,``,i),(0,_M.serialize)(n,``,{...i,partitioned:!0})]}function CM(e,t,n){let r=vM(e),i=yM(n),a={path:`/`,httpOnly:!0,secure:!i,sameSite:i?`lax`:`none`,domain:n?bM(n):void 0};return i?[(0,_M.serialize)(r,t,{...a,maxAge:zj})]:[(0,_M.serialize)(r,``,{...a,maxAge:0}),(0,_M.serialize)(r,t,{...a,maxAge:zj,partitioned:!0})]}var wM=f.z.object({"#text":f.z.string()}),Nse=f.z.object({"#text":f.z.string(),"@_xmlns:saml":f.z.string().optional()});f.z.object({"samlp:AuthnRequest":f.z.object({"saml:Issuer":Nse,"@_xmlns:samlp":f.z.string(),"@_xmlns:saml":f.z.string().optional(),"@_ForceAuthn":f.z.string().transform(e=>e.toLowerCase()===`true`).optional(),"@_ID":f.z.string(),"@_IssueInstant":f.z.string().datetime(),"@_Destination":f.z.string().url(),"@_AssertionConsumerServiceURL":f.z.string().url().optional(),"@_ProtocolBinding":f.z.string().optional(),"@_Version":f.z.string()})}),f.z.array(f.z.object({":@":f.z.object({"@_xmlns":f.z.string(),"@_entityID":f.z.string()}),EntityDescriptor:f.z.array(f.z.object({":@":f.z.object({"@_protocolSupportEnumeration":f.z.string()}),IDPSSODescriptor:f.z.array(f.z.union([f.z.object({KeyDescriptor:f.z.array(f.z.object({KeyInfo:f.z.array(f.z.object({X509Data:f.z.array(f.z.object({X509Certificate:f.z.array(wM)}))})),":@":f.z.object({"@_xmlns":f.z.string()})})),":@":f.z.object({"@_use":f.z.string()})}),f.z.object({SingleLogoutService:f.z.array(f.z.object({})),":@":f.z.object({"@_Binding":f.z.string(),"@_Location":f.z.string()})}),f.z.object({NameIDFormat:f.z.array(wM)}),f.z.object({SingleSignOnService:f.z.array(f.z.object({})),":@":f.z.object({"@_Binding":f.z.string(),"@_Location":f.z.string()})}),f.z.object({Attribute:f.z.array(f.z.object({})),":@":f.z.object({"@_Name":f.z.string(),"@_NameFormat":f.z.string(),"@_FriendlyName":f.z.string(),"@_xmlns":f.z.string()})})]))}))}));var Pse=f.z.object({"saml:Attribute":f.z.array(f.z.object({"saml:AttributeValue":f.z.array(f.z.object({"#text":f.z.string()})),":@":f.z.object({"@_xmlns:xs":f.z.string().optional(),"@_xmlns:xsi":f.z.string(),"@_xsi:type":f.z.string()}).optional()})),":@":f.z.object({"@_Name":f.z.string(),"@_NameFormat":f.z.string(),"@_FriendlyName":f.z.string().optional()})}),Fse=f.z.object({"ds:Transform":f.z.array(f.z.any()),":@":f.z.object({"@_Algorithm":f.z.string()})}),TM=f.z.object({"ds:Signature":f.z.array(f.z.union([f.z.object({"ds:SignedInfo":f.z.array(f.z.union([f.z.object({"ds:CanonicalizationMethod":f.z.array(f.z.object({":@":f.z.object({"@_Algorithm":f.z.string()})}))}),f.z.object({"ds:SignatureMethod":f.z.array(f.z.object({":@":f.z.object({"@_Algorithm":f.z.string()})}))}),f.z.object({"ds:Reference":f.z.array(f.z.union([f.z.object({"ds:Transforms":f.z.array(Fse)}),f.z.object({"ds:DigestMethod":f.z.array(f.z.object({":@":f.z.object({"@_Algorithm":f.z.string()})}))}),f.z.object({"ds:DigestValue":f.z.array(wM)})])),":@":f.z.object({"@_URI":f.z.string().optional()}).optional()})]))}),f.z.object({"ds:SignatureValue":f.z.array(wM)}),f.z.object({"ds:KeyInfo":f.z.array(f.z.union([f.z.object({"ds:KeyValue":f.z.array(f.z.object({"ds:RSAKeyValue":f.z.array(f.z.union([f.z.object({"ds:Modulus":f.z.array(wM)}),f.z.object({"ds:Exponent":f.z.array(wM)})]))}))}),f.z.object({"ds:X509Data":f.z.array(f.z.object({"ds:X509Certificate":f.z.array(wM)}))}),f.z.object({"ds:KeyValue":f.z.array(f.z.object({"ds:RSAKeyValue":f.z.array(f.z.union([f.z.object({"ds:Modulus":f.z.array(wM)}),f.z.object({"ds:Exponent":f.z.array(wM)})]))})),"ds:X509Data":f.z.array(f.z.object({"ds:X509Certificate":f.z.array(wM)}))})]))})])),":@":f.z.object({"@_xmlns:ds":f.z.string().optional()}).optional()});f.z.array(f.z.object({"samlp:Response":f.z.array(f.z.union([f.z.object({"saml:Issuer":f.z.array(wM)}),TM,f.z.object({"samlp:Status":f.z.array(f.z.object({"samlp:StatusCode":f.z.array(wM),":@":f.z.object({"@_Value":f.z.string()})}))}),f.z.object({"saml:Assertion":f.z.array(f.z.union([f.z.object({"saml:Issuer":f.z.array(wM)}),TM,f.z.object({"saml:Subject":f.z.array(f.z.union([f.z.object({"saml:NameID":f.z.array(wM),":@":f.z.object({"@_Format":f.z.string()})}),f.z.object({"saml:SubjectConfirmation":f.z.array(f.z.object({"saml:SubjectConfirmationData":f.z.array(f.z.any()),":@":f.z.object({"@_InResponseTo":f.z.string(),"@_NotOnOrAfter":f.z.string(),"@_Recipient":f.z.string()})})),":@":f.z.object({"@_Method":f.z.string()})})]))}),f.z.object({"saml:Conditions":f.z.array(f.z.object({"saml:AudienceRestriction":f.z.array(f.z.object({"saml:Audience":f.z.array(wM)}))})),":@":f.z.object({"@_NotBefore":f.z.string(),"@_NotOnOrAfter":f.z.string()})}),f.z.object({"saml:AuthnStatement":f.z.array(f.z.object({"saml:AuthnContext":f.z.array(f.z.object({"saml:AuthnContextClassRef":f.z.array(wM)}))})),":@":f.z.object({"@_AuthnInstant":f.z.string(),"@_SessionIndex":f.z.string(),"@_SessionNotOnOrAfter":f.z.string()})}),f.z.object({"saml:AttributeStatement":f.z.array(Pse)})])),":@":f.z.object({"@_xmlns":f.z.string(),"@_ID":f.z.string(),"@_IssueInstant":f.z.string(),"@_Version":f.z.string()})})])),":@":f.z.object({"@_xmlns:samlp":f.z.string(),"@_xmlns:saml":f.z.string(),"@_Destination":f.z.string(),"@_ID":f.z.string(),"@_InResponseTo":f.z.string(),"@_IssueInstant":f.z.string(),"@_Version":f.z.string()})})),Object.freeze({ALLOW:`allow`,BLOCK:`block`,THROW:`throw`}),Object.freeze({allow:0,leave:1,remove:2,throw:3});var EM=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`,Ise=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][EM]={startIndex:t})}static getMetaDataSymbol(){return EM}},Lse=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`,Rse=`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`,zse=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,Bse=`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,DM=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},Vse=DM(Lse,Rse),Hse=DM(zse,Bse,`u`),Use=DM(`:A-Za-z_`,`:A-Za-z_\\-\\.\\d`),Wse=(e=`1.0`,t=!1)=>t?Use:e===`1.1`?Hse:Vse,OM=[`name`,`ncName`,`qName`,`nmToken`,`nmTokens`],kM=(e,{xmlVersion:t=`1.0`,asciiOnly:n=!1,maxCacheSize:r=2048}={})=>{if(!OM.includes(e))throw TypeError(`Unknown production "${e}". Must be one of: ${OM.join(`, `)}`);let i=Wse(t,n)[e],a=new Map,o=e=>{let t=a.get(e);if(t!==void 0)return t;let n=i.test(e);return a.size<r&&a.set(e,n),n};return o.reset=()=>{a=new Map},o},Gse=[48,1632,1776,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,65296,120782,120792,120802,120812,120822,66720,68912,69734,69872,69942,70096,70384,70736,70864,71248,71360,71472,71904,72016,72688,72784,73040,73120,73552,92768,92864,93008,123200,123632,124144,125264,130032],Kse=new Map,qse=65535,Jse=1632,Yse=new Uint8Array(63904).fill(255);for(let e of Gse)for(let t=0;t<10;t++){let n=e+t;n<=qse?Yse[n-Jse]=t:Kse.set(n,t)}var AM=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(r.trim()&&(t.push(this._parseSegment(r.trim())),r=``),t.push({type:`deep-wildcard`}),n+=2):(r.trim()&&t.push(this._parseSegment(r.trim())),r=``,n++):(r+=e[n],n++);return r.trim()&&t.push(this._parseSegment(r.trim())),t}_parseSegment(e){let t={type:`tag`},n=null,r=e,i=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(i&&(r=i[1]+i[3],i[2])){let e=i[2].slice(1,-1);e&&(n=e)}let a,o=r;if(r.includes(`::`)){let t=r.indexOf(`::`);if(a=r.substring(0,t).trim(),o=r.substring(t+2).trim(),!a)throw Error(`Invalid namespace in pattern: ${e}`)}let s,c=null;if(o.includes(`:`)){let e=o.lastIndexOf(`:`),t=o.substring(0,e).trim(),n=o.substring(e+1).trim();[`first`,`last`,`odd`,`even`].includes(n)||/^nth\(\d+\)$/.test(n)?(s=t,c=n):s=o}else s=o;if(!s)throw Error(`Invalid segment pattern: ${e}`);if(t.tag=s,a&&(t.namespace=a),n)if(n.includes(`=`)){let e=n.indexOf(`=`);t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim();if(c){let e=c.match(/^nth\((\d+)\)$/);e?(t.position=`nth`,t.positionValue=parseInt(e[1],10)):t.position=c}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}},Xse=class{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getAnyParentAttr(e){return this._matcher.getAnyParentAttr(e)}hasAnyParentAttr(e){return this._matcher.hasAnyParentAttr(e)}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},jM=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Xse(this),this._keptAttrs=[]}push(e,t=null,n=null,r=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length,a=this.siblingStacks[i];a||(a={counts:new Map,total:0},this.siblingStacks[i]=a);let o=n?`${n}:${e}`:e,s=a.counts.get(o)||0,c=a.total;a.counts.set(o,s+1),a.total++;let l={tag:e,position:c,counter:s};n!=null&&(l.namespace=n),t!=null&&(l.values=t),this.path.push(l);let u=this.path.length,d=r===null?null:r.keep;if(d!=null&&d.length>0&&t)for(let e=0;e<d.length;e++){let n=d[e];t[n]!==void 0&&this._keptAttrs.push({depth:u,name:n,value:t[n]})}}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1);let t=this.path.length+1;for(;this._keptAttrs.length>0&&this._keptAttrs[this._keptAttrs.length-1].depth>=t;)this._keptAttrs.pop();return e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getAnyParentAttr(e){let t=this._keptAttrs;for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return t[n].value}hasAnyParentAttr(e){let t=this._keptAttrs;for(let n=t.length-1;n>=0;n--)if(t[n].name===e)return!0;return!1}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[],this._keptAttrs=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),keptAttrs:this._keptAttrs.map(e=>({...e}))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),this._keptAttrs=(e.keptAttrs||[]).map(e=>({...e}))}readOnly(){return this._view}},MM=[{id:`html-script-open`,description:`<script opening tag`,pattern:/<script[\s>/]/i},{id:`html-script-close`,description:`<\/script closing tag`,pattern:/<\/script[\s>]/i},{id:`html-javascript-protocol`,description:`javascript: URI scheme (with optional whitespace/encoding)`,pattern:/j[\t\n\r ]*a[\t\n\r ]*v[\t\n\r ]*a[\t\n\r ]*s[\t\n\r ]*c[\t\n\r ]*r[\t\n\r ]*i[\t\n\r ]*p[\t\n\r ]*t[\t\n\r ]*:/i},{id:`html-vbscript-protocol`,description:`vbscript: URI scheme`,pattern:/vbscript[\t\n\r ]*:/i},{id:`html-data-html`,description:`data:text/html URI — can execute scripts in browsers`,pattern:/data[\t\n\r ]*:[\t\n\r ]*text\/html/i},{id:`html-data-xhtml`,description:`data:application/xhtml+xml URI`,pattern:/data[\t\n\r ]*:[\t\n\r ]*application\/xhtml/i},{id:`html-data-svg`,description:`data:image/svg+xml URI — can execute scripts`,pattern:/data[\t\n\r ]*:[\t\n\r ]*image\/svg\+xml/i},{id:`html-inline-event-handler`,description:`Inline event handler attributes: onclick=, onerror=, onload=, etc.`,pattern:/\bon\w{1,30}\s*=/i},{id:`html-entity-obfuscated-script`,description:`HTML-entity-encoded <script (e.g. &#x3C;script or &lt;script)`,pattern:/(?:&#x0*3[Cc];?|&#0*60;?|&lt;)\s*script/i},{id:`html-entity-obfuscated-javascript`,description:`HTML-entity-encoded javascript: (partial — catches common &#106; or &#x6a; for "j")`,pattern:/(?:&#x0*6[Aa];?|&#0*106;?)\s*(?:&#x0*61;?|a)[\s\S]{0,80}script\s*:/i},{id:`html-style-expression`,description:`CSS expression() — IE-era code execution in style attributes`,pattern:/style[\s\S]{0,20}expression\s*\(/i},{id:`html-object-embed`,description:`<object or <embed tags that can load active content`,pattern:/<(?:object|embed)[\s>/]/i},{id:`html-base-tag`,description:`<base href= — can hijack all relative URLs on a page`,pattern:/<base[\s>]/i},{id:`html-meta-refresh`,description:`<meta http-equiv="refresh" — can redirect users`,pattern:/<meta[\s\S]{0,40}http-equiv[\s\S]{0,20}refresh/i},{id:`html-srcdoc`,description:`srcdoc= attribute on iframes — embeds HTML that can run scripts`,pattern:/srcdoc\s*=/i},{id:`html-iframe`,description:`<iframe tag`,pattern:/<iframe[\s>/]/i},{id:`html-form`,description:`<form tag — can be used for phishing / credential harvesting injection`,pattern:/<form[\s>/]/i}],NM=[{id:`xml-cdata-injection`,description:`CDATA section injection: <![CDATA[ breaks out of text node context`,pattern:/<!\[CDATA\[/i},{id:`xml-cdata-close`,description:`CDATA close sequence: ]]> can terminate an enclosing CDATA section`,pattern:/\]\]>/},{id:`xml-processing-instruction`,description:`XML processing instruction: <?xml-stylesheet or <?php etc.`,pattern:/<\?(?:xml[\- ]|php|asp)/i},{id:`xml-doctype-injection`,description:`DOCTYPE declaration embedded in content — can define entities`,pattern:/<!DOCTYPE(?:[\s[]|$)/i},{id:`xml-entity-system`,description:`SYSTEM keyword — used in external entity declarations (XXE)`,pattern:/\bSYSTEM\s+["']/i},{id:`xml-entity-public`,description:`PUBLIC keyword — used in external entity declarations (XXE)`,pattern:/\bPUBLIC\s+["']/i},{id:`xml-entity-declaration`,description:`<!ENTITY declaration — defines entities, potential XXE or entity expansion`,pattern:/<!ENTITY[\s%]/i},{id:`xml-billion-laughs`,description:`Entity reference chaining / billion laughs: repeated &eX; style references`,pattern:/(?:&\w{1,20};){3,}/},{id:`xml-namespace-confusion`,description:`xmlns: attribute injection — can redefine namespaces to confuse parsers`,pattern:/\bxmlns\s*(?::\w{1,40})?\s*=/i},{id:`xml-comment-injection`,description:`<!-- comment injection — can hide content from some parsers`,pattern:/<!--/},{id:`xml-comment-close`,description:`--> closes an enclosing XML comment`,pattern:/-->/},{id:`xml-pi-close`,description:`?> closes an enclosing processing instruction`,pattern:/\?>/}],PM=[{id:`svg-script-element`,description:`<script element inside SVG executes JavaScript`,pattern:/<script[\s>/]/i},{id:`svg-xlink-href-javascript`,description:`xlink:href with javascript: — classic SVG XSS via <a> or <use>`,pattern:/xlink\s*:\s*href\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-href-javascript`,description:`href= with javascript: in SVG context (<a>, <animate>, etc.)`,pattern:/href\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-foreignobject`,description:`<foreignObject embeds HTML inside SVG — can execute scripts`,pattern:/<foreignObject[\s>/]/i},{id:`svg-use-external`,description:`<use xlink:href or href pointing to external resource (non-fragment URL)`,pattern:/<use[\s\S]{0,60}(?:xlink\s*:\s*)?href\s*=\s*(?:["'][^#]|[^"'#\s>])/i},{id:`svg-animate-href`,description:`<animate attributeName="href" — can dynamically change href to javascript:`,pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*href["']/i},{id:`svg-animate-xlinkhref`,description:`<animate attributeName="xlink:href"`,pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*xlink\s*:\s*href["']/i},{id:`svg-set-javascript`,description:`<set to="javascript:..." — sets an attribute to a javascript: URI`,pattern:/<set[\s\S]{0,80}to\s*=\s*["']?\s*javascript\s*:/i},{id:`svg-event-handler`,description:`SVG-specific event handler attributes: onload=, onerror=, onactivate=, etc.`,pattern:/\bon(?:load|error|activate|begin|end|repeat|focus|blur|click|mouse\w{1,20}|key\w{1,20})\s*=/i},{id:`svg-handler-generic`,description:`Generic on* handler catch-all for SVG attributes`,pattern:/\bon\w{1,30}\s*=/i},{id:`svg-filter-feimage`,description:`<feImage href= — filter primitive that can load external resources`,pattern:/<feImage[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=/i},{id:`svg-image-external`,description:`<image xlink:href with http/https or javascript protocol`,pattern:/<image[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=\s*["']?\s*(?:https?|javascript)\s*:/i},{id:`svg-style-javascript`,description:`style= attribute containing javascript: (e.g. background:url(javascript:...))`,pattern:/style\s*=[\s\S]{0,60}javascript\s*:/i}],FM=[{id:`sql-block-comment-open`,description:`SQL block comment open: /* ... */ — unusual in legitimate user text`,pattern:/\/\*/},{id:`sql-union-select`,description:`UNION SELECT — most common SQL injection aggregation attack`,pattern:/\bUNION\s{1,20}(?:ALL\s{1,20})?SELECT\b/i},{id:`sql-drop-table`,description:`DROP TABLE — destructive DDL injection`,pattern:/\bDROP\s{1,20}TABLE\b/i},{id:`sql-drop-database`,description:`DROP DATABASE — destructive DDL injection`,pattern:/\bDROP\s{1,20}DATABASE\b/i},{id:`sql-insert-into`,description:`INSERT INTO — data injection`,pattern:/\bINSERT\s{1,20}INTO\b/i},{id:`sql-delete-from`,description:`DELETE FROM — data deletion injection`,pattern:/\bDELETE\s{1,20}FROM\b/i},{id:`sql-update-set`,description:`UPDATE ... SET — data modification injection`,pattern:/\bUPDATE\b[\s\S]{1,60}\bSET\b/i},{id:`sql-exec-xp`,description:`EXEC xp_ — MSSQL extended stored procedure execution`,pattern:/\bEXEC(?:UTE)?\s{1,20}xp_/i},{id:`sql-tautology-string`,description:`Classic string tautology: ' OR '1'='1 or " OR "1"="1"`,pattern:/'\s{0,10}OR\s{0,10}'[^']{0,20}'\s*=\s*'[^']{0,20}/i},{id:`sql-tautology-numeric`,description:`Numeric tautology: OR 1=1`,pattern:/\bOR\s{1,10}1\s*=\s*1\b/i},{id:`sql-always-true-zero`,description:`Numeric tautology: OR 0=0`,pattern:/\bOR\s{1,10}0\s*=\s*0\b/i},{id:`sql-sleep-benchmark`,description:`Time-based blind injection: SLEEP() or BENCHMARK()`,pattern:/\b(?:SLEEP|BENCHMARK)\s*\(/i},{id:`sql-waitfor-delay`,description:`MSSQL time-based blind injection: WAITFOR DELAY`,pattern:/\bWAITFOR\s{1,20}DELAY\b/i},{id:`sql-char-function`,description:`CHAR() function — used to obfuscate injected strings`,pattern:/\bCHAR\s*\(\s*\d{1,3}/i},{id:`sql-information-schema`,description:`INFORMATION_SCHEMA — reconnaissance query for table/column enumeration`,pattern:/\bINFORMATION_SCHEMA\b/i}],IM=[{id:`shell-path-traversal-unix`,description:`Unix path traversal: ../ — climbing the directory tree`,pattern:/\.\.\//},{id:`shell-path-traversal-windows`,description:`Windows path traversal: ..\\ — climbing the directory tree`,pattern:/\.\.\\/},{id:`shell-path-traversal-encoded`,description:`URL-encoded path traversal: %2e%2e or %2f variants`,pattern:/%2e%2e|%2f\.\.|\.\.%2f/i},{id:`shell-null-byte`,description:`Null byte injection: \\x00 or %00 — truncates strings in C-backed functions`,pattern:/\x00|%00/},{id:`shell-semicolon`,description:`Semicolon command separator: cmd1; cmd2`,pattern:/;/},{id:`shell-pipe`,description:`Pipe operator: cmd1 | cmd2`,pattern:/\|/},{id:`shell-and-operator`,description:`AND operator: cmd1 && cmd2`,pattern:/&&/},{id:`shell-or-operator`,description:`OR operator: cmd1 || cmd2`,pattern:/\|\|/},{id:`shell-backtick`,description:"Backtick command substitution: `cmd`",pattern:/`/},{id:`shell-dollar-paren`,description:`Dollar-paren command substitution: $(cmd)`,pattern:/\$\(/},{id:`shell-dollar-brace`,description:"Dollar-brace variable expansion: ${var} — can be abused for injection",pattern:/\$\{/},{id:`shell-redirect-out`,description:`Output redirection: cmd > file or cmd >> file`,pattern:/>{1,2}/},{id:`shell-redirect-in`,description:`Input redirection: cmd < file`,pattern:/</},{id:`shell-newline-injection`,description:`Newline injection: \\n or \\r — can inject new shell commands`,pattern:/[\n\r]/},{id:`shell-glob-star`,description:`Glob expansion: * or ? — can expand to unintended files`,pattern:/[/\\][*?]/},{id:`shell-absolute-root`,description:`Absolute root path injection: string starting with / or \\ (Windows UNC)`,pattern:/^(?:\/|\\\\)/},{id:`shell-windows-drive`,description:`Windows drive letter path injection: C:\\ or D:/`,pattern:/^[a-zA-Z]:[/\\]/},{id:`shell-curl-wget`,description:`curl/wget with URL or flags — can exfiltrate data or download payloads`,pattern:/\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i}],LM=[{id:`redos-nested-quantifier-plus`,description:`Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.`,pattern:/\([^)]*\+[^)]*\)[+*]/},{id:`redos-nested-quantifier-star`,description:`Nested * quantifier: (a*)* or (a*)+ — catastrophic backtracking`,pattern:/\([^)]*\*[^)]*\)[*+]/},{id:`redos-nested-groups`,description:`Doubly nested quantified groups: ((a+)+) — guaranteed catastrophic`,pattern:/\(\([^)]{0,40}\)[+*]\)[+*]/},{id:`redos-alternation-overlap`,description:`Overlapping alternation under quantifier: (a|a)+ — ambiguous NFA paths`,pattern:/\(([^|()]{1,20})\|(?:\1)(?:\|[^|()]{1,20}){0,5}\)[+*?]{1,2}/},{id:`redos-star-plus-concat`,description:`(x*x)+ pattern — triggers super-linear backtracking`,pattern:/\([^)]{0,10}\*[^)]{0,10}\)[+*]/},{id:`redos-dot-star-greedy`,description:`(.*){n,} or (.+){n,} — repeated greedy dot quantifiers`,pattern:/\(\.[*+]\)\{?\d/},{id:`redos-large-repetition`,description:`Very large fixed or range repetition count {1000,} or {1000,n} — denial of service via backtracking`,pattern:/\{\d{4,}(?:,\d*)?\}/},{id:`redos-catastrophic-alternation`,description:`Long alternation with many similar branches — polynomial backtracking risk`,pattern:/\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/}],RM=`["'\\s]*:`,zM=[{id:`nosql-where-operator`,description:`$where — executes arbitrary JavaScript server-side in MongoDB`,pattern:RegExp(`\\$where${RM}`,`i`)},{id:`nosql-ne-operator`,description:`$ne — "not equal" operator used to bypass equality checks`,pattern:RegExp(`\\$ne${RM}`,`i`)},{id:`nosql-gt-operator`,description:`$gt — "greater than" used to bypass password/value checks`,pattern:RegExp(`\\$gte?${RM}`,`i`)},{id:`nosql-lt-operator`,description:`$lt / $lte — "less than" bypass variants`,pattern:RegExp(`\\$lte?${RM}`,`i`)},{id:`nosql-regex-operator`,description:`$regex — can be used to extract data character by character (blind injection)`,pattern:RegExp(`\\$regex${RM}`,`i`)},{id:`nosql-or-operator`,description:`$or — logical OR; used to create always-true conditions`,pattern:RegExp(`\\$or${RM}\\s*\\[`,`i`)},{id:`nosql-and-operator`,description:`$and — logical AND operator injection`,pattern:RegExp(`\\$and${RM}\\s*\\[`,`i`)},{id:`nosql-nor-operator`,description:`$nor — logical NOR operator injection`,pattern:RegExp(`\\$nor${RM}\\s*\\[`,`i`)},{id:`nosql-exists-operator`,description:`$exists — can enumerate fields to determine schema`,pattern:RegExp(`\\$exists${RM}`,`i`)},{id:`nosql-in-operator`,description:`$in — matches any value in a list; can enumerate values`,pattern:RegExp(`\\$in${RM}\\s*\\[`,`i`)},{id:`nosql-expr-operator`,description:`$expr — allows aggregation expressions in queries (MongoDB 3.6+)`,pattern:RegExp(`\\$expr${RM}`,`i`)},{id:`nosql-function-operator`,description:`$function — executes arbitrary JavaScript in MongoDB 4.4+`,pattern:RegExp(`\\$function${RM}`,`i`)},{id:`nosql-accumulator-operator`,description:`$accumulator — custom aggregation with arbitrary JS execution`,pattern:RegExp(`\\$accumulator${RM}`,`i`)},{id:`nosql-proto-pollution`,description:`__proto__ — prototype pollution via object key injection`,pattern:/__proto__/},{id:`nosql-constructor-prototype`,description:`constructor.prototype — alternative prototype pollution vector (dot notation or JSON key)`,pattern:/constructor[\s"':.,{\[]*prototype/i},{id:`nosql-proto-bracket`,description:`["__proto__"] — bracket-notation prototype pollution`,pattern:/\[["']__proto__["']\]/}],BM=[{id:`log-crlf-injection`,description:`CRLF injection: literal \\r or \\n embeds fake log lines`,pattern:/[\r\n]/},{id:`log-url-encoded-crlf`,description:`URL-encoded CRLF: %0d, %0a, %0D, %0A — decoded by some log parsers`,pattern:/%0[dDaA]/},{id:`log-unicode-newline`,description:`Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)`,pattern:/[\u2028\u2029]/},{id:`log-log4shell-jndi`,description:"Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",pattern:/\$\{jndi\s*:/i},{id:`log-log4shell-obfuscated`,description:"Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",pattern:/\$\{::-/},{id:`log-log4j-lookup`,description:"Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} — data exfiltration",pattern:/\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i},{id:`log-ssti-double-brace`,description:`SSTI double-brace: {{expression}} — Jinja2, Twig, Handlebars, etc.`,pattern:/\{\{[\s\S]{0,80}\}\}/},{id:`log-ssti-hash-brace`,description:`SSTI hash-brace: #{expression} — Thymeleaf, Velocity, Ruby ERB`,pattern:/#\{[\s\S]{0,80}\}/},{id:`log-ssti-dollar-brace`,description:"SSTI/EL injection: ${expression with operators or method calls} — JSP EL, Freemarker, SpEL",pattern:/\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i},{id:`log-ssti-percent-tag`,description:`SSTI ERB/ASP tag: <%= expression %> — Ruby ERB, ASP`,pattern:/<%=[\s\S]{0,80}%>/},{id:`log-null-byte`,description:`Null byte: \\x00 or %00 — can truncate log entries in C-backed loggers`,pattern:/\x00|%00/},{id:`log-ansi-escape`,description:`ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed`,pattern:/\x1b\[/}],Zse=[{id:`sql-line-comment`,description:`SQL line comment: -- followed by whitespace or end of string`,pattern:/--(?:\s|$)/},{id:`sql-stacked-query`,description:`Stacked queries: semicolon immediately followed by a SQL keyword`,pattern:/;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i},{id:`sql-hex-encoding`,description:`Hex-encoded string injection: 0x41414141 style (MySQL)`,pattern:/\b0x[0-9a-f]{4,}/i}],VM=[...FM,...Zse];MM.label=`HTML`,NM.label=`XML`,PM.label=`SVG`,FM.label=`SQL`,VM.label=`SQL-STRICT`,IM.label=`SHELL`,LM.label=`REDOS`,zM.label=`NOSQL`,BM.label=`LOG`,Object.freeze({HTML:MM,XML:NM,SVG:PM,SQL:FM,"SQL-STRICT":VM,SHELL:IM,REDOS:LM,NOSQL:zM,LOG:BM}),Ise.getMetaDataSymbol();function HM(e){return String(e).replace(/--/g,`- -`).replace(/--/g,`- -`).replace(/-$/,`- `)}function UM(e){return String(e).replace(/\]\]>/g,`]]]]><![CDATA[>`)}function WM(e){return String(e).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`)}var Qse=`
382
382
  `;function $se(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(JM(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function GM(e,t,n,r,i){return!n.sanitizeName||i(e)?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function ece(e,t){let n=``;t.format&&(n=Qse);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;e<t.stopNodes.length;e++){let n=t.stopNodes[e];typeof n==`string`?r.push(new AM(n)):n instanceof AM&&r.push(n)}let i=kM(`qName`,{xmlVersion:$se(e,t)}),a=new jM;return KM(e,t,n,a,r,i)}function KM(e,t,n,r,i,a){let o=``,s=!1;if(t.maxNestedTags&&r.getDepth()>t.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=XM(n,t),n}return``}for(let c=0;c<e.length;c++){let l=e[c],u=JM(l);if(u===void 0)continue;let d=u===t.textNodeName||u===t.cdataPropName||u===t.commentPropName||u[0]===`?`?u:GM(u,!1,t,r,a),f=tce(l[`:@`],t);r.push(d,f);let p=rce(r,i);if(d===t.textNodeName){let e=l[u];p||(e=t.tagValueProcessor(d,e),e=XM(e,t)),s&&(o+=n),o+=e,s=!1,r.pop();continue}else if(d===t.cdataPropName){s&&(o+=n);let e=l[u][0][t.textNodeName],i=UM(e);o+=`<![CDATA[${i}]]>`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=HM(e);o+=n+`<!--${i}-->`,s=!0,r.pop();continue}else if(d[0]===`?`){let e=YM(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${YM(l[`:@`],t,p,r,a)}`,g;g=p?qM(l[u],t):KM(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}</${d}>`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(`</`))?o+=n+t.indentBy+g+n:o+=g,o+=`</${d}>`):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function tce(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=WM(e[i]),r=!0}return r?n:null}function qM(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r<e.length;r++){let i=e[r],a=JM(i);if(a===t.textNodeName)n+=i[a];else if(a===t.cdataPropName)n+=i[a][0][t.textNodeName];else if(a===t.commentPropName)n+=i[a][0][t.textNodeName];else if(a&&a[0]===`?`)continue;else if(a){let e=nce(i[`:@`],t),r=qM(i[a],t);!r||r.length===0?n+=`<${a}${e}/>`:n+=`<${a}${e}>${r}</${a}>`}}return n}function nce(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${WM(i)}"`}return n}function JM(e){let t=Object.keys(e);for(let n=0;n<t.length;n++){let r=t[n];if(Object.prototype.hasOwnProperty.call(e,r)&&r!==`:@`)return r}}function YM(e,t,n,r,i){let a=``;if(e&&!t.ignoreAttributes)for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;let s=o.substr(t.attributeNamePrefix.length),c=n?s:GM(s,!0,t,r,i),l;n?l=e[o]:(l=t.attributeValueProcessor(o,e[o]),l=XM(l,t)),l===!0&&t.suppressBooleanAttributes?a+=` ${c}`:a+=` ${c}="${WM(l)}"`}return a}function rce(e,t){if(!t||t.length===0)return!1;for(let n=0;n<t.length;n++)if(e.matches(t[n]))return!0;return!1}function XM(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){let r=t.entities[n];e=e.replace(r.regex,r.val)}return e}function ice(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var ace={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&amp;`},{regex:RegExp(`>`,`g`),val:`&gt;`},{regex:RegExp(`<`,`g`),val:`&lt;`},{regex:RegExp(`'`,`g`),val:`&apos;`},{regex:RegExp(`"`,`g`),val:`&quot;`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ZM(e){if(this.options=Object.assign({},ace,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let t=this.options.stopNodes[e];typeof t==`string`?this.stopNodeExpressions.push(new AM(t)):t instanceof AM&&this.stopNodeExpressions.push(t)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=ice(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=lce),this.processTextOrObjNode=sce,this.options.format?(this.indentate=cce,this.tagEndChar=`>
@@ -455,7 +455,7 @@ var h2=document.documentElement;if(!h2.classList.contains('ah-dark-mode')&&!h2.c
455
455
  ${r}
456
456
  </form>
457
457
  </body>
458
- </html>`;return n.set(`content-type`,`text/html; charset=utf-8`),n.set(`cache-control`,`no-store`),n.set(`pragma`,`no-cache`),new Response(i,{status:200,headers:n})}var hP=[`openid`,`profile`,`email`,`address`,`phone`,`offline_access`];async function Ide(e,t,n,r){let i=[];if(!(await e.env.data.tenants.get(t))?.flags?.inherit_global_permissions_in_organizations)return[];let a=await e.env.data.userRoles.list(t,n,void 0,``),o=await Promise.all(a.map(n=>e.env.data.rolePermissions.list(t,n.id,{per_page:1e3})));for(let e of o)e.forEach(e=>{e.resource_server_identifier===r&&i.push(e.permission_name)});return[...new Set(i)]}async function Lde(e,t){let{tenantId:n,clientId:r,audience:i,requestedScopes:a}=t,o=a.filter(e=>hP.includes(e)),s=a.filter(e=>!hP.includes(e)),c=(await e.env.data.resourceServers.list(n)).resource_servers.filter(e=>e.identifier===i);if(c.length===0)return{scopes:o,permissions:[],token_lifetime:86400,token_lifetime_for_web:7200};let l=c[0];if(!l)return{scopes:o,permissions:[],token_lifetime:86400,token_lifetime_for_web:7200};let u=l.options?.enforce_policies===!0,d=l.options?.token_dialect||`access_token`,f=(await e.env.data.clientGrants.list(n,{q:`client_id:"${r}"`})).client_grants.find(e=>e.audience===i);if(!f)return{scopes:o,permissions:[],token_lifetime:l.token_lifetime,token_lifetime_for_web:l.token_lifetime_for_web};let p=f.scope||[],m=(l.scopes||[]).map(e=>e.value);if(s.length>0){let e=s.filter(e=>!p.includes(e));if(e.length>0)throw new L(403,{error:`access_denied`,error_description:`Client is not authorized for scope(s): ${e.join(`, `)}`})}let h=p.filter(e=>m.includes(e)),g=a.length===0?h:s.filter(e=>h.includes(e)),_={token_lifetime:l.token_lifetime,token_lifetime_for_web:l.token_lifetime_for_web};if(!u)return{scopes:[...new Set([...o,...g])],permissions:[],..._};let v=g;return d===`access_token_authz`?{scopes:[...new Set([...o,...g])],permissions:v,..._}:{scopes:[...new Set([...o,...g])],permissions:[],..._}}async function gP(e,t){if(t.grantType===$r.ClientCredential)return await Lde(e,{tenantId:t.tenantId,clientId:t.clientId,audience:t.audience,requestedScopes:t.requestedScopes});let{tenantId:n,userId:r,audience:i,requestedScopes:a,organizationId:o}=t,s=await e.env.data.tenants.get(n),c=s?.flags?.restrict_undefined_scopes===!0,l=!1;if(o){if(s?.flags?.inherit_global_permissions_in_organizations){let t=await e.env.data.userRoles.list(n,r,void 0,``);for(let r of t)if((await e.env.data.rolePermissions.list(n,r.id,{per_page:1e3})).some(e=>e.permission_name===`admin:organizations`&&e.resource_server_identifier===`urn:authhero:management`)){l=!0;break}}if(!l&&!(await e.env.data.userOrganizations.list(n,{q:`user_id:${r}`,per_page:1e3})).userOrganizations.some(e=>e.organization_id===o))throw new L(403,{error:`access_denied`,error_description:`User is not a member of the specified organization`})}let u=a.filter(e=>hP.includes(e)),d=(await e.env.data.resourceServers.list(n)).resource_servers.filter(e=>e.identifier===i)[0];if(!d){if(a.filter(e=>e&&!hP.includes(e)).length>0)throw new L(403,{error:`access_denied`,error_description:`Service not found: ${i}`});return{scopes:u,permissions:[],token_lifetime:86400,token_lifetime_for_web:7200}}let f=(d.scopes||[]).map(e=>e.value),p=d.options?.enforce_policies===!0,m=d.options?.token_dialect||`access_token`,h={token_lifetime:d.token_lifetime,token_lifetime_for_web:d.token_lifetime_for_web};if(!p){let e=c?a.filter(e=>f.includes(e)||hP.includes(e)):a;return{scopes:[...new Set(e)],permissions:[],...h}}let[g,_,v]=await Promise.all([e.env.data.userPermissions.list(n,r,void 0,o),e.env.data.userRoles.list(n,r,void 0,``),o?e.env.data.userRoles.list(n,r,void 0,o):Promise.resolve([])]),y=[..._,...v],b=o?await Ide(e,n,r,i):[],x=await Promise.all(y.map(t=>e.env.data.rolePermissions.list(n,t.id,{per_page:1e3}))),S=[];for(let e of x)e.forEach(e=>{e.resource_server_identifier===i&&S.push(e.permission_name)});let C=new Set;g.forEach(e=>{e.resource_server_identifier===i&&C.add(e.permission_name)}),S.forEach(e=>{C.add(e)}),b.forEach(e=>{C.add(e)});let w=Array.from(C),T=w.filter(e=>f.includes(e)),ee=c?[]:a.filter(e=>!f.includes(e)&&!hP.includes(e));if(m===`access_token_authz`)return{scopes:[...new Set([...u,...ee])],permissions:T,...h};let te=a.filter(e=>f.includes(e)&&w.includes(e));return{scopes:[...new Set([...u,...te,...ee])],permissions:[],...h}}var Rde=new Set([`openid`,`profile`,`email`]);function _P(e,t){let n=new Set(t),r=[];for(let t of e)t&&(Rde.has(t)||n.has(t)||r.push(t));return Array.from(new Set(r))}async function vP(e,t){if(!e.env.data.grants)return _P(t.requestedScopes,[]);let n=await e.env.data.grants.get(t.tenantId,t.userId,t.clientId);return _P(t.requestedScopes,n?.scope??[])}function yP(e){if(!e)return!1;try{return!!JSON.parse(e)?.connect}catch{return!1}}function bP(e,t){switch(t){case`email`:return e.email||void 0;case`email_verified`:return e.email_verified===void 0?void 0:e.email_verified;case`name`:return e.name||void 0;case`family_name`:return e.family_name||void 0;case`given_name`:return e.given_name||void 0;case`middle_name`:return e.middle_name||void 0;case`nickname`:return e.nickname||void 0;case`preferred_username`:return e.preferred_username||e.username||void 0;case`profile`:return e.profile||void 0;case`picture`:return e.picture||void 0;case`website`:return e.website||void 0;case`gender`:return e.gender||void 0;case`birthdate`:return e.birthdate||void 0;case`zoneinfo`:return e.zoneinfo||void 0;case`locale`:return e.locale||void 0;case`updated_at`:{if(!e.updated_at)return;let t=new Date(e.updated_at).getTime();return Number.isFinite(t)?Math.floor(t/1e3):void 0}case`address`:return e.address||void 0;case`phone_number`:return e.phone_number||void 0;case`phone_number_verified`:return e.phone_verified===void 0?void 0:e.phone_verified;default:return}}var zde={email:[`email`,`email_verified`],profile:[`name`,`family_name`,`given_name`,`middle_name`,`nickname`,`preferred_username`,`profile`,`picture`,`website`,`gender`,`birthdate`,`zoneinfo`,`locale`,`updated_at`],address:[`address`],phone:[`phone_number`,`phone_number_verified`]};function xP(e,t){let n={};for(let r of t){let t=zde[r];if(t)for(let r of t){let t=bP(e,r);t!==void 0&&(n[r]=t)}}return n}function SP(e,t){let n={};for(let r of t){let t=bP(e,r);t!==void 0&&(n[r]=t)}return n}function Bde(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global}function Vde(){let e=Bde();if(e.__xstate__)return e.__xstate__}var Hde=e=>{if(typeof window>`u`)return;let t=Vde();t&&t.register(e)},CP=class{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){let t={value:e,next:null};if(this._current){this._last.next=t,this._last=t;return}this._current=t,this._last=t,this._active&&this.flush()}flush(){for(;this._current;){let e=this._current;this._process(e.value),this._current=e.next}this._last=null}},Ude=``,Wde=`#`,wP=`*`,TP=`xstate.init`,EP=`xstate.stop`;function DP(e,t){return{type:`xstate.after.${e}.${t}`}}function OP(e,t){return{type:`xstate.done.state.${e}`,output:t}}function kP(e,t){return{type:`xstate.done.actor.${e}`,output:t,actorId:e}}function AP(e,t){return{type:`xstate.error.actor.${e}`,error:t,actorId:e}}function jP(e){return{type:TP,input:e}}function MP(e){setTimeout(()=>{throw e})}var NP=typeof Symbol==`function`&&Symbol.observable||`@@observable`;function PP(e,t){let n=IP(e),r=IP(t);return typeof r==`string`?typeof n==`string`&&r===n:typeof n==`string`?n in r:Object.keys(n).every(e=>e in r&&PP(n[e],r[e]))}function FP(e){if(HP(e))return e;let t=[],n=``;for(let r=0;r<e.length;r++){switch(e.charCodeAt(r)){case 92:n+=e[r+1],r++;continue;case 46:t.push(n),n=``;continue}n+=e[r]}return t.push(n),t}function IP(e){return gI(e)?e.value:typeof e==`string`?LP(FP(e)):e}function LP(e){if(e.length===1)return e[0];let t={},n=t;for(let t=0;t<e.length-1;t++)if(t===e.length-2)n[e[t]]=e[t+1];else{let r=n;n={},r[e[t]]=n}return t}function RP(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i];n[a]=t(e[a],a,e,i)}return n}function zP(e){return HP(e)?e:[e]}function BP(e){return e===void 0?[]:zP(e)}function VP(e,t,n,r){return typeof e==`function`?e({context:t,event:n,self:r}):e}function HP(e){return Array.isArray(e)}function UP(e){return e.type.startsWith(`xstate.error.actor`)}function WP(e){return zP(e).map(e=>e===void 0||typeof e==`string`?{target:e}:e)}function GP(e){if(!(e===void 0||e===Ude))return BP(e)}function KP(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}function qP(e,t){return`${t}.${e}`}function JP(e,t){let n=t.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[t];let[,r,i]=n,a=e.getStateNodeById(i).config.invoke;return(Array.isArray(a)?a[r]:a).src}function YP(e,t){if(t===e||t===wP)return!0;if(!t.endsWith(`.*`))return!1;let n=t.split(`.`),r=e.split(`.`);for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t===`*`)return e===n.length-1;if(t!==i)return!1}return!0}function XP(e,t){return`${e.sessionId}.${t}`}var ZP=0;function QP(e,t){let n=new Map,r=new Map,i=new WeakMap,a=new Set,o={},{clock:s,logger:c}=t,l={schedule:(e,t,n,r,i=Math.random().toString(36).slice(2))=>{let a={source:e,target:t,event:n,delay:r,id:i,startedAt:Date.now()},c=XP(e,i);u._snapshot._scheduledEvents[c]=a;let l=s.setTimeout(()=>{delete o[c],delete u._snapshot._scheduledEvents[c],u._relay(e,t,n)},r);o[c]=l},cancel:(e,t)=>{let n=XP(e,t),r=o[n];delete o[n],delete u._snapshot._scheduledEvents[n],r!==void 0&&s.clearTimeout(r)},cancelAll:e=>{for(let t in u._snapshot._scheduledEvents){let n=u._snapshot._scheduledEvents[t];n.source===e&&l.cancel(e,n.id)}}},u={_snapshot:{_scheduledEvents:(t?.snapshot&&t.snapshot.scheduler)??{}},_bookId:()=>`x:${ZP++}`,_register:(e,t)=>(n.set(e,t),e),_unregister:e=>{n.delete(e.sessionId);let t=i.get(e);t!==void 0&&(r.delete(t),i.delete(e))},get:e=>r.get(e),getAll:()=>Object.fromEntries(r.entries()),_set:(e,t)=>{let n=r.get(e);if(n&&n!==t)throw Error(`Actor with system ID '${e}' already exists.`);r.set(e,t),i.set(t,e)},inspect:e=>{let t=KP(e);return a.add(t),{unsubscribe(){a.delete(t)}}},_sendInspectionEvent:t=>{if(!a.size)return;let n={...t,rootId:e.sessionId};a.forEach(e=>e.next?.(n))},_relay:(e,t,n)=>{u._sendInspectionEvent({type:`@xstate.event`,sourceRef:e,actorRef:t,event:n}),t._send(n)},scheduler:l,getSnapshot:()=>({_scheduledEvents:{...u._snapshot._scheduledEvents}}),start:()=>{let e=u._snapshot._scheduledEvents;u._snapshot._scheduledEvents={};for(let t in e){let{source:n,target:r,event:i,delay:a,id:o}=e[t];l.schedule(n,r,i,a,o)}},_clock:s,_logger:c};return u}var $P=!1,eF=function(e){return e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`,e}({}),tF={clock:{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1},nF=class{constructor(e,t){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new CP(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=eF.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];let n={...tF,...t},{clock:r,logger:i,parent:a,syncSnapshot:o,id:s,systemId:c,inspect:l}=n;this.system=a?a.system:QP(this,{clock:r,logger:i}),l&&!a&&this.system.inspect(KP(l)),this.sessionId=this.system._bookId(),this.id=s??this.sessionId,this.logger=t?.logger??this.system._logger,this.clock=t?.clock??this.system._clock,this._parent=a,this._syncSnapshot=o,this.options=n,this.src=n.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:e=>{this._deferred.push(e)},system:this.system,stopChild:e=>{if(e._parent!==this)throw Error(`Cannot stop child actor ${e.id} of ${this.id} because it is not a child`);e._stop()},emit:e=>{let t=this.eventListeners.get(e.type),n=this.eventListeners.get(`*`);if(!t&&!n)return;let r=[...t?t.values():[],...n?n.values():[]];for(let t of r)try{t(e)}catch(e){MP(e)}},actionExecutor:e=>{let t=()=>{if(this._actorScope.system._sendInspectionEvent({type:`@xstate.action`,actorRef:this,action:{type:e.type,params:e.params}}),!e.exec)return;let t=$P;try{$P=!0,e.exec(e.info,e.params)}finally{$P=t}};this._processingStatus===eF.Running?t():this._deferred.push(t)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:`@xstate.actor`,actorRef:this}),c&&(this.systemId=c,this.system._set(c,this)),this._initState(t?.snapshot??t?.state),c&&this._snapshot.status!==`active`&&this.system._unregister(this)}_initState(e){try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(e){this._snapshot={status:`error`,output:void 0,error:e}}}update(e,t){this._snapshot=e;let n;for(;n=this._deferred.shift();)try{n()}catch(t){this._deferred.length=0,this._snapshot={...e,status:`error`,error:t}}switch(this._snapshot.status){case`active`:for(let t of this.observers)try{t.next?.(e)}catch(e){MP(e)}break;case`done`:for(let t of this.observers)try{t.next?.(e)}catch(e){MP(e)}this._stopProcedure(),this._complete(),this._doneEvent=kP(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case`error`:this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:`@xstate.snapshot`,actorRef:this,event:t,snapshot:e})}subscribe(e,t,n){let r=KP(e,t,n);if(this._processingStatus!==eF.Stopped)this.observers.add(r);else switch(this._snapshot.status){case`done`:try{r.complete?.()}catch(e){MP(e)}break;case`error`:{let e=this._snapshot.error;if(!r.error)MP(e);else try{r.error(e)}catch(e){MP(e)}break}}return{unsubscribe:()=>{this.observers.delete(r)}}}on(e,t){let n=this.eventListeners.get(e);n||(n=new Set,this.eventListeners.set(e,n));let r=t.bind(void 0);return n.add(r),{unsubscribe:()=>{n.delete(r)}}}select(e,t=Object.is){return{subscribe:n=>{let r=KP(n),i=e(this.getSnapshot());return this.subscribe(n=>{let a=e(n);t(i,a)||(i=a,r.next?.(a))})},get:()=>e(this.getSnapshot())}}start(){if(this._processingStatus===eF.Running)return this;this._syncSnapshot&&this.subscribe({next:e=>{e.status===`active`&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:e})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=eF.Running;let e=jP(this.options.input);switch(this.system._sendInspectionEvent({type:`@xstate.event`,sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case`done`:return this.update(this._snapshot,e),this;case`error`:return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(e){return this._snapshot={...this._snapshot,status:`error`,error:e},this._error(e),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let t,n;try{t=this.logic.transition(this._snapshot,e,this._actorScope)}catch(e){n={err:e}}if(n){let{err:e}=n;this._snapshot={...this._snapshot,status:`error`,error:e},this._error(e);return}this.update(t,e),e.type===`xstate.stop`&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===eF.Stopped?this:(this.mailbox.clear(),this._processingStatus===eF.NotStarted?(this._processingStatus=eF.Stopped,this):(this.mailbox.enqueue({type:EP}),this))}stop(){if(this._parent)throw Error(`A non-root actor cannot be stopped directly.`);return this._stop()}_complete(){for(let e of this.observers)try{e.complete?.()}catch(e){MP(e)}this.observers.clear(),this.eventListeners.clear()}_reportError(e){if(!this.observers.size){this._parent||MP(e),this.eventListeners.clear();return}let t=!1;for(let n of this.observers){let r=n.error;t||=!r;try{r?.(e)}catch(e){MP(e)}}this.observers.clear(),this.eventListeners.clear(),t&&MP(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,AP(this.id,e))}_stopProcedure(){return this._processingStatus===eF.Running?(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new CP(this._process.bind(this)),this._processingStatus=eF.Stopped,this.system._unregister(this),this):this}_send(e){this._processingStatus!==eF.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){let{devTools:e}=this.options;e&&(typeof e==`function`?e:Hde)(this)}toJSON(){return{xstate$$type:1,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[NP](){return this}getSnapshot(){return this._snapshot}};function rF(e,...[t]){return new nF(e,t)}function iF(e,t,n,r,{sendId:i}){return[t,{sendId:typeof i==`function`?i(n,r):i},void 0]}function aF(e,t){e.defer(()=>{e.system.scheduler.cancel(e.self,t.sendId)})}function oF(e){function t(e,t){}return t.type=`xstate.cancel`,t.sendId=e,t.resolve=iF,t.execute=aF,t}function sF(e,t,n,r,{id:i,systemId:a,src:o,input:s,syncSnapshot:c}){let l=typeof o==`string`?JP(t.machine,o):o,u=typeof i==`function`?i(n):i,d,f;return l&&(f=typeof s==`function`?s({context:t.context,event:n.event,self:e.self}):s,d=rF(l,{id:u,src:o,parent:e.self,syncSnapshot:c,systemId:a,input:f})),[CI(t,{children:{...t.children,[u]:d}}),{id:i,systemId:a,actorRef:d,src:o,input:f},void 0]}function cF(e,{actorRef:t}){t&&e.defer(()=>{t._processingStatus!==eF.Stopped&&t.start()})}function lF(...[e,{id:t,systemId:n,input:r,syncSnapshot:i=!1}={}]){function a(e,t){}return a.type=`xstate.spawnChild`,a.id=t,a.systemId=n,a.src=e,a.input=r,a.syncSnapshot=i,a.resolve=sF,a.execute=cF,a}function uF(e,t,n,r,{actorRef:i}){let a=typeof i==`function`?i(n,r):i,o=typeof a==`string`?t.children[a]:a,s=t.children;return o&&(s={...s},delete s[o.id]),[CI(t,{children:s}),o,void 0]}function dF(e,t){let n=t.getSnapshot();if(n&&`children`in n)for(let t of Object.values(n.children))dF(e,t);e.system._unregister(t)}function fF(e,t){if(t){if(dF(e,t),t._processingStatus!==eF.Running){e.stopChild(t);return}e.defer(()=>{e.stopChild(t)})}}function pF(e){function t(e,t){}return t.type=`xstate.stopChild`,t.actorRef=e,t.resolve=uF,t.execute=fF,t}function mF(e,{context:t,event:n},{guards:r}){return r.every(r=>gF(r,t,n,e))}function hF(e){function t(e,t){return!1}return t.check=mF,t.guards=e,t}function gF(e,t,n,r){let{machine:i}=r,a=typeof e==`function`,o=a?e:i.implementations.guards[typeof e==`string`?e:e.type];if(!a&&!o)throw Error(`Guard '${typeof e==`string`?e:e.type}' is not implemented.'.`);if(typeof o!=`function`)return gF(o,t,n,r);let s={context:t,event:n},c=a||typeof e==`string`?void 0:`params`in e?typeof e.params==`function`?e.params({context:t,event:n}):e.params:void 0;return`check`in o?o.check(r,s,o):o(s,c)}function _F(e){return e.type===`atomic`||e.type===`final`}function vF(e){return Object.values(e.states).filter(e=>e.type!==`history`)}function yF(e,t){let n=[];if(t===e)return n;let r=e.parent;for(;r&&r!==t;)n.push(r),r=r.parent;return n}function bF(e){let t=new Set(e),n=SF(t);for(let e of t)if(e.type===`compound`&&(!n.get(e)||!n.get(e).length))FF(e).forEach(e=>t.add(e));else if(e.type===`parallel`){for(let n of vF(e))if(n.type!==`history`&&!t.has(n)){let e=FF(n);for(let n of e)t.add(n)}}for(let e of t){let n=e.parent;for(;n;)t.add(n),n=n.parent}return t}function xF(e,t){let n=t.get(e);if(!n)return{};if(e.type===`compound`){let e=n[0];if(e){if(_F(e))return e.key}else return{}}let r={};for(let e of n)r[e.key]=xF(e,t);return r}function SF(e){let t=new Map;for(let n of e)t.has(n)||t.set(n,[]),n.parent&&(t.has(n.parent)||t.set(n.parent,[]),t.get(n.parent).push(n));return t}function CF(e,t){return xF(e,SF(bF(t)))}function wF(e,t){return t.type===`compound`?vF(t).some(t=>t.type===`final`&&e.has(t)):t.type===`parallel`?vF(t).every(t=>wF(e,t)):t.type===`final`}var TF=e=>e[0]===Wde;function EF(e,t){let n=e.transitions.get(t),r=[...e.transitions.keys()].filter(e=>e!==t&&YP(t,e)).sort((e,t)=>t.length-e.length).flatMap(t=>e.transitions.get(t));return n?[...n,...r]:r}function DF(e){let t=e.config.after;if(!t)return[];let n=t=>{let n=DP(t,e.id),r=n.type;return e.entry.push(kI(n,{id:r,delay:t})),e.exit.push(oF(r)),r};return Object.keys(t).flatMap(e=>{let r=t[e],i=typeof r==`string`?{target:r}:r,a=Number.isNaN(+e)?e:+e,o=n(a);return BP(i).map(e=>({...e,event:o,delay:a}))}).map(t=>{let{delay:n}=t;return{...OF(e,t.event,t),delay:n}})}function OF(e,t,n){let r=GP(n.target),i=n.reenter??!1,a=MF(e,r),o={...n,actions:BP(n.actions),guard:n.guard,target:a,source:e,reenter:i,eventType:t,toJSON:()=>({...o,source:`#${e.id}`,target:a?a.map(e=>`#${e.id}`):void 0})};return o}function kF(e){let t=new Map;if(e.config.on)for(let n of Object.keys(e.config.on)){if(n===``)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let r=e.config.on[n];t.set(n,WP(r).map(t=>OF(e,n,t)))}if(e.config.onDone){let n=`xstate.done.state.${e.id}`;t.set(n,WP(e.config.onDone).map(t=>OF(e,n,t)))}for(let n of e.invoke){if(n.onDone){let r=`xstate.done.actor.${n.id}`;t.set(r,WP(n.onDone).map(t=>OF(e,r,t)))}if(n.onError){let r=`xstate.error.actor.${n.id}`;t.set(r,WP(n.onError).map(t=>OF(e,r,t)))}if(n.onSnapshot){let r=`xstate.snapshot.${n.id}`;t.set(r,WP(n.onSnapshot).map(t=>OF(e,r,t)))}}for(let n of e.after){let e=t.get(n.eventType);e||(e=[],t.set(n.eventType,e)),e.push(n)}return t}function AF(e){let t=[],n=r=>{Object.values(r).forEach(r=>{if(r.config.route&&r.config.id){let n=r.config.id,i=r.config.route.guard,a=({event:e})=>e.to===`#${n}`,o={...r.config.route,guard:i?hF([a,i]):a,target:`#${n}`};t.push(OF(e,`xstate.route`,o))}r.states&&n(r.states)})};n(e.states),t.length>0&&e.transitions.set(`xstate.route`,t)}function jF(e,t){let n=typeof t==`string`?e.states[t]:t?e.states[t.target]:void 0;if(!n&&t)throw Error(`Initial state node "${t}" not found on parent state node #${e.id}`);let r={source:e,actions:!t||typeof t==`string`?[]:BP(t.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...r,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return r}function MF(e,t){if(t!==void 0)return t.map(t=>{if(typeof t!=`string`)return t;if(TF(t))return e.machine.getStateNodeById(t);let n=t[0]===`.`;if(n&&!e.parent)return RF(e,t.slice(1));let r=n?e.key+t:t;if(e.parent)try{return RF(e.parent,r)}catch(t){throw Error(`Invalid transition definition for state node '${e.id}':\n${t.message}`)}else throw Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`)})}function NF(e){let t=GP(e.config.target);return t?{target:t.map(t=>typeof t==`string`?RF(e.parent,t):t)}:e.parent.type===`parallel`?{target:[e.parent]}:e.parent.initial}function PF(e){return e.type===`history`}function FF(e){let t=IF(e);for(let n of t)for(let r of yF(n,e))t.add(r);return t}function IF(e){let t=new Set;function n(e){if(!t.has(e)){if(t.add(e),e.type===`compound`)n(e.initial.target[0]);else if(e.type===`parallel`)for(let t of vF(e))n(t)}}return n(e),t}function LF(e,t){if(TF(t))return e.machine.getStateNodeById(t);if(!e.states)throw Error(`Unable to retrieve child state '${t}' from '${e.id}'; no child states exist.`);let n=e.states[t];if(!n)throw Error(`Child state '${t}' does not exist on '${e.id}'`);return n}function RF(e,t){if(typeof t==`string`&&TF(t))try{return e.machine.getStateNodeById(t)}catch{}let n=FP(t).slice(),r=e;for(;n.length;){let e=n.shift();if(!e.length)break;r=LF(r,e)}return r}function zF(e,t){if(typeof t==`string`){let n=e.states[t];if(!n)throw Error(`State '${t}' does not exist on '${e.id}'`);return[e,n]}let n=Object.keys(t),r=n.map(t=>LF(e,t)).filter(Boolean);return[e.machine.root,e].concat(r,n.reduce((n,r)=>{let i=LF(e,r);if(!i)return n;let a=zF(i,t[r]);return n.concat(a)},[]))}function BF(e,t,n,r){let i=LF(e,t).next(n,r);return!i||!i.length?e.next(n,r):i}function VF(e,t,n,r){let i=Object.keys(t),a=UF(LF(e,i[0]),t[i[0]],n,r);return!a||!a.length?e.next(n,r):a}function HF(e,t,n,r){let i=[];for(let a of Object.keys(t)){let o=t[a];if(!o)continue;let s=UF(LF(e,a),o,n,r);s&&i.push(...s)}return i.length?i:e.next(n,r)}function UF(e,t,n,r){return typeof t==`string`?BF(e,t,n,r):Object.keys(t).length===1?VF(e,t,n,r):HF(e,t,n,r)}function WF(e){return Object.keys(e.states).map(t=>e.states[t]).filter(e=>e.type===`history`)}function GF(e,t){let n=e;for(;n.parent&&n.parent!==t;)n=n.parent;return n.parent===t}function KF(e,t){let n=new Set(e),r=new Set(t);for(let e of n)if(r.has(e))return!0;for(let e of r)if(n.has(e))return!0;return!1}function qF(e,t,n){let r=new Set;for(let i of e){let e=!1,a=new Set;for(let o of r)if(KF(ZF([i],t,n),ZF([o],t,n)))if(GF(i.source,o.source))a.add(o);else{e=!0;break}if(!e){for(let e of a)r.delete(e);r.add(i)}}return Array.from(r)}function JF(e){let[t,...n]=e;for(let e of yF(t,void 0))if(n.every(t=>GF(t,e)))return e}function YF(e,t){if(!e.target)return[];let n=new Set;for(let r of e.target)if(PF(r))if(t[r.id])for(let e of t[r.id])n.add(e);else for(let e of YF(NF(r),t))n.add(e);else n.add(r);return[...n]}function XF(e,t){let n=YF(e,t);if(!n)return;if(!e.reenter&&n.every(t=>t===e.source||GF(t,e.source)))return e.source;let r=JF(n.concat(e.source));if(r)return r;if(!e.reenter)return e.source.machine.root}function ZF(e,t,n){let r=new Set;for(let i of e)if(i.target?.length){let e=XF(i,n);i.reenter&&i.source===e&&r.add(e);for(let n of t)GF(n,e)&&r.add(n)}return[...r]}function QF(e,t){if(e.length!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function $F(e,t,n,r,i){return eI([{target:[...IF(e)],source:e,reenter:!0,actions:[],eventType:null,toJSON:null}],t,n,r,!0,i)}function eI(e,t,n,r,i,a){let o=[];if(!e.length)return[t,o];let s=n.actionExecutor;n.actionExecutor=e=>{o.push(e),s(e)};try{let s=new Set(t._nodes),c=t.historyValue,l=qF(e,s,c),u=t;i||([u,c]=sI(u,r,n,l,s,c,a,n.actionExecutor)),u=uI(u,r,n,l.flatMap(e=>e.actions),a,void 0),u=nI(u,r,n,l,s,a,c,i);let d=[...s];u.status===`done`&&(u=uI(u,r,n,d.sort((e,t)=>t.order-e.order).flatMap(e=>e.exit),a,void 0));try{return c===t.historyValue&&QF(t._nodes,s)?[u,o]:[CI(u,{_nodes:d,historyValue:c}),o]}catch(e){throw e}}finally{n.actionExecutor=s}}function tI(e,t,n,r,i){if(r.output===void 0)return;let a=OP(i.id,i.output!==void 0&&i.parent?VP(i.output,e.context,t,n.self):void 0);return VP(r.output,e.context,a,n.self)}function nI(e,t,n,r,i,a,o,s){let c=e,l=new Set,u=new Set;rI(r,o,u,l),s&&u.add(e.machine.root);let d=new Set;for(let e of[...l].sort((e,t)=>e.order-t.order)){i.add(e);let r=[];r.push(...e.entry);for(let t of e.invoke)r.push(lF(t.src,{...t,syncSnapshot:!!t.onSnapshot}));if(u.has(e)){let t=e.initial.actions;r.push(...t)}if(c=uI(c,t,n,r,a,e.invoke.map(e=>e.id)),e.type===`final`){let r=e.parent,o=r?.type===`parallel`?r:r?.parent,s=o||e;for(r?.type===`compound`&&a.push(OP(r.id,e.output===void 0?void 0:VP(e.output,c.context,t,n.self)));o?.type===`parallel`&&!d.has(o)&&wF(i,o);)d.add(o),a.push(OP(o.id)),s=o,o=o.parent;if(o)continue;c=CI(c,{status:`done`,output:tI(c,t,n,c.machine.root,s)})}}return c}function rI(e,t,n,r){for(let i of e){let e=XF(i,t);for(let a of i.target||[])!PF(a)&&(i.source!==a||i.source!==e||i.reenter)&&(r.add(a),n.add(a)),iI(a,t,n,r);let a=YF(i,t);for(let o of a){let a=yF(o,e);e?.type===`parallel`&&a.push(e),aI(r,t,n,a,!i.source.parent&&i.reenter?void 0:e)}}}function iI(e,t,n,r){if(PF(e))if(t[e.id]){let i=t[e.id];for(let e of i)r.add(e),iI(e,t,n,r);for(let a of i)oI(a,e.parent,r,t,n)}else{let i=NF(e);for(let a of i.target)r.add(a),i===e.parent?.initial&&n.add(e.parent),iI(a,t,n,r);for(let a of i.target)oI(a,e.parent,r,t,n)}else if(e.type===`compound`){let[i]=e.initial.target;PF(i)||(r.add(i),n.add(i)),iI(i,t,n,r),oI(i,e,r,t,n)}else if(e.type===`parallel`)for(let i of vF(e).filter(e=>!PF(e)))[...r].some(e=>GF(e,i))||(PF(i)||(r.add(i),n.add(i)),iI(i,t,n,r))}function aI(e,t,n,r,i){for(let a of r)if((!i||GF(a,i))&&e.add(a),a.type===`parallel`)for(let r of vF(a).filter(e=>!PF(e)))[...e].some(e=>GF(e,r))||(e.add(r),iI(r,t,n,e))}function oI(e,t,n,r,i){aI(n,r,i,yF(e,t))}function sI(e,t,n,r,i,a,o,s){let c=e,l=ZF(r,i,a);l.sort((e,t)=>t.order-e.order);let u;for(let e of l)for(let t of WF(e)){let n;n=t.history===`deep`?t=>_F(t)&&GF(t,e):t=>t.parent===e,u??={...a},u[t.id]=Array.from(i).filter(n)}for(let e of l)c=uI(c,t,n,[...e.exit,...e.invoke.map(e=>pF(e.id))],o,void 0),i.delete(e);return[c,u||a]}function cI(e,t){return e.implementations.actions[t]}function lI(e,t,n,r,i,a){let{machine:o}=e,s=e;for(let e of r){let r=typeof e==`function`,c=r?e:cI(o,typeof e==`string`?e:e.type),l={context:s.context,event:t,self:n.self,system:n.system},u=r||typeof e==`string`?void 0:`params`in e?typeof e.params==`function`?e.params({context:s.context,event:t}):e.params:void 0;if(!c||!(`resolve`in c)){n.actionExecutor({type:typeof e==`string`?e:typeof e==`object`?e.type:e.name||`(anonymous)`,info:l,params:u,exec:c});continue}let d=c,[f,p,m]=d.resolve(n,s,l,u,c,i);s=f,`retryResolve`in d&&a?.push([d,p]),`execute`in d&&n.actionExecutor({type:d.type,info:l,params:p,exec:d.execute.bind(null,n,p)}),m&&(s=lI(s,t,n,m,i,a))}return s}function uI(e,t,n,r,i,a){let o=a?[]:void 0,s=lI(e,t,n,r,{internalQueue:i,deferredActorIds:a},o);return o?.forEach(([e,t])=>{e.retryResolve(n,s,t)}),s}function dI(e,t,n,r){let i=e,a=[];function o(e,t,r){n.system._sendInspectionEvent({type:`@xstate.microstep`,actorRef:n.self,event:t,snapshot:e[0],_transitions:r}),a.push(e)}if(t.type===`xstate.stop`)return i=CI(fI(i,t,n),{status:`stopped`}),o([i,[]],t,[]),{snapshot:i,microsteps:a};let s=t;if(s.type!==TP){let t=s,c=UP(t),l=pI(t,i);if(c&&!l.length)return i=CI(e,{status:`error`,error:t.error}),o([i,[]],t,[]),{snapshot:i,microsteps:a};let u=eI(l,e,n,s,!1,r);i=u[0],o(u,t,l)}let c=!0,l=e.machine.options?.maxIterations??1/0,u=0;for(;i.status===`active`;){if(u++,u>l)throw Error(`Infinite loop detected: the machine has processed more than ${l} microsteps without reaching a stable state. This usually happens when there's a cycle of transitions (e.g., eventless transitions or raised events causing state A -> B -> C -> A).`);let e=c?mI(i,s):[],t=e.length?i:void 0;if(!e.length){if(!r.length)break;s=r.shift(),e=pI(s,i)}let a=eI(e,i,n,s,!1,r);i=a[0],c=i!==t,o(a,s,e)}return i.status!==`active`&&fI(i,s,n),{snapshot:i,microsteps:a}}function fI(e,t,n){return uI(e,t,n,Object.values(e.children).map(e=>pF(e)),[],void 0)}function pI(e,t){return t.machine.getTransitionData(t,e)}function mI(e,t){let n=new Set,r=e._nodes.filter(_F);for(let i of r)loop:for(let r of[i].concat(yF(i,void 0)))if(r.always){for(let i of r.always)if(i.guard===void 0||gF(i.guard,e.context,t,e)){n.add(i);break loop}}return qF(Array.from(n),new Set(e._nodes),e.historyValue)}function hI(e,t){return CF(e,[...bF(zF(e,t))])}function gI(e){return!!e&&typeof e==`object`&&`machine`in e&&`value`in e}var _I=function(e){return PP(e,this.value)},vI=function(e){return this.tags.has(e)},yI=function(e){let t=this.machine.getTransitionData(this,e);return!!t?.length&&t.some(e=>e.target!==void 0||e.actions.length)},bI=function(){let{_nodes:e,tags:t,machine:n,getMeta:r,toJSON:i,can:a,hasTag:o,matches:s,...c}=this;return{...c,tags:Array.from(t)}},xI=function(){return this._nodes.reduce((e,t)=>(t.meta!==void 0&&(e[t.id]=t.meta),e),{})};function SI(e,t){return{status:e.status,output:e.output,error:e.error,machine:t,context:e.context,_nodes:e._nodes,value:CF(t.root,e._nodes),tags:new Set(e._nodes.flatMap(e=>e.tags)),children:e.children,historyValue:e.historyValue||{},matches:_I,hasTag:vI,can:yI,getMeta:xI,toJSON:bI}}function CI(e,t={}){return SI({...e,...t},e.machine)}function wI(e){if(typeof e!=`object`||!e)return{};let t={};for(let n in e){let r=e[n];Array.isArray(r)&&(t[n]=r.map(e=>({id:e.id})))}return t}function TI(e,t){let{_nodes:n,tags:r,machine:i,children:a,context:o,can:s,hasTag:c,matches:l,getMeta:u,toJSON:d,...f}=e,p={};for(let e in a){let n=a[e];p[e]={snapshot:n.getPersistedSnapshot(t),src:n.src,systemId:n.systemId,syncSnapshot:n._syncSnapshot}}return{...f,context:EI(o),children:p,historyValue:wI(f.historyValue)}}function EI(e){let t;for(let n in e){let r=e[n];if(r&&typeof r==`object`)if(`sessionId`in r&&`send`in r&&`ref`in r)t??=Array.isArray(e)?e.slice():{...e},t[n]={xstate$$type:1,id:r.id};else{let i=EI(r);i!==r&&(t??=Array.isArray(e)?e.slice():{...e},t[n]=i)}}return t??e}function DI(e,t,n,r,{event:i,id:a,delay:o},{internalQueue:s}){let c=t.machine.implementations.delays;if(typeof i==`string`)throw Error(`Only event objects may be used with raise; use raise({ type: "${i}" }) instead`);let l=typeof i==`function`?i(n,r):i,u;if(typeof o==`string`){let e=c&&c[o];u=typeof e==`function`?e(n,r):e}else u=typeof o==`function`?o(n,r):o;return typeof u!=`number`&&s.push(l),[t,{event:l,id:a,delay:u},void 0]}function OI(e,t){let{event:n,delay:r,id:i}=t;if(typeof r==`number`){e.defer(()=>{let t=e.self;e.system.scheduler.schedule(t,t,n,r,i)});return}}function kI(e,t){function n(e,t){}return n.type=`xstate.raise`,n.event=e,n.id=t?.id,n.delay=t?.delay,n.resolve=DI,n.execute=OI,n}function AI(e,{machine:t,context:n},r,i){let a=(a,o)=>{if(typeof a==`string`){let s=JP(t,a);if(!s)throw Error(`Actor logic '${a}' not implemented in machine '${t.id}'`);let c=rF(s,{id:o?.id,parent:e.self,syncSnapshot:o?.syncSnapshot,input:typeof o?.input==`function`?o.input({context:n,event:r,self:e.self}):o?.input,src:a,systemId:o?.systemId});return i[c.id]=c,c}else return rF(a,{id:o?.id,parent:e.self,syncSnapshot:o?.syncSnapshot,input:o?.input,src:a,systemId:o?.systemId})};return(t,n)=>{let r=a(t,n);return i[r.id]=r,e.defer(()=>{r._processingStatus!==eF.Stopped&&r.start()}),r}}function jI(e,t,n,r,{assignment:i}){if(!t.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let a={},o={context:t.context,event:n.event,spawn:AI(e,t,n.event,a),self:e.self,system:e.system},s={};if(typeof i==`function`)s=i(o,r);else for(let e of Object.keys(i)){let t=i[e];s[e]=typeof t==`function`?t(o,r):t}return[CI(t,{context:Object.assign({},t.context,s),children:Object.keys(a).length?{...t.children,...a}:t.children}),void 0,void 0]}function MI(e){function t(e,t){}return t.type=`xstate.assign`,t.assignment=e,t.resolve=jI,t}var NI=new WeakMap;function PI(e,t,n){let r=NI.get(e);return r?t in r||(r[t]=n()):(r={[t]:n()},NI.set(e,r)),r[t]}var FI={},II=e=>typeof e==`string`?{type:e}:typeof e==`function`?`resolve`in e?{type:e.type}:{type:e.name}:e,LI=class e{constructor(t,n){if(this.config=t,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(`.`),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?`compound`:this.config.history?`history`:`atomic`),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?RP(this.config.states,(t,n)=>new e(t,{_parent:this,_key:n,_machine:this.machine})):FI,this.type===`compound`&&!this.config.initial)throw Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?`shallow`:this.config.history||!1,this.entry=BP(this.config.entry).slice(),this.exit=BP(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type===`final`||!this.parent?this.config.output:void 0,this.tags=BP(t.tags).slice()}_initialize(){this.transitions=kF(this),this.config.always&&(this.always=WP(this.config.always).map(e=>OF(this,``,e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(II),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(II),eventType:null})}:void 0,history:this.history,states:RP(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(II)})),entry:this.entry.map(II),exit:this.exit.map(II),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return PI(this,`invoke`,()=>BP(this.config.invoke).map((e,t)=>{let{src:n,systemId:r}=e,i=e.id??qP(this.id,t),a=typeof n==`string`?n:`xstate.invoke.${qP(this.id,t)}`;return{...e,src:a,id:i,systemId:r,toJSON(){let{onDone:t,onError:n,...r}=e;return{...r,type:`xstate.invoke`,src:a,id:i}}}}))}get on(){return PI(this,`on`,()=>[...this.transitions].flatMap(([e,t])=>t.map(t=>[e,t])).reduce((e,[t,n])=>(e[t]=e[t]||[],e[t].push(n),e),{}))}get after(){return PI(this,`delayedTransitions`,()=>DF(this))}get initial(){return PI(this,`initial`,()=>jF(this,this.config.initial))}next(e,t){let n=t.type,r=[],i,a=PI(this,`candidates-${n}`,()=>EF(this,n));for(let o of a){let{guard:a}=o,s=e.context,c=!1;try{c=!a||gF(a,s,t,e)}catch(e){let t=typeof a==`string`?a:typeof a==`object`?a.type:void 0;throw Error(`Unable to evaluate guard ${t?`'${t}' `:``}in transition for event '${n}' in state node '${this.id}':\n${e.message}`)}if(c){r.push(...o.actions),i=o;break}}return i?[i]:void 0}get events(){return PI(this,`events`,()=>{let{states:e}=this,t=new Set(this.ownEvents);if(e)for(let n of Object.keys(e)){let r=e[n];if(r.states)for(let e of r.events)t.add(`${e}`)}return Array.from(t)})}get ownEvents(){let e=Object.keys(Object.fromEntries(this.transitions)),t=new Set(e.filter(e=>this.transitions.get(e).some(e=>!(!e.target&&!e.actions.length&&!e.reenter))));return Array.from(t)}},RI=class e{constructor(e,t){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.options=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||`(machine)`,this.implementations={actors:t?.actors??{},actions:t?.actions??{},delays:t?.delays??{},guards:t?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.options={maxIterations:1/0,...this.config.options},this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new LI(e,{_key:this.id,_machine:this}),this.root._initialize(),AF(this.root),this.states=this.root.states,this.events=this.root.events}provide(t){let{actions:n,guards:r,actors:i,delays:a}=this.implementations;return new e(this.config,{actions:{...n,...t.actions},guards:{...r,...t.guards},actors:{...i,...t.actors},delays:{...a,...t.delays}})}resolveState(e){let t=hI(this.root,e.value),n=bF(zF(this.root,t));return SI({_nodes:[...n],context:e.context||{},children:{},status:wF(n,this.root)?`done`:e.status||`active`,output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,t,n){return dI(e,t,n,[]).snapshot}microstep(e,t,n){return dI(e,t,n,[]).microsteps.map(([e])=>e)}getTransitionData(e,t){return UF(this.root,e.value,e,t)||[]}_getPreInitialState(e,t,n){let{context:r}=this.config,i=SI({context:typeof r!=`function`&&r?r:{},_nodes:[this.root],children:{},status:`active`},this);return typeof r==`function`?uI(i,t,e,[MI(({spawn:e,event:t,self:n})=>r({spawn:e,input:t.input,self:n}))],n,void 0):i}getInitialSnapshot(e,t){let n=jP(t),r=[],i=this._getPreInitialState(e,n,r),[a]=$F(this.root,i,e,n,r),{snapshot:o}=dI(a,n,e,r);return o}start(e){Object.values(e.children).forEach(e=>{e.getSnapshot().status===`active`&&e.start()})}getStateNodeById(e){let t=FP(e),n=t.slice(1),r=TF(t[0])?t[0].slice(1):t[0],i=this.idMap.get(r);if(!i)throw Error(`Child state node '#${r}' does not exist on machine '${this.id}'`);return RF(i,n)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,t){return TI(e,t)}restoreSnapshot(e,t){let n={},r=e.children;Object.keys(r).forEach(e=>{let i=r[e],a=i.snapshot,o=i.src,s=typeof o==`string`?JP(this,o):o;if(!s)return;let c=rF(s,{id:e,parent:t.self,syncSnapshot:i.syncSnapshot,snapshot:a,src:o,systemId:i.systemId});n[e]=c});function i(e,t){if(t instanceof LI)return t;try{return e.machine.getStateNodeById(t.id)}catch{}}function a(e,t){if(!t||typeof t!=`object`)return{};let n={};for(let r in t){let a=t[r];for(let t of a){let a=i(e,t);a&&(n[r]??=[],n[r].push(a))}}return n}let o=a(this.root,e.historyValue),s=SI({...e,children:n,_nodes:Array.from(bF(zF(this.root,e.value))),historyValue:o},this),c=new Set;function l(e,t){if(!c.has(e)){c.add(e);for(let n in e){let r=e[n];if(r&&typeof r==`object`){if(`xstate$$type`in r&&r.xstate$$type===1){e[n]=t[r.id];continue}l(r,t)}}}}return l(s.context,n),s}};function zI(e,t,n,r,{event:i}){return[t,{event:typeof i==`function`?i(n,r):i},void 0]}function BI(e,{event:t}){e.defer(()=>e.emit(t))}function VI(e){function t(e,t){}return t.type=`xstate.emit`,t.event=e,t.resolve=zI,t.execute=BI,t}var HI=function(e){return e.Parent=`#_parent`,e.Internal=`#_internal`,e}({});function UI(e,t,n,r,{to:i,event:a,id:o,delay:s},c){let l=t.machine.implementations.delays;if(typeof a==`string`)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${a}" }) instead`);let u=typeof a==`function`?a(n,r):a,d;if(typeof s==`string`){let e=l&&l[s];d=typeof e==`function`?e(n,r):e}else d=typeof s==`function`?s(n,r):s;let f=typeof i==`function`?i(n,r):i,p;if(typeof f==`string`){if(p=f===HI.Parent?e.self._parent:f===HI.Internal?e.self:f.startsWith(`#_`)?t.children[f.slice(2)]:c.deferredActorIds?.includes(f)?f:t.children[f],!p)throw Error(`Unable to send event to actor '${f}' from machine '${t.machine.id}'.`)}else p=f||e.self;return[t,{to:p,targetId:typeof f==`string`?f:void 0,event:u,id:o,delay:d},void 0]}function WI(e,t,n){typeof n.to==`string`&&(n.to=t.children[n.to])}function GI(e,t){e.defer(()=>{let{to:n,event:r,delay:i,id:a}=t;if(typeof i==`number`){e.system.scheduler.schedule(e.self,n,r,i,a);return}e.system._relay(e.self,n,r.type===`xstate.error`?AP(e.self.id,r.data):r)})}function KI(e,t,n){function r(e,t){}return r.type=`xstate.sendTo`,r.to=e,r.event=t,r.id=n?.id,r.delay=n?.delay,r.resolve=UI,r.retryResolve=WI,r.execute=GI,r}function qI(e,t){return KI(HI.Parent,e,t)}function JI(e,t,n,r,{collect:i}){let a=[],o=function(e){a.push(e)};return o.assign=(...e)=>{a.push(MI(...e))},o.cancel=(...e)=>{a.push(oF(...e))},o.raise=(...e)=>{a.push(kI(...e))},o.sendTo=(...e)=>{a.push(KI(...e))},o.sendParent=(...e)=>{a.push(qI(...e))},o.spawnChild=(...e)=>{a.push(lF(...e))},o.stopChild=(...e)=>{a.push(pF(...e))},o.emit=(...e)=>{a.push(VI(...e))},i({context:n.context,event:n.event,enqueue:o,check:e=>gF(e,t.context,n.event,t),self:e.self,system:e.system},r),[t,void 0,a]}function YI(e){function t(e,t){}return t.type=`xstate.enqueueActions`,t.collect=e,t.resolve=JI,t}function XI(e,t,n,r,{value:i,label:a}){return[t,{value:typeof i==`function`?i(n,r):i,label:a},void 0]}function ZI({logger:e},{value:t,label:n}){n?e(n,t):e(t)}function QI(e=({context:e,event:t})=>({context:e,event:t}),t){function n(e,t){}return n.type=`xstate.log`,n.value=e,n.label=t,n.resolve=XI,n.execute=ZI,n}function $I(e,t){return new RI(e,t)}function eL(e){let t=rF(e),n=QP(t,{clock:t.system._clock,logger:t.system._logger});return t.system=n,{self:t,defer:()=>{},id:``,logger:()=>{},sessionId:``,stopChild:()=>{},system:n,emit:()=>{},actionExecutor:()=>{}}}function tL({schemas:e,actors:t,actions:n,guards:r,delays:i}){return{assign:MI,sendTo:KI,raise:kI,log:QI,cancel:oF,stopChild:pF,enqueueActions:YI,emit:VI,spawnChild:lF,createStateConfig:e=>e,createAction:e=>e,createMachine:a=>$I({...a,schemas:e},{actors:t,actions:n,guards:r,delays:i}),extend:a=>tL({schemas:e,actors:t,actions:{...n,...a.actions},guards:{...r,...a.guards},delays:{...i,...a.delays}})}}function nL(e,t,n){let r=[],i=eL(e);return i.actionExecutor=e=>{r.push(e)},[e.transition(t,n,i),r]}var rL=function(e){return e.AUTHENTICATE=`AUTHENTICATE`,e.REQUIRE_EMAIL_VERIFICATION=`REQUIRE_EMAIL_VERIFICATION`,e.REQUIRE_MFA=`REQUIRE_MFA`,e.COMPLETE_MFA=`COMPLETE_MFA`,e.REQUIRE_CONSENT=`REQUIRE_CONSENT`,e.COMPLETE_CONSENT=`COMPLETE_CONSENT`,e.START_HOOK=`START_HOOK`,e.COMPLETE_HOOK=`COMPLETE_HOOK`,e.START_CONTINUATION=`START_CONTINUATION`,e.COMPLETE_CONTINUATION=`COMPLETE_CONTINUATION`,e.COMPLETE=`COMPLETE`,e.FAIL=`FAIL`,e.EXPIRE=`EXPIRE`,e}({}),iL=tL({types:{context:{},events:{}},actions:{setUserId:MI(({event:e})=>e.type===`AUTHENTICATE`?{userId:e.userId}:{}),setHookId:MI(({event:e})=>e.type===`START_HOOK`?{hookId:e.hookId}:{}),clearHookId:MI({hookId:void 0}),setContinuationScope:MI(({event:e})=>e.type===`START_CONTINUATION`?{continuationScope:e.scope}:{}),clearContinuationScope:MI({continuationScope:void 0}),setFailureReason:MI(({event:e})=>e.type===`FAIL`?{failureReason:e.reason}:{})}}).createMachine({id:`loginSession`,initial:`pending`,context:{},states:{pending:{on:{AUTHENTICATE:{target:`authenticated`,actions:`setUserId`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},authenticated:{on:{REQUIRE_EMAIL_VERIFICATION:{target:`awaiting_email_verification`},REQUIRE_MFA:{target:`awaiting_mfa`},REQUIRE_CONSENT:{target:`awaiting_consent`},START_HOOK:{target:`awaiting_hook`,actions:`setHookId`},START_CONTINUATION:{target:`awaiting_continuation`,actions:`setContinuationScope`},COMPLETE:{target:`completed`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_email_verification:{on:{COMPLETE:{target:`authenticated`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_mfa:{on:{COMPLETE_MFA:{target:`authenticated`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_consent:{on:{COMPLETE_CONSENT:{target:`authenticated`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_hook:{on:{COMPLETE_HOOK:{target:`authenticated`,actions:`clearHookId`},START_CONTINUATION:{target:`awaiting_continuation`,actions:`setContinuationScope`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_continuation:{on:{COMPLETE_CONTINUATION:{target:`authenticated`,actions:`clearContinuationScope`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},completed:{type:`final`},failed:{type:`final`},expired:{type:`final`}}});function aL(e,t={}){return iL.resolveState({value:e,context:t})}function oL(e,t,n={}){let[r]=nL(iL,aL(e,n),t),i={},a=r.context,o=n;return a.userId!==o.userId&&(i.userId=a.userId),a.hookId!==o.hookId&&(i.hookId=a.hookId),a.continuationScope!==o.continuationScope&&(i.continuationScope=a.continuationScope),a.failureReason!==o.failureReason&&(i.failureReason=a.failureReason),{state:r.value,context:i}}function sL(e,t){Object.keys(t).forEach(n=>{let r=t[n];r!=null&&r.length&&e.searchParams.set(n,r)})}function cL(e){try{let t=typeof e==`string`?new URL(e):e,n=`${t.protocol}//${t.host}${t.pathname}`;if(t.search){let e=Array.from(t.searchParams.keys()).map(e=>`${e}=[REDACTED]`).join(`&`);n+=`?${e}`}return t.hash&&(n+=`#[REDACTED]`),n}catch{let t=(typeof e==`string`?e:e.toString()).match(/^([^?#]*)(\?[^#]*)?(#.*)?$/);if(!t)return`[invalid-url]`;let[,n=``,r,i]=t,a=n;if(r){let e=r.substring(1).split(`&`).map(e=>{let[t]=e.split(`=`);return`${t}=[REDACTED]`}).join(`&`);a+=`?${e}`}return i&&(a+=`#[REDACTED]`),a}}var lL=[`sub`,`iss`,`aud`,`exp`,`nbf`,`iat`,`jti`];function uL(e){switch(e){case $r.AuthorizationCode:return A.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN;case $r.ClientCredential:return A.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS;case $r.RefreshToken:return A.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN;case $r.OTP:return A.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN;case $r.Password:return A.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN;case $r.Passwordless:return A.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN;case $r.TokenExchange:return A.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN;default:return A.FAILED_EXCHANGE_CUSTOM_TOKEN}}function dL(e,t,n,r){return{accessToken:{setCustomClaim:(e,n)=>{if(lL.includes(e))throw Error(`Cannot overwrite reserved claim '${e}'`);t[e]=n}},idToken:{setCustomClaim:(e,t)=>{if(lL.includes(e))throw Error(`Cannot overwrite reserved claim '${e}'`);n&&(n[e]=t)}},access:{deny:(t,n)=>{let i=n?`${t} - ${n}`:t;throw M(e,e.var.tenant_id||``,{type:uL(r),description:`Access denied by credentials-exchange hook: ${i}`}),new L(400,{message:`Access denied: ${i}`})}},token:{createServiceToken:async t=>(await NL(e,e.var.tenant_id,t.scope,t.expiresInSeconds,t.customClaims)).access_token}}}async function fL(e,t){let{authParams:n,user:r,client:i,session_id:a,organization:o,permissions:s,impersonatingUser:c,actClient:l,grantType:u}=t,d=(()=>{if(c&&l)return{sub:c.user_id,client_id:l.client_id};if(c)return{sub:c.user_id};if(l)return{sub:l.client_id,client_id:l.client_id}})(),f=t.auth_time,p=n.prompt?.split(` `)??[],h=n.max_age!==void 0||p.includes(`login`)||n.claims?.id_token?.auth_time?.essential===!0;if(f===void 0&&h){if(t.loginSession?.authenticated_at)f=Math.floor(new Date(t.loginSession.authenticated_at).getTime()/1e3);else if(a&&e.var.tenant_id){let t=await e.env.data.sessions.get(e.var.tenant_id,a);t?.authenticated_at&&(f=Math.floor(new Date(t.authenticated_at).getTime()/1e3))}}let g=e.var.tenant_id,_=(await VO(e.env.data.keys,g??``,g?e.env.signingKeyMode:`control-plane`,{purpose:`sign`}))[0];if(!_?.pkcs7||!_.cert)throw new L(500,{message:`No signing key available`});let v=hM(_.pkcs7),y=await NO(_.cert),b=Ea(e.env,e.var.custom_domain),x=n.audience??i.tenant.default_audience??`${b}userinfo`,S=n.claims?.userinfo?Object.keys(n.claims.userinfo):void 0,C=t.customClaims?Object.fromEntries(Object.entries(t.customClaims).filter(([e])=>e!==`act`)):void 0,w={aud:x,scope:n.scope||``,sub:r?.user_id||n.client_id,iss:b,tenant_id:e.var.tenant_id,sid:a,act:d,org_id:o?o.id:void 0,requested_userinfo_claims:S,org_name:o&&i.tenant.allow_organization_name_in_authentication_api?o.name.toLowerCase():void 0,permissions:s,...C};if(t.customClaims){for(let e of lL)if(e in t.customClaims)throw Error(`Cannot overwrite reserved claim '${e}'`)}let T=n.scope?.split(` `)||[],ee=T.includes(`openid`),te=(n.response_type??``).trim()===nn.ID_TOKEN,ne=i.auth0_conformant!==!1||te,re=r&&ee?{aud:n.client_id,sub:r.user_id,iss:b,sid:a,nonce:n.nonce,...f===void 0?{}:{auth_time:f},...n.acr_values?{acr:n.acr_values.split(` `)[0]}:{},...ne?xP(jA(r,b),T):{},...n.claims?.id_token?SP(jA(r,b),Object.keys(n.claims.id_token)):{},...te&&n.claims?.userinfo?SP(jA(r,b),Object.keys(n.claims.userinfo)):{},act:d,org_id:o?.id,org_name:o?.name.toLowerCase()}:void 0,ie=Ma({loginSession:t.loginSession,authConnection:t.authConnection,ctxConnection:e.var.connection,user:r}),ae=await Na(e,e.var.tenant_id,ie,r);e.env.hooks?.onExecuteCredentialsExchange&&await e.env.hooks.onExecuteCredentialsExchange({ctx:e,client:i,user:r,request:{ip:e.var.ip||``,user_agent:e.var.useragent||``,method:e.req.method,url:e.req.url},scope:n.scope||``,grant_type:u??``,organization:o,connection:ae||(ie?{id:ie,name:ie,strategy:r?.provider||`auth0`}:void 0)},dL(e,w,re,u));{let{hooks:t}=await e.env.data.hooks.list(e.var.tenant_id),a=t.filter(e=>e.trigger_id===`credentials-exchange`&&e.enabled&&XN(e)),s=dL(e,w,re,u);if(r){for(let t of a)if(XN(t))try{await Sde(e,t.template_id,r,s)}catch(e){if(e instanceof m)throw e;console.warn(`[credentials-exchange] Failed to execute template hook: ${t.template_id}`,e)}}let c=dL(e,w,re,u),l=await gde(e,t,{ctx:e,client:i,user:r,request:{ip:e.var.ip||``,user_agent:e.var.useragent||``,method:e.req?.method||``,url:e.req?.url||``},scope:n.scope||``,grant_type:u??``,organization:o,connection:ae||(ie?{id:ie,name:ie,strategy:r?.provider||`auth0`}:void 0)},c);l&&e.set(`action_execution_id`,l)}let oe=c?3600:t.token_lifetime??86400,se={includeIssuedTimestamp:!0,expiresInSeconds:oe,headers:{kid:_.kid}},ce=await YO(y,v,w,se);if(re){let e=(n.response_type??``).split(` `);t.code&&e.includes(`code`)&&(re.c_hash=await gM(t.code,y)),e.includes(`id_token`)&&e.includes(`token`)&&(re.at_hash=await gM(ce,y))}let le=re?await YO(y,v,re,se):void 0;return{access_token:ce,refresh_token:t.refresh_token,id_token:le,token_type:`Bearer`,expires_in:oe}}async function pL(e,t){return{code:(await e.env.data.codes.create(t.client.tenant.id,{code_id:qa(32),user_id:t.user.user_id,code_type:`authorization_code`,login_id:t.login_id,expires_at:new Date(Date.now()+300*1e3).toISOString(),code_challenge:t.authParams.code_challenge,code_challenge_method:t.authParams.code_challenge_method,redirect_uri:t.authParams.redirect_uri,state:t.authParams.state,nonce:t.authParams.nonce})).code_id,state:t.authParams.state}}function mL(e){if(e)return new Date(Date.now()+e*60*60*1e3).toISOString()}async function hL(e,t){let{client:n,scope:r,login_id:i}=t,a=Ea(e.env,e.var.custom_domain),o=t.audience??n.tenant.default_audience??`${a}userinfo`,s=mL(n.tenant.idle_session_lifetime),c=mL(n.tenant.session_lifetime),l=mM(),{lookup:u,secret:d}=oM(),f=await sM(d),p=n.refresh_token?.rotation_type===`rotating`;return{row:await e.env.data.refreshTokens.create(n.tenant.id,{id:l,login_id:i,client_id:n.client_id,idle_expires_at:s,expires_at:c,user_id:t.user.user_id,device:{last_ip:e.var.ip,initial_ip:e.var.ip,last_user_agent:e.var.useragent||``,initial_user_agent:e.var.useragent||``,initial_asn:``,last_asn:``},resource_servers:[{audience:o,scopes:r}],rotating:p,token_lookup:u,token_hash:f,family_id:l}),wireToken:cM(u,d)}}async function gL(e,{user:t,client:n,loginSession:r}){let i=mL(n.tenant.idle_session_lifetime),a=mL(n.tenant.session_lifetime);return await e.env.data.sessions.create(n.tenant.id,{id:mM(),user_id:t.user_id,login_session_id:r.id,idle_expires_at:i,expires_at:a,device:{last_ip:e.var.ip||``,initial_ip:e.var.ip||``,last_user_agent:e.var.useragent||``,initial_user_agent:e.var.useragent||``,initial_asn:``,last_asn:``},clients:[n.client_id]})}async function _L(e,{user:t,client:n,loginSession:r,existingSessionId:i,authConnection:a,authStrategy:o}){let s=await e.env.data.loginSessions.get(n.tenant.id,r.id);if(!s)throw new m(400,{message:`Login session ${r.id} not found`});let c=s.state||k.PENDING;if(c===k.FAILED)throw new L(400,{error:`access_denied`,error_description:s.failure_reason||`Cannot authenticate login session in failed state`});if(c===k.COMPLETED)throw new L(400,{error:`access_denied`,error_description:`Login session has already been completed`});if(c===k.AUTHENTICATED){if(s.session_id)return s.session_id;throw new m(500,{message:`Login session is authenticated but has no session_id`})}let l,u;if(i){let a=await e.env.data.sessions.get(n.tenant.id,i);if(!a||a.revoked_at){let i=await gL(e,{user:t,client:n,loginSession:r});l=i.id,u=i.authenticated_at}else l=i,u=a.authenticated_at,a.clients.includes(n.client_id)||await e.env.data.sessions.update(n.tenant.id,i,{clients:[...a.clients,n.client_id]})}else{let i=await gL(e,{user:t,client:n,loginSession:r});l=i.id,u=i.authenticated_at}let{state:d}=oL(c===k.EXPIRED?k.PENDING:c,{type:rL.AUTHENTICATE,userId:t.user_id}),f=Ma({authConnection:a,ctxConnection:e.var.connection});return await e.env.data.loginSessions.update(n.tenant.id,r.id,{session_id:l,state:d,user_id:t.user_id,authenticated_at:u,...f?{auth_connection:f}:{},...o?{auth_strategy:o}:{},...c===k.EXPIRED?{expires_at:new Date(Date.now()+Bj*1e3).toISOString()}:{}}),l}async function vL(e,t){let{user:n,client:r,loginSession:i,authStrategy:a,authConnection:o}=t;await _L(e,{user:n,client:r,loginSession:i,existingSessionId:t.existingSessionId,authConnection:o,authStrategy:a});let s=`/authorize/resume?state=${encodeURIComponent(i.id)}`,c=s;if(i.authorization_url)try{let t=new URL(i.authorization_url),n=e.var.host||``;t.host&&t.host!==n&&(c=`${t.origin}${s}`)}catch{}return new Response(null,{status:302,headers:{location:c}})}async function yL(e,t,n,r){let i=await e.env.data.loginSessions.get(t,n.id);if(!i){console.warn(`Login session ${n.id} not found when trying to mark as failed`);return}let a=i.state||k.PENDING,{state:o,context:s}=oL(a,{type:rL.FAIL,reason:r});o!==a&&await e.env.data.loginSessions.update(t,n.id,{state:o,failure_reason:s.failureReason})}async function bL(e,t,n,r){let i=await e.env.data.loginSessions.get(t,n.id);if(!i){console.warn(`Login session ${n.id} not found when trying to start hook`);return}let a=i.state||k.PENDING,{state:o,context:s}=oL(a,{type:rL.START_HOOK,hookId:r});o!==a&&await e.env.data.loginSessions.update(t,n.id,{state:o,state_data:s.hookId?JSON.stringify({hookId:s.hookId}):void 0})}async function xL(e,t,n){let r=await e.env.data.loginSessions.get(t,n.id);if(!r){console.warn(`Login session ${n.id} not found when trying to complete hook`);return}let i=r.state||k.PENDING,{state:a}=oL(i,{type:rL.COMPLETE_HOOK});a!==i&&await e.env.data.loginSessions.update(t,n.id,{state:a,state_data:void 0})}async function SL(e,t,n,r,i){let a=i??await e.env.data.loginSessions.get(t,n.id);if(!a){console.warn(`Login session ${n.id} not found when trying to mark as completed`);return}let o=a.state||k.PENDING,{state:s}=oL(o,{type:rL.COMPLETE});s!==o&&await e.env.data.loginSessions.update(t,n.id,{state:s,...r?{auth_connection:r}:{}})}async function CL(e,t,n,r,i){let a=await e.env.data.loginSessions.get(t,n.id);if(!a){console.warn(`Login session ${n.id} not found when trying to start continuation`);return}let o=a.state||k.PENDING,{state:s}=oL(o,{type:rL.START_CONTINUATION,scope:r});if(s!==o){let o={};if(a.state_data)try{o=JSON.parse(a.state_data)}catch{}await e.env.data.loginSessions.update(t,n.id,{state:s,state_data:JSON.stringify({...o,continuationScope:r,continuationReturnUrl:i})})}else console.warn(`Failed to start continuation for login session ${n.id}: cannot transition from ${o} to AWAITING_CONTINUATION. Scope: ${JSON.stringify(r)}, Return URL: ${cL(i)}`)}async function wL(e,t,n){let r=await e.env.data.loginSessions.get(t,n.id);if(!r){console.warn(`Login session ${n.id} not found when trying to complete continuation`);return}let i,a={};if(r.state_data)try{let e=JSON.parse(r.state_data);i=e.continuationReturnUrl;let{continuationScope:t,continuationReturnUrl:n,...o}=e;a=o}catch{}let o=r.state||k.PENDING,{state:s}=oL(o,{type:rL.COMPLETE_CONTINUATION});return s===o?console.warn(`completeLoginSessionContinuation: State transition from ${o} with COMPLETE_CONTINUATION was invalid or no-op`):await e.env.data.loginSessions.update(t,n.id,{state:s,state_data:Object.keys(a).length>0?JSON.stringify(a):void 0}),i}function TL(e){if(!e.state_data)return null;try{return JSON.parse(e.state_data).continuationScope||null}catch{return null}}function EL(e,t){if(e.state!==k.AWAITING_CONTINUATION)return!1;let n=TL(e);return n?n.includes(t):!1}async function DL(e,t){let{authParams:n,client:r,ticketAuth:i}=t,{user:a}=t,o=n.response_type||nn.CODE,s=n.response_mode||rn.QUERY;if(i){if(!t.loginSession)throw new L(500,{message:`Login session not found for ticket auth.`});a&&!t.skipHooks&&(t.authStrategy&&a.app_metadata?.strategy!==t.authStrategy.strategy&&(a.app_metadata={...a.app_metadata,strategy:t.authStrategy.strategy},await e.env.data.users.update(r.tenant.id,a.user_id,{app_metadata:{...a.app_metadata||{},strategy:t.authStrategy.strategy}})),await dP(e,e.env.data,r.tenant.id,a,t.loginSession,{client:r,authParams:n,authStrategy:t.authStrategy,authConnection:t.authConnection}));let i=kse(),o=qa(12),s=await e.env.data.codes.create(r.tenant.id,{code_id:qa(32),code_type:`ticket`,login_id:t.loginSession.id,expires_at:new Date(Date.now()+Uoe).toISOString(),code_verifier:[o,i].join(`|`),redirect_uri:n.redirect_uri,state:n.state,nonce:n.nonce});return e.json({login_ticket:s.code_id,co_verifier:i,co_id:o})}let c=t.refreshToken,l;if(!t.loginSession)throw new L(500,{message:`loginSession must be provided for front-channel auth responses.`});let u=await e.env.data.loginSessions.get(r.tenant.id,t.loginSession.id);if(!u)throw new L(500,{message:`Login session not found.`});let d=u.state||k.PENDING;if(d===k.COMPLETED)throw new L(400,{error:`invalid_request`,error_description:`Login session has already been completed`});if(d===k.FAILED)throw new L(400,{error:`access_denied`,error_description:`Login session failed: ${u.failure_reason||`unknown reason`}`});if(d===k.PENDING||d===k.EXPIRED){l=await _L(e,{user:a,client:r,loginSession:t.loginSession,existingSessionId:t.existingSessionIdToLink,authConnection:t.authConnection,authStrategy:t.authStrategy});let n=await e.env.data.loginSessions.get(r.tenant.id,t.loginSession.id);n&&(u=n)}else if(l=u.session_id,!l)throw new L(500,{message:`Login session in ${d} state but has no session_id`});if(t.loginSession&&a){let n=u.state||k.PENDING,i={};if(u.state_data)try{i=JSON.parse(u.state_data)}catch{console.error(`Failed to parse state_data for login session`,u.id)}if(n===k.AWAITING_MFA){let n=`/u2/mfa/login-options`;if(i.authenticationMethodId){let t=(await e.env.data.authenticationMethods.list(r.tenant.id,a.user_id)).find(e=>e.id===i.authenticationMethodId);t?.confirmed&&t.type===`phone`?n=`/u2/mfa/phone-challenge`:t?.confirmed&&t.type===`totp`?n=`/u2/mfa/totp-challenge`:t?.confirmed&&(t.type===`passkey`||t.type===`webauthn-roaming`||t.type===`webauthn-platform`)?n=`/u2/passkey/challenge`:t?.type===`totp`?n=`/u2/mfa/totp-enrollment`:t?.type===`phone`&&(n=`/u2/mfa/phone-enrollment`)}return new Response(null,{status:302,headers:{location:`${n}?state=${encodeURIComponent(t.loginSession.id)}`}})}if(n===k.AUTHENTICATED&&!i.mfa_verified){let{checkMfaRequired:n,sendMfaOtp:o}=await Promise.resolve().then(()=>$6),s=await n(e,r.tenant.id,a.user_id);if(s.required){let{state:n}=oL(k.AUTHENTICATED,{type:rL.REQUIRE_MFA});if(s.enrolled){if(s.allEnrollments.length>1)return await e.env.data.loginSessions.update(r.tenant.id,t.loginSession.id,{state:n}),new Response(null,{status:302,headers:{location:`/u2/mfa/login-options?state=${encodeURIComponent(t.loginSession.id)}`}});if(await e.env.data.loginSessions.update(r.tenant.id,t.loginSession.id,{state:n,state_data:JSON.stringify({...i,authenticationMethodId:s.enrollment.id})}),s.enrollment.type===`totp`)return new Response(null,{status:302,headers:{location:`/u2/mfa/totp-challenge?state=${encodeURIComponent(t.loginSession.id)}`}});if(s.enrollment.type===`passkey`||s.enrollment.type===`webauthn-roaming`||s.enrollment.type===`webauthn-platform`)return new Response(null,{status:302,headers:{location:`/u2/passkey/challenge?state=${encodeURIComponent(t.loginSession.id)}`}});if(!s.enrollment.phone_number)throw Error(`MFA enrollment is missing phone_number`);return await o(e,r,t.loginSession,s.enrollment.phone_number),new Response(null,{status:302,headers:{location:`/u2/mfa/phone-challenge?state=${encodeURIComponent(t.loginSession.id)}`}})}else{let i=r.tenant,a=i.mfa?.factors?.otp===!0,o=i.mfa?.factors?.sms===!0,s=i.mfa?.factors?.webauthn_roaming===!0||i.mfa?.factors?.webauthn_platform===!0;return await e.env.data.loginSessions.update(r.tenant.id,t.loginSession.id,{state:n}),+!!a+ +!!o+ +!!s>1?new Response(null,{status:302,headers:{location:`/u2/mfa/login-options?state=${encodeURIComponent(t.loginSession.id)}`}}):a?new Response(null,{status:302,headers:{location:`/u2/mfa/totp-enrollment?state=${encodeURIComponent(t.loginSession.id)}`}}):s?new Response(null,{status:302,headers:{location:`/u2/passkey/enrollment?state=${encodeURIComponent(t.loginSession.id)}`}}):new Response(null,{status:302,headers:{location:`/u2/mfa/phone-enrollment?state=${encodeURIComponent(t.loginSession.id)}`}})}}}if(l&&yP(u.state_data)){let n=new Headers;return CM(r.tenant.id,l,e.var.host||``).forEach(e=>n.append(`set-cookie`,e)),n.set(`location`,`/u2/connect/start?state=${encodeURIComponent(t.loginSession.id)}`),new Response(null,{status:302,headers:n})}}if(t.loginSession&&a&&!r.is_first_party&&s!==rn.WEB_MESSAGE){let n=u.state||k.PENDING;if(n===k.AWAITING_CONSENT)return new Response(null,{status:302,headers:{location:`/u2/consent?state=${encodeURIComponent(t.loginSession.id)}`}});if(n===k.AUTHENTICATED){let n=u.authParams.scope?.split(` `).filter(Boolean)??[];if((await vP(e,{tenantId:r.tenant.id,userId:a.user_id,clientId:r.client_id,requestedScopes:n})).length>0){let{state:n}=oL(k.AUTHENTICATED,{type:rL.REQUIRE_CONSENT});return await e.env.data.loginSessions.update(r.tenant.id,t.loginSession.id,{state:n}),new Response(null,{status:302,headers:{location:`/u2/consent?state=${encodeURIComponent(t.loginSession.id)}`}})}}}if(t.loginSession&&a&&s!==rn.WEB_MESSAGE){let n=u.state||k.PENDING,i={};if(u.state_data)try{i=JSON.parse(u.state_data)}catch{}if(n===k.AUTHENTICATED&&!i.passkey_nudge_completed){let{checkPasskeyNudgeRequired:n}=await Promise.resolve().then(()=>require("./passkey-enrollment-CB7HjMH_.js"));if((await n(e,r.tenant.id,a.user_id,u.auth_connection)).show)return await CL(e,r.tenant.id,u,[`passkey-enrollment`],`/u/continue?state=${encodeURIComponent(t.loginSession.id)}`),new Response(null,{status:302,headers:{location:`/u2/passkey/enrollment-nudge?state=${encodeURIComponent(t.loginSession.id)}`}})}}let f=o.split(` `).includes(`code`);if(!c&&n.scope?.split(` `).includes(`offline_access`)&&o!==nn.TOKEN&&!f&&!t.impersonatingUser&&(c=(await hL(e,{user:a,client:r,login_id:t.loginSession?.id||``,scope:n.scope,audience:n.audience})).wireToken),s===rn.SAML_POST){if(!l)throw new m(500,{message:`Session ID not available for SAML response`});return ade(e,t.client,t.authParams,a,l)}let p=await OL(e,{authParams:n,user:a,client:r,session_id:l,refresh_token:c,authStrategy:t.authStrategy,authConnection:t.authConnection,loginSession:u,loginSessionIsCurrent:!0,responseType:o,skipHooks:t.skipHooks,organization:t.organization,impersonatingUser:t.impersonatingUser});if(p instanceof Response)return p;if(!n.redirect_uri)throw new L(400,{message:s===rn.WEB_MESSAGE?`Redirect URI not allowed for WEB_MESSAGE response mode.`:`Redirect uri not found for this response mode.`});let h=new Headers;l?CM(r.tenant.id,l,e.var.host||``).forEach(e=>{h.append(`set-cookie`,e)}):s===rn.WEB_MESSAGE&&console.warn(`Session ID not available for WEB_MESSAGE, cookie will not be set.`);let g=o.split(` `),_=g.includes(`code`),v=g.includes(`id_token`),y=g.includes(`token`),b={},x=`code`in p&&typeof p.code==`string`,S=`access_token`in p&&typeof p.access_token==`string`;if(x&&_&&(b.code=p.code),S&&(y&&(b.access_token=p.access_token,b.token_type=p.token_type,b.expires_in=p.expires_in.toString()),v&&p.id_token&&(b.id_token=p.id_token)),!x&&!S)throw new L(500,{message:`Invalid token response for front-channel flow.`});let C=(`state`in p&&typeof p.state==`string`?p.state:void 0)??n.state;if(C&&(b.state=C),(y||v)&&n.scope&&(b.scope=n.scope),s===rn.WEB_MESSAGE){let t=new URL(n.redirect_uri);return fP(e,`${t.protocol}//${t.host}`,JSON.stringify(b),h)}if(s===rn.FORM_POST)return mP(n.redirect_uri,b,h);let w=v||y,T=new URL(n.redirect_uri);if(w)T.hash=new URLSearchParams(b).toString();else for(let[e,t]of Object.entries(b))T.searchParams.set(e,t);return h.set(`location`,T.toString()),new Response(`Redirecting`,{status:302,headers:h})}async function OL(e,t){let{user:n}=t,r=t.responseType||nn.TOKEN;if(n&&t.organization&&!(await e.env.data.userOrganizations.list(t.client.tenant.id,{q:`user_id:${n.user_id}`,per_page:1e3})).userOrganizations.some(e=>e.organization_id===t.organization.id))throw new L(403,{error:`access_denied`,error_description:`User is not a member of the specified organization`});let i=t.authParams.scope||``,a=[],o,s=Ea(e.env,e.var.custom_domain),c=t.authParams.audience??t.client.tenant.default_audience??`${s}userinfo`;if(c)try{let r;if(t.grantType===$r.ClientCredential||!n&&!t.user)r=await gP(e,{grantType:$r.ClientCredential,tenantId:t.client.tenant.id,clientId:t.client.client_id,audience:c,requestedScopes:t.authParams.scope?.split(` `)||[],organizationId:t.organization?.id});else{let i=n?.user_id||t.user?.user_id;if(!i)throw new L(400,{error:`invalid_request`,error_description:`User ID is required for user-based grants`});r=await gP(e,{grantType:t.grantType,tenantId:t.client.tenant.id,userId:i,clientId:t.client.client_id,audience:c,requestedScopes:t.authParams.scope?.split(` `)||[],organizationId:t.organization?.id})}i=r.scopes.join(` `),a=r.permissions,o=t.client.app_type===`spa`&&r.token_lifetime_for_web?r.token_lifetime_for_web:r.token_lifetime}catch(e){if(e instanceof m)throw e}let l={...t.authParams,scope:i};if(t.loginSession&&n&&!t.skipHooks){t.authStrategy&&n.app_metadata?.strategy!==t.authStrategy.strategy&&(n.app_metadata={...n.app_metadata,strategy:t.authStrategy.strategy},await e.env.data.users.update(t.client.tenant.id,n.user_id,{app_metadata:{...n.app_metadata||{},strategy:t.authStrategy.strategy}}));let r=await dP(e,e.env.data,t.client.tenant.id,n,t.loginSession,{client:t.client,authParams:l,authStrategy:t.authStrategy,authConnection:t.authConnection});if(r instanceof Response)return r;n=r}let u=Ma({loginSession:t.loginSession,authConnection:t.authConnection,ctxConnection:e.var.connection}),d=r.split(` `),f=d.includes(`code`),p=d.includes(`id_token`)||d.includes(`token`),h=f&&p;if(r===nn.CODE){if(!n||!t.loginSession)throw new L(500,{message:`User and loginSession is required for code flow`});let r=await pL(e,{user:n,client:t.client,authParams:l,login_id:t.loginSession.id});return await SL(e,t.client.tenant.id,t.loginSession,u,t.loginSessionIsCurrent?t.loginSession:void 0),r}else if(h){if(!n||!t.loginSession)throw new L(500,{message:`User and loginSession is required for hybrid flow`});let r=await pL(e,{user:n,client:t.client,authParams:l,login_id:t.loginSession.id}),i=await fL(e,{...t,user:n,authParams:l,permissions:a,token_lifetime:o,code:r.code});return await SL(e,t.client.tenant.id,t.loginSession,u,t.loginSessionIsCurrent?t.loginSession:void 0),{...i,code:r.code,state:r.state}}else{let r=await fL(e,{...t,user:n,authParams:l,permissions:a,token_lifetime:o});return t.loginSession&&await SL(e,t.client.tenant.id,t.loginSession,u,t.loginSessionIsCurrent?t.loginSession:void 0),r}}var kL=`auth-service`,AL=3600,jL=[`sub`,`iss`,`aud`,`exp`,`nbf`,`iat`,`jti`,`scope`,`azp`,`tenant_id`];async function ML(e){let{tenants:t,keys:n,tenantId:r,scope:i,issuer:a}=e,o=await t.get(r);if(!o)throw Error(`Tenant not found: ${r}`);let s=o.audience;if(!s)throw Error(`Cannot mint service token: tenant "${r}" has no default audience`);if(e.customClaims){for(let t of jL)if(t in e.customClaims)throw Error(`Cannot overwrite reserved claim '${t}'`)}let c=(await VO(n,r,e.signingKeyMode,{purpose:`sign`}))[0];if(!c?.pkcs7||!c.cert)throw Error(`No signing key available`);let l=hM(c.pkcs7),u=await NO(c.cert),d=e.expiresInSeconds??AL;return{access_token:await YO(u,l,{aud:s,scope:i,sub:kL,azp:kL,iss:a,tenant_id:r,...e.customClaims},{includeIssuedTimestamp:!0,expiresInSeconds:d,headers:{kid:c.kid}}),token_type:`Bearer`,expires_in:d}}async function NL(e,t,n,r,i){let a=await e.env.data.tenants.get(t);if(!a)throw Error(`Tenant not found: ${t}`);let o=await fL(e,{client:{client_id:kL,tenant:a,auth0_conformant:!0},authParams:{client_id:kL,response_type:nn.TOKEN,scope:n,audience:a.audience},customClaims:i});return{access_token:o.access_token,token_type:o.token_type,expires_in:r||AL}}function PL(e){return async(t,n=`webhook`)=>(await ML({tenants:e.tenants,keys:e.keys,tenantId:t,scope:n,issuer:e.issuer,signingKeyMode:e.signingKeyMode})).access_token}async function FL(e,t){let n=e.env.data.multiTenancyConfig;return n?.resolveControlPlane?(await n.resolveControlPlane({tenant_id:t}))?.tenantId:n?.controlPlaneTenantId}async function IL(e,t,n,r){let{clientId:i,scope:a}=n;if(!await e.env.data.tenants.get(t))throw Error(`Tenant not found: ${t}`);let o=t,s=await e.env.data.clients.get(t,i);if(!s&&r?.allowControlPlaneFallback){let n=await FL(e,t);if(n&&n!==t){let t=await e.env.data.clients.get(n,i);t&&(s=t,o=n)}}if(!s)throw Error(`Client not found: ${i}`);let c=(await e.env.data.clientGrants.list(o,{q:`client_id:"${i}"`})).client_grants;if(c.length===0)throw Error(`Client has no client_grant: ${i}`);let l,u;if(n.audience){if(u=c.find(e=>e.audience===n.audience),!u)throw Error(`Client ${i} has no client_grant for audience: ${n.audience}`);l=n.audience}else if(c.length===1)u=c[0],l=u.audience;else throw Error(`audience is required: client ${i} has multiple client_grants`);let d=u.scope||[],f=a.split(/\s+/).filter(Boolean),p=f.filter(e=>!d.includes(e));if(p.length>0)throw Error(`access_denied: Client is not authorized for scope(s): ${p.join(`, `)}`);if(n.customClaims){for(let e of jL)if(e in n.customClaims)throw Error(`Cannot overwrite reserved claim '${e}'`)}let m=(await VO(e.env.data.keys,o,e.env.signingKeyMode,{purpose:`sign`}))[0];if(!m?.pkcs7||!m.cert)throw Error(`No signing key available`);let h=hM(m.pkcs7),g=await NO(m.cert),_=n.expiresInSeconds??AL;return{access_token:await YO(g,h,{...n.customClaims,aud:l,scope:f.join(` `),sub:i,azp:i,iss:Ea(e.env),tenant_id:o,gty:`client_credentials`},{includeIssuedTimestamp:!0,expiresInSeconds:_,headers:{kid:m.kid}}),token_type:`Bearer`,expires_in:_}}function LL(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Object.getOwnPropertyNames(n))e!==`constructor`&&t.add(e);n=Object.getPrototypeOf(n)}return Array.from(t)}function RL(e){let t=Reflect.get(e,`webSocket`);return e.status===101||t!=null}function zL(e){return RL(e)?e:new Response(e.body,e)}function BL(e){e.res=zL(e.res)}function VL(e,t,n){let r=e.get(`serverTiming`);r?r.push({name:t,dur:n}):e.set(`serverTiming`,[{name:t,dur:n}])}function HL(e,t){return e?t.split(`,`).map(e=>e.trim()).filter(Boolean).includes(e):!1}var UL=async(e,t)=>{await t();let n=e.env.SERVER_TIMING??`off`;if(n===`off`)return;let r=e.get(`serverTiming`);if(!r||r.length===0)return;let i=r.map(e=>`${e.name};dur=${e.dur.toFixed(2)}`).join(`, `);if((n===`log`||n===`both`)&&console.log(JSON.stringify({msg:`server-timing`,method:e.req.method,path:e.req.path,ip:e.get(`ip`),tenant_id:e.get(`tenant_id`),timing:i})),n===`client`||n===`both`){if(e.res.status===101||`webSocket`in e.res)return;let t=e.env.SERVER_TIMING_IPS;if(!t||HL(e.get(`ip`),t)){BL(e);let t=e.res.headers.get(`Server-Timing`);e.res.headers.set(`Server-Timing`,t?`${t}, ${i}`:i)}}};function WL(e){if(!e)return`unknown`;let t=e.indexOf(`:`);return t===-1?e:e.slice(0,t)}function GL(e,t){let n=async(t,n)=>{let r=performance.now();try{return await n()}finally{VL(e,t,performance.now()-r)}};return{get(e){return n(`cache-get:${WL(e)}`,()=>t.get(e))},set(e,r,i){return n(`cache-set:${WL(e)}`,()=>t.set(e,r,i))},delete(e){return n(`cache-delete:${WL(e)}`,()=>t.delete(e))},deleteByPrefix(e){return n(`cache-deleteByPrefix:${WL(e)}`,()=>t.deleteByPrefix(e))},clear(){return n(`cache-clear`,()=>t.clear())}}}function KL(e,t){let n={};for(let[r,i]of Object.entries(t)){if(i==null)continue;if(typeof i==`function`){n[r]=i;continue}let t={};for(let n of LL(i)){let a=i[n];if(typeof a==`function`){let o=a.bind(i);t[n]=async(...t)=>{let i=performance.now();try{let a=await o(...t);return VL(e,`${r}-${n}`,performance.now()-i),a}catch(t){throw VL(e,`${r}-${n}-error`,performance.now()-i),t}}}else t[n]=a}n[r]=t}return n}async function qL(e,t,n){n?.user&&(n={...n,user:PN(n.user)});let r=e.env.webhookInvoker,i=async(t=`webhook`)=>(await NL(e,n.tenant_id,t)).access_token,a,o;try{let s=performance.now(),c=r?await r({hook:t,data:n,tenant_id:n.tenant_id,createServiceToken:i}):await fetch(t.url,{method:`POST`,headers:{Authorization:`Bearer ${await i()}`,"Content-Type":`application/json`},body:JSON.stringify(n)}),l=performance.now()-s;if(VL(e,`webhook-${t.hook_id}`,l),o=c.status,c.ok)await M(e,n.tenant_id,{type:A.SUCCESS_HOOK,description:`Invoked hook ${t.hook_id} - ${c.status}`,userId:n.user?.user_id,details:{trigger_id:n.trigger_id,hook_id:t.hook_id,hook_url:t.url,user_id:n.user?.user_id,user_name:n.user?.name||n.user?.email,connection:n.user?.connection,duration_ms:Math.round(l),response:{statusCode:o}},connection:n.user?.connection});else{try{a=await c.text()}catch{}let r=`Failed to invoke hook ${t.hook_id} - ${c.status} ${c.statusText}`;console.error(r,{hook_url:t.url,body:a?.substring(0,512)}),await M(e,n.tenant_id,{type:A.FAILED_HOOK,description:r,userId:n.user?.user_id,details:{trigger_id:n.trigger_id,hook_id:t.hook_id,hook_url:t.url,user_id:n.user?.user_id,user_name:n.user?.name||n.user?.email,connection:n.user?.connection,response:{statusCode:o,body:a?.substring(0,512)}},connection:n.user?.connection,waitForCompletion:!0})}return{ok:c.ok,status:o,body:a}}catch(r){let i=`Failed to invoke hook ${t.hook_id} - ${r instanceof Error?r.message:`Unknown error`}`;return console.error(i,r),await M(e,n.tenant_id,{type:A.FAILED_HOOK,description:i,userId:n.user?.user_id,details:{trigger_id:n.trigger_id,hook_id:t.hook_id,hook_url:t.url,user_id:n.user?.user_id,user_name:n.user?.name||n.user?.email,connection:n.user?.connection,error:r instanceof Error?r.message:String(r)},connection:n.user?.connection,waitForCompletion:!0}),{ok:!1,error:r instanceof Error?r.message:String(r)}}}async function JL(e,t,n){for(let r of t.filter(e=>`url`in e))await qL(e,r,n)}function YL(e){return async(t,n)=>{let{hooks:r}=await e.env.data.hooks.list(t);await JL(e,r.filter(e=>e.trigger_id===`pre-user-registration`),{tenant_id:t,email:n,trigger_id:`pre-user-registration`})}}async function XL(e,t){let{hooks:n}=await e.env.data.hooks.list(t);return n.find(e=>e.trigger_id===`validate-registration-username`&&`url`in e&&e.enabled)||null}function ZL(e){return async(t,n)=>{let{hooks:r}=await e.env.data.hooks.list(t);return await JL(e,r.filter(e=>e.trigger_id===`pre-user-deletion`),{tenant_id:t,user:n,trigger_id:`pre-user-deletion`}),n}}var QL=Ua({hooks:f.z.array(Zn)}),$L=N({route:(0,f.createRoute)({tags:[`hooks`],method:`get`,path:`/`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:hooks`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(Zn),QL])}},description:`List of hooks`}}}),handler:async e=>{let t=P(e),{page:n,per_page:r,include_totals:i,sort:a,q:o}=e.req.valid(`query`),s=await e.env.data.hooks.list(t,{page:n,per_page:r,include_totals:i,sort:Ha(a),q:o});return e.json(Wa(i,s,`hooks`))}}),eR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`post`,path:`/`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:Kn}}}},security:[{Bearer:[`create:hooks`]}],responses:{201:{content:{"application/json":{schema:Zn}},description:`The created hook`}}}),handler:async e=>{let t=P(e),n=e.req.valid(`json`),r={...n,hook_id:n.hook_id||Ya()},i=await e.env.data.hooks.create(t,r);return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Create a Hook`,targetType:`hook`,targetId:i.hook_id,afterState:i}),e.json(i,{status:201})}}),tR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`patch`,path:`/{hook_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({hook_id:f.z.string()}),body:{content:{"application/json":{schema:f.z.union(Kn.options.map(e=>e.omit({hook_id:!0}).partial()))}}}},security:[{Bearer:[`update:hooks`]}],responses:{200:{content:{"application/json":{schema:Zn}},description:`The updated hook`},404:{description:`Hook not found`}}}),handler:async e=>{let t=P(e),{hook_id:n}=e.req.valid(`param`),r=e.req.valid(`json`);await e.env.data.hooks.update(t,n,r);let i=await e.env.data.hooks.get(t,n);if(!i)throw new m(404,{message:`Hook not found`});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Update a Hook`,targetType:`hook`,targetId:n,afterState:i}),e.json(i)}}),nR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`get`,path:`/{hook_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({hook_id:f.z.string()})},security:[{Bearer:[`read:hooks`]}],responses:{200:{content:{"application/json":{schema:Zn}},description:`A hook`},404:{description:`Hook not found`}}}),handler:async e=>{let t=P(e),{hook_id:n}=e.req.valid(`param`),r=await e.env.data.hooks.get(t,n);if(!r)throw new m(404,{message:`Hook not found`});return e.json(r)}}),rR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`delete`,path:`/{hook_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({hook_id:f.z.string()})},security:[{Bearer:[`delete:hooks`]}],responses:{200:{description:`A hook`}}}),handler:async e=>{let t=P(e),{hook_id:n}=e.req.valid(`param`);if(!await e.env.data.hooks.remove(t,n))throw new m(404,{message:`Hook not found`});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Delete a Hook`,targetType:`hook`,targetId:n}),e.text(`OK`)}}),iR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`post`,path:`/{hook_id}/try`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({hook_id:f.z.string()}),body:{content:{"application/json":{schema:f.z.object({user_id:f.z.string()})}}}},security:[{Bearer:[`update:hooks`]}],responses:{200:{content:{"application/json":{schema:f.z.object({ok:f.z.boolean(),status:f.z.number().optional(),body:f.z.string().optional(),error:f.z.string().optional()})}},description:`Invokes the webhook with the given user and returns the upstream response. authhero extension; not available in Auth0.`},400:{description:`Hook is not a web hook`},404:{description:`Hook or user not found`}}}),handler:async e=>{let t=P(e),{hook_id:n}=e.req.valid(`param`),{user_id:r}=e.req.valid(`json`),i=await e.env.data.hooks.get(t,n);if(!i)throw new m(404,{message:`Hook not found`});if(!(`url`in i))throw new m(400,{message:`Only web hooks can be tried`});let a=await e.env.data.users.get(t,r);if(!a)throw new m(404,{message:`User not found`});let o=await qL(e,i,{tenant_id:t,user:a,trigger_id:i.trigger_id});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Try a Hook (${n})`,targetType:`hook`,targetId:n}),e.json(o)}}),aR=new f.OpenAPIHono().openapiRoutes([$L,eR,tR,nR,rR,iR]),oR=$n.extend({deploymentStatus:f.z.enum([`deployed`,`failed`,`not_required`]),deploymentError:f.z.string().optional()}),sR=N({route:(0,f.createRoute)({tags:[`hook-code`],method:`post`,path:`/`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:Qn}}}},security:[{Bearer:[`create:hooks`]}],responses:{201:{content:{"application/json":{schema:oR}},description:`The created hook code`}}}),handler:async e=>{let t=P(e),n=e.req.valid(`json`),r=await e.env.data.hookCode.create(t,n),i=`not_required`,a;if(e.env.codeExecutor?.deploy)try{await e.env.codeExecutor.deploy(r.id,n.code),i=`deployed`}catch(n){i=`failed`,a=n instanceof Error?n.message:String(n),await M(e,t,{type:A.FAILED_HOOK,description:`Failed to deploy hook code ${r.id}: ${a}`})}return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Create hook code`,targetType:`hook_code`,targetId:r.id}),e.json({...r,deploymentStatus:i,deploymentError:a},{status:201})}}),cR=N({route:(0,f.createRoute)({tags:[`hook-code`],method:`get`,path:`/{id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({id:f.z.string()})},security:[{Bearer:[`read:hooks`]}],responses:{200:{content:{"application/json":{schema:$n}},description:`The hook code`},404:{description:`Hook code not found`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=await e.env.data.hookCode.get(t,n);if(!r)throw new m(404,{message:`Hook code not found`});return e.json(r)}}),lR=N({route:(0,f.createRoute)({tags:[`hook-code`],method:`put`,path:`/{id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({id:f.z.string()}),body:{content:{"application/json":{schema:Qn}}}},security:[{Bearer:[`update:hooks`]}],responses:{200:{content:{"application/json":{schema:oR}},description:`The updated hook code`},404:{description:`Hook code not found`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=e.req.valid(`json`);if(!await e.env.data.hookCode.update(t,n,r))throw new m(404,{message:`Hook code not found`});let i=await e.env.data.hookCode.get(t,n);if(!i)throw new m(404,{message:`Hook code not found`});let a=`not_required`,o;if(r.code!==void 0&&e.env.codeExecutor?.deploy)try{await e.env.codeExecutor.deploy(n,r.code),a=`deployed`}catch(r){a=`failed`,o=r instanceof Error?r.message:String(r),await M(e,t,{type:A.FAILED_HOOK,description:`Failed to deploy hook code ${n}: ${o}`})}return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Update hook code`,targetType:`hook_code`,targetId:n}),e.json({...i,deploymentStatus:a,deploymentError:o})}}),uR=N({route:(0,f.createRoute)({tags:[`hook-code`],method:`delete`,path:`/{id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({id:f.z.string()})},security:[{Bearer:[`delete:hooks`]}],responses:{200:{description:`Hook code deleted`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`);if(!await e.env.data.hookCode.remove(t,n))throw new m(404,{message:`Hook code not found`});if(e.env.codeExecutor?.remove)try{await e.env.codeExecutor.remove(n)}catch(r){await M(e,t,{type:A.FAILED_HOOK,description:`Failed to remove hook worker ${n}: ${r instanceof Error?r.message:String(r)}`})}return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Delete hook code`,targetType:`hook_code`,targetId:n}),e.text(`OK`)}}),dR=new f.OpenAPIHono().openapiRoutes([sR,cR,lR,uR]);f.z.object({start:f.z.number(),limit:f.z.number(),length:f.z.number()}),Tt.extend({email:f.z.string(),login_count:f.z.number(),multifactor:f.z.array(f.z.string()).optional(),last_ip:f.z.string().optional(),last_login:f.z.string().optional(),user_id:f.z.string()}).catchall(f.z.any());function fR(){return`u2/try-connection-result`}function pR(e,t){return`${Ea(e,t)}${fR()}`}async function mR(e,t){let n=Goe(t);if(await e.data.clients.get(t,n))return n;let r=pR(e);try{await e.data.clients.create(t,{client_id:n,name:`AuthHero Try Connection`,callbacks:[r],allowed_logout_urls:[],web_origins:[],connections:[],client_metadata:{system_purpose:`try_connection`}})}catch(r){if(!await e.data.clients.get(t,n))throw r}return n}async function hR(e,t){let n=(await e.data.customDomains.list(t)).filter(e=>e.status===`ready`);return(n.find(e=>e.primary)??n[0])?.domain}var gR=class extends m{_code;constructor(e,t){super(e,t),this._code=t?.code}get code(){return this._code}},_R={version:4,country_calling_codes:{1:[`US`,`AG`,`AI`,`AS`,`BB`,`BM`,`BS`,`CA`,`DM`,`DO`,`GD`,`GU`,`JM`,`KN`,`KY`,`LC`,`MP`,`MS`,`PR`,`SX`,`TC`,`TT`,`VC`,`VG`,`VI`],7:[`RU`,`KZ`],20:[`EG`],27:[`ZA`],30:[`GR`],31:[`NL`],32:[`BE`],33:[`FR`],34:[`ES`],36:[`HU`],39:[`IT`,`VA`],40:[`RO`],41:[`CH`],43:[`AT`],44:[`GB`,`GG`,`IM`,`JE`],45:[`DK`],46:[`SE`],47:[`NO`,`SJ`],48:[`PL`],49:[`DE`],51:[`PE`],52:[`MX`],53:[`CU`],54:[`AR`],55:[`BR`],56:[`CL`],57:[`CO`],58:[`VE`],60:[`MY`],61:[`AU`,`CC`,`CX`],62:[`ID`],63:[`PH`],64:[`NZ`],65:[`SG`],66:[`TH`],81:[`JP`],82:[`KR`],84:[`VN`],86:[`CN`],90:[`TR`],91:[`IN`],92:[`PK`],93:[`AF`],94:[`LK`],95:[`MM`],98:[`IR`],211:[`SS`],212:[`MA`,`EH`],213:[`DZ`],216:[`TN`],218:[`LY`],220:[`GM`],221:[`SN`],222:[`MR`],223:[`ML`],224:[`GN`],225:[`CI`],226:[`BF`],227:[`NE`],228:[`TG`],229:[`BJ`],230:[`MU`],231:[`LR`],232:[`SL`],233:[`GH`],234:[`NG`],235:[`TD`],236:[`CF`],237:[`CM`],238:[`CV`],239:[`ST`],240:[`GQ`],241:[`GA`],242:[`CG`],243:[`CD`],244:[`AO`],245:[`GW`],246:[`IO`],247:[`AC`],248:[`SC`],249:[`SD`],250:[`RW`],251:[`ET`],252:[`SO`],253:[`DJ`],254:[`KE`],255:[`TZ`],256:[`UG`],257:[`BI`],258:[`MZ`],260:[`ZM`],261:[`MG`],262:[`RE`,`YT`],263:[`ZW`],264:[`NA`],265:[`MW`],266:[`LS`],267:[`BW`],268:[`SZ`],269:[`KM`],290:[`SH`,`TA`],291:[`ER`],297:[`AW`],298:[`FO`],299:[`GL`],350:[`GI`],351:[`PT`],352:[`LU`],353:[`IE`],354:[`IS`],355:[`AL`],356:[`MT`],357:[`CY`],358:[`FI`,`AX`],359:[`BG`],370:[`LT`],371:[`LV`],372:[`EE`],373:[`MD`],374:[`AM`],375:[`BY`],376:[`AD`],377:[`MC`],378:[`SM`],380:[`UA`],381:[`RS`],382:[`ME`],383:[`XK`],385:[`HR`],386:[`SI`],387:[`BA`],389:[`MK`],420:[`CZ`],421:[`SK`],423:[`LI`],500:[`FK`],501:[`BZ`],502:[`GT`],503:[`SV`],504:[`HN`],505:[`NI`],506:[`CR`],507:[`PA`],508:[`PM`],509:[`HT`],590:[`GP`,`BL`,`MF`],591:[`BO`],592:[`GY`],593:[`EC`],594:[`GF`],595:[`PY`],596:[`MQ`],597:[`SR`],598:[`UY`],599:[`CW`,`BQ`],670:[`TL`],672:[`NF`],673:[`BN`],674:[`NR`],675:[`PG`],676:[`TO`],677:[`SB`],678:[`VU`],679:[`FJ`],680:[`PW`],681:[`WF`],682:[`CK`],683:[`NU`],685:[`WS`],686:[`KI`],687:[`NC`],688:[`TV`],689:[`PF`],690:[`TK`],691:[`FM`],692:[`MH`],850:[`KP`],852:[`HK`],853:[`MO`],855:[`KH`],856:[`LA`],880:[`BD`],886:[`TW`],960:[`MV`],961:[`LB`],962:[`JO`],963:[`SY`],964:[`IQ`],965:[`KW`],966:[`SA`],967:[`YE`],968:[`OM`],970:[`PS`],971:[`AE`],972:[`IL`],973:[`BH`],974:[`QA`],975:[`BT`],976:[`MN`],977:[`NP`],992:[`TJ`],993:[`TM`],994:[`AZ`],995:[`GE`],996:[`KG`],998:[`UZ`]},countries:{AC:[`247`,`00`,`(?:[01589]\\d|[46])\\d{4}`,[5,6]],AD:[`376`,`00`,`(?:1|6\\d)\\d{7}|[135-9]\\d{5}`,[6,8,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`[135-9]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]]],AE:[`971`,`00`,`(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}`,[5,6,7,8,9,10,11,12],[[`(\\d{3})(\\d{2,9})`,`$1 $2`,[`60|8`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[236]|[479][2-8]`],`0$1`],[`(\\d{3})(\\d)(\\d{5})`,`$1 $2 $3`,[`[479]`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AF:[`93`,`00`,`[2-7]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`]],`0`],AG:[`1`,`011`,`(?:268|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([457]\\d{6})$|1`,`268$1`,0,`268`],AI:[`1`,`011`,`(?:264|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2457]\\d{6})$|1`,`264$1`,0,`264`],AL:[`355`,`00`,`(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}`,[6,7,8,9],[[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`80|9`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`4[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2358][2-5]|4`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[23578]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`6`],`0$1`]],`0`],AM:[`374`,`00`,`(?:[1-489]\\d|55|60|77)\\d{6}`,[8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[89]0`],`0 $1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`2|3[12]`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`1|47`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[3-9]`],`0$1`]],`0`],AO:[`244`,`00`,`[29]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[29]`]]]],AR:[`54`,`00`,`(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}`,[10,11],[[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2-$3`,[`2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])`,`2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`1`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[68]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[23]`],`0$1`,1],[`(\\d)(\\d{4})(\\d{2})(\\d{4})`,`$2 15-$3-$4`,[`9(?:2[2-469]|3[3-578])`,`9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))`,`9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d)(\\d{2})(\\d{4})(\\d{4})`,`$2 15-$3-$4`,[`91`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1-$2-$3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{4})`,`$2 15-$3-$4`,[`9`],`0$1`,0,`$1 $2 $3-$4`]],`0`,0,`0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?`,`9$1`],AS:[`1`,`011`,`(?:[58]\\d\\d|684|900)\\d{7}`,[10],0,`1`,0,`([267]\\d{6})$|1`,`684$1`,0,`684`],AT:[`43`,`00`,`1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d)(\\d{3,12})`,`$1 $2`,[`1(?:11|[2-9])`],`0$1`],[`(\\d{3})(\\d{2})`,`$1 $2`,[`517`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`5[079]`],`0$1`],[`(\\d{3})(\\d{3,10})`,`$1 $2`,[`(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`,`(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`],`0$1`],[`(\\d{4})(\\d{3,9})`,`$1 $2`,[`[2-467]|5[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,7})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AU:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}`,[5,6,7,8,9,10,12],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`16`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`16`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`14|4`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[2378]`],`(0$1)`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:30|[89])`]]],`0`,0,`(183[12])|0`,0,0,0,[[`(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,[`163\\d{2,6}`,[5,6,7,8,9]],[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],AW:[`297`,`00`,`(?:[25-79]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[25-9]`]]]],AX:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}`,[5,6,7,8,9,10,11,12],0,`0`,0,0,0,0,`18`,0,`00`],AZ:[`994`,`00`,`365\\d{6}|(?:[124579]\\d|60|88)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[28]|2|365|46`,`1[28]|2|365[45]|46`,`1[28]|2|365(?:4|5[02])|46`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[13-9]`],`0$1`]],`0`],BA:[`387`,`00`,`6\\d{8}|(?:[35689]\\d|49|70)\\d{6}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[1-3]|[7-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2-$3`,[`[3-5]|6[56]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`6`],`0$1`]],`0`],BB:[`1`,`011`,`(?:246|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`246$1`,0,`246`],BD:[`880`,`00`,`[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}`,[6,7,8,9,10],[[`(\\d{2})(\\d{4,6})`,`$1-$2`,[`31[5-8]|[459]1`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1-$2`,[`3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]`],`0$1`],[`(\\d{4})(\\d{3,6})`,`$1-$2`,[`[13-9]|2[23]`],`0$1`],[`(\\d)(\\d{7,8})`,`$1-$2`,[`2`],`0$1`]],`0`],BE:[`32`,`00`,`4\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:80|9)0`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[239]|4[23]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[15-8]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4`],`0$1`]],`0`],BF:[`226`,`00`,`[024-7]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[024-7]`]]]],BG:[`359`,`00`,`00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}`,[6,7,8,9,12],[[`(\\d)(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`43[1-6]|70[1-9]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:70|8)0`],`0$1`],[`(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3`,[`43[1-7]|7`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[48]|9[08]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],BH:[`973`,`00`,`[136-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[13679]|8[02-4679]`]]]],BI:[`257`,`00`,`(?:[267]\\d|31)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2367]`]]]],BJ:[`229`,`00`,`(?:01\\d|8)\\d{7}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`0`]]]],BL:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],BM:[`1`,`011`,`(?:441|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`441$1`,0,`441`],BN:[`673`,`00`,`[2-578]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-578]`]]]],BO:[`591`,`00(?:1\\d)?`,`(?:[2-7]\\d\\d|8001)\\d{5}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[23]|4[46]|50`]],[`(\\d{8})`,`$1`,[`[5-7]`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`,0,`0(1\\d)?`],BQ:[`599`,`00`,`(?:[34]1|7\\d)\\d{5}`,[7],0,0,0,0,0,0,`[347]`],BR:[`55`,`00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)`,`[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}`,[8,9,10,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`300|4(?:0[02]|37|86)`,`300|4(?:0(?:0|20)|370|864)`]],[`(\\d{3})(\\d{2,3})(\\d{4})`,`$1 $2 $3`,[`(?:[358]|90)0`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]`],`($1)`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1 $2-$3`,[`[16][1-9]|[2-57-9]`],`($1)`]],`0`,0,`(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?`,`$2`],BS:[`1`,`011`,`(?:242|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([3-8]\\d{6})$|1`,`242$1`,0,`242`],BT:[`975`,`00`,`[178]\\d{7}|[2-8]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-6]|7[246]|8[2-4]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[67]|[78]`]]]],BW:[`267`,`00`,`(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`90`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-6]|3[15-9]`]],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37]`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`8`]]]],BY:[`375`,`810`,`(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`800`],`8 $1`],[`(\\d{3})(\\d{2})(\\d{2,4})`,`$1 $2 $3`,[`800`],`8 $1`],[`(\\d{4})(\\d{2})(\\d{3})`,`$1 $2-$3`,[`1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])`,`1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])`],`8 0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`1(?:[56]|7[467])|2[1-3]`],`8 0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-4]`],`8 0$1`],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[89]`],`8 $1`]],`8`,0,`0|80?`,0,0,0,0,`8~10`],BZ:[`501`,`00`,`(?:0800\\d|[2-8])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-8]`]],[`(\\d)(\\d{3})(\\d{4})(\\d{3})`,`$1-$2-$3-$4`,[`0`]]]],CA:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[7,10],0,`1`,0,0,0,0,0,[[`(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}`,[10]],[``,[10]],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`,[10]],[`900[2-9]\\d{6}`,[10]],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}`,[10]],0,[`310\\d{4}`,[7]],0,[`600[2-9]\\d{6}`,[10]]]],CC:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CD:[`243`,`00`,`(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`[1-6]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`5`],`0$1`]],`0`],CF:[`236`,`00`,`8776\\d{4}|(?:[27]\\d|61)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-8]`]]]],CG:[`242`,`00`,`222\\d{6}|(?:0\\d|80)\\d{7}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[02]`]]]],CH:[`41`,`00`,`8\\d{11}|[2-9]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8[047]|90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]|81`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`8`],`0$1`]],`0`],CI:[`225`,`00`,`[02]\\d{9}`,[10],[[`(\\d{2})(\\d{2})(\\d)(\\d{5})`,`$1 $2 $3 $4`,[`2`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3 $4`,[`0`]]]],CK:[`682`,`00`,`[2-578]\\d{4}`,[5],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`[2-578]`]]]],CL:[`56`,`(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0`,`12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}`,[9,10,11],[[`(\\d{5})(\\d{4})`,`$1 $2`,[`219`,`2196`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`60|809`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`44`]],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[1-36]`],`($1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`9(?:10|[2-9])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`60|8`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{3})(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`60`]]]],CM:[`237`,`00`,`[26]\\d{8}|88\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`88`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[26]|88`]]]],CN:[`86`,`00|1(?:[12]\\d|79)\\d\\d00`,`(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5,6})`,`$1 $2`,[`(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]`,`(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`],`0$1`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]`,`(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]`,`85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])`,`85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`(?:4|80)0`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|2(?:[02-57-9]|1[1-9])`,`10|2(?:[02-57-9]|1[1-9])`,`10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]`],`0$1`,1],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`9`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`80`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[3-578]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`1[3-9]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`[12]`],`0$1`,1]],`0`,0,`(1(?:[12]\\d|79)\\d\\d)|0`,0,0,0,0,`00`],CO:[`57`,`00(?:4(?:[14]4|56)|[579])`,`(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`46`]],[`(\\d{3})(\\d{7})`,`$1 $2`,[`6|90`],`($1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3[0-357]|9[14]`]],[`(\\d)(\\d{3})(\\d{7})`,`$1-$2-$3`,[`1`],`0$1`,0,`$1 $2 $3`]],`0`,0,`0([3579]|4(?:[14]4|56))?`],CR:[`506`,`00`,`(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}`,[8,10],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[3-9]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[89]`]]],0,0,`(19(?:0[0-2468]|1[09]|20|66|77|99))`],CU:[`53`,`119`,`(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}`,[6,7,8,10],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`2[1-4]|[34]`],`(0$1)`],[`(\\d)(\\d{6,7})`,`$1 $2`,[`7`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`[56]`],`0$1`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`8`],`0$1`]],`0`],CV:[`238`,`0`,`(?:[2-59]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-589]`]]]],CW:[`599`,`00`,`(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[3467]`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9[4-8]`]]],0,0,0,0,0,`[69]`],CX:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CY:[`357`,`00`,`(?:[279]\\d|[58]0)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[257-9]`]]]],CZ:[`420`,`00`,`(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}`,[9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]|9[015-7]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`96`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]]],DE:[`49`,`00`,`[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}`,[4,5,6,7,8,9,10,11,12,13,14,15],[[`(\\d{2})(\\d{3,13})`,`$1 $2`,[`3[02]|40|[68]9`],`0$1`],[`(\\d{3})(\\d{3,12})`,`$1 $2`,[`2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`,`2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`],`0$1`],[`(\\d{4})(\\d{2,11})`,`$1 $2`,[`[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]`,`[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`138`],`0$1`],[`(\\d{5})(\\d{2,10})`,`$1 $2`,[`3`],`0$1`],[`(\\d{3})(\\d{5,11})`,`$1 $2`,[`181`],`0$1`],[`(\\d{3})(\\d)(\\d{4,10})`,`$1 $2 $3`,[`1(?:3|80)|9`],`0$1`],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`1[67]`],`0$1`],[`(\\d{3})(\\d{7,12})`,`$1 $2`,[`8`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`185`,`1850`,`18500`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`18[68]`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`15[1279]`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`15[03568]`,`15(?:[0568]|3[13])`],`0$1`],[`(\\d{3})(\\d{8})`,`$1 $2`,[`18`],`0$1`],[`(\\d{3})(\\d{2})(\\d{7,8})`,`$1 $2 $3`,[`1(?:6[023]|7)`],`0$1`],[`(\\d{4})(\\d{2})(\\d{7})`,`$1 $2 $3`,[`15[279]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{8})`,`$1 $2 $3`,[`15`],`0$1`]],`0`],DJ:[`253`,`00`,`(?:2\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[27]`]]]],DK:[`45`,`00`,`[2-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-9]`]]]],DM:[`1`,`011`,`(?:[58]\\d\\d|767|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`767$1`,0,`767`],DO:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,0,0,0,`8001|8[024]9`],DZ:[`213`,`00`,`(?:[1-4]|[5-79]\\d|80)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`9`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-8]`],`0$1`]],`0`],EC:[`593`,`00`,`1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}`,[8,9,10,11],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[2-7]`],`(0$1)`,0,`$1-$2-$3`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1`]]],`0`],EE:[`372`,`00`,`8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88`,`[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88`]],[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[45]|8(?:00|[1-49])`,`[45]|8(?:00[1-9]|[1-49])`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],EG:[`20`,`00`,`[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}`,[8,9,10],[[`(\\d)(\\d{7,8})`,`$1 $2`,[`[23]`],`0$1`],[`(\\d{2})(\\d{6,7})`,`$1 $2`,[`1[35]|[4-6]|8[2468]|9[235-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{8})`,`$1 $2`,[`1`],`0$1`]],`0`],EH:[`212`,`00`,`[5-8]\\d{8}`,[9],0,`0`,0,0,0,0,0,[[`528[89]\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}`],[`80[0-7]\\d{6}`],[`89\\d{7}`],0,0,0,0,[`(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}`]]],ER:[`291`,`00`,`[178]\\d{6}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[178]`],`0$1`]],`0`],ES:[`34`,`00`,`(?:400|[5-9]\\d\\d)\\d{6}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]00`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[4-9]`]]]],ET:[`251`,`00`,`(?:11|[2-57-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-57-9]`],`0$1`]],`0`],FI:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}`,[5,6,7,8,9,10,11,12],[[`(\\d{5})`,`$1`,[`20[2-59]`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`(?:[1-3]0|[68])0|70[07-9]`],`0$1`],[`(\\d{2})(\\d{4,8})`,`$1 $2`,[`[14]|2[09]|50|7[135]`],`0$1`],[`(\\d{2})(\\d{6,10})`,`$1 $2`,[`7`],`0$1`],[`(\\d)(\\d{4,9})`,`$1 $2`,[`(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9`],`0$1`]],`0`,0,0,0,0,`1[03-79]|[2-9]`,0,`00`],FJ:[`679`,`0(?:0|52)`,`45\\d{5}|(?:0800\\d|[235-9])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[235-9]|45`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]]],0,0,0,0,0,0,0,`00`],FK:[`500`,`00`,`[2-7]\\d{4}`,[5]],FM:[`691`,`00`,`(?:[39]\\d\\d|820)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[389]`]]]],FO:[`298`,`00`,`[2-9]\\d{5}`,[6],[[`(\\d{6})`,`$1`,[`[2-9]`]]],0,0,`(10(?:01|[12]0|88))`],FR:[`33`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0 $1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[1-79]`],`0$1`]],`0`],GA:[`241`,`00`,`(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}`,[7,8],[[`(\\d)(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-7]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`11|[67]`],`0$1`]],0,0,`0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})`,`$1`],GB:[`44`,`00`,`[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}`,[7,9,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`800`,`8001`,`80011`,`800111`,`8001111`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`845`,`8454`,`84546`,`845464`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`800`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`1(?:38|5[23]|69|76|94)`,`1(?:(?:38|69)7|5(?:24|39)|768|946)`,`1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`1(?:[2-69][02-9]|[78])`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[25]|7(?:0|6[02-9])`,`[25]|7(?:0|6(?:[03-9]|2[356]))`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1389]`],`0$1`]],`0`,0,`0|180020`,0,0,0,[[`(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}`,[9,10]],[`7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]],0,` x`],GD:[`1`,`011`,`(?:473|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`473$1`,0,`473`],GE:[`995`,`00`,`(?:[3-57]\\d\\d|800)\\d{6}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`32`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[57]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[348]`],`0$1`]],`0`],GF:[`594`,`00`,`(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|80[6-9]|9[47]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[89]`],`0$1`]],`0`],GG:[`44`,`00`,`(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?`,[7,9,10],0,`0`,0,`([25-9]\\d{5})$|0|180020`,`1481$1`,0,0,[[`1481[25-9]\\d{5}`,[10]],[`7(?:(?:781|839)\\d|911[17])\\d{5}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]]],GH:[`233`,`00`,`[235]\\d{8}|800\\d{5,6}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2358]`],`0$1`]],`0`],GI:[`350`,`00`,`(?:[25]\\d|60)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`2`]]]],GL:[`299`,`00`,`(?:19|[2-689]\\d|70)\\d{4}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`19|[2-9]`]]]],GM:[`220`,`00`,`[2-9]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],GN:[`224`,`00`,`722\\d{6}|(?:3|6\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`3`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[67]`]]]],GP:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|80[6-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],GQ:[`240`,`00`,`222\\d{6}|(?:3\\d|55|[89]0)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235]`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[89]`]]]],GR:[`30`,`00`,`5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}`,[10,11,12],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`21|7`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2689]`]],[`(\\d{3})(\\d{3,4})(\\d{5})`,`$1 $2 $3`,[`8`]]]],GT:[`502`,`00`,`80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-8]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],GU:[`1`,`011`,`(?:[58]\\d\\d|671|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`671$1`,0,`671`],GW:[`245`,`00`,`[49]\\d{8}|4\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`40`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`]]]],GY:[`592`,`001`,`(?:[2-8]\\d{3}|9008)\\d{3}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],HK:[`852`,`00(?:30|5[09]|[126-9]?)`,`8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}`,[5,6,7,8,9,11],[[`(\\d{3})(\\d{2,5})`,`$1 $2`,[`900`,`9003`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[1-4]|9(?:0[1-9]|[1-8])`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{3})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]],0,0,0,0,0,0,0,`00`],HN:[`504`,`00`,`8\\d{10}|[237-9]\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`[237-9]`]]]],HR:[`385`,`00`,`[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}`,[7,8,9],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`6[01]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{4})(\\d{3})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6|7[245]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-57]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],HT:[`509`,`00`,`[2-589]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[2-589]`]]]],HU:[`36`,`00`,`[235-7]\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`06 $1`]],`06`],ID:[`62`,`00[89]`,`00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}`,[7,8,9,10,11,12,13,14,15,16,17],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`15`]],[`(\\d{2})(\\d{5,9})`,`$1 $2`,[`2[124]|[36]1`],`(0$1)`],[`(\\d{3})(\\d{5,7})`,`$1 $2`,[`800`],`0$1`],[`(\\d{3})(\\d{5,8})`,`$1 $2`,[`[2-79]`],`(0$1)`],[`(\\d{3})(\\d{3,4})(\\d{3})`,`$1-$2-$3`,[`8[1-35-9]`],`0$1`],[`(\\d{3})(\\d{6,8})`,`$1 $2`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`804`],`0$1`],[`(\\d{3})(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`80`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1-$2-$3`,[`8`],`0$1`]],`0`],IE:[`353`,`00`,`(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`2[24-9]|47|58|6[237-9]|9[35-9]`],`(0$1)`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[45]0`],`(0$1)`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2569]|4[1-69]|7[14]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`81`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`4`],`(0$1)`],[`(\\d{2})(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],IL:[`972`,`0(?:0|1[2-9])`,`1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}`,[7,8,9,10,11,12],[[`(\\d{4})(\\d{3})`,`$1-$2`,[`125`]],[`(\\d{4})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`121`]],[`(\\d)(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[2-489]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`12`]],[`(\\d{4})(\\d{6})`,`$1-$2`,[`159`]],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3-$4`,[`1[7-9]`]],[`(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})`,`$1-$2 $3-$4`,[`15`]]],`0`],IM:[`44`,`00`,`1624\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([25-8]\\d{5})$|0|180020`,`1624$1`,0,`74576|(?:16|7[56])24`],IN:[`91`,`00`,`(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}`,[8,9,10,11,12,13],[[`(\\d{8})`,`$1`,[`5(?:0|2[23]|3[03]|[67]1|88)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)`],0,1],[`(\\d{4})(\\d{4,5})`,`$1 $2`,[`180`,`1800`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`140`],0,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`11|2[02]|33|4[04]|79[1-7]|80[2-46]`,`11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])`,`11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]`],`0$1`,1],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807`,`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]`,`1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]`],`0$1`,1],[`(\\d{5})(\\d{5})`,`$1 $2`,[`16|[6-9]`],`0$1`,1],[`(\\d{4})(\\d{2,4})(\\d{4})`,`$1 $2 $3`,[`18[06]`,`18[06]0`],0,1],[`(\\d{4})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`18`],0,1]],`0`],IO:[`246`,`00`,`3\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`3`]]]],IQ:[`964`,`00`,`(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-6]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],IR:[`98`,`00`,`[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}`,[4,5,6,7,10],[[`(\\d{4,5})`,`$1`,[`96`],`0$1`],[`(\\d{2})(\\d{4,5})`,`$1 $2`,[`(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1-8]`],`0$1`]],`0`],IS:[`354`,`00|1(?:0(?:01|[12]0)|100)`,`(?:38\\d|[4-9])\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[4-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`3`]]],0,0,0,0,0,0,0,`00`],IT:[`39`,`00`,`0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?`,[6,7,8,9,10,11,12],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`0[26]`]],[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`0[13-57-9][0159]|8(?:03|4[17]|9[2-5])`,`0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))`]],[`(\\d{4})(\\d{2,6})`,`$1 $2`,[`0(?:[13-579][2-46-8]|8[236-8])`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`894`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[26]|5`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1(?:44|[679])|[378]|43`]],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[13-57-9][0159]|14`]],[`(\\d{2})(\\d{4})(\\d{5})`,`$1 $2 $3`,[`0[26]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[03]`]]],0,0,0,0,0,0,[[`0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}`],[`3[2-9]\\d{7,8}|(?:31|43)\\d{8}`,[9,10]],[`80(?:0\\d{3}|3)\\d{3}`,[6,9]],[`(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}`,[6,8,9,10]],[`1(?:78\\d|99)\\d{6}`,[9,10]],[`3[2-8]\\d{9,10}`,[11,12]],0,0,[`55\\d{8}`,[10]],[`84(?:[08]\\d{3}|[17])\\d{3}`,[6,9]]]],JE:[`44`,`00`,`1534\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([0-24-8]\\d{5})$|0|180020`,`1534$1`,0,0,[[`1534[0-24-8]\\d{5}`],[`7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}`],[`80(?:07(?:35|81)|8901)\\d{4}`],[`(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}`],[`701511\\d{4}`],0,[`(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}`],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`],[`56\\d{8}`]]],JM:[`1`,`011`,`(?:[58]\\d\\d|658|900)\\d{7}`,[10],0,`1`,0,0,0,0,`658|876`],JO:[`962`,`00`,`(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2356]|87`],`(0$1)`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`70`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[47]`],`0$1`]],`0`],JP:[`81`,`010`,`00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}`,[8,9,10,11,12,13,14,15,16,17],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`(?:12|57|99)0`],`0$1`],[`(\\d{4})(\\d)(\\d{4})`,`$1-$2-$3`,[`1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`60`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2-$3`,[`3|4(?:2[09]|7[01])|6[1-9]`,`3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3`,[`[14]|[289][2-9]|5[3-9]|7[2-4679]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`800`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[25-9]`],`0$1`]],`0`,0,`(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0`,`$1`],KE:[`254`,`000`,`(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}`,[7,8,9,10],[[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`[24-6]`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[17]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`],KG:[`996`,`00`,`8\\d{9}|[235-9]\\d{8}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`3(?:1[346]|[24-79])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-79]|88`],`0$1`],[`(\\d{3})(\\d{3})(\\d)(\\d{2,3})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],KH:[`855`,`00[14-9]`,`1\\d{9}|[1-9]\\d{7,8}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],KI:[`686`,`00`,`(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}`,[5,8],0,`0`],KM:[`269`,`00`,`[3478]\\d{6}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[3478]`]]]],KN:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`869$1`,0,`869`],KP:[`850`,`00|99`,`85\\d{6}|(?:19\\d|[2-7])\\d{7}`,[8,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`]],`0`],KR:[`82`,`00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))`,`00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}`,[5,6,8,9,10,11,12,13,14],[[`(\\d{2})(\\d{3,4})`,`$1-$2`,[`(?:3[1-3]|[46][1-4]|5[1-5])1`],`0$1`],[`(\\d{4})(\\d{4})`,`$1-$2`,[`1`]],[`(\\d)(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[36]0|8`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`[1346]|5[1-5]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1-$2-$3`,[`5`],`0$1`]],`0`,0,`0(8(?:[1-46-8]|5\\d\\d))?`],KW:[`965`,`00`,`18\\d{5}|(?:[2569]\\d|41)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[169]|2(?:[235]|4[1-35-9])|52`]],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[245]`]]]],KY:[`1`,`011`,`(?:345|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`345$1`,0,`345`],KZ:[`7`,`810`,`8\\d{13}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`7`,0,`8~10`],LA:[`856`,`00`,`[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2[13]|3[14]|[4-8]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`3`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`],LB:[`961`,`00`,`[27-9]\\d{7}|[13-9]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27-9]`]]],`0`],LC:[`1`,`011`,`(?:[58]\\d\\d|758|900)\\d{7}`,[10],0,`1`,0,`([2-8]\\d{6})$|1`,`758$1`,0,`758`],LI:[`423`,`00`,`[68]\\d{8}|(?:[2378]\\d|90)\\d{5}`,[7,9],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2379]|8(?:0[09]|7)`,`[2379]|8(?:0(?:02|9)|7)`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`69`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]],`0`,0,`(1001)|0`],LK:[`94`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[1-689]`],`0$1`]],`0`],LR:[`231`,`00`,`(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4[67]|[56]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-578]`],`0$1`]],`0`],LS:[`266`,`00`,`(?:[256]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2568]`]]]],LT:[`370`,`00`,`(?:[3469]\\d|52|[78]0)\\d{6}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`52[0-7]`],`(0-$1)`,1],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0 $1`,1],[`(\\d{2})(\\d{6})`,`$1 $2`,[`37|4(?:[15]|6[1-8])`],`(0-$1)`,1],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[3-6]`],`(0-$1)`,1]],`0`,0,`[08]`],LU:[`352`,`00`,`35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}`,[4,5,6,7,8,9,10,11],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`20[2-689]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})`,`$1 $2 $3 $4`,[`[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]`]],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`80[01]|90[015]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4 $5`,[`20`]]],0,0,`(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)`],LV:[`371`,`00`,`(?:[268]\\d|78|90)\\d{6}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2679]|8[01]`]]]],LY:[`218`,`00`,`[2-9]\\d{8}`,[9],[[`(\\d{2})(\\d{7})`,`$1-$2`,[`[2-9]`],`0$1`]],`0`],MA:[`212`,`00`,`[5-8]\\d{8}`,[9],[[`(\\d{4})(\\d{5})`,`$1-$2`,[`892`],`0$1`],[`(\\d{2})(\\d{7})`,`$1-$2`,[`8(?:0[0-7]|9)`],`0$1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[5-8]`],`0$1`]],`0`,0,0,0,0,`[5-8]`],MC:[`377`,`00`,`(?:[3489]|[67]\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[389]`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[67]`],`0$1`]],`0`],MD:[`373`,`00`,`(?:[235-7]\\d|[89]0)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`22|3`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[25-7]`],`0$1`]],`0`],ME:[`382`,`00`,`(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`0$1`]],`0`],MF:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],MG:[`261`,`00`,`[23]\\d{8}`,[9],[[`(\\d{2})(\\d{2})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`,0,`([24-9]\\d{6})$|0`,`20$1`],MH:[`692`,`011`,`329\\d{4}|(?:[256]\\d|45)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-6]`]]],`1`],MK:[`389`,`00`,`[2-578]\\d{7}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2|34[47]|4(?:[37]7|5[47]|64)`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[347]`],`0$1`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[58]`],`0$1`]],`0`],ML:[`223`,`00`,`[24-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24-9]`]]]],MM:[`95`,`00`,`1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}`,[6,7,8,9,10],[[`(\\d)(\\d{2})(\\d{3})`,`$1 $2 $3`,[`16|2`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[12]|452|678|86`,`[12]|452|6788|86`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[4-7]|8[1-35]`],`0$1`],[`(\\d)(\\d{3})(\\d{4,6})`,`$1 $2 $3`,[`9(?:2[0-4]|[35-9]|4[137-9])`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`92`],`0$1`],[`(\\d)(\\d{5})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],MN:[`976`,`001`,`[12]\\d{7,9}|[5-9]\\d{7}`,[8,9,10],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`11|2[16]`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[5-9]`]],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[12]2[1-3]`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`[12](?:27|3[2-8]|4[2-68]|5[1-4689])`,`[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`[12]`],`0$1`]],`0`],MO:[`853`,`00`,`0800\\d{3}|(?:28|[68]\\d)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[268]`]]]],MP:[`1`,`011`,`[58]\\d{9}|(?:67|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`670$1`,0,`670`],MQ:[`596`,`00`,`7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|8(?:0[6-9]|[36])`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],MR:[`222`,`00`,`(?:[2-4]\\d\\d|800)\\d{5}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-48]`]]]],MS:[`1`,`011`,`(?:[58]\\d\\d|664|900)\\d{7}`,[10],0,`1`,0,`([34]\\d{6})$|1`,`664$1`,0,`664`],MT:[`356`,`00`,`3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2357-9]`]]]],MU:[`230`,`0(?:0|[24-7]0|3[03])`,`(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-46]|8[013]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[57]`]],[`(\\d{5})(\\d{5})`,`$1 $2`,[`8`]]],0,0,0,0,0,0,0,`020`],MV:[`960`,`0(?:0|19)`,`(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}`,[7,10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[34679]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`]]],0,0,0,0,0,0,0,`00`],MW:[`265`,`00`,`(?:[1289]\\d|31|77)\\d{7}|1\\d{6}`,[7,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[2-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-37-9]`],`0$1`]],`0`],MX:[`52`,`0[09]`,`[2-9]\\d{9}`,[10],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`33|5[56]|81`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-9]`]]],0,0,0,0,0,0,0,`00`],MY:[`60`,`00`,`1\\d{8,9}|(?:3\\d|[4-9])\\d{7}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1-$2 $3`,[`[4-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1-$2 $3`,[`1(?:[02469]|[378][1-9]|53)|8`,`1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2 $3`,[`3`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3-$4`,[`1(?:[367]|80)`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2 $3`,[`15`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2 $3`,[`1`],`0$1`]],`0`],MZ:[`258`,`00`,`(?:2|8\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2|8[2-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],NA:[`264`,`00`,`[68]\\d{7,8}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`87`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],NC:[`687`,`00`,`(?:050|[2-57-9]\\d\\d)\\d{3}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1.$2.$3`,[`[02-57-9]`]]]],NE:[`227`,`00`,`[027-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`08`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[089]|2[013]|7[0467]`]]]],NF:[`672`,`00`,`[13]\\d{5}`,[6],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`1[0-3]`]],[`(\\d)(\\d{5})`,`$1 $2`,[`[13]`]]],0,0,`([0-258]\\d{4})$`,`3$1`],NG:[`234`,`009`,`(?:20|9\\d)\\d{8}|[78]\\d{9,13}`,[10,11,12,13,14],[[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[7-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`20[129]`],`0$1`],[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{3})(\\d{5})(\\d{5,6})`,`$1 $2 $3`,[`[78]`],`0$1`]],`0`],NI:[`505`,`00`,`(?:1800|[25-8]\\d{3})\\d{4}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[125-8]`]]]],NL:[`31`,`00`,`(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}`,[5,6,7,8,9,10,11],[[`(\\d{3})(\\d{4,7})`,`$1 $2`,[`[89]0`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`66`],`0$1`],[`(\\d)(\\d{8})`,`$1 $2`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[16-8]|2[259]|3[124]|4[17-9]|5[124679]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-578]|91`],`0$1`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],NO:[`47`,`00`,`(?:0|[2-9]\\d{3})\\d{4}`,[5,8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]`]]],0,0,0,0,0,`[02-689]|7[0-8]`],NP:[`977`,`00`,`(?:1\\d|9)\\d{9}|[1-9]\\d{7}`,[8,10,11],[[`(\\d)(\\d{7})`,`$1-$2`,[`1[2-6]`],`0$1`],[`(\\d{2})(\\d{6})`,`$1-$2`,[`1[01]|[2-8]|9(?:[1-59]|[67][2-6])`],`0$1`],[`(\\d{3})(\\d{7})`,`$1-$2`,[`9`]]],`0`],NR:[`674`,`00`,`(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-9]`]]]],NU:[`683`,`00`,`(?:[4-7]|888\\d)\\d{3}`,[4,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`8`]]]],NZ:[`64`,`0(?:0|161)`,`[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,8})`,`$1 $2`,[`8[1-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`50[036-8]|8|90`,`50(?:[0367]|88)|8|90`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`24|[346]|7[2-57-9]|9[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:10|74)|[589]`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1|2[028]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,5})`,`$1 $2 $3`,[`2(?:[169]|7[0-35-9])|7`],`0$1`]],`0`,0,0,0,0,0,0,`00`],OM:[`968`,`00`,`(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}`,[7,8,9],[[`(\\d{3})(\\d{4,6})`,`$1 $2`,[`[58]`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`2`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[179]`]]]],PA:[`507`,`00`,`(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}`,[7,8,10,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[1-57-9]`]],[`(\\d{4})(\\d{4})`,`$1-$2`,[`[68]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]]],PE:[`51`,`00|19(?:1[124]|77|90)00`,`(?:[14-8]|9\\d)\\d{7}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`80`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`1`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[4-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`]]],`0`,0,0,0,0,0,0,`00`,` Anexo `],PF:[`689`,`00`,`4\\d{5}(?:\\d{2})?|8\\d{7,8}`,[6,8,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`44`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4|8[7-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],PG:[`675`,`00|140[1-3]`,`(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`18|[2-69]|85`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[78]`]]],0,0,0,0,0,0,0,`00`],PH:[`63`,`00`,`(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}`,[6,8,9,10,11,12,13],[[`(\\d)(\\d{5})`,`$1 $2`,[`2`],`(0$1)`],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2`,`3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))`],`(0$1)`],[`(\\d{5})(\\d{4})`,`$1 $2`,[`346|4(?:27|9[35])|883`,`3469|4(?:279|9(?:30|56))|8834`],`(0$1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|8[2-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`1`]]],`0`],PK:[`92`,`00`,`122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,7})`,`$1 $2 $3`,[`[89]0`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{6,7})`,`$1 $2`,[`2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])`,`9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]`],`(0$1)`],[`(\\d{2})(\\d{7,8})`,`$1 $2`,[`(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]`],`(0$1)`],[`(\\d{5})(\\d{5})`,`$1 $2`,[`58`],`(0$1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[24-9]`],`(0$1)`]],`0`],PL:[`48`,`00`,`(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}`,[6,7,8,9,10],[[`(\\d{5})`,`$1`,[`19`]],[`(\\d{3})(\\d{3})`,`$1 $2`,[`11|20|64`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1`,`30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19`]],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`64`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[2-8]|[2-7]|8[1-79]|9[145]`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`8`]]]],PM:[`508`,`00`,`[78]\\d{8}|[2-9]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],PR:[`1`,`011`,`(?:[589]\\d\\d|787)\\d{7}`,[10],0,`1`,0,0,0,0,`787|939`],PS:[`970`,`00`,`[2489]2\\d{6}|(?:1\\d|5)\\d{8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2489]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],PT:[`351`,`00`,`1693\\d{5}|(?:[26-9]\\d|30)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2[12]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`16|[236-9]`]]]],PW:[`680`,`01[12]`,`(?:[24-8]\\d\\d|345|900)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],PY:[`595`,`00`,`[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`[2-9]0`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`3[289]|4[246-8]|61|7[1-3]|8[1-36]`],`(0$1)`],[`(\\d{3})(\\d{4,5})`,`$1 $2`,[`2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`87`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`9(?:[5-79]|8[1-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`]]],`0`],QA:[`974`,`00`,`800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}`,[7,8,9,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`2[136]|8`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[3-7]`]]]],RE:[`262`,`00`,`709\\d{6}|(?:26|[689]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-9]`],`0$1`]],`0`,0,0,0,0,0,[[`2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}`],[`(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}`],[`80\\d{7}`],[`89[1-37-9]\\d{6}`],0,0,0,0,[`9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}`],[`8(?:1[019]|2[0156]|84|90)\\d{6}`]]],RO:[`40`,`00`,`(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}`,[6,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`2[3-6]`,`2[3-6]\\d9`],`0$1`],[`(\\d{2})(\\d{4})`,`$1 $2`,[`219|31`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[23]1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[236-9]`],`0$1`]],`0`,0,0,0,0,0,0,0,` int `],RS:[`381`,`00`,`38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}`,[6,7,8,9,10,11,12],[[`(\\d{3})(\\d{3,9})`,`$1 $2`,[`(?:2[389]|39)0|[7-9]`],`0$1`],[`(\\d{2})(\\d{5,10})`,`$1 $2`,[`[1-36]`],`0$1`]],`0`],RU:[`7`,`810`,`8\\d{13}|[347-9]\\d{9}`,[10,14],[[`(\\d{4})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-8]|2[1-9])`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2`],`8 ($1)`,1],[`(\\d{5})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-68]|2[1-9])`,`7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))`,`7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[349]|8(?:[02-7]|1[1-8])`],`8 ($1)`,1],[`(\\d{4})(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`8`],`8 ($1)`]],`8`,0,0,0,0,`[3489]`,0,`8~10`],RW:[`250`,`00`,`(?:06|[27]\\d\\d|[89]00)\\d{6}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0$1`]],`0`],SA:[`966`,`00`,`(?:[15]\\d|800|92)\\d{7}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`9`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`],SB:[`677`,`0[01]`,`[6-9]\\d{6}|[1-6]\\d{4}`,[5,7],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])`]]]],SC:[`248`,`010|0[0-2]`,`(?:[2489]\\d|64)\\d{5}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[246]|9[57]`]]],0,0,0,0,0,0,0,`00`],SD:[`249`,`00`,`[19]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],SE:[`46`,`00`,`(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}`,[6,7,8,9,10,12],[[`(\\d{2})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`20`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{4})`,`$1-$2`,[`9(?:00|39|44|9)`],`0$1`,0,`$1 $2`],[`(\\d{2})(\\d{3})(\\d{2})`,`$1-$2 $3`,[`[12][136]|3[356]|4[0246]|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3`],[`(\\d)(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{2,3})(\\d{3})`,`$1-$2 $3`,[`9(?:00|39|44)`],`0$1`,0,`$1 $2 $3`],[`(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`10|7`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{3})`,`$1-$2 $3 $4`,[`9`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4 $5`,[`[26]`],`0$1`,0,`$1 $2 $3 $4 $5`]],`0`],SG:[`65`,`0[0-3]\\d`,`(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[369]|8(?:0[1-9]|[1-9])`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{4})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],SH:[`290`,`00`,`(?:[256]\\d|8)\\d{3}`,[4,5],0,0,0,0,0,0,`[256]`],SI:[`386`,`00|10(?:22|66|88|99)`,`[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}`,[5,6,7,8],[[`(\\d{2})(\\d{3,6})`,`$1 $2`,[`8[09]|9`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`59|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37][01]|4[013]|51|6`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-57]`],`(0$1)`]],`0`,0,0,0,0,0,0,`00`],SJ:[`47`,`00`,`0\\d{4}|(?:[489]\\d|79)\\d{6}`,[5,8],0,0,0,0,0,0,`79`],SK:[`421`,`00`,`[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}`,[6,7,9],[[`(\\d)(\\d{2})(\\d{3,4})`,`$1 $2 $3`,[`21`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`[3-5][1-8]1`,`[3-5][1-8]1[67]`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[689]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[3-5]`],`0$1`]],`0`],SL:[`232`,`00`,`(?:[237-9]\\d|66)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[236-9]`],`(0$1)`]],`0`],SM:[`378`,`00`,`(?:0549|[5-7]\\d)\\d{6}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`0`]]],0,0,`([89]\\d{5})$`,`0549$1`],SN:[`221`,`00`,`(?:[378]\\d|93)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[379]`]]]],SO:[`252`,`00`,`[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}`,[6,7,8,9],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`8[125]`]],[`(\\d{6})`,`$1`,[`[134]`]],[`(\\d)(\\d{6})`,`$1 $2`,[`[15]|2[0-79]|3[0-46-8]|4[0-7]`]],[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`1|28|9[2-9]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`[267]|904`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[346-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-9]\\d)\\d{5}`,[6,7],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`56`]],[`(\\d{3})(\\d{3})`,`$1-$2`,[`[2-5]`]],[`(\\d{3})(\\d{4})`,`$1-$2`,[`[6-9]`]]]],SS:[`211`,`00`,`[19]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],ST:[`239`,`00`,`(?:22|9\\d)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[29]`]]]],SV:[`503`,`00`,`[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?`,[7,8,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[89]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[25-7]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[89]`]]]],SX:[`1`,`011`,`7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`(5\\d{6})$|1`,`721$1`,0,`721`],SY:[`963`,`00`,`[1-359]\\d{8}|[1-5]\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-4]|5[1-3]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[59]`],`0$1`,1]],`0`],SZ:[`268`,`00`,`0800\\d{4}|(?:[237]\\d|900)\\d{6}`,[8,9],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[0237]`]],[`(\\d{5})(\\d{4})`,`$1 $2`,[`9`]]]],TA:[`290`,`00`,`8\\d{3}`,[4],0,0,0,0,0,0,`8`],TC:[`1`,`011`,`(?:[58]\\d\\d|649|900)\\d{7}`,[10],0,`1`,0,`([2-479]\\d{6})$|1`,`649$1`,0,`649`],TD:[`235`,`00|16`,`(?:22|[3689]\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[236-9]`]]],0,0,0,0,0,0,0,`00`],TG:[`228`,`00`,`[279]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[279]`]]]],TH:[`66`,`00[1-9]`,`(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}`,[8,9,10,13],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[13-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],TJ:[`992`,`810`,`(?:[0-57-9]\\d|66)\\d{7}`,[9],[[`(\\d{6})(\\d)(\\d{2})`,`$1 $2 $3`,[`331`,`3317`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`44[02-479]|[34]7`]],[`(\\d{4})(\\d)(\\d{4})`,`$1 $2 $3`,[`3(?:[1245]|3[12])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`\\d`]]],0,0,0,0,0,0,0,`8~10`],TK:[`690`,`00`,`[2-47]\\d{3,6}`,[4,5,6,7]],TL:[`670`,`00`,`7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-489]|70`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`7`]]]],TM:[`993`,`810`,`[1-7]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`12`],`(8 $1)`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-5]`],`(8 $1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[67]`],`8 $1`]],`8`,0,0,0,0,0,0,`8~10`],TN:[`216`,`00`,`[2-57-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-57-9]`]]]],TO:[`676`,`00`,`(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}`,[5,7],[[`(\\d{2})(\\d{3})`,`$1-$2`,[`[2-4]|50|6[09]|7[0-24-69]|8[05]`]],[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[5-9]`]]]],TR:[`90`,`00`,`4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}`,[7,10,12,13],[[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`512|8[01589]|90`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`5[0-79]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24][1-8]|3[1-9]`],`(0$1)`,1],[`(\\d{3})(\\d{3})(\\d{6,7})`,`$1 $2 $3`,[`80`],`0$1`,1]],`0`],TT:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-46-8]\\d{6})$|1`,`868$1`,0,`868`],TV:[`688`,`00`,`(?:2|7\\d\\d|90)\\d{4}`,[5,6,7],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2`]],[`(\\d{2})(\\d{4})`,`$1 $2`,[`90`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],TW:[`886`,`0(?:0[25-79]|19)`,`[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}`,[7,8,9,10,11],[[`(\\d{2})(\\d)(\\d{4})`,`$1 $2 $3`,[`202`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`826`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`83`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`82`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[25]0|37|49|8[09]`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-478])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`7`],`0$1`]],`0`,0,0,0,0,0,0,0,`#`],TZ:[`255`,`00[056]`,`(?:[25-8]\\d|41|90)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[24]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`5`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[67]`],`0$1`]],`0`],UA:[`380`,`00`,`[89]\\d{9}|[3-9]\\d{8}`,[9,10],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]`,`6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])`,`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|89|9[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`,0,0,0,0,0,0,`0~0`],UG:[`256`,`00[057]`,`800\\d{6}|(?:[29]0|[347]\\d)\\d{7}`,[9],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`202`,`2024`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[27-9]|4(?:6[45]|[7-9])`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[34]`],`0$1`]],`0`],US:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`310`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`($1) $2-$3`,[`[2-9]`],0,1,`$1-$2-$3`]],`1`,0,0,0,0,0,[[`(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}`],[``],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`],[`900[2-9]\\d{6}`],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],UY:[`598`,`0(?:0|1[3-9]\\d)`,`0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d{4,5})`,`$1`,[`21`]],[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[49]0|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[124]`]],[`(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3 $4`,[`0`]]],`0`,0,0,0,0,0,0,`00`,` int. `],UZ:[`998`,`00`,`(?:20|33|[5-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[235-9]`]]]],VA:[`39`,`00`,`0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}`,[6,7,8,9,10,11,12],0,0,0,0,0,0,`06698`],VC:[`1`,`011`,`(?:[58]\\d\\d|784|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`784$1`,0,`784`],VE:[`58`,`00`,`[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}`,[10],[[`(\\d{3})(\\d{7})`,`$1-$2`,[`[24-689]`],`0$1`]],`0`],VG:[`1`,`011`,`(?:284|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-578]\\d{6})$|1`,`284$1`,0,`284`],VI:[`1`,`011`,`[58]\\d{9}|(?:34|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`340$1`,0,`340`],VN:[`84`,`00`,`[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}`,[7,8,9,10],[[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`1(?:2[02]|[89])`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[26]|6`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[357-9]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[48]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`,1]],`0`],VU:[`678`,`00`,`[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}`,[5,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[57-9]`]]]],WF:[`681`,`00`,`(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[47-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],WS:[`685`,`0`,`(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}`,[5,6,7,10],[[`(\\d{5})`,`$1`,[`[2-5]|6[1-9]`]],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`[68]`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],XK:[`383`,`00`,`2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}`,[8,9,10,11,12],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2|39`],`0$1`],[`(\\d{2})(\\d{7,10})`,`$1 $2`,[`3`],`0$1`]],`0`],YE:[`967`,`00`,`(?:1|7\\d)\\d{7}|[1-7]\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-6]|7(?:[24-6]|8[0-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],YT:[`262`,`00`,`(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}`],[`(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}`],[`80\\d{7}`],0,0,0,0,0,[`9(?:(?:39|47)8[01]|769\\d)\\d{4}`]]],ZA:[`27`,`00`,`[1-79]\\d{8}|8\\d{4,9}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`8[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`8[1-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`860`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],ZM:[`260`,`00`,`800\\d{6}|(?:21|[579]\\d|63)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[28]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[579]`],`0$1`]],`0`],ZW:[`263`,`00`,`2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}`,[5,6,7,8,9,10],[[`(\\d{3})(\\d{3,5})`,`$1 $2`,[`2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]`],`0$1`],[`(\\d)(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`80`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2`,`2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)`,`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`29[013-9]|39|54`],`0$1`],[`(\\d{4})(\\d{3,5})`,`$1 $2`,[`(?:25|54)8`,`258|5483`],`0$1`]],`0`]},nonGeographic:{800:[`800`,0,`(?:00|[1-9]\\d)\\d{6}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`\\d`]]],0,0,0,0,0,0,[0,0,[`(?:00|[1-9]\\d)\\d{6}`]]],808:[`808`,0,`[1-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[1-9]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[`[1-9]\\d{7}`]]],870:[`870`,0,`7\\d{11}|[235-7]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-7]`]]],0,0,0,0,0,0,[0,[`(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}`],0,0,0,0,0,0,[`2\\d{8}`,[9]]]],878:[`878`,0,`10\\d{10}`,[12],[[`(\\d{2})(\\d{5})(\\d{5})`,`$1 $2 $3`,[`1`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`10\\d{10}`]]],881:[`881`,0,`6\\d{9}|[0-36-9]\\d{8}`,[9,10],[[`(\\d)(\\d{3})(\\d{5})`,`$1 $2 $3`,[`[0-37-9]`]],[`(\\d)(\\d{3})(\\d{5,6})`,`$1 $2 $3`,[`6`]]],0,0,0,0,0,0,[0,[`6\\d{9}|[0-36-9]\\d{8}`]]],882:[`882`,0,`[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`16|342`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`49`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`1[36]|9`]],[`(\\d{2})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`3[23]`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`16`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|23|3(?:[15]|4[57])|4|5[12]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`34`]],[`(\\d{2})(\\d{4,5})(\\d{5})`,`$1 $2 $3`,[`[1-35]`]]],0,0,0,0,0,0,[0,[`342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}`,[7,8,9,10,12]],0,0,0,[`348[57]\\d{7}`,[11]],0,0,[`1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}`]]],883:[`883`,0,`(?:[1-4]\\d|51)\\d{6,10}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,8})`,`$1 $2 $3`,[`[14]|2[24-689]|3[02-689]|51[24-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`510`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`21`]],[`(\\d{4})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`51[13]`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[235]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}`]]],888:[`888`,0,`\\d{11}`,[11],[[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`]],0,0,0,0,0,0,[0,0,0,0,0,0,[`\\d{11}`]]],979:[`979`,0,`[1359]\\d{8}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1359]`]]],0,0,0,0,0,0,[0,0,0,[`[1359]\\d{8}`]]]}};function vR(e,t){var n=Array.prototype.slice.call(t);return n.push(_R),e.apply(this,n)}function yR(e,t){e=e.split(`-`),t=t.split(`-`);for(var n=e[0].split(`.`),r=t[0].split(`.`),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var bR={}.constructor;function xR(e){return e!=null&&e.constructor===bR}var SR=/^\d+$/;function CR(e){return SR.test(e)}function wR(e){"@babel/helpers - typeof";return wR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},wR(e)}function TR(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ER(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,OR(r.key),r)}}function DR(e,t,n){return t&&ER(e.prototype,t),n&&ER(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OR(e){var t=kR(e,`string`);return wR(t)==`symbol`?t:t+``}function kR(e,t){if(wR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(wR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var AR=`1.2.0`,jR=`1.7.35`,MR=` ext. `,NR=function(){function e(t){TR(this,e),zR(t),this.metadata=t,UR.call(this,t)}return DR(e,[{key:`getCountries`,value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!==`001`})}},{key:`getCountryMetadata`,value:function(e){return this.metadata.countries[e]}},{key:`nonGeographic`,value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:`hasCountry`,value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:`hasCallingCode`,value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&t.length===1&&t[0]===`001`)return!0}}},{key:`isNonGeographicCallingCode`,value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:`country`,value:function(e){return this.selectNumberingPlan(e)}},{key:`selectNumberingPlan`,value:function(e,t){var n,r;if(e&&(CR(e)?r=e:n=e),t&&(r=t),n&&n!==`001`){var i=this.getCountryMetadata(n);if(!i)throw Error(`Unknown country: ${n}`);this.numberingPlan=new PR(i,this)}else if(r){if(!this.hasCallingCode(r))throw Error(`Unknown calling code: ${r}`);this.numberingPlan=new PR(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:`getCountryCodesForCallingCode`,value:function(e){var t=this.countryCallingCodes()[e];if(t)return t.length===1&&t[0].length===3?void 0:t}},{key:`getCountryCodeForCallingCode`,value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:`getNumberingPlanMetadata`,value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&r.length===1&&r[0]===`001`)return this.metadata.countries[`001`]}}},{key:`countryCallingCode`,value:function(){return this.numberingPlan.callingCode()}},{key:`IDDPrefix`,value:function(){return this.numberingPlan.IDDPrefix()}},{key:`defaultIDDPrefix`,value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:`nationalNumberPattern`,value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:`possibleLengths`,value:function(){return this.numberingPlan.possibleLengths()}},{key:`formats`,value:function(){return this.numberingPlan.formats()}},{key:`nationalPrefixForParsing`,value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:`nationalPrefixTransformRule`,value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:`leadingDigits`,value:function(){return this.numberingPlan.leadingDigits()}},{key:`hasTypes`,value:function(){return this.numberingPlan.hasTypes()}},{key:`type`,value:function(e){return this.numberingPlan.type(e)}},{key:`ext`,value:function(){return this.numberingPlan.ext()}},{key:`countryCallingCodes`,value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:`chooseCountryByCountryCallingCode`,value:function(e){return this.selectNumberingPlan(e)}},{key:`hasSelectedNumberingPlan`,value:function(){return this.numberingPlan!==void 0}}])}(),PR=function(){function e(t,n){TR(this,e),this.globalMetadataObject=n,this.metadata=t,UR.call(this,n.metadata)}return DR(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`_getDefaultCountryMetadataForThisCallingCode`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:`IDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:`defaultIDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:`nationalNumberPattern`,value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:`possibleLengths`,value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:`_getFormats`,value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:`formats`,value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new FR(t,e)})}},{key:`nationalPrefix`,value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:`_getNationalPrefixFormattingRule`,value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:`_nationalPrefixForParsing`,value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:`nationalPrefixForParsing`,value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:`nationalPrefixTransformRule`,value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:`_getNationalPrefixIsOptionalWhenFormatting`,value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:`leadingDigits`,value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:`types`,value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:`hasTypes`,value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:`type`,value:function(e){if(this.hasTypes()&&RR(this.types(),e))return new LR(RR(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?MR:this.metadata[13]||MR}}])}(),FR=function(){function e(t,n){TR(this,e),this._format=t,this.metadata=n}return DR(e,[{key:`pattern`,value:function(){return this._format[0]}},{key:`format`,value:function(){return this._format[1]}},{key:`leadingDigitsPatterns`,value:function(){return this._format[2]||[]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`nationalPrefixIsMandatoryWhenFormattingInNationalFormat`,value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`usesNationalPrefix`,value:function(){return!!(this.nationalPrefixFormattingRule()&&!IR.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),IR=/^\(?\$1\)?$/,LR=function(){function e(t,n){TR(this,e),this.type=t,this.metadata=n}return DR(e,[{key:`pattern`,value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:`possibleLengths`,value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function RR(e,t){switch(t){case`FIXED_LINE`:return e[0];case`MOBILE`:return e[1];case`TOLL_FREE`:return e[2];case`PREMIUM_RATE`:return e[3];case`PERSONAL_NUMBER`:return e[4];case`VOICEMAIL`:return e[5];case`UAN`:return e[6];case`PAGER`:return e[7];case`VOIP`:return e[8];case`SHARED_COST`:return e[9]}}function zR(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!xR(e)||!xR(e.countries))throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${xR(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+BR(e)+`: `+e}.`)}var BR=function(e){return wR(e)};function VR(e,t){var n=new NR(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function HR(e,t){return t.countries.hasOwnProperty(e)}function UR(e){var t=e.version;typeof t==`number`?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?yR(t,AR)===-1?this.v2=!0:yR(t,jR)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function WR(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=GR(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
458
+ </html>`;return n.set(`content-type`,`text/html; charset=utf-8`),n.set(`cache-control`,`no-store`),n.set(`pragma`,`no-cache`),new Response(i,{status:200,headers:n})}var hP=[`openid`,`profile`,`email`,`address`,`phone`,`offline_access`];async function Ide(e,t,n,r){let i=[];if(!(await e.env.data.tenants.get(t))?.flags?.inherit_global_permissions_in_organizations)return[];let a=await e.env.data.userRoles.list(t,n,void 0,``),o=await Promise.all(a.map(n=>e.env.data.rolePermissions.list(t,n.id,{per_page:1e3})));for(let e of o)e.forEach(e=>{e.resource_server_identifier===r&&i.push(e.permission_name)});return[...new Set(i)]}async function Lde(e,t){let{tenantId:n,clientId:r,audience:i,requestedScopes:a}=t,o=a.filter(e=>hP.includes(e)),s=a.filter(e=>!hP.includes(e)),c=(await e.env.data.resourceServers.list(n)).resource_servers.filter(e=>e.identifier===i);if(c.length===0)return{scopes:o,permissions:[],token_lifetime:86400,token_lifetime_for_web:7200};let l=c[0];if(!l)return{scopes:o,permissions:[],token_lifetime:86400,token_lifetime_for_web:7200};let u=l.options?.enforce_policies===!0,d=l.options?.token_dialect||`access_token`,f=(await e.env.data.clientGrants.list(n,{q:`client_id:"${r}"`})).client_grants.find(e=>e.audience===i);if(!f)return{scopes:o,permissions:[],token_lifetime:l.token_lifetime,token_lifetime_for_web:l.token_lifetime_for_web};let p=f.scope||[],m=(l.scopes||[]).map(e=>e.value);if(s.length>0){let e=s.filter(e=>!p.includes(e));if(e.length>0)throw new L(403,{error:`access_denied`,error_description:`Client is not authorized for scope(s): ${e.join(`, `)}`})}let h=p.filter(e=>m.includes(e)),g=a.length===0?h:s.filter(e=>h.includes(e)),_={token_lifetime:l.token_lifetime,token_lifetime_for_web:l.token_lifetime_for_web};if(!u)return{scopes:[...new Set([...o,...g])],permissions:[],..._};let v=g;return d===`access_token_authz`?{scopes:[...new Set([...o,...g])],permissions:v,..._}:{scopes:[...new Set([...o,...g])],permissions:[],..._}}async function gP(e,t){if(t.grantType===$r.ClientCredential)return await Lde(e,{tenantId:t.tenantId,clientId:t.clientId,audience:t.audience,requestedScopes:t.requestedScopes});let{tenantId:n,userId:r,audience:i,requestedScopes:a,organizationId:o}=t,s=await e.env.data.tenants.get(n),c=s?.flags?.restrict_undefined_scopes===!0,l=!1;if(o){if(s?.flags?.inherit_global_permissions_in_organizations){let t=await e.env.data.userRoles.list(n,r,void 0,``);for(let r of t)if((await e.env.data.rolePermissions.list(n,r.id,{per_page:1e3})).some(e=>e.permission_name===`admin:organizations`&&e.resource_server_identifier===`urn:authhero:management`)){l=!0;break}}if(!l&&!(await e.env.data.userOrganizations.list(n,{q:`user_id:${r}`,per_page:1e3})).userOrganizations.some(e=>e.organization_id===o))throw new L(403,{error:`access_denied`,error_description:`User is not a member of the specified organization`})}let u=a.filter(e=>hP.includes(e)),d=(await e.env.data.resourceServers.list(n)).resource_servers.filter(e=>e.identifier===i)[0];if(!d){if(a.filter(e=>e&&!hP.includes(e)).length>0)throw new L(403,{error:`access_denied`,error_description:`Service not found: ${i}`});return{scopes:u,permissions:[],token_lifetime:86400,token_lifetime_for_web:7200}}let f=(d.scopes||[]).map(e=>e.value),p=d.options?.enforce_policies===!0,m=d.options?.token_dialect||`access_token`,h={token_lifetime:d.token_lifetime,token_lifetime_for_web:d.token_lifetime_for_web};if(!p){let e=c?a.filter(e=>f.includes(e)||hP.includes(e)):a;return{scopes:[...new Set(e)],permissions:[],...h}}let[g,_,v]=await Promise.all([e.env.data.userPermissions.list(n,r,void 0,o),e.env.data.userRoles.list(n,r,void 0,``),o?e.env.data.userRoles.list(n,r,void 0,o):Promise.resolve([])]),y=[..._,...v],b=o?await Ide(e,n,r,i):[],x=await Promise.all(y.map(t=>e.env.data.rolePermissions.list(n,t.id,{per_page:1e3}))),S=[];for(let e of x)e.forEach(e=>{e.resource_server_identifier===i&&S.push(e.permission_name)});let C=new Set;g.forEach(e=>{e.resource_server_identifier===i&&C.add(e.permission_name)}),S.forEach(e=>{C.add(e)}),b.forEach(e=>{C.add(e)});let w=Array.from(C),T=w.filter(e=>f.includes(e)),ee=c?[]:a.filter(e=>!f.includes(e)&&!hP.includes(e));if(m===`access_token_authz`)return{scopes:[...new Set([...u,...ee])],permissions:T,...h};let te=a.filter(e=>f.includes(e)&&w.includes(e));return{scopes:[...new Set([...u,...te,...ee])],permissions:[],...h}}var Rde=new Set([`openid`,`profile`,`email`]);function _P(e,t){let n=new Set(t),r=[];for(let t of e)t&&(Rde.has(t)||n.has(t)||r.push(t));return Array.from(new Set(r))}async function vP(e,t){if(!e.env.data.grants)return _P(t.requestedScopes,[]);let n=await e.env.data.grants.get(t.tenantId,t.userId,t.clientId);return _P(t.requestedScopes,n?.scope??[])}function yP(e){if(!e)return!1;try{return!!JSON.parse(e)?.connect}catch{return!1}}function bP(e,t){switch(t){case`email`:return e.email||void 0;case`email_verified`:return e.email_verified===void 0?void 0:e.email_verified;case`name`:return e.name||void 0;case`family_name`:return e.family_name||void 0;case`given_name`:return e.given_name||void 0;case`middle_name`:return e.middle_name||void 0;case`nickname`:return e.nickname||void 0;case`preferred_username`:return e.preferred_username||e.username||void 0;case`profile`:return e.profile||void 0;case`picture`:return e.picture||void 0;case`website`:return e.website||void 0;case`gender`:return e.gender||void 0;case`birthdate`:return e.birthdate||void 0;case`zoneinfo`:return e.zoneinfo||void 0;case`locale`:return e.locale||void 0;case`updated_at`:{if(!e.updated_at)return;let t=new Date(e.updated_at).getTime();return Number.isFinite(t)?Math.floor(t/1e3):void 0}case`address`:return e.address||void 0;case`phone_number`:return e.phone_number||void 0;case`phone_number_verified`:return e.phone_verified===void 0?void 0:e.phone_verified;default:return}}var zde={email:[`email`,`email_verified`],profile:[`name`,`family_name`,`given_name`,`middle_name`,`nickname`,`preferred_username`,`profile`,`picture`,`website`,`gender`,`birthdate`,`zoneinfo`,`locale`,`updated_at`],address:[`address`],phone:[`phone_number`,`phone_number_verified`]};function xP(e,t){let n={};for(let r of t){let t=zde[r];if(t)for(let r of t){let t=bP(e,r);t!==void 0&&(n[r]=t)}}return n}function SP(e,t){let n={};for(let r of t){let t=bP(e,r);t!==void 0&&(n[r]=t)}return n}function Bde(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global}function Vde(){let e=Bde();if(e.__xstate__)return e.__xstate__}var Hde=e=>{if(typeof window>`u`)return;let t=Vde();t&&t.register(e)},CP=class{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){let t={value:e,next:null};if(this._current){this._last.next=t,this._last=t;return}this._current=t,this._last=t,this._active&&this.flush()}flush(){for(;this._current;){let e=this._current;this._process(e.value),this._current=e.next}this._last=null}},Ude=``,Wde=`#`,wP=`*`,TP=`xstate.init`,EP=`xstate.stop`;function DP(e,t){return{type:`xstate.after.${e}.${t}`}}function OP(e,t){return{type:`xstate.done.state.${e}`,output:t}}function kP(e,t){return{type:`xstate.done.actor.${e}`,output:t,actorId:e}}function AP(e,t){return{type:`xstate.error.actor.${e}`,error:t,actorId:e}}function jP(e){return{type:TP,input:e}}function MP(e){setTimeout(()=>{throw e})}var NP=typeof Symbol==`function`&&Symbol.observable||`@@observable`;function PP(e,t){let n=IP(e),r=IP(t);return typeof r==`string`?typeof n==`string`&&r===n:typeof n==`string`?n in r:Object.keys(n).every(e=>e in r&&PP(n[e],r[e]))}function FP(e){if(HP(e))return e;let t=[],n=``;for(let r=0;r<e.length;r++){switch(e.charCodeAt(r)){case 92:n+=e[r+1],r++;continue;case 46:t.push(n),n=``;continue}n+=e[r]}return t.push(n),t}function IP(e){return gI(e)?e.value:typeof e==`string`?LP(FP(e)):e}function LP(e){if(e.length===1)return e[0];let t={},n=t;for(let t=0;t<e.length-1;t++)if(t===e.length-2)n[e[t]]=e[t+1];else{let r=n;n={},r[e[t]]=n}return t}function RP(e,t){let n={},r=Object.keys(e);for(let i=0;i<r.length;i++){let a=r[i];n[a]=t(e[a],a,e,i)}return n}function zP(e){return HP(e)?e:[e]}function BP(e){return e===void 0?[]:zP(e)}function VP(e,t,n,r){return typeof e==`function`?e({context:t,event:n,self:r}):e}function HP(e){return Array.isArray(e)}function UP(e){return e.type.startsWith(`xstate.error.actor`)}function WP(e){return zP(e).map(e=>e===void 0||typeof e==`string`?{target:e}:e)}function GP(e){if(!(e===void 0||e===Ude))return BP(e)}function KP(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}function qP(e,t){return`${t}.${e}`}function JP(e,t){let n=t.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[t];let[,r,i]=n,a=e.getStateNodeById(i).config.invoke;return(Array.isArray(a)?a[r]:a).src}function YP(e,t){if(t===e||t===wP)return!0;if(!t.endsWith(`.*`))return!1;let n=t.split(`.`),r=e.split(`.`);for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t===`*`)return e===n.length-1;if(t!==i)return!1}return!0}function XP(e,t){return`${e.sessionId}.${t}`}var ZP=0;function QP(e,t){let n=new Map,r=new Map,i=new WeakMap,a=new Set,o={},{clock:s,logger:c}=t,l={schedule:(e,t,n,r,i=Math.random().toString(36).slice(2))=>{let a={source:e,target:t,event:n,delay:r,id:i,startedAt:Date.now()},c=XP(e,i);u._snapshot._scheduledEvents[c]=a;let l=s.setTimeout(()=>{delete o[c],delete u._snapshot._scheduledEvents[c],u._relay(e,t,n)},r);o[c]=l},cancel:(e,t)=>{let n=XP(e,t),r=o[n];delete o[n],delete u._snapshot._scheduledEvents[n],r!==void 0&&s.clearTimeout(r)},cancelAll:e=>{for(let t in u._snapshot._scheduledEvents){let n=u._snapshot._scheduledEvents[t];n.source===e&&l.cancel(e,n.id)}}},u={_snapshot:{_scheduledEvents:(t?.snapshot&&t.snapshot.scheduler)??{}},_bookId:()=>`x:${ZP++}`,_register:(e,t)=>(n.set(e,t),e),_unregister:e=>{n.delete(e.sessionId);let t=i.get(e);t!==void 0&&(r.delete(t),i.delete(e))},get:e=>r.get(e),getAll:()=>Object.fromEntries(r.entries()),_set:(e,t)=>{let n=r.get(e);if(n&&n!==t)throw Error(`Actor with system ID '${e}' already exists.`);r.set(e,t),i.set(t,e)},inspect:e=>{let t=KP(e);return a.add(t),{unsubscribe(){a.delete(t)}}},_sendInspectionEvent:t=>{if(!a.size)return;let n={...t,rootId:e.sessionId};a.forEach(e=>e.next?.(n))},_relay:(e,t,n)=>{u._sendInspectionEvent({type:`@xstate.event`,sourceRef:e,actorRef:t,event:n}),t._send(n)},scheduler:l,getSnapshot:()=>({_scheduledEvents:{...u._snapshot._scheduledEvents}}),start:()=>{let e=u._snapshot._scheduledEvents;u._snapshot._scheduledEvents={};for(let t in e){let{source:n,target:r,event:i,delay:a,id:o}=e[t];l.schedule(n,r,i,a,o)}},_clock:s,_logger:c};return u}var $P=!1,eF=function(e){return e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`,e}({}),tF={clock:{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1},nF=class{constructor(e,t){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new CP(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=eF.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];let n={...tF,...t},{clock:r,logger:i,parent:a,syncSnapshot:o,id:s,systemId:c,inspect:l}=n;this.system=a?a.system:QP(this,{clock:r,logger:i}),l&&!a&&this.system.inspect(KP(l)),this.sessionId=this.system._bookId(),this.id=s??this.sessionId,this.logger=t?.logger??this.system._logger,this.clock=t?.clock??this.system._clock,this._parent=a,this._syncSnapshot=o,this.options=n,this.src=n.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:e=>{this._deferred.push(e)},system:this.system,stopChild:e=>{if(e._parent!==this)throw Error(`Cannot stop child actor ${e.id} of ${this.id} because it is not a child`);e._stop()},emit:e=>{let t=this.eventListeners.get(e.type),n=this.eventListeners.get(`*`);if(!t&&!n)return;let r=[...t?t.values():[],...n?n.values():[]];for(let t of r)try{t(e)}catch(e){MP(e)}},actionExecutor:e=>{let t=()=>{if(this._actorScope.system._sendInspectionEvent({type:`@xstate.action`,actorRef:this,action:{type:e.type,params:e.params}}),!e.exec)return;let t=$P;try{$P=!0,e.exec(e.info,e.params)}finally{$P=t}};this._processingStatus===eF.Running?t():this._deferred.push(t)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:`@xstate.actor`,actorRef:this}),c&&(this.systemId=c,this.system._set(c,this)),this._initState(t?.snapshot??t?.state),c&&this._snapshot.status!==`active`&&this.system._unregister(this)}_initState(e){try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(e){this._snapshot={status:`error`,output:void 0,error:e}}}update(e,t){this._snapshot=e;let n;for(;n=this._deferred.shift();)try{n()}catch(t){this._deferred.length=0,this._snapshot={...e,status:`error`,error:t}}switch(this._snapshot.status){case`active`:for(let t of this.observers)try{t.next?.(e)}catch(e){MP(e)}break;case`done`:for(let t of this.observers)try{t.next?.(e)}catch(e){MP(e)}this._stopProcedure(),this._complete(),this._doneEvent=kP(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case`error`:this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:`@xstate.snapshot`,actorRef:this,event:t,snapshot:e})}subscribe(e,t,n){let r=KP(e,t,n);if(this._processingStatus!==eF.Stopped)this.observers.add(r);else switch(this._snapshot.status){case`done`:try{r.complete?.()}catch(e){MP(e)}break;case`error`:{let e=this._snapshot.error;if(!r.error)MP(e);else try{r.error(e)}catch(e){MP(e)}break}}return{unsubscribe:()=>{this.observers.delete(r)}}}on(e,t){let n=this.eventListeners.get(e);n||(n=new Set,this.eventListeners.set(e,n));let r=t.bind(void 0);return n.add(r),{unsubscribe:()=>{n.delete(r)}}}select(e,t=Object.is){return{subscribe:n=>{let r=KP(n),i=e(this.getSnapshot());return this.subscribe(n=>{let a=e(n);t(i,a)||(i=a,r.next?.(a))})},get:()=>e(this.getSnapshot())}}start(){if(this._processingStatus===eF.Running)return this;this._syncSnapshot&&this.subscribe({next:e=>{e.status===`active`&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:e})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=eF.Running;let e=jP(this.options.input);switch(this.system._sendInspectionEvent({type:`@xstate.event`,sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case`done`:return this.update(this._snapshot,e),this;case`error`:return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(e){return this._snapshot={...this._snapshot,status:`error`,error:e},this._error(e),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let t,n;try{t=this.logic.transition(this._snapshot,e,this._actorScope)}catch(e){n={err:e}}if(n){let{err:e}=n;this._snapshot={...this._snapshot,status:`error`,error:e},this._error(e);return}this.update(t,e),e.type===`xstate.stop`&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===eF.Stopped?this:(this.mailbox.clear(),this._processingStatus===eF.NotStarted?(this._processingStatus=eF.Stopped,this):(this.mailbox.enqueue({type:EP}),this))}stop(){if(this._parent)throw Error(`A non-root actor cannot be stopped directly.`);return this._stop()}_complete(){for(let e of this.observers)try{e.complete?.()}catch(e){MP(e)}this.observers.clear(),this.eventListeners.clear()}_reportError(e){if(!this.observers.size){this._parent||MP(e),this.eventListeners.clear();return}let t=!1;for(let n of this.observers){let r=n.error;t||=!r;try{r?.(e)}catch(e){MP(e)}}this.observers.clear(),this.eventListeners.clear(),t&&MP(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,AP(this.id,e))}_stopProcedure(){return this._processingStatus===eF.Running?(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new CP(this._process.bind(this)),this._processingStatus=eF.Stopped,this.system._unregister(this),this):this}_send(e){this._processingStatus!==eF.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){let{devTools:e}=this.options;e&&(typeof e==`function`?e:Hde)(this)}toJSON(){return{xstate$$type:1,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[NP](){return this}getSnapshot(){return this._snapshot}};function rF(e,...[t]){return new nF(e,t)}function iF(e,t,n,r,{sendId:i}){return[t,{sendId:typeof i==`function`?i(n,r):i},void 0]}function aF(e,t){e.defer(()=>{e.system.scheduler.cancel(e.self,t.sendId)})}function oF(e){function t(e,t){}return t.type=`xstate.cancel`,t.sendId=e,t.resolve=iF,t.execute=aF,t}function sF(e,t,n,r,{id:i,systemId:a,src:o,input:s,syncSnapshot:c}){let l=typeof o==`string`?JP(t.machine,o):o,u=typeof i==`function`?i(n):i,d,f;return l&&(f=typeof s==`function`?s({context:t.context,event:n.event,self:e.self}):s,d=rF(l,{id:u,src:o,parent:e.self,syncSnapshot:c,systemId:a,input:f})),[CI(t,{children:{...t.children,[u]:d}}),{id:i,systemId:a,actorRef:d,src:o,input:f},void 0]}function cF(e,{actorRef:t}){t&&e.defer(()=>{t._processingStatus!==eF.Stopped&&t.start()})}function lF(...[e,{id:t,systemId:n,input:r,syncSnapshot:i=!1}={}]){function a(e,t){}return a.type=`xstate.spawnChild`,a.id=t,a.systemId=n,a.src=e,a.input=r,a.syncSnapshot=i,a.resolve=sF,a.execute=cF,a}function uF(e,t,n,r,{actorRef:i}){let a=typeof i==`function`?i(n,r):i,o=typeof a==`string`?t.children[a]:a,s=t.children;return o&&(s={...s},delete s[o.id]),[CI(t,{children:s}),o,void 0]}function dF(e,t){let n=t.getSnapshot();if(n&&`children`in n)for(let t of Object.values(n.children))dF(e,t);e.system._unregister(t)}function fF(e,t){if(t){if(dF(e,t),t._processingStatus!==eF.Running){e.stopChild(t);return}e.defer(()=>{e.stopChild(t)})}}function pF(e){function t(e,t){}return t.type=`xstate.stopChild`,t.actorRef=e,t.resolve=uF,t.execute=fF,t}function mF(e,{context:t,event:n},{guards:r}){return r.every(r=>gF(r,t,n,e))}function hF(e){function t(e,t){return!1}return t.check=mF,t.guards=e,t}function gF(e,t,n,r){let{machine:i}=r,a=typeof e==`function`,o=a?e:i.implementations.guards[typeof e==`string`?e:e.type];if(!a&&!o)throw Error(`Guard '${typeof e==`string`?e:e.type}' is not implemented.'.`);if(typeof o!=`function`)return gF(o,t,n,r);let s={context:t,event:n},c=a||typeof e==`string`?void 0:`params`in e?typeof e.params==`function`?e.params({context:t,event:n}):e.params:void 0;return`check`in o?o.check(r,s,o):o(s,c)}function _F(e){return e.type===`atomic`||e.type===`final`}function vF(e){return Object.values(e.states).filter(e=>e.type!==`history`)}function yF(e,t){let n=[];if(t===e)return n;let r=e.parent;for(;r&&r!==t;)n.push(r),r=r.parent;return n}function bF(e){let t=new Set(e),n=SF(t);for(let e of t)if(e.type===`compound`&&(!n.get(e)||!n.get(e).length))FF(e).forEach(e=>t.add(e));else if(e.type===`parallel`){for(let n of vF(e))if(n.type!==`history`&&!t.has(n)){let e=FF(n);for(let n of e)t.add(n)}}for(let e of t){let n=e.parent;for(;n;)t.add(n),n=n.parent}return t}function xF(e,t){let n=t.get(e);if(!n)return{};if(e.type===`compound`){let e=n[0];if(e){if(_F(e))return e.key}else return{}}let r={};for(let e of n)r[e.key]=xF(e,t);return r}function SF(e){let t=new Map;for(let n of e)t.has(n)||t.set(n,[]),n.parent&&(t.has(n.parent)||t.set(n.parent,[]),t.get(n.parent).push(n));return t}function CF(e,t){return xF(e,SF(bF(t)))}function wF(e,t){return t.type===`compound`?vF(t).some(t=>t.type===`final`&&e.has(t)):t.type===`parallel`?vF(t).every(t=>wF(e,t)):t.type===`final`}var TF=e=>e[0]===Wde;function EF(e,t){let n=e.transitions.get(t),r=[...e.transitions.keys()].filter(e=>e!==t&&YP(t,e)).sort((e,t)=>t.length-e.length).flatMap(t=>e.transitions.get(t));return n?[...n,...r]:r}function DF(e){let t=e.config.after;if(!t)return[];let n=t=>{let n=DP(t,e.id),r=n.type;return e.entry.push(kI(n,{id:r,delay:t})),e.exit.push(oF(r)),r};return Object.keys(t).flatMap(e=>{let r=t[e],i=typeof r==`string`?{target:r}:r,a=Number.isNaN(+e)?e:+e,o=n(a);return BP(i).map(e=>({...e,event:o,delay:a}))}).map(t=>{let{delay:n}=t;return{...OF(e,t.event,t),delay:n}})}function OF(e,t,n){let r=GP(n.target),i=n.reenter??!1,a=MF(e,r),o={...n,actions:BP(n.actions),guard:n.guard,target:a,source:e,reenter:i,eventType:t,toJSON:()=>({...o,source:`#${e.id}`,target:a?a.map(e=>`#${e.id}`):void 0})};return o}function kF(e){let t=new Map;if(e.config.on)for(let n of Object.keys(e.config.on)){if(n===``)throw Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');let r=e.config.on[n];t.set(n,WP(r).map(t=>OF(e,n,t)))}if(e.config.onDone){let n=`xstate.done.state.${e.id}`;t.set(n,WP(e.config.onDone).map(t=>OF(e,n,t)))}for(let n of e.invoke){if(n.onDone){let r=`xstate.done.actor.${n.id}`;t.set(r,WP(n.onDone).map(t=>OF(e,r,t)))}if(n.onError){let r=`xstate.error.actor.${n.id}`;t.set(r,WP(n.onError).map(t=>OF(e,r,t)))}if(n.onSnapshot){let r=`xstate.snapshot.${n.id}`;t.set(r,WP(n.onSnapshot).map(t=>OF(e,r,t)))}}for(let n of e.after){let e=t.get(n.eventType);e||(e=[],t.set(n.eventType,e)),e.push(n)}return t}function AF(e){let t=[],n=r=>{Object.values(r).forEach(r=>{if(r.config.route&&r.config.id){let n=r.config.id,i=r.config.route.guard,a=({event:e})=>e.to===`#${n}`,o={...r.config.route,guard:i?hF([a,i]):a,target:`#${n}`};t.push(OF(e,`xstate.route`,o))}r.states&&n(r.states)})};n(e.states),t.length>0&&e.transitions.set(`xstate.route`,t)}function jF(e,t){let n=typeof t==`string`?e.states[t]:t?e.states[t.target]:void 0;if(!n&&t)throw Error(`Initial state node "${t}" not found on parent state node #${e.id}`);let r={source:e,actions:!t||typeof t==`string`?[]:BP(t.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...r,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return r}function MF(e,t){if(t!==void 0)return t.map(t=>{if(typeof t!=`string`)return t;if(TF(t))return e.machine.getStateNodeById(t);let n=t[0]===`.`;if(n&&!e.parent)return RF(e,t.slice(1));let r=n?e.key+t:t;if(e.parent)try{return RF(e.parent,r)}catch(t){throw Error(`Invalid transition definition for state node '${e.id}':\n${t.message}`)}else throw Error(`Invalid target: "${t}" is not a valid target from the root node. Did you mean ".${t}"?`)})}function NF(e){let t=GP(e.config.target);return t?{target:t.map(t=>typeof t==`string`?RF(e.parent,t):t)}:e.parent.type===`parallel`?{target:[e.parent]}:e.parent.initial}function PF(e){return e.type===`history`}function FF(e){let t=IF(e);for(let n of t)for(let r of yF(n,e))t.add(r);return t}function IF(e){let t=new Set;function n(e){if(!t.has(e)){if(t.add(e),e.type===`compound`)n(e.initial.target[0]);else if(e.type===`parallel`)for(let t of vF(e))n(t)}}return n(e),t}function LF(e,t){if(TF(t))return e.machine.getStateNodeById(t);if(!e.states)throw Error(`Unable to retrieve child state '${t}' from '${e.id}'; no child states exist.`);let n=e.states[t];if(!n)throw Error(`Child state '${t}' does not exist on '${e.id}'`);return n}function RF(e,t){if(typeof t==`string`&&TF(t))try{return e.machine.getStateNodeById(t)}catch{}let n=FP(t).slice(),r=e;for(;n.length;){let e=n.shift();if(!e.length)break;r=LF(r,e)}return r}function zF(e,t){if(typeof t==`string`){let n=e.states[t];if(!n)throw Error(`State '${t}' does not exist on '${e.id}'`);return[e,n]}let n=Object.keys(t),r=n.map(t=>LF(e,t)).filter(Boolean);return[e.machine.root,e].concat(r,n.reduce((n,r)=>{let i=LF(e,r);if(!i)return n;let a=zF(i,t[r]);return n.concat(a)},[]))}function BF(e,t,n,r){let i=LF(e,t).next(n,r);return!i||!i.length?e.next(n,r):i}function VF(e,t,n,r){let i=Object.keys(t),a=UF(LF(e,i[0]),t[i[0]],n,r);return!a||!a.length?e.next(n,r):a}function HF(e,t,n,r){let i=[];for(let a of Object.keys(t)){let o=t[a];if(!o)continue;let s=UF(LF(e,a),o,n,r);s&&i.push(...s)}return i.length?i:e.next(n,r)}function UF(e,t,n,r){return typeof t==`string`?BF(e,t,n,r):Object.keys(t).length===1?VF(e,t,n,r):HF(e,t,n,r)}function WF(e){return Object.keys(e.states).map(t=>e.states[t]).filter(e=>e.type===`history`)}function GF(e,t){let n=e;for(;n.parent&&n.parent!==t;)n=n.parent;return n.parent===t}function KF(e,t){let n=new Set(e),r=new Set(t);for(let e of n)if(r.has(e))return!0;for(let e of r)if(n.has(e))return!0;return!1}function qF(e,t,n){let r=new Set;for(let i of e){let e=!1,a=new Set;for(let o of r)if(KF(ZF([i],t,n),ZF([o],t,n)))if(GF(i.source,o.source))a.add(o);else{e=!0;break}if(!e){for(let e of a)r.delete(e);r.add(i)}}return Array.from(r)}function JF(e){let[t,...n]=e;for(let e of yF(t,void 0))if(n.every(t=>GF(t,e)))return e}function YF(e,t){if(!e.target)return[];let n=new Set;for(let r of e.target)if(PF(r))if(t[r.id])for(let e of t[r.id])n.add(e);else for(let e of YF(NF(r),t))n.add(e);else n.add(r);return[...n]}function XF(e,t){let n=YF(e,t);if(!n)return;if(!e.reenter&&n.every(t=>t===e.source||GF(t,e.source)))return e.source;let r=JF(n.concat(e.source));if(r)return r;if(!e.reenter)return e.source.machine.root}function ZF(e,t,n){let r=new Set;for(let i of e)if(i.target?.length){let e=XF(i,n);i.reenter&&i.source===e&&r.add(e);for(let n of t)GF(n,e)&&r.add(n)}return[...r]}function QF(e,t){if(e.length!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function $F(e,t,n,r,i){return eI([{target:[...IF(e)],source:e,reenter:!0,actions:[],eventType:null,toJSON:null}],t,n,r,!0,i)}function eI(e,t,n,r,i,a){let o=[];if(!e.length)return[t,o];let s=n.actionExecutor;n.actionExecutor=e=>{o.push(e),s(e)};try{let s=new Set(t._nodes),c=t.historyValue,l=qF(e,s,c),u=t;i||([u,c]=sI(u,r,n,l,s,c,a,n.actionExecutor)),u=uI(u,r,n,l.flatMap(e=>e.actions),a,void 0),u=nI(u,r,n,l,s,a,c,i);let d=[...s];u.status===`done`&&(u=uI(u,r,n,d.sort((e,t)=>t.order-e.order).flatMap(e=>e.exit),a,void 0));try{return c===t.historyValue&&QF(t._nodes,s)?[u,o]:[CI(u,{_nodes:d,historyValue:c}),o]}catch(e){throw e}}finally{n.actionExecutor=s}}function tI(e,t,n,r,i){if(r.output===void 0)return;let a=OP(i.id,i.output!==void 0&&i.parent?VP(i.output,e.context,t,n.self):void 0);return VP(r.output,e.context,a,n.self)}function nI(e,t,n,r,i,a,o,s){let c=e,l=new Set,u=new Set;rI(r,o,u,l),s&&u.add(e.machine.root);let d=new Set;for(let e of[...l].sort((e,t)=>e.order-t.order)){i.add(e);let r=[];r.push(...e.entry);for(let t of e.invoke)r.push(lF(t.src,{...t,syncSnapshot:!!t.onSnapshot}));if(u.has(e)){let t=e.initial.actions;r.push(...t)}if(c=uI(c,t,n,r,a,e.invoke.map(e=>e.id)),e.type===`final`){let r=e.parent,o=r?.type===`parallel`?r:r?.parent,s=o||e;for(r?.type===`compound`&&a.push(OP(r.id,e.output===void 0?void 0:VP(e.output,c.context,t,n.self)));o?.type===`parallel`&&!d.has(o)&&wF(i,o);)d.add(o),a.push(OP(o.id)),s=o,o=o.parent;if(o)continue;c=CI(c,{status:`done`,output:tI(c,t,n,c.machine.root,s)})}}return c}function rI(e,t,n,r){for(let i of e){let e=XF(i,t);for(let a of i.target||[])!PF(a)&&(i.source!==a||i.source!==e||i.reenter)&&(r.add(a),n.add(a)),iI(a,t,n,r);let a=YF(i,t);for(let o of a){let a=yF(o,e);e?.type===`parallel`&&a.push(e),aI(r,t,n,a,!i.source.parent&&i.reenter?void 0:e)}}}function iI(e,t,n,r){if(PF(e))if(t[e.id]){let i=t[e.id];for(let e of i)r.add(e),iI(e,t,n,r);for(let a of i)oI(a,e.parent,r,t,n)}else{let i=NF(e);for(let a of i.target)r.add(a),i===e.parent?.initial&&n.add(e.parent),iI(a,t,n,r);for(let a of i.target)oI(a,e.parent,r,t,n)}else if(e.type===`compound`){let[i]=e.initial.target;PF(i)||(r.add(i),n.add(i)),iI(i,t,n,r),oI(i,e,r,t,n)}else if(e.type===`parallel`)for(let i of vF(e).filter(e=>!PF(e)))[...r].some(e=>GF(e,i))||(PF(i)||(r.add(i),n.add(i)),iI(i,t,n,r))}function aI(e,t,n,r,i){for(let a of r)if((!i||GF(a,i))&&e.add(a),a.type===`parallel`)for(let r of vF(a).filter(e=>!PF(e)))[...e].some(e=>GF(e,r))||(e.add(r),iI(r,t,n,e))}function oI(e,t,n,r,i){aI(n,r,i,yF(e,t))}function sI(e,t,n,r,i,a,o,s){let c=e,l=ZF(r,i,a);l.sort((e,t)=>t.order-e.order);let u;for(let e of l)for(let t of WF(e)){let n;n=t.history===`deep`?t=>_F(t)&&GF(t,e):t=>t.parent===e,u??={...a},u[t.id]=Array.from(i).filter(n)}for(let e of l)c=uI(c,t,n,[...e.exit,...e.invoke.map(e=>pF(e.id))],o,void 0),i.delete(e);return[c,u||a]}function cI(e,t){return e.implementations.actions[t]}function lI(e,t,n,r,i,a){let{machine:o}=e,s=e;for(let e of r){let r=typeof e==`function`,c=r?e:cI(o,typeof e==`string`?e:e.type),l={context:s.context,event:t,self:n.self,system:n.system},u=r||typeof e==`string`?void 0:`params`in e?typeof e.params==`function`?e.params({context:s.context,event:t}):e.params:void 0;if(!c||!(`resolve`in c)){n.actionExecutor({type:typeof e==`string`?e:typeof e==`object`?e.type:e.name||`(anonymous)`,info:l,params:u,exec:c});continue}let d=c,[f,p,m]=d.resolve(n,s,l,u,c,i);s=f,`retryResolve`in d&&a?.push([d,p]),`execute`in d&&n.actionExecutor({type:d.type,info:l,params:p,exec:d.execute.bind(null,n,p)}),m&&(s=lI(s,t,n,m,i,a))}return s}function uI(e,t,n,r,i,a){let o=a?[]:void 0,s=lI(e,t,n,r,{internalQueue:i,deferredActorIds:a},o);return o?.forEach(([e,t])=>{e.retryResolve(n,s,t)}),s}function dI(e,t,n,r){let i=e,a=[];function o(e,t,r){n.system._sendInspectionEvent({type:`@xstate.microstep`,actorRef:n.self,event:t,snapshot:e[0],_transitions:r}),a.push(e)}if(t.type===`xstate.stop`)return i=CI(fI(i,t,n),{status:`stopped`}),o([i,[]],t,[]),{snapshot:i,microsteps:a};let s=t;if(s.type!==TP){let t=s,c=UP(t),l=pI(t,i);if(c&&!l.length)return i=CI(e,{status:`error`,error:t.error}),o([i,[]],t,[]),{snapshot:i,microsteps:a};let u=eI(l,e,n,s,!1,r);i=u[0],o(u,t,l)}let c=!0,l=e.machine.options?.maxIterations??1/0,u=0;for(;i.status===`active`;){if(u++,u>l)throw Error(`Infinite loop detected: the machine has processed more than ${l} microsteps without reaching a stable state. This usually happens when there's a cycle of transitions (e.g., eventless transitions or raised events causing state A -> B -> C -> A).`);let e=c?mI(i,s):[],t=e.length?i:void 0;if(!e.length){if(!r.length)break;s=r.shift(),e=pI(s,i)}let a=eI(e,i,n,s,!1,r);i=a[0],c=i!==t,o(a,s,e)}return i.status!==`active`&&fI(i,s,n),{snapshot:i,microsteps:a}}function fI(e,t,n){return uI(e,t,n,Object.values(e.children).map(e=>pF(e)),[],void 0)}function pI(e,t){return t.machine.getTransitionData(t,e)}function mI(e,t){let n=new Set,r=e._nodes.filter(_F);for(let i of r)loop:for(let r of[i].concat(yF(i,void 0)))if(r.always){for(let i of r.always)if(i.guard===void 0||gF(i.guard,e.context,t,e)){n.add(i);break loop}}return qF(Array.from(n),new Set(e._nodes),e.historyValue)}function hI(e,t){return CF(e,[...bF(zF(e,t))])}function gI(e){return!!e&&typeof e==`object`&&`machine`in e&&`value`in e}var _I=function(e){return PP(e,this.value)},vI=function(e){return this.tags.has(e)},yI=function(e){let t=this.machine.getTransitionData(this,e);return!!t?.length&&t.some(e=>e.target!==void 0||e.actions.length)},bI=function(){let{_nodes:e,tags:t,machine:n,getMeta:r,toJSON:i,can:a,hasTag:o,matches:s,...c}=this;return{...c,tags:Array.from(t)}},xI=function(){return this._nodes.reduce((e,t)=>(t.meta!==void 0&&(e[t.id]=t.meta),e),{})};function SI(e,t){return{status:e.status,output:e.output,error:e.error,machine:t,context:e.context,_nodes:e._nodes,value:CF(t.root,e._nodes),tags:new Set(e._nodes.flatMap(e=>e.tags)),children:e.children,historyValue:e.historyValue||{},matches:_I,hasTag:vI,can:yI,getMeta:xI,toJSON:bI}}function CI(e,t={}){return SI({...e,...t},e.machine)}function wI(e){if(typeof e!=`object`||!e)return{};let t={};for(let n in e){let r=e[n];Array.isArray(r)&&(t[n]=r.map(e=>({id:e.id})))}return t}function TI(e,t){let{_nodes:n,tags:r,machine:i,children:a,context:o,can:s,hasTag:c,matches:l,getMeta:u,toJSON:d,...f}=e,p={};for(let e in a){let n=a[e];p[e]={snapshot:n.getPersistedSnapshot(t),src:n.src,systemId:n.systemId,syncSnapshot:n._syncSnapshot}}return{...f,context:EI(o),children:p,historyValue:wI(f.historyValue)}}function EI(e){let t;for(let n in e){let r=e[n];if(r&&typeof r==`object`)if(`sessionId`in r&&`send`in r&&`ref`in r)t??=Array.isArray(e)?e.slice():{...e},t[n]={xstate$$type:1,id:r.id};else{let i=EI(r);i!==r&&(t??=Array.isArray(e)?e.slice():{...e},t[n]=i)}}return t??e}function DI(e,t,n,r,{event:i,id:a,delay:o},{internalQueue:s}){let c=t.machine.implementations.delays;if(typeof i==`string`)throw Error(`Only event objects may be used with raise; use raise({ type: "${i}" }) instead`);let l=typeof i==`function`?i(n,r):i,u;if(typeof o==`string`){let e=c&&c[o];u=typeof e==`function`?e(n,r):e}else u=typeof o==`function`?o(n,r):o;return typeof u!=`number`&&s.push(l),[t,{event:l,id:a,delay:u},void 0]}function OI(e,t){let{event:n,delay:r,id:i}=t;if(typeof r==`number`){e.defer(()=>{let t=e.self;e.system.scheduler.schedule(t,t,n,r,i)});return}}function kI(e,t){function n(e,t){}return n.type=`xstate.raise`,n.event=e,n.id=t?.id,n.delay=t?.delay,n.resolve=DI,n.execute=OI,n}function AI(e,{machine:t,context:n},r,i){let a=(a,o)=>{if(typeof a==`string`){let s=JP(t,a);if(!s)throw Error(`Actor logic '${a}' not implemented in machine '${t.id}'`);let c=rF(s,{id:o?.id,parent:e.self,syncSnapshot:o?.syncSnapshot,input:typeof o?.input==`function`?o.input({context:n,event:r,self:e.self}):o?.input,src:a,systemId:o?.systemId});return i[c.id]=c,c}else return rF(a,{id:o?.id,parent:e.self,syncSnapshot:o?.syncSnapshot,input:o?.input,src:a,systemId:o?.systemId})};return(t,n)=>{let r=a(t,n);return i[r.id]=r,e.defer(()=>{r._processingStatus!==eF.Stopped&&r.start()}),r}}function jI(e,t,n,r,{assignment:i}){if(!t.context)throw Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");let a={},o={context:t.context,event:n.event,spawn:AI(e,t,n.event,a),self:e.self,system:e.system},s={};if(typeof i==`function`)s=i(o,r);else for(let e of Object.keys(i)){let t=i[e];s[e]=typeof t==`function`?t(o,r):t}return[CI(t,{context:Object.assign({},t.context,s),children:Object.keys(a).length?{...t.children,...a}:t.children}),void 0,void 0]}function MI(e){function t(e,t){}return t.type=`xstate.assign`,t.assignment=e,t.resolve=jI,t}var NI=new WeakMap;function PI(e,t,n){let r=NI.get(e);return r?t in r||(r[t]=n()):(r={[t]:n()},NI.set(e,r)),r[t]}var FI={},II=e=>typeof e==`string`?{type:e}:typeof e==`function`?`resolve`in e?{type:e.type}:{type:e.name}:e,LI=class e{constructor(t,n){if(this.config=t,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(`.`),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?`compound`:this.config.history?`history`:`atomic`),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?RP(this.config.states,(t,n)=>new e(t,{_parent:this,_key:n,_machine:this.machine})):FI,this.type===`compound`&&!this.config.initial)throw Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?`shallow`:this.config.history||!1,this.entry=BP(this.config.entry).slice(),this.exit=BP(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type===`final`||!this.parent?this.config.output:void 0,this.tags=BP(t.tags).slice()}_initialize(){this.transitions=kF(this),this.config.always&&(this.always=WP(this.config.always).map(e=>OF(this,``,e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(II),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(II),eventType:null})}:void 0,history:this.history,states:RP(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(II)})),entry:this.entry.map(II),exit:this.exit.map(II),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return PI(this,`invoke`,()=>BP(this.config.invoke).map((e,t)=>{let{src:n,systemId:r}=e,i=e.id??qP(this.id,t),a=typeof n==`string`?n:`xstate.invoke.${qP(this.id,t)}`;return{...e,src:a,id:i,systemId:r,toJSON(){let{onDone:t,onError:n,...r}=e;return{...r,type:`xstate.invoke`,src:a,id:i}}}}))}get on(){return PI(this,`on`,()=>[...this.transitions].flatMap(([e,t])=>t.map(t=>[e,t])).reduce((e,[t,n])=>(e[t]=e[t]||[],e[t].push(n),e),{}))}get after(){return PI(this,`delayedTransitions`,()=>DF(this))}get initial(){return PI(this,`initial`,()=>jF(this,this.config.initial))}next(e,t){let n=t.type,r=[],i,a=PI(this,`candidates-${n}`,()=>EF(this,n));for(let o of a){let{guard:a}=o,s=e.context,c=!1;try{c=!a||gF(a,s,t,e)}catch(e){let t=typeof a==`string`?a:typeof a==`object`?a.type:void 0;throw Error(`Unable to evaluate guard ${t?`'${t}' `:``}in transition for event '${n}' in state node '${this.id}':\n${e.message}`)}if(c){r.push(...o.actions),i=o;break}}return i?[i]:void 0}get events(){return PI(this,`events`,()=>{let{states:e}=this,t=new Set(this.ownEvents);if(e)for(let n of Object.keys(e)){let r=e[n];if(r.states)for(let e of r.events)t.add(`${e}`)}return Array.from(t)})}get ownEvents(){let e=Object.keys(Object.fromEntries(this.transitions)),t=new Set(e.filter(e=>this.transitions.get(e).some(e=>!(!e.target&&!e.actions.length&&!e.reenter))));return Array.from(t)}},RI=class e{constructor(e,t){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.options=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||`(machine)`,this.implementations={actors:t?.actors??{},actions:t?.actions??{},delays:t?.delays??{},guards:t?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.options={maxIterations:1/0,...this.config.options},this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new LI(e,{_key:this.id,_machine:this}),this.root._initialize(),AF(this.root),this.states=this.root.states,this.events=this.root.events}provide(t){let{actions:n,guards:r,actors:i,delays:a}=this.implementations;return new e(this.config,{actions:{...n,...t.actions},guards:{...r,...t.guards},actors:{...i,...t.actors},delays:{...a,...t.delays}})}resolveState(e){let t=hI(this.root,e.value),n=bF(zF(this.root,t));return SI({_nodes:[...n],context:e.context||{},children:{},status:wF(n,this.root)?`done`:e.status||`active`,output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,t,n){return dI(e,t,n,[]).snapshot}microstep(e,t,n){return dI(e,t,n,[]).microsteps.map(([e])=>e)}getTransitionData(e,t){return UF(this.root,e.value,e,t)||[]}_getPreInitialState(e,t,n){let{context:r}=this.config,i=SI({context:typeof r!=`function`&&r?r:{},_nodes:[this.root],children:{},status:`active`},this);return typeof r==`function`?uI(i,t,e,[MI(({spawn:e,event:t,self:n})=>r({spawn:e,input:t.input,self:n}))],n,void 0):i}getInitialSnapshot(e,t){let n=jP(t),r=[],i=this._getPreInitialState(e,n,r),[a]=$F(this.root,i,e,n,r),{snapshot:o}=dI(a,n,e,r);return o}start(e){Object.values(e.children).forEach(e=>{e.getSnapshot().status===`active`&&e.start()})}getStateNodeById(e){let t=FP(e),n=t.slice(1),r=TF(t[0])?t[0].slice(1):t[0],i=this.idMap.get(r);if(!i)throw Error(`Child state node '#${r}' does not exist on machine '${this.id}'`);return RF(i,n)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,t){return TI(e,t)}restoreSnapshot(e,t){let n={},r=e.children;Object.keys(r).forEach(e=>{let i=r[e],a=i.snapshot,o=i.src,s=typeof o==`string`?JP(this,o):o;if(!s)return;let c=rF(s,{id:e,parent:t.self,syncSnapshot:i.syncSnapshot,snapshot:a,src:o,systemId:i.systemId});n[e]=c});function i(e,t){if(t instanceof LI)return t;try{return e.machine.getStateNodeById(t.id)}catch{}}function a(e,t){if(!t||typeof t!=`object`)return{};let n={};for(let r in t){let a=t[r];for(let t of a){let a=i(e,t);a&&(n[r]??=[],n[r].push(a))}}return n}let o=a(this.root,e.historyValue),s=SI({...e,children:n,_nodes:Array.from(bF(zF(this.root,e.value))),historyValue:o},this),c=new Set;function l(e,t){if(!c.has(e)){c.add(e);for(let n in e){let r=e[n];if(r&&typeof r==`object`){if(`xstate$$type`in r&&r.xstate$$type===1){e[n]=t[r.id];continue}l(r,t)}}}}return l(s.context,n),s}};function zI(e,t,n,r,{event:i}){return[t,{event:typeof i==`function`?i(n,r):i},void 0]}function BI(e,{event:t}){e.defer(()=>e.emit(t))}function VI(e){function t(e,t){}return t.type=`xstate.emit`,t.event=e,t.resolve=zI,t.execute=BI,t}var HI=function(e){return e.Parent=`#_parent`,e.Internal=`#_internal`,e}({});function UI(e,t,n,r,{to:i,event:a,id:o,delay:s},c){let l=t.machine.implementations.delays;if(typeof a==`string`)throw Error(`Only event objects may be used with sendTo; use sendTo({ type: "${a}" }) instead`);let u=typeof a==`function`?a(n,r):a,d;if(typeof s==`string`){let e=l&&l[s];d=typeof e==`function`?e(n,r):e}else d=typeof s==`function`?s(n,r):s;let f=typeof i==`function`?i(n,r):i,p;if(typeof f==`string`){if(p=f===HI.Parent?e.self._parent:f===HI.Internal?e.self:f.startsWith(`#_`)?t.children[f.slice(2)]:c.deferredActorIds?.includes(f)?f:t.children[f],!p)throw Error(`Unable to send event to actor '${f}' from machine '${t.machine.id}'.`)}else p=f||e.self;return[t,{to:p,targetId:typeof f==`string`?f:void 0,event:u,id:o,delay:d},void 0]}function WI(e,t,n){typeof n.to==`string`&&(n.to=t.children[n.to])}function GI(e,t){e.defer(()=>{let{to:n,event:r,delay:i,id:a}=t;if(typeof i==`number`){e.system.scheduler.schedule(e.self,n,r,i,a);return}e.system._relay(e.self,n,r.type===`xstate.error`?AP(e.self.id,r.data):r)})}function KI(e,t,n){function r(e,t){}return r.type=`xstate.sendTo`,r.to=e,r.event=t,r.id=n?.id,r.delay=n?.delay,r.resolve=UI,r.retryResolve=WI,r.execute=GI,r}function qI(e,t){return KI(HI.Parent,e,t)}function JI(e,t,n,r,{collect:i}){let a=[],o=function(e){a.push(e)};return o.assign=(...e)=>{a.push(MI(...e))},o.cancel=(...e)=>{a.push(oF(...e))},o.raise=(...e)=>{a.push(kI(...e))},o.sendTo=(...e)=>{a.push(KI(...e))},o.sendParent=(...e)=>{a.push(qI(...e))},o.spawnChild=(...e)=>{a.push(lF(...e))},o.stopChild=(...e)=>{a.push(pF(...e))},o.emit=(...e)=>{a.push(VI(...e))},i({context:n.context,event:n.event,enqueue:o,check:e=>gF(e,t.context,n.event,t),self:e.self,system:e.system},r),[t,void 0,a]}function YI(e){function t(e,t){}return t.type=`xstate.enqueueActions`,t.collect=e,t.resolve=JI,t}function XI(e,t,n,r,{value:i,label:a}){return[t,{value:typeof i==`function`?i(n,r):i,label:a},void 0]}function ZI({logger:e},{value:t,label:n}){n?e(n,t):e(t)}function QI(e=({context:e,event:t})=>({context:e,event:t}),t){function n(e,t){}return n.type=`xstate.log`,n.value=e,n.label=t,n.resolve=XI,n.execute=ZI,n}function $I(e,t){return new RI(e,t)}function eL(e){let t=rF(e),n=QP(t,{clock:t.system._clock,logger:t.system._logger});return t.system=n,{self:t,defer:()=>{},id:``,logger:()=>{},sessionId:``,stopChild:()=>{},system:n,emit:()=>{},actionExecutor:()=>{}}}function tL({schemas:e,actors:t,actions:n,guards:r,delays:i}){return{assign:MI,sendTo:KI,raise:kI,log:QI,cancel:oF,stopChild:pF,enqueueActions:YI,emit:VI,spawnChild:lF,createStateConfig:e=>e,createAction:e=>e,createMachine:a=>$I({...a,schemas:e},{actors:t,actions:n,guards:r,delays:i}),extend:a=>tL({schemas:e,actors:t,actions:{...n,...a.actions},guards:{...r,...a.guards},delays:{...i,...a.delays}})}}function nL(e,t,n){let r=[],i=eL(e);return i.actionExecutor=e=>{r.push(e)},[e.transition(t,n,i),r]}var rL=function(e){return e.AUTHENTICATE=`AUTHENTICATE`,e.REQUIRE_EMAIL_VERIFICATION=`REQUIRE_EMAIL_VERIFICATION`,e.REQUIRE_MFA=`REQUIRE_MFA`,e.COMPLETE_MFA=`COMPLETE_MFA`,e.REQUIRE_CONSENT=`REQUIRE_CONSENT`,e.COMPLETE_CONSENT=`COMPLETE_CONSENT`,e.START_HOOK=`START_HOOK`,e.COMPLETE_HOOK=`COMPLETE_HOOK`,e.START_CONTINUATION=`START_CONTINUATION`,e.COMPLETE_CONTINUATION=`COMPLETE_CONTINUATION`,e.COMPLETE=`COMPLETE`,e.FAIL=`FAIL`,e.EXPIRE=`EXPIRE`,e}({}),iL=tL({types:{context:{},events:{}},actions:{setUserId:MI(({event:e})=>e.type===`AUTHENTICATE`?{userId:e.userId}:{}),setHookId:MI(({event:e})=>e.type===`START_HOOK`?{hookId:e.hookId}:{}),clearHookId:MI({hookId:void 0}),setContinuationScope:MI(({event:e})=>e.type===`START_CONTINUATION`?{continuationScope:e.scope}:{}),clearContinuationScope:MI({continuationScope:void 0}),setFailureReason:MI(({event:e})=>e.type===`FAIL`?{failureReason:e.reason}:{})}}).createMachine({id:`loginSession`,initial:`pending`,context:{},states:{pending:{on:{AUTHENTICATE:{target:`authenticated`,actions:`setUserId`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},authenticated:{on:{REQUIRE_EMAIL_VERIFICATION:{target:`awaiting_email_verification`},REQUIRE_MFA:{target:`awaiting_mfa`},REQUIRE_CONSENT:{target:`awaiting_consent`},START_HOOK:{target:`awaiting_hook`,actions:`setHookId`},START_CONTINUATION:{target:`awaiting_continuation`,actions:`setContinuationScope`},COMPLETE:{target:`completed`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_email_verification:{on:{COMPLETE:{target:`authenticated`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_mfa:{on:{COMPLETE_MFA:{target:`authenticated`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_consent:{on:{COMPLETE_CONSENT:{target:`authenticated`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_hook:{on:{COMPLETE_HOOK:{target:`authenticated`,actions:`clearHookId`},START_CONTINUATION:{target:`awaiting_continuation`,actions:`setContinuationScope`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},awaiting_continuation:{on:{COMPLETE_CONTINUATION:{target:`authenticated`,actions:`clearContinuationScope`},FAIL:{target:`failed`,actions:`setFailureReason`},EXPIRE:{target:`expired`}}},completed:{type:`final`},failed:{type:`final`},expired:{type:`final`}}});function aL(e,t={}){return iL.resolveState({value:e,context:t})}function oL(e,t,n={}){let[r]=nL(iL,aL(e,n),t),i={},a=r.context,o=n;return a.userId!==o.userId&&(i.userId=a.userId),a.hookId!==o.hookId&&(i.hookId=a.hookId),a.continuationScope!==o.continuationScope&&(i.continuationScope=a.continuationScope),a.failureReason!==o.failureReason&&(i.failureReason=a.failureReason),{state:r.value,context:i}}function sL(e,t){Object.keys(t).forEach(n=>{let r=t[n];r!=null&&r.length&&e.searchParams.set(n,r)})}function cL(e){try{let t=typeof e==`string`?new URL(e):e,n=`${t.protocol}//${t.host}${t.pathname}`;if(t.search){let e=Array.from(t.searchParams.keys()).map(e=>`${e}=[REDACTED]`).join(`&`);n+=`?${e}`}return t.hash&&(n+=`#[REDACTED]`),n}catch{let t=(typeof e==`string`?e:e.toString()).match(/^([^?#]*)(\?[^#]*)?(#.*)?$/);if(!t)return`[invalid-url]`;let[,n=``,r,i]=t,a=n;if(r){let e=r.substring(1).split(`&`).map(e=>{let[t]=e.split(`=`);return`${t}=[REDACTED]`}).join(`&`);a+=`?${e}`}return i&&(a+=`#[REDACTED]`),a}}var lL=[`sub`,`iss`,`aud`,`exp`,`nbf`,`iat`,`jti`];function uL(e){switch(e){case $r.AuthorizationCode:return A.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN;case $r.ClientCredential:return A.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS;case $r.RefreshToken:return A.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN;case $r.OTP:return A.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN;case $r.Password:return A.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN;case $r.Passwordless:return A.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN;case $r.TokenExchange:return A.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN;default:return A.FAILED_EXCHANGE_CUSTOM_TOKEN}}function dL(e,t,n,r){return{accessToken:{setCustomClaim:(e,n)=>{if(lL.includes(e))throw Error(`Cannot overwrite reserved claim '${e}'`);t[e]=n}},idToken:{setCustomClaim:(e,t)=>{if(lL.includes(e))throw Error(`Cannot overwrite reserved claim '${e}'`);n&&(n[e]=t)}},access:{deny:(t,n)=>{let i=n?`${t} - ${n}`:t;throw M(e,e.var.tenant_id||``,{type:uL(r),description:`Access denied by credentials-exchange hook: ${i}`}),new L(400,{message:`Access denied: ${i}`})}},token:{createServiceToken:async t=>(await NL(e,e.var.tenant_id,t.scope,t.expiresInSeconds,t.customClaims)).access_token}}}async function fL(e,t){let{authParams:n,user:r,client:i,session_id:a,organization:o,permissions:s,impersonatingUser:c,actClient:l,grantType:u}=t,d=(()=>{if(c&&l)return{sub:c.user_id,client_id:l.client_id};if(c)return{sub:c.user_id};if(l)return{sub:l.client_id,client_id:l.client_id}})(),f=t.auth_time,p=n.prompt?.split(` `)??[],h=n.max_age!==void 0||p.includes(`login`)||n.claims?.id_token?.auth_time?.essential===!0;if(f===void 0&&h){if(t.loginSession?.authenticated_at)f=Math.floor(new Date(t.loginSession.authenticated_at).getTime()/1e3);else if(a&&e.var.tenant_id){let t=await e.env.data.sessions.get(e.var.tenant_id,a);t?.authenticated_at&&(f=Math.floor(new Date(t.authenticated_at).getTime()/1e3))}}let g=e.var.tenant_id,_=(await VO(e.env.data.keys,g??``,g?e.env.signingKeyMode:`control-plane`,{purpose:`sign`}))[0];if(!_?.pkcs7||!_.cert)throw new L(500,{message:`No signing key available`});let v=hM(_.pkcs7),y=await NO(_.cert),b=Ea(e.env,e.var.custom_domain),x=n.audience??i.tenant.default_audience??`${b}userinfo`,S=n.claims?.userinfo?Object.keys(n.claims.userinfo):void 0,C=t.customClaims?Object.fromEntries(Object.entries(t.customClaims).filter(([e])=>e!==`act`)):void 0,w={aud:x,scope:n.scope||``,sub:r?.user_id||n.client_id,iss:b,tenant_id:e.var.tenant_id,sid:a,act:d,org_id:o?o.id:void 0,requested_userinfo_claims:S,org_name:o&&i.tenant.allow_organization_name_in_authentication_api?o.name.toLowerCase():void 0,permissions:s,...C};if(t.customClaims){for(let e of lL)if(e in t.customClaims)throw Error(`Cannot overwrite reserved claim '${e}'`)}let T=n.scope?.split(` `)||[],ee=T.includes(`openid`),te=(n.response_type??``).trim()===nn.ID_TOKEN,ne=i.auth0_conformant!==!1||te,re=r&&ee?{aud:n.client_id,sub:r.user_id,iss:b,sid:a,nonce:n.nonce,...f===void 0?{}:{auth_time:f},...n.acr_values?{acr:n.acr_values.split(` `)[0]}:{},...ne?xP(jA(r,b),T):{},...n.claims?.id_token?SP(jA(r,b),Object.keys(n.claims.id_token)):{},...te&&n.claims?.userinfo?SP(jA(r,b),Object.keys(n.claims.userinfo)):{},act:d,org_id:o?.id,org_name:o?.name.toLowerCase()}:void 0,ie=Ma({loginSession:t.loginSession,authConnection:t.authConnection,ctxConnection:e.var.connection,user:r}),ae=await Na(e,e.var.tenant_id,ie,r);e.env.hooks?.onExecuteCredentialsExchange&&await e.env.hooks.onExecuteCredentialsExchange({ctx:e,client:i,user:r,request:{ip:e.var.ip||``,user_agent:e.var.useragent||``,method:e.req.method,url:e.req.url},scope:n.scope||``,grant_type:u??``,organization:o,connection:ae||(ie?{id:ie,name:ie,strategy:r?.provider||`auth0`}:void 0)},dL(e,w,re,u));{let{hooks:t}=await e.env.data.hooks.list(e.var.tenant_id),a=t.filter(e=>e.trigger_id===`credentials-exchange`&&e.enabled&&XN(e)),s=dL(e,w,re,u);if(r){for(let t of a)if(XN(t))try{await Sde(e,t.template_id,r,s)}catch(e){if(e instanceof m)throw e;console.warn(`[credentials-exchange] Failed to execute template hook: ${t.template_id}`,e)}}let c=dL(e,w,re,u),l=await gde(e,t,{ctx:e,client:i,user:r,request:{ip:e.var.ip||``,user_agent:e.var.useragent||``,method:e.req?.method||``,url:e.req?.url||``},scope:n.scope||``,grant_type:u??``,organization:o,connection:ae||(ie?{id:ie,name:ie,strategy:r?.provider||`auth0`}:void 0)},c);l&&e.set(`action_execution_id`,l)}let oe=c?3600:t.token_lifetime??86400,se={includeIssuedTimestamp:!0,expiresInSeconds:oe,headers:{kid:_.kid}},ce=await YO(y,v,w,se);if(re){let e=(n.response_type??``).split(` `);t.code&&e.includes(`code`)&&(re.c_hash=await gM(t.code,y)),e.includes(`id_token`)&&e.includes(`token`)&&(re.at_hash=await gM(ce,y))}let le=re?await YO(y,v,re,se):void 0;return{access_token:ce,refresh_token:t.refresh_token,id_token:le,token_type:`Bearer`,expires_in:oe}}async function pL(e,t){return{code:(await e.env.data.codes.create(t.client.tenant.id,{code_id:qa(32),user_id:t.user.user_id,code_type:`authorization_code`,login_id:t.login_id,expires_at:new Date(Date.now()+300*1e3).toISOString(),code_challenge:t.authParams.code_challenge,code_challenge_method:t.authParams.code_challenge_method,redirect_uri:t.authParams.redirect_uri,state:t.authParams.state,nonce:t.authParams.nonce})).code_id,state:t.authParams.state}}function mL(e){if(e)return new Date(Date.now()+e*60*60*1e3).toISOString()}async function hL(e,t){let{client:n,scope:r,login_id:i}=t,a=Ea(e.env,e.var.custom_domain),o=t.audience??n.tenant.default_audience??`${a}userinfo`,s=mL(n.tenant.idle_session_lifetime),c=mL(n.tenant.session_lifetime),l=mM(),{lookup:u,secret:d}=oM(),f=await sM(d),p=n.refresh_token?.rotation_type===`rotating`;return{row:await e.env.data.refreshTokens.create(n.tenant.id,{id:l,login_id:i,client_id:n.client_id,idle_expires_at:s,expires_at:c,user_id:t.user.user_id,device:{last_ip:e.var.ip,initial_ip:e.var.ip,last_user_agent:e.var.useragent||``,initial_user_agent:e.var.useragent||``,initial_asn:``,last_asn:``},resource_servers:[{audience:o,scopes:r}],rotating:p,token_lookup:u,token_hash:f,family_id:l}),wireToken:cM(u,d)}}async function gL(e,{user:t,client:n,loginSession:r}){let i=mL(n.tenant.idle_session_lifetime),a=mL(n.tenant.session_lifetime);return await e.env.data.sessions.create(n.tenant.id,{id:mM(),user_id:t.user_id,login_session_id:r.id,idle_expires_at:i,expires_at:a,device:{last_ip:e.var.ip||``,initial_ip:e.var.ip||``,last_user_agent:e.var.useragent||``,initial_user_agent:e.var.useragent||``,initial_asn:``,last_asn:``},clients:[n.client_id]})}async function _L(e,{user:t,client:n,loginSession:r,existingSessionId:i,authConnection:a,authStrategy:o}){let s=await e.env.data.loginSessions.get(n.tenant.id,r.id);if(!s)throw new m(400,{message:`Login session ${r.id} not found`});let c=s.state||k.PENDING;if(c===k.FAILED)throw new L(400,{error:`access_denied`,error_description:s.failure_reason||`Cannot authenticate login session in failed state`});if(c===k.COMPLETED)throw new L(400,{error:`access_denied`,error_description:`Login session has already been completed`});if(c===k.AUTHENTICATED){if(s.session_id)return s.session_id;throw new m(500,{message:`Login session is authenticated but has no session_id`})}let l,u;if(i){let a=await e.env.data.sessions.get(n.tenant.id,i);if(!a||a.revoked_at){let i=await gL(e,{user:t,client:n,loginSession:r});l=i.id,u=i.authenticated_at}else l=i,u=a.authenticated_at,a.clients.includes(n.client_id)||await e.env.data.sessions.update(n.tenant.id,i,{clients:[...a.clients,n.client_id]})}else{let i=await gL(e,{user:t,client:n,loginSession:r});l=i.id,u=i.authenticated_at}let{state:d}=oL(c===k.EXPIRED?k.PENDING:c,{type:rL.AUTHENTICATE,userId:t.user_id}),f=Ma({authConnection:a,ctxConnection:e.var.connection});return await e.env.data.loginSessions.update(n.tenant.id,r.id,{session_id:l,state:d,user_id:t.user_id,authenticated_at:u,...f?{auth_connection:f}:{},...o?{auth_strategy:o}:{},...c===k.EXPIRED?{expires_at:new Date(Date.now()+Bj*1e3).toISOString()}:{}}),l}async function vL(e,t){let{user:n,client:r,loginSession:i,authStrategy:a,authConnection:o}=t;await _L(e,{user:n,client:r,loginSession:i,existingSessionId:t.existingSessionId,authConnection:o,authStrategy:a});let s=`/authorize/resume?state=${encodeURIComponent(i.id)}`,c=s;if(i.authorization_url)try{let t=new URL(i.authorization_url),n=e.var.host||``;t.host&&t.host!==n&&(c=`${t.origin}${s}`)}catch{}return new Response(null,{status:302,headers:{location:c}})}async function yL(e,t,n,r){let i=await e.env.data.loginSessions.get(t,n.id);if(!i){console.warn(`Login session ${n.id} not found when trying to mark as failed`);return}let a=i.state||k.PENDING,{state:o,context:s}=oL(a,{type:rL.FAIL,reason:r});o!==a&&await e.env.data.loginSessions.update(t,n.id,{state:o,failure_reason:s.failureReason})}async function bL(e,t,n,r){let i=await e.env.data.loginSessions.get(t,n.id);if(!i){console.warn(`Login session ${n.id} not found when trying to start hook`);return}let a=i.state||k.PENDING,{state:o,context:s}=oL(a,{type:rL.START_HOOK,hookId:r});o!==a&&await e.env.data.loginSessions.update(t,n.id,{state:o,state_data:s.hookId?JSON.stringify({hookId:s.hookId}):void 0})}async function xL(e,t,n){let r=await e.env.data.loginSessions.get(t,n.id);if(!r){console.warn(`Login session ${n.id} not found when trying to complete hook`);return}let i=r.state||k.PENDING,{state:a}=oL(i,{type:rL.COMPLETE_HOOK});a!==i&&await e.env.data.loginSessions.update(t,n.id,{state:a,state_data:void 0})}async function SL(e,t,n,r,i){let a=i??await e.env.data.loginSessions.get(t,n.id);if(!a){console.warn(`Login session ${n.id} not found when trying to mark as completed`);return}let o=a.state||k.PENDING,{state:s}=oL(o,{type:rL.COMPLETE});s!==o&&await e.env.data.loginSessions.update(t,n.id,{state:s,...r?{auth_connection:r}:{}})}async function CL(e,t,n,r,i){let a=await e.env.data.loginSessions.get(t,n.id);if(!a){console.warn(`Login session ${n.id} not found when trying to start continuation`);return}let o=a.state||k.PENDING,{state:s}=oL(o,{type:rL.START_CONTINUATION,scope:r});if(s!==o){let o={};if(a.state_data)try{o=JSON.parse(a.state_data)}catch{}await e.env.data.loginSessions.update(t,n.id,{state:s,state_data:JSON.stringify({...o,continuationScope:r,continuationReturnUrl:i})})}else console.warn(`Failed to start continuation for login session ${n.id}: cannot transition from ${o} to AWAITING_CONTINUATION. Scope: ${JSON.stringify(r)}, Return URL: ${cL(i)}`)}async function wL(e,t,n){let r=await e.env.data.loginSessions.get(t,n.id);if(!r){console.warn(`Login session ${n.id} not found when trying to complete continuation`);return}let i,a={};if(r.state_data)try{let e=JSON.parse(r.state_data);i=e.continuationReturnUrl;let{continuationScope:t,continuationReturnUrl:n,...o}=e;a=o}catch{}let o=r.state||k.PENDING,{state:s}=oL(o,{type:rL.COMPLETE_CONTINUATION});return s===o?console.warn(`completeLoginSessionContinuation: State transition from ${o} with COMPLETE_CONTINUATION was invalid or no-op`):await e.env.data.loginSessions.update(t,n.id,{state:s,state_data:Object.keys(a).length>0?JSON.stringify(a):void 0}),i}function TL(e){if(!e.state_data)return null;try{return JSON.parse(e.state_data).continuationScope||null}catch{return null}}function EL(e,t){if(e.state!==k.AWAITING_CONTINUATION)return!1;let n=TL(e);return n?n.includes(t):!1}async function DL(e,t){let{authParams:n,client:r,ticketAuth:i}=t,{user:a}=t,o=n.response_type||nn.CODE,s=n.response_mode||rn.QUERY;if(i){if(!t.loginSession)throw new L(500,{message:`Login session not found for ticket auth.`});a&&!t.skipHooks&&(t.authStrategy&&a.app_metadata?.strategy!==t.authStrategy.strategy&&(a.app_metadata={...a.app_metadata,strategy:t.authStrategy.strategy},await e.env.data.users.update(r.tenant.id,a.user_id,{app_metadata:{...a.app_metadata||{},strategy:t.authStrategy.strategy}})),await dP(e,e.env.data,r.tenant.id,a,t.loginSession,{client:r,authParams:n,authStrategy:t.authStrategy,authConnection:t.authConnection}));let i=kse(),o=qa(12),s=await e.env.data.codes.create(r.tenant.id,{code_id:qa(32),code_type:`ticket`,login_id:t.loginSession.id,expires_at:new Date(Date.now()+Uoe).toISOString(),code_verifier:[o,i].join(`|`),redirect_uri:n.redirect_uri,state:n.state,nonce:n.nonce});return e.json({login_ticket:s.code_id,co_verifier:i,co_id:o})}let c=t.refreshToken,l;if(!t.loginSession)throw new L(500,{message:`loginSession must be provided for front-channel auth responses.`});let u=await e.env.data.loginSessions.get(r.tenant.id,t.loginSession.id);if(!u)throw new L(500,{message:`Login session not found.`});let d=u.state||k.PENDING;if(d===k.COMPLETED)throw new L(400,{error:`invalid_request`,error_description:`Login session has already been completed`});if(d===k.FAILED)throw new L(400,{error:`access_denied`,error_description:`Login session failed: ${u.failure_reason||`unknown reason`}`});if(d===k.PENDING||d===k.EXPIRED){l=await _L(e,{user:a,client:r,loginSession:t.loginSession,existingSessionId:t.existingSessionIdToLink,authConnection:t.authConnection,authStrategy:t.authStrategy});let n=await e.env.data.loginSessions.get(r.tenant.id,t.loginSession.id);n&&(u=n)}else if(l=u.session_id,!l)throw new L(500,{message:`Login session in ${d} state but has no session_id`});if(t.loginSession&&a){let n=u.state||k.PENDING,i={};if(u.state_data)try{i=JSON.parse(u.state_data)}catch{console.error(`Failed to parse state_data for login session`,u.id)}if(n===k.AWAITING_MFA){let n=`/u2/mfa/login-options`;if(i.authenticationMethodId){let t=(await e.env.data.authenticationMethods.list(r.tenant.id,a.user_id)).find(e=>e.id===i.authenticationMethodId);t?.confirmed&&t.type===`phone`?n=`/u2/mfa/phone-challenge`:t?.confirmed&&t.type===`totp`?n=`/u2/mfa/totp-challenge`:t?.confirmed&&(t.type===`passkey`||t.type===`webauthn-roaming`||t.type===`webauthn-platform`)?n=`/u2/passkey/challenge`:t?.type===`totp`?n=`/u2/mfa/totp-enrollment`:t?.type===`phone`&&(n=`/u2/mfa/phone-enrollment`)}return new Response(null,{status:302,headers:{location:`${n}?state=${encodeURIComponent(t.loginSession.id)}`}})}if(n===k.AUTHENTICATED&&!i.mfa_verified){let{checkMfaRequired:n,sendMfaOtp:o}=await Promise.resolve().then(()=>$6),s=await n(e,r.tenant.id,a.user_id);if(s.required){let{state:n}=oL(k.AUTHENTICATED,{type:rL.REQUIRE_MFA});if(s.enrolled){if(s.allEnrollments.length>1)return await e.env.data.loginSessions.update(r.tenant.id,t.loginSession.id,{state:n}),new Response(null,{status:302,headers:{location:`/u2/mfa/login-options?state=${encodeURIComponent(t.loginSession.id)}`}});if(await e.env.data.loginSessions.update(r.tenant.id,t.loginSession.id,{state:n,state_data:JSON.stringify({...i,authenticationMethodId:s.enrollment.id})}),s.enrollment.type===`totp`)return new Response(null,{status:302,headers:{location:`/u2/mfa/totp-challenge?state=${encodeURIComponent(t.loginSession.id)}`}});if(s.enrollment.type===`passkey`||s.enrollment.type===`webauthn-roaming`||s.enrollment.type===`webauthn-platform`)return new Response(null,{status:302,headers:{location:`/u2/passkey/challenge?state=${encodeURIComponent(t.loginSession.id)}`}});if(!s.enrollment.phone_number)throw Error(`MFA enrollment is missing phone_number`);return await o(e,r,t.loginSession,s.enrollment.phone_number),new Response(null,{status:302,headers:{location:`/u2/mfa/phone-challenge?state=${encodeURIComponent(t.loginSession.id)}`}})}else{let i=r.tenant,a=i.mfa?.factors?.otp===!0,o=i.mfa?.factors?.sms===!0,s=i.mfa?.factors?.webauthn_roaming===!0||i.mfa?.factors?.webauthn_platform===!0;return await e.env.data.loginSessions.update(r.tenant.id,t.loginSession.id,{state:n}),+!!a+ +!!o+ +!!s>1?new Response(null,{status:302,headers:{location:`/u2/mfa/login-options?state=${encodeURIComponent(t.loginSession.id)}`}}):a?new Response(null,{status:302,headers:{location:`/u2/mfa/totp-enrollment?state=${encodeURIComponent(t.loginSession.id)}`}}):s?new Response(null,{status:302,headers:{location:`/u2/passkey/enrollment?state=${encodeURIComponent(t.loginSession.id)}`}}):new Response(null,{status:302,headers:{location:`/u2/mfa/phone-enrollment?state=${encodeURIComponent(t.loginSession.id)}`}})}}}if(l&&yP(u.state_data)){let n=new Headers;return CM(r.tenant.id,l,e.var.host||``).forEach(e=>n.append(`set-cookie`,e)),n.set(`location`,`/u2/connect/start?state=${encodeURIComponent(t.loginSession.id)}`),new Response(null,{status:302,headers:n})}}if(t.loginSession&&a&&!r.is_first_party&&s!==rn.WEB_MESSAGE){let n=u.state||k.PENDING;if(n===k.AWAITING_CONSENT)return new Response(null,{status:302,headers:{location:`/u2/consent?state=${encodeURIComponent(t.loginSession.id)}`}});if(n===k.AUTHENTICATED){let n=u.authParams.scope?.split(` `).filter(Boolean)??[];if((await vP(e,{tenantId:r.tenant.id,userId:a.user_id,clientId:r.client_id,requestedScopes:n})).length>0){let{state:n}=oL(k.AUTHENTICATED,{type:rL.REQUIRE_CONSENT});return await e.env.data.loginSessions.update(r.tenant.id,t.loginSession.id,{state:n}),new Response(null,{status:302,headers:{location:`/u2/consent?state=${encodeURIComponent(t.loginSession.id)}`}})}}}if(t.loginSession&&a&&s!==rn.WEB_MESSAGE){let n=u.state||k.PENDING,i={};if(u.state_data)try{i=JSON.parse(u.state_data)}catch{}if(n===k.AUTHENTICATED&&!i.passkey_nudge_completed){let{checkPasskeyNudgeRequired:n}=await Promise.resolve().then(()=>require("./passkey-enrollment-CB7HjMH_.js"));if((await n(e,r.tenant.id,a.user_id,u.auth_connection)).show)return await CL(e,r.tenant.id,u,[`passkey-enrollment`],`/u/continue?state=${encodeURIComponent(t.loginSession.id)}`),new Response(null,{status:302,headers:{location:`/u2/passkey/enrollment-nudge?state=${encodeURIComponent(t.loginSession.id)}`}})}}let f=o.split(` `).includes(`code`);if(!c&&n.scope?.split(` `).includes(`offline_access`)&&o!==nn.TOKEN&&!f&&!t.impersonatingUser&&(c=(await hL(e,{user:a,client:r,login_id:t.loginSession?.id||``,scope:n.scope,audience:n.audience})).wireToken),s===rn.SAML_POST){if(!l)throw new m(500,{message:`Session ID not available for SAML response`});return ade(e,t.client,t.authParams,a,l)}let p=await OL(e,{authParams:n,user:a,client:r,session_id:l,refresh_token:c,authStrategy:t.authStrategy,authConnection:t.authConnection,loginSession:u,loginSessionIsCurrent:!0,responseType:o,skipHooks:t.skipHooks,organization:t.organization,impersonatingUser:t.impersonatingUser});if(p instanceof Response)return p;if(!n.redirect_uri)throw new L(400,{message:s===rn.WEB_MESSAGE?`Redirect URI not allowed for WEB_MESSAGE response mode.`:`Redirect uri not found for this response mode.`});let h=new Headers;l?CM(r.tenant.id,l,e.var.host||``).forEach(e=>{h.append(`set-cookie`,e)}):s===rn.WEB_MESSAGE&&console.warn(`Session ID not available for WEB_MESSAGE, cookie will not be set.`);let g=o.split(` `),_=g.includes(`code`),v=g.includes(`id_token`),y=g.includes(`token`),b={},x=`code`in p&&typeof p.code==`string`,S=`access_token`in p&&typeof p.access_token==`string`;if(x&&_&&(b.code=p.code),S&&(y&&(b.access_token=p.access_token,b.token_type=p.token_type,b.expires_in=p.expires_in.toString()),v&&p.id_token&&(b.id_token=p.id_token)),!x&&!S)throw new L(500,{message:`Invalid token response for front-channel flow.`});let C=(`state`in p&&typeof p.state==`string`?p.state:void 0)??n.state;if(C&&(b.state=C),(y||v)&&n.scope&&(b.scope=n.scope),s===rn.WEB_MESSAGE){let t=new URL(n.redirect_uri);return fP(e,`${t.protocol}//${t.host}`,JSON.stringify(b),h)}if(s===rn.FORM_POST)return mP(n.redirect_uri,b,h);let w=v||y,T=new URL(n.redirect_uri);if(w)T.hash=new URLSearchParams(b).toString();else for(let[e,t]of Object.entries(b))T.searchParams.set(e,t);return h.set(`location`,T.toString()),new Response(`Redirecting`,{status:302,headers:h})}async function OL(e,t){let{user:n}=t,r=t.responseType||nn.TOKEN;if(n&&t.organization&&!(await e.env.data.userOrganizations.list(t.client.tenant.id,{q:`user_id:${n.user_id}`,per_page:1e3})).userOrganizations.some(e=>e.organization_id===t.organization.id))throw new L(403,{error:`access_denied`,error_description:`User is not a member of the specified organization`});let i=t.authParams.scope||``,a=[],o,s=Ea(e.env,e.var.custom_domain),c=t.authParams.audience??t.client.tenant.default_audience??`${s}userinfo`;if(c)try{let r;if(t.grantType===$r.ClientCredential||!n&&!t.user)r=await gP(e,{grantType:$r.ClientCredential,tenantId:t.client.tenant.id,clientId:t.client.client_id,audience:c,requestedScopes:t.authParams.scope?.split(` `)||[],organizationId:t.organization?.id});else{let i=n?.user_id||t.user?.user_id;if(!i)throw new L(400,{error:`invalid_request`,error_description:`User ID is required for user-based grants`});r=await gP(e,{grantType:t.grantType,tenantId:t.client.tenant.id,userId:i,clientId:t.client.client_id,audience:c,requestedScopes:t.authParams.scope?.split(` `)||[],organizationId:t.organization?.id})}i=r.scopes.join(` `),a=r.permissions,o=t.client.app_type===`spa`&&r.token_lifetime_for_web?r.token_lifetime_for_web:r.token_lifetime}catch(e){if(e instanceof m)throw e}let l={...t.authParams,scope:i};if(t.loginSession&&n&&!t.skipHooks){t.authStrategy&&n.app_metadata?.strategy!==t.authStrategy.strategy&&(n.app_metadata={...n.app_metadata,strategy:t.authStrategy.strategy},await e.env.data.users.update(t.client.tenant.id,n.user_id,{app_metadata:{...n.app_metadata||{},strategy:t.authStrategy.strategy}}));let r=await dP(e,e.env.data,t.client.tenant.id,n,t.loginSession,{client:t.client,authParams:l,authStrategy:t.authStrategy,authConnection:t.authConnection});if(r instanceof Response)return r;n=r}let u=Ma({loginSession:t.loginSession,authConnection:t.authConnection,ctxConnection:e.var.connection}),d=r.split(` `),f=d.includes(`code`),p=d.includes(`id_token`)||d.includes(`token`),h=f&&p;if(r===nn.CODE){if(!n||!t.loginSession)throw new L(500,{message:`User and loginSession is required for code flow`});let r=await pL(e,{user:n,client:t.client,authParams:l,login_id:t.loginSession.id});return await SL(e,t.client.tenant.id,t.loginSession,u,t.loginSessionIsCurrent?t.loginSession:void 0),r}else if(h){if(!n||!t.loginSession)throw new L(500,{message:`User and loginSession is required for hybrid flow`});let r=await pL(e,{user:n,client:t.client,authParams:l,login_id:t.loginSession.id}),i=await fL(e,{...t,user:n,authParams:l,permissions:a,token_lifetime:o,code:r.code});return await SL(e,t.client.tenant.id,t.loginSession,u,t.loginSessionIsCurrent?t.loginSession:void 0),{...i,code:r.code,state:r.state}}else{let r=await fL(e,{...t,user:n,authParams:l,permissions:a,token_lifetime:o});return t.loginSession&&await SL(e,t.client.tenant.id,t.loginSession,u,t.loginSessionIsCurrent?t.loginSession:void 0),r}}var kL=`auth-service`,AL=3600,jL=[`sub`,`iss`,`aud`,`exp`,`nbf`,`iat`,`jti`,`scope`,`azp`,`tenant_id`];async function ML(e){let{tenants:t,keys:n,tenantId:r,scope:i,issuer:a}=e,o=await t.get(r);if(!o)throw Error(`Tenant not found: ${r}`);let s=o.audience;if(!s)throw Error(`Cannot mint service token: tenant "${r}" has no default audience`);if(e.customClaims){for(let t of jL)if(t in e.customClaims)throw Error(`Cannot overwrite reserved claim '${t}'`)}let c=(await VO(n,r,e.signingKeyMode,{purpose:`sign`}))[0];if(!c?.pkcs7||!c.cert)throw Error(`No signing key available`);let l=hM(c.pkcs7),u=await NO(c.cert),d=e.expiresInSeconds??AL;return{access_token:await YO(u,l,{aud:s,scope:i,sub:kL,azp:kL,iss:a,tenant_id:r,...e.customClaims},{includeIssuedTimestamp:!0,expiresInSeconds:d,headers:{kid:c.kid}}),token_type:`Bearer`,expires_in:d}}async function NL(e,t,n,r,i){let a=await e.env.data.tenants.get(t);if(!a)throw Error(`Tenant not found: ${t}`);let o=await fL(e,{client:{client_id:kL,tenant:a,auth0_conformant:!0},authParams:{client_id:kL,response_type:nn.TOKEN,scope:n,audience:a.audience},customClaims:i});return{access_token:o.access_token,token_type:o.token_type,expires_in:r||AL}}function PL(e){return async(t,n=`webhook`)=>(await ML({tenants:e.tenants,keys:e.keys,tenantId:t,scope:n,issuer:e.issuer,signingKeyMode:e.signingKeyMode})).access_token}async function FL(e,t){let n=e.env.data.multiTenancyConfig;return n?.resolveControlPlane?(await n.resolveControlPlane({tenant_id:t}))?.tenantId:n?.controlPlaneTenantId}async function IL(e,t,n,r){let{clientId:i,scope:a}=n;if(!await e.env.data.tenants.get(t))throw Error(`Tenant not found: ${t}`);let o=t,s=await e.env.data.clients.get(t,i);if(!s&&r?.allowControlPlaneFallback){let n=await FL(e,t);if(n&&n!==t){let t=await e.env.data.clients.get(n,i);t&&(s=t,o=n)}}if(!s)throw Error(`Client not found: ${i}`);let c=(await e.env.data.clientGrants.list(o,{q:`client_id:"${i}"`})).client_grants;if(c.length===0)throw Error(`Client has no client_grant: ${i}`);let l,u;if(n.audience){if(u=c.find(e=>e.audience===n.audience),!u)throw Error(`Client ${i} has no client_grant for audience: ${n.audience}`);l=n.audience}else if(c.length===1)u=c[0],l=u.audience;else throw Error(`audience is required: client ${i} has multiple client_grants`);let d=u.scope||[],f=a.split(/\s+/).filter(Boolean),p=f.filter(e=>!d.includes(e));if(p.length>0)throw Error(`access_denied: Client is not authorized for scope(s): ${p.join(`, `)}`);if(n.customClaims){for(let e of jL)if(e in n.customClaims)throw Error(`Cannot overwrite reserved claim '${e}'`)}let m=(await VO(e.env.data.keys,o,e.env.signingKeyMode,{purpose:`sign`}))[0];if(!m?.pkcs7||!m.cert)throw Error(`No signing key available`);let h=hM(m.pkcs7),g=await NO(m.cert),_=n.expiresInSeconds??AL;return{access_token:await YO(g,h,{...n.customClaims,aud:l,scope:f.join(` `),sub:i,azp:i,iss:Ea(e.env),tenant_id:o,gty:`client_credentials`},{includeIssuedTimestamp:!0,expiresInSeconds:_,headers:{kid:m.kid}}),token_type:`Bearer`,expires_in:_}}function LL(e){let t=new Set,n=e;for(;n&&n!==Object.prototype;){for(let e of Object.getOwnPropertyNames(n))e!==`constructor`&&t.add(e);n=Object.getPrototypeOf(n)}return Array.from(t)}function RL(e){let t=Reflect.get(e,`webSocket`);return e.status===101||t!=null}function zL(e){return RL(e)?e:new Response(e.body,e)}function BL(e){e.res=zL(e.res)}function VL(e,t,n){let r=e.get(`serverTiming`);r?r.push({name:t,dur:n}):e.set(`serverTiming`,[{name:t,dur:n}])}function HL(e,t){return e?t.split(`,`).map(e=>e.trim()).filter(Boolean).includes(e):!1}var UL=async(e,t)=>{await t();let n=e.env.SERVER_TIMING??`off`;if(n===`off`)return;let r=e.get(`serverTiming`);if(!r||r.length===0)return;let i=r.map(e=>`${e.name};dur=${e.dur.toFixed(2)}`).join(`, `);if((n===`log`||n===`both`)&&console.log(JSON.stringify({msg:`server-timing`,method:e.req.method,path:e.req.path,ip:e.get(`ip`),tenant_id:e.get(`tenant_id`),timing:i})),n===`client`||n===`both`){if(e.res.status===101||`webSocket`in e.res)return;let t=e.env.SERVER_TIMING_IPS;if(!t||HL(e.get(`ip`),t)){BL(e);let t=e.res.headers.get(`Server-Timing`);e.res.headers.set(`Server-Timing`,t?`${t}, ${i}`:i)}}};function WL(e){if(!e)return`unknown`;let t=e.indexOf(`:`);return t===-1?e:e.slice(0,t)}function GL(e,t){let n=async(t,n)=>{let r=performance.now();try{return await n()}finally{VL(e,t,performance.now()-r)}};return{get(e){return n(`cache-get:${WL(e)}`,()=>t.get(e))},set(e,r,i){return n(`cache-set:${WL(e)}`,()=>t.set(e,r,i))},delete(e){return n(`cache-delete:${WL(e)}`,()=>t.delete(e))},deleteByPrefix(e){return n(`cache-deleteByPrefix:${WL(e)}`,()=>t.deleteByPrefix(e))},clear(){return n(`cache-clear`,()=>t.clear())}}}function KL(e,t){let n={};for(let[r,i]of Object.entries(t)){if(i==null)continue;if(typeof i==`function`){n[r]=i;continue}let t={};for(let n of LL(i)){let a=i[n];if(typeof a==`function`){let o=a.bind(i);t[n]=async(...t)=>{let i=performance.now();try{let a=await o(...t);return VL(e,`${r}-${n}`,performance.now()-i),a}catch(t){throw VL(e,`${r}-${n}-error`,performance.now()-i),t}}}else t[n]=a}n[r]=t}return n}async function qL(e,t,n){n?.user&&(n={...n,user:PN(n.user)});let r=e.env.webhookInvoker,i=async(t=`webhook`)=>(await NL(e,n.tenant_id,t)).access_token,a,o;try{let s=performance.now(),c=r?await r({hook:t,data:n,tenant_id:n.tenant_id,createServiceToken:i}):await fetch(t.url,{method:`POST`,headers:{Authorization:`Bearer ${await i()}`,"Content-Type":`application/json`},body:JSON.stringify(n)}),l=performance.now()-s;if(VL(e,`webhook-${t.hook_id}`,l),o=c.status,c.ok)await M(e,n.tenant_id,{type:A.SUCCESS_HOOK,description:`Invoked hook ${t.hook_id} - ${c.status}`,userId:n.user?.user_id,details:{trigger_id:n.trigger_id,hook_id:t.hook_id,hook_url:t.url,user_id:n.user?.user_id,user_name:n.user?.name||n.user?.email,connection:n.user?.connection,duration_ms:Math.round(l),response:{statusCode:o}},connection:n.user?.connection});else{try{a=await c.text()}catch{}let r=`Failed to invoke hook ${t.hook_id} - ${c.status} ${c.statusText}`;console.error(r,{hook_url:t.url,body:a?.substring(0,512)}),await M(e,n.tenant_id,{type:A.FAILED_HOOK,description:r,userId:n.user?.user_id,details:{trigger_id:n.trigger_id,hook_id:t.hook_id,hook_url:t.url,user_id:n.user?.user_id,user_name:n.user?.name||n.user?.email,connection:n.user?.connection,response:{statusCode:o,body:a?.substring(0,512)}},connection:n.user?.connection,waitForCompletion:!0})}return{ok:c.ok,status:o,body:a}}catch(r){let i=`Failed to invoke hook ${t.hook_id} - ${r instanceof Error?r.message:`Unknown error`}`;return console.error(i,r),await M(e,n.tenant_id,{type:A.FAILED_HOOK,description:i,userId:n.user?.user_id,details:{trigger_id:n.trigger_id,hook_id:t.hook_id,hook_url:t.url,user_id:n.user?.user_id,user_name:n.user?.name||n.user?.email,connection:n.user?.connection,error:r instanceof Error?r.message:String(r)},connection:n.user?.connection,waitForCompletion:!0}),{ok:!1,error:r instanceof Error?r.message:String(r)}}}async function JL(e,t,n){for(let r of t.filter(e=>`url`in e))await qL(e,r,n)}function YL(e){return async(t,n)=>{let{hooks:r}=await e.env.data.hooks.list(t);await JL(e,r.filter(e=>e.trigger_id===`pre-user-registration`),{tenant_id:t,email:n,trigger_id:`pre-user-registration`})}}async function XL(e,t){let{hooks:n}=await e.env.data.hooks.list(t);return n.find(e=>e.trigger_id===`validate-registration-username`&&`url`in e&&e.enabled)||null}function ZL(e){return async(t,n)=>{let{hooks:r}=await e.env.data.hooks.list(t);return await JL(e,r.filter(e=>e.trigger_id===`pre-user-deletion`),{tenant_id:t,user:n,trigger_id:`pre-user-deletion`}),n}}var QL=Ua({hooks:f.z.array(Zn)}),$L=N({route:(0,f.createRoute)({tags:[`hooks`],method:`get`,path:`/`,request:{query:Va,headers:f.z.object({"tenant-id":f.z.string().optional()})},security:[{Bearer:[`read:hooks`]}],responses:{200:{content:{"application/json":{schema:f.z.union([f.z.array(Zn),QL])}},description:`List of hooks`}}}),handler:async e=>{let t=P(e),{page:n,per_page:r,include_totals:i,sort:a,q:o}=e.req.valid(`query`),s=await e.env.data.hooks.list(t,{page:n,per_page:r,include_totals:i,sort:Ha(a),q:o});return e.json(Wa(i,s,`hooks`))}}),eR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`post`,path:`/`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:Kn}}}},security:[{Bearer:[`create:hooks`]}],responses:{201:{content:{"application/json":{schema:Zn}},description:`The created hook`}}}),handler:async e=>{let t=P(e),n=e.req.valid(`json`),r={...n,hook_id:n.hook_id||Ya()},i=await e.env.data.hooks.create(t,r);return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Create a Hook`,targetType:`hook`,targetId:i.hook_id,afterState:i}),e.json(i,{status:201})}}),tR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`patch`,path:`/{hook_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({hook_id:f.z.string()}),body:{content:{"application/json":{schema:f.z.union(Kn.options.map(e=>e.omit({hook_id:!0}).partial()))}}}},security:[{Bearer:[`update:hooks`]}],responses:{200:{content:{"application/json":{schema:Zn}},description:`The updated hook`},404:{description:`Hook not found`}}}),handler:async e=>{let t=P(e),{hook_id:n}=e.req.valid(`param`),r=e.req.valid(`json`);await e.env.data.hooks.update(t,n,r);let i=await e.env.data.hooks.get(t,n);if(!i)throw new m(404,{message:`Hook not found`});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Update a Hook`,targetType:`hook`,targetId:n,afterState:i}),e.json(i)}}),nR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`get`,path:`/{hook_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({hook_id:f.z.string()})},security:[{Bearer:[`read:hooks`]}],responses:{200:{content:{"application/json":{schema:Zn}},description:`A hook`},404:{description:`Hook not found`}}}),handler:async e=>{let t=P(e),{hook_id:n}=e.req.valid(`param`),r=await e.env.data.hooks.get(t,n);if(!r)throw new m(404,{message:`Hook not found`});return e.json(r)}}),rR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`delete`,path:`/{hook_id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({hook_id:f.z.string()})},security:[{Bearer:[`delete:hooks`]}],responses:{200:{description:`A hook`}}}),handler:async e=>{let t=P(e),{hook_id:n}=e.req.valid(`param`);if(!await e.env.data.hooks.remove(t,n))throw new m(404,{message:`Hook not found`});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Delete a Hook`,targetType:`hook`,targetId:n}),e.text(`OK`)}}),iR=N({route:(0,f.createRoute)({tags:[`hooks`],method:`post`,path:`/{hook_id}/try`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({hook_id:f.z.string()}),body:{content:{"application/json":{schema:f.z.object({user_id:f.z.string()})}}}},security:[{Bearer:[`update:hooks`]}],responses:{200:{content:{"application/json":{schema:f.z.object({ok:f.z.boolean(),status:f.z.number().optional(),body:f.z.string().optional(),error:f.z.string().optional()})}},description:`Invokes the webhook with the given user and returns the upstream response. authhero extension; not available in Auth0.`},400:{description:`Hook is not a web hook`},404:{description:`Hook or user not found`}}}),handler:async e=>{let t=P(e),{hook_id:n}=e.req.valid(`param`),{user_id:r}=e.req.valid(`json`),i=await e.env.data.hooks.get(t,n);if(!i)throw new m(404,{message:`Hook not found`});if(!(`url`in i))throw new m(400,{message:`Only web hooks can be tried`});let a=await e.env.data.users.get(t,r);if(!a)throw new m(404,{message:`User not found`});let o=await qL(e,i,{tenant_id:t,user:a,trigger_id:i.trigger_id});return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Try a Hook (${n})`,targetType:`hook`,targetId:n}),e.json(o)}}),aR=new f.OpenAPIHono().openapiRoutes([$L,eR,tR,nR,rR,iR]),oR=$n.extend({deploymentStatus:f.z.enum([`deployed`,`failed`,`not_required`]),deploymentError:f.z.string().optional()}),sR=N({route:(0,f.createRoute)({tags:[`hook-code`],method:`post`,path:`/`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),body:{content:{"application/json":{schema:Qn}}}},security:[{Bearer:[`create:hooks`]}],responses:{201:{content:{"application/json":{schema:oR}},description:`The created hook code`}}}),handler:async e=>{let t=P(e),n=e.req.valid(`json`),r=await e.env.data.hookCode.create(t,n),i=`not_required`,a;if(e.env.codeExecutor?.deploy)try{await e.env.codeExecutor.deploy(r.id,n.code),i=`deployed`}catch(n){i=`failed`,a=n instanceof Error?n.message:String(n),await M(e,t,{type:A.FAILED_HOOK,description:`Failed to deploy hook code ${r.id}: ${a}`})}return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Create hook code`,targetType:`hook_code`,targetId:r.id}),e.json({...r,deploymentStatus:i,deploymentError:a},{status:201})}}),cR=N({route:(0,f.createRoute)({tags:[`hook-code`],method:`get`,path:`/{id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({id:f.z.string()})},security:[{Bearer:[`read:hooks`]}],responses:{200:{content:{"application/json":{schema:$n}},description:`The hook code`},404:{description:`Hook code not found`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=await e.env.data.hookCode.get(t,n);if(!r)throw new m(404,{message:`Hook code not found`});return e.json(r)}}),lR=N({route:(0,f.createRoute)({tags:[`hook-code`],method:`put`,path:`/{id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({id:f.z.string()}),body:{content:{"application/json":{schema:Qn}}}},security:[{Bearer:[`update:hooks`]}],responses:{200:{content:{"application/json":{schema:oR}},description:`The updated hook code`},404:{description:`Hook code not found`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`),r=e.req.valid(`json`);if(!await e.env.data.hookCode.update(t,n,r))throw new m(404,{message:`Hook code not found`});let i=await e.env.data.hookCode.get(t,n);if(!i)throw new m(404,{message:`Hook code not found`});let a=`not_required`,o;if(r.code!==void 0&&e.env.codeExecutor?.deploy)try{await e.env.codeExecutor.deploy(n,r.code),a=`deployed`}catch(r){a=`failed`,o=r instanceof Error?r.message:String(r),await M(e,t,{type:A.FAILED_HOOK,description:`Failed to deploy hook code ${n}: ${o}`})}return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Update hook code`,targetType:`hook_code`,targetId:n}),e.json({...i,deploymentStatus:a,deploymentError:o})}}),uR=N({route:(0,f.createRoute)({tags:[`hook-code`],method:`delete`,path:`/{id}`,request:{headers:f.z.object({"tenant-id":f.z.string().optional()}),params:f.z.object({id:f.z.string()})},security:[{Bearer:[`delete:hooks`]}],responses:{200:{description:`Hook code deleted`}}}),handler:async e=>{let t=P(e),{id:n}=e.req.valid(`param`);if(!await e.env.data.hookCode.remove(t,n))throw new m(404,{message:`Hook code not found`});if(e.env.codeExecutor?.remove)try{await e.env.codeExecutor.remove(n)}catch(r){await M(e,t,{type:A.FAILED_HOOK,description:`Failed to remove hook worker ${n}: ${r instanceof Error?r.message:String(r)}`})}return await M(e,t,{type:A.SUCCESS_API_OPERATION,description:`Delete hook code`,targetType:`hook_code`,targetId:n}),e.text(`OK`)}}),dR=new f.OpenAPIHono().openapiRoutes([sR,cR,lR,uR]);f.z.object({start:f.z.number(),limit:f.z.number(),length:f.z.number()}),Tt.extend({email:f.z.string(),login_count:f.z.number(),multifactor:f.z.array(f.z.string()).optional(),last_ip:f.z.string().optional(),last_login:f.z.string().optional(),user_id:f.z.string()}).catchall(f.z.any());function fR(){return`u2/try-connection-result`}function pR(e,t){return`${Ea(e,t)}${fR()}`}async function mR(e,t){let n=Goe(t);if(await e.data.clients.get(t,n))return n;let r=pR(e);try{await e.data.clients.create(t,{client_id:n,name:`AuthHero Try Connection`,callbacks:[r],allowed_logout_urls:[],web_origins:[],connections:[],client_metadata:{system_purpose:`try_connection`}})}catch(r){if(!await e.data.clients.get(t,n))throw r}return n}async function hR(e,t){let n=(await e.data.customDomains.list(t)).filter(e=>e.status===`ready`);return(n.find(e=>e.primary)??n[0])?.domain}var gR=class extends m{_code;constructor(e,t){super(e,t),this._code=t?.code}get code(){return this._code}},_R={version:4,country_calling_codes:{1:[`US`,`AG`,`AI`,`AS`,`BB`,`BM`,`BS`,`CA`,`DM`,`DO`,`GD`,`GU`,`JM`,`KN`,`KY`,`LC`,`MP`,`MS`,`PR`,`SX`,`TC`,`TT`,`VC`,`VG`,`VI`],7:[`RU`,`KZ`],20:[`EG`],27:[`ZA`],30:[`GR`],31:[`NL`],32:[`BE`],33:[`FR`],34:[`ES`],36:[`HU`],39:[`IT`,`VA`],40:[`RO`],41:[`CH`],43:[`AT`],44:[`GB`,`GG`,`IM`,`JE`],45:[`DK`],46:[`SE`],47:[`NO`,`SJ`],48:[`PL`],49:[`DE`],51:[`PE`],52:[`MX`],53:[`CU`],54:[`AR`],55:[`BR`],56:[`CL`],57:[`CO`],58:[`VE`],60:[`MY`],61:[`AU`,`CC`,`CX`],62:[`ID`],63:[`PH`],64:[`NZ`],65:[`SG`],66:[`TH`],81:[`JP`],82:[`KR`],84:[`VN`],86:[`CN`],90:[`TR`],91:[`IN`],92:[`PK`],93:[`AF`],94:[`LK`],95:[`MM`],98:[`IR`],211:[`SS`],212:[`MA`,`EH`],213:[`DZ`],216:[`TN`],218:[`LY`],220:[`GM`],221:[`SN`],222:[`MR`],223:[`ML`],224:[`GN`],225:[`CI`],226:[`BF`],227:[`NE`],228:[`TG`],229:[`BJ`],230:[`MU`],231:[`LR`],232:[`SL`],233:[`GH`],234:[`NG`],235:[`TD`],236:[`CF`],237:[`CM`],238:[`CV`],239:[`ST`],240:[`GQ`],241:[`GA`],242:[`CG`],243:[`CD`],244:[`AO`],245:[`GW`],246:[`IO`],247:[`AC`],248:[`SC`],249:[`SD`],250:[`RW`],251:[`ET`],252:[`SO`],253:[`DJ`],254:[`KE`],255:[`TZ`],256:[`UG`],257:[`BI`],258:[`MZ`],260:[`ZM`],261:[`MG`],262:[`RE`,`YT`],263:[`ZW`],264:[`NA`],265:[`MW`],266:[`LS`],267:[`BW`],268:[`SZ`],269:[`KM`],290:[`SH`,`TA`],291:[`ER`],297:[`AW`],298:[`FO`],299:[`GL`],350:[`GI`],351:[`PT`],352:[`LU`],353:[`IE`],354:[`IS`],355:[`AL`],356:[`MT`],357:[`CY`],358:[`FI`,`AX`],359:[`BG`],370:[`LT`],371:[`LV`],372:[`EE`],373:[`MD`],374:[`AM`],375:[`BY`],376:[`AD`],377:[`MC`],378:[`SM`],380:[`UA`],381:[`RS`],382:[`ME`],383:[`XK`],385:[`HR`],386:[`SI`],387:[`BA`],389:[`MK`],420:[`CZ`],421:[`SK`],423:[`LI`],500:[`FK`],501:[`BZ`],502:[`GT`],503:[`SV`],504:[`HN`],505:[`NI`],506:[`CR`],507:[`PA`],508:[`PM`],509:[`HT`],590:[`GP`,`BL`,`MF`],591:[`BO`],592:[`GY`],593:[`EC`],594:[`GF`],595:[`PY`],596:[`MQ`],597:[`SR`],598:[`UY`],599:[`CW`,`BQ`],670:[`TL`],672:[`NF`],673:[`BN`],674:[`NR`],675:[`PG`],676:[`TO`],677:[`SB`],678:[`VU`],679:[`FJ`],680:[`PW`],681:[`WF`],682:[`CK`],683:[`NU`],685:[`WS`],686:[`KI`],687:[`NC`],688:[`TV`],689:[`PF`],690:[`TK`],691:[`FM`],692:[`MH`],850:[`KP`],852:[`HK`],853:[`MO`],855:[`KH`],856:[`LA`],880:[`BD`],886:[`TW`],960:[`MV`],961:[`LB`],962:[`JO`],963:[`SY`],964:[`IQ`],965:[`KW`],966:[`SA`],967:[`YE`],968:[`OM`],970:[`PS`],971:[`AE`],972:[`IL`],973:[`BH`],974:[`QA`],975:[`BT`],976:[`MN`],977:[`NP`],992:[`TJ`],993:[`TM`],994:[`AZ`],995:[`GE`],996:[`KG`],998:[`UZ`]},countries:{AC:[`247`,`00`,`(?:[01589]\\d|[2-467])\\d{4}`,[5,6]],AD:[`376`,`00`,`(?:1|6\\d)\\d{7}|[135-9]\\d{5}`,[6,8,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`[135-9]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]]],AE:[`971`,`00`,`(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}`,[5,6,7,8,9,10,11,12],[[`(\\d{3})(\\d{2,9})`,`$1 $2`,[`60|8`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[236]|[479][2-8]`],`0$1`],[`(\\d{3})(\\d)(\\d{5})`,`$1 $2 $3`,[`[479]`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AF:[`93`,`00`,`[2-7]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`]],`0`],AG:[`1`,`011`,`(?:268|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([457]\\d{6})$|1`,`268$1`,0,`268`],AI:[`1`,`011`,`(?:264|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2457]\\d{6})$|1`,`264$1`,0,`264`],AL:[`355`,`00`,`(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}`,[6,7,8,9],[[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`80|9`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`4[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2358][2-5]|4`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[23578]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`6`],`0$1`]],`0`],AM:[`374`,`00`,`(?:[1-489]\\d|55|60|77)\\d{6}`,[8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[89]0`],`0 $1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`2|3[12]`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`1|47`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[3-9]`],`0$1`]],`0`],AO:[`244`,`00`,`[29]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[29]`]]]],AR:[`54`,`00`,`(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}`,[10,11],[[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2-$3`,[`2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])`,`2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`1`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[68]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[23]`],`0$1`,1],[`(\\d)(\\d{4})(\\d{2})(\\d{4})`,`$2 15-$3-$4`,[`9(?:2[2-469]|3[3-578])`,`9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))`,`9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]`,`9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d)(\\d{2})(\\d{4})(\\d{4})`,`$2 15-$3-$4`,[`91`],`0$1`,0,`$1 $2 $3-$4`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1-$2-$3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{4})`,`$2 15-$3-$4`,[`9`],`0$1`,0,`$1 $2 $3-$4`]],`0`,0,`0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?`,`9$1`],AS:[`1`,`011`,`(?:[58]\\d\\d|684|900)\\d{7}`,[10],0,`1`,0,`([267]\\d{6})$|1`,`684$1`,0,`684`],AT:[`43`,`00`,`1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d)(\\d{3,12})`,`$1 $2`,[`1(?:11|[2-9])`],`0$1`],[`(\\d{3})(\\d{2})`,`$1 $2`,[`517`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`5[079]`],`0$1`],[`(\\d{3})(\\d{3,10})`,`$1 $2`,[`(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`,`(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]`],`0$1`],[`(\\d{4})(\\d{3,9})`,`$1 $2`,[`[2-467]|5[2-6]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,7})`,`$1 $2 $3`,[`5`],`0$1`]],`0`],AU:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}`,[5,6,7,8,9,10,12],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`16`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`16`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`14|4`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[2378]`],`(0$1)`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:30|[89])`]]],`0`,0,`(183[12])|0`,0,0,0,[[`(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,[`163\\d{2,6}`,[5,6,7,8,9]],[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],AW:[`297`,`00`,`(?:[25-79]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[25-9]`]]]],AX:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}`,[5,6,7,8,9,10,11,12],0,`0`,0,0,0,0,`18`,0,`00`],AZ:[`994`,`00`,`365\\d{6}|(?:[124579]\\d|60|88)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[28]|2|365|46`,`1[28]|2|365[45]|46`,`1[28]|2|365(?:4|5[02])|46`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[13-9]`],`0$1`]],`0`],BA:[`387`,`00`,`6\\d{8}|(?:[35689]\\d|49|70)\\d{6}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[1-3]|[7-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2-$3`,[`[3-5]|6[56]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`6`],`0$1`]],`0`],BB:[`1`,`011`,`(?:246|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`246$1`,0,`246`],BD:[`880`,`00`,`[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}`,[6,7,8,9,10],[[`(\\d{2})(\\d{4,6})`,`$1-$2`,[`31[5-8]|[459]1`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1-$2`,[`3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]`],`0$1`],[`(\\d{4})(\\d{3,6})`,`$1-$2`,[`[13-9]|2[23]`],`0$1`],[`(\\d)(\\d{7,8})`,`$1-$2`,[`2`],`0$1`]],`0`],BE:[`32`,`00`,`4\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:80|9)0`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[239]|4[23]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[15-8]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4`],`0$1`]],`0`],BF:[`226`,`00`,`[024-7]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[024-7]`]]]],BG:[`359`,`00`,`00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}`,[6,7,8,9,12],[[`(\\d)(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`43[1-6]|70[1-9]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`(?:70|8)0`],`0$1`],[`(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3`,[`43[1-7]|7`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[48]|9[08]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],BH:[`973`,`00`,`[136-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[13679]|8[02-4679]`]]]],BI:[`257`,`00`,`(?:[267]\\d|31)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2367]`]]]],BJ:[`229`,`00`,`(?:01\\d|8)\\d{7}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`0`]]]],BL:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],BM:[`1`,`011`,`(?:441|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`441$1`,0,`441`],BN:[`673`,`00`,`[2-578]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-578]`]]]],BO:[`591`,`00(?:1\\d)?`,`(?:[2-7]\\d\\d|8001)\\d{5}`,[8,9],[[`(\\d)(\\d{7})`,`$1 $2`,[`[23]|4[46]|50`]],[`(\\d{8})`,`$1`,[`[5-7]`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`,0,`0(1\\d)?`],BQ:[`599`,`00`,`(?:[34]1|7\\d)\\d{5}`,[7],0,0,0,0,0,0,`[347]`],BR:[`55`,`00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)`,`[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}`,[8,9,10,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`300|4(?:0[02]|37|86)`,`300|4(?:0(?:0|20)|370|864)`]],[`(\\d{3})(\\d{2,3})(\\d{4})`,`$1 $2 $3`,[`(?:[358]|90)0`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2-$3`,[`(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]`],`($1)`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1 $2-$3`,[`[16][1-9]|[2-57-9]`],`($1)`]],`0`,0,`(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?`,`$2`],BS:[`1`,`011`,`(?:242|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([3-8]\\d{6})$|1`,`242$1`,0,`242`],BT:[`975`,`00`,`[178]\\d{7}|[2-8]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-6]|7[246]|8[2-4]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[67]|[78]`]]]],BW:[`267`,`00`,`(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`90`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-6]|3[15-9]`]],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37]`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`8`]]]],BY:[`375`,`810`,`(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`800`],`8 $1`],[`(\\d{3})(\\d{2})(\\d{2,4})`,`$1 $2 $3`,[`800`],`8 $1`],[`(\\d{4})(\\d{2})(\\d{3})`,`$1 $2-$3`,[`1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])`,`1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])`],`8 0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`1(?:[56]|7[467])|2[1-3]`],`8 0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-4]`],`8 0$1`],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[89]`],`8 $1`]],`8`,0,`0|80?`,0,0,0,0,`8~10`],BZ:[`501`,`00`,`(?:0800\\d|[2-8])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-8]`]],[`(\\d)(\\d{3})(\\d{4})(\\d{3})`,`$1-$2-$3-$4`,[`0`]]]],CA:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[7,10],0,`1`,0,0,0,0,0,[[`(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}`,[10]],[``,[10]],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`,[10]],[`900[2-9]\\d{6}`,[10]],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}`,[10]],0,[`310\\d{4}`,[7]],0,[`600[2-9]\\d{6}`,[10]]]],CC:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CD:[`243`,`00`,`(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}`,[7,8,9,10],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`[1-6]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`5`],`0$1`]],`0`],CF:[`236`,`00`,`8776\\d{4}|(?:[27]\\d|61)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-8]`]]]],CG:[`242`,`00`,`222\\d{6}|(?:0\\d|80)\\d{7}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[02]`]]]],CH:[`41`,`00`,`8\\d{11}|[2-9]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8[047]|90`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]|81`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`8`],`0$1`]],`0`],CI:[`225`,`00`,`[02]\\d{9}`,[10],[[`(\\d{2})(\\d{2})(\\d)(\\d{5})`,`$1 $2 $3 $4`,[`2`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3 $4`,[`0`]]]],CK:[`682`,`00`,`[2-578]\\d{4}`,[5],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`[2-578]`]]]],CL:[`56`,`(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0`,`12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}`,[9,10,11],[[`(\\d{5})(\\d{4})`,`$1 $2`,[`219`,`2196`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`60|809`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`44`]],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[1-36]`],`($1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`9(?:10|[2-9])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])`],`($1)`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`60|8`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{3})(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`60`]]]],CM:[`237`,`00`,`[26]\\d{8}|88\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`88`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[26]|88`]]]],CN:[`86`,`00|1(?:[12]\\d|79)\\d\\d00`,`(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5,6})`,`$1 $2`,[`(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]`,`(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`,`10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123`],`0$1`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]`,`(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]`,`85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])`,`85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`(?:4|80)0`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|2(?:[02-57-9]|1[1-9])`,`10|2(?:[02-57-9]|1[1-9])`,`10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]`],`0$1`,1],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`9`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`80`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[3-578]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`1[3-9]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`[12]`],`0$1`,1]],`0`,0,`(1(?:[12]\\d|79)\\d\\d)|0`,0,0,0,0,`00`],CO:[`57`,`00(?:4(?:[14]4|56)|[579])`,`(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`46`]],[`(\\d{3})(\\d{7})`,`$1 $2`,[`6|90`],`($1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3[0-357]|9[14]`]],[`(\\d)(\\d{3})(\\d{7})`,`$1-$2-$3`,[`1`],`0$1`,0,`$1 $2 $3`]],`0`,0,`0([3579]|4(?:[14]4|56))?`],CR:[`506`,`00`,`(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}`,[8,10],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[3-9]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[89]`]]],0,0,`(19(?:0[0-2468]|1[09]|20|66|77|99))`],CU:[`53`,`119`,`(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}`,[6,7,8,10],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`2[1-4]|[34]`],`(0$1)`],[`(\\d)(\\d{6,7})`,`$1 $2`,[`7`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`[56]`],`0$1`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`8`],`0$1`]],`0`],CV:[`238`,`0`,`(?:[2-59]\\d\\d|800)\\d{4}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-589]`]]]],CW:[`599`,`00`,`(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[3467]`]],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9[4-8]`]]],0,0,0,0,0,`[69]`],CX:[`61`,`001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011`,`1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}`,[6,7,8,9,10,12],0,`0`,0,`([59]\\d{7})$|0`,`8$1`,0,0,[[`8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}`,[9]],[`4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}`,[9]],[`180(?:0\\d{3}|2)\\d{3}`,[7,10]],[`190[0-26]\\d{6}`,[10]],0,0,0,0,[`14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}`,[9]],[`13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}`,[6,8,10,12]]],`0011`],CY:[`357`,`00`,`(?:[279]\\d|[58]0)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[257-9]`]]]],CZ:[`420`,`00`,`(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}`,[9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]|9[015-7]`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`96`]],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]]],DE:[`49`,`00`,`[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}`,[4,5,6,7,8,9,10,11,12,13,14,15],[[`(\\d{2})(\\d{3,13})`,`$1 $2`,[`3[02]|40|[68]9`],`0$1`],[`(\\d{3})(\\d{3,12})`,`$1 $2`,[`2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`,`2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1`],`0$1`],[`(\\d{4})(\\d{2,11})`,`$1 $2`,[`[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]`,`[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`138`],`0$1`],[`(\\d{5})(\\d{2,10})`,`$1 $2`,[`3`],`0$1`],[`(\\d{3})(\\d{5,11})`,`$1 $2`,[`181`],`0$1`],[`(\\d{3})(\\d)(\\d{4,10})`,`$1 $2 $3`,[`1(?:3|80)|9`],`0$1`],[`(\\d{3})(\\d{7,8})`,`$1 $2`,[`1[67]`],`0$1`],[`(\\d{3})(\\d{7,12})`,`$1 $2`,[`8`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`185`,`1850`,`18500`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`18[68]`],`0$1`],[`(\\d{4})(\\d{7})`,`$1 $2`,[`15[1279]`],`0$1`],[`(\\d{5})(\\d{6})`,`$1 $2`,[`15[03568]`,`15(?:[0568]|3[13])`],`0$1`],[`(\\d{3})(\\d{8})`,`$1 $2`,[`18`],`0$1`],[`(\\d{3})(\\d{2})(\\d{7,8})`,`$1 $2 $3`,[`1(?:6[023]|7)`],`0$1`],[`(\\d{4})(\\d{2})(\\d{7})`,`$1 $2 $3`,[`15[279]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{8})`,`$1 $2 $3`,[`15`],`0$1`]],`0`],DJ:[`253`,`00`,`(?:2\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[27]`]]]],DK:[`45`,`00`,`[2-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-9]`]]]],DM:[`1`,`011`,`(?:[58]\\d\\d|767|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`767$1`,0,`767`],DO:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,0,0,0,`8001|8[024]9`],DZ:[`213`,`00`,`(?:[1-4]|[5-79]\\d|80)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`9`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-8]`],`0$1`]],`0`],EC:[`593`,`00`,`1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}`,[8,9,10,11],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2-$3`,[`[2-7]`],`(0$1)`,0,`$1-$2-$3`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1`]]],`0`],EE:[`372`,`00`,`8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88`,`[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88`]],[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[45]|8(?:00|[1-49])`,`[45]|8(?:00[1-9]|[1-49])`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],EG:[`20`,`00`,`[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}`,[8,9,10],[[`(\\d)(\\d{7,8})`,`$1 $2`,[`[23]`],`0$1`],[`(\\d{2})(\\d{6,7})`,`$1 $2`,[`1[35]|[4-6]|8[2468]|9[235-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{8})`,`$1 $2`,[`1`],`0$1`]],`0`],EH:[`212`,`00`,`[5-8]\\d{8}`,[9],0,`0`,0,0,0,0,0,[[`528[89]\\d{5}`],[`(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}`],[`80[0-7]\\d{6}`],[`89\\d{7}`],0,0,0,0,[`(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}`]]],ER:[`291`,`00`,`[178]\\d{6}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[178]`],`0$1`]],`0`],ES:[`34`,`00`,`(?:400|[5-9]\\d\\d)\\d{6}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[89]00`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[4-9]`]]]],ET:[`251`,`00`,`(?:11|[2-57-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-57-9]`],`0$1`]],`0`],FI:[`358`,`00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))`,`[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}`,[5,6,7,8,9,10,11,12],[[`(\\d{5})`,`$1`,[`20[2-59]`],`0$1`],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`(?:[1-3]0|[68])0|70[07-9]`],`0$1`],[`(\\d{2})(\\d{4,8})`,`$1 $2`,[`[14]|2[09]|50|7[135]`],`0$1`],[`(\\d{2})(\\d{6,10})`,`$1 $2`,[`7`],`0$1`],[`(\\d)(\\d{4,9})`,`$1 $2`,[`(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9`],`0$1`]],`0`,0,0,0,0,`1[03-79]|[2-9]`,0,`00`],FJ:[`679`,`0(?:0|52)`,`45\\d{5}|(?:0800\\d|[235-9])\\d{6}`,[7,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[235-9]|45`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]]],0,0,0,0,0,0,0,`00`],FK:[`500`,`00`,`[2-7]\\d{4}`,[5]],FM:[`691`,`00`,`(?:[39]\\d\\d|820)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[389]`]]]],FO:[`298`,`00`,`[2-9]\\d{5}`,[6],[[`(\\d{6})`,`$1`,[`[2-9]`]]],0,0,`(10(?:01|[12]0|88))`],FR:[`33`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0 $1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[1-79]`],`0$1`]],`0`],GA:[`241`,`00`,`(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}`,[7,8],[[`(\\d)(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-7]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`11|[67]`],`0$1`]],0,0,`0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})`,`$1`],GB:[`44`,`00`,`[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}`,[7,9,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`800`,`8001`,`80011`,`800111`,`8001111`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`845`,`8454`,`84546`,`845464`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`800`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`1(?:38|5[23]|69|76|94)`,`1(?:(?:38|69)7|5(?:24|39)|768|946)`,`1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`1(?:[2-69][02-9]|[78])`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[25]|7(?:0|6[02-9])`,`[25]|7(?:0|6(?:[03-9]|2[356]))`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1389]`],`0$1`]],`0`,0,`0|180020`,0,0,0,[[`(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}`,[9,10]],[`7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]],0,` x`],GD:[`1`,`011`,`(?:473|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`473$1`,0,`473`],GE:[`995`,`00`,`(?:[3-57]\\d\\d|800)\\d{6}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`32`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`5(?:[0-46-9]|5[0-57-9])|7`,`5(?:[0-46-9]|5(?:[0-357-9]|44))|7`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[3-58]`],`0$1`]],`0`],GF:[`594`,`00`,`(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]|80[6-9]|9[47]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[89]`],`0$1`]],`0`],GG:[`44`,`00`,`(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?`,[7,9,10],0,`0`,0,`([25-9]\\d{5})$|0|180020`,`1481$1`,0,0,[[`1481[25-9]\\d{5}`,[10]],[`7(?:(?:781|839)\\d|911[17])\\d{5}`,[10]],[`80[08]\\d{7}|800\\d{6}|8001111`],[`(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d`,[7,10]],[`70\\d{8}`,[10]],0,[`(?:3[0347]|55)\\d{8}`,[10]],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`,[10]],[`56\\d{8}`,[10]]]],GH:[`233`,`00`,`[235]\\d{8}|800\\d{5,6}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2358]`],`0$1`]],`0`],GI:[`350`,`00`,`(?:[25]\\d|60)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`2`]]]],GL:[`299`,`00`,`(?:19|[2-689]\\d|70)\\d{4}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`19|[2-9]`]]]],GM:[`220`,`00`,`[2-9]\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],GN:[`224`,`00`,`722\\d{6}|(?:3|6\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`3`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[67]`]]]],GP:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|80[6-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],GQ:[`240`,`00`,`222\\d{6}|(?:3\\d|55|[89]0)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235]`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[89]`]]]],GR:[`30`,`00`,`5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}`,[10,11,12],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`21|7`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2689]`]],[`(\\d{3})(\\d{3,4})(\\d{5})`,`$1 $2 $3`,[`8`]]]],GT:[`502`,`00`,`80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-8]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],GU:[`1`,`011`,`(?:[58]\\d\\d|671|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`671$1`,0,`671`],GW:[`245`,`00`,`[49]\\d{8}|4\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`40`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`]]]],GY:[`592`,`001`,`(?:[2-8]\\d{3}|9008)\\d{3}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],HK:[`852`,`00(?:30|5[09]|[126-9]?)`,`8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}`,[5,6,7,8,9,11],[[`(\\d{3})(\\d{2,5})`,`$1 $2`,[`900`,`9003`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2-7]|8[1-4]|9(?:0[1-9]|[1-8])`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{3})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`9`]]],0,0,0,0,0,0,0,`00`],HN:[`504`,`00`,`8\\d{10}|[237-9]\\d{7}`,[8,11],[[`(\\d{4})(\\d{4})`,`$1-$2`,[`[237-9]`]]]],HR:[`385`,`00`,`[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}`,[7,8,9],[[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`6[01]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{4})(\\d{3})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6|7[245]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-57]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],HT:[`509`,`00`,`[2-589]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[2-589]`]]]],HU:[`36`,`00`,`[235-7]\\d{8}|[1-9]\\d{7}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]`],`(06 $1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`06 $1`]],`06`],ID:[`62`,`00[89]`,`00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}`,[7,8,9,10,11,12,13,14,15,16,17],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`15`]],[`(\\d{2})(\\d{5,9})`,`$1 $2`,[`2[124]|[36]1`],`(0$1)`],[`(\\d{3})(\\d{5,7})`,`$1 $2`,[`800`],`0$1`],[`(\\d{3})(\\d{5,8})`,`$1 $2`,[`[2-79]`],`(0$1)`],[`(\\d{3})(\\d{3,4})(\\d{3})`,`$1-$2-$3`,[`8[1-35-9]`],`0$1`],[`(\\d{3})(\\d{6,8})`,`$1 $2`,[`1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`804`],`0$1`],[`(\\d{3})(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`80`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1-$2-$3`,[`8`],`0$1`]],`0`],IE:[`353`,`00`,`(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}`,[7,8,9,10],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`2[24-9]|47|58|6[237-9]|9[35-9]`],`(0$1)`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[45]0`],`(0$1)`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2569]|4[1-69]|7[14]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`70`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`81`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`4`],`(0$1)`],[`(\\d{2})(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],IL:[`972`,`0(?:0|1[2-9])`,`1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}`,[7,8,9,10,11,12],[[`(\\d{4})(\\d{3})`,`$1-$2`,[`125`]],[`(\\d{4})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`121`]],[`(\\d)(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[2-489]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`12`]],[`(\\d{4})(\\d{6})`,`$1-$2`,[`159`]],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3-$4`,[`1[7-9]`]],[`(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})`,`$1-$2 $3-$4`,[`15`]]],`0`],IM:[`44`,`00`,`1624\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([25-8]\\d{5})$|0|180020`,`1624$1`,0,`74576|(?:16|7[56])24`],IN:[`91`,`00`,`(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}`,[8,9,10,11,12,13],[[`(\\d{8})`,`$1`,[`5(?:0|2[23]|3[03]|[67]1|88)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)`,`5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)`],0,1],[`(\\d{4})(\\d{4,5})`,`$1 $2`,[`180`,`1800`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`140`],0,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`11|2[02]|33|4[04]|79[1-7]|80[2-46]`,`11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])`,`11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]`,`1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]`],`0$1`,1],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807`,`1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]`,`1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]`],`0$1`,1],[`(\\d{5})(\\d{5})`,`$1 $2`,[`16|[6-9]`],`0$1`,1],[`(\\d{4})(\\d{2,4})(\\d{4})`,`$1 $2 $3`,[`18[06]`,`18[06]0`],0,1],[`(\\d{4})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`18`],0,1]],`0`],IO:[`246`,`00`,`3\\d{6}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`3`]]]],IQ:[`964`,`00`,`(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-6]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],IR:[`98`,`00`,`[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}`,[4,5,6,7,10],[[`(\\d{4,5})`,`$1`,[`96`],`0$1`],[`(\\d{2})(\\d{4,5})`,`$1 $2`,[`(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1-8]`],`0$1`]],`0`],IS:[`354`,`00|1(?:0(?:01|[12]0)|100)`,`(?:38\\d|[4-9])\\d{6}`,[7,9],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[4-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`3`]]],0,0,0,0,0,0,0,`00`],IT:[`39`,`00`,`0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?`,[6,7,8,9,10,11,12],[[`(\\d{2})(\\d{4,6})`,`$1 $2`,[`0[26]`]],[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`0[13-57-9][0159]|8(?:03|4[17]|9[2-5])`,`0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))`]],[`(\\d{4})(\\d{2,6})`,`$1 $2`,[`0(?:[13-579][2-46-8]|8[236-8])`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`894`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[26]|5`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`1(?:44|[679])|[378]|43`]],[`(\\d{3})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`0[13-57-9][0159]|14`]],[`(\\d{2})(\\d{4})(\\d{5})`,`$1 $2 $3`,[`0[26]`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[03]`]]],0,0,0,0,0,0,[[`0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}`],[`3[2-9]\\d{7,8}|(?:31|43)\\d{8}`,[9,10]],[`80(?:0\\d{3}|3)\\d{3}`,[6,9]],[`(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}`,[6,8,9,10]],[`1(?:78\\d|99)\\d{6}`,[9,10]],[`3[2-8]\\d{9,10}`,[11,12]],0,0,[`55\\d{8}`,[10]],[`84(?:[08]\\d{3}|[17])\\d{3}`,[6,9]]]],JE:[`44`,`00`,`1534\\d{6}|(?:[3578]\\d|90)\\d{8}`,[10],0,`0`,0,`([0-24-8]\\d{5})$|0|180020`,`1534$1`,0,0,[[`1534[0-24-8]\\d{5}`],[`7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}`],[`80(?:07(?:35|81)|8901)\\d{4}`],[`(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}`],[`701511\\d{4}`],0,[`(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}`],[`76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}`],[`56\\d{8}`]]],JM:[`1`,`011`,`(?:[58]\\d\\d|658|900)\\d{7}`,[10],0,`1`,0,0,0,0,`658|876`],JO:[`962`,`00`,`(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}`,[8,9],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2356]|87`],`(0$1)`],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`70`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[47]`],`0$1`]],`0`],JP:[`81`,`010`,`00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}`,[8,9,10,11,12,13,14,15,16,17],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1-$2-$3`,[`(?:12|57|99)0`],`0$1`],[`(\\d{4})(\\d)(\\d{4})`,`$1-$2-$3`,[`1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`,`1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`60`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2-$3`,[`3|4(?:2[09]|7[01])|6[1-9]`,`3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]`,`1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3`,[`[14]|[289][2-9]|5[3-9]|7[2-4679]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`800`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[25-9]`],`0$1`]],`0`,0,`(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0`,`$1`],KE:[`254`,`000`,`(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}`,[7,8,9,10],[[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`[24-6]`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[17]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`],KG:[`996`,`00`,`8\\d{9}|[235-9]\\d{8}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`3(?:1[346]|[24-79])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-79]|88`],`0$1`],[`(\\d{3})(\\d{3})(\\d)(\\d{2,3})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],KH:[`855`,`00[14-9]`,`1\\d{9}|[1-9]\\d{7,8}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],KI:[`686`,`00`,`(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}`,[5,8],0,`0`],KM:[`269`,`00`,`[3478]\\d{6}`,[7],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[3478]`]]]],KN:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`869$1`,0,`869`],KP:[`850`,`00|99`,`85\\d{6}|(?:19\\d|[2-7])\\d{7}`,[8,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-7]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`]],`0`],KR:[`82`,`00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))`,`00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}`,[5,6,8,9,10,11,12,13,14],[[`(\\d{2})(\\d{3,4})`,`$1-$2`,[`(?:3[1-3]|[46][1-4]|5[1-5])1`],`0$1`],[`(\\d{4})(\\d{4})`,`$1-$2`,[`1`]],[`(\\d)(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1-$2-$3`,[`[36]0|8`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1-$2-$3`,[`[1346]|5[1-5]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2-$3`,[`[57]`],`0$1`],[`(\\d{2})(\\d{5})(\\d{4})`,`$1-$2-$3`,[`5`],`0$1`]],`0`,0,`0(8(?:[1-46-8]|5\\d\\d))?`],KW:[`965`,`00`,`18\\d{5}|(?:[2569]\\d|41)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3,4})`,`$1 $2`,[`[169]|2(?:[235]|4[1-35-9])|52`]],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[245]`]]]],KY:[`1`,`011`,`(?:345|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`345$1`,0,`345`],KZ:[`7`,`810`,`8\\d{13}|[78]\\d{9}`,[10,14],0,`8`,0,0,0,0,`7`,0,`8~10`],LA:[`856`,`00`,`[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}`,[8,9,10],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2[13]|3[14]|[4-8]`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`3`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`],LB:[`961`,`00`,`[27-9]\\d{7}|[13-9]\\d{6}`,[7,8],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[27-9]`]]],`0`],LC:[`1`,`011`,`(?:[58]\\d\\d|758|900)\\d{7}`,[10],0,`1`,0,`([2-8]\\d{6})$|1`,`758$1`,0,`758`],LI:[`423`,`00`,`[68]\\d{8}|(?:[2378]\\d|90)\\d{5}`,[7,9],[[`(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2379]|8(?:0[09]|7)`,`[2379]|8(?:0(?:02|9)|7)`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`69`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]]],`0`,0,`(1001)|0`],LK:[`94`,`00`,`[1-9]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[1-689]`],`0$1`]],`0`],LR:[`231`,`00`,`(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4[67]|[56]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-578]`],`0$1`]],`0`],LS:[`266`,`00`,`(?:[256]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2568]`]]]],LT:[`370`,`00`,`(?:[3469]\\d|52|[78]0)\\d{6}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`52[0-7]`],`(0-$1)`,1],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0 $1`,1],[`(\\d{2})(\\d{6})`,`$1 $2`,[`37|4(?:[15]|6[1-8])`],`(0-$1)`,1],[`(\\d{3})(\\d{5})`,`$1 $2`,[`[3-6]`],`(0-$1)`,1]],`0`,0,`[08]`],LU:[`352`,`00`,`35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}`,[4,5,6,7,8,9,10,11],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`20[2-689]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})`,`$1 $2 $3 $4`,[`[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]`]],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`80[01]|90[015]`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3 $4`,[`20`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})`,`$1 $2 $3 $4 $5`,[`20`]]],0,0,`(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)`],LV:[`371`,`00`,`(?:[268]\\d|78|90)\\d{6}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2679]|8[01]`]]]],LY:[`218`,`00`,`[2-9]\\d{8}`,[9],[[`(\\d{2})(\\d{7})`,`$1-$2`,[`[2-9]`],`0$1`]],`0`],MA:[`212`,`00`,`[5-8]\\d{8}`,[9],[[`(\\d{4})(\\d{5})`,`$1-$2`,[`892`],`0$1`],[`(\\d{2})(\\d{7})`,`$1-$2`,[`8(?:0[0-7]|9)`],`0$1`],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[5-8]`],`0$1`]],`0`,0,0,0,0,`[5-8]`],MC:[`377`,`00`,`(?:[3489]|[67]\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`4`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[389]`]],[`(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4 $5`,[`[67]`],`0$1`]],`0`],MD:[`373`,`00`,`(?:[235-7]\\d|[89]0)\\d{6}`,[8],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`22|3`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`[25-7]`],`0$1`]],`0`],ME:[`382`,`00`,`(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[2-9]`],`0$1`]],`0`],MF:[`590`,`00`,`7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}`],[`(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}`],[`80[0-5]\\d{6}`],[`8[129]\\d{7}`],0,0,0,0,[`9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}`]]],MG:[`261`,`00`,`[23]\\d{8}`,[9],[[`(\\d{2})(\\d{2})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`[23]`],`0$1`]],`0`,0,`([24-9]\\d{6})$|0`,`20$1`],MH:[`692`,`011`,`329\\d{4}|(?:[256]\\d|45)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[2-6]`]]],`1`],MK:[`389`,`00`,`[2-578]\\d{7}`,[8],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2|34[47]|4(?:[37]7|5[47]|64)`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[347]`],`0$1`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[58]`],`0$1`]],`0`],ML:[`223`,`00`,`[24-9]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24-9]`]]]],MM:[`95`,`00`,`1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}`,[6,7,8,9,10],[[`(\\d)(\\d{2})(\\d{3})`,`$1 $2 $3`,[`16|2`],`0$1`],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]`],`0$1`],[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[12]|452|678|86`,`[12]|452|6788|86`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[4-7]|8[1-35]`],`0$1`],[`(\\d)(\\d{3})(\\d{4,6})`,`$1 $2 $3`,[`9(?:2[0-4]|[35-9]|4[137-9])`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`92`],`0$1`],[`(\\d)(\\d{5})(\\d{4})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],MN:[`976`,`001`,`[12]\\d{7,9}|[5-9]\\d{7}`,[8,9,10],[[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`11|2[16]`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[5-9]`]],[`(\\d{3})(\\d{5,6})`,`$1 $2`,[`[12]2[1-3]`],`0$1`],[`(\\d{4})(\\d{5,6})`,`$1 $2`,[`[12](?:27|3[2-8]|4[2-68]|5[1-4689])`,`[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]`],`0$1`],[`(\\d{5})(\\d{4,5})`,`$1 $2`,[`[12]`],`0$1`]],`0`],MO:[`853`,`00`,`0800\\d{3}|(?:28|[68]\\d)\\d{6}`,[7,8],[[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[268]`]]]],MP:[`1`,`011`,`[58]\\d{9}|(?:67|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`670$1`,0,`670`],MQ:[`596`,`00`,`7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-79]|8(?:0[6-9]|[36])`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],MR:[`222`,`00`,`(?:[2-4]\\d\\d|800)\\d{5}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-48]`]]]],MS:[`1`,`011`,`(?:[58]\\d\\d|664|900)\\d{7}`,[10],0,`1`,0,`([34]\\d{6})$|1`,`664$1`,0,`664`],MT:[`356`,`00`,`3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[2357-9]`]]]],MU:[`230`,`0(?:0|[24-7]0|3[03])`,`(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}`,[7,8,10],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-46]|8[013]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[57]`]],[`(\\d{5})(\\d{5})`,`$1 $2`,[`8`]]],0,0,0,0,0,0,0,`020`],MV:[`960`,`0(?:0|19)`,`(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}`,[7,10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[34679]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`]]],0,0,0,0,0,0,0,`00`],MW:[`265`,`00`,`(?:[1289]\\d|31|77)\\d{7}|1\\d{6}`,[7,9],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[2-9]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-37-9]`],`0$1`]],`0`],MX:[`52`,`0[09]`,`[2-9]\\d{9}`,[10],[[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`33|5[56]|81`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2-9]`]]],0,0,0,0,0,0,0,`00`],MY:[`60`,`00`,`1\\d{8,9}|(?:3\\d|[4-9])\\d{7}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1-$2 $3`,[`[4-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1-$2 $3`,[`1(?:[02469]|[378][1-9]|53)|8`,`1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8`],`0$1`],[`(\\d)(\\d{4})(\\d{4})`,`$1-$2 $3`,[`3`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{4})`,`$1-$2-$3-$4`,[`1(?:[367]|80)`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1-$2 $3`,[`15`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4})`,`$1-$2 $3`,[`1`],`0$1`]],`0`],MZ:[`258`,`00`,`(?:2|8\\d)\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2|8[2-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`8`]]]],NA:[`264`,`00`,`[68]\\d{7,8}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`88`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`87`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],NC:[`687`,`00`,`(?:050|[2-57-9]\\d\\d)\\d{3}`,[6],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1.$2.$3`,[`[02-57-9]`]]]],NE:[`227`,`00`,`[027-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`08`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[089]|2[013]|7[0467]`]]]],NF:[`672`,`00`,`[13]\\d{5}`,[6],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`1[0-3]`]],[`(\\d)(\\d{5})`,`$1 $2`,[`[13]`]]],0,0,`([0-258]\\d{4})$`,`3$1`],NG:[`234`,`009`,`(?:20|9\\d)\\d{8}|[78]\\d{9,13}`,[10,11,12,13,14],[[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[7-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`20[129]`],`0$1`],[`(\\d{4})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{3})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`[78]`],`0$1`],[`(\\d{3})(\\d{5})(\\d{5,6})`,`$1 $2 $3`,[`[78]`],`0$1`]],`0`],NI:[`505`,`00`,`(?:1800|[25-8]\\d{3})\\d{4}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[125-8]`]]]],NL:[`31`,`00`,`(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}`,[5,6,7,8,9,10,11],[[`(\\d{3})(\\d{4,7})`,`$1 $2`,[`[89]0`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`66`],`0$1`],[`(\\d)(\\d{8})`,`$1 $2`,[`6`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1[16-8]|2[259]|3[124]|4[17-9]|5[124679]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-578]|91`],`0$1`],[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`,[`9`],`0$1`]],`0`],NO:[`47`,`00`,`(?:0|[2-9]\\d{3})\\d{4}`,[5,8],[[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`8`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[2-79]`]]],0,0,0,0,0,`[02-689]|7[0-8]`],NP:[`977`,`00`,`(?:1\\d|9)\\d{9}|[1-9]\\d{7}`,[8,10,11],[[`(\\d)(\\d{7})`,`$1-$2`,[`1[2-6]`],`0$1`],[`(\\d{2})(\\d{6})`,`$1-$2`,[`1[01]|[2-8]|9(?:[1-59]|[67][2-6])`],`0$1`],[`(\\d{3})(\\d{7})`,`$1-$2`,[`9`]]],`0`],NR:[`674`,`00`,`(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[24-9]`]]]],NU:[`683`,`00`,`(?:[4-7]|888\\d)\\d{3}`,[4,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`8`]]]],NZ:[`64`,`0(?:0|161)`,`[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,8})`,`$1 $2`,[`8[1-79]`],`0$1`],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`50[036-8]|8|90`,`50(?:[0367]|88)|8|90`],`0$1`],[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`24|[346]|7[2-57-9]|9[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:10|74)|[589]`],`0$1`],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`1|2[028]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,5})`,`$1 $2 $3`,[`2(?:[169]|7[0-35-9])|7`],`0$1`]],`0`,0,0,0,0,0,0,`00`],OM:[`968`,`00`,`(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}`,[7,8,9],[[`(\\d{3})(\\d{4,6})`,`$1 $2`,[`[58]`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`2`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[179]`]]]],PA:[`507`,`00`,`(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}`,[7,8,10,11],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`[1-57-9]`]],[`(\\d{4})(\\d{4})`,`$1-$2`,[`[68]`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]]],PE:[`51`,`00|19(?:1[124]|77|90)00`,`(?:[14-8]|9\\d)\\d{7}`,[8,9],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`80`],`(0$1)`],[`(\\d)(\\d{7})`,`$1 $2`,[`1`],`(0$1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[4-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`]]],`0`,0,0,0,0,0,0,`00`,` Anexo `],PF:[`689`,`00`,`4\\d{5}(?:\\d{2})?|8\\d{7,8}`,[6,8,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`44`]],[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`4|8[7-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],PG:[`675`,`00|140[1-3]`,`(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`18|[2-69]|85`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[78]`]]],0,0,0,0,0,0,0,`00`],PH:[`63`,`00`,`(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}`,[6,8,9,10,11,12,13],[[`(\\d)(\\d{5})`,`$1 $2`,[`2`],`(0$1)`],[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2`,`3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))`],`(0$1)`],[`(\\d{5})(\\d{4})`,`$1 $2`,[`346|4(?:27|9[35])|883`,`3469|4(?:279|9(?:30|56))|8834`],`(0$1)`],[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|8[2-8]`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]],[`(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})`,`$1 $2 $3 $4`,[`1`]]],`0`],PK:[`92`,`00`,`122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,7})`,`$1 $2 $3`,[`[89]0`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`1`]],[`(\\d{3})(\\d{6,7})`,`$1 $2`,[`2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])`,`9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]`],`(0$1)`],[`(\\d{2})(\\d{7,8})`,`$1 $2`,[`(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]`],`(0$1)`],[`(\\d{5})(\\d{5})`,`$1 $2`,[`58`],`(0$1)`],[`(\\d{3})(\\d{7})`,`$1 $2`,[`3`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91`],`(0$1)`],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[24-9]`],`(0$1)`]],`0`],PL:[`48`,`00`,`(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}`,[6,7,8,9,10],[[`(\\d{5})`,`$1`,[`19`]],[`(\\d{3})(\\d{3})`,`$1 $2`,[`11|20|64`]],[`(\\d{2})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1`,`30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19`]],[`(\\d{3})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`64`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[2-8]|[2-7]|8[1-79]|9[145]`]],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`8`]]]],PM:[`508`,`00`,`[78]\\d{8}|[2-9]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[2-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`],`0$1`]],`0`],PR:[`1`,`011`,`(?:[589]\\d\\d|787)\\d{7}`,[10],0,`1`,0,0,0,0,`787|939`],PS:[`970`,`00`,`[2489]2\\d{6}|(?:1\\d|5)\\d{8}`,[8,9,10],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[2489]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],PT:[`351`,`00`,`1693\\d{5}|(?:[26-9]\\d|30)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2[12]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`16|[236-9]`]]]],PW:[`680`,`01[12]`,`(?:[24-8]\\d\\d|345|900)\\d{4}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-9]`]]]],PY:[`595`,`00`,`[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}`,[6,7,8,9,10,11],[[`(\\d{3})(\\d{3,6})`,`$1 $2`,[`[2-9]0`],`0$1`],[`(\\d{2})(\\d{5})`,`$1 $2`,[`3[289]|4[246-8]|61|7[1-3]|8[1-36]`],`(0$1)`],[`(\\d{3})(\\d{4,5})`,`$1 $2`,[`2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`87`]],[`(\\d{3})(\\d{6})`,`$1 $2`,[`9(?:[5-79]|8[1-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-8]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`9`]]],`0`],QA:[`974`,`00`,`800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}`,[7,8,9,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`2[136]|8`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[3-7]`]]]],RE:[`262`,`00`,`709\\d{6}|(?:26|[689]\\d)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[26-9]`],`0$1`]],`0`,0,0,0,0,0,[[`2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}`],[`(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}`],[`80\\d{7}`],[`89[1-37-9]\\d{6}`],0,0,0,0,[`9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}`],[`8(?:1[019]|2[0156]|84|90)\\d{6}`]]],RO:[`40`,`00`,`(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}`,[6,9],[[`(\\d{3})(\\d{3})`,`$1 $2`,[`2[3-6]`,`2[3-6]\\d9`],`0$1`],[`(\\d{2})(\\d{4})`,`$1 $2`,[`219|31`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[23]1`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[236-9]`],`0$1`]],`0`,0,0,0,0,0,0,0,` int `],RS:[`381`,`00`,`38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}`,[6,7,8,9,10,11,12],[[`(\\d{3})(\\d{3,9})`,`$1 $2`,[`(?:2[389]|39)0|[7-9]`],`0$1`],[`(\\d{2})(\\d{5,10})`,`$1 $2`,[`[1-36]`],`0$1`]],`0`],RU:[`7`,`810`,`8\\d{13}|[347-9]\\d{9}`,[10,14],[[`(\\d{4})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-8]|2[1-9])`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))`,`7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2`],`8 ($1)`,1],[`(\\d{5})(\\d)(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`7(?:1[0-68]|2[1-9])`,`7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))`,`7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`8 ($1)`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[349]|8(?:[02-7]|1[1-8])`],`8 ($1)`,1],[`(\\d{4})(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`8`],`8 ($1)`]],`8`,0,0,0,0,`[3489]`,0,`8~10`],RW:[`250`,`00`,`(?:06|[27]\\d\\d|[89]00)\\d{6}`,[8,9],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[7-9]`],`0$1`]],`0`],SA:[`966`,`00`,`(?:[15]\\d|800|92)\\d{7}`,[9,10],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`9`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`5`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]]],`0`],SB:[`677`,`0[01]`,`[6-9]\\d{6}|[1-6]\\d{4}`,[5,7],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])`]]]],SC:[`248`,`010|0[0-2]`,`(?:[2489]\\d|64)\\d{5}`,[7],[[`(\\d)(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[246]|9[57]`]]],0,0,0,0,0,0,0,`00`],SD:[`249`,`00`,`[19]\\d{8}`,[9],[[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],SE:[`46`,`00`,`(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}`,[6,7,8,9,10,12],[[`(\\d{2})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`20`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{4})`,`$1-$2`,[`9(?:00|39|44|9)`],`0$1`,0,`$1 $2`],[`(\\d{2})(\\d{3})(\\d{2})`,`$1-$2 $3`,[`[12][136]|3[356]|4[0246]|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3`],[`(\\d)(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2,3})(\\d{2})`,`$1-$2 $3`,[`1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3`],[`(\\d{3})(\\d{2,3})(\\d{3})`,`$1-$2 $3`,[`9(?:00|39|44)`],`0$1`,0,`$1 $2 $3`],[`(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`10|7`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1-$2 $3 $4`,[`8`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1-$2 $3 $4`,[`[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{2})(\\d{3})`,`$1-$2 $3 $4`,[`9`],`0$1`,0,`$1 $2 $3 $4`],[`(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1-$2 $3 $4 $5`,[`[26]`],`0$1`,0,`$1 $2 $3 $4 $5`]],`0`],SG:[`65`,`0[0-3]\\d`,`(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}`,[8,10,11],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[369]|8(?:0[1-9]|[1-9])`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`]],[`(\\d{4})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`7`]],[`(\\d{4})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`1`]]]],SH:[`290`,`00`,`(?:[256]\\d|8)\\d{3}`,[4,5],0,0,0,0,0,0,`[256]`],SI:[`386`,`00|10(?:22|66|88|99)`,`[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}`,[5,6,7,8],[[`(\\d{2})(\\d{3,6})`,`$1 $2`,[`8[09]|9`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`59|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[37][01]|4[013]|51|6`],`0$1`],[`(\\d)(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[1-57]`],`(0$1)`]],`0`,0,0,0,0,0,0,`00`],SJ:[`47`,`00`,`0\\d{4}|(?:[489]\\d|79)\\d{6}`,[5,8],0,0,0,0,0,0,`79`],SK:[`421`,`00`,`[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}`,[6,7,9],[[`(\\d)(\\d{2})(\\d{3,4})`,`$1 $2 $3`,[`21`],`0$1`],[`(\\d{2})(\\d{2})(\\d{2,3})`,`$1 $2 $3`,[`[3-5][1-8]1`,`[3-5][1-8]1[67]`],`0$1`],[`(\\d)(\\d{3})(\\d{3})(\\d{2})`,`$1 $2 $3 $4`,[`2`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[689]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[3-5]`],`0$1`]],`0`],SL:[`232`,`00`,`(?:[237-9]\\d|66)\\d{6}`,[8],[[`(\\d{2})(\\d{6})`,`$1 $2`,[`[236-9]`],`(0$1)`]],`0`],SM:[`378`,`00`,`(?:0549|[5-7]\\d)\\d{6}`,[8,10],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[5-7]`]],[`(\\d{4})(\\d{6})`,`$1 $2`,[`0`]]],0,0,`([89]\\d{5})$`,`0549$1`],SN:[`221`,`00`,`(?:[378]\\d|93)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[379]`]]]],SO:[`252`,`00`,`[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}`,[6,7,8,9],[[`(\\d{2})(\\d{4})`,`$1 $2`,[`8[125]`]],[`(\\d{6})`,`$1`,[`[134]`]],[`(\\d)(\\d{6})`,`$1 $2`,[`[15]|2[0-79]|3[0-46-8]|4[0-7]`]],[`(\\d{2})(\\d{5,7})`,`$1 $2`,[`1|28|9[2-9]`]],[`(\\d)(\\d{7})`,`$1 $2`,[`[267]|904`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[346-9]`]]],`0`],SR:[`597`,`00`,`(?:[2-5]|[6-9]\\d)\\d{5}`,[6,7],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1-$2-$3`,[`56`]],[`(\\d{3})(\\d{3})`,`$1-$2`,[`[2-5]`]],[`(\\d{3})(\\d{4})`,`$1-$2`,[`[6-9]`]]]],SS:[`211`,`00`,`[19]\\d{8}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[19]`],`0$1`]],`0`],ST:[`239`,`00`,`(?:22|9\\d)\\d{5}`,[7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[29]`]]]],SV:[`503`,`00`,`[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?`,[7,8,11],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[89]`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[25-7]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[89]`]]]],SX:[`1`,`011`,`7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`(5\\d{6})$|1`,`721$1`,0,`721`],SY:[`963`,`00`,`[1-359]\\d{8}|[1-5]\\d{7}`,[8,9],[[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-4]|5[1-3]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[59]`],`0$1`,1]],`0`],SZ:[`268`,`00`,`0800\\d{4}|(?:[237]\\d|900)\\d{6}`,[8,9],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[0237]`]],[`(\\d{5})(\\d{4})`,`$1 $2`,[`9`]]]],TA:[`290`,`00`,`8\\d{3}`,[4],0,0,0,0,0,0,`8`],TC:[`1`,`011`,`(?:[58]\\d\\d|649|900)\\d{7}`,[10],0,`1`,0,`([2-479]\\d{6})$|1`,`649$1`,0,`649`],TD:[`235`,`00|16`,`(?:22|[3689]\\d|77)\\d{6}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[236-9]`]]],0,0,0,0,0,0,0,`00`],TG:[`228`,`00`,`[279]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[279]`]]]],TH:[`66`,`00[1-9]`,`(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}`,[8,9,10,13],[[`(\\d)(\\d{3})(\\d{4})`,`$1 $2 $3`,[`2`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[13-9]`],`0$1`],[`(\\d{4})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`1`]]],`0`],TJ:[`992`,`810`,`(?:[0-57-9]\\d|66)\\d{7}`,[9],[[`(\\d{6})(\\d)(\\d{2})`,`$1 $2 $3`,[`331`,`3317`]],[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`44[02-479]|[34]7`]],[`(\\d{4})(\\d)(\\d{4})`,`$1 $2 $3`,[`3(?:[1245]|3[12])`]],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`\\d`]]],0,0,0,0,0,0,0,`8~10`],TK:[`690`,`00`,`[2-47]\\d{3,6}`,[4,5,6,7]],TL:[`670`,`00`,`7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}`,[7,8],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[2-489]|70`]],[`(\\d{4})(\\d{4})`,`$1 $2`,[`7`]]]],TM:[`993`,`810`,`[1-7]\\d{7}`,[8],[[`(\\d{2})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`12`],`(8 $1)`],[`(\\d{3})(\\d)(\\d{2})(\\d{2})`,`$1 $2-$3-$4`,[`[1-5]`],`(8 $1)`],[`(\\d{2})(\\d{6})`,`$1 $2`,[`[67]`],`8 $1`]],`8`,0,0,0,0,0,0,`8~10`],TN:[`216`,`00`,`[2-57-9]\\d{7}`,[8],[[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-57-9]`]]]],TO:[`676`,`00`,`(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}`,[5,7],[[`(\\d{2})(\\d{3})`,`$1-$2`,[`[2-4]|50|6[09]|7[0-24-69]|8[05]`]],[`(\\d{4})(\\d{3})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[5-9]`]]]],TR:[`90`,`00`,`4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}`,[7,10,12,13],[[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`512|8[01589]|90`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`5[0-79]`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[24][1-8]|3[1-9]`],`(0$1)`,1],[`(\\d{3})(\\d{3})(\\d{6,7})`,`$1 $2 $3`,[`80`],`0$1`,1]],`0`],TT:[`1`,`011`,`(?:[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-46-8]\\d{6})$|1`,`868$1`,0,`868`],TV:[`688`,`00`,`(?:2|7\\d\\d|90)\\d{4}`,[5,6,7],[[`(\\d{2})(\\d{3})`,`$1 $2`,[`2`]],[`(\\d{2})(\\d{4})`,`$1 $2`,[`90`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],TW:[`886`,`0(?:0[25-79]|19)`,`[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}`,[7,8,9,10,11],[[`(\\d{2})(\\d)(\\d{4})`,`$1 $2 $3`,[`202`],`0$1`],[`(\\d{3})(\\d{5})`,`$1 $2`,[`826`],`0$1`],[`(\\d{3})(\\d{2})(\\d{3})`,`$1 $2 $3`,[`83`],`0$1`],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`82`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[25]0|37|49|8[09]`],`0$1`],[`(\\d)(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`[23568]|4(?:0[02-48]|[1-478])|7[1-9]`,`[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{2})(\\d{4})(\\d{4,5})`,`$1 $2 $3`,[`7`],`0$1`]],`0`,0,0,0,0,0,0,0,`#`],TZ:[`255`,`00[056]`,`(?:[25-8]\\d|41|90)\\d{7}`,[9],[[`(\\d{3})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[24]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`5`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[67]`],`0$1`]],`0`],UA:[`380`,`00`,`[89]\\d{9}|[3-9]\\d{8}`,[9,10],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]`,`6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]`],`0$1`],[`(\\d{4})(\\d{5})`,`$1 $2`,[`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])`,`3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[3-7]|89|9[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[89]`],`0$1`]],`0`,0,0,0,0,0,0,`0~0`],UG:[`256`,`00[057]`,`800\\d{6}|(?:[29]0|[347]\\d)\\d{7}`,[9],[[`(\\d{4})(\\d{5})`,`$1 $2`,[`202`,`2024`],`0$1`],[`(\\d{3})(\\d{6})`,`$1 $2`,[`[27-9]|4(?:6[45]|[7-9])`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[34]`],`0$1`]],`0`],US:[`1`,`011`,`[2-9]\\d{9}|3\\d{6}`,[10],[[`(\\d{3})(\\d{4})`,`$1-$2`,[`310`],0,1],[`(\\d{3})(\\d{3})(\\d{4})`,`($1) $2-$3`,[`[2-9]`],0,1,`$1-$2-$3`]],`1`,0,0,0,0,0,[[`(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}`],[``],[`8(?:00|33|44|55|66|77|88)[2-9]\\d{6}`],[`900[2-9]\\d{6}`],[`52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}`]]],UY:[`598`,`0(?:0|1[3-9]\\d)`,`0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}`,[4,5,6,7,8,9,10,11,12,13],[[`(\\d{4,5})`,`$1`,[`21`]],[`(\\d{3})(\\d{3,4})`,`$1 $2`,[`0`]],[`(\\d{3})(\\d{4})`,`$1 $2`,[`[49]0|8`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`9`],`0$1`],[`(\\d{4})(\\d{4})`,`$1 $2`,[`[124]`]],[`(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`0`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})`,`$1 $2 $3 $4`,[`0`]]],`0`,0,0,0,0,0,0,`00`,` int. `],UZ:[`998`,`00`,`(?:20|33|[5-9]\\d)\\d{7}`,[9],[[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`[235-9]`]]]],VA:[`39`,`00`,`0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}`,[6,7,8,9,10,11,12],0,0,0,0,0,0,`06698`],VC:[`1`,`011`,`(?:[58]\\d\\d|784|900)\\d{7}`,[10],0,`1`,0,`([2-7]\\d{6})$|1`,`784$1`,0,`784`],VE:[`58`,`00`,`[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}`,[10],[[`(\\d{3})(\\d{7})`,`$1-$2`,[`[24-689]`],`0$1`]],`0`],VG:[`1`,`011`,`(?:284|[58]\\d\\d|900)\\d{7}`,[10],0,`1`,0,`([2-578]\\d{6})$|1`,`284$1`,0,`284`],VI:[`1`,`011`,`[58]\\d{9}|(?:34|90)0\\d{7}`,[10],0,`1`,0,`([2-9]\\d{6})$|1`,`340$1`,0,`340`],VN:[`84`,`00`,`[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}`,[7,8,9,10],[[`(\\d{4})(\\d{4,6})`,`$1 $2`,[`1(?:2[02]|[89])`],0,1],[`(\\d{2})(\\d{3})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`1[26]|6`],`0$1`,1],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[357-9]`],`0$1`,1],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`2[48]`],`0$1`,1],[`(\\d{3})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`2`],`0$1`,1]],`0`],VU:[`678`,`00`,`[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}`,[5,7],[[`(\\d{3})(\\d{4})`,`$1 $2`,[`[57-9]`]]]],WF:[`681`,`00`,`(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}`,[6,9],[[`(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3`,[`[47-9]`]],[`(\\d{3})(\\d{2})(\\d{2})(\\d{2})`,`$1 $2 $3 $4`,[`8`]]]],WS:[`685`,`0`,`(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}`,[5,6,7,10],[[`(\\d{5})`,`$1`,[`[2-5]|6[1-9]`]],[`(\\d{3})(\\d{3,7})`,`$1 $2`,[`[68]`]],[`(\\d{2})(\\d{5})`,`$1 $2`,[`7`]]]],XK:[`383`,`00`,`2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}`,[8,9,10,11,12],[[`(\\d{3})(\\d{5})`,`$1 $2`,[`[89]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[2-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`2|39`],`0$1`],[`(\\d{2})(\\d{7,10})`,`$1 $2`,[`3`],`0$1`]],`0`],YE:[`967`,`00`,`(?:1|7\\d)\\d{7}|[1-7]\\d{6}`,[7,8,9],[[`(\\d)(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`[1-6]|7(?:[24-6]|8[0-7])`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`7`],`0$1`]],`0`],YT:[`262`,`00`,`(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}`,[9],0,`0`,0,0,0,0,0,[[`26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}`],[`(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}`],[`80\\d{7}`],0,0,0,0,0,[`9(?:(?:39|47)8[01]|769\\d)\\d{4}`]]],ZA:[`27`,`00`,`[1-79]\\d{8}|8\\d{4,9}`,[5,6,7,8,9,10],[[`(\\d{2})(\\d{3,4})`,`$1 $2`,[`8[1-4]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{2,3})`,`$1 $2 $3`,[`8[1-4]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`860`],`0$1`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`[1-9]`],`0$1`],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`8`],`0$1`]],`0`],ZM:[`260`,`00`,`800\\d{6}|(?:21|[579]\\d|63)\\d{7}`,[9],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[28]`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`[579]`],`0$1`]],`0`],ZW:[`263`,`00`,`2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}`,[5,6,7,8,9,10],[[`(\\d{3})(\\d{3,5})`,`$1 $2`,[`2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]`],`0$1`],[`(\\d)(\\d{3})(\\d{2,4})`,`$1 $2 $3`,[`[49]`],`0$1`],[`(\\d{3})(\\d{4})`,`$1 $2`,[`80`],`0$1`],[`(\\d{2})(\\d{7})`,`$1 $2`,[`24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2`,`2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]`],`(0$1)`],[`(\\d{2})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`7`],`0$1`],[`(\\d{3})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)`,`2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)`],`0$1`],[`(\\d{4})(\\d{6})`,`$1 $2`,[`8`],`0$1`],[`(\\d{2})(\\d{3,5})`,`$1 $2`,[`1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]`],`0$1`],[`(\\d{2})(\\d{3})(\\d{3,4})`,`$1 $2 $3`,[`29[013-9]|39|54`],`0$1`],[`(\\d{4})(\\d{3,5})`,`$1 $2`,[`(?:25|54)8`,`258|5483`],`0$1`]],`0`]},nonGeographic:{800:[`800`,0,`(?:00|[1-9]\\d)\\d{6}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`\\d`]]],0,0,0,0,0,0,[0,0,[`(?:00|[1-9]\\d)\\d{6}`]]],808:[`808`,0,`[1-9]\\d{7}`,[8],[[`(\\d{4})(\\d{4})`,`$1 $2`,[`[1-9]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[`[1-9]\\d{7}`]]],870:[`870`,0,`7\\d{11}|[235-7]\\d{8}`,[9,12],[[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`[235-7]`]]],0,0,0,0,0,0,[0,[`(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}`],0,0,0,0,0,0,[`2\\d{8}`,[9]]]],878:[`878`,0,`10\\d{10}`,[12],[[`(\\d{2})(\\d{5})(\\d{5})`,`$1 $2 $3`,[`1`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`10\\d{10}`]]],881:[`881`,0,`6\\d{9}|[0-36-9]\\d{8}`,[9,10],[[`(\\d)(\\d{3})(\\d{5})`,`$1 $2 $3`,[`[0-37-9]`]],[`(\\d)(\\d{3})(\\d{5,6})`,`$1 $2 $3`,[`6`]]],0,0,0,0,0,0,[0,[`6\\d{9}|[0-36-9]\\d{8}`]]],882:[`882`,0,`[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?`,[7,8,9,10,11,12],[[`(\\d{2})(\\d{5})`,`$1 $2`,[`16|342`]],[`(\\d{2})(\\d{6})`,`$1 $2`,[`49`]],[`(\\d{2})(\\d{2})(\\d{4})`,`$1 $2 $3`,[`1[36]|9`]],[`(\\d{2})(\\d{4})(\\d{3})`,`$1 $2 $3`,[`3[23]`]],[`(\\d{2})(\\d{3,4})(\\d{4})`,`$1 $2 $3`,[`16`]],[`(\\d{2})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`10|23|3(?:[15]|4[57])|4|5[12]`]],[`(\\d{3})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`34`]],[`(\\d{2})(\\d{4,5})(\\d{5})`,`$1 $2 $3`,[`[1-35]`]]],0,0,0,0,0,0,[0,[`342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}`,[7,8,9,10,12]],0,0,0,[`348[57]\\d{7}`,[11]],0,0,[`1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}`]]],883:[`883`,0,`(?:[1-4]\\d|51)\\d{6,10}`,[8,9,10,11,12],[[`(\\d{3})(\\d{3})(\\d{2,8})`,`$1 $2 $3`,[`[14]|2[24-689]|3[02-689]|51[24-9]`]],[`(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3`,[`510`]],[`(\\d{3})(\\d{3})(\\d{4})`,`$1 $2 $3`,[`21`]],[`(\\d{4})(\\d{4})(\\d{4})`,`$1 $2 $3`,[`51[13]`]],[`(\\d{3})(\\d{3})(\\d{3})(\\d{3})`,`$1 $2 $3 $4`,[`[235]`]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[`(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}`]]],888:[`888`,0,`\\d{11}`,[11],[[`(\\d{3})(\\d{3})(\\d{5})`,`$1 $2 $3`]],0,0,0,0,0,0,[0,0,0,0,0,0,[`\\d{11}`]]],979:[`979`,0,`[1359]\\d{8}`,[9],[[`(\\d)(\\d{4})(\\d{4})`,`$1 $2 $3`,[`[1359]`]]],0,0,0,0,0,0,[0,0,0,[`[1359]\\d{8}`]]]}};function vR(e,t){var n=Array.prototype.slice.call(t);return n.push(_R),e.apply(this,n)}function yR(e,t){e=e.split(`-`),t=t.split(`-`);for(var n=e[0].split(`.`),r=t[0].split(`.`),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var bR={}.constructor;function xR(e){return e!=null&&e.constructor===bR}var SR=/^\d+$/;function CR(e){return SR.test(e)}function wR(e){"@babel/helpers - typeof";return wR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},wR(e)}function TR(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function ER(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,OR(r.key),r)}}function DR(e,t,n){return t&&ER(e.prototype,t),n&&ER(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OR(e){var t=kR(e,`string`);return wR(t)==`symbol`?t:t+``}function kR(e,t){if(wR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(wR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var AR=`1.2.0`,jR=`1.7.35`,MR=` ext. `,NR=function(){function e(t){TR(this,e),zR(t),this.metadata=t,UR.call(this,t)}return DR(e,[{key:`getCountries`,value:function(){return Object.keys(this.metadata.countries).filter(function(e){return e!==`001`})}},{key:`getCountryMetadata`,value:function(e){return this.metadata.countries[e]}},{key:`nonGeographic`,value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:`hasCountry`,value:function(e){return this.getCountryMetadata(e)!==void 0}},{key:`hasCallingCode`,value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&t.length===1&&t[0]===`001`)return!0}}},{key:`isNonGeographicCallingCode`,value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:`country`,value:function(e){return this.selectNumberingPlan(e)}},{key:`selectNumberingPlan`,value:function(e,t){var n,r;if(e&&(CR(e)?r=e:n=e),t&&(r=t),n&&n!==`001`){var i=this.getCountryMetadata(n);if(!i)throw Error(`Unknown country: ${n}`);this.numberingPlan=new PR(i,this)}else if(r){if(!this.hasCallingCode(r))throw Error(`Unknown calling code: ${r}`);this.numberingPlan=new PR(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:`getCountryCodesForCallingCode`,value:function(e){var t=this.countryCallingCodes()[e];if(t)return t.length===1&&t[0].length===3?void 0:t}},{key:`getCountryCodeForCallingCode`,value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:`getNumberingPlanMetadata`,value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&r.length===1&&r[0]===`001`)return this.metadata.countries[`001`]}}},{key:`countryCallingCode`,value:function(){return this.numberingPlan.callingCode()}},{key:`IDDPrefix`,value:function(){return this.numberingPlan.IDDPrefix()}},{key:`defaultIDDPrefix`,value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:`nationalNumberPattern`,value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:`possibleLengths`,value:function(){return this.numberingPlan.possibleLengths()}},{key:`formats`,value:function(){return this.numberingPlan.formats()}},{key:`nationalPrefixForParsing`,value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:`nationalPrefixTransformRule`,value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:`leadingDigits`,value:function(){return this.numberingPlan.leadingDigits()}},{key:`hasTypes`,value:function(){return this.numberingPlan.hasTypes()}},{key:`type`,value:function(e){return this.numberingPlan.type(e)}},{key:`ext`,value:function(){return this.numberingPlan.ext()}},{key:`countryCallingCodes`,value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:`chooseCountryByCountryCallingCode`,value:function(e){return this.selectNumberingPlan(e)}},{key:`hasSelectedNumberingPlan`,value:function(){return this.numberingPlan!==void 0}}])}(),PR=function(){function e(t,n){TR(this,e),this.globalMetadataObject=n,this.metadata=t,UR.call(this,n.metadata)}return DR(e,[{key:`callingCode`,value:function(){return this.metadata[0]}},{key:`_getDefaultCountryMetadataForThisCallingCode`,value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:`getDefaultCountryMetadataForRegion`,value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:`IDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:`defaultIDDPrefix`,value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:`nationalNumberPattern`,value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:`possibleLengths`,value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:`_getFormats`,value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:`formats`,value:function(){var e=this;return(this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(t){return new FR(t,e)})}},{key:`nationalPrefix`,value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:`_getNationalPrefixFormattingRule`,value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:`_nationalPrefixForParsing`,value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:`nationalPrefixForParsing`,value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:`nationalPrefixTransformRule`,value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:`_getNationalPrefixIsOptionalWhenFormatting`,value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:`leadingDigits`,value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:`types`,value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:`hasTypes`,value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:`type`,value:function(e){if(this.hasTypes()&&RR(this.types(),e))return new LR(RR(this.types(),e),this)}},{key:`ext`,value:function(){return this.v1||this.v2?MR:this.metadata[13]||MR}}])}(),FR=function(){function e(t,n){TR(this,e),this._format=t,this.metadata=n}return DR(e,[{key:`pattern`,value:function(){return this._format[0]}},{key:`format`,value:function(){return this._format[1]}},{key:`leadingDigitsPatterns`,value:function(){return this._format[2]||[]}},{key:`nationalPrefixFormattingRule`,value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:`nationalPrefixIsOptionalWhenFormattingInNationalFormat`,value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`nationalPrefixIsMandatoryWhenFormattingInNationalFormat`,value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:`usesNationalPrefix`,value:function(){return!!(this.nationalPrefixFormattingRule()&&!IR.test(this.nationalPrefixFormattingRule()))}},{key:`internationalFormat`,value:function(){return this._format[5]||this.format()}}])}(),IR=/^\(?\$1\)?$/,LR=function(){function e(t,n){TR(this,e),this.type=t,this.metadata=n}return DR(e,[{key:`pattern`,value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:`possibleLengths`,value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function RR(e,t){switch(t){case`FIXED_LINE`:return e[0];case`MOBILE`:return e[1];case`TOLL_FREE`:return e[2];case`PREMIUM_RATE`:return e[3];case`PERSONAL_NUMBER`:return e[4];case`VOICEMAIL`:return e[5];case`UAN`:return e[6];case`PAGER`:return e[7];case`VOIP`:return e[8];case`SHARED_COST`:return e[9]}}function zR(e){if(!e)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!xR(e)||!xR(e.countries))throw Error(`[libphonenumber-js] \`metadata\` argument was passed but it's not a valid metadata. Must be an object having \`.countries\` child object property. Got ${xR(e)?`an object of shape: { `+Object.keys(e).join(`, `)+` }`:`a `+BR(e)+`: `+e}.`)}var BR=function(e){return wR(e)};function VR(e,t){var n=new NR(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw Error(`Unknown country: ${e}`)}function HR(e,t){return t.countries.hasOwnProperty(e)}function UR(e){var t=e.version;typeof t==`number`?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?yR(t,AR)===-1?this.v2=!0:yR(t,jR)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function WR(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=GR(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
459
459
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GR(e,t){if(e){if(typeof e==`string`)return KR(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KR(e,t):void 0}}function KR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qR(e,t){for(var n=e.slice(),r=WR(t),i;!(i=r()).done;){var a=i.value;e.indexOf(a)<0&&n.push(a)}return n.sort(function(e,t){return e-t})}function JR(e,t,n){return YR(e,void 0,t,n)}function YR(e,t,n,r){n&&(r=new NR(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return`IS_POSSIBLE`;if(t===`FIXED_LINE_OR_MOBILE`){if(!r.type(`FIXED_LINE`))return YR(e,`MOBILE`,n,r);var o=r.type(`MOBILE`);o&&(a=qR(a,o.possibleLengths()))}else if(t&&!i)return`INVALID_LENGTH`;var s=e.length,c=a[0];return c===s?`IS_POSSIBLE`:c>s?`TOO_SHORT`:a[a.length-1]<s?`TOO_LONG`:a.indexOf(s,1)>=0?`IS_POSSIBLE`:`INVALID_LENGTH`}function XR(e,t,n){t===void 0&&(t={});var r=new NR(n);if(t.v2){if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw Error(`Invalid phone number object passed`);r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return ZR(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw Error(`Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.`)}function ZR(e,t){switch(JR(e,void 0,t)){case`IS_POSSIBLE`:return!0;default:return!1}}function QR(e,t){return e||=``,RegExp(`^(?:`+t+`)$`).test(e)}function $R(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=ez(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
460
460
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ez(e,t){if(e){if(typeof e==`string`)return tz(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tz(e,t):void 0}}function tz(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nz=[`MOBILE`,`PREMIUM_RATE`,`TOLL_FREE`,`SHARED_COST`,`VOIP`,`PERSONAL_NUMBER`,`PAGER`,`UAN`,`VOICEMAIL`];function rz(e,t,n){if(t||={},!(!e.country&&!e.countryCallingCode)){var r=new NR(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(QR(i,r.nationalNumberPattern())){if(iz(i,`FIXED_LINE`,r))return r.type(`MOBILE`)&&r.type(`MOBILE`).pattern()===``||!r.type(`MOBILE`)||iz(i,`MOBILE`,r)?`FIXED_LINE_OR_MOBILE`:`FIXED_LINE`;for(var a=$R(nz),o;!(o=a()).done;){var s=o.value;if(iz(i,s,r))return s}}}}function iz(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:QR(e,r.pattern())}function az(e,t,n){t||={};var r=new NR(n);return r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes()?rz(e,t,r.metadata)!==void 0:QR(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}var oz=/^[A-Z]{2}$/;function sz(e){return oz.test(e)}function cz(e,t){var n,r,i=new NR(t);return sz(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=e,{country:n,callingCode:r}}function lz(e,t,n){var r=new NR(n).getCountryCodesForCallingCode(e);return r?r.filter(function(e){return uz(t,e,n)}):[]}function uz(e,t,n){var r=new NR(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var dz=`0-90-9٠-٩۰-۹`,fz=`-‐-―−ー-//.. \xA0­​⁠ ()()[]\\[\\]~⁓∼~`,pz=`++`,mz=RegExp(`([`+dz+`])`);function hz(e,t,n,r){if(t){var i=new NR(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var o=e.match(mz);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]===`0`))return e}}}function gz(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=RegExp(`^(?:`+t.numberingPlan.nationalPrefixForParsing()+`)`),r=n.exec(e);if(r){var i,a,o=r.length-1,s=o>0&&r[o];if(t.nationalPrefixTransformRule()&&s)i=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(a=r[1]);else{var c=r[0];i=e.slice(c.length),s&&(a=r[1])}var l;if(s){var u=e.indexOf(r[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(l=t.numberingPlan.nationalPrefix())}else l=r[0];return{nationalNumber:i,nationalPrefix:l,carrierCode:a}}}return{nationalNumber:e}}function _z(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=vz(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
461
461
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vz(e,t){if(e){if(typeof e==`string`)return yz(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yz(e,t):void 0}}function yz(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bz(e,t,n){for(var r=new NR(n),i=_z(t),a;!(a=i()).done;){var o=a.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(rz({phone:e,country:o},void 0,r.metadata))return o}}function xz(e,t){var n=t.nationalNumber,r=t.metadata,i=r.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:bz(n,i,r.metadata)}function Sz(e,t,n){var r=gz(e,n),i=r.carrierCode,a=r.nationalNumber;return a!==e&&(!Cz(e,a,n)||n.numberingPlan.possibleLengths()&&(t||=xz(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n}),!wz(a,t,n)))?{nationalNumber:e}:{nationalNumber:a,carrierCode:i}}function Cz(e,t,n){return!(QR(e,n.nationalNumberPattern())&&!QR(t,n.nationalNumberPattern()))}function wz(e,t,n){switch(JR(e,t,n)){case`TOO_SHORT`:case`INVALID_LENGTH`:return!1;default:return!0}}function Tz(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?VR(t||n,i):r;if(e.indexOf(a)===0){var o=new NR(i);o.selectNumberingPlan(t||n||r);var s=e.slice(a.length),c=Sz(s,void 0,o).nationalNumber,l=Sz(e,void 0,o).nationalNumber;if(!QR(l,o.nationalNumberPattern())&&QR(c,o.nationalNumberPattern())||JR(l,void 0,o)===`TOO_LONG`)return{countryCallingCode:a,number:s}}return{number:e}}function Ez(e,t,n,r,i){if(!e)return{};var a;if(e[0]!==`+`){var o=hz(e,t||n,r,i);if(o&&o!==e)a=!0,e=`+`+o;else{if(t||n||r){var s=Tz(e,t,n,r,i),c=s.countryCallingCode,l=s.number;if(c)return{countryCallingCodeSource:`FROM_NUMBER_WITHOUT_PLUS_SIGN`,countryCallingCode:c,number:l}}return{number:e}}}if(e[1]===`0`)return{};for(var u=new NR(i),d=2;d-1<=3&&d<=e.length;){var f=e.slice(1,d);if(u.hasCallingCode(f))return u.selectNumberingPlan(f),{countryCallingCodeSource:a?`FROM_NUMBER_WITH_IDD`:`FROM_NUMBER_WITH_PLUS_SIGN`,countryCallingCode:f,number:e.slice(d)};d++}return{}}function Dz(e){return e.replace(RegExp(`[${fz}]+`,`g`),` `).trim()}var Oz=/(\$\d)/;function kz(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var a=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(Oz,t.nationalPrefixFormattingRule()):t.format());return r?Dz(a):a}var Az=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function jz(e,t,n){var r=new NR(n);if(r.selectNumberingPlan(e||t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(Az.test(r.IDDPrefix()))return r.IDDPrefix()}var Mz=`;ext=`,Nz=function(e){return`([${dz}]{1,${e}})`};function Pz(e){var t=`20`,n=`15`,r=`9`,i=`6`,a=`[ \xA0\\t,]*`,o=`[:\\..]?[ \xA0\\t,-]*`,s=`#?`,c=`(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)`,l=`(?:[xx##~~]|int|int)`,u=`[- ]+`,d=`[ \xA0\\t]*`,f=`(?:,{2}|;)`,p=Mz+Nz(t),m=a+c+o+Nz(t)+s,h=a+l+o+Nz(r)+s,g=u+Nz(i)+`#`,_=d+f+o+Nz(n)+s,v=d+`(?:,)+`+o+Nz(r)+s;return p+`|`+m+`|`+h+`|`+g+`|`+_+`|`+v}var Fz=`[`+dz+`]{2}`,Iz=`[`+pz+`]{0,1}(?:[`+fz+`]*[`+dz+`]){3,}[`+fz+dz+`]*`,Lz=RegExp(`^[`+pz+`]{0,1}(?:[`+fz+`]*[`+dz+`]){1,2}$`,`i`),Rz=Iz+`(?:`+Pz()+`)?`,zz=RegExp(`^`+Fz+`$|^`+Rz+`$`,`i`);function Bz(e){return e.length>=2&&zz.test(e)}function Vz(e){return Lz.test(e)}function Hz(e){var t=e.number,n=e.ext;if(!t)return``;if(t[0]!==`+`)throw Error(`"formatRFC3966()" expects "number" to be in E.164 format.`);return`tel:${t}${n?`;ext=`+n:``}`}var Uz={formatExtension:function(e,t,n){return`${e}${n.ext()}${t}`}};function Wz(e,t,n,r){n=n?Yz({},Uz,n):Uz;var i=new NR(r);if(e.country&&e.country!==`001`){if(!i.hasCountry(e.country))throw Error(`Unknown country: ${e.country}`);i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||``;var a=i.countryCallingCode(),o=n.v2?e.nationalNumber:e.phone,s;switch(t){case`NATIONAL`:return o?(s=Gz(o,e.carrierCode,`NATIONAL`,i,n),qz(s,e.ext,i,n.formatExtension)):``;case`INTERNATIONAL`:return o?(s=Gz(o,null,`INTERNATIONAL`,i,n),s=`+${a} ${s}`,qz(s,e.ext,i,n.formatExtension)):`+${a}`;case`E.164`:return`+${a}${o}`;case`RFC3966`:return Hz({number:`+${a}${o}`,ext:e.ext});case`IDD`:if(!n.fromCountry)return;var c=Jz(o,e.carrierCode,a,n.fromCountry,i);return c?qz(c,e.ext,i,n.formatExtension):void 0;default:throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`)}}function Gz(e,t,n,r,i){var a=Kz(r.formats(),e);return a?kz(e,a,{useInternationalFormat:n===`INTERNATIONAL`,withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function Kz(e,t){return Xz(e,function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return!1}return QR(t,e.pattern())})}function qz(e,t,n,r){return t?r(e,t,n):e}function Jz(e,t,n,r,i){if(VR(r,i.metadata)===n){var a=Gz(e,t,`NATIONAL`,i);return n===`1`?n+` `+a:a}var o=jz(r,void 0,i.metadata);if(o)return`${o} ${n} ${Gz(e,null,`INTERNATIONAL`,i)}`}function Yz(){for(var e=1,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function Xz(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function Zz(e){"@babel/helpers - typeof";return Zz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Zz(e)}function Qz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Qz(Object(n),!0).forEach(function(t){eB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eB(e,t,n){return(t=iB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function nB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,iB(r.key),r)}}function rB(e,t,n){return t&&nB(e.prototype,t),n&&nB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iB(e){var t=aB(e,`string`);return Zz(t)==`symbol`?t:t+``}function aB(e,t){if(Zz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Zz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var oB=function(){function e(t,n,r){if(tB(this,e),!t)throw TypeError(`First argument is required`);if(typeof t!=`string`)throw TypeError(`First argument must be a string`);if(t[0]===`+`&&!n)throw TypeError("`metadata` argument not passed");if(xR(n)&&xR(n.countries)){r=n;var i=t;if(!sB.test(i))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=Ez(i,void 0,void 0,void 0,r),o=a.countryCallingCode;if(n=a.number,t=o,!n)throw Error("Invalid `number` argument passed: too short")}if(!n)throw TypeError("`nationalNumber` argument is required");if(typeof n!=`string`)throw TypeError("`nationalNumber` argument must be a string");zR(r);var s=cz(t,r),c=s.country,l=s.callingCode;this.country=c,this.countryCallingCode=l,this.nationalNumber=n,this.number=`+`+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return rB(e,[{key:`setExt`,value:function(e){this.ext=e}},{key:`getPossibleCountries`,value:function(){return this.country?[this.country]:lz(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:`isPossible`,value:function(){return XR(this,{v2:!0},this.getMetadata())}},{key:`isValid`,value:function(){return az(this,{v2:!0},this.getMetadata())}},{key:`isNonGeographic`,value:function(){return new NR(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:`isEqual`,value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:`getType`,value:function(){return rz(this,{v2:!0},this.getMetadata())}},{key:`format`,value:function(e,t){return Wz(this,e,t?$z($z({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:`formatNational`,value:function(e){return this.format(`NATIONAL`,e)}},{key:`formatInternational`,value:function(e){return this.format(`INTERNATIONAL`,e)}},{key:`getURI`,value:function(e){return this.format(`RFC3966`,e)}}])}(),sB=/^\+\d+$/;function cB(e){"@babel/helpers - typeof";return cB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cB(e)}function lB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,dB(r.key),r)}}function uB(e,t,n){return t&&lB(e.prototype,t),n&&lB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dB(e){var t=fB(e,`string`);return cB(t)==`symbol`?t:t+``}function fB(e,t){if(cB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(cB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function pB(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function mB(e,t,n){return t=CB(t),hB(e,bB()?Reflect.construct(t,n||[],CB(e).constructor):t.apply(e,n))}function hB(e,t){if(t&&(cB(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return gB(e)}function gB(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function _B(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SB(e,t)}function vB(e){var t=typeof Map==`function`?new Map:void 0;return vB=function(e){if(e===null||!xB(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return yB(e,arguments,CB(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),SB(n,e)},vB(e)}function yB(e,t,n){if(bB())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&SB(i,n.prototype),i}function bB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bB=function(){return!!e})()}function xB(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function SB(e,t){return SB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},SB(e,t)}function CB(e){return CB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CB(e)}var wB=function(e){function t(e){var n;return pB(this,t),n=mB(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return _B(t,e),uB(t)}(vB(Error)),TB=RegExp(`(?:`+Pz()+`)$`,`i`);function EB(e){var t=e.search(TB);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(TB),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}var DB={0:`0`,1:`1`,2:`2`,3:`3`,4:`4`,5:`5`,6:`6`,7:`7`,8:`8`,9:`9`,"0":`0`,"1":`1`,"2":`2`,"3":`3`,"4":`4`,"5":`5`,"6":`6`,"7":`7`,"8":`8`,"9":`9`,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,"۰":`0`,"۱":`1`,"۲":`2`,"۳":`3`,"۴":`4`,"۵":`5`,"۶":`6`,"۷":`7`,"۸":`8`,"۹":`9`};function OB(e){return DB[e]}function kB(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=AB(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
@@ -487,7 +487,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
487
487
  <tbody>
488
488
  <tr>
489
489
  <td
490
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
490
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
491
491
  <table
492
492
  align="center"
493
493
  width="100%"
@@ -531,11 +531,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
531
531
  <tr>
532
532
  <td>
533
533
  <h1
534
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
534
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
535
535
  {{ password_reset_title }}
536
536
  </h1>
537
537
  <p
538
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
538
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
539
539
  {{ reset_password_email_click_to_reset }}
540
540
  </p>
541
541
  <table
@@ -571,7 +571,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
571
571
  {{ link_email_fallback_intro }}
572
572
  </p>
573
573
  <p
574
- style="font-size:13px;line-height:24px;word-break:break-all;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
574
+ style="font-size:13px;line-height:24px;word-break:break-all;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
575
575
  <a
576
576
  href="{{ url }}"
577
577
  style="color:{{ branding.primary_color }};text-decoration-line:none"
@@ -596,11 +596,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
596
596
  <tr>
597
597
  <td>
598
598
  <p
599
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
599
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
600
600
  {{ kind_regards }}
601
601
  </p>
602
602
  <p
603
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
603
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
604
604
  {{ team_signature }}
605
605
  </p>
606
606
  </td>
@@ -620,7 +620,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
620
620
  <tr>
621
621
  <td>
622
622
  <p
623
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
623
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
624
624
  {{ support_info }}<!-- -->
625
625
  <!-- -->{% if tenant.support_url %}<a
626
626
  href="{{ tenant.support_url }}"
@@ -650,7 +650,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
650
650
  <tr>
651
651
  <td>
652
652
  <p
653
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
653
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
654
654
  {{ footer.address }}
655
655
  </p>
656
656
  </td>
@@ -670,7 +670,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
670
670
  <tr>
671
671
  <td>
672
672
  <p
673
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
673
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
674
674
  {{ copyright }}
675
675
  </p>
676
676
  </td>
@@ -711,7 +711,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
711
711
  <tbody>
712
712
  <tr>
713
713
  <td
714
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
714
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
715
715
  <table
716
716
  align="center"
717
717
  width="100%"
@@ -755,11 +755,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
755
755
  <tr>
756
756
  <td>
757
757
  <h1
758
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
758
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
759
759
  {{ password_reset_title }}
760
760
  </h1>
761
761
  <p
762
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
762
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
763
763
  {{ reset_password_email_enter_code }}
764
764
  </p>
765
765
  <p
@@ -767,7 +767,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
767
767
  {{ code }}
768
768
  </p>
769
769
  <p
770
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
770
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
771
771
  {{ code_valid_30_minutes }}
772
772
  </p>
773
773
  </td>
@@ -787,11 +787,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
787
787
  <tr>
788
788
  <td>
789
789
  <p
790
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
790
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
791
791
  {{ kind_regards }}
792
792
  </p>
793
793
  <p
794
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
794
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
795
795
  {{ team_signature }}
796
796
  </p>
797
797
  </td>
@@ -811,7 +811,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
811
811
  <tr>
812
812
  <td>
813
813
  <p
814
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
814
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
815
815
  {{ support_info }}<!-- -->
816
816
  <!-- -->{% if tenant.support_url %}<a
817
817
  href="{{ tenant.support_url }}"
@@ -841,7 +841,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
841
841
  <tr>
842
842
  <td>
843
843
  <p
844
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
844
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
845
845
  {{ footer.address }}
846
846
  </p>
847
847
  </td>
@@ -861,7 +861,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
861
861
  <tr>
862
862
  <td>
863
863
  <p
864
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
864
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
865
865
  {{ copyright }}
866
866
  </p>
867
867
  </td>
@@ -902,7 +902,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
902
902
  <tbody>
903
903
  <tr>
904
904
  <td
905
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
905
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
906
906
  <table
907
907
  align="center"
908
908
  width="100%"
@@ -946,11 +946,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
946
946
  <tr>
947
947
  <td>
948
948
  <h1
949
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
949
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
950
950
  {{ welcome_to_your_account }}
951
951
  </h1>
952
952
  <p
953
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
953
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
954
954
  {{ link_email_click_to_login }}
955
955
  </p>
956
956
  <table
@@ -986,7 +986,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
986
986
  {{ link_email_fallback_intro }}
987
987
  </p>
988
988
  <p
989
- style="font-size:13px;line-height:24px;word-break:break-all;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
989
+ style="font-size:13px;line-height:24px;word-break:break-all;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
990
990
  <a
991
991
  href="{{ url }}"
992
992
  style="color:{{ branding.primary_color }};text-decoration-line:none"
@@ -996,7 +996,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
996
996
  </p>
997
997
  {% if code %}
998
998
  <p
999
- style="font-size:14px;line-height:24px;text-align:center;color:rgb(113,113,123);margin-top:1.5rem;margin-bottom:0">
999
+ style="font-size:14px;line-height:24px;text-align:center;color:rgb(113,113,123);margin-top:1.5rem;margin-bottom:0px">
1000
1000
  {{ link_email_or_enter_code }}
1001
1001
  </p>
1002
1002
  <p
@@ -1004,7 +1004,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1004
1004
  {{ code }}
1005
1005
  </p>
1006
1006
  <p
1007
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1007
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1008
1008
  {{ code_valid_30_minutes }}
1009
1009
  </p>
1010
1010
  {% endif %}
@@ -1025,11 +1025,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1025
1025
  <tr>
1026
1026
  <td>
1027
1027
  <p
1028
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1028
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1029
1029
  {{ kind_regards }}
1030
1030
  </p>
1031
1031
  <p
1032
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
1032
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
1033
1033
  {{ team_signature }}
1034
1034
  </p>
1035
1035
  </td>
@@ -1049,7 +1049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1049
1049
  <tr>
1050
1050
  <td>
1051
1051
  <p
1052
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1052
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1053
1053
  {{ support_info }}<!-- -->
1054
1054
  <!-- -->{% if tenant.support_url %}<a
1055
1055
  href="{{ tenant.support_url }}"
@@ -1079,7 +1079,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1079
1079
  <tr>
1080
1080
  <td>
1081
1081
  <p
1082
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1082
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1083
1083
  {{ footer.address }}
1084
1084
  </p>
1085
1085
  </td>
@@ -1099,7 +1099,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1099
1099
  <tr>
1100
1100
  <td>
1101
1101
  <p
1102
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1102
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1103
1103
  {{ copyright }}
1104
1104
  </p>
1105
1105
  </td>
@@ -1140,7 +1140,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1140
1140
  <tbody>
1141
1141
  <tr>
1142
1142
  <td
1143
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
1143
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
1144
1144
  <table
1145
1145
  align="center"
1146
1146
  width="100%"
@@ -1184,11 +1184,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1184
1184
  <tr>
1185
1185
  <td>
1186
1186
  <h1
1187
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
1187
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
1188
1188
  {{ welcome_to_your_account }}
1189
1189
  </h1>
1190
1190
  <p
1191
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
1191
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
1192
1192
  {{ link_email_click_to_login }}
1193
1193
  </p>
1194
1194
  <p
@@ -1196,7 +1196,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1196
1196
  {{ code }}
1197
1197
  </p>
1198
1198
  <p
1199
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1199
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1200
1200
  {{ code_valid_30_minutes }}
1201
1201
  </p>
1202
1202
  </td>
@@ -1216,11 +1216,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1216
1216
  <tr>
1217
1217
  <td>
1218
1218
  <p
1219
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1219
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1220
1220
  {{ kind_regards }}
1221
1221
  </p>
1222
1222
  <p
1223
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
1223
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
1224
1224
  {{ team_signature }}
1225
1225
  </p>
1226
1226
  </td>
@@ -1240,7 +1240,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1240
1240
  <tr>
1241
1241
  <td>
1242
1242
  <p
1243
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1243
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1244
1244
  {{ support_info }}<!-- -->
1245
1245
  <!-- -->{% if tenant.support_url %}<a
1246
1246
  href="{{ tenant.support_url }}"
@@ -1270,7 +1270,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1270
1270
  <tr>
1271
1271
  <td>
1272
1272
  <p
1273
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1273
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1274
1274
  {{ footer.address }}
1275
1275
  </p>
1276
1276
  </td>
@@ -1290,7 +1290,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1290
1290
  <tr>
1291
1291
  <td>
1292
1292
  <p
1293
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1293
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1294
1294
  {{ copyright }}
1295
1295
  </p>
1296
1296
  </td>
@@ -1331,7 +1331,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1331
1331
  <tbody>
1332
1332
  <tr>
1333
1333
  <td
1334
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
1334
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
1335
1335
  <table
1336
1336
  align="center"
1337
1337
  width="100%"
@@ -1375,11 +1375,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1375
1375
  <tr>
1376
1376
  <td>
1377
1377
  <h1
1378
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
1378
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
1379
1379
  {{ welcome_to_your_account }}
1380
1380
  </h1>
1381
1381
  <p
1382
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
1382
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
1383
1383
  {{ welcome_body }}
1384
1384
  </p>
1385
1385
  {% if url %}
@@ -1416,7 +1416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1416
1416
  {{ link_email_fallback_intro }}
1417
1417
  </p>
1418
1418
  <p
1419
- style="font-size:13px;line-height:24px;word-break:break-all;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1419
+ style="font-size:13px;line-height:24px;word-break:break-all;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1420
1420
  <a
1421
1421
  href="{{ url }}"
1422
1422
  style="color:{{ branding.primary_color }};text-decoration-line:none"
@@ -1442,11 +1442,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1442
1442
  <tr>
1443
1443
  <td>
1444
1444
  <p
1445
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1445
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1446
1446
  {{ kind_regards }}
1447
1447
  </p>
1448
1448
  <p
1449
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
1449
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
1450
1450
  {{ team_signature }}
1451
1451
  </p>
1452
1452
  </td>
@@ -1466,7 +1466,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1466
1466
  <tr>
1467
1467
  <td>
1468
1468
  <p
1469
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1469
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1470
1470
  {{ support_info }}<!-- -->
1471
1471
  <!-- -->{% if tenant.support_url %}<a
1472
1472
  href="{{ tenant.support_url }}"
@@ -1496,7 +1496,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1496
1496
  <tr>
1497
1497
  <td>
1498
1498
  <p
1499
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1499
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1500
1500
  {{ footer.address }}
1501
1501
  </p>
1502
1502
  </td>
@@ -1516,7 +1516,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1516
1516
  <tr>
1517
1517
  <td>
1518
1518
  <p
1519
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1519
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1520
1520
  {{ copyright }}
1521
1521
  </p>
1522
1522
  </td>
@@ -1557,7 +1557,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1557
1557
  <tbody>
1558
1558
  <tr>
1559
1559
  <td
1560
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
1560
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
1561
1561
  <table
1562
1562
  align="center"
1563
1563
  width="100%"
@@ -1601,11 +1601,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1601
1601
  <tr>
1602
1602
  <td>
1603
1603
  <h1
1604
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
1604
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
1605
1605
  {{ invitation_email_subject }}
1606
1606
  </h1>
1607
1607
  <p
1608
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
1608
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
1609
1609
  {{ invitation_email_intro }}
1610
1610
  </p>
1611
1611
  <p
@@ -1646,7 +1646,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1646
1646
  {{ link_email_fallback_intro }}
1647
1647
  </p>
1648
1648
  <p
1649
- style="font-size:13px;line-height:24px;word-break:break-all;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1649
+ style="font-size:13px;line-height:24px;word-break:break-all;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1650
1650
  <a
1651
1651
  href="{{ url }}"
1652
1652
  style="color:{{ branding.primary_color }};text-decoration-line:none"
@@ -1655,7 +1655,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1655
1655
  >
1656
1656
  </p>
1657
1657
  <p
1658
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin-top:1.5rem;margin-bottom:0">
1658
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin-top:1.5rem;margin-bottom:0px">
1659
1659
  {{ invitation_expires_in }}
1660
1660
  </p>
1661
1661
  </td>
@@ -1675,11 +1675,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1675
1675
  <tr>
1676
1676
  <td>
1677
1677
  <p
1678
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1678
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1679
1679
  {{ kind_regards }}
1680
1680
  </p>
1681
1681
  <p
1682
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
1682
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
1683
1683
  {{ team_signature }}
1684
1684
  </p>
1685
1685
  </td>
@@ -1699,7 +1699,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1699
1699
  <tr>
1700
1700
  <td>
1701
1701
  <p
1702
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1702
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1703
1703
  {{ support_info }}<!-- -->
1704
1704
  <!-- -->{% if tenant.support_url %}<a
1705
1705
  href="{{ tenant.support_url }}"
@@ -1729,7 +1729,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1729
1729
  <tr>
1730
1730
  <td>
1731
1731
  <p
1732
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1732
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1733
1733
  {{ footer.address }}
1734
1734
  </p>
1735
1735
  </td>
@@ -1749,7 +1749,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1749
1749
  <tr>
1750
1750
  <td>
1751
1751
  <p
1752
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1752
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1753
1753
  {{ copyright }}
1754
1754
  </p>
1755
1755
  </td>
@@ -1790,7 +1790,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1790
1790
  <tbody>
1791
1791
  <tr>
1792
1792
  <td
1793
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
1793
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
1794
1794
  <table
1795
1795
  align="center"
1796
1796
  width="100%"
@@ -1834,11 +1834,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1834
1834
  <tr>
1835
1835
  <td>
1836
1836
  <h1
1837
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
1837
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
1838
1838
  {{ blocked_account_title }}
1839
1839
  </h1>
1840
1840
  <p
1841
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
1841
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
1842
1842
  {{ blocked_account_intro }}
1843
1843
  </p>
1844
1844
  <table
@@ -1875,7 +1875,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1875
1875
  {{ link_email_fallback_intro }}
1876
1876
  </p>
1877
1877
  <p
1878
- style="font-size:13px;line-height:24px;word-break:break-all;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1878
+ style="font-size:13px;line-height:24px;word-break:break-all;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1879
1879
  <a
1880
1880
  href="{{ url }}"
1881
1881
  style="color:{{ branding.primary_color }};text-decoration-line:none"
@@ -1900,11 +1900,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1900
1900
  <tr>
1901
1901
  <td>
1902
1902
  <p
1903
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1903
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1904
1904
  {{ kind_regards }}
1905
1905
  </p>
1906
1906
  <p
1907
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
1907
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
1908
1908
  {{ team_signature }}
1909
1909
  </p>
1910
1910
  </td>
@@ -1924,7 +1924,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1924
1924
  <tr>
1925
1925
  <td>
1926
1926
  <p
1927
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1927
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1928
1928
  {{ support_info }}<!-- -->
1929
1929
  <!-- -->{% if tenant.support_url %}<a
1930
1930
  href="{{ tenant.support_url }}"
@@ -1954,7 +1954,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1954
1954
  <tr>
1955
1955
  <td>
1956
1956
  <p
1957
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1957
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1958
1958
  {{ footer.address }}
1959
1959
  </p>
1960
1960
  </td>
@@ -1974,7 +1974,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1974
1974
  <tr>
1975
1975
  <td>
1976
1976
  <p
1977
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
1977
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
1978
1978
  {{ copyright }}
1979
1979
  </p>
1980
1980
  </td>
@@ -2015,7 +2015,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2015
2015
  <tbody>
2016
2016
  <tr>
2017
2017
  <td
2018
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
2018
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
2019
2019
  <table
2020
2020
  align="center"
2021
2021
  width="100%"
@@ -2059,11 +2059,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2059
2059
  <tr>
2060
2060
  <td>
2061
2061
  <h1
2062
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
2062
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
2063
2063
  {{ stolen_credentials_title }}
2064
2064
  </h1>
2065
2065
  <p
2066
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
2066
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
2067
2067
  {{ stolen_credentials_intro }}
2068
2068
  </p>
2069
2069
  <p
@@ -2103,7 +2103,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2103
2103
  {{ link_email_fallback_intro }}
2104
2104
  </p>
2105
2105
  <p
2106
- style="font-size:13px;line-height:24px;word-break:break-all;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2106
+ style="font-size:13px;line-height:24px;word-break:break-all;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2107
2107
  <a
2108
2108
  href="{{ url }}"
2109
2109
  style="color:{{ branding.primary_color }};text-decoration-line:none"
@@ -2128,11 +2128,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2128
2128
  <tr>
2129
2129
  <td>
2130
2130
  <p
2131
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2131
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2132
2132
  {{ kind_regards }}
2133
2133
  </p>
2134
2134
  <p
2135
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
2135
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
2136
2136
  {{ team_signature }}
2137
2137
  </p>
2138
2138
  </td>
@@ -2152,7 +2152,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2152
2152
  <tr>
2153
2153
  <td>
2154
2154
  <p
2155
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2155
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2156
2156
  {{ support_info }}<!-- -->
2157
2157
  <!-- -->{% if tenant.support_url %}<a
2158
2158
  href="{{ tenant.support_url }}"
@@ -2182,7 +2182,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2182
2182
  <tr>
2183
2183
  <td>
2184
2184
  <p
2185
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2185
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2186
2186
  {{ footer.address }}
2187
2187
  </p>
2188
2188
  </td>
@@ -2202,7 +2202,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2202
2202
  <tr>
2203
2203
  <td>
2204
2204
  <p
2205
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2205
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2206
2206
  {{ copyright }}
2207
2207
  </p>
2208
2208
  </td>
@@ -2243,7 +2243,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2243
2243
  <tbody>
2244
2244
  <tr>
2245
2245
  <td
2246
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
2246
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
2247
2247
  <table
2248
2248
  align="center"
2249
2249
  width="100%"
@@ -2287,11 +2287,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2287
2287
  <tr>
2288
2288
  <td>
2289
2289
  <h1
2290
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
2290
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
2291
2291
  {{ enrollment_email_title }}
2292
2292
  </h1>
2293
2293
  <p
2294
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
2294
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
2295
2295
  {{ enrollment_email_intro }}
2296
2296
  </p>
2297
2297
  <table
@@ -2327,7 +2327,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2327
2327
  {{ link_email_fallback_intro }}
2328
2328
  </p>
2329
2329
  <p
2330
- style="font-size:13px;line-height:24px;word-break:break-all;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2330
+ style="font-size:13px;line-height:24px;word-break:break-all;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2331
2331
  <a
2332
2332
  href="{{ url }}"
2333
2333
  style="color:{{ branding.primary_color }};text-decoration-line:none"
@@ -2352,11 +2352,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2352
2352
  <tr>
2353
2353
  <td>
2354
2354
  <p
2355
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2355
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2356
2356
  {{ kind_regards }}
2357
2357
  </p>
2358
2358
  <p
2359
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
2359
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
2360
2360
  {{ team_signature }}
2361
2361
  </p>
2362
2362
  </td>
@@ -2376,7 +2376,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2376
2376
  <tr>
2377
2377
  <td>
2378
2378
  <p
2379
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2379
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2380
2380
  {{ support_info }}<!-- -->
2381
2381
  <!-- -->{% if tenant.support_url %}<a
2382
2382
  href="{{ tenant.support_url }}"
@@ -2406,7 +2406,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2406
2406
  <tr>
2407
2407
  <td>
2408
2408
  <p
2409
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2409
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2410
2410
  {{ footer.address }}
2411
2411
  </p>
2412
2412
  </td>
@@ -2426,7 +2426,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2426
2426
  <tr>
2427
2427
  <td>
2428
2428
  <p
2429
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2429
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2430
2430
  {{ copyright }}
2431
2431
  </p>
2432
2432
  </td>
@@ -2467,7 +2467,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2467
2467
  <tbody>
2468
2468
  <tr>
2469
2469
  <td
2470
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
2470
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
2471
2471
  <table
2472
2472
  align="center"
2473
2473
  width="100%"
@@ -2511,11 +2511,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2511
2511
  <tr>
2512
2512
  <td>
2513
2513
  <h1
2514
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
2514
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
2515
2515
  {{ mfa_oob_code_title }}
2516
2516
  </h1>
2517
2517
  <p
2518
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
2518
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
2519
2519
  {{ mfa_oob_code_intro }}
2520
2520
  </p>
2521
2521
  <p
@@ -2523,7 +2523,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2523
2523
  {{ code }}
2524
2524
  </p>
2525
2525
  <p
2526
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2526
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);text-align:center;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2527
2527
  {{ code_valid_30_minutes }}
2528
2528
  </p>
2529
2529
  </td>
@@ -2543,11 +2543,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2543
2543
  <tr>
2544
2544
  <td>
2545
2545
  <p
2546
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2546
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2547
2547
  {{ kind_regards }}
2548
2548
  </p>
2549
2549
  <p
2550
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
2550
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
2551
2551
  {{ team_signature }}
2552
2552
  </p>
2553
2553
  </td>
@@ -2567,7 +2567,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2567
2567
  <tr>
2568
2568
  <td>
2569
2569
  <p
2570
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2570
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2571
2571
  {{ support_info }}<!-- -->
2572
2572
  <!-- -->{% if tenant.support_url %}<a
2573
2573
  href="{{ tenant.support_url }}"
@@ -2597,7 +2597,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2597
2597
  <tr>
2598
2598
  <td>
2599
2599
  <p
2600
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2600
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2601
2601
  {{ footer.address }}
2602
2602
  </p>
2603
2603
  </td>
@@ -2617,7 +2617,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2617
2617
  <tr>
2618
2618
  <td>
2619
2619
  <p
2620
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2620
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2621
2621
  {{ copyright }}
2622
2622
  </p>
2623
2623
  </td>
@@ -2658,7 +2658,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2658
2658
  <tbody>
2659
2659
  <tr>
2660
2660
  <td
2661
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
2661
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
2662
2662
  <table
2663
2663
  align="center"
2664
2664
  width="100%"
@@ -2702,11 +2702,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2702
2702
  <tr>
2703
2703
  <td>
2704
2704
  <h1
2705
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
2705
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
2706
2706
  {{ password_reset_title }}
2707
2707
  </h1>
2708
2708
  <p
2709
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
2709
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
2710
2710
  {{ reset_password_email_click_to_reset }}
2711
2711
  </p>
2712
2712
  <table
@@ -2742,7 +2742,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2742
2742
  {{ link_email_fallback_intro }}
2743
2743
  </p>
2744
2744
  <p
2745
- style="font-size:13px;line-height:24px;word-break:break-all;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2745
+ style="font-size:13px;line-height:24px;word-break:break-all;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2746
2746
  <a
2747
2747
  href="{{ url }}"
2748
2748
  style="color:{{ branding.primary_color }};text-decoration-line:none"
@@ -2767,11 +2767,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2767
2767
  <tr>
2768
2768
  <td>
2769
2769
  <p
2770
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2770
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2771
2771
  {{ kind_regards }}
2772
2772
  </p>
2773
2773
  <p
2774
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
2774
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
2775
2775
  {{ team_signature }}
2776
2776
  </p>
2777
2777
  </td>
@@ -2791,7 +2791,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2791
2791
  <tr>
2792
2792
  <td>
2793
2793
  <p
2794
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2794
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2795
2795
  {{ support_info }}<!-- -->
2796
2796
  <!-- -->{% if tenant.support_url %}<a
2797
2797
  href="{{ tenant.support_url }}"
@@ -2821,7 +2821,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2821
2821
  <tr>
2822
2822
  <td>
2823
2823
  <p
2824
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2824
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2825
2825
  {{ footer.address }}
2826
2826
  </p>
2827
2827
  </td>
@@ -2841,7 +2841,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2841
2841
  <tr>
2842
2842
  <td>
2843
2843
  <p
2844
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2844
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2845
2845
  {{ copyright }}
2846
2846
  </p>
2847
2847
  </td>
@@ -2882,7 +2882,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2882
2882
  <tbody>
2883
2883
  <tr>
2884
2884
  <td
2885
- style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0'>
2885
+ style='background-color:rgb(244,244,245);font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";margin:0px'>
2886
2886
  <table
2887
2887
  align="center"
2888
2888
  width="100%"
@@ -2926,11 +2926,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2926
2926
  <tr>
2927
2927
  <td>
2928
2928
  <h1
2929
- style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0;margin-bottom:0.75rem">
2929
+ style="font-size:1.125rem;line-height:1.5555555555555556;font-weight:600;margin-top:0px;margin-bottom:0.75rem">
2930
2930
  {{ password_reset_notification_title }}
2931
2931
  </h1>
2932
2932
  <p
2933
- style="font-size:14px;line-height:24px;margin-top:0;margin-bottom:16px">
2933
+ style="font-size:14px;line-height:24px;margin-top:0px;margin-bottom:16px">
2934
2934
  {{ password_reset_notification_intro }}
2935
2935
  </p>
2936
2936
  <p
@@ -2954,11 +2954,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2954
2954
  <tr>
2955
2955
  <td>
2956
2956
  <p
2957
- style="font-size:14px;line-height:24px;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2957
+ style="font-size:14px;line-height:24px;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2958
2958
  {{ kind_regards }}
2959
2959
  </p>
2960
2960
  <p
2961
- style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0">
2961
+ style="font-size:14px;line-height:24px;font-weight:600;margin-top:0.25rem;margin-bottom:0px">
2962
2962
  {{ team_signature }}
2963
2963
  </p>
2964
2964
  </td>
@@ -2978,7 +2978,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2978
2978
  <tr>
2979
2979
  <td>
2980
2980
  <p
2981
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
2981
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);font-style:italic;margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
2982
2982
  {{ support_info }}<!-- -->
2983
2983
  <!-- -->{% if tenant.support_url %}<a
2984
2984
  href="{{ tenant.support_url }}"
@@ -3008,7 +3008,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3008
3008
  <tr>
3009
3009
  <td>
3010
3010
  <p
3011
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0;white-space:pre-line;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
3011
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(113,113,123);margin:0px;white-space:pre-line;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
3012
3012
  {{ footer.address }}
3013
3013
  </p>
3014
3014
  </td>
@@ -3028,7 +3028,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3028
3028
  <tr>
3029
3029
  <td>
3030
3030
  <p
3031
- style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0">
3031
+ style="font-size:0.75rem;line-height:1.3333333333333333;color:rgb(159,159,169);margin:0px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
3032
3032
  {{ copyright }}
3033
3033
  </p>
3034
3034
  </td>
@@ -3754,12 +3754,12 @@ Varmista, että avaat kirjautumislinkin samalla selaimella, jolla aloitit kirjau
3754
3754
 
3755
3755
  Voit aloittaa uuden kirjautumisen klikkaamalla alla olevaa linkkiä.`,invalid_session_title:`Virheellinen linkki`,kind_regards:`Ystävällisin terveisin,`,linked_accounts:`Linkitetyt tilit`,link_email_click_to_login:`Kirjaudu sisään napsauttamalla painiketta`,link_email_fallback_intro:`Voit halutessasi myös kopioida ja liittää seuraavan linkin selaimeesi:`,link_email_login:`Kirjaudu sisään`,link_email_or_enter_code:`Tai kirjoita koodi osoitteessa {{vendorName}} kirjautumisen loppuun saattamiseksi.`,link_page_body:`Kirjoita sähköpostiosoitteesi avataksesi tämän ohjelman osoitteessa {{service}}`,link_page_headline:`Yhdistä tilisi {{service}}`,logged_in_as:`Olet kirjautunut sisään nimellä`,login:`Kirjaudu sisään`,login_description:`Kirjoita sähköpostiosoitteesi kirjautuaksesi sisään.`,login_description_code:`Anna sähköpostiosoitteesi, niin lähetämme sinulle kirjautumiskoodin.`,login_description_combined:`Kirjoita sähköpostiosoitteesi tai puhelinnumerosi kirjautuaksesi sisään`,login_description_link:`Anna sähköpostiosoitteesi, niin lähetämme sinulle kirjautumislinkin.`,login_description_phone:`Anna puhelinnumerosi kirjautuaksesi sisään`,login_description_template:`Kirjoita {{authMethod}} kirjautuaksesi sisään.`,logout:`Kirjaudu ulos`,new_email:`Uusi sähköpostiosoite`,new_email_code_info:`Yksi kertainen koodi lähetetään uuteen sähköpostiosoitteeseesi, syötä koodi seuraavassa vaiheessa.`,no_email_address:`Ei sähköpostiosoitetta asetettu`,no_use_another:`Ei, haluan käyttää toista tiliä`,or:`tai`,password:`Salasana`,password_contains_forbidden_word:`Salasana sisältää kielletyn sanan`,password_contains_personal_info:`Salasana ei saa sisältää henkilötietoja, kuten nimeäsi tai sähköpostiosoitettasi`,password_has_been_reset:`Salasana on nollattu`,password_has_been_reset_title:`Menestys`,password_missing_lowercase:`Salasanan on sisällettävä vähintään yksi pieni kirjain`,password_missing_number:`Salasanan on sisällettävä vähintään yksi numero`,password_missing_special:`Salasanan on sisällettävä vähintään yksi erikoismerkki`,password_missing_uppercase:`Salasanan on sisällettävä vähintään yksi iso kirjain`,password_reset_code_expired:`Koodia ei löytynyt tai se on vanhentunut`,password_reset_failed:`Salasanaa ei voitu nollata`,password_reused:`Salasanaa on käytetty äskettäin, eikä sitä voi käyttää uudelleen`,password_too_short:`Salasanan on oltava vähintään {{minLength}} merkkiä`,password_reset_subject:`Vaihda salasana tilillesi {{vendorName}} `,password_reset_title:`Vaihda salasana tilillesi {{vendorName}} `,phone_placeholder:`Puhelinnumero`,privacy_policy:`Tietosuojakäytäntö`,redirecting:`Uudelleenohjaus`,reenter_new_password_placeholder:`Vahvista salasana`,register_password_account:`Rekisteröi uusi salasana`,resend_code:`Lähetä koodi uudelleen`,reset_password_cta:`Vaihda salasana`,reset_password_description:`Kirjoita alla oleva uusi salasanasi sähköpostitiliä varten: `,reset_password_email_click_to_reset:`Napsauta painiketta salasanasi palauttamiseksi`,reset_password_email_cta:`Napsauta painiketta salasanasi palauttamiseksi`,reset_password_email_enter_code:`Anna alla oleva koodi salasanasi palauttamiseksi`,reset_password_email_reset:`Nollaa salasanasi`,reset_password_subject:`Vaihda salasana tilillesi {{vendorName}} `,reset_password_title:`Nollaa salasana`,send:`Lähetä`,send_me_a_new_magic_link:`Lähetä minulle uusi maaginen linkki`,sent_code_spam:`Muista tarkistaa roskapostikansiosi, jos sähköposti ei ole saapunut.`,"Server error: Invalid code":`Virheellinen koodi`,set_password:`Aseta salasana`,show_password:`Näytä salasana`,sign_in:`Kirjaudu sisään`,signup:`Rekisteröityminen`,signup_success:`Rekisteröidy onnistuneesti`,sms_code_text:`{{code}} on kirjautumiskoodisi {{vendorName}}`,spotify_already_linked_body:`Näyttää siltä, että Spotify-tilisi on tällä hetkellä yhdistetty toiseen Sesamy-tiliin. Mutta älä pelkää, me opastamme sinua prosessin läpi, jotta saat tämän korjattua.`,spotify_already_linked_cta:`Siirry Spotifyn Content Access -sivulle`,spotify_already_linked_step1_body:`Aloitetaan poistamalla Spotify-tilisi linkitys. Klikkaa alla olevaa painiketta siirtyäksesi Spotifyn Content Access -sivulle. Kun olet kirjautunut sisään Spotify-tilillesi, etsi Sesamy yhdistettyjen alustojen luettelosta. Napsauta "Unlink" Sesamyn logon vieressä.`,spotify_already_linked_step1_title:`Vaihe 1: Poista Spotify-tilisi linkitys`,spotify_already_linked_step2_body:`Kun olet onnistuneesti irrottanut Spotify-tilisi, voit yhdistää sen uudelleen Sesamyn kanssa. Toista vain aiemmin tekemäsi vaiheet, jotka johtivat sinut tälle sivulle.`,spotify_already_linked_step2_title:`Vaihe 2: Yhdistä Spotify-tilisi uudelleen Sesamyn kanssa`,spotify_already_linked_title:`Hups! Spotify-tilisi on jo linkitetty`,success:`Valmis`,support_info:`Jos sinulla on kysyttävää tai tarvitset apua, voit ottaa yhteyttä tukitiimiimme.`,team_signature:`{{vendorName}}-tiimi`,terms:`Ehdot ja edellytykset`,unexpected_error_try_again:`Jokin meni pieleen. Yritä uudelleen.`,unlink:`Irrota`,unverified_email:`Sähköpostiosoitteesi on vahvistettava. Olemme lähettäneet uuden sähköpostiviestin sähköpostiisi.`,update_email:`Päivitä sähköposti`,user_account_does_not_exist:`Käyttäjätiliä ei ole olemassa`,user_not_found:`Käyttäjätiliä ei ole olemassa`,user_not_found_body:`Emme löytäneet käyttäjää, jolla on annettu sähköpostiosoite. Yritä uudelleen.`,user_not_found_cta:`Yritä uudelleen.`,validate_code:`Validoi koodi`,validate_email_body:`Tarkista sähköpostin vahvistusohjeet postilaatikostasi.`,validate_email_title:`Rekisteröitynyt`,verify_email_click_to_verify:`Vahvista sähköpostiosoitteesi napsauttamalla painiketta`,verify_email_subject:`Vahvista sähköpostiosoitteesi`,verify_email_title:`Vahvista sähköpostiosoitteesi`,verify_email_verify:`Vahvista tili`,verify_your_email:`Vahvista sähköpostiosoitteesi`,welcome:`Tervetuloa`,welcome_to_your_account:`Tervetuloa tilillesi {{vendorName}}!`,we_sent_a_code_to:`Tarkista sähköpostisi osoitteesta <0>{{email}}</0> ja syötä lähettämämme kuusinumeroinen koodi.`,yes_continue:`Jatka tällä tilillä`,yes_continue_with:`Kyllä, jatka {{text}}`,yes_continue_with_existing_account:`Kyllä, jatka olemassa olevalla tilillä`},FEe={account_detected:`Konto opdaget`,account_page_description:`Administrer dine kontooplysninger`,account_title:`Konto`,account_with_sso_provider:`Vi har opdaget, at du allerede har oprettet en konto gennem`,agree_to:`Når du logger ind, accepterer du vores`,and:`og`,auth_method_email:`e-mail-adresse`,auth_method_email_or_phone:`e-mail eller telefonnummer`,auth_method_phone:`Telefonnummer`,callback_url_mismatch:`Uoverensstemmelse mellem URL og tilbagekald`,callback_url_not_allowed:`Den angivne redirect_uri er ikke på listen over tilladte tilbagekalds-URL'er.`,change_email:`Ændre e-mailadresse`,check_email_title:`Fortsæt med brugeren`,click_to_sign_up_description:`Klik på knappen for at oprette en ny adgangskodekonto.`,code_email_enter_code:`Indtast koden på {{vendorName}} for at gennemføre login.`,code_email_subject:`Velkommen til {{vendorName}}! {{code}} er login-koden`,code_email_title:`Velkommen til {{vendorName}}! {{code}} er login-koden`,code_expired:`Koden er udløbet`,code_invalid:`Ugyldig kode`,code_sent_template:`Tjek venligst <0>{{username}}</0> og indtast den sekscifrede kode, som vi har sendt til dig.`,code_used:`Koden er allerede brugt`,code_valid_30_minutes:`Koden er gyldig i 30 minutter`,configuration_error_message:`Der opstod en konfigurationsfejl.`,confirm_password:`Bekræft adgangskode`,confirm_unlink:`Er du sikker på, at du vil fjerne forbindelsen til denne konto?`,contact_support:`Har du brug for hjælp?`,contact_us:`Kontakt os`,continue:`Fortsæt`,continue_social_login:`eller fortsæt med social konto`,continue_with:`Fortsæt med {{provider}}`,continue_with_sso_provider_headline:`Vil du gerne fortsætte med din eksisterende konto?`,copyright:`Ophavsret © 2023 SESAMY. Alle rettigheder forbeholdes.`,copyright_sesamy:`©2023 Sesamy`,create_account_description:`Vælg en adgangskode med en blanding af store og små bogstaver, tal og symboler.`,create_account_email_invalid:`Indtast venligst en gyldig e-mailadresse.`,create_account_passwords_didnt_match:`Adgangskoderne stemte ikke overens. Prøv igen.`,create_account_title:`Vælg adgangskode`,create_account_weak_password:`Adgangskoden skal være mindst 8 tegn lang og indeholde mindst et lille bogstav, et stort bogstav, et tal og et symbol.`,create_new_account_link:`Tilmeld dig`,create_password_account_title:`Tilmeld dig med adgangskode`,dont_have_account:`Har du ikke en konto?`,current_email:`Nuværende e-mailadresse`,currently_logged_in_as:`Du er i øjeblikket logget ind som <0>{{email}}</0>`,edit:`Rediger`,email:`E-mail`,email_already_taken:`E-mailen er allerede optaget`,email_changed_to_template:`E-mail ændret til <0>{{email}}</0> `,email_or_phone_placeholder:`E-mail eller telefonnummer`,email_placeholder:`E-mail-adresse`,email_validated:`Din e-mailadresse er blevet valideret`,email_validated_cta:`Indtast nu din adgangskode for at logge ind igen`,email_verification_for_signup_sent_description:`Der er sendt en e-mail til <0>{{email}}</0> med et bekræftelseslink. Klik på linket for at bekræfte din e-mailadresse og angive en adgangskode.`,email_verification_for_signup_sent_title:`E-mail-bekræftelse sendt`,embedded_browser_detected:`Skal man blive ved med at logge ind?`,embedded_browser_warning:`Du er i øjeblikket inde på {{browserName}}. Denne browser logger dig ofte ud, så vi anbefaler, at du bruger din telefons standardbrowser i stedet.`,enter_a_code_btn:`Indtast en kode`,enter_code_description:`Indtast bekræftelseskoden`,enter_code_label:`Bekræftelseskode`,enter_code_placeholder:`Indtast kode`,enter_code_title:`Tjek din e-mail`,enter_email_for_verification_description:`Vi sender dig et bekræftelseslink for at sikre, at du ejer denne e-mailadresse.`,enter_new_email:`Indtast ny e-mail`,enter_new_password_placeholder:`Indtast ny adgangskode`,enter_password:`Indtast adgangskode`,enter_password_description:`Indtast din e-mailadresse og adgangskode for at logge ind.`,enter_password_signing_in_as:`Logger ind som {{email}}`,enter_your_password_btn:`Indtast din adgangskode`,error_page_title:`Noget gik galt`,expired_code:`Det magiske link er udløbet. Klik på knappen nedenfor for at modtage et nyt link i din indbakke.`,fokus_info_message:`Hej! Vi har opdateret vores login-oplevelse. <0>Klik her for at lære mere om det.</0>`,forgot_password_cta:`Send e-mail til nulstilling af adgangskode`,forgot_password_description:`Klik på knappen nedenfor, så sender vi instruktioner om, hvordan du nulstiller din adgangskode.`,forgot_password_email_sent:`E-mail til nulstilling af adgangskode sendt`,forgot_password_link:`Har du glemt din adgangskode?`,forgot_password_title:`Har du glemt din adgangskode?`,go_back:`Gå tilbage`,hide_password:`Skjul adgangskode`,incognito_mode_detected:`Inkognitotilstand opdaget`,incognito_mode_warning:`Du er i inkognito/privat tilstand. Sessionsdata fortsætter muligvis ikke på tværs af sideopdateringer. Nogle funktioner fungerer måske ikke som forventet.`,"invalid-email":`Ugyldig e-mail`,invalid_identifier:`Ugyldig identifikator`,invalid_password:`Ugyldig adgangskode`,invalid_session_body:`Linket er ikke længere gyldigt. Sørg for at åbne login-linket i den samme browser, som du startede login med. Du kan klikke på linket nedenfor for at starte et nyt login.`,invalid_session_title:`Ugyldigt link`,kind_regards:`Med venlig hilsen,`,linked_accounts:`Koblede konti`,link_email_click_to_login:`Klik på knappen for at logge ind`,link_email_fallback_intro:`Hvis du foretrækker det, kan du også kopiere og indsætte følgende link i din browser:`,link_email_login:`Login`,link_email_or_enter_code:`Eller indtast koden på {{vendorName}} for at gennemføre login.`,link_page_body:`Indtast din e-mailadresse for at låse op for dette show på {{service}}`,link_page_headline:`Forbind din konto med {{service}}`,logged_in_as:`Du er logget ind som`,login:`Login`,login_description:`Indtast din e-mailadresse for at logge ind.`,login_description_code:`Indtast din e-mailadresse, så sender vi dig en login-kode.`,login_description_combined:`Indtast din e-mail eller dit telefonnummer for at logge ind`,login_description_link:`Indtast din e-mailadresse, så sender vi dig et login-link.`,login_description_phone:`Indtast dit telefonnummer for at logge ind`,login_description_template:`Indtast din {{authMethod}} for at logge ind.`,logout:`Log ud`,new_email:`Ny emailadresse`,new_email_code_info:`En engangskode vil blive sendt til din nye e-mailadresse, indtast koden i næste trin.`,no_email_address:`Ingen e-mailadresse er angivet`,no_use_another:`Nej, jeg vil bruge en anden konto`,or:`eller`,password:`Adgangskode`,password_contains_forbidden_word:`Adgangskoden indeholder et forbudt ord`,password_contains_personal_info:`Adgangskoden må ikke indeholde personlige oplysninger som dit navn eller e-mail`,password_has_been_reset:`Adgangskoden er blevet nulstillet`,password_has_been_reset_title:`Succes`,password_missing_lowercase:`Adgangskoden skal indeholde mindst ét lille bogstav`,password_missing_number:`Adgangskoden skal indeholde mindst ét tal`,password_missing_special:`Adgangskoden skal indeholde mindst ét specialtegn`,password_missing_uppercase:`Adgangskoden skal indeholde mindst ét stort bogstav`,password_reset_code_expired:`Koden blev ikke fundet eller er udløbet`,password_reset_failed:`Adgangskoden kunne ikke nulstilles`,password_reused:`Adgangskoden er blevet brugt for nylig og kan ikke genbruges`,password_too_short:`Adgangskoden skal være mindst {{minLength}} tegn`,password_reset_subject:`Skift adgangskode til din {{vendorName}} konto`,password_reset_title:`Skift adgangskode til din {{vendorName}} -konto`,phone_placeholder:`Telefonnummer`,privacy_policy:`Politik for beskyttelse af personlige oplysninger`,redirecting:`Omdirigering`,reenter_new_password_placeholder:`Bekræft adgangskode`,register_password_account:`Registrer en ny adgangskode`,resend_code:`Send koden igen`,reset_password_cta:`Skift adgangskode`,reset_password_description:`Indtast din nye adgangskode til e-mailkontoen nedenfor: `,reset_password_email_click_to_reset:`Klik på knappen for at nulstille din adgangskode`,reset_password_email_cta:`Klik på knappen for at nulstille din adgangskode`,reset_password_email_enter_code:`Indtast koden nedenfor for at nulstille din adgangskode`,reset_password_email_reset:`Nulstil din adgangskode`,reset_password_subject:`Skift adgangskode til din {{vendorName}} -konto`,reset_password_title:`Nulstil adgangskode`,send:`Send`,send_me_a_new_magic_link:`Send mig et nyt magisk link`,sent_code_spam:`Husk at tjekke din spam-mappe, hvis e-mailen ikke er kommet frem.`,"Server error: Invalid code":`Ugyldig kode`,set_password:`Indstil adgangskode`,show_password:`Vis adgangskode`,sign_in:`Log ind`,signup:`Tilmelding`,signup_success:`Tilmeld dig med succes`,sms_code_text:`{{code}} er din login-kode til {{vendorName}}`,spotify_already_linked_body:`Det ser ud til, at din Spotify-konto i øjeblikket er knyttet til en anden Sesamy-konto. Men frygt ikke, vi er her for at guide dig gennem processen med at få det løst.`,spotify_already_linked_cta:`Gå til Spotifys side for adgang til indhold`,spotify_already_linked_step1_body:`Lad os starte med at fjerne forbindelsen til din Spotify-konto. Klik på knappen nedenfor for at gå til Spotifys Content Access-side. Når du har logget ind på din Spotify-konto, skal du finde Sesamy på listen over tilsluttede platforme. Klik på "Unlink" ved siden af Sesamy-logoet.`,spotify_already_linked_step1_title:`Trin 1: Fjern forbindelsen til din Spotify-konto`,spotify_already_linked_step2_body:`Når du har afkoblet din Spotify-konto, kan du koble den til Sesamy igen. Du skal blot gentage de trin, du tidligere har taget, og som førte dig til denne side.`,spotify_already_linked_step2_title:`Trin 2: Relink din Spotify-konto til Sesamy`,spotify_already_linked_title:`Ups! Din Spotify-konto er allerede forbundet`,success:`Færdig`,support_info:`Hvis du har spørgsmål eller brug for hjælp, kan du kontakte vores supportteam`,team_signature:`{{vendorName}}-teamet`,terms:`Vilkår og betingelser`,unexpected_error_try_again:`Noget gik galt. Prøv venligst igen.`,unlink:`Frakobl`,unverified_email:`Din e-mailadresse skal valideres. Vi har sendt en ny e-mail til din indbakke`,update_email:`Opdatering af e-mail`,user_account_does_not_exist:`Brugerkontoen findes ikke`,user_not_found:`Brugerkontoen findes ikke`,user_not_found_body:`Vi kunne ikke finde en bruger med den angivne e-mailadresse. Prøv venligst igen.`,user_not_found_cta:`Prøv igen.`,validate_code:`Valider koden`,validate_email_body:`Tjek din indbakke for instruktioner om validering af e-mail.`,validate_email_title:`Tilmeldte sig`,verify_email_click_to_verify:`Klik på knappen for at bekræfte din e-mailadresse`,verify_email_subject:`Bekræft din e-mailadresse`,verify_email_title:`Bekræft din e-mailadresse`,verify_email_verify:`Bekræft konto`,verify_your_email:`Bekræft din e-mail`,welcome:`Velkommen`,welcome_to_your_account:`Velkommen til din {{vendorName}} konto!`,we_sent_a_code_to:`Tjek venligst din e-mail på <0>{{email}}</0> og indtast den sekscifrede kode, vi har sendt dig.`,yes_continue:`Fortsæt med denne konto`,yes_continue_with:`Ja, fortsæt med {{text}}`,yes_continue_with_existing_account:`Ja, fortsæt med eksisterende konto`},IEe=`https://assets.sesamy.com/images/login-bg.jpg`,LEe=({title:e,children:t,theme:n,branding:r})=>{let i=n?.page_background?.page_layout||`center`,a=n?.page_background?.background_color||`#ffffff`,o=n?.page_background?.background_image_url??IEe,s=o?.startsWith(`linear-gradient`)||o?.startsWith(`radial-gradient`)||o?.startsWith(`conic-gradient`),c=o?s?o:`url(${o})`:void 0,l=`justify-center`,u=`p-6 md:p-10`;i===`left`?(l=`justify-start`,u=`pl-12 pr-6 py-6 md:pl-20 md:pr-10 md:py-10`):i===`right`&&(l=`justify-end`,u=`pr-12 pl-6 py-6 md:pr-20 md:pl-10 md:py-10`);let d=(0,R$.default)(`min-h-screen w-full flex bg-cover bg-center`,l,u),f={...c&&{backgroundImage:c},backgroundColor:a,display:`flex`,alignItems:`stretch`,justifyContent:i===`left`?`flex-start`:i===`right`?`flex-end`:`center`,minHeight:`100vh`,width:`100%`},p=(0,R$.default)(`w-full max-w-sm`,`flex flex-col justify-center`);return I(`html`,{lang:D.language||`en`,children:[I(`head`,{children:[I(`title`,{children:e}),I(`meta`,{charset:`UTF-8`}),I(`meta`,{name:`robots`,content:`noindex, follow`}),I(`link`,{rel:`stylesheet`,href:`/u/css/tailwind.css?v=${Qu}`}),I(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1, maximum-scale=1`}),I(`meta`,{name:`theme-color`,content:`#000000`}),r?.favicon_url&&I(`link`,{rel:`icon`,type:`image/x-icon`,href:r.favicon_url}),n?.fonts?.font_url&&I(`link`,{rel:`stylesheet`,href:n.fonts.font_url})]}),I(`body`,{children:[I(`div`,{className:d,style:f,children:I(`div`,{className:p,children:[t,r?.powered_by_logo_url&&I(`div`,{className:`mt-5 text-left`,children:I(`a`,{href:`https://authhero.com`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-block`,children:I(`img`,{src:r.powered_by_logo_url,alt:`Powered by`,className:`h-9 opacity-60 hover:opacity-100 transition-opacity`})})})]})}),I(`div`,{id:`client-root`}),I(`script`,{type:`module`,src:`/u/js/client.js?v=${Qu}`})]})]})},v9=({children:e,className:t,style:n})=>I(`div`,{className:(0,R$.default)(`rounded-lg border border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-800`,t),style:n,children:e}),y9=({children:e,className:t})=>I(`div`,{className:(0,R$.default)(`flex flex-col space-y-1.5 p-6`,t),children:e}),b9=({children:e,className:t,style:n})=>I(`h3`,{className:(0,R$.default)(`text-2xl font-semibold leading-none tracking-tight`,t),style:n,children:e}),x9=({children:e,className:t,style:n})=>I(`p`,{className:(0,R$.default)(`text-sm text-gray-500 dark:text-gray-400`,t),style:n,children:e}),S9=({children:e,className:t})=>I(`div`,{className:(0,R$.default)(`p-6 pt-0`,t),children:e}),REe=({children:e,className:t})=>I(`div`,{className:(0,R$.default)(`flex items-center p-6 pt-0`,t),children:e}),C9=({id:e,type:t=`text`,name:n,placeholder:r,className:i,required:a=!1,value:o,disabled:s=!1,error:c=!1,style:l,"data-password-input":u})=>I(`input`,{id:e,type:t,name:n,placeholder:r,required:a,value:o,disabled:s,"data-password-input":u,className:(0,R$.default)(`flex h-10 w-full rounded-md border border-gray-300 bg-white px-3 py-2 text-sm ring-offset-white transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-600 dark:bg-gray-800 dark:ring-offset-gray-900 dark:placeholder:text-gray-400`,c&&`border-red-500 focus-visible:ring-red-500`,i),style:l}),w9=({children:e,className:t,variant:n=`default`,size:r=`default`,type:i=`button`,disabled:a=!1,style:o})=>I(`button`,{type:i,disabled:a,className:(0,R$.default)(`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:pointer-events-none disabled:opacity-50`,{default:`bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:hover:bg-blue-800`,outline:`border border-gray-300 bg-transparent hover:bg-gray-100 dark:border-gray-600 dark:hover:bg-gray-800`,ghost:`hover:bg-gray-100 dark:hover:bg-gray-800`}[n],{default:`h-10 px-4 py-2`,sm:`h-9 px-3 text-sm`,lg:`h-11 px-8`}[r],t),style:o,children:e}),T9=({htmlFor:e,className:t,style:n,children:r})=>I(`label`,{for:e,className:(0,R$.default)(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`,t),style:n,children:r});function zEe(e,t,n){let r=e?.colors?.primary_button||t?.colors?.primary||`#0066cc`,i=e?.colors?.primary_button_label||`#ffffff`,a=e?.colors?.body_text||`#333333`,o=e?.colors?.input_background||`#ffffff`,s=e?.colors?.input_border||`#d1d5db`,c=e?.colors?.input_filled_text||`#111827`,l=e?.colors?.error||`#dc2626`,u=e?.colors?.widget_background||`#ffffff`,d=e?.colors?.widget_border||`#e5e7eb`,f=e?.borders?.widget_corner_radius||8,p=e?.borders?.input_border_radius||4,m=e?.borders?.button_border_radius||4,h=e?.borders?.show_widget_shadow??!0,g=e?.fonts?.title?.size||24,_=e?.fonts?.title?.bold??!0,v=e?.fonts?.body_text?.size||14,y={backgroundColor:u,borderColor:d,borderRadius:`${f}px`,boxShadow:h?`0 1px 3px 0 rgba(0, 0, 0, 0.1)`:`none`,color:a},b={fontSize:`${g}px`,fontWeight:_?`700`:`400`,color:e?.colors?.header||a},x={fontSize:`${v}px`,color:e?.colors?.input_labels_placeholders||`#6b7280`},S={backgroundColor:o,borderColor:n?l:s,borderRadius:`${p}px`,color:c},C={backgroundColor:r,color:i,borderRadius:`${m}px`},w=e?.widget?.logo_position||`center`,T=w===`left`?`text-left`:w===`right`?`text-right`:`text-center`,ee=e?.widget?.logo_url||t?.logo_url;return{primaryColor:r,primaryButtonLabel:i,bodyText:a,inputBackground:o,inputBorder:s,inputText:c,errorColor:l,widgetBackground:u,widgetBorder:d,borderRadius:f,inputBorderRadius:p,buttonBorderRadius:m,showShadow:h,titleSize:g,titleBold:_,bodySize:v,cardStyle:y,titleStyle:b,bodyStyle:x,inputStyle:S,buttonStyle:C,logoPosition:w,logoAlignmentClass:T,logoUrl:ee,showLogo:w!==`none`&&ee}}var BEe=({error:e,theme:t,branding:n,loginSession:r,email:i,client:a,className:o,isEmbedded:s,browserName:c})=>{let l=a.connections.map(({strategy:e})=>e),u=l.includes(j.EMAIL)||l.some(ca),d=l.includes(j.SMS),f=new Set([j.EMAIL,j.SMS]),p=a.connections.filter(e=>!f.has(e.strategy)&&!ca(e.strategy)).filter(e=>{if(e.show_as_button===!1)return!1;if(e.show_as_button===!0)return!0;let t=e.options?.domain_aliases;return!(t&&t.length>0)}).map(e=>{let t=uA[e.strategy];return t?{...t,connectionName:e.name,displayName:e.display_name||t.displayName||e.name,iconUrl:e.options.icon_url}:null}).filter(e=>e!==null).filter(e=>!(s&&e.disableEmbeddedBrowsers)),m=u||d,h=u&&d?`email_or_phone_placeholder`:u?`email_placeholder`:d?`phone_placeholder`:null,g=h?D.t(h,u&&d?`Email or Phone Number`:u?`Email Address`:`Phone Number`):``,{bodySize:_,bodyText:v,buttonBorderRadius:y,inputBorder:b,widgetBackground:x,widgetBorder:S,cardStyle:C,titleStyle:w,bodyStyle:T,inputStyle:ee,buttonStyle:te,logoAlignmentClass:ne,showLogo:re}=zEe(t,n,e);return I(`div`,{className:(0,R$.default)(`flex flex-col gap-6 w-full max-w-sm`,o),children:[I(`div`,{id:`incognito-warning-container`,className:`mb-4 hidden rounded-md border border-yellow-200 bg-yellow-50 p-4 text-sm text-yellow-800 dark:border-yellow-900 dark:bg-yellow-900/20 dark:text-yellow-100`,role:`alert`,children:I(`div`,{className:`flex items-start gap-3`,children:[I(`span`,{className:`text-lg leading-none`,children:`⚠️`}),I(`div`,{children:[I(`strong`,{children:D.t(`incognito_mode_detected`)}),I(`p`,{className:`mt-1 text-xs opacity-90`,children:D.t(`incognito_mode_warning`)})]})]})}),s&&I(`div`,{className:`mb-4 rounded-md border border-orange-200 bg-orange-50 p-4 text-sm text-orange-800 dark:border-orange-900 dark:bg-orange-900/20 dark:text-orange-100`,role:`alert`,children:I(`div`,{className:`flex items-start gap-3`,children:[I(`span`,{className:`text-lg leading-none`,children:`⚠️`}),I(`div`,{children:[I(`strong`,{children:D.t(`embedded_browser_detected`)}),I(`p`,{className:`mt-1 text-xs opacity-90`,children:D.t(`embedded_browser_warning`,{browserName:c||`the app`})})]})]})}),I(v9,{style:C,className:`border`,children:[I(y9,{children:[re&&I(`div`,{className:(0,R$.default)(`mb-4`,ne),children:I(I$,{theme:t,branding:n})}),I(b9,{style:w,children:D.t(`welcome`,`Login`)}),I(x9,{style:T,children:m?D.t(`login_description_template`,{authMethod:D.t(h,{defaultValue:u&&d?`email or phone number`:u?`email address`:`phone number`}).toLocaleLowerCase(),defaultValue:`Enter your {{authMethod}} below to login to your account`}):D.t(`login_description_social_only`,`Choose how to login`)})]}),I(S9,{children:I(`form`,{method:`post`,children:I(`div`,{className:`grid gap-6`,children:[m&&I(cm,{children:[I(`div`,{className:`grid gap-2`,children:[I(T9,{htmlFor:`username`,style:T,children:D.t(h,u&&d?`Email or Phone Number`:u?`Email`:`Phone Number`)}),I(C9,{id:`username`,name:`username`,type:`text`,placeholder:g,required:!0,value:i||``,error:!!e,className:`border lowercase`,style:ee}),e&&I(G$,{children:e})]}),I(w9,{type:`submit`,className:`w-full transition-colors hover:brightness-90`,style:te,children:D.t(`continue`,`Continue`)})]}),p.length>0&&I(cm,{children:[m&&I(`div`,{className:`relative text-center`,style:{color:t?.colors?.input_labels_placeholders||`#6b7280`,fontSize:`${_}px`},children:[I(`div`,{className:`absolute left-0 right-0 top-1/2 border-b`,style:{borderColor:S}}),I(`div`,{className:`relative inline-block px-2`,style:{backgroundColor:x},children:D.t(`or`,`Or`)})]}),I(`div`,{className:`flex gap-4 sm:flex-col short:flex-row`,children:p.map(e=>{let t=e.iconUrl||e.logoDataUri;return I(`a`,{href:`/authorize/redirect?state=${r.id}&connection=${e.connectionName}`,className:`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:pointer-events-none disabled:opacity-50 border bg-transparent hover:bg-gray-100 dark:hover:bg-gray-800 h-10 px-4 py-2 w-full sm:w-full short:flex-1`,style:{borderColor:b,borderRadius:`${y}px`,color:v},children:[t&&I(`img`,{src:t,alt:e.displayName,className:`h-5 w-5`}),I(`span`,{className:`sm:inline short:hidden`,children:D.t(`continue_with`,`Login with {{provider}}`,{provider:e.displayName})}),I(`span`,{className:`hidden short:inline`,children:e.displayName})]},e.connectionName)})})]})]})})})]})]})},VEe=({...e})=>I(`svg`,{width:`45`,height:`45`,viewBox:`0 0 45 45`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[I(`path`,{d:`M44.1035 23.0123C44.1054 21.4791 43.9758 19.9486 43.716 18.4375H22.498V27.1028H34.6507C34.4021 28.4868 33.8757 29.8061 33.1034 30.9812C32.3311 32.1562 31.3289 33.1628 30.1571 33.9401V39.5649H37.41C41.6567 35.6494 44.1035 29.859 44.1035 23.0123Z`,fill:`#4285F4`}),I(`path`,{d:`M22.4982 44.9997C28.5698 44.9997 33.6821 43.0061 37.4101 39.5687L30.1573 33.9439C28.1386 35.3126 25.5387 36.0938 22.4982 36.0938C16.6296 36.0938 11.6485 32.1377 9.86736 26.8066H2.39575V32.6033C4.26839 36.3297 7.13989 39.4622 10.6896 41.6512C14.2394 43.8402 18.3277 44.9995 22.4982 44.9997Z`,fill:`#34A853`}),I(`path`,{d:`M9.86737 26.8073C8.92572 24.0138 8.92572 20.9886 9.86737 18.1951V12.3984H2.39576C0.820432 15.5332 0 18.9929 0 22.5012C0 26.0095 0.820432 29.4692 2.39576 32.604L9.86737 26.8073Z`,fill:`#FBBC04`}),I(`path`,{d:`M22.4982 8.90741C25.7068 8.85499 28.8071 10.0673 31.1291 12.2823L37.5507 5.86064C33.4788 2.03602 28.0843 -0.0637686 22.4982 0.00147616C18.3277 0.00166623 14.2394 1.16098 10.6896 3.34999C7.13989 5.539 4.26839 8.67155 2.39575 12.3979L9.86736 18.1946C11.6485 12.8635 16.6296 8.90741 22.4982 8.90741Z`,fill:`#EA4335`})]}),HEe=e=>{let{theme:t,branding:n,client:r,authParams:i}=e,a=`/authorize?${new URLSearchParams(Object.entries(i).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)]))}`;return I(W$,{theme:t,branding:n,client:r,title:D.t(`user_not_found`),children:I(`div`,{className:`flex flex-1 flex-col justify-center`,children:[I(`p`,{className:`mb-8 text-gray-300 text-lg`,children:D.t(`user_not_found_body`)}),I(q$,{Component:`a`,href:a,children:D.t(`user_not_found_cta`)})]})})},UEe=({...e})=>I(`svg`,{version:`1.1`,id:`Layer_1`,xmlns:`http://www.w3.org/2000/svg`,x:`0px`,y:`0px`,viewBox:`0 0 48 48`,enableBackground:`new 0 0 48 48`,width:`45`,height:`45`,...e,children:[I(`path`,{fill:`#FF5B24`,d:`M3.5,8h41c1.9,0,3.5,1.6,3.5,3.5v25c0,1.9-1.6,3.5-3.5,3.5h-41C1.6,40,0,38.4,0,36.5v-25C0,9.6,1.6,8,3.5,8z`}),I(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,fill:`#FFFFFF`,d:`M27.9,20.3c1.4,0,2.6-1,2.6-2.5h0c0-1.5-1.2-2.5-2.6-2.5c-1.4,0-2.6,1-2.6,2.5C25.3,19.2,26.5,20.3,27.9,20.3z
3756
3756
  M31.2,24.4c-1.7,2.2-3.5,3.8-6.7,3.8h0c-3.2,0-5.8-2-7.7-4.8c-0.8-1.2-2-1.4-2.9-0.8c-0.8,0.6-1,1.8-0.3,2.9
3757
- c2.7,4.1,6.5,6.6,10.9,6.6c4,0,7.2-2,9.6-5.2c0.9-1.2,0.9-2.5,0-3.1C33.3,22.9,32.1,23.2,31.2,24.4z`})]}),E9=`enc:v1:`,D9=12,WEe=/^[A-Za-z0-9_-]+$/;function O9(e){return e.startsWith(E9)}function k9(e){if(!O9(e))return;let t=e.slice(7),n=t.indexOf(`:`);if(n!==-1)return t.slice(0,n)}function GEe(e){let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}async function KEe(e){let t=xa(e);if(t.byteLength!==32)throw Error(`ENCRYPTION_KEY must decode to 32 bytes (got ${t.byteLength}). Generate one with: openssl rand -base64 32`);return crypto.subtle.importKey(`raw`,GEe(t),{name:`AES-GCM`},!1,[`encrypt`,`decrypt`])}async function A9(e,t,n){let r=crypto.getRandomValues(new Uint8Array(D9)),i=await crypto.subtle.encrypt({name:`AES-GCM`,iv:r},t,new TextEncoder().encode(e)),a=new Uint8Array(r.byteLength+i.byteLength);a.set(r,0),a.set(new Uint8Array(i),r.byteLength);let o=ga(a);return n?`${E9}${n}:${o}`:`${E9}${o}`}async function j9(e,t){let n=e.slice(7),r=n.indexOf(`:`),i=_a(r===-1?n:n.slice(r+1)),a=i.slice(0,D9),o=i.slice(D9),s=await crypto.subtle.decrypt({name:`AES-GCM`,iv:a},t,o);return new TextDecoder().decode(s)}async function qEe(e,t){return A9(e,t)}async function JEe(e,t){return O9(e)?j9(e,t):e}function M9(e,t){if(!t)return e.default;let n=e.keys?.[t];if(!n)throw Error(`No key for id "${t}" in key ring (have: ${Object.keys(e.keys??{}).join(`, `)||`none`}). The key binding for this id is missing.`);return n}async function N9(e,t,n){if(n&&!WEe.test(n))throw Error(`Invalid key id "${n}": only [A-Za-z0-9_-] are allowed.`);return A9(e,M9(t,n),n)}async function P9(e,t){return O9(e)?j9(e,M9(t,k9(e))):e}function F9(e,t){return n=>{let r=t?.(n);return{encrypt:t=>O9(t)?Promise.resolve(t):N9(t,e,r),decrypt:t=>P9(t,e)}}}async function I9(e,t){return typeof e.client_secret==`string`?{...e,client_secret:await t(e.client_secret)}:e}async function L9(e,t){return typeof e.totp_secret==`string`?{...e,totp_secret:await t(e.totp_secret)}:e}async function YEe(e,t){if(!e)return e;let n={...e};return typeof n.client_secret==`string`&&(n.client_secret=await t(n.client_secret)),typeof n.app_secret==`string`&&(n.app_secret=await t(n.app_secret)),typeof n.twilio_token==`string`&&(n.twilio_token=await t(n.twilio_token)),n.configuration&&typeof n.configuration.client_secret==`string`&&(n.configuration={...n.configuration,client_secret:await t(n.configuration.client_secret)}),n}async function R9(e,t){return e.options?{...e,options:await YEe(e.options,t)}:e}async function XEe(e,t){if(!e)return e;let n={...e};for(let[e,r]of Object.entries(n))typeof r==`string`&&(n[e]=await t(r));return n}async function z9(e,t){if(!e.credentials)return e;let n=await XEe(e.credentials,t);return{...e,credentials:n}}async function B9(e,t){return!e.credentials||typeof e.credentials.client_secret!=`string`?e:{...e,credentials:{...e.credentials,client_secret:await t(e.credentials.client_secret)}}}function ZEe(e,t){return{create:async(n,r)=>{let i=t(n);return I9(await e.create(n,await I9(r,i.encrypt)),i.decrypt)},get:async(n,r)=>{let i=await e.get(n,r);return i&&I9(i,t(n).decrypt)},getByClientId:async n=>{let r=await e.getByClientId(n);return r&&I9(r,t(r.tenant_id).decrypt)},remove:(t,n)=>e.remove(t,n),list:async(n,r)=>{let i=t(n),a=await e.list(n,r);return{...a,clients:await Promise.all(a.clients.map(e=>I9(e,i.decrypt)))}},update:async(n,r,i)=>e.update(n,r,await I9(i,t(n).encrypt))}}function QEe(e,t){return{create:async(n,r)=>{let i=t(n);return R9(await e.create(n,await R9(r,i.encrypt)),i.decrypt)},remove:(t,n)=>e.remove(t,n),get:async(n,r)=>{let i=await e.get(n,r);return i&&R9(i,t(n).decrypt)},update:async(n,r,i)=>e.update(n,r,await R9(i,t(n).encrypt)),list:async(n,r)=>{let i=t(n),a=await e.list(n,r);return{...a,connections:await Promise.all(a.connections.map(e=>R9(e,i.decrypt)))}}}}function $Ee(e,t){return{listByClient:async(n,r)=>{let i=t(n),a=await e.listByClient(n,r);return Promise.all(a.map(e=>R9(e,i.decrypt)))},updateByClient:(t,n,r)=>e.updateByClient(t,n,r),listByConnection:(t,n)=>e.listByConnection(t,n),addClientToConnection:(t,n,r)=>e.addClientToConnection(t,n,r),removeClientFromConnection:(t,n,r)=>e.removeClientFromConnection(t,n,r)}}function eDe(e,t){return{create:async(n,r)=>e.create(n,await z9(r,t(n).encrypt)),update:async(n,r)=>e.update(n,await z9(r,t(n).encrypt)),get:async n=>{let r=await e.get(n);return r&&z9(r,t(n).decrypt)},remove:t=>e.remove(t)}}function tDe(e,t){return{create:async(n,r)=>{let i=t(n);return L9(await e.create(n,await L9(r,i.encrypt)),i.decrypt)},get:async(n,r)=>{let i=await e.get(n,r);return i&&L9(i,t(n).decrypt)},getByCredentialId:async(n,r)=>{let i=await e.getByCredentialId(n,r);return i&&L9(i,t(n).decrypt)},list:async(n,r)=>{let i=t(n),a=await e.list(n,r);return Promise.all(a.map(e=>L9(e,i.decrypt)))},update:async(n,r,i)=>{let a=t(n);return L9(await e.update(n,r,await L9(i,a.encrypt)),a.decrypt)},remove:(t,n)=>e.remove(t,n)}}function nDe(e,t){return{create:async(n,r)=>{let i=t(n);return B9(await e.create(n,await B9(r,i.encrypt)),i.decrypt)},get:async(n,r)=>{let i=await e.get(n,r);return i&&B9(i,t(n).decrypt)},list:async n=>{let r=t(n),i=await e.list(n);return Promise.all(i.map(e=>B9(e,r.decrypt)))},remove:(t,n)=>e.remove(t,n),update:async(n,r,i)=>e.update(n,r,await B9(i,t(n).encrypt))}}function V9(e,t){let n={...e,clients:ZEe(e.clients,t),connections:QEe(e.connections,t),clientConnections:$Ee(e.clientConnections,t),emailProviders:eDe(e.emailProviders,t),authenticationMethods:tDe(e.authenticationMethods,t),transaction:n=>e.transaction(e=>n(V9(e,t)))};return e.migrationSources&&(n.migrationSources=nDe(e.migrationSources,t)),n}function rDe(e,t){return V9(e,F9({default:t}))}function iDe(e,t,n={}){return V9(e,F9(t,n.resolveEncryptKeyId))}async function H9(e,t={}){e.sessionCleanup&&await e.sessionCleanup({tenant_id:t.tenantId,user_id:t.userId})}async function aDe(e,t){await H9(e.env.data,t)}async function U9(e,t={}){let n=t.retentionDays??7,r=new Date(Date.now()-n*24*60*60*1e3).toISOString();return e.cleanup(r)}function W9(e){let{dataAdapter:t,getServiceToken:n,webhookTimeoutMs:r,webhookInvoker:i,controlPlaneSync:a,codeExecutor:o}=e;if(a&&!n)throw Error(`createDefaultDestinations: controlPlaneSync requires getServiceToken`);let s=[new uY(t.logs)];return t.logStreams&&s.push(new hY(t.logStreams)),n&&s.push(new yY(t.hooks,n,{timeoutMs:r,webhookInvoker:i})),o&&t.actions&&t.hookCode&&t.actionExecutions&&s.push(new xY({hooks:t.hooks,actions:t.actions,hookCode:t.hookCode,actionExecutions:t.actionExecutions,multiTenancyConfig:t.multiTenancyConfig},o)),n&&(a&&s.push(new jY({baseUrl:a.baseUrl,timeoutMs:a.timeoutMs,getServiceToken:n})),s.push(new CY(t.users))),s}async function oDe(e){let{dataAdapter:t,issuer:n,webhookInvoker:r,retentionDays:i=7,batchSize:a,maxRetries:o,webhookTimeoutMs:s,codeExecutor:c}=e;if(!t.outbox)return;let l=W9({dataAdapter:t,getServiceToken:PL({tenants:t.tenants,keys:t.keys,issuer:n}),webhookTimeoutMs:s,webhookInvoker:r,codeExecutor:c}),u;try{await sY(t.outbox,l,{batchSize:a,maxRetries:o,retentionDays:i})}catch(e){u=e}if(await U9(t.outbox,{retentionDays:i}),u!==void 0)throw u}var sDe=`/api/v2/proxy/control-plane/custom-domains`;function cDe(e,t){if(typeof e==`object`&&e){let t=e;if(typeof t.message==`string`)return t.message;if(typeof t.error==`string`)return t.error}return t}function G9(e,t){let n=cDe(e.data,`Control plane failed to ${t} (status ${e.status})`);return e.status>=400&&e.status<500?new m(e.status,{message:n}):new m(502,{message:n})}function K9(e,t){let n=yn.safeParse(e);if(!n.success)throw new m(502,{message:`Control plane returned an unparseable custom domain on ${t}`});return n.data}function lDe(e){let{client:t,mirror:n}=e,r=e.basePath??`/api/v2/proxy/control-plane/custom-domains`,i=wQ;async function a(e,t){if(await n.update(e,t.custom_domain_id,t))return;let r={domain:t.domain,custom_domain_id:t.custom_domain_id,type:t.type,verification_method:t.verification_method,tls_policy:t.tls_policy===`recommended`?`recommended`:void 0,custom_client_ip_header:t.custom_client_ip_header,domain_metadata:t.domain_metadata};await n.create(e,r),await n.update(e,t.custom_domain_id,{status:t.status,primary:t.primary,verification:t.verification,origin_domain_name:t.origin_domain_name})}async function o(e,t,n){try{await t()}catch(t){let r=t instanceof Error?t.message:String(t);throw console.error(`[control-plane/custom-domains] mirror ${n} failed (tenant=${e}); the control plane accepted the write but this shard cannot route it:`,r),new m(503,{message:`The custom domain was registered but could not be cached locally (${n}); retry the request.`})}}async function s(e,t,n){try{await t()}catch(t){console.warn(`[control-plane/custom-domains] mirror ${n} failed during refresh (tenant=${e}):`,t instanceof Error?t.message:t)}}return{create:async(e,n)=>{let s=await t.request({tenantId:e,scope:i,method:`POST`,path:r,body:{tenant_id:e,...n}});if(s.status!==200&&s.status!==201)throw G9(s,`create the custom domain`);let c=K9(s.data,`create`);return await o(e,()=>a(e,c),`create`),c},get:async(e,o)=>{let c;try{c=await t.request({tenantId:e,scope:i,method:`GET`,path:`${r}/${encodeURIComponent(o)}?tenant_id=${encodeURIComponent(e)}`})}catch(t){let r=await n.get(e,o);if(r)return console.warn(`[control-plane/custom-domains] refresh failed for ${o} (tenant=${e}); serving the stale mirror row:`,t instanceof Error?t.message:t),r;throw t}if(c.status===404){try{await n.remove(e,o)}catch(t){console.error(`[control-plane/custom-domains] mirror delete of a domain removed upstream failed (tenant=${e}, id=${o}); it may keep resolving until the next reconcile:`,t instanceof Error?t.message:t)}return null}if(c.status!==200){let t=await n.get(e,o);if(t)return t;throw G9(c,`read the custom domain`)}let l=K9(c.data,`get`);return await s(e,()=>a(e,l),`upsert`),l},getByDomain:async e=>n.getByDomain(e),list:async e=>{let o;try{o=await t.request({tenantId:e,scope:i,method:`GET`,path:`${r}?tenant_id=${encodeURIComponent(e)}`})}catch(t){return console.warn(`[control-plane/custom-domains] list refresh failed (tenant=${e}); serving mirror rows:`,t instanceof Error?t.message:t),n.list(e)}if(o.status!==200)return console.warn(`[control-plane/custom-domains] list refresh returned ${o.status} (tenant=${e}); serving mirror rows.`),n.list(e);let c=yn.array().safeParse(o.data);if(!c.success)return console.warn(`[control-plane/custom-domains] list refresh unparseable (tenant=${e}); serving mirror rows.`),n.list(e);let l=c.data,u=new Set(l.map(e=>e.custom_domain_id)),d=await n.list(e);return await s(e,async()=>{for(let t of d)u.has(t.custom_domain_id)||await n.remove(e,t.custom_domain_id);for(let t of l)await a(e,t)},`reconcile`),l},update:async(e,n,s)=>{let c=await t.request({tenantId:e,scope:i,method:`PATCH`,path:`${r}/${encodeURIComponent(n)}`,body:{tenant_id:e,...s}});if(c.status===404)return!1;if(c.status!==200)throw G9(c,`update the custom domain`);let l=K9(c.data,`update`);return await o(e,()=>a(e,l),`update`),!0},remove:async(e,a)=>{let s=await t.request({tenantId:e,scope:i,method:`DELETE`,path:`${r}/${encodeURIComponent(a)}?tenant_id=${encodeURIComponent(e)}`}),c=s.status===404;if(!c&&s.status!==200&&s.status!==204)throw G9(s,`delete the custom domain`);return await o(e,async()=>{await n.remove(e,a)},`delete`),!c},uploadCertificate:async(e,n,s)=>{let c=await t.request({tenantId:e,scope:i,method:`PUT`,path:`${r}/${encodeURIComponent(n)}/certificate`,body:{tenant_id:e,...s}});if(c.status!==200)throw G9(c,`upload the certificate`);let l=K9(c.data,`certificate upload`);return await o(e,()=>a(e,l),`certificate upload`),l}}}function uDe(e){let{data:t,controlPlaneTenantId:n,issuer:r}=e;async function i(e){let r=await t.organizations.get(n,e);if(!r||r.name!==e)throw new WJ(e);return r}async function a(e,r){return(await t.userOrganizations.list(n,{q:`user_id:${r}`,per_page:100})).userOrganizations.find(t=>t.organization_id===e)?.id}return{async listMembers(e,a={}){let o=await i(e),s=a.page??0,c=a.per_page??25,l=await t.userOrganizations.list(n,{page:s,per_page:c,include_totals:!0,q:`organization_id:${o.id}`}),u=(await Promise.all(l.userOrganizations.map(async e=>{let i=await t.users.get(n,e.user_id);if(!i)return null;let a=await t.userRoles.list(n,i.user_id,void 0,o.id);return{user_id:i.user_id,email:i.email||void 0,name:i.name||void 0,picture:i.picture||AA(r,i),roles:a}}))).filter(e=>e!==null);return{members:u,start:l.start??s*c,limit:l.limit??c,total:l.length??u.length}},async addMembers(e,r){let o=await i(e);for(let e of r)await t.users.get(n,e)&&(await a(o.id,e)||await t.userOrganizations.create(n,{user_id:e,organization_id:o.id}))},async removeMembers(e,r){let o=await i(e);for(let e of r){let r=await a(o.id,e);r&&await t.userOrganizations.remove(n,r)}},async listMemberRoles(e,r){let a=await i(e);return t.userRoles.list(n,r,void 0,a.id)},async assignMemberRoles(e,r,a){let o=await i(e),s=await t.userRoles.list(n,r,void 0,o.id),c=new Set(s.map(e=>e.id));for(let e of a)c.has(e)||await t.userRoles.create(n,r,e,o.id)},async removeMemberRoles(e,r,a){let o=await i(e);for(let e of a)await t.userRoles.remove(n,r,e,o.id)},async listRoles(e,r={}){return await i(e),(await t.roles.list(n,{page:r.page??0,per_page:r.per_page??100,q:r.q})).roles},async listInvitations(e,r={}){let a=await i(e);return(await t.invites.list(n,{page:r.page??0,per_page:r.per_page??100})).invites.filter(e=>e.organization_id===a.id)},async createInvitation(a,o){let s=await i(a);if(!e.invitationClientId)throw Error(`Cannot create invitation: no invitation client id is configured for tenant-members.`);let c=Xa(),l=new URL(`u2/accept-invitation`,r);l.searchParams.set(`invitation`,c),l.searchParams.set(`organization`,s.id);let u=l.toString(),d=await t.invites.create(n,{id:c,organization_id:s.id,client_id:e.invitationClientId,invitation_url:u,invitee:o.invitee,inviter:o.inviter??{},roles:o.roles,send_invitation_email:o.send_invitation_email,ttl_sec:o.ttl_sec});if(o.send_invitation_email!==!1&&o.invitee.email&&e.sendInvitationEmail)try{await e.sendInvitationEmail({to:o.invitee.email,invitationUrl:u,inviterName:o.inviter?.name,organizationName:s.display_name||s.name||s.id,ttlSec:o.ttl_sec??604800})}catch(e){console.error(`[tenant-members] failed to send invitation email for ${d.id}:`,e)}return d},async revokeInvitation(e,r){let a=await i(e),o=await t.invites.get(n,r);if(!o||o.organization_id!==a.id)throw new GJ(r);await t.invites.remove(n,r)}}}function dDe(e,t){if(typeof e==`object`&&e){let t=e;if(typeof t.message==`string`)return t.message;if(typeof t.error==`string`)return t.error}return t}function q9(e,t){let n=dDe(e.data,`Control plane failed to ${t} (status ${e.status})`);return e.status>=400&&e.status<500?new m(e.status,{message:n}):new m(502,{message:n})}function J9(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&r!==``&&t.set(n,String(r));let n=t.toString();return n?`?${n}`:``}function fDe(e){let{client:t}=e,n=e.basePath??`/api/v2/proxy/control-plane/tenant-members`,r=TQ;return{async listMembers(e,i={}){let a=await t.request({tenantId:e,scope:r,method:`GET`,path:`${n}/members${J9({tenant_id:e,page:i.page,per_page:i.per_page,q:i.q})}`});if(a.status===404)throw new WJ(e);if(a.status!==200)throw q9(a,`list tenant members`);let o=VJ.safeParse(a.data);if(!o.success)throw new m(502,{message:`Control plane returned an unparseable member list`});return o.data},async addMembers(e,i){let a=await t.request({tenantId:e,scope:r,method:`POST`,path:`${n}/members`,body:{tenant_id:e,user_ids:i}});if(a.status===404)throw new WJ(e);if(a.status!==204&&a.status!==200)throw q9(a,`add tenant members`)},async removeMembers(e,i){let a=await t.request({tenantId:e,scope:r,method:`DELETE`,path:`${n}/members`,body:{tenant_id:e,user_ids:i}});if(a.status===404)throw new WJ(e);if(a.status!==204&&a.status!==200)throw q9(a,`remove tenant members`)},async listMemberRoles(e,i){let a=await t.request({tenantId:e,scope:r,method:`GET`,path:`${n}/members/${encodeURIComponent(i)}/roles${J9({tenant_id:e})}`});if(a.status===404)throw new WJ(e);if(a.status!==200)throw q9(a,`list member roles`);return a.data??[]},async assignMemberRoles(e,i,a){let o=await t.request({tenantId:e,scope:r,method:`POST`,path:`${n}/members/${encodeURIComponent(i)}/roles`,body:{tenant_id:e,roles:a}});if(o.status===404)throw new WJ(e);if(o.status!==204&&o.status!==200)throw q9(o,`assign member roles`)},async removeMemberRoles(e,i,a){let o=await t.request({tenantId:e,scope:r,method:`DELETE`,path:`${n}/members/${encodeURIComponent(i)}/roles`,body:{tenant_id:e,roles:a}});if(o.status===404)throw new WJ(e);if(o.status!==204&&o.status!==200)throw q9(o,`remove member roles`)},async listRoles(e,i={}){let a=await t.request({tenantId:e,scope:r,method:`GET`,path:`${n}/roles${J9({tenant_id:e,page:i.page,per_page:i.per_page,q:i.q})}`});if(a.status===404)throw new WJ(e);if(a.status!==200)throw q9(a,`list assignable roles`);return a.data??[]},async listInvitations(e,i={}){let a=await t.request({tenantId:e,scope:r,method:`GET`,path:`${n}/invitations${J9({tenant_id:e,page:i.page,per_page:i.per_page})}`});if(a.status===404)throw new WJ(e);if(a.status!==200)throw q9(a,`list invitations`);return a.data??[]},async createInvitation(e,i){let a=await t.request({tenantId:e,scope:r,method:`POST`,path:`${n}/invitations`,body:{tenant_id:e,...i}});if(a.status===404)throw new WJ(e);if(a.status!==201&&a.status!==200)throw q9(a,`create invitation`);return a.data},async revokeInvitation(e,i){let a=await t.request({tenantId:e,scope:r,method:`DELETE`,path:`${n}/invitations/${encodeURIComponent(i)}${J9({tenant_id:e})}`});if(a.status===404)throw new WJ(e);if(a.status!==204&&a.status!==200)throw q9(a,`revoke invitation`)}}}var pDe=5e3,mDe=60;function hDe(e,t){try{let{payload:n}=t_(e),r=n.exp;if(typeof r==`number`)return r*1e3-t*1e3}catch{}return Date.now()+6e4}function gDe(e){let t=e.baseUrl.replace(/\/+$/,``),n=e.fetchImpl??fetch,r=e.timeoutMs??pDe,i=e.tokenRefreshSkewSeconds??mDe,a=new Map,o=new Map;function s(e){for(let[t,n]of a)n.expiresAt<=e&&a.delete(t)}async function c(t,n,r=!1){let c=`${t}\n${n}`;if(r)a.delete(c);else{let e=a.get(c);if(e&&e.expiresAt>Date.now())return e.value}let l=o.get(c);if(l)return l;s(Date.now());let u=e.getServiceToken(t,n).then(e=>(a.set(c,{value:e,expiresAt:hDe(e,i)}),e)).finally(()=>{o.delete(c)});return o.set(c,u),u}async function l(e,i){let a=new AbortController,o=setTimeout(()=>a.abort(),r);try{return await n(`${t}${e.path}`,{method:e.method,headers:{authorization:`Bearer ${i}`,...e.body===void 0?{}:{"content-type":`application/json`}},body:e.body===void 0?void 0:JSON.stringify(e.body),signal:a.signal})}finally{clearTimeout(o)}}return{async request(e){let t=await c(e.tenantId,e.scope),n=await l(e,t);n.status===401&&(t=await c(e.tenantId,e.scope,!0),n=await l(e,t));let r=await n.text().catch(()=>``),i=null;if(r)try{i=JSON.parse(r)}catch{i=null}return{status:n.status,data:i}}}}function _De(e){let{customDomains:t,proxyRoutes:n,kv:r,resolveHost:i,keyPrefix:a=xQ,waitUntil:o,onError:s}=e;function c(e){let t=e.catch(()=>void 0);o&&o(t)}async function l(e,t){try{let t=await i(e),n=SQ(a,e);t?await r.put(n,JSON.stringify(t)):await r.delete(n)}catch(n){s&&s(n,{host:e,op:t})}}function u(e,t){e&&c(l(e,t))}async function d(e,n){try{return(await t.get(e,n))?.domain??null}catch{return null}}let f={...t,async create(e,n,r){let i=await t.create(e,n,r);return u(i.domain,`custom_domain.create`),i},async update(e,n,r){let i=await d(e,n),a=await t.update(e,n,r);if(a){let t=await d(e,n),r=t??i;i&&t&&i!==t&&u(i,`custom_domain.update`),u(r,`custom_domain.update`)}return a},async remove(e,n){let r=await d(e,n),i=await t.remove(e,n);return i&&u(r,`custom_domain.remove`),i}};if(t.uploadCertificate){let e=t.uploadCertificate.bind(t);f.uploadCertificate=async(t,n,r)=>{let i=await e(t,n,r);return u(i.domain,`custom_domain.uploadCertificate`),i}}return{customDomains:f,proxyRoutes:{...n,async create(e,t,r){let i=await n.create(e,t,r);return u(await d(e,i.custom_domain_id),`proxy_route.create`),i},async update(e,t,r){let i=await n.get(e,t),a=await n.update(e,t,r);return a&&i&&u(await d(e,i.custom_domain_id),`proxy_route.update`),a},async remove(e,t){let r=await n.get(e,t),i=await n.remove(e,t);return i&&r&&u(await d(e,r.custom_domain_id),`proxy_route.remove`),i}}}}async function vDe(e){let{hosts:t,resolveHost:n,kv:r,keyPrefix:i=xQ}=e,a={published:0,deleted:0,failed:[]};for(let e of t){let t=e.toLowerCase();try{let e=await n(t),o=SQ(i,t);e?(await r.put(o,JSON.stringify(e)),a.published+=1):(await r.delete(o),a.deleted+=1)}catch{a.failed.push(t)}}return a}var Y9=`DISPATCHER`,X9=`{tenant_id}`;function Z9(e,t){return`${e}.${Q9(t)}`.toLowerCase()}function Q9(e){let t=e.trim().toLowerCase(),n=t.indexOf(`:`);return n!==-1&&(t=t.slice(0,n)),t.endsWith(`.`)&&(t=t.slice(0,-1)),t}var yDe=/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/;function $9(e){return yDe.test(e)}function bDe(e){let{tenants:t,dispatchBinding:n=Y9,scriptNameTemplate:r=X9,dispatchTimeoutMs:i}=e,a=`.${Q9(e.issuerHost)}`;return async e=>{let o=Q9(e);if(!o.endsWith(a))return null;let s=o.slice(0,-a.length);if(!s||s.includes(`.`))return null;let c=await t.get(s);return!c||c.deployment_type!==`wfp`||c.provisioning_state!==`ready`?null:xDe(c,o,{dispatchBinding:n,scriptNameTemplate:r,dispatchTimeoutMs:i})}}function xDe(e,t,n){let r=e.worker_script_name??n.scriptNameTemplate.replaceAll(`{tenant_id}`,e.id),i=e.updated_at||new Date().toISOString();return{tenant_id:e.id,custom_domain_id:t,domain:t,routes:[{id:`${t}:wfp-dispatch`,tenant_id:e.id,custom_domain_id:t,priority:100,match:{path:`/*`},handlers:[{type:`forwarded_headers`,options:{}},{type:`dispatch_namespace`,options:{binding:n.dispatchBinding,script_name:r,...n.dispatchTimeoutMs?{timeout_ms:n.dispatchTimeoutMs}:{}}}],created_at:i,updated_at:i}]}}function SDe(...e){return async t=>{for(let n of e){let e=await n(t);if(e)return e}return null}}function CDe(e){let{tenants:t,kv:n,resolveHost:r,issuerHost:i,keyPrefix:a=xQ,waitUntil:o,onError:s}=e;function c(e){let t=e.catch(()=>void 0);o&&o(t)}async function l(e,t){try{let t=await r(e),i=SQ(a,e);t?await n.put(i,JSON.stringify(t)):await n.delete(i)}catch(n){s&&s(n,{host:e,op:t})}}function u(e,t){$9(e)&&c(l(Z9(e,i),t))}async function d(e){try{return(await t.get(e))?.deployment_type===`wfp`}catch{return!1}}return{...t,async create(e,n){let r=await t.create(e,n);return r.deployment_type===`wfp`&&u(r.id,`tenant.create`),r},async update(e,n){await t.update(e,n),(`deployment_type`in n||await d(e))&&u(e,`tenant.update`)},async remove(e){let n=await d(e),r=await t.remove(e);return r&&n&&u(e,`tenant.remove`),r}}}var wDe=50,TDe=500;function EDe(e){let t=e=>e.map(e=>{if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}).join(` `).slice(0,TDe),n=(n,r)=>{e.length>=wDe||e.push({level:n,message:t(r)})};return{log:(...e)=>n(`log`,e),info:(...e)=>n(`info`,e),warn:(...e)=>n(`warn`,e),error:(...e)=>n(`error`,e),debug:(...e)=>n(`debug`,e)}}function DDe(e){let t=[],n={"post-user-login":{accessToken:[`setCustomClaim`],idToken:[`setCustomClaim`],access:[`deny`],prompt:[`render`],redirect:[`sendUserTo`]},"credentials-exchange":{accessToken:[`setCustomClaim`],idToken:[`setCustomClaim`],access:[`deny`]},"pre-user-registration":{user:[`setUserMetadata`,`setLinkedTo`],access:[`deny`]},"post-user-registration":{}}[e]||{},r={};for(let[e,i]of Object.entries(n)){let n={};for(let r of i)n[r]=(...n)=>{t.push({method:`${e}.${r}`,args:n})};r[e]=n}return{api:r,getCalls:()=>t}}var ODe=class{async execute(e){let t=Date.now(),{api:n,getCalls:r}=DDe(e.triggerId),i=[],a=EDe(i);try{let o={"post-user-login":`onExecutePostLogin`,"credentials-exchange":`onExecuteCredentialsExchange`,"pre-user-registration":`onExecutePreUserRegistration`,"post-user-registration":`onExecutePostUserRegistration`}[e.triggerId];if(!o)return{success:!1,error:`Unknown trigger: ${e.triggerId}`,durationMs:Date.now()-t,apiCalls:[],logs:i};let s=`
3757
+ c2.7,4.1,6.5,6.6,10.9,6.6c4,0,7.2-2,9.6-5.2c0.9-1.2,0.9-2.5,0-3.1C33.3,22.9,32.1,23.2,31.2,24.4z`})]}),E9=`enc:v1:`,D9=12,WEe=/^[A-Za-z0-9_-]+$/;function O9(e){return e.startsWith(E9)}function k9(e){if(!O9(e))return;let t=e.slice(7),n=t.indexOf(`:`);if(n!==-1)return t.slice(0,n)}function GEe(e){let t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}async function KEe(e){let t=xa(e);if(t.byteLength!==32)throw Error(`ENCRYPTION_KEY must decode to 32 bytes (got ${t.byteLength}). Generate one with: openssl rand -base64 32`);return crypto.subtle.importKey(`raw`,GEe(t),{name:`AES-GCM`},!1,[`encrypt`,`decrypt`])}async function A9(e,t,n){let r=crypto.getRandomValues(new Uint8Array(D9)),i=await crypto.subtle.encrypt({name:`AES-GCM`,iv:r},t,new TextEncoder().encode(e)),a=new Uint8Array(r.byteLength+i.byteLength);a.set(r,0),a.set(new Uint8Array(i),r.byteLength);let o=ga(a);return n?`${E9}${n}:${o}`:`${E9}${o}`}async function j9(e,t){let n=e.slice(7),r=n.indexOf(`:`),i=_a(r===-1?n:n.slice(r+1)),a=i.slice(0,D9),o=i.slice(D9),s=await crypto.subtle.decrypt({name:`AES-GCM`,iv:a},t,o);return new TextDecoder().decode(s)}async function qEe(e,t){return A9(e,t)}async function JEe(e,t){return O9(e)?j9(e,t):e}function M9(e,t){if(!t)return e.default;let n=e.keys?.[t];if(!n)throw Error(`No key for id "${t}" in key ring (have: ${Object.keys(e.keys??{}).join(`, `)||`none`}). The key binding for this id is missing.`);return n}async function N9(e,t,n){if(n&&!WEe.test(n))throw Error(`Invalid key id "${n}": only [A-Za-z0-9_-] are allowed.`);return A9(e,M9(t,n),n)}async function P9(e,t){return O9(e)?j9(e,M9(t,k9(e))):e}function F9(e,t){return n=>{let r=t?.(n);return{encrypt:t=>O9(t)?Promise.resolve(t):N9(t,e,r),decrypt:t=>P9(t,e)}}}async function I9(e,t){return typeof e.client_secret==`string`?{...e,client_secret:await t(e.client_secret)}:e}async function L9(e,t){return typeof e.totp_secret==`string`?{...e,totp_secret:await t(e.totp_secret)}:e}async function YEe(e,t){if(!e)return e;let n={...e};return typeof n.client_secret==`string`&&(n.client_secret=await t(n.client_secret)),typeof n.app_secret==`string`&&(n.app_secret=await t(n.app_secret)),typeof n.twilio_token==`string`&&(n.twilio_token=await t(n.twilio_token)),n.configuration&&typeof n.configuration.client_secret==`string`&&(n.configuration={...n.configuration,client_secret:await t(n.configuration.client_secret)}),n}async function R9(e,t){return e.options?{...e,options:await YEe(e.options,t)}:e}async function XEe(e,t){if(!e)return e;let n={...e};for(let[e,r]of Object.entries(n))typeof r==`string`&&(n[e]=await t(r));return n}async function z9(e,t){if(!e.credentials)return e;let n=await XEe(e.credentials,t);return{...e,credentials:n}}async function B9(e,t){return!e.credentials||typeof e.credentials.client_secret!=`string`?e:{...e,credentials:{...e.credentials,client_secret:await t(e.credentials.client_secret)}}}function ZEe(e,t){return{create:async(n,r)=>{let i=t(n);return I9(await e.create(n,await I9(r,i.encrypt)),i.decrypt)},get:async(n,r)=>{let i=await e.get(n,r);return i&&I9(i,t(n).decrypt)},getByClientId:async n=>{let r=await e.getByClientId(n);return r&&I9(r,t(r.tenant_id).decrypt)},remove:(t,n)=>e.remove(t,n),list:async(n,r)=>{let i=t(n),a=await e.list(n,r);return{...a,clients:await Promise.all(a.clients.map(e=>I9(e,i.decrypt)))}},update:async(n,r,i)=>e.update(n,r,await I9(i,t(n).encrypt))}}function QEe(e,t){return{create:async(n,r)=>{let i=t(n);return R9(await e.create(n,await R9(r,i.encrypt)),i.decrypt)},remove:(t,n)=>e.remove(t,n),get:async(n,r)=>{let i=await e.get(n,r);return i&&R9(i,t(n).decrypt)},update:async(n,r,i)=>e.update(n,r,await R9(i,t(n).encrypt)),list:async(n,r)=>{let i=t(n),a=await e.list(n,r);return{...a,connections:await Promise.all(a.connections.map(e=>R9(e,i.decrypt)))}}}}function $Ee(e,t){return{listByClient:async(n,r)=>{let i=t(n),a=await e.listByClient(n,r);return Promise.all(a.map(e=>R9(e,i.decrypt)))},updateByClient:(t,n,r)=>e.updateByClient(t,n,r),listByConnection:(t,n)=>e.listByConnection(t,n),addClientToConnection:(t,n,r)=>e.addClientToConnection(t,n,r),removeClientFromConnection:(t,n,r)=>e.removeClientFromConnection(t,n,r)}}function eDe(e,t){return{create:async(n,r)=>e.create(n,await z9(r,t(n).encrypt)),update:async(n,r)=>e.update(n,await z9(r,t(n).encrypt)),get:async n=>{let r=await e.get(n);return r&&z9(r,t(n).decrypt)},remove:t=>e.remove(t)}}function tDe(e,t){return{create:async(n,r)=>{let i=t(n);return L9(await e.create(n,await L9(r,i.encrypt)),i.decrypt)},get:async(n,r)=>{let i=await e.get(n,r);return i&&L9(i,t(n).decrypt)},getByCredentialId:async(n,r)=>{let i=await e.getByCredentialId(n,r);return i&&L9(i,t(n).decrypt)},list:async(n,r)=>{let i=t(n),a=await e.list(n,r);return Promise.all(a.map(e=>L9(e,i.decrypt)))},update:async(n,r,i)=>{let a=t(n);return L9(await e.update(n,r,await L9(i,a.encrypt)),a.decrypt)},remove:(t,n)=>e.remove(t,n)}}function nDe(e,t){return{create:async(n,r)=>{let i=t(n);return B9(await e.create(n,await B9(r,i.encrypt)),i.decrypt)},get:async(n,r)=>{let i=await e.get(n,r);return i&&B9(i,t(n).decrypt)},list:async n=>{let r=t(n),i=await e.list(n);return Promise.all(i.map(e=>B9(e,r.decrypt)))},remove:(t,n)=>e.remove(t,n),update:async(n,r,i)=>e.update(n,r,await B9(i,t(n).encrypt))}}function V9(e,t){let n={...e,clients:ZEe(e.clients,t),connections:QEe(e.connections,t),clientConnections:$Ee(e.clientConnections,t),emailProviders:eDe(e.emailProviders,t),authenticationMethods:tDe(e.authenticationMethods,t),transaction:n=>e.transaction(e=>n(V9(e,t)))};return e.migrationSources&&(n.migrationSources=nDe(e.migrationSources,t)),n}function rDe(e,t){return V9(e,F9({default:t}))}function iDe(e,t,n={}){return V9(e,F9(t,n.resolveEncryptKeyId))}async function H9(e,t={}){e.sessionCleanup&&await e.sessionCleanup({tenant_id:t.tenantId,user_id:t.userId})}async function aDe(e,t){await H9(e.env.data,t)}async function U9(e,t={}){let n=t.retentionDays??7,r=new Date(Date.now()-n*24*60*60*1e3).toISOString();return e.cleanup(r)}async function oDe(e,t={}){let n=t.retentionDays??1,r=new Date(Date.now()-n*24*60*60*1e3).toISOString();return e.cleanup(r)}function W9(e){let{dataAdapter:t,getServiceToken:n,webhookTimeoutMs:r,webhookInvoker:i,controlPlaneSync:a,codeExecutor:o}=e;if(a&&!n)throw Error(`createDefaultDestinations: controlPlaneSync requires getServiceToken`);let s=[new uY(t.logs)];return t.logStreams&&s.push(new hY(t.logStreams)),n&&s.push(new yY(t.hooks,n,{timeoutMs:r,webhookInvoker:i})),o&&t.actions&&t.hookCode&&t.actionExecutions&&s.push(new xY({hooks:t.hooks,actions:t.actions,hookCode:t.hookCode,actionExecutions:t.actionExecutions,multiTenancyConfig:t.multiTenancyConfig},o)),n&&(a&&s.push(new jY({baseUrl:a.baseUrl,timeoutMs:a.timeoutMs,getServiceToken:n})),s.push(new CY(t.users))),s}async function sDe(e){let{dataAdapter:t,issuer:n,webhookInvoker:r,retentionDays:i=7,batchSize:a,maxRetries:o,webhookTimeoutMs:s,codeExecutor:c}=e;if(!t.outbox)return;let l=W9({dataAdapter:t,getServiceToken:PL({tenants:t.tenants,keys:t.keys,issuer:n}),webhookTimeoutMs:s,webhookInvoker:r,codeExecutor:c}),u;try{await sY(t.outbox,l,{batchSize:a,maxRetries:o,retentionDays:i})}catch(e){u=e}if(await U9(t.outbox,{retentionDays:i}),u!==void 0)throw u}var cDe=`/api/v2/proxy/control-plane/custom-domains`;function lDe(e,t){if(typeof e==`object`&&e){let t=e;if(typeof t.message==`string`)return t.message;if(typeof t.error==`string`)return t.error}return t}function G9(e,t){let n=lDe(e.data,`Control plane failed to ${t} (status ${e.status})`);return e.status>=400&&e.status<500?new m(e.status,{message:n}):new m(502,{message:n})}function K9(e,t){let n=yn.safeParse(e);if(!n.success)throw new m(502,{message:`Control plane returned an unparseable custom domain on ${t}`});return n.data}function uDe(e){let{client:t,mirror:n}=e,r=e.basePath??`/api/v2/proxy/control-plane/custom-domains`,i=wQ;async function a(e,t){if(await n.update(e,t.custom_domain_id,t))return;let r={domain:t.domain,custom_domain_id:t.custom_domain_id,type:t.type,verification_method:t.verification_method,tls_policy:t.tls_policy===`recommended`?`recommended`:void 0,custom_client_ip_header:t.custom_client_ip_header,domain_metadata:t.domain_metadata};await n.create(e,r),await n.update(e,t.custom_domain_id,{status:t.status,primary:t.primary,verification:t.verification,origin_domain_name:t.origin_domain_name})}async function o(e,t,n){try{await t()}catch(t){let r=t instanceof Error?t.message:String(t);throw console.error(`[control-plane/custom-domains] mirror ${n} failed (tenant=${e}); the control plane accepted the write but this shard cannot route it:`,r),new m(503,{message:`The custom domain was registered but could not be cached locally (${n}); retry the request.`})}}async function s(e,t,n){try{await t()}catch(t){console.warn(`[control-plane/custom-domains] mirror ${n} failed during refresh (tenant=${e}):`,t instanceof Error?t.message:t)}}return{create:async(e,n)=>{let s=await t.request({tenantId:e,scope:i,method:`POST`,path:r,body:{tenant_id:e,...n}});if(s.status!==200&&s.status!==201)throw G9(s,`create the custom domain`);let c=K9(s.data,`create`);return await o(e,()=>a(e,c),`create`),c},get:async(e,o)=>{let c;try{c=await t.request({tenantId:e,scope:i,method:`GET`,path:`${r}/${encodeURIComponent(o)}?tenant_id=${encodeURIComponent(e)}`})}catch(t){let r=await n.get(e,o);if(r)return console.warn(`[control-plane/custom-domains] refresh failed for ${o} (tenant=${e}); serving the stale mirror row:`,t instanceof Error?t.message:t),r;throw t}if(c.status===404){try{await n.remove(e,o)}catch(t){console.error(`[control-plane/custom-domains] mirror delete of a domain removed upstream failed (tenant=${e}, id=${o}); it may keep resolving until the next reconcile:`,t instanceof Error?t.message:t)}return null}if(c.status!==200){let t=await n.get(e,o);if(t)return t;throw G9(c,`read the custom domain`)}let l=K9(c.data,`get`);return await s(e,()=>a(e,l),`upsert`),l},getByDomain:async e=>n.getByDomain(e),list:async e=>{let o;try{o=await t.request({tenantId:e,scope:i,method:`GET`,path:`${r}?tenant_id=${encodeURIComponent(e)}`})}catch(t){return console.warn(`[control-plane/custom-domains] list refresh failed (tenant=${e}); serving mirror rows:`,t instanceof Error?t.message:t),n.list(e)}if(o.status!==200)return console.warn(`[control-plane/custom-domains] list refresh returned ${o.status} (tenant=${e}); serving mirror rows.`),n.list(e);let c=yn.array().safeParse(o.data);if(!c.success)return console.warn(`[control-plane/custom-domains] list refresh unparseable (tenant=${e}); serving mirror rows.`),n.list(e);let l=c.data,u=new Set(l.map(e=>e.custom_domain_id)),d=await n.list(e);return await s(e,async()=>{for(let t of d)u.has(t.custom_domain_id)||await n.remove(e,t.custom_domain_id);for(let t of l)await a(e,t)},`reconcile`),l},update:async(e,n,s)=>{let c=await t.request({tenantId:e,scope:i,method:`PATCH`,path:`${r}/${encodeURIComponent(n)}`,body:{tenant_id:e,...s}});if(c.status===404)return!1;if(c.status!==200)throw G9(c,`update the custom domain`);let l=K9(c.data,`update`);return await o(e,()=>a(e,l),`update`),!0},remove:async(e,a)=>{let s=await t.request({tenantId:e,scope:i,method:`DELETE`,path:`${r}/${encodeURIComponent(a)}?tenant_id=${encodeURIComponent(e)}`}),c=s.status===404;if(!c&&s.status!==200&&s.status!==204)throw G9(s,`delete the custom domain`);return await o(e,async()=>{await n.remove(e,a)},`delete`),!c},uploadCertificate:async(e,n,s)=>{let c=await t.request({tenantId:e,scope:i,method:`PUT`,path:`${r}/${encodeURIComponent(n)}/certificate`,body:{tenant_id:e,...s}});if(c.status!==200)throw G9(c,`upload the certificate`);let l=K9(c.data,`certificate upload`);return await o(e,()=>a(e,l),`certificate upload`),l}}}function dDe(e){let{data:t,controlPlaneTenantId:n,issuer:r}=e;async function i(e){let r=await t.organizations.get(n,e);if(!r||r.name!==e)throw new WJ(e);return r}async function a(e,r){return(await t.userOrganizations.list(n,{q:`user_id:${r}`,per_page:100})).userOrganizations.find(t=>t.organization_id===e)?.id}return{async listMembers(e,a={}){let o=await i(e),s=a.page??0,c=a.per_page??25,l=await t.userOrganizations.list(n,{page:s,per_page:c,include_totals:!0,q:`organization_id:${o.id}`}),u=(await Promise.all(l.userOrganizations.map(async e=>{let i=await t.users.get(n,e.user_id);if(!i)return null;let a=await t.userRoles.list(n,i.user_id,void 0,o.id);return{user_id:i.user_id,email:i.email||void 0,name:i.name||void 0,picture:i.picture||AA(r,i),roles:a}}))).filter(e=>e!==null);return{members:u,start:l.start??s*c,limit:l.limit??c,total:l.length??u.length}},async addMembers(e,r){let o=await i(e);for(let e of r)await t.users.get(n,e)&&(await a(o.id,e)||await t.userOrganizations.create(n,{user_id:e,organization_id:o.id}))},async removeMembers(e,r){let o=await i(e);for(let e of r){let r=await a(o.id,e);r&&await t.userOrganizations.remove(n,r)}},async listMemberRoles(e,r){let a=await i(e);return t.userRoles.list(n,r,void 0,a.id)},async assignMemberRoles(e,r,a){let o=await i(e),s=await t.userRoles.list(n,r,void 0,o.id),c=new Set(s.map(e=>e.id));for(let e of a)c.has(e)||await t.userRoles.create(n,r,e,o.id)},async removeMemberRoles(e,r,a){let o=await i(e);for(let e of a)await t.userRoles.remove(n,r,e,o.id)},async listRoles(e,r={}){return await i(e),(await t.roles.list(n,{page:r.page??0,per_page:r.per_page??100,q:r.q})).roles},async listInvitations(e,r={}){let a=await i(e);return(await t.invites.list(n,{page:r.page??0,per_page:r.per_page??100})).invites.filter(e=>e.organization_id===a.id)},async createInvitation(a,o){let s=await i(a);if(!e.invitationClientId)throw Error(`Cannot create invitation: no invitation client id is configured for tenant-members.`);let c=Xa(),l=new URL(`u2/accept-invitation`,r);l.searchParams.set(`invitation`,c),l.searchParams.set(`organization`,s.id);let u=l.toString(),d=await t.invites.create(n,{id:c,organization_id:s.id,client_id:e.invitationClientId,invitation_url:u,invitee:o.invitee,inviter:o.inviter??{},roles:o.roles,send_invitation_email:o.send_invitation_email,ttl_sec:o.ttl_sec});if(o.send_invitation_email!==!1&&o.invitee.email&&e.sendInvitationEmail)try{await e.sendInvitationEmail({to:o.invitee.email,invitationUrl:u,inviterName:o.inviter?.name,organizationName:s.display_name||s.name||s.id,ttlSec:o.ttl_sec??604800})}catch(e){console.error(`[tenant-members] failed to send invitation email for ${d.id}:`,e)}return d},async revokeInvitation(e,r){let a=await i(e),o=await t.invites.get(n,r);if(!o||o.organization_id!==a.id)throw new GJ(r);await t.invites.remove(n,r)}}}function fDe(e,t){if(typeof e==`object`&&e){let t=e;if(typeof t.message==`string`)return t.message;if(typeof t.error==`string`)return t.error}return t}function q9(e,t){let n=fDe(e.data,`Control plane failed to ${t} (status ${e.status})`);return e.status>=400&&e.status<500?new m(e.status,{message:n}):new m(502,{message:n})}function J9(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&r!==``&&t.set(n,String(r));let n=t.toString();return n?`?${n}`:``}function pDe(e){let{client:t}=e,n=e.basePath??`/api/v2/proxy/control-plane/tenant-members`,r=TQ;return{async listMembers(e,i={}){let a=await t.request({tenantId:e,scope:r,method:`GET`,path:`${n}/members${J9({tenant_id:e,page:i.page,per_page:i.per_page,q:i.q})}`});if(a.status===404)throw new WJ(e);if(a.status!==200)throw q9(a,`list tenant members`);let o=VJ.safeParse(a.data);if(!o.success)throw new m(502,{message:`Control plane returned an unparseable member list`});return o.data},async addMembers(e,i){let a=await t.request({tenantId:e,scope:r,method:`POST`,path:`${n}/members`,body:{tenant_id:e,user_ids:i}});if(a.status===404)throw new WJ(e);if(a.status!==204&&a.status!==200)throw q9(a,`add tenant members`)},async removeMembers(e,i){let a=await t.request({tenantId:e,scope:r,method:`DELETE`,path:`${n}/members`,body:{tenant_id:e,user_ids:i}});if(a.status===404)throw new WJ(e);if(a.status!==204&&a.status!==200)throw q9(a,`remove tenant members`)},async listMemberRoles(e,i){let a=await t.request({tenantId:e,scope:r,method:`GET`,path:`${n}/members/${encodeURIComponent(i)}/roles${J9({tenant_id:e})}`});if(a.status===404)throw new WJ(e);if(a.status!==200)throw q9(a,`list member roles`);return a.data??[]},async assignMemberRoles(e,i,a){let o=await t.request({tenantId:e,scope:r,method:`POST`,path:`${n}/members/${encodeURIComponent(i)}/roles`,body:{tenant_id:e,roles:a}});if(o.status===404)throw new WJ(e);if(o.status!==204&&o.status!==200)throw q9(o,`assign member roles`)},async removeMemberRoles(e,i,a){let o=await t.request({tenantId:e,scope:r,method:`DELETE`,path:`${n}/members/${encodeURIComponent(i)}/roles`,body:{tenant_id:e,roles:a}});if(o.status===404)throw new WJ(e);if(o.status!==204&&o.status!==200)throw q9(o,`remove member roles`)},async listRoles(e,i={}){let a=await t.request({tenantId:e,scope:r,method:`GET`,path:`${n}/roles${J9({tenant_id:e,page:i.page,per_page:i.per_page,q:i.q})}`});if(a.status===404)throw new WJ(e);if(a.status!==200)throw q9(a,`list assignable roles`);return a.data??[]},async listInvitations(e,i={}){let a=await t.request({tenantId:e,scope:r,method:`GET`,path:`${n}/invitations${J9({tenant_id:e,page:i.page,per_page:i.per_page})}`});if(a.status===404)throw new WJ(e);if(a.status!==200)throw q9(a,`list invitations`);return a.data??[]},async createInvitation(e,i){let a=await t.request({tenantId:e,scope:r,method:`POST`,path:`${n}/invitations`,body:{tenant_id:e,...i}});if(a.status===404)throw new WJ(e);if(a.status!==201&&a.status!==200)throw q9(a,`create invitation`);return a.data},async revokeInvitation(e,i){let a=await t.request({tenantId:e,scope:r,method:`DELETE`,path:`${n}/invitations/${encodeURIComponent(i)}${J9({tenant_id:e})}`});if(a.status===404)throw new WJ(e);if(a.status!==204&&a.status!==200)throw q9(a,`revoke invitation`)}}}var mDe=5e3,hDe=60;function gDe(e,t){try{let{payload:n}=t_(e),r=n.exp;if(typeof r==`number`)return r*1e3-t*1e3}catch{}return Date.now()+6e4}function _De(e){let t=e.baseUrl.replace(/\/+$/,``),n=e.fetchImpl??fetch,r=e.timeoutMs??mDe,i=e.tokenRefreshSkewSeconds??hDe,a=new Map,o=new Map;function s(e){for(let[t,n]of a)n.expiresAt<=e&&a.delete(t)}async function c(t,n,r=!1){let c=`${t}\n${n}`;if(r)a.delete(c);else{let e=a.get(c);if(e&&e.expiresAt>Date.now())return e.value}let l=o.get(c);if(l)return l;s(Date.now());let u=e.getServiceToken(t,n).then(e=>(a.set(c,{value:e,expiresAt:gDe(e,i)}),e)).finally(()=>{o.delete(c)});return o.set(c,u),u}async function l(e,i){let a=new AbortController,o=setTimeout(()=>a.abort(),r);try{return await n(`${t}${e.path}`,{method:e.method,headers:{authorization:`Bearer ${i}`,...e.body===void 0?{}:{"content-type":`application/json`}},body:e.body===void 0?void 0:JSON.stringify(e.body),signal:a.signal})}finally{clearTimeout(o)}}return{async request(e){let t=await c(e.tenantId,e.scope),n=await l(e,t);n.status===401&&(t=await c(e.tenantId,e.scope,!0),n=await l(e,t));let r=await n.text().catch(()=>``),i=null;if(r)try{i=JSON.parse(r)}catch{i=null}return{status:n.status,data:i}}}}function vDe(e){let{customDomains:t,proxyRoutes:n,kv:r,resolveHost:i,keyPrefix:a=xQ,waitUntil:o,onError:s}=e;function c(e){let t=e.catch(()=>void 0);o&&o(t)}async function l(e,t){try{let t=await i(e),n=SQ(a,e);t?await r.put(n,JSON.stringify(t)):await r.delete(n)}catch(n){s&&s(n,{host:e,op:t})}}function u(e,t){e&&c(l(e,t))}async function d(e,n){try{return(await t.get(e,n))?.domain??null}catch{return null}}let f={...t,async create(e,n,r){let i=await t.create(e,n,r);return u(i.domain,`custom_domain.create`),i},async update(e,n,r){let i=await d(e,n),a=await t.update(e,n,r);if(a){let t=await d(e,n),r=t??i;i&&t&&i!==t&&u(i,`custom_domain.update`),u(r,`custom_domain.update`)}return a},async remove(e,n){let r=await d(e,n),i=await t.remove(e,n);return i&&u(r,`custom_domain.remove`),i}};if(t.uploadCertificate){let e=t.uploadCertificate.bind(t);f.uploadCertificate=async(t,n,r)=>{let i=await e(t,n,r);return u(i.domain,`custom_domain.uploadCertificate`),i}}return{customDomains:f,proxyRoutes:{...n,async create(e,t,r){let i=await n.create(e,t,r);return u(await d(e,i.custom_domain_id),`proxy_route.create`),i},async update(e,t,r){let i=await n.get(e,t),a=await n.update(e,t,r);return a&&i&&u(await d(e,i.custom_domain_id),`proxy_route.update`),a},async remove(e,t){let r=await n.get(e,t),i=await n.remove(e,t);return i&&r&&u(await d(e,r.custom_domain_id),`proxy_route.remove`),i}}}}async function yDe(e){let{hosts:t,resolveHost:n,kv:r,keyPrefix:i=xQ}=e,a={published:0,deleted:0,failed:[]};for(let e of t){let t=e.toLowerCase();try{let e=await n(t),o=SQ(i,t);e?(await r.put(o,JSON.stringify(e)),a.published+=1):(await r.delete(o),a.deleted+=1)}catch{a.failed.push(t)}}return a}var Y9=`DISPATCHER`,X9=`{tenant_id}`;function Z9(e,t){return`${e}.${Q9(t)}`.toLowerCase()}function Q9(e){let t=e.trim().toLowerCase(),n=t.indexOf(`:`);return n!==-1&&(t=t.slice(0,n)),t.endsWith(`.`)&&(t=t.slice(0,-1)),t}var bDe=/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/;function $9(e){return bDe.test(e)}function xDe(e){let{tenants:t,dispatchBinding:n=Y9,scriptNameTemplate:r=X9,dispatchTimeoutMs:i}=e,a=`.${Q9(e.issuerHost)}`;return async e=>{let o=Q9(e);if(!o.endsWith(a))return null;let s=o.slice(0,-a.length);if(!s||s.includes(`.`))return null;let c=await t.get(s);return!c||c.deployment_type!==`wfp`||c.provisioning_state!==`ready`?null:SDe(c,o,{dispatchBinding:n,scriptNameTemplate:r,dispatchTimeoutMs:i})}}function SDe(e,t,n){let r=e.worker_script_name??n.scriptNameTemplate.replaceAll(`{tenant_id}`,e.id),i=e.updated_at||new Date().toISOString();return{tenant_id:e.id,custom_domain_id:t,domain:t,routes:[{id:`${t}:wfp-dispatch`,tenant_id:e.id,custom_domain_id:t,priority:100,match:{path:`/*`},handlers:[{type:`forwarded_headers`,options:{}},{type:`dispatch_namespace`,options:{binding:n.dispatchBinding,script_name:r,...n.dispatchTimeoutMs?{timeout_ms:n.dispatchTimeoutMs}:{}}}],created_at:i,updated_at:i}]}}function CDe(...e){return async t=>{for(let n of e){let e=await n(t);if(e)return e}return null}}function wDe(e){let{tenants:t,kv:n,resolveHost:r,issuerHost:i,keyPrefix:a=xQ,waitUntil:o,onError:s}=e;function c(e){let t=e.catch(()=>void 0);o&&o(t)}async function l(e,t){try{let t=await r(e),i=SQ(a,e);t?await n.put(i,JSON.stringify(t)):await n.delete(i)}catch(n){s&&s(n,{host:e,op:t})}}function u(e,t){$9(e)&&c(l(Z9(e,i),t))}async function d(e){try{return(await t.get(e))?.deployment_type===`wfp`}catch{return!1}}return{...t,async create(e,n){let r=await t.create(e,n);return r.deployment_type===`wfp`&&u(r.id,`tenant.create`),r},async update(e,n){await t.update(e,n),(`deployment_type`in n||await d(e))&&u(e,`tenant.update`)},async remove(e){let n=await d(e),r=await t.remove(e);return r&&n&&u(e,`tenant.remove`),r}}}var TDe=50,EDe=500;function DDe(e){let t=e=>e.map(e=>{if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}).join(` `).slice(0,EDe),n=(n,r)=>{e.length>=TDe||e.push({level:n,message:t(r)})};return{log:(...e)=>n(`log`,e),info:(...e)=>n(`info`,e),warn:(...e)=>n(`warn`,e),error:(...e)=>n(`error`,e),debug:(...e)=>n(`debug`,e)}}function ODe(e){let t=[],n={"post-user-login":{accessToken:[`setCustomClaim`],idToken:[`setCustomClaim`],access:[`deny`],prompt:[`render`],redirect:[`sendUserTo`]},"credentials-exchange":{accessToken:[`setCustomClaim`],idToken:[`setCustomClaim`],access:[`deny`]},"pre-user-registration":{user:[`setUserMetadata`,`setLinkedTo`],access:[`deny`]},"post-user-registration":{}}[e]||{},r={};for(let[e,i]of Object.entries(n)){let n={};for(let r of i)n[r]=(...n)=>{t.push({method:`${e}.${r}`,args:n})};r[e]=n}return{api:r,getCalls:()=>t}}var kDe=class{async execute(e){let t=Date.now(),{api:n,getCalls:r}=ODe(e.triggerId),i=[],a=DDe(i);try{let o={"post-user-login":`onExecutePostLogin`,"credentials-exchange":`onExecuteCredentialsExchange`,"pre-user-registration":`onExecutePreUserRegistration`,"post-user-registration":`onExecutePostUserRegistration`}[e.triggerId];if(!o)return{success:!1,error:`Unknown trigger: ${e.triggerId}`,durationMs:Date.now()-t,apiCalls:[],logs:i};let s=`
3758
3758
  const exports = {};
3759
3759
  ${e.code}
3760
3760
  if (typeof exports.${o} !== 'function') {
3761
3761
  throw new Error('Expected export exports.${o} not found');
3762
3762
  }
3763
3763
  return exports.${o}(event, api);
3764
- `;return await Function(`event`,`api`,`console`,s)(e.event,n,a),{success:!0,durationMs:Date.now()-t,apiCalls:r(),logs:i}}catch(e){return{success:!1,error:e instanceof Error?e.message:String(e),durationMs:Date.now()-t,apiCalls:r(),logs:i}}}};D.init({supportedLngs:[`en`,`it`,`nb`,`sv`,`pl`,`cs`,`fi`,`da`],fallbackLng:`en`,resources:{en:{translation:OEe},it:{translation:kEe},nb:{translation:AEe},sv:{translation:jEe},pl:{translation:MEe},cs:{translation:NEe},fi:{translation:PEe},da:{translation:FEe}}});function kDe(e){let t=new f.OpenAPIHono;t.onError((e,t)=>e instanceof m?e.getResponse():(console.error(e),t.json({message:`Internal Server Error`},500))),t.use(`*`,bW(e));let n=DEe(e);t.route(`/setup`,n),t.get(`/`,async e=>{let{tenants:t}=await e.env.data.tenants.list();return t.length===0?e.redirect(`/setup`):e.json({name:`authhero`})}),t.get(`/robots.txt`,e=>e.text(`User-agent: *
3765
- Disallow: /`,200,{"content-type":`text/plain; charset=utf-8`}));let r=MY(e);t.route(`/api/v2`,r),e.proxyControlPlane&&t.route(`/api/v2/proxy/control-plane`,Gfe(e.proxyControlPlane));let i=dve(e);t.route(`/u`,i);let a=Wxe(e);t.route(`/u2`,a);let o=EEe(e);t.route(`/samlp`,o);let s=Jme(e);if(t.route(`/`,s),(e.adminHandler||e.adminIndexHtml)&&(e.adminHandler&&(t.get(`/admin/assets/*`,e.adminHandler),t.get(`/admin/manifest.json`,e.adminHandler),t.get(`/admin/favicon.ico`,e.adminHandler)),e.adminIndexHtml)){let n=e.adminIndexHtml;t.get(`/admin/*`,e=>e.html(n)),t.get(`/admin`,e=>e.html(n))}return{app:t,managementApp:r,oauthApp:s,samlApp:o,universalApp:i,u2App:a,createX509Certificate:dj}}exports.AppLogo=I$,exports.Auth0ActionEnum=ree,exports.Auth0Client=hr,exports.AuthLayout=LEe,exports.AuthorizationResponseMode=rn,exports.AuthorizationResponseType=nn,exports.Button=q$,exports.ButtonUI=w9,exports.CONTROL_PLANE_CUSTOM_DOMAINS_PATH=sDe,exports.CONTROL_PLANE_CUSTOM_DOMAINS_SCOPE=wQ,exports.CONTROL_PLANE_SYNC_EVENT_PREFIX=Yq,exports.CONTROL_PLANE_SYNC_SCOPE=CQ,exports.CONTROL_PLANE_TENANT_MEMBERS_PATH=BY,exports.CONTROL_PLANE_TENANT_MEMBERS_SCOPE=TQ,exports.CardContent=S9,exports.CardDescription=x9,exports.CardFooter=REe,exports.CardHeader=y9,exports.CardTitle=b9,exports.CardUI=v9,exports.CodeChallengeMethod=an,exports.CodeHookDestination=xY,exports.ComponentCategory=Rt,exports.ComponentType=Lt,exports.ControlPlaneSyncDestination=jY,exports.DATABASE_CONNECTION_STRATEGY=sa,exports.DEFAULT_WFP_DISPATCH_BINDING=Y9,exports.DEFAULT_WFP_SCRIPT_NAME_TEMPLATE=X9,exports.EmailActionEnum=iee,exports.EmailValidatedPage=u0,exports.EnterCodePage=q1,exports.EnterPasswordPage=Q1,exports.ErrorMessage=G$,exports.FORM_FIELD_TYPES=An,exports.FlowActionTypeEnum=dt,exports.Footer=L$,exports.ForgotPasswordPage=n0,exports.ForgotPasswordSentPage=r0,exports.FormComponent=Y$,exports.GoBack=$$,exports.GoogleLogo=VEe,exports.GrantType=$r,exports.HttpSamlSigner=kN,exports.Icon=z$,exports.IdentifierForm=BEe,exports.IdentifierPage=X$,exports.InputUI=C9,exports.InvalidSession=l0,exports.LabelUI=T9,exports.Layout=W$,exports.LocalCodeExecutor=ODe,exports.LocationInfo=gr,exports.LogTypes=A,exports.LoginSessionState=k,exports.LogsDestination=uY,exports.MANAGEMENT_API_AUDIENCE=Zj,exports.MANAGEMENT_API_SCOPES=g9,exports.MailgunEmailService=VV,exports.Message=J1,exports.NodeType=Kt,exports.PROXY_RESOLVE_HOST_SCOPE=bQ,exports.PostmarkEmailService=GV,exports.PreSignUpConfirmationPage=d0,exports.PreSignUpPage=c0,exports.RedirectTargetEnum=ht,exports.RegistrationFinalizerDestination=CY,exports.ResendEmailService=UV,exports.ResetPasswordPage=e0,exports.SignUpPage=$1,exports.SocialButton=J$,exports.Spinner=K$,exports.Strategy=j,exports.StrategyType=oa,exports.TenantInvitationNotFoundError=GJ,exports.TenantMembersNotFoundError=UJ,exports.TenantOrganizationNotFoundError=WJ,exports.Trans=G1,exports.USERNAME_PASSWORD_PROVIDER=Rj,exports.UnverifiedEmailPage=X1,exports.UserNotFoundPage=HEe,exports.VippsLogo=UEe,exports.WebhookDestination=yY,exports.actionDependencySchema=He,exports.actionExecutionErrorSchema=Ye,exports.actionExecutionInsertSchema=nee,exports.actionExecutionLogEntrySchema=Ze,exports.actionExecutionLogsSchema=Qe,exports.actionExecutionResultSchema=Xe,exports.actionExecutionSchema=$e,exports.actionExecutionStatusSchema=Je,exports.actionExecutionTriggerIdSchema=qe,exports.actionInsertSchema=We,exports.actionNodeSchema=Yt,exports.actionSchema=Ke,exports.actionSecretSchema=Ue,exports.actionTriggerSchema=Ve,exports.actionUpdateSchema=Ge,exports.actionVersionInsertSchema=et,exports.actionVersionSchema=tt,exports.activeUsersResponseSchema=$ee,exports.actorSchema=rt,exports.addEntityHooks=qW,exports.addressSchema=wt,exports.analyticsColumnMetaSchema=ea,exports.analyticsGroupBySchema=nte,exports.analyticsIntervalSchema=tte,exports.analyticsQueryResponseSchema=na,exports.analyticsResourceSchema=ete,exports.analyticsStatisticsSchema=ta,exports.analyticsUserTypeSchema=rte,exports.attackProtectionSchema=jr,exports.auditCategorySchema=nt,exports.auditEventInsertSchema=lt,exports.auditEventSchema=ut,exports.auth0ClientSchema=ct,exports.auth0FlowInsertSchema=tn,exports.auth0FlowSchema=en,exports.auth0QuerySchema=bt,exports.auth0UpdateUserActionSchema=pt,exports.auth0UserResponseSchema=Ot,exports.authParamsSchema=cn,exports.authenticationMethodInsertSchema=fa,exports.authenticationMethodSchema=ite,exports.authenticationMethodTypeSchema=la,exports.backfillProxyHostsToKv=vDe,exports.baseUserSchema=Tt,exports.blockComponentSchema=En,exports.bordersSchema=ti,exports.brandingSchema=ln,exports.breachedPasswordDetectionSchema=Or,exports.bruteForceProtectionSchema=kr,exports.buttonComponentSchema=Vt,exports.claimsRequestSchema=sn,exports.cleanupOutbox=U9,exports.cleanupSessions=H9,exports.cleanupUserSessions=aDe,exports.clientGrantInsertSchema=jt,exports.clientGrantListSchema=Nt,exports.clientGrantSchema=Mt,exports.clientInfoMiddleware=EW,exports.clientInsertSchema=kt,exports.clientRegistrationTokenInsertSchema=Ft,exports.clientRegistrationTokenSchema=cee,exports.clientRegistrationTokenTypeSchema=Pt,exports.clientSchema=At,exports.codeInsertSchema=dn,exports.codeSchema=fn,exports.codeTypeSchema=un,exports.colorsSchema=ni,exports.componentMessageSchema=In,exports.componentSchema=Gt,exports.composeHostResolvers=SDe,exports.connectionInsertSchema=hn,exports.connectionOptionsSchema=pn,exports.connectionSchema=gn,exports.coordinatesSchema=It,exports.createApplySyncEvents=Kfe,exports.createAuthMiddleware=Qj,exports.createControlPlaneClient=gDe,exports.createControlPlaneCustomDomainsAdapter=lDe,exports.createControlPlaneTenantMembersAdapter=fDe,exports.createDefaultDestinations=W9,exports.createEncryptedDataAdapter=rDe,exports.createEncryptedDataAdapterWithKeyRing=iDe,exports.createInMemoryCache=YW,exports.createLocalTenantMembersBackend=uDe,exports.createPassthroughAdapter=ote,exports.createServiceBindingFetch=Lfe,exports.createServiceTokenCore=ML,exports.createTenantMembersControlPlaneApp=GY,exports.createTenantMembersRoutes=ZJ,exports.createWfpTenantHostResolver=bDe,exports.createWriteOnlyAdapter=ste,exports.customDomainCertificateUploadSchema=xn,exports.customDomainInsertSchema=_n,exports.customDomainSchema=yn,exports.customDomainUpdateSchema=bn,exports.customDomainWithTenantIdSchema=lee,exports.customTextEntrySchema=aa,exports.customTextSchema=ia,exports.dailyStatsSchema=$i,exports.decodeBase32=wa,exports.decodeBase64=xa,exports.decodeBase64Url=_a,exports.decodeBase64UrlString=ya,exports.decodeCursor=lte,exports.decryptField=JEe,exports.decryptFieldWithRing=P9,exports.deepMergePatch=no,exports.drainOutbox=sY,exports.emailProviderSchema=hi,exports.emailTemplateNameSchema=gi,exports.emailTemplateSchema=_i,exports.emailVerificationRulesSchema=ft,exports.emailVerifyActionSchema=mt,exports.encodeBase32=Ca,exports.encodeBase64=ba,exports.encodeBase64Url=ga,exports.encodeBase64UrlString=va,exports.encodeCursor=cte,exports.encodeHex=Ta,exports.encryptField=qEe,exports.encryptFieldWithRing=N9,exports.endingSchema=$t,exports.ensureMutableResponse=BL,exports.fetchAll=R8,exports.fieldComponentSchema=On,exports.flowActionStepSchema=_t,exports.flowInsertSchema=vt,exports.flowSchema=yt,exports.flowsFieldComponentSchema=Ut,exports.flowsFlowNodeSchema=Jt,exports.flowsStepNodeSchema=qt,exports.fontDetailsSchema=ri,exports.fontsSchema=ii,exports.formControlSchema=jn,exports.formInsertSchema=Pn,exports.formNodeComponentDefinition=kn,exports.formNodeSchema=Nn,exports.formSchema=Fn,exports.genericComponentSchema=Wt,exports.genericNodeSchema=Xt,exports.getConnectionIdentifierConfig=ma,exports.getLogTypeCategory=mr,exports.getLogTypeDescription=pr,exports.grantInsertSchema=Ai,exports.grantSchema=ji,exports.handlerConfigSchema=di,exports.hookCodeInsertSchema=Qn,exports.hookCodeSchema=$n,exports.hookInsertSchema=Kn,exports.hookSchema=Zn,exports.hookTemplateId=Un,exports.hookTemplates=Gee,exports.identitySchema=Ct,exports.importMetadataSchema=pa,exports.init=kDe,exports.injectTailwindCSS=bge,exports.inviteInsertSchema=nr,exports.inviteSchema=rr,exports.inviteeSchema=tr,exports.inviterSchema=er,exports.isAllowedIssuer=DQ,exports.isBlockComponent=Uee,exports.isDatabaseConnectionStrategy=ca,exports.isEncrypted=O9,exports.isFieldComponent=Rn,exports.isInteractiveClient=$j,exports.isPlainObject=ha,exports.isWfpSubdomainSafeTenantId=$9,exports.isWidgetComponent=Wee,exports.jwksKeySchema=ar,exports.jwksSchema=ir,exports.legalComponentSchema=Ht,exports.listControlPlaneKeys=zO,exports.loadEncryptionKey=KEe,exports.locationInfoSchema=st,exports.logInsertSchema=_r,exports.logSchema=vr,exports.logStreamFilterSchema=xr,exports.logStreamInsertSchema=Sr,exports.logStreamSchema=Cr,exports.logStreamStatusSchema=br,exports.logStreamTypeSchema=yr,exports.logTypeCategories=fr,exports.logTypeDescriptions=dr,exports.loginSessionAuthStrategySchema=cr,exports.loginSessionInsertSchema=lr,exports.loginSessionSchema=Yee,exports.loginSessionStateSchema=sr,exports.mailgunCredentialsSchema=BV,exports.matchSchema=ui,exports.migrationProviderTypeSchema=wr,exports.migrationSourceCredentialsSchema=Tr,exports.migrationSourceInsertSchema=Er,exports.migrationSourceSchema=Dr,exports.nodeSchema=Zt,exports.openIDConfigurationSchema=or,exports.organizationBrandingSchema=Wi,exports.organizationConnectionInsertSchema=Yi,exports.organizationConnectionListSchema=Zi,exports.organizationConnectionSchema=Xi,exports.organizationEnabledConnectionSchema=Gi,exports.organizationInsertSchema=qi,exports.organizationSchema=Ji,exports.organizationTokenQuotaSchema=Ki,exports.pageBackgroundSchema=ai,exports.parseKeyId=k9,exports.parseUserId=ate,exports.passwordInsertSchema=Mr,exports.passwordSchema=Xee,exports.postmarkCredentialsSchema=WV,Object.defineProperty(exports,"preDefinedHooks",{enumerable:!0,get:function(){return xde}}),exports.profileDataSchema=St,exports.promptScreenSchema=ra,exports.promptSettingSchema=li,exports.provisionDefaultClients=tM,exports.proxyRouteInsertSchema=fi,exports.proxyRouteSchema=pi,exports.proxyRouteUpdateSchema=mi,exports.redirectActionSchema=gt,exports.refreshTokenInsertSchema=vi,exports.refreshTokenSchema=yi,exports.requestContextSchema=at,exports.resendCredentialsSchema=HV,exports.resolveSigningKeyMode=BO,exports.resolveSigningKeys=VO,exports.resourceServerInsertSchema=wi,exports.resourceServerListSchema=Ei,exports.resourceServerOptionsSchema=Ci,exports.resourceServerSchema=Ti,exports.resourceServerScopeSchema=Si,exports.responseContextSchema=ot,exports.richTextComponentSchema=Bt,exports.roleInsertSchema=Vi,exports.roleListSchema=Ui,exports.rolePermissionInsertSchema=Di,exports.rolePermissionListSchema=ki,exports.rolePermissionSchema=Oi,exports.roleSchema=Hi,exports.rolloutInsertSchema=Xr,exports.rolloutKindSchema=Jr,exports.rolloutSchema=Zr,exports.rolloutStatusSchema=Yr,exports.rolloutUpdateSchema=Qr,exports.runOutboxRelay=oDe,exports.sanitizeLuceneQuery=ute,exports.screenLinkSchema=Ln,exports.seed=_9,exports.sessionInsertSchema=Pr,exports.sessionSchema=Fr,exports.signingKeySchema=Ir,exports.smsProviderSchema=xi,exports.smsSendParamsSchema=bi,exports.startSchema=Qt,exports.suspiciousIpThrottlingSchema=Ar,exports.t=d,exports.tailwindCss=f0,exports.targetSchema=it,exports.tenantInsertSchema=Lr,exports.tenantMiddleware=CW,exports.tenantOperationEngineSchema=Vr,exports.tenantOperationEventInsertSchema=Kr,exports.tenantOperationEventOutcomeSchema=Gr,exports.tenantOperationEventSchema=qr,exports.tenantOperationInsertSchema=Hr,exports.tenantOperationKindSchema=zr,exports.tenantOperationSchema=Ur,exports.tenantOperationStatusSchema=Br,exports.tenantOperationUpdateSchema=Wr,exports.tenantSchema=Rr,exports.tenantSettingsSchema=Qee,exports.themeInsertSchema=si,exports.themeSchema=ci,exports.toMutableResponse=zL,exports.tokenResponseSchema=ei,exports.totalsSchema=xt,exports.uiScreenSchema=Hee,exports.userActivitySchema=Mi,exports.userInsertSchema=Et,exports.userOrganizationInsertSchema=Qi,exports.userOrganizationSchema=Zee,exports.userPermissionInsertSchema=Ni,exports.userPermissionListSchema=Fi,exports.userPermissionSchema=Pi,exports.userPermissionWithDetailsListSchema=Li,exports.userPermissionWithDetailsSchema=Ii,exports.userResponseSchema=aee,exports.userRoleInsertSchema=Ri,exports.userRoleListSchema=Bi,exports.userRoleSchema=zi,exports.userSchema=Dt,exports.verificationMethodsSchema=vn,exports.verifyControlPlaneToken=OQ,exports.waitUntil=ja,exports.wfpTenantHost=Z9,exports.widgetComponentSchema=Dn,exports.widgetSchema=oi,exports.wrapProxyAdaptersWithKvPublish=_De,exports.wrapTenantsAdapterWithWfpKvPublish=CDe;
3764
+ `;return await Function(`event`,`api`,`console`,s)(e.event,n,a),{success:!0,durationMs:Date.now()-t,apiCalls:r(),logs:i}}catch(e){return{success:!1,error:e instanceof Error?e.message:String(e),durationMs:Date.now()-t,apiCalls:r(),logs:i}}}};D.init({supportedLngs:[`en`,`it`,`nb`,`sv`,`pl`,`cs`,`fi`,`da`],fallbackLng:`en`,resources:{en:{translation:OEe},it:{translation:kEe},nb:{translation:AEe},sv:{translation:jEe},pl:{translation:MEe},cs:{translation:NEe},fi:{translation:PEe},da:{translation:FEe}}});function ADe(e){let t=new f.OpenAPIHono;t.onError((e,t)=>e instanceof m?e.getResponse():(console.error(e),t.json({message:`Internal Server Error`},500))),t.use(`*`,bW(e));let n=DEe(e);t.route(`/setup`,n),t.get(`/`,async e=>{let{tenants:t}=await e.env.data.tenants.list();return t.length===0?e.redirect(`/setup`):e.json({name:`authhero`})}),t.get(`/robots.txt`,e=>e.text(`User-agent: *
3765
+ Disallow: /`,200,{"content-type":`text/plain; charset=utf-8`}));let r=MY(e);t.route(`/api/v2`,r),e.proxyControlPlane&&t.route(`/api/v2/proxy/control-plane`,Gfe(e.proxyControlPlane));let i=dve(e);t.route(`/u`,i);let a=Wxe(e);t.route(`/u2`,a);let o=EEe(e);t.route(`/samlp`,o);let s=Jme(e);if(t.route(`/`,s),(e.adminHandler||e.adminIndexHtml)&&(e.adminHandler&&(t.get(`/admin/assets/*`,e.adminHandler),t.get(`/admin/manifest.json`,e.adminHandler),t.get(`/admin/favicon.ico`,e.adminHandler)),e.adminIndexHtml)){let n=e.adminIndexHtml;t.get(`/admin/*`,e=>e.html(n)),t.get(`/admin`,e=>e.html(n))}return{app:t,managementApp:r,oauthApp:s,samlApp:o,universalApp:i,u2App:a,createX509Certificate:dj}}exports.AppLogo=I$,exports.Auth0ActionEnum=ree,exports.Auth0Client=hr,exports.AuthLayout=LEe,exports.AuthorizationResponseMode=rn,exports.AuthorizationResponseType=nn,exports.Button=q$,exports.ButtonUI=w9,exports.CONTROL_PLANE_CUSTOM_DOMAINS_PATH=cDe,exports.CONTROL_PLANE_CUSTOM_DOMAINS_SCOPE=wQ,exports.CONTROL_PLANE_SYNC_EVENT_PREFIX=Yq,exports.CONTROL_PLANE_SYNC_SCOPE=CQ,exports.CONTROL_PLANE_TENANT_MEMBERS_PATH=BY,exports.CONTROL_PLANE_TENANT_MEMBERS_SCOPE=TQ,exports.CardContent=S9,exports.CardDescription=x9,exports.CardFooter=REe,exports.CardHeader=y9,exports.CardTitle=b9,exports.CardUI=v9,exports.CodeChallengeMethod=an,exports.CodeHookDestination=xY,exports.ComponentCategory=Rt,exports.ComponentType=Lt,exports.ControlPlaneSyncDestination=jY,exports.DATABASE_CONNECTION_STRATEGY=sa,exports.DEFAULT_WFP_DISPATCH_BINDING=Y9,exports.DEFAULT_WFP_SCRIPT_NAME_TEMPLATE=X9,exports.EmailActionEnum=iee,exports.EmailValidatedPage=u0,exports.EnterCodePage=q1,exports.EnterPasswordPage=Q1,exports.ErrorMessage=G$,exports.FORM_FIELD_TYPES=An,exports.FlowActionTypeEnum=dt,exports.Footer=L$,exports.ForgotPasswordPage=n0,exports.ForgotPasswordSentPage=r0,exports.FormComponent=Y$,exports.GoBack=$$,exports.GoogleLogo=VEe,exports.GrantType=$r,exports.HttpSamlSigner=kN,exports.Icon=z$,exports.IdentifierForm=BEe,exports.IdentifierPage=X$,exports.InputUI=C9,exports.InvalidSession=l0,exports.LabelUI=T9,exports.Layout=W$,exports.LocalCodeExecutor=kDe,exports.LocationInfo=gr,exports.LogTypes=A,exports.LoginSessionState=k,exports.LogsDestination=uY,exports.MANAGEMENT_API_AUDIENCE=Zj,exports.MANAGEMENT_API_SCOPES=g9,exports.MailgunEmailService=VV,exports.Message=J1,exports.NodeType=Kt,exports.PROXY_RESOLVE_HOST_SCOPE=bQ,exports.PostmarkEmailService=GV,exports.PreSignUpConfirmationPage=d0,exports.PreSignUpPage=c0,exports.RedirectTargetEnum=ht,exports.RegistrationFinalizerDestination=CY,exports.ResendEmailService=UV,exports.ResetPasswordPage=e0,exports.SignUpPage=$1,exports.SocialButton=J$,exports.Spinner=K$,exports.Strategy=j,exports.StrategyType=oa,exports.TenantInvitationNotFoundError=GJ,exports.TenantMembersNotFoundError=UJ,exports.TenantOrganizationNotFoundError=WJ,exports.Trans=G1,exports.USERNAME_PASSWORD_PROVIDER=Rj,exports.UnverifiedEmailPage=X1,exports.UserNotFoundPage=HEe,exports.VippsLogo=UEe,exports.WebhookDestination=yY,exports.actionDependencySchema=He,exports.actionExecutionErrorSchema=Ye,exports.actionExecutionInsertSchema=nee,exports.actionExecutionLogEntrySchema=Ze,exports.actionExecutionLogsSchema=Qe,exports.actionExecutionResultSchema=Xe,exports.actionExecutionSchema=$e,exports.actionExecutionStatusSchema=Je,exports.actionExecutionTriggerIdSchema=qe,exports.actionInsertSchema=We,exports.actionNodeSchema=Yt,exports.actionSchema=Ke,exports.actionSecretSchema=Ue,exports.actionTriggerSchema=Ve,exports.actionUpdateSchema=Ge,exports.actionVersionInsertSchema=et,exports.actionVersionSchema=tt,exports.activeUsersResponseSchema=$ee,exports.actorSchema=rt,exports.addEntityHooks=qW,exports.addressSchema=wt,exports.analyticsColumnMetaSchema=ea,exports.analyticsGroupBySchema=nte,exports.analyticsIntervalSchema=tte,exports.analyticsQueryResponseSchema=na,exports.analyticsResourceSchema=ete,exports.analyticsStatisticsSchema=ta,exports.analyticsUserTypeSchema=rte,exports.attackProtectionSchema=jr,exports.auditCategorySchema=nt,exports.auditEventInsertSchema=lt,exports.auditEventSchema=ut,exports.auth0ClientSchema=ct,exports.auth0FlowInsertSchema=tn,exports.auth0FlowSchema=en,exports.auth0QuerySchema=bt,exports.auth0UpdateUserActionSchema=pt,exports.auth0UserResponseSchema=Ot,exports.authParamsSchema=cn,exports.authenticationMethodInsertSchema=fa,exports.authenticationMethodSchema=ite,exports.authenticationMethodTypeSchema=la,exports.backfillProxyHostsToKv=yDe,exports.baseUserSchema=Tt,exports.blockComponentSchema=En,exports.bordersSchema=ti,exports.brandingSchema=ln,exports.breachedPasswordDetectionSchema=Or,exports.bruteForceProtectionSchema=kr,exports.buttonComponentSchema=Vt,exports.claimsRequestSchema=sn,exports.cleanupCodes=oDe,exports.cleanupOutbox=U9,exports.cleanupSessions=H9,exports.cleanupUserSessions=aDe,exports.clientGrantInsertSchema=jt,exports.clientGrantListSchema=Nt,exports.clientGrantSchema=Mt,exports.clientInfoMiddleware=EW,exports.clientInsertSchema=kt,exports.clientRegistrationTokenInsertSchema=Ft,exports.clientRegistrationTokenSchema=cee,exports.clientRegistrationTokenTypeSchema=Pt,exports.clientSchema=At,exports.codeInsertSchema=dn,exports.codeSchema=fn,exports.codeTypeSchema=un,exports.colorsSchema=ni,exports.componentMessageSchema=In,exports.componentSchema=Gt,exports.composeHostResolvers=CDe,exports.connectionInsertSchema=hn,exports.connectionOptionsSchema=pn,exports.connectionSchema=gn,exports.coordinatesSchema=It,exports.createApplySyncEvents=Kfe,exports.createAuthMiddleware=Qj,exports.createControlPlaneClient=_De,exports.createControlPlaneCustomDomainsAdapter=uDe,exports.createControlPlaneTenantMembersAdapter=pDe,exports.createDefaultDestinations=W9,exports.createEncryptedDataAdapter=rDe,exports.createEncryptedDataAdapterWithKeyRing=iDe,exports.createInMemoryCache=YW,exports.createLocalTenantMembersBackend=dDe,exports.createPassthroughAdapter=ote,exports.createServiceBindingFetch=Lfe,exports.createServiceTokenCore=ML,exports.createTenantMembersControlPlaneApp=GY,exports.createTenantMembersRoutes=ZJ,exports.createWfpTenantHostResolver=xDe,exports.createWriteOnlyAdapter=ste,exports.customDomainCertificateUploadSchema=xn,exports.customDomainInsertSchema=_n,exports.customDomainSchema=yn,exports.customDomainUpdateSchema=bn,exports.customDomainWithTenantIdSchema=lee,exports.customTextEntrySchema=aa,exports.customTextSchema=ia,exports.dailyStatsSchema=$i,exports.decodeBase32=wa,exports.decodeBase64=xa,exports.decodeBase64Url=_a,exports.decodeBase64UrlString=ya,exports.decodeCursor=lte,exports.decryptField=JEe,exports.decryptFieldWithRing=P9,exports.deepMergePatch=no,exports.drainOutbox=sY,exports.emailProviderSchema=hi,exports.emailTemplateNameSchema=gi,exports.emailTemplateSchema=_i,exports.emailVerificationRulesSchema=ft,exports.emailVerifyActionSchema=mt,exports.encodeBase32=Ca,exports.encodeBase64=ba,exports.encodeBase64Url=ga,exports.encodeBase64UrlString=va,exports.encodeCursor=cte,exports.encodeHex=Ta,exports.encryptField=qEe,exports.encryptFieldWithRing=N9,exports.endingSchema=$t,exports.ensureMutableResponse=BL,exports.fetchAll=R8,exports.fieldComponentSchema=On,exports.flowActionStepSchema=_t,exports.flowInsertSchema=vt,exports.flowSchema=yt,exports.flowsFieldComponentSchema=Ut,exports.flowsFlowNodeSchema=Jt,exports.flowsStepNodeSchema=qt,exports.fontDetailsSchema=ri,exports.fontsSchema=ii,exports.formControlSchema=jn,exports.formInsertSchema=Pn,exports.formNodeComponentDefinition=kn,exports.formNodeSchema=Nn,exports.formSchema=Fn,exports.genericComponentSchema=Wt,exports.genericNodeSchema=Xt,exports.getConnectionIdentifierConfig=ma,exports.getLogTypeCategory=mr,exports.getLogTypeDescription=pr,exports.grantInsertSchema=Ai,exports.grantSchema=ji,exports.handlerConfigSchema=di,exports.hookCodeInsertSchema=Qn,exports.hookCodeSchema=$n,exports.hookInsertSchema=Kn,exports.hookSchema=Zn,exports.hookTemplateId=Un,exports.hookTemplates=Gee,exports.identitySchema=Ct,exports.importMetadataSchema=pa,exports.init=ADe,exports.injectTailwindCSS=bge,exports.inviteInsertSchema=nr,exports.inviteSchema=rr,exports.inviteeSchema=tr,exports.inviterSchema=er,exports.isAllowedIssuer=DQ,exports.isBlockComponent=Uee,exports.isDatabaseConnectionStrategy=ca,exports.isEncrypted=O9,exports.isFieldComponent=Rn,exports.isInteractiveClient=$j,exports.isPlainObject=ha,exports.isWfpSubdomainSafeTenantId=$9,exports.isWidgetComponent=Wee,exports.jwksKeySchema=ar,exports.jwksSchema=ir,exports.legalComponentSchema=Ht,exports.listControlPlaneKeys=zO,exports.loadEncryptionKey=KEe,exports.locationInfoSchema=st,exports.logInsertSchema=_r,exports.logSchema=vr,exports.logStreamFilterSchema=xr,exports.logStreamInsertSchema=Sr,exports.logStreamSchema=Cr,exports.logStreamStatusSchema=br,exports.logStreamTypeSchema=yr,exports.logTypeCategories=fr,exports.logTypeDescriptions=dr,exports.loginSessionAuthStrategySchema=cr,exports.loginSessionInsertSchema=lr,exports.loginSessionSchema=Yee,exports.loginSessionStateSchema=sr,exports.mailgunCredentialsSchema=BV,exports.matchSchema=ui,exports.migrationProviderTypeSchema=wr,exports.migrationSourceCredentialsSchema=Tr,exports.migrationSourceInsertSchema=Er,exports.migrationSourceSchema=Dr,exports.nodeSchema=Zt,exports.openIDConfigurationSchema=or,exports.organizationBrandingSchema=Wi,exports.organizationConnectionInsertSchema=Yi,exports.organizationConnectionListSchema=Zi,exports.organizationConnectionSchema=Xi,exports.organizationEnabledConnectionSchema=Gi,exports.organizationInsertSchema=qi,exports.organizationSchema=Ji,exports.organizationTokenQuotaSchema=Ki,exports.pageBackgroundSchema=ai,exports.parseKeyId=k9,exports.parseUserId=ate,exports.passwordInsertSchema=Mr,exports.passwordSchema=Xee,exports.postmarkCredentialsSchema=WV,Object.defineProperty(exports,"preDefinedHooks",{enumerable:!0,get:function(){return xde}}),exports.profileDataSchema=St,exports.promptScreenSchema=ra,exports.promptSettingSchema=li,exports.provisionDefaultClients=tM,exports.proxyRouteInsertSchema=fi,exports.proxyRouteSchema=pi,exports.proxyRouteUpdateSchema=mi,exports.redirectActionSchema=gt,exports.refreshTokenInsertSchema=vi,exports.refreshTokenSchema=yi,exports.requestContextSchema=at,exports.resendCredentialsSchema=HV,exports.resolveSigningKeyMode=BO,exports.resolveSigningKeys=VO,exports.resourceServerInsertSchema=wi,exports.resourceServerListSchema=Ei,exports.resourceServerOptionsSchema=Ci,exports.resourceServerSchema=Ti,exports.resourceServerScopeSchema=Si,exports.responseContextSchema=ot,exports.richTextComponentSchema=Bt,exports.roleInsertSchema=Vi,exports.roleListSchema=Ui,exports.rolePermissionInsertSchema=Di,exports.rolePermissionListSchema=ki,exports.rolePermissionSchema=Oi,exports.roleSchema=Hi,exports.rolloutInsertSchema=Xr,exports.rolloutKindSchema=Jr,exports.rolloutSchema=Zr,exports.rolloutStatusSchema=Yr,exports.rolloutUpdateSchema=Qr,exports.runOutboxRelay=sDe,exports.sanitizeLuceneQuery=ute,exports.screenLinkSchema=Ln,exports.seed=_9,exports.sessionInsertSchema=Pr,exports.sessionSchema=Fr,exports.signingKeySchema=Ir,exports.smsProviderSchema=xi,exports.smsSendParamsSchema=bi,exports.startSchema=Qt,exports.suspiciousIpThrottlingSchema=Ar,exports.t=d,exports.tailwindCss=f0,exports.targetSchema=it,exports.tenantInsertSchema=Lr,exports.tenantMiddleware=CW,exports.tenantOperationEngineSchema=Vr,exports.tenantOperationEventInsertSchema=Kr,exports.tenantOperationEventOutcomeSchema=Gr,exports.tenantOperationEventSchema=qr,exports.tenantOperationInsertSchema=Hr,exports.tenantOperationKindSchema=zr,exports.tenantOperationSchema=Ur,exports.tenantOperationStatusSchema=Br,exports.tenantOperationUpdateSchema=Wr,exports.tenantSchema=Rr,exports.tenantSettingsSchema=Qee,exports.themeInsertSchema=si,exports.themeSchema=ci,exports.toMutableResponse=zL,exports.tokenResponseSchema=ei,exports.totalsSchema=xt,exports.uiScreenSchema=Hee,exports.userActivitySchema=Mi,exports.userInsertSchema=Et,exports.userOrganizationInsertSchema=Qi,exports.userOrganizationSchema=Zee,exports.userPermissionInsertSchema=Ni,exports.userPermissionListSchema=Fi,exports.userPermissionSchema=Pi,exports.userPermissionWithDetailsListSchema=Li,exports.userPermissionWithDetailsSchema=Ii,exports.userResponseSchema=aee,exports.userRoleInsertSchema=Ri,exports.userRoleListSchema=Bi,exports.userRoleSchema=zi,exports.userSchema=Dt,exports.verificationMethodsSchema=vn,exports.verifyControlPlaneToken=OQ,exports.waitUntil=ja,exports.wfpTenantHost=Z9,exports.widgetComponentSchema=Dn,exports.widgetSchema=oi,exports.wrapProxyAdaptersWithKvPublish=vDe,exports.wrapTenantsAdapterWithWfpKvPublish=wDe;