PageSourceSearch

https://colfortec.fr/9586.b55ba90d0e98795e.js

js colfortec.fr collected 2026-10-08 06:26:25 UTC 125,680 bytes, 1 lines download raw bytes

1(self.webpackChunkwebclient_webpack=self.webpackChunkwebclient_webpack||[]).push([[9586],{61461(x,V,i){"use strict";i.d(V,{IS:()=>A,Vj:()=>l,vY:()=>C});var a=i(59030),T=i(18810),I=i(99437),N=i(96354),B=i(96697),f=i(99788),S=i(64858),p=i.n(S),b=i(24144),v=i(53909),E=i(11041),h=i(43123);function l(w){return["office","advanced","templates","provider",w]}function c(w,s,g,$){return s.filter(j=>j.$name===w).map(j=>{const L=g.find(F=>F.Name?.toUpperCase()===j.$parameter?.toUpperCase())?.Id;if(void 0===L)throw new Error(`Parameter name ${j.$parameter} not found`);const y=$.find(F=>F.Name?.toUpperCase()===j.text.toUpperCase())?.Id;if(void 0===y)throw new Error(`Value name ${j.text} not found`);return{ParamId:L,ValueId:y,Custom:j.$custom}})}const m=["Gateway.Codecs"];function A(w,s,g){if(Object.is(w,s))return null;if(null===w||"object"!=typeof w||null===s||"object"!=typeof s)return w;if(Array.isArray(w)){if(!Array.isArray(s)||w.length!==s.length)return w;const L=R=>{const k=R.map(K=>p()(K));return g&&m.includes(g)?k:k.sort()},y=L(w),F=L(s);return y.some((R,k)=>R!==F[k])?w:null}const $={};let j=!1;for(const L of Object.keys(w)){const y=w[L];if(!(L in s)){$[L]=y,j=!0;continue}const F=A(y,s[L],g?`${g}.${L}`:L);null!==F&&($[L]=F,j=!0)}return j?$:null}function C(w,s,g){return(0,a.v)(()=>{const $=w.Content;if(!$)throw new Error("Template content is not set");const j=(0,E.QC)($),L=j?.doc?.data?.device?.field??[],y=L.reduce((R,k)=>(k.$name&&k.text&&(R[k.$name]=k.text),R),{}),F=j?.doc?.data?.device?.codecs?.codec??[],W=w.Id===v.MR.providerId;return s.paramsAndValues$.pipe((0,B.s)(1),(0,N.T)(({params:R,values:k})=>({...g?{SecondaryRegistrar:y.SecondaryRegistrar}:void 0,IPRestriction:(0,b.Vi)(y.IPRestriction||"ANY"),TransportRestriction:(0,b.Ow)(y.TransportRestriction||"ANY"),UseSeparateAuthId:"0"!==y["3wayauthenticationid"]&&!!y["3wayauthenticationid"],DiversionHeader:!(0,b.yG)(y.DisableDiversionHeader||"0"),DisableVideo:(0,b.yG)(y.DisableVideo||"0"),Gateway:{...g?{...W?void 0:{ProxyHost:y.ProxyHost,ProxyPort:(0,b.$J)(y.ProxyPort)},Host:y.RegistrarHost,Port:(0,b.$J)(y.RegistrarPort)}:void 0,Codecs:F.map(K=>K.$rfcname.toUpperCase()),...W?void 0:{TimeBetweenReg:(0,b.$J)(y.TimeBetweenRegistration||"0"),IPInRegistrationContact:(0,b.Hh)(y.IpInContactReg||"0")},RequireRegistrationFor:(0,b.T$)(y.RequireAuthFor||"0"),UseIPInContact:(0,b.yG)(y.UseContactField||"0"),DestNumberInTo:(0,b.yG)(y.DestNumberIn_TO||"0"),DestNumberInRequestLineURI:(0,b.yG)(y.DestNumberIn_REQLINEURI||"0"),DestNumberInRemotePartyIDCalled:(0,b.yG)(y.DestNumberIn_RPID_CALLED||"0"),SRTPMode:(0,b.er)(y.SRTPMode||"0"),MatchingStrategy:(0,b.g2)(y.MatchStrategy||"0"),DeliverAudio:(0,b.yG)(y.IsBindToMS||"0"),SupportReinvite:(0,b.yG)(y.IsSupportReinvite||"0"),SupportReplaces:(0,b.yG)(y.IsSupportReplaces||"0"),SourceIdentification:c("Source",L,R,k),InboundParams:c("ParameterIn",L,R,k),OutboundParams:c("ParameterOut",L,R,k)}})))}).pipe((0,I.W)($=>(0,T.$)(()=>new f.e("_i18n.TemplateSwitchFailed",{p1:(0,h.Z)($ instanceof Error?$.message:String($))}))))}},77780(x,V,i){"use strict";i.d(V,{r:()=>E,z:()=>v});var a=i(98352),T=i(19781),I=i(89417),N=i(53909),B=i(68018),f=i(35547),S=i(85802);function p(h,l){if(1&h){const c=f.RV6();f.SS7(0),f.j41(1,"field-checkbox",2),f.bIt("ngModelChange",function(A){S.eBV(c);const C=f.r8f(0),w=f.XpG();return S.Njj(w.toggleValue(C,A))}),f.k0s()}if(2&h){const c=l.$implicit,m=f.XpG(),A=f.bH3(c[0]),C=c[1];f.R7$(),f.Y8G("label",C.title)("disabled",m.requiredTags.includes(A))("ngModel",null==m.value?null:m.value.includes(A))("hint",C.hint)}}const b={registrar:{title:"Registrar",hint:"Exposes the primary server address field for configuration."},SecondaryRegistrar:{title:"Secondary Registrar",hint:"Exposes the backup server address to ensure call connectivity if the primary fails (fallback)."},proxy:{title:"Proxy",hint:"Exposes the intermediary server address field for configuration."},IpInContactReg:{title:"IP in Contact (Registration)",hint:"Exposes the ability to choose whether to select which IP to use in Contact and SDP fields."},port:{title:"Port",hint:"Exposes the signaling port field for configuration."},PublicIPVia:{title:"Public IP Via",hint:"Allows you to Inserts the public-facing IP into the Via header for correct external routing."},advanced:{title:"Advanced Options",hint:"Unlocks granular SIP headers and timeout settings for custom setups."},cert:{title:"TLS / Certificates",hint:"Exposes TLS settings to manage and upload security certificates."},"3wayauth":{title:"3-Way Authentication",hint:"Exposes an extra layer of security credential check for specific providers."},authtype:{title:"Authentication Type",hint:"Exposes the ability to choose which authentication method is needed (e.g., IP-based vs. Registration-based)."},geo911:{title:"Geo911",hint:"Exposes Dynamic E911 options with Geolocation support for emergency calls."},e164:{title:"E164",hint:"Shows a warning if the provider requires E.164 but the configuration is not formatted correctly."}},v=[N.lW.registrar,N.lW.proxy,N.lW.port];let E=(()=>{class h extends a.z{trunkOptions=b;requiredTags=v;Object=Object;parse(c){const m=c?.split(",").map(A=>A.trim()).filter(A=>A)??[];for(const A of v)m.includes(A)||m.push(A);return m}format(c){return c.join(",")}toggleValue(c,m){const A=[...this.value],C=this.value?.indexOf(c);C<0&&m?(A.push(c),this.valueChanged(A)):C>=0&&!m&&(A.splice(C,1),this.valueChanged(A))}static \u0275fac=(()=>{let c;return function(A){return(c||(c=f.xGo(h)))(A||h)}})();static \u0275cmp=f.VBU({type:h,selectors:[["app-template-configuration-options"]],features:[f.Jv_([{provide:I.kq,multi:!0,useExisting:h}]),f.Vt3],decls:9,vars:6,consts:[[1,"optionsHost"],[3,"label","disabled","ngModel","hint"],[3,"ngModelChange","label","disabled","ngModel","hint"]],template:function(m,A){1&m&&(f.j41(0,"legend"),f.EFF(1),f.nI1(2,"translate"),f.k0s(),f.j41(3,"p"),f.EFF(4),f.nI1(5,"translate"),f.k0s(),f.j41(6,"div",0),f.Z7z(7,p,2,5,"field-checkbox",1,f.Vm6),f.k0s()),2&m&&(f.R7$(),f.JRh(f.bMT(2,2,"_i18n.TrunkConfigurationOptions")),f.R7$(3),f.JRh(f.bMT(5,4,"_i18n.TrunkConfigurationOptionsDesc")),f.R7$(3),f.Dyx(A.Object.entries(A.trunkOptions)))},dependencies:[T.t,I.YN,I.BC,I.vS,B.D9],styles:[".optionsHost[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}"],changeDetection:0})}return h})()},11041(x,V,i){"use strict";i.d(V,{I:()=>It,Z:()=>Nt,Cw:()=>Ue,QC:()=>Ct,ZW:()=>Be});var a=i(10080);const T=r=>a.q9.includes(r)?"__"+r:r,I={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,e){return e},attributeValueProcessor:function(r,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,e,t){return r},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:T};function N(r,e){if("string"!=typeof r)return;const t=r.toLowerCase();if(a.q9.some(n=>t===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`);if(a.vl.some(n=>t===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`)}function B(r,e){return"boolean"==typeof r?{enabled:r,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:"object"==typeof r&&null!==r?{enabled:!1!==r.enabled,maxEntitySize:Math.max(1,r.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,r.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,r.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,r.maxExpandedLength??1e5),maxEntityCount:Math.max(1,r.maxEntityCount??1e3),allowedTags:r.allowedTags??null,tagFilter:r.tagFilter??null,appliesTo:r.appliesTo??"all"}:B(!0)}const f=function(r){const e=Object.assign({},I,r),t=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(const{value:n,name:o}of t)n&&N(n,o);return null===e.onDangerousProperty&&(e.onDangerousProperty=T),e.processEntities=B(e.processEntities),e.unpairedTagsSet=new Set(e.unpairedTags),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>"string"==typeof n&&n.startsWith("*.")?".."+n.substring(2):n)),e};let S;S="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class p{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][S]={startIndex:t})}static getMetaDataSymbol(){return S}}class b{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n=Object.create(null);let o=0;if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let d=1,P=!1,u=!1,O="";for(;t<e.length;t++)if("<"!==e[t]||u)if(">"===e[t]){if(u?"-"===e[t-1]&&"-"===e[t-2]&&(u=!1,d--):d--,0===d)break}else"["===e[t]?P=!0:O+=e[t];else{if(P&&E(e,"!ENTITY",t)){let _,M;if(t+=7,[_,M,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===M.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&o>=this.options.maxEntityCount)throw new Error(`Entity count (${o+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[_]=M,o++}}else if(P&&E(e,"!ELEMENT",t)){t+=8;const{index:_}=this.readElementExp(e,t+1);t=_}else if(P&&E(e,"!ATTLIST",t))t+=8;else if(P&&E(e,"!NOTATION",t)){t+=9;const{index:_}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=_}else{if(!E(e,"!--",t))throw new Error("Invalid DOCTYPE");u=!0}d++,O=""}if(0!==d)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){const n=t=v(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let o=e.substring(n,t);
1if(h(o),t=v(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let d="";if([t,d]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&d.length>this.options.maxEntitySize)throw new Error(`Entity "${o}" size (${d.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[o,d,--t]}readNotationExp(e,t){const n=t=v(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);!this.suppressValidationErr&&h(o),t=v(e,t);const d=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==d&&"PUBLIC"!==d)throw new Error(`Expected SYSTEM or PUBLIC, found "${d}"`);t=v(e,t+=d.length);let P=null,u=null;if("PUBLIC"===d)[t,P]=this.readIdentifierVal(e,t,"publicIdentifier"),('"'===e[t=v(e,t)]||"'"===e[t])&&([t,u]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===d&&([t,u]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!u))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:o,publicIdentifier:P,systemIdentifier:u,index:--t}}readIdentifierVal(e,t,n){let o="";const d=e[t];if('"'!==d&&"'"!==d)throw new Error(`Expected quoted string, found "${d}"`);const P=++t;for(;t<e.length&&e[t]!==d;)t++;if(o=e.substring(P,t),e[t]!==d)throw new Error(`Unterminated ${n} value`);return[++t,o]}readElementExp(e,t){const n=t=v(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);if(!this.suppressValidationErr&&!(0,a.Eo)(o))throw new Error(`Invalid element name: "${o}"`);let d="";if("E"===e[t=v(e,t)]&&E(e,"MPTY",t))t+=4;else if("A"===e[t]&&E(e,"NY",t))t+=2;else if("("===e[t]){const P=++t;for(;t<e.length&&")"!==e[t];)t++;if(d=e.substring(P,t),")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:o,contentModel:d.trim(),index:t}}readAttlistExp(e,t){let n=t=v(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);for(h(o),n=t=v(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let d=e.substring(n,t);if(!h(d))throw new Error(`Invalid attribute name: "${d}"`);t=v(e,t);let P="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(P="NOTATION","("!==e[t=v(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let O=[];for(;t<e.length&&")"!==e[t];){const _=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let M=e.substring(_,t);if(M=M.trim(),!h(M))throw new Error(`Invalid notation name: "${M}"`);O.push(M),"|"===e[t]&&(t++,t=v(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,P+=" ("+O.join("|")+")"}else{const O=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;if(P+=e.substring(O,t),!this.suppressValidationErr&&!["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"].includes(P.toUpperCase()))throw new Error(`Invalid attribute type: "${P}"`)}t=v(e,t);let u="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(u="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(u="#IMPLIED",t+=7):[t,u]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:o,attributeName:d,attributeType:P,defaultValue:u,index:t}}}const v=(r,e)=>{for(;e<r.length&&/\s/.test(r[e]);)e++;return e};function E(r,e,t){for(let n=0;n<e.length;n++)if(e[n]!==r[t+n+1])return!1;return!0}function h(r){if((0,a.Eo)(r))return r;throw new Error(`Invalid entity name ${r}`)}const l=/^[-+]?0x[a-fA-F0-9]+$/,c=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,m={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};const C=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class L{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){const e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){const e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){const t=this._matcher.path;if(0!==t.length)return t[t.length-1].values?.[e]}hasAttr(e){const t=this._matcher.path;if(0===t.length)return!1;const n=t[t.length-1];return void 0!==n.values&&e in n.values}getPosition(){const e=this._matcher.path;return 0===e.length?-1:e[e.length-1].position??0}getCounter(){const e=this._matcher.path;return 0===e.length?-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)}}class y{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new L(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);const o=this.path.length;this.siblingStacks[o]||(this.siblingStacks[o]=new Map);const d=this.siblingStacks[o],P=n?`${n}:${e}`:e,u=d.get(P)||0;let O=0;for(const M of d.values())O+=M;d.set(P,u+1);const _={tag:e,position:O,counter:u};null!=n&&(_.namespace=n),null!=t&&(_.values=t),this.path.push(_)}pop(){if(0===this.path.length)return;this._pathStringCache=null;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){this.path.length>0&&null!=e&&(this.path[this.path.length-1].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(0!==this.path.length)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const n=e||this.separator;if(n===this.separator&&!0===t){if(null!==this._pathStringCache)return this._pathStringCache;const d=this.path.map(P=>P.namespace?`${P.namespace}:${P.tag}`:P.tag).join(n);return this._pathStringCache=d,d}return this.path.map(d=>t&&d.namespace?`${d.namespace}:${d.tag}`:d.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(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;){const o=e[n];if("deep-wildcard"===o.type){if(n--,n<0)return!0;const d=e[n];let P=!1;for(let u=t;u>=0;u--)if(this._matchSegment(d,this.path[u],u===this.path.length-1)){t=u-1,n--,P=!0;break}if(!P)return!1}else{if(!this._matchSegment(o,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||void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace||void 0!==e.attrName&&(!n||!t.values||!(e.attrName in t.values)||void 0!==e.attrValue&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(void 0!==e.position){if(!n)return!1;const o=t.counter??0;if("first"===e.position&&0!==o)return!1;if("odd"===e.position&&o%2!=1)return!1;if("even"===e.position&&o%2!=0)return!1;if("nth"===e.position&&o!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}
1snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(t=>({...t})),this.siblingStacks=e.siblingStacks.map(t=>new Map(t))}readOnly(){return this._view}}class F{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(o=>"deep-wildcard"===o.type),this._hasAttributeCondition=this.segments.some(o=>void 0!==o.attrName),this._hasPositionSelector=this.segments.some(o=>void 0!==o.position)}_parse(e){const t=[];let n=0,o="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(o.trim()&&(t.push(this._parseSegment(o.trim())),o=""),t.push({type:"deep-wildcard"}),n+=2):(o.trim()&&t.push(this._parseSegment(o.trim())),o="",n++):(o+=e[n],n++);return o.trim()&&t.push(this._parseSegment(o.trim())),t}_parseSegment(e){const t={type:"tag"};let n=null,o=e;const d=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(d&&(o=d[1]+d[3],d[2])){const M=d[2].slice(1,-1);M&&(n=M)}let P,u=o;if(o.includes("::")){const M=o.indexOf("::");if(P=o.substring(0,M).trim(),u=o.substring(M+2).trim(),!P)throw new Error(`Invalid namespace in pattern: ${e}`)}let O,_=null;if(u.includes(":")){const M=u.lastIndexOf(":"),U=u.substring(0,M).trim(),G=u.substring(M+1).trim();["first","last","odd","even"].includes(G)||/^nth\(\d+\)$/.test(G)?(O=U,_=G):O=u}else O=u;if(!O)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=O,P&&(t.namespace=P),n)if(n.includes("=")){const M=n.indexOf("=");t.attrName=n.substring(0,M).trim(),t.attrValue=n.substring(M+1).trim()}else t.attrName=n.trim();if(_){const M=_.match(/^nth\((\d+)\)$/);M?(t.position="nth",t.positionValue=parseInt(M[1],10)):t.position=_}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class W{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard())return this._deepWildcards.push(e),this;const t=e.length,o=e.segments[e.segments.length-1]?.tag;if(o&&"*"!==o){const d=`${t}:${o}`;this._byDepthAndTag.has(d)||this._byDepthAndTag.set(d,[]),this._byDepthAndTag.get(d).push(e)}else this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);return this}addAll(e){for(const t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return null!==this.findMatch(e)}findMatch(e){const t=e.getDepth(),n=e.getCurrentTag(),d=this._byDepthAndTag.get(`${t}:${n}`);if(d)for(let u=0;u<d.length;u++)if(e.matches(d[u]))return d[u];const P=this._wildcardByDepth.get(t);if(P)for(let u=0;u<P.length;u++)if(e.matches(P[u]))return P[u];for(let u=0;u<this._deepWildcards.length;u++)if(e.matches(this._deepWildcards[u]))return this._deepWildcards[u];return null}}const ye={cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",euro:"\u20ac",dollar:"$",euro:"\u20ac",fnof:"\u0192",inr:"\u20b9",af:"\u060b",birr:"\u1265\u122d",peso:"\u20b1",rub:"\u20bd",won:"\u20a9",yuan:"\xa5",cedil:"\xb8"},we={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Ce={nbsp:"\xa0",copy:"\xa9",reg:"\xae",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xab",raquo:"\xbb",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201c",rdquo:"\u201d",bull:"\u2022",para:"\xb6",sect:"\xa7",deg:"\xb0",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe"},Ne=new Set("!?\\\\/[]$%{}^&*()<>|+");function _e(r){if("#"===r[0])throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${r}"`);for(const e of r)if(Ne.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${r}"`);return r}function xe(...r){const e=Object.create(null);for(const t of r)if(t)for(const n of Object.keys(t)){const o=t[n];if("string"==typeof o)e[n]=o;else if(o&&"object"==typeof o&&void 0!==o.val){const d=o.val;"string"==typeof d&&(e[n]=d)}}return e}const ne="external",Q="base",z=Object.freeze({allow:0,leave:1,remove:2,throw:3}),X=new Set([9,10,13]);class te{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck="function"==typeof e.postCheck?e.postCheck:n=>n,this._limitTiers=function D(r){return r&&r!==ne?"all"===r?new Set(["all"]):r===Q?new Set([Q]):Array.isArray(r)?new Set(r):new Set([ne]):new Set([ne])}(this._limit.applyLimitsTo??ne),this._numericAllowed=e.numericAllowed??!0,this._baseMap=xe(we,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);const t=function le(r){return r?{xmlVersion:1.1===r.xmlVersion?1.1:1,onLevel:z[r.onNCR]??z.allow,nullLevel:Math.max(z[r.nullNCR]??z.remove,z.remove)}:{xmlVersion:1,onLevel:z.allow,nullLevel:z.remove}}(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(const t of Object.keys(e))_e(t);this._externalMap=xe(e)}addExternalEntity(e,t){_e(e),"string"==typeof t&&-1===t.indexOf("&")&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=xe(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=1.1===e?1.1:1}decode(e){if("string"!=typeof e||0===e.length)return e;const t=e,n=[],o=e.length;let d=0,P=0;const u=this._maxTotalExpansions>0,O=this._maxExpandedLength>0,_=u||O;for(;P<o;){if(38!==e.charCodeAt(P)){P++;continue}let U=P+1;for(;
1U<o&&59!==e.charCodeAt(U)&&U-P<=32;)U++;if(U>=o||59!==e.charCodeAt(U)){P++;continue}const G=e.slice(P+1,U);if(0===G.length){P++;continue}let H,q;if(this._removeSet.has(G))H="",void 0===q&&(q=ne);else{if(this._leaveSet.has(G)){P++;continue}if(35===G.charCodeAt(0)){const Y=this._resolveNCR(G);if(void 0===Y){P++;continue}H=Y,q=Q}else{const Y=this._resolveName(G);H=Y?.value,q=Y?.tier}}if(void 0!==H){if(P>d&&n.push(e.slice(d,P)),n.push(H),d=U+1,P=d,_&&this._tierCounts(q)){if(u&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(O){const Y=H.length-(G.length+2);if(Y>0&&(this._expandedLength+=Y,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else P++}d<o&&n.push(e.slice(d));const M=0===n.length?e:n.join("");return this._postCheck(M,t)}_tierCounts(e){return!!this._limitTiers.has("all")||this._limitTiers.has(e)}_resolveName(e){return e in this._inputMap?{value:this._inputMap[e],tier:ne}:e in this._externalMap?{value:this._externalMap[e],tier:ne}:e in this._baseMap?{value:this._baseMap[e],tier:Q}:void 0}_classifyNCR(e){return 0===e?this._ncrNullLevel:e>=55296&&e<=57343||1===this._ncrXmlVersion&&e>=1&&e<=31&&!X.has(e)?z.remove:-1}_applyNCRAction(e,t,n){switch(e){case z.allow:return String.fromCodePoint(n);case z.remove:return"";case z.leave:return;case z.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){const t=e.charCodeAt(1);let n;if(n=120===t||88===t?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;const o=this._classifyNCR(n);if(!this._numericAllowed&&o<z.remove)return;const d=-1===o?this._ncrOnLevel:Math.max(this._ncrOnLevel,o);return this._applyNCRAction(d,e,n)}}function be(r,e){if(!r)return{};const t=e.attributesGroupName?r[e.attributesGroupName]:r;if(!t)return{};const n={};for(const o in t)o.startsWith(e.attributeNamePrefix)?n[o.substring(e.attributeNamePrefix.length)]=t[o]:n[o]=t[o];return n}function Ae(r){if(!r||"string"!=typeof r)return;const e=r.indexOf(":");if(-1!==e&&e>0){const t=r.substring(0,e);if("xmlns"!==t)return t}}class Te{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Se,this.parseTextData=he,this.resolveNameSpace=oe,this.buildAttributesMap=Ie,this.isItStopNode=Ze,this.replaceEntitiesValue=Ye,this.readStopNodeData=tt,this.saveTextToParentTag=Qe,this.addChild=Xe,this.ignoreAttributesFn=function j(r){return"function"==typeof r?r:Array.isArray(r)?e=>{for(const t of r)if("string"==typeof t&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1}(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...we};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:("object"==typeof this.options.htmlEntities?n=this.options.htmlEntities:!0===this.options.htmlEntities&&(n={...Ce,...ye}),this.entityDecoder=new te({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new y,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new W;const o=this.options.stopNodes;if(o&&o.length>0){for(let d=0;d<o.length;d++){const P=o[d];"string"==typeof P?this.stopNodeExpressionsSet.add(new F(P)):P instanceof F&&this.stopNodeExpressionsSet.add(P)}this.stopNodeExpressionsSet.seal()}}}function he(r,e,t,n,o,d,P){const u=this.options;if(void 0!==r&&(u.trimValues&&!n&&(r=r.trim()),r.length>0)){P||(r=this.replaceEntitiesValue(r,e,t));const O=u.jPath?t.toString():t,_=u.tagValueProcessor(e,r,O,o,d);return null==_?r:typeof _!=typeof r||_!==r?_:u.trimValues||r.trim()===r?Me(r,u.parseTagValue,u.numberParseOptions):r}}function oe(r){if(this.options.removeNSPrefix){const e=r.split(":"),t="/"===r.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(r=t+e[1])}return r}const ve=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function Ie(r,e,t,n=!1){const o=this.options;if(!0===n||!0!==o.ignoreAttributes&&"string"==typeof r){const d=(0,a.Xe)(r,ve),P=d.length,u={},O=new Array(P);let _=!1;const M={};for(let H=0;H<P;H++){const q=this.resolveNameSpace(d[H][1]),Y=d[H][4];if(q.length&&void 0!==Y){let Z=Y;o.trimValues&&(Z=Z.trim()),Z=this.replaceEntitiesValue(Z,t,this.readonlyMatcher),O[H]=Z,M[q]=Z,_=!0}}_&&"object"==typeof e&&e.updateCurrent&&e.updateCurrent(M);const U=o.jPath?e.toString():this.readonlyMatcher;let G=!1;for(let H=0;H<P;H++){const q=this.resolveNameSpace(d[H][1]);if(this.ignoreAttributesFn(q,U))continue;let Y=o.attributeNamePrefix+q;if(q.length)if(o.transformAttributeName&&(Y=o.transformAttributeName(Y)),Y=He(Y,o),void 0!==d[H][4]){const Z=O[H],ce=o.attributeValueProcessor(q,Z,U);u[Y]=null==ce?Z:typeof ce!=typeof Z||ce!==Z?ce:Me(Z,o.parseAttributeValue,o.numberParseOptions),G=!0}else o.allowBooleanAttributes&&(u[Y]=!0,G=!0)}if(!G)return;if(o.attributesGroupName&&!o.preserveOrder){const H={};return H[o.attributesGroupName]=u,H}return u}}const Se=function(r){r=r.replace(/\r\n?/g,"\n");const e=new p("!xml");let t=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const o=this.options,d=new b(o.processEntities),P=r.length;for(let u=0;u<P;u++)if("<"===r[u]){const _=r.charCodeAt(u+1);if(47===_){const M=$e(r,">",u,"Closing Tag is not closed.");let U=r.substring(u+2,M).trim();if(o.removeNSPrefix){const H=U.indexOf(":");-1!==H&&(U=U.substr(H+1))}U=Fe(o.transformTagName,U,"",o).tagName,t&&(n=this.saveTextToParentTag(n,t,this.readonlyMatcher));const G=this.matcher.getCurrentTag();if(U&&o.unpairedTagsSet.has(U))throw new Error(`Unpaired tag can not be used as closing tag: </${U}>`);G&&o.unpairedTagsSet.has(G)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,t=this.tagsNodeStack.pop(),n="",u=M}else if(63===_){let M=Re(r,u,!1,"?>");if(!M)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,t,this.readonlyMatcher);const U=this.buildAttributesMap(M.tagExp,this.matcher,M.tagName,!0);if(U&&this.entityDecoder.setXmlVersion(Number(U[this.options.attributeNamePrefix+"version"])||1),!(o.ignoreDeclaration&&"?xml"===M.tagName||o.ignorePiTags)){const G=new p(M.tagName);G.add(o.textNodeName,""),M.tagName!==M.tagExp&&M.attrExpPresent&&!0!==o.ignoreAttributes&&(G[":@"]=U),this.addChild(t,G,this.readonlyMatcher,u)}u=M.closeIndex+1}else if(33===_&&45===r.charCodeAt(u+2)&&45===r.charCodeAt(u+3)){const M=$e(r,"--\x3e",u+4,"Comment is not closed.");if(o.commentPropName){const U=r.substring(u+4,M-2);n=this.saveTextToParentTag(n,t,this.readonlyMatcher),t.add(o.commentPropName,[{[o.textNodeName]:U}])}u=M}else if(33===_&&68===r.charCodeAt(u+2)){const M=d.readDocType(r,u);this.entityDecoder.addInputEntities(M.entities),u=M.i}else if(33===_&&91===r.charCodeAt(u+2)){const M=$e(r,"]]>",u,"CDATA is not closed.")-2,U=r.substring(u+9,M);n=this.saveTextToParentTag(n,t,this.readonlyMatcher);let G=this.parseTextData(U,t.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==G&&(G=""),o.cdataPropName?t.add(o.cdataPropName,[{[o.textNodeName]:U}]):t.add(o.textNodeName,G),u=M+2}else{let M=Re(r,u,o.removeNSPrefix);if(!M){const ue=r.substring(Math.max(0,u-50),Math.min(P,u+50));throw new Error(`readTagExp returned undefined at position ${u}. Context: "${ue}"`)}let U=M.tagName;const G=M.rawTagName;let H=M.tagExp,q=M.attrExpPresent,Y=M.closeIndex;if(({tagName:U,tagExp:H}=Fe(o.transformTagName,U,H,o)),o.strictReservedNames&&(U===o.commentPropName||U===o.cdataPropName||U===o.textNodeName||U===o.attributesGroupName))throw new Error(`Invalid tag name: ${U}`);t&&n&&"!xml"!==t.tagname&&(n=this.saveTextToParentTag(n,t,this.readonlyMatcher,!1)),t&&o.unpairedTagsSet.has(t.tagname)&&(t=this.tagsNodeStack.pop(),this.matcher.pop());let ce=!1;H.length>0&&H.lastIndexOf("/")===H.length-1&&(ce=!0,"/"===U[U.length-1]?(U=U.substr(0,U.length-1),H=U):H=H.substr(0,H.length-1),q=U!==H);let Je,se=null,St={};
1Je=Ae(G),U!==e.tagname&&this.matcher.push(U,{},Je),U!==H&&q&&(se=this.buildAttributesMap(H,this.matcher,U),se&&(St=be(se,o))),U!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());const Oe=u;if(this.isCurrentNodeStopNode){let ue="";if(ce)u=M.closeIndex;else if(o.unpairedTagsSet.has(U))u=M.closeIndex;else{const je=this.readStopNodeData(r,G,Y+1);if(!je)throw new Error(`Unexpected end of ${G}`);u=je.i,ue=je.tagContent}const ke=new p(U);se&&(ke[":@"]=se),ke.add(o.textNodeName,ue),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(t,ke,this.readonlyMatcher,Oe)}else{if(ce){({tagName:U,tagExp:H}=Fe(o.transformTagName,U,H,o));const ue=new p(U);se&&(ue[":@"]=se),this.addChild(t,ue,this.readonlyMatcher,Oe),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(o.unpairedTagsSet.has(U)){const ue=new p(U);se&&(ue[":@"]=se),this.addChild(t,ue,this.readonlyMatcher,Oe),this.matcher.pop(),this.isCurrentNodeStopNode=!1,u=M.closeIndex;continue}{const ue=new p(U);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(t),se&&(ue[":@"]=se),this.addChild(t,ue,this.readonlyMatcher,Oe),t=ue}}n="",u=Y}}}else n+=r[u];return e.child};function Xe(r,e,t,n){this.options.captureMetaData||(n=void 0);const o=this.options.jPath?t.toString():t,d=this.options.updateTag(e.tagname,o,e[":@"]);!1===d||("string"==typeof d&&(e.tagname=d),r.addChild(e,n))}function Ye(r,e,t){const n=this.options.processEntities;if(!n||!n.enabled)return r;if(n.allowedTags){const o=this.options.jPath?t.toString():t;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,o)))return r}if(n.tagFilter){const o=this.options.jPath?t.toString():t;if(!n.tagFilter(e,o))return r}return this.entityDecoder.decode(r)}function Qe(r,e,t,n){return r&&(void 0===n&&(n=0===e.child.length),void 0!==(r=this.parseTextData(r,e.tagname,t,!1,!!e[":@"]&&0!==Object.keys(e[":@"]).length,n))&&""!==r&&e.add(this.options.textNodeName,r),r=""),r}function Ze(){return 0!==this.stopNodeExpressionsSet.size&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}function $e(r,e,t,n){const o=r.indexOf(e,t);if(-1===o)throw new Error(n);return o+e.length-1}function et(r,e,t,n){const o=r.indexOf(e,t);if(-1===o)throw new Error(n);return o}function Re(r,e,t,n=">"){const o=function qe(r,e,t=">"){let n=0;const o=r.length,d=t.charCodeAt(0),P=t.length>1?t.charCodeAt(1):-1;let u="",O=e;for(let _=e;_<o;_++){const M=r.charCodeAt(_);if(n)M===n&&(n=0);else if(34===M||39===M)n=M;else if(M===d){if(-1===P)return u+=r.substring(O,_),{data:u,index:_};if(r.charCodeAt(_+1)===P)return u+=r.substring(O,_),{data:u,index:_}}else 9===M&&!n&&(u+=r.substring(O,_)+" ",O=_+1)}}(r,e+1,n);if(!o)return;let d=o.data;const P=o.index,u=d.search(/\s/);let O=d,_=!0;-1!==u&&(O=d.substring(0,u),d=d.substring(u+1).trimStart());const M=O;if(t){const U=O.indexOf(":");-1!==U&&(O=O.substr(U+1),_=O!==o.data.substr(U+1))}return{tagName:O,tagExp:d,closeIndex:P,attrExpPresent:_,rawTagName:M}}function tt(r,e,t){const n=t;let o=1;const d=r.length;for(;t<d;t++)if("<"===r[t]){const P=r.charCodeAt(t+1);if(47===P){const u=et(r,">",t,`${e} is not closed`);if(r.substring(t+2,u).trim()===e&&(o--,0===o))return{tagContent:r.substring(n,t),i:u};t=u}else if(63===P)t=$e(r,"?>",t+1,"StopNode is not closed.");else if(33===P&&45===r.charCodeAt(t+2)&&45===r.charCodeAt(t+3))t=$e(r,"--\x3e",t+3,"StopNode is not closed.");else if(33===P&&91===r.charCodeAt(t+2))t=$e(r,"]]>",t,"StopNode is not closed.")-2;else{const u=Re(r,t,">");u&&((u&&u.tagName)===e&&"/"!==u.tagExp[u.tagExp.length-1]&&o++,t=u.closeIndex)}}}function Me(r,e,t){if(e&&"string"==typeof r){const n=r.trim();return"true"===n||"false"!==n&&function A(r,e={}){if(e=Object.assign({},m,e),!r||"string"!=typeof r)return r;let t=r.trim();if(0===t.length)return r;if(void 0!==e.skipLike&&e.skipLike.test(t))return r;if("0"===t)return 0;if(e.hex&&l.test(t))return function g(r,e){if(parseInt)return parseInt(r,e);if(Number.parseInt)return Number.parseInt(r,e);if(window&&window.parseInt)return window.parseInt(r,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(t,16);if(isFinite(t)){if(t.includes("e")||t.includes("E"))return function w(r,e,t){if(!t.eNotation)return r;const n=e.match(C);if(n){let o=n[1]||"";const d=-1===n[3].indexOf("e")?"E":"e",P=n[2],u=o?r[P.length+1]===d:r[P.length]===d;return P.length>1&&u?r:(1!==P.length||!n[3].startsWith(`.${d}`)&&n[3][0]!==d)&&P.length>0?t.leadingZeros&&!u?(e=(n[1]||"")+n[3],Number(e)):r:Number(e)}return r}(r,t,e);{const n=c.exec(t);if(n){const o=n[1]||"",d=n[2];let P=function s(r){return r&&-1!==r.indexOf(".")&&("."===(r=r.replace(/0+$/,""))?r="0":"."===r[0]?r="0"+r:"."===r[r.length-1]&&(r=r.substring(0,r.length-1))),r}(n[3]);if(!e.leadingZeros&&(d.length>1||1===d.length&&!(o?"."===r[d.length+1]:"."===r[d.length])))return r;{const O=Number(t),_=String(O);if(0===O)return O;if(-1!==_.search(/[eE]/))return e.eNotation?O:r;if(-1!==t.indexOf("."))return"0"===_||_===P||_===`${o}${P}`?O:r;let M=d?P:t;return d?M===_||o+M===_?O:r:M===_||M===o+_?O:r}}return r}}return function $(r,e,t){const n=e===1/0;switch(t.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return n?"Infinity":"-Infinity";default:return r}}(r,Number(t),e)}(r,t)}return(0,a.yQ)(r)?r:""}function Fe(r,e,t,n){if(r){const o=r(e);t===e&&(t=o),e=o}return{tagName:e=He(e,n),tagExp:t}}function He(r,e){if(a.vl.includes(r))throw new Error(`[SECURITY] Invalid name: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.q9.includes(r)?e.onDangerousProperty(r):r}const Ve=p.getMetaDataSymbol();function rt(r,e){if(!r||"object"!=typeof r)return{};if(!e)return r;const t={};for(const n in r)n.startsWith(e)?t[n.substring(e.length)]=r[n]:t[n]=r[n];return t}function nt(r,e,t,n){return De(r,e,t,n)}function De(r,e,t,n){let o;const d={};for(let P=0;P<r.length;P++){const u=r[P],O=it(u);
1if(void 0!==O&&O!==e.textNodeName){const _=rt(u[":@"]||{},e.attributeNamePrefix);t.push(O,_)}if(O===e.textNodeName)void 0===o?o=u[O]:o+=""+u[O];else{if(void 0===O)continue;if(u[O]){let _=De(u[O],e,t,n);const M=st(_,e);if(u[":@"]?ot(_,u[":@"],n,e):1!==Object.keys(_).length||void 0===_[e.textNodeName]||e.alwaysCreateTextNode?0===Object.keys(_).length&&(e.alwaysCreateTextNode?_[e.textNodeName]="":_=""):_=_[e.textNodeName],void 0!==u[Ve]&&"object"==typeof _&&null!==_&&(_[Ve]=u[Ve]),void 0!==d[O]&&Object.prototype.hasOwnProperty.call(d,O))Array.isArray(d[O])||(d[O]=[d[O]]),d[O].push(_);else{const U=e.jPath?n.toString():n;d[O]=e.isArray(O,U,M)?[_]:_}void 0!==O&&O!==e.textNodeName&&t.pop()}}}return"string"==typeof o?o.length>0&&(d[e.textNodeName]=o):void 0!==o&&(d[e.textNodeName]=o),d}function it(r){const e=Object.keys(r);for(let t=0;t<e.length;t++){const n=e[t];if(":@"!==n)return n}}function ot(r,e,t,n){if(e){const o=Object.keys(e),d=o.length;for(let P=0;P<d;P++){const u=o[P],O=u.startsWith(n.attributeNamePrefix)?u.substring(n.attributeNamePrefix.length):u,_=n.jPath?t.toString()+"."+O:t;r[u]=n.isArray(u,_,!0,!0)?[e[u]]:e[u]}}}function st(r,e){const{textNodeName:t}=e,n=Object.keys(r).length;return!(0!==n&&(1!==n||!r[t]&&"boolean"!=typeof r[t]&&0!==r[t]))}var at=i(76592);function ut(r,e){let t="";e.format&&e.indentBy.length>0&&(t="\n");const n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let d=0;d<e.stopNodes.length;d++){const P=e.stopNodes[d];"string"==typeof P?n.push(new F(P)):P instanceof F&&n.push(P)}return We(r,e,t,new y,n)}function We(r,e,t,n,o){let d="",P=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(r)){if(null!=r){let u=r.toString();return u=Le(u,e),u}return""}for(let u=0;u<r.length;u++){const O=r[u],_=ze(O);if(void 0===_)continue;const M=dt(O[":@"],e);n.push(_,M);const U=ft(n,o);if(_===e.textNodeName){let Z=O[_];U||(Z=e.tagValueProcessor(_,Z),Z=Le(Z,e)),P&&(d+=t),d+=Z,P=!1,n.pop();continue}if(_===e.cdataPropName){P&&(d+=t),d+=`<![CDATA[${String(O[_][0][e.textNodeName]).replace(/\]\]>/g,"]]]]><![CDATA[>")}]]>`,P=!1,n.pop();continue}if(_===e.commentPropName){d+=t+`\x3c!--${String(O[_][0][e.textNodeName]).replace(/--/g,"- -").replace(/-$/,"- ")}--\x3e`,P=!0,n.pop();continue}if("?"===_[0]){const Z=Ke(O[":@"],e,U);let se=O[_][0][e.textNodeName];se=0!==se.length?" "+se:"",d+=("?xml"===_?"":t)+`<${_}${se}${Z}?>`,P=!0,n.pop();continue}let G=t;""!==G&&(G+=e.indentBy);const q=t+`<${_}${Ke(O[":@"],e,U)}`;let Y;Y=U?Ge(O[_],e):We(O[_],e,G,n,o),-1!==e.unpairedTags.indexOf(_)?d+=e.suppressUnpairedNode?q+">":q+"/>":Y&&0!==Y.length||!e.suppressEmptyNode?Y&&Y.endsWith(">")?d+=q+`>${Y}${t}</${_}>`:(d+=q+">",Y&&""!==t&&(Y.includes("/>")||Y.includes("</"))?d+=t+e.indentBy+Y+t:d+=Y,d+=`</${_}>`):d+=q+"/>",P=!0,n.pop()}return d}function dt(r,e){if(!r||e.ignoreAttributes)return null;const t={};let n=!1;for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o.startsWith(e.attributeNamePrefix)?o.substr(e.attributeNamePrefix.length):o]=r[o],n=!0);return n?t:null}function Ge(r,e){if(!Array.isArray(r))return null!=r?r.toString():"";let t="";for(let n=0;n<r.length;n++){const o=r[n],d=ze(o);if(d===e.textNodeName)t+=o[d];else if(d===e.cdataPropName)t+=o[d][0][e.textNodeName];else if(d===e.commentPropName)t+=o[d][0][e.textNodeName];else{if(d&&"?"===d[0])continue;if(d){const P=pt(o[":@"],e),u=Ge(o[d],e);t+=u&&0!==u.length?`<${d}${P}>${u}</${d}>`:`<${d}${P}/>`}}}return t}function pt(r,e){let t="";if(r&&!e.ignoreAttributes)for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let o=r[n];t+=!0===o&&e.suppressBooleanAttributes?` ${n.substr(e.attributeNamePrefix.length)}`:` ${n.substr(e.attributeNamePrefix.length)}="${o}"`}return t}function ze(r){const e=Object.keys(r);for(let t=0;t<e.length;t++){const n=e[t];if(Object.prototype.hasOwnProperty.call(r,n)&&":@"!==n)return n}}function Ke(r,e,t){let n="";if(r&&!e.ignoreAttributes)for(let o in r){if(!Object.prototype.hasOwnProperty.call(r,o))continue;let d;t?d=r[o]:(d=e.attributeValueProcessor(o,r[o]),d=Le(d,e)),n+=!0===d&&e.suppressBooleanAttributes?` ${o.substr(e.attributeNamePrefix.length)}`:` ${o.substr(e.attributeNamePrefix.length)}="${d}"`}return n}function ft(r,e){if(!e||0===e.length)return!1;for(let t=0;t<e.length;t++)if(r.matches(e[t]))return!0;return!1}function Le(r,e){if(r&&r.length>0&&e.processEntities)for(let t=0;t<e.entities.length;t++){const n=e.entities[t];r=r.replace(n.regex,n.val)}return r}const gt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(r,e){return e},attributeValueProcessor:function(r,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function ge(r){if(this.options=Object.assign({},gt,r),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>"string"==typeof e&&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++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new F(t)):t instanceof F&&this.stopNodeExpressions.push(t)}!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=function ht(r){return"function"==typeof r?r:Array.isArray(r)?e=>{for(const t of r)if("string"==typeof t&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1}(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=bt),this.processTextOrObjNode=mt,this.options.format?(this.indentate=yt,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function mt(r,e,t,n){const o=this.extractAttributes(r);if(n.push(e,o),this.checkStopNode(n)){const u=this.buildRawContent(r),O=this.buildAttributesForStopNode(r);return n.pop(),this.buildObjectNode(u,e,O,t)}const P=this.j2x(r,t+1,n);return n.pop(),void 0!==r[this.options.textNodeName]&&1===Object.keys(r).length?this.buildTextValNo
1de(r[this.options.textNodeName],e,P.attrStr,t,n):this.buildObjectNode(P.val,e,P.attrStr,t)}function yt(r){return this.options.indentBy.repeat(r)}function bt(r){return!(!r.startsWith(this.options.attributeNamePrefix)||r===this.options.textNodeName)&&r.substr(this.attrPrefixLen)}ge.prototype.build=function(r){if(this.options.preserveOrder)return ut(r,this.options);{Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(r={[this.options.arrayNodeName]:r});const e=new y;return this.j2x(r,0,e).val}},ge.prototype.j2x=function(r,e,t){let n="",o="";if(this.options.maxNestedTags&&t.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const d=this.options.jPath?t.toString():t,P=this.checkStopNode(t);for(let u in r)if(Object.prototype.hasOwnProperty.call(r,u))if(typeof r[u]>"u")this.isAttribute(u)&&(o+="");else if(null===r[u])this.isAttribute(u)||u===this.options.cdataPropName?o+="":o+="?"===u[0]?this.indentate(e)+"<"+u+"?"+this.tagEndChar:this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(r[u]instanceof Date)o+=this.buildTextValNode(r[u],u,"",e,t);else if("object"!=typeof r[u]){const O=this.isAttribute(u);if(O&&!this.ignoreAttributesFn(O,d))n+=this.buildAttrPairStr(O,""+r[u],P);else if(!O)if(u===this.options.textNodeName){let _=this.options.tagValueProcessor(u,""+r[u]);o+=this.replaceEntitiesValue(_)}else{t.push(u);const _=this.checkStopNode(t);if(t.pop(),_){const M=""+r[u];o+=""===M?this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:this.indentate(e)+"<"+u+">"+M+"</"+u+this.tagEndChar}else o+=this.buildTextValNode(r[u],u,"",e,t)}}else if(Array.isArray(r[u])){const O=r[u].length;let _="",M="";for(let U=0;U<O;U++){const G=r[u][U];if(!(typeof G>"u"))if(null===G)o+="?"===u[0]?this.indentate(e)+"<"+u+"?"+this.tagEndChar:this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if("object"==typeof G)if(this.options.oneListGroup){t.push(u);const H=this.j2x(G,e+1,t);t.pop(),_+=H.val,this.options.attributesGroupName&&G.hasOwnProperty(this.options.attributesGroupName)&&(M+=H.attrStr)}else _+=this.processTextOrObjNode(G,u,e,t);else if(this.options.oneListGroup){let H=this.options.tagValueProcessor(u,G);H=this.replaceEntitiesValue(H),_+=H}else{t.push(u);const H=this.checkStopNode(t);if(t.pop(),H){const q=""+G;_+=""===q?this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:this.indentate(e)+"<"+u+">"+q+"</"+u+this.tagEndChar}else _+=this.buildTextValNode(G,u,"",e,t)}}this.options.oneListGroup&&(_=this.buildObjectNode(_,u,M,e)),o+=_}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){const O=Object.keys(r[u]),_=O.length;for(let M=0;M<_;M++)n+=this.buildAttrPairStr(O[M],""+r[u][O[M]],P)}else o+=this.processTextOrObjNode(r[u],u,e,t);return{attrStr:n,val:o}},ge.prototype.buildAttrPairStr=function(r,e,t){return t||(e=this.options.attributeValueProcessor(r,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&"true"===e?" "+r:" "+r+'="'+e+'"'},ge.prototype.extractAttributes=function(r){if(!r||"object"!=typeof r)return null;const e={};let t=!1;if(this.options.attributesGroupName&&r[this.options.attributesGroupName]){const n=r[this.options.attributesGroupName];for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o.startsWith(this.options.attributeNamePrefix)?o.substring(this.options.attributeNamePrefix.length):o]=n[o],t=!0)}else for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;const o=this.isAttribute(n);o&&(e[o]=r[n],t=!0)}return t?e:null},ge.prototype.buildRawContent=function(r){if("string"==typeof r)return r;if("object"!=typeof r||null===r)return String(r);if(void 0!==r[this.options.textNodeName])return r[this.options.textNodeName];let e="";for(let t in r){if(!Object.prototype.hasOwnProperty.call(r,t)||this.isAttribute(t)||this.options.attributesGroupName&&t===this.options.attributesGroupName)continue;const n=r[t];if(t===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let o of n)if("string"==typeof o||"number"==typeof o)e+=`<${t}>${o}</${t}>`;else if("object"==typeof o&&null!==o){const d=this.buildRawContent(o),P=this.buildAttributesForStopNode(o);e+=""===d?`<${t}${P}/>`:`<${t}${P}>${d}</${t}>`}}else if("object"==typeof n&&null!==n){const o=this.buildRawContent(n),d=this.buildAttributesForStopNode(n);e+=""===o?`<${t}${d}/>`:`<${t}${d}>${o}</${t}>`}else e+=`<${t}>${n}</${t}>`}return e},ge.prototype.buildAttributesForStopNode=function(r){if(!r||"object"!=typeof r)return"";let e="";if(this.options.attributesGroupName&&r[this.options.attributesGroupName]){const t=r[this.options.attributesGroupName];for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;const o=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,d=t[n];e+=!0===d&&this.options.suppressBooleanAttributes?" "+o:" "+o+'="'+d+'"'}}else for(let t in r){if(!Object.prototype.hasOwnProperty.call(r,t))continue;const n=this.isAttribute(t);if(n){const o=r[t];e+=!0===o&&this.options.suppressBooleanAttributes?" "+n:" "+n+'="'+o+'"'}}return e},ge.prototype.buildObjectNode=function(r,e,t,n){if(""===r)return"?"===e[0]?this.indentate(n)+"<"+e+t+"?"+this.tagEndChar:this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar;{let o="</"+e+this.tagEndChar,d="";return"?"===e[0]&&(d="?",o=""),!t&&""!==t||-1!==r.indexOf("<")?!1!==this.options.commentPropName&&e===this.options.commentPropName&&0===d.length?this.indentate(n)+`\x3c!--${r}--\x3e`+this.newLine:this.indentate(n)+"<"+e+t+d+this.tagEndChar+r+this.indentate(n)+o:this.indentate(n)+"<"+e+t+d+">"+r+o}},ge.prototype.closeTag=function(r){let e="";return-1!==this.options.unpairedTags.indexOf(r)?this.options.suppressUnpairedNode||(e="/"):e=this.options.suppressEmptyNode?"/":`></${r}`,e},ge.prototype.checkStopNode=function(r){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let e=0;e<this.stopNodeExpressions.length;e++)if(r.matches(this.stopNodeExpressions[e]))return!0;return!1}
1,ge.prototype.buildTextValNode=function(r,e,t,n,o){if(!1!==this.options.cdataPropName&&e===this.options.cdataPropName){const d=String(r).replace(/\]\]>/g,"]]]]><![CDATA[>");return this.indentate(n)+`<![CDATA[${d}]]>`+this.newLine}if(!1!==this.options.commentPropName&&e===this.options.commentPropName){const d=String(r).replace(/--/g,"- -").replace(/-$/,"- ");return this.indentate(n)+`\x3c!--${d}--\x3e`+this.newLine}if("?"===e[0])return this.indentate(n)+"<"+e+t+"?"+this.tagEndChar;{let d=this.options.tagValueProcessor(e,r);return d=this.replaceEntitiesValue(d),""===d?this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+t+">"+d+"</"+e+this.tagEndChar}},ge.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){const t=this.options.entities[e];r=r.replace(t.regex,t.val)}return r};const Tt=ge;var vt=i(67374),Et=i.n(vt),Pt=i(53909),xt=i(77780);const Be="text",At=["doc.data.device.field","doc.data.device.codecs.codec"],Ue="#cdata",wt=new class lt{constructor(e){this.externalEntities={},this.options=f(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const d=(0,at.t)(e,t);if(!0!==d)throw Error(`${d.err.msg}:${d.err.line}:${d.err.col}`)}const n=new Te(this.options,this.externalEntities),o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:nt(o,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return p.getMetaDataSymbol()}}({isArray:(r,e,t,n)=>!n&&"string"==typeof e&&At.includes(e),parseTagValue:!1,parseAttributeValue:!1,ignoreAttributes:!1,textNodeName:Be,cdataPropName:Ue,attributeNamePrefix:"$"}),_t=new Tt({suppressBooleanAttributes:!1,ignoreAttributes:!1,textNodeName:Be,cdataPropName:Ue,attributeNamePrefix:"$",format:!0});function Ct(r){const e=wt.parse(r);return delete e.doc?.report,e}function Nt(r,e){return r.doc||(r.doc={}),r.doc.header||(r.doc.header={}),r.doc.header.time=Et()().format("YYYY-MM-DD HH:mm:ss"),r.doc.header.type=e,r.doc.header.version||(r.doc.header.version="1"),r.doc.header.name||(r.doc.header.name="Custom"),"gateway-template"===e&&(r.doc.header.description||(r.doc.header.description=Pt.n6),r.doc.header.url||(r.doc.header.url="https://www.3cx.com/docs/manual/sip-trunks/"),r.doc.header.tags||(r.doc.header.tags=xt.z.join(",")),r.doc.header.image||(r.doc.header.image="default-icon.png"),r.doc.header.logo||(r.doc.header.logo="default-logo.png")),r.doc.data||(r.doc.data={}),r.doc.data.device||(r.doc.data.device={}),_t.build(r)}function It(r,e,t){return r.doc||(r.doc={}),r.doc.header||(r.doc.header={}),void 0!==e&&(r.doc.header.tags=e),void 0!==t&&(r.doc.header.description=t),r}},80939(x,V,i){"use strict";i.d(V,{V:()=>L});var a=i(17705),T=i(85802),I=i(89417),N=i(68018),B=i(38601),f=i(983),S=i(96354),p=i(25558),b=i(50779),v=i(94743),E=i(54999),h=i(54381),l=i(61811),c=i(24708),m=i(90776),A=i(38969),C=i(8470),w=i(56998),s=i(35547);function g(y,F){if(1&y){const W=s.RV6();s.j41(0,"app-button-add",4),s.bIt("click",function(){T.eBV(W);const k=s.XpG();return T.Njj(k.add())}),s.k0s()}}function $(y,F){if(1&y){const W=s.RV6();s.j41(0,"button",11),s.nI1(1,"translate"),s.bIt("click",function(){T.eBV(W);const k=s.XpG().$index,K=s.XpG();return T.Njj(K.delete(k))}),s.k0s()}2&y&&s.Y8G("title",s.mNQ(s.bMT(1,2,"_i18n.Delete")))}function j(y,F){if(1&y&&(s.j41(0,"div",5)(1,"div",6),s.nI1(2,"translate"),s.nrm(3,"i",7),s.j41(4,"span"),s.EFF(5),s.k0s()(),s.j41(6,"div",8)(7,"span"),s.EFF(8),s.k0s(),s.nrm(9,"val-errors",9),s.k0s(),s.nVh(10,$,2,4,"button",10),s.k0s()),2&y){const W=F.$implicit,R=F.$index,k=s.XpG();s.AVh("error-border",W.invalid),s.R7$(),s.Y8G("title",s.mNQ(s.bMT(2,8,"_i18n.MoveCodec"))),s.R7$(4),s.JRh(R+1),s.R7$(3),s.JRh(W.value),s.R7$(),s.Y8G("control",W),s.R7$(),s.vxM(k.allowDelete?10:-1)}}let L=(()=>{class y{modalService=(0,T.WQX)(B.B);cd=(0,T.WQX)(a.gRc);defsApiService=(0,T.WQX)(h.G);codecs;allowedCodecs=null;allowDelete=!0;allowAdd=!0;dropCodec(W){(0,w.jc)(this.codecs,W.previousIndex,W.currentIndex),this.codecs.markAsDirty(),this.codecs.markAsTouched()}delete(W){this.allowDelete&&(this.codecs.removeAt(W),this.codecs.markAsDirty(),this.codecs.markAsTouched())}add(){this.allowAdd&&this.defsApiService.listCodecs({}).pipe((0,S.T)(W=>W.value?.map(R=>R.RfcName)||[]),(0,p.n)(W=>{let R=W.filter(k=>!this.codecs.value.find(K=>K.toLowerCase()===k.toLocaleLowerCase()));return this.allowedCodecs&&(R=R.filter(k=>this.allowedCodecs?.includes(k))),R.length>0?this.modalService.showDialog(v.a,{possibleValues:R}):(this.modalService.information("_i18n.AllCodecsAdded"),f.w)})).subscribe({next:W=>
1{W.decision===E.R.Ok&&W.payload&&(W.payload.forEach(R=>this.codecs.push(new I.MJ(R,{nonNullable:!0}))),this.codecs.markAsDirty(),this.codecs.markAsTouched()),this.cd.markForCheck()},error:W=>this.modalService.error(W)})}static \u0275fac=function(R){return new(R||y)};static \u0275cmp=s.VBU({type:y,selectors:[["app-codecs"]],inputs:{codecs:"codecs",allowedCodecs:"allowedCodecs",allowDelete:"allowDelete",allowAdd:"allowAdd"},decls:11,vars:7,consts:[["theme","border","data-qa","btn-add","type","button",1,"my-3"],["cdkDropList","",1,"codecsList","mb-3",3,"cdkDropListDropped"],[1,"codec-grid","fw-bold","border-bottom"],["cdkDrag","","cdkDragBoundary",".codecsList",1,"codec-grid","border-bottom",3,"error-border"],["theme","border","data-qa","btn-add","type","button",1,"my-3",3,"click"],["cdkDrag","","cdkDragBoundary",".codecsList",1,"codec-grid","border-bottom"],["cdkDragHandle","","data-qa","qa-index",1,"d-flex","align-items-center","cursor-move","fw-bold",3,"title"],["app-ellipsis-v-regular-icon","",1,"customSVGIcons","svg-md"],["data-qa","qa-value",1,"d-flex","gap-2"],[3,"control"],["data-qa","delete-codec","type","button","app-trash-alt-solid-icon","",1,"btn","btn-plain","cursor-move",3,"title"],["data-qa","delete-codec","type","button","app-trash-alt-solid-icon","",1,"btn","btn-plain","cursor-move",3,"click","title"]],template:function(R,k){1&R&&(s.nVh(0,g,1,0,"app-button-add",0),s.j41(1,"div",1),s.bIt("cdkDropListDropped",function(J){return k.dropCodec(J)}),s.j41(2,"div",2)(3,"span"),s.EFF(4),s.nI1(5,"translate"),s.k0s(),s.j41(6,"span"),s.EFF(7),s.nI1(8,"translate"),s.k0s()(),s.Z7z(9,j,11,10,"div",3,s.fX1),s.k0s()),2&R&&(s.vxM(k.allowAdd?0:-1),s.R7$(4),s.JRh(s.bMT(5,3,"_i18n.Priority")),s.R7$(3),s.JRh(s.bMT(8,5,"_i18n.Codec")),s.R7$(2),s.Dyx(k.codecs.controls))},dependencies:[A.d,C.Y,b.Q_,I.YN,l.ad,l.O7,l.T1,l.Fb,c.IH,m.j,N.D9],styles:[".codec-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:55px minmax(0,1fr) auto;grid-gap:16px;height:33px;align-items:center}.codec-grid[_ngcontent-%COMP%]:nth-child(2n){background:var(--bg-primary-darken)}"],changeDetection:0})}return y})()},14176(x,V,i){"use strict";i.d(V,{E:()=>N,n:()=>B});var a=i(59549),T=i(35547);const I={Custom:"_i18n.TemplateType_Custom",Preferred:"_i18n.TemplateType_Preferred",Supported:"_i18n.TemplateType_Supported",Dedicated:"_i18n.TemplateType_Dedicated",Deleted:"_i18n.TemplateType_Deleted",ThirdParty:"_i18n.TemplateType_Generic_Vendor",Unknown:"_i18n.TemplateType_Unknown"};function N(f){return f.IsCustom?"Custom":f.TemplateType??a.V.Unknown}let B=(()=>{class f{transform(p,b="vendor"){return"ThirdParty"===p&&"provider"===b?"_i18n.TemplateType_Generic_Provider":I[p]}static \u0275fac=function(b){return new(b||f)};static \u0275pipe=T.EJ8({name:"appTemplateType",type:f,pure:!0})}return f})()},3817(x,V,i){"use strict";i.d(V,{F:()=>c});var a=i(85802),T=i(59882),I=i(68018),N=i(84833),B=i(36832),f=i(35547);function S(m,A){if(1&m&&(f.j41(0,"span",6),f.EFF(1),f.nI1(2,"appRouteDestinationType"),f.nI1(3,"translate"),f.k0s()),2&m){const C=f.XpG(3);f.AVh("fst-italic","NoRights"===C.dest.header),f.R7$(),f.SpI(" ",f.bMT(3,5,f.bMT(2,3,C.dest.header))," ")}}function p(m,A){if(1&m&&(f.j41(0,"span",2),f.EFF(1),f.k0s()),2&m){const C=f.XpG(3);f.AVh("text-sm",C.vertical),f.R7$(),f.JRh(C.dest.description)}}function b(m,A){if(1&m){const C=f.RV6();f.j41(0,"a",7),f.bIt("click",function(s){a.eBV(C);const g=f.XpG(3);return a.Njj(g.onLinkClick(s))}),f.EFF(1),f.nI1(2,"translate"),f.k0s()}if(2&m){const C=f.XpG(3);f.R7$(),f.SpI(" ",f.bMT(2,1,"None"===C.dest.header?"_i18n.Configure":"_i18n.CallRouting")," ")}}function v(m,A){1&m&&f.nrm(0,"app-aibadge")}function E(m,A){if(1&m&&(f.nVh(0,S,4,7,"span",3),f.nVh(1,p,2,3,"span",4),f.nVh(2,b,3,3,"a",5),f.nVh(3,v,1,0,"app-aibadge")),2&m){const C=f.XpG(2);f.vxM(C.dest.header&&"None"!==C.dest.header?0:-1),f.R7$(),f.vxM("None"!==C.dest.header&&"EndCall"!==C.dest.header?1:-1),f.R7$(),f.vxM(!C.hideLink&&C.dest.groupId&&"EndCall"!==C.dest.header?2:-1),f.R7$(),f.vxM(null!=C.dest.tags&&C.dest.tags.includes("AI")?3:-1)}}function h(m,A){1&m&&(f.j41(0,"small",2),f.EFF(1),f.nI1(2,"translate"),f.k0s()),2&m&&(f.R7$(),f.JRh(f.bMT(2,1,"_i18n.ConfigurationNotValid")))}function l(m,A){if(1&m&&(f.j41(0,"div",1),f.nVh(1,E,4,4)(2,h,3,3,"small",2),f.k0s()),2&m){const C=f.XpG();f.HbH(f.VkB("d-flex hidden-overflow gap-1 ",C.vertical?"flex-column":"align-items-center")),f.R7$(),f.vxM(C.dest.error?2:1)}}let c=(()=>{class m{router=(0,a.WQX)(T.Ix);dest;vertical;hideLink;onLinkClick(C){C.stopPropagation(),this.router.navigate(["/office/call-handling/group/",this.dest?.groupId])}static \u0275fac=function(w){return new(w||m)};static \u0275cmp=f.VBU({type:m,selectors:[["app-route-dest"]],inputs:{dest:"dest",vertical:"vertical",hideLink:"hideLink"},decls:1,vars:1,consts:[["data-qa","route-destination",3,"class"],["data-qa","route-destination"],[1,"line-clamp-1","text-md-nowrap"],["data-qa","destination-type",1,"line-clamp-1","text-md-nowrap",3,"fst-italic"],[1,"line-clamp-1","text-md-nowrap",3,"text-sm"],[1,"link","line-clamp-1","text-md-nowrap"],["data-qa","destination-type",1,"line-clamp-1","text-md-nowrap"],[1,"link","line-clamp-1","text-md-nowrap",3,"click"]],template:function(w,s){1&w&&f.nVh(0,l,3,4,"div",0),2&w&&f.vxM(s.dest?0:-1)},dependencies:[B.u,I.D9,N.w],encapsulation:2})}return m})()},52808(x,V,i){"use strict";i.d(V,{$B:()=>p,Gx:()=>h,JG:()=>b,XF:()=>E,bx:()=>v});var a=i(45317),T=i(71747),I=i(84833);const N="NoRights";function f(l,c){return c?`(${l} ${c})`:l?`(${l})`:""}
1function p(l,c){if(l&&c)return l.find(m=>m.Number===c)}function b(l,c){const m=p(l,c?.Number),A=m?.OfficeRoute?.Route;let C;return C=m?f(A?.Number,A?.Name):c?.Type===T.J.Group?f(void 0,void 0):f(c?.Number,c?.Name),{groupId:m?.Id,header:m?A?.To:"Group"===c?.Type?N:c?.Type,description:C}}function v(l,c){if(!l)return{error:!0};if(l.To===a.h.RoutePoint&&l.Type===T.J.Group){const m=p(c,l.Number);return function S(l,c){const m=c?.To===a.h.RoutePoint&&c.Type===T.J.Group,A=c?.To===a.h.External?c.External:c?.Number;return{groupId:l,header:m?l?T.J.Group:N:A?c?.To:a.h.None,description:m?f(l?c?.Name:null,null):f(A,c?.Name)}}(m?.Id,m?m.OfficeRoute?.Route:l)}return l.To===a.h.External?{description:f(l.External,null),header:l.To}:l.To===a.h.RoutePoint&&l.Number?.startsWith("GRP")?{description:f(l.Name,void 0),header:l.To}:l.To===a.h.RoutePoint&&l.Tags?.includes("Principal")?{description:f(l.Number,void 0),header:"ServicePrincipal"}:{tags:l.Tags,description:f(l.Number,l.Name),header:l.Number?l.To===a.h.Fax&&l.Type===T.J.Extension?"FaxForward":l.To:a.h.None}}function E(l,c){const A=l.RoutingRules?.find(C=>"ForwardAll"===C.Condition)?.OfficeHoursDestination;return v(A,c)}function h(l,c){return l.header&&l.header!==a.h.None?`${c.instant(I.F[l.header])} ${l.description}`.trim():""}},84833(x,V,i){"use strict";i.d(V,{F:()=>I,w:()=>N});var a=i(81753),T=i(35547);const I={Boomerang:a.eI,CallByName:"_i18n.CallByName",Callback:a.eI,Conference:a.eI,CustomInput:a.eI,Deflect:a.eI,EndCall:"_i18n.EndCall",ServicePrincipal:"_i18n.ServicePrincipal",Extension:"_i18n.User",External:"_i18n.ExternalNumber",ExternalLine:a.eI,FaxForward:"_i18n.SendFaxViaEmail",Fax:"_i18n.SendFaxTo",Group:"_i18n.Department",IVR:"_i18n.DigitalReceptionist",None:"_i18n.EndCall",Parking:a.eI,Queue:"_i18n.DNType_Queue",RepeatPrompt:"_i18n.RepeatPrompt",RingGroup:"_i18n.RingGroup",RoutePoint:"_i18n.CallFlow",SpecialMenu:a.eI,VoiceMail:"_i18n.VoiceMail",NoRights:"_i18n.NoRightsAvailable",VoiceMailOfDestination:a.eI,ProceedWithNoExceptions:a.eI};let N=(()=>{class B{transform(S){return S?I[S]:""}static \u0275fac=function(p){return new(p||B)};static \u0275pipe=T.EJ8({name:"appRouteDestinationType",type:B,pure:!0})}return B})()},29279(x,V,i){"use strict";i.d(V,{D:()=>S,y:()=>B});var a=i(59549),T=i(96354),I=i(53909);const N=[I.G6.providerId,I.AC.providerId];function B(p){return p.listTrunkTemplate({$filter:"(TemplateType eq 'Preferred' or TemplateType eq 'Supported'  or TemplateType eq 'Dedicated' or TemplateType eq 'ThirdParty') and AddAllowed",$orderby:["IsCustom,TemplateType,Name"]}).pipe((0,T.T)(({value:b})=>(b??[]).filter(v=>!N.includes(v.Id))))}const f=[a.V.Preferred,a.V.Supported,a.V.ThirdParty];function S(p){return p.map(b=>"Dedicated"===b.TemplateType?{...b,TemplateType:a.V.Supported}:b).toSorted((b,v)=>{if(b.IsCustom!==v.IsCustom)return b.IsCustom?1:-1;const E=f.indexOf(b.TemplateType),h=f.indexOf(v.TemplateType);return E!==h?E<h?-1:1:b.Id.localeCompare(v.Id)})}},36392(x,V,i){"use strict";i.d(V,{C:()=>v});var a=i(85802),T=i(97201),I=i(4499),N=i(35547);let B=(()=>{class E extends I.d{listCountry(l,c="body"){const m=l?.$top,A=l?.$skip,C=l?.$search,w=l?.$filter,s=l?.$count,g=l?.$orderby,$=l?.$select,j=l?.$expand;let L=new T.rx(this.encoder);L=this.addToHttpParams(L,"$top",m,T.l2.Form,!1),L=this.addToHttpParams(L,"$skip",A,T.l2.Form,!1),L=this.addToHttpParams(L,"$search",C,T.l2.Form,!1),L=this.addToHttpParams(L,"$filter",w,T.l2.Form,!1),L=this.addToHttpParams(L,"$count",s,T.l2.Form,!1),L=this.addToHttpParams(L,"$orderby",g,T.l2.Form,!1),L=this.addToHttpParams(L,"$select",$,T.l2.Form,!1),L=this.addToHttpParams(L,"$expand",j,T.l2.Form,!1);let y=this.defaultHeaders;y=this.configuration.addCredentialToHeaders("Application","Authorization",y,"Bearer ");const F=this.configuration.selectHeaderAccept(["application/json"]);void 0!==F&&(y=y.set("Accept",F));let W="json";F&&(W=F.startsWith("text")?"text":this.configuration.isJsonMime(F)?"json":"blob");const{basePath:k,withCredentials:K}=this.configuration;return this.httpClient.request("get",`${k}/Countries`,{params:L.toHttpParams(),responseType:W,...K?{withCredentials:K}:{},headers:y,observe:c})}listCountryQuery(l,c="body",m=!1,A){const C=l.$top,w=l.$skip,s=l.$search,g=l.$filter,$=l.$count,j=l.$orderby,L=l.$select,y=l.$expand;let F=new T.rx(this.encoder);return F=this.addToHttpParams(F,"$top",C,T.l2.Form,!1),F=this.addToHttpParams(F,"$skip",w,T.l2.Form,!1),F=this.addToHttpParams(F,"$search",s,T.l2.Form,!1),F=this.addToHttpParams(F,"$filter",g,T.l2.Form,!1),F=this.addToHttpParams(F,"$count",$,T.l2.Form,!1),F=this.addToHttpParams(F,"$orderby",j,T.l2.Form,!1),F=this.addToHttpParams(F,"$select",L,T.l2.Form,!1),F=this.addToHttpParams(F,"$expand",y,T.l2.Form,!1),"/Countries?"+F.toString()}static \u0275fac=(()=>{let l;return function(m){return(l||(l=N.xGo(E)))(m||E)}})();static \u0275prov=a.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var f=i(96354),S=i(99437),p=i(7673),b=i(50644);let v=(()=>{class E{countries$;constructor(){const l=(0,a.WQX)(B);
1this.countries$=l.listCountry({$select:["Name","ErpCode","CountryCodes","Continent","CountryCode"]}).pipe((0,f.T)(c=>c.value??[]),(0,b.ug)(),(0,S.W)(()=>(0,p.of)([])))}static \u0275fac=function(c){return new(c||E)};static \u0275prov=a.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},34101(x,V,i){"use strict";i.d(V,{h:()=>a});const a={AR:{en:"Argentina",de:"Argentinien",es:"Argentina",fr:"Argentine",it:"Argentina",pt:"Argentina",ru:"\u0410\u0440\u0433\u0435\u043d\u0442\u0438\u043d\u0430",zh:"\u963f\u6839\u5ef7"},AT:{en:"Austria",de:"\xd6sterreich",es:"Austria",fr:"Autriche",it:"Austria",pt:"\xc1ustria",ru:"\u0410\u0432\u0441\u0442\u0440\u0438\u044f",zh:"\u5965\u5730\u5229"},AU:{en:"Australia",de:"Australien",es:"Australia",fr:"Australie",it:"Australia",pt:"Austr\xe1lia",ru:"\u0410\u0432\u0441\u0442\u0440\u0430\u043b\u0438\u044f",zh:"\u6fb3\u5927\u5229\u4e9a"},BE:{en:"Belgium",de:"Belgien",es:"B\xe9lgica",fr:"Belgique",it:"Belgio",pt:"B\xe9lgica",ru:"\u0411\u0435\u043b\u044c\u0433\u0438\u044f",zh:"\u6bd4\u5229\u65f6"},BG:{en:"Bulgaria",de:"Bulgarien",es:"Bulgaria",fr:"Bulgarie",it:"Bulgaria",pt:"Bulg\xe1ria",ru:"\u0411\u043e\u043b\u0433\u0430\u0440\u0438\u044f",zh:"\u4fdd\u52a0\u5229\u4e9a"},BR:{en:"Brazil",de:"Brasilien",es:"Brasil",fr:"Br\xe9sil",it:"Brasile",pt:"Brasil",ru:"\u0411\u0440\u0430\u0437\u0438\u043b\u0438\u044f",zh:"\u5df4\u897f"},CA:{en:"Canada",de:"Kanada",es:"Canad\xe1",fr:"Canada",it:"Canada",pt:"Canad\xe1",ru:"\u041a\u0430\u043d\u0430\u0434\u0430",zh:"\u52a0\u62ff\u5927"},CH:{en:"Switzerland",de:"Schweiz",es:"Suiza",fr:"Suisse",it:"Svizzera",pt:"Su\xed\xe7a",ru:"\u0428\u0432\u0435\u0439\u0446\u0430\u0440\u0438\u044f",zh:"\u745e\u58eb"},CL:{en:"Chile",de:"Chile",es:"Chile",fr:"Chili",it:"Cile",pt:"Chile",ru:"\u0427\u0438\u043b\u0438",zh:"\u667a\u5229"},CN:{en:"China",de:"China",es:"China",fr:"Chine",it:"Cina",pt:"China",ru:"\u041a\u0438\u0442\u0430\u0439",zh:"\u4e2d\u56fd"},CY:{en:"Cyprus",de:"Zypern",es:"Chipre",fr:"Chypre",it:"Cipro",pt:"Chipre",ru:"\u041a\u0438\u043f\u0440",zh:"\u585e\u6d66\u8def\u65af"},CZ:{en:"Czech Republic",de:"Tschechien",es:"Chequia",fr:"Tch\xe9quie",it:"Cechia",pt:"Tch\xe9quia",ru:"\u0427\u0435\u0445\u0438\u044f",zh:"\u6377\u514b"},DE:{en:"Germany",de:"Deutschland",es:"Alemania",fr:"Allemagne",it:"Germania",pt:"Alemanha",ru:"\u0413\u0435\u0440\u043c\u0430\u043d\u0438\u044f",zh:"\u5fb7\u56fd"},DK:{en:"Denmark",de:"D\xe4nemark",es:"Dinamarca",fr:"Danemark",it:"Danimarca",pt:"Dinamarca",ru:"\u0414\u0430\u043d\u0438\u044f",zh:"\u4e39\u9ea6"},ES:{en:"Spain",de:"Spanien",es:"Espa\xf1a",fr:"Espagne",it:"Spagna",pt:"Espanha",ru:"\u0418\u0441\u043f\u0430\u043d\u0438\u044f",zh:"\u897f\u73ed\u7259"},FR:{en:"France",de:"Frankreich",es:"Francia",fr:"France",it:"Francia",pt:"Fran\xe7a",ru:"\u0424\u0440\u0430\u043d\u0446\u0438\u044f",zh:"\u6cd5\u56fd"},GR:{en:"Greece",de:"Griechenland",es:"Grecia",fr:"Gr\xe8ce",it:"Grecia",pt:"Gr\xe9cia",ru:"\u0413\u0440\u0435\u0446\u0438\u044f",zh:"\u5e0c\u814a"},HK:{en:"Hong Kong",de:"Hongkong",es:"Hong Kong",fr:"Hong Kong",it:"Hong Kong",pt:"Hong Kong",ru:"\u0413\u043e\u043d\u043a\u043e\u043d\u0433",zh:"\u9999\u6e2f"},HR:{en:"Croatia",de:"Kroatien",es:"Croacia",fr:"Croatie",it:"Croazia",pt:"Cro\xe1cia",ru:"\u0425\u043e\u0440\u0432\u0430\u0442\u0438\u044f",zh:"\u514b\u7f57\u5730\u4e9a"},HU:{en:"Hungary",de:"Ungarn",es:"Hungr\xeda",fr:"Hongrie",it:"Ungheria",pt:"Hungria",ru:"\u0412\u0435\u043d\u0433\u0440\u0438\u044f",zh:"\u5308\u7259\u5229"},IE:{en:"Ireland",de:"Irland",es:"Irlanda",fr:"Irlande",it:"Irlanda",pt:"Irlanda",ru:"\u0418\u0440\u043b\u0430\u043d\u0434\u0438\u044f",zh:"\u7231\u5c14\u5170"},IL:{en:"Israel",de:"Israel",es:"Israel",fr:"Isra\xebl",it:"Israele",pt:"Israel",ru:"\u0418\u0437\u0440\u0430\u0438\u043b\u044c",zh:"\u4ee5\u8272\u5217"},IN:{en:"India",de:"Indien",es:"India",fr:"Inde",it:"India",pt:"\xcdndia",ru:"\u0418\u043d\u0434\u0438\u044f",zh:"\u5370\u5ea6"},IS:{en:"Iceland",de:"Island",es:"Islandia",fr:"Islande",it:"Islanda",pt:"Isl\xe2ndia",ru:"\u0418\u0441\u043b\u0430\u043d\u0434\u0438\u044f",zh:"\u51b0\u5c9b"},IT:{en:"Italy",de:"Italien",es:"Italia",fr:"Italie",it:"Italia",pt:"It\xe1lia",ru:"\u0418\u0442\u0430\u043b\u0438\u044f",zh:"\u610f\u5927\u5229"},JP:{en:"Japan",de:"Japan",es:"Jap\xf3n",fr:"Japon",it:"Giappone",pt:"Jap\xe3o",ru:"\u042f\u043f\u043e\u043d\u0438\u044f",zh:"\u65e5\u672c"},LT:{en:"Lithuania",de:"Litauen",es:"Lituania",fr:"Lituanie",it:"Lituania",pt:"Litu\xe2nia",ru:"\u041b\u
10438\u0442\u0432\u0430",zh:"\u7acb\u9676\u5b9b"},LV:{en:"Latvia",de:"Lettland",es:"Letonia",fr:"Lettonie",it:"Lettonia",pt:"Let\xf4nia",ru:"\u041b\u0430\u0442\u0432\u0438\u044f",zh:"\u62c9\u8131\u7ef4\u4e9a"},MT:{en:"Malta",de:"Malta",es:"Malta",fr:"Malte",it:"Malta",pt:"Malta",ru:"\u041c\u0430\u043b\u044c\u0442\u0430",zh:"\u9a6c\u8033\u4ed6"},MX:{en:"Mexico",de:"Mexiko",es:"M\xe9xico",fr:"Mexique",it:"Messico",pt:"M\xe9xico",ru:"\u041c\u0435\u043a\u0441\u0438\u043a\u0430",zh:"\u58a8\u897f\u54e5"},MY:{en:"Malaysia",de:"Malaysia",es:"Malasia",fr:"Malaisie",it:"Malesia",pt:"Mal\xe1sia",ru:"\u041c\u0430\u043b\u0430\u0439\u0437\u0438\u044f",zh:"\u9a6c\u6765\u897f\u4e9a"},NL:{en:"Netherlands",de:"Niederlande",es:"Pa\xedses Bajos",fr:"Pays-Bas",it:"Paesi Bassi",pt:"Pa\xedses Baixos",ru:"\u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u044b",zh:"\u8377\u5170"},NO:{en:"Norway",de:"Norwegen",es:"Noruega",fr:"Norv\xe8ge",it:"Norvegia",pt:"Noruega",ru:"\u041d\u043e\u0440\u0432\u0435\u0433\u0438\u044f",zh:"\u632a\u5a01"},NZ:{en:"New Zealand",de:"Neuseeland",es:"Nueva Zelanda",fr:"Nouvelle-Z\xe9lande",it:"Nuova Zelanda",pt:"Nova Zel\xe2ndia",ru:"\u041d\u043e\u0432\u0430\u044f \u0417\u0435\u043b\u0430\u043d\u0434\u0438\u044f",zh:"\u65b0\u897f\u5170"},PE:{en:"Peru",de:"Peru",es:"Per\xfa",fr:"P\xe9rou",it:"Per\xf9",pt:"Peru",ru:"\u041f\u0435\u0440\u0443",zh:"\u79d8\u9c81"},PL:{en:"Poland",de:"Polen",es:"Polonia",fr:"Pologne",it:"Polonia",pt:"Pol\xf4nia",ru:"\u041f\u043e\u043b\u044c\u0448\u0430",zh:"\u6ce2\u5170"},PT:{en:"Portugal",de:"Portugal",es:"Portugal",fr:"Portugal",it:"Portogallo",pt:"Portugal",ru:"\u041f\u043e\u0440\u0442\u0443\u0433\u0430\u043b\u0438\u044f",zh:"\u8461\u8404\u7259"},RO:{en:"Romania",de:"Rum\xe4nien",es:"Ruman\xeda",fr:"Roumanie",it:"Romania",pt:"Rom\xeania",ru:"\u0420\u0443\u043c\u044b\u043d\u0438\u044f",zh:"\u7f57\u9a6c\u5c3c\u4e9a"},RU:{en:"Russia",de:"Russland",es:"Rusia",fr:"Russie",it:"Russia",pt:"R\xfassia",ru:"\u0420\u043e\u0441\u0441\u0438\u044f",zh:"\u4fc4\u7f57\u65af"},SE:{en:"Sweden",de:"Schweden",es:"Suecia",fr:"Su\xe8de",it:"Svezia",pt:"Su\xe9cia",ru:"\u0428\u0432\u0435\u0446\u0438\u044f",zh:"\u745e\u5178"},SG:{en:"Singapore",de:"Singapur",es:"Singapur",fr:"Singapour",it:"Singapore",pt:"Singapura",ru:"\u0421\u0438\u043d\u0433\u0430\u043f\u0443\u0440",zh:"\u65b0\u52a0\u5761"},SI:{en:"Slovenia",de:"Slowenien",es:"Eslovenia",fr:"Slov\xe9nie",it:"Slovenia",pt:"Eslov\xeania",ru:"\u0421\u043b\u043e\u0432\u0435\u043d\u0438\u044f",zh:"\u65af\u6d1b\u6587\u5c3c\u4e9a"},SK:{en:"Slovakia",de:"Slowakei",es:"Eslovaquia",fr:"Slovaquie",it:"Slovacchia",pt:"Eslov\xe1quia",ru:"\u0421\u043b\u043e\u0432\u0430\u043a\u0438\u044f",zh:"\u65af\u6d1b\u4f10\u514b"},TH:{en:"Thailand",de:"Thailand",es:"Tailandia",fr:"Tha\xeflande",it:"Thailandia",pt:"Tail\xe2ndia",ru:"\u0422\u0430\u0438\u043b\u0430\u043d\u0434",zh:"\u6cf0\u56fd"},TR:{en:"Turkey",de:"T\xfcrkei",es:"Turqu\xeda",fr:"Turquie",it:"Turchia",pt:"Turquia",ru:"\u0422\u0443\u0440\u0446\u0438\u044f",zh:"\u571f\u8033\u5176"},UA:{en:"Ukraine",de:"Ukraine",es:"Ucrania",fr:"Ukraine",it:"Ucraina",pt:"Ucr\xe2nia",ru:"\u0423\u043a\u0440\u0430\u0438\u043d\u0430",zh:"\u4e4c\u514b\u5170"},UK:{en:"United Kingdom",de:"Vereinigtes K\xf6nigreich",es:"Reino Unido",fr:"Royaume-Uni",it:"Regno Unito",pt:"Reino Unido",ru:"\u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f",zh:"\u82f1\u56fd"},US:{en:"United States",de:"Vereinigte Staaten",es:"Estados Unidos",fr:"\xc9tats-Unis",it:"Stati Uniti",pt:"Estados Unidos",ru:"\u0421\u0428\u0410",zh:"\u7f8e\u56fd"},VN:{en:"Vietnam",de:"Vietnam",es:"Vietnam",fr:"Vietnam",it:"Vietnam",pt:"Vietn\xe3",ru:"\u0412\u044c\u0435\u0442\u043d\u0430\u043c",zh:"\u8d8a\u5357"},ZA:{en:"South Africa",de:"S\xfcdafrika",es:"Sud\xe1frica",fr:"Afrique du Sud",it:"Sudafrica",pt:"\xc1frica do Sul",ru:"\u042e\u0436\u043d\u0430\u044f \u0410\u0444\u0440\u0438\u043a\u0430",zh:"\u5357\u975e"}}},21310(x,V,i){"use strict";i.d(V,{o:()=>p});var a=i(85802),T=i(54381),I=i(99437),N=i(96354),B=i(27468),f=i(7673),S=i(50644);let p=(()=>{class b{defs=(0,a.WQX)(T.G);paramsAndValues$=(0,B.p)([this.defs.listGatewayParameters({}),this.defs.listGatewayParameterValues({})]).pipe((0,N.T)(([E,h])=>({params:E.value??[],values:h.value??[]})),(0,S.ug)());parameters$=this.paramsAndValues$.pipe((0,N.T)(({params:E,values:h})=>{const l=new Map;h.forEach(m=>l.set(m.Name,m));const c=new Map;
1return E.forEach(m=>c.set(m.Id,{parameter:m,inboundParamPossibleValues:m.InboundPossibleValues?.map(A=>l.get(A))??[],outboundParamPossibleValues:m.OutboundPossibleValues?.map(A=>l.get(A))??[],sourceIDParamPossibleValues:m.SourceIDPossibleValues?.map(A=>l.get(A))??[]})),c}),(0,S.ug)(),(0,I.W)(()=>(0,f.of)(new Map)));static \u0275fac=function(h){return new(h||b)};static \u0275prov=a.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},24144(x,V,i){"use strict";i.d(V,{yG:()=>C,Hh:()=>L,Vi:()=>y,g2:()=>w,$J:()=>$,xz:()=>m,T$:()=>h,er:()=>j,Ow:()=>F,Hj:()=>W});var a=i(87840),T=i(82971);var N=i(72084),B=i(99558),f=i(97525),S=i(31321);const p=["gateway-template","messaging-template"],v=["Name","RegistrarHost","RegistrarPort","ProxyHost","ProxyPort","SecondaryRegistrar","IPRestriction","TransportRestriction","RequireAuthFor","IpInContactReg","IpInContactRegValue","3wayauthenticationid","PublicIPVia","TimeBetweenRegistration","RegistrarInvite","IsSupportReinvite","IsSupportReplaces","DisableVideo","SRTPMode","IsBindToMS","MatchStrategy"];function E(R){return"string"==typeof R&&v.includes(R)}function h(R){switch(R){case"1":return a.m.Nothing;case"2":return a.m.IncomingCalls;case"3":return a.m.OutgoingCalls;case"4":return a.m.InOutCalls;default:return}}const l={ParameterIn:"InboundPossibleValues",ParameterOut:"OutboundPossibleValues",Source:"SourceIDPossibleValues"},c=["$CalledNum"];function m(R,k,K){const J=(new DOMParser).parseFromString(R,"text/xml");if(J.querySelector("parsererror"))return{validationKey:"invalid"};const ee=J.getElementsByTagName("header")[0];if(!ee)return{errors:[{target:"header",message:T.g.XapiRequired}]};const Ee=ee.getElementsByTagName("template")[0]?.textContent?.trim();if(!Ee)return{errors:[{target:"header / template",message:T.g.XapiRequired}]};if(!ee.getElementsByTagName("name")[0]?.textContent?.trim())return{errors:[{target:"header / name",message:T.g.XapiRequired}]};const me=ee.getElementsByTagName("type")[0]?.textContent?.trim();if(!me)return{errors:[{target:"header / type",message:T.g.XapiRequired}]};if(!function b(R){return p.includes(R)}(me))return{validationKey:"notSupported",errors:[{target:"header / type: "+me,message:T.g.XapiNotSupported}]};const de=J.getElementsByTagName("data")[0];if(!de)return{errors:[{target:"data",message:T.g.XapiRequired}]};const pe=de.getElementsByTagName("device")[0];if(!pe)return{errors:[{target:"data / device",message:T.g.XapiRequired}]};const ye=pe.getElementsByTagName("field"),re={},Pe={ParameterIn:[],ParameterOut:[],Source:[]},ae=[];for(let D=0;D<ye.length;D++){const z=ye[D],X=z.getAttribute("name")?.trim(),le=z.getAttribute("custom")?.trim(),te=z.textContent?.trim()??"";if(E(X))re[X]=te;else{const be=X&&X in Pe?Pe[X]:null,Ae=X&&X in l?l[X]:null,Te=g(k,te),he=z.getAttribute("parameter")?.trim(),oe=s(K,he);if(be&&Ae)if(te)if(he)if(oe){if(!Te||oe[Ae]&&!oe[Ae].includes(te))return{errors:[{target:`data / device / field[${D}] / name=${X}: ${te}`,message:T.g.XapiNotSupported}]};if("ParameterOut"===X&&be.some(ve=>ve.ParamId===oe.Id))return{errors:[{target:`data / device / field[${D}] / name=${X}: ${he}`,message:T.g.XapiDuplicate}]};if("ParameterIn"===X&&c.includes(te)&&be.some(ve=>ve.ValueId===Te))return{errors:[{target:`data / device / field[${D}] / name=${X}: ${te}`,message:T.g.XapiDuplicate}]};be.push({Custom:le,ValueId:Te,ParamId:oe.Id})}else ae.push({target:`data / device / field[${D}] / name=${X}: ${he}`,message:T.g.XapiNotSupported});else ae.push({target:`data / device / field[${D}] / name=${X}: parameter`,message:T.g.XapiRequired});else ae.push({target:`data / device / field[${D}] / name=${X}: value`,message:T.g.XapiRequired});else ae.push({target:`data / device / field[${D}]: name='${X}'`,message:T.g.XapiNotSupported})}}const we=pe.getElementsByTagName("codecs")[0]?.getElementsByTagName("codec"),Ce=[];if(we)for(let D=0;D<we.length;D++){const z=we[D]?.getAttribute("rfcname")?.trim();z?Ce.push(z):ae.push({target:`data / device / codecs / codec[${D}]: rfcname`,message:T.g.XapiRequired})}const Ne=de.getElementsByTagName("sms")[0],_e=Ne?.getElementsByTagName("field")||[],xe={};for(let D=0;D<_e.length;D++){const z=_e[D],X=z.getAttribute("name")?.trim(),le=z.textContent?.trim()??"";"Enabled"===X?xe.Enabled=C(le):ae.push({target:`data / sms / field[${D}]: name='${X}'`,message:T.g.XapiNotSupported})}const ne=Ne?.getElementsByTagName("variable")||[];for(let D=0;D<ne.length;D++){const z=ne[D],X=z.getAttribute("name")?.trim(),le=z.getElementsByTagName("option")?.item(0)?.textContent;null==X?ae.push({target:`data / sms / field[${D}]: name`,message:T.g.XapiRequired}):null==le?ae.push({target:`data / sms / field[${D}] / option: <text>`,message:T.g.XapiRequired}):xe[X]=le}const Q={Name:re.Name,TemplateFilename:Ee,Host:re.RegistrarHost,Port:$(re.RegistrarPort),ProxyHost:re.ProxyHost,SourceIdentification:Pe.Source,ProxyPort:$(re.ProxyPort),TimeBetweenReg:$(re.TimeBetweenRegistration),IPInRegistrationContact:L(re.IpInContactReg),SRTPMode:j(re.SRTPMode),MatchingStrategy:w(re.MatchStrategy),SupportReinvite:C(re.IsSupportReinvite),SupportReplaces:C(re.IsSupportReplaces),DeliverAudio:C(re.IsBindToMS),InboundParams:Pe.ParameterIn,OutboundParams:Pe.ParameterOut,Codecs:Ce,RequireRegistrationFor:h(re.RequireAuthFor)};return{template:A({IPRestriction:y(re.IPRestriction),TransportRestriction:F(re.TransportRestriction),SecondaryRegistrar:re.SecondaryRegistrar,UseSeparateAuthId:"3wayauthenticationid"in re,Gateway:A(Q),Messaging:A(xe),DisableVideo:C(re.DisableVideo)}),warnings:ae}}function A(R){return Object.entries(R).reduce((k,[K,J])=>null!=J?Object.assign(k,{[K]:J}):k,{})}function C(R){return R?"1"===R:void 0}function w(R){switch(R){case"0":return"MatchAnyFields";case"1":return"MatchAllFields";default:return}}function s(R,k){if(null!=k)return R.find(K=>K.Name===k)}function g(R,k){if(null!=k)return R.find(K=>K.Name===k)?.Id}function $(R){if(null!=R){const k=parseInt(R,10);return isNaN(k)?void 0:k}}function j(R){switch($(R)){case 0:return N.J.SrtpDisabled;case 1:return N.J.SrtpEnabled;case 2:return N.J.SrtpEnforced;default:return}}function L(R){switch($(R)){case 1:return B.e.External;case 2:return B.e.Internal;case 3:return B.e.Both;case 4:return B.e.Specified;default:return}}function y(R){switch(R){case"ANY":return f.$.Any;case"IPV4":return f.$.Ipv4;case"IPV6":return f.$.Ipv6;default:return}}function F(R){switch(R){case"ANY":return S.j.Any;case"UDP":return S.j.Udp;case"TLS":return S.j.Tls;case"TCP":return S.j.Tcp;default:return}}function W(R,k){k&&Object.assign(R,{...k,Gateway:{...R.Gateway,...k.Gateway},Messaging:{...R.Messaging,...k.Messaging}})}},32338(x,V,i){"use strict";i.d(V,{Q:()=>B});var a=i(97201),T=i(4499),I=i(35547),N=i(85802);let B=(()=>{class f extends T.d{createFxsTemplate(p,b="body"){const v=p?.pbxFxsTemplate;if(null==v)throw new Error("Required parameter pbxFxsTemplate was null or undefined when calling createFxsTemplate.");let E=this.defaultHeaders;E=this.configuration.addCredentialToHeaders("Application","Authorization",E,"Bearer ");const h=this.configuration.selectHeaderAccept(["application/json"]);void 0!==h&&(E=E.set("Accept",h));const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(E=E.set("Content-Type",c));let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");const{basePath:C,withCredentials:w}=this.configuration;
1return this.httpClient.request("post",`${C}/FxsTemplates`,{body:v,responseType:m,...w?{withCredentials:w}:{},headers:E,observe:b})}createFxsTemplateQuery(p,b="body",v=!1,E){if(null==p.pbxFxsTemplate)throw new Error("Required parameter pbxFxsTemplate was null or undefined when calling createFxsTemplate.");return"/FxsTemplates"}deleteFxsTemplate(p,b="body"){const v=p?.id;if(null==v)throw new Error("Required parameter id was null or undefined when calling deleteFxsTemplate.");const E=p?.ifMatch;let h=this.defaultHeaders;null!=E&&(h=h.set("If-Match",String(E))),h=this.configuration.addCredentialToHeaders("Application","Authorization",h,"Bearer ");const l=this.configuration.selectHeaderAccept(["application/json"]);void 0!==l&&(h=h.set("Accept",l));let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`/FxsTemplates(${this.configuration.encodeParam({name:"id",value:v,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:A,withCredentials:C}=this.configuration;return this.httpClient.request("delete",`${A}${m}`,{responseType:c,...C?{withCredentials:C}:{},headers:h,observe:b})}deleteFxsTemplateQuery(p,b="body",v=!1,E){const h=p.id;if(null==h)throw new Error("Required parameter id was null or undefined when calling deleteFxsTemplate.");return`/FxsTemplates(${this.configuration.encodeParam({name:"id",value:h,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`}getFxsTemplate(p,b="body"){const v=p?.id;if(null==v)throw new Error("Required parameter id was null or undefined when calling getFxsTemplate.");const E=p?.$select,h=p?.$expand;let l=new a.rx(this.encoder);l=this.addToHttpParams(l,"$select",E,a.l2.Form,!1),l=this.addToHttpParams(l,"$expand",h,a.l2.Form,!1);let c=this.defaultHeaders;c=this.configuration.addCredentialToHeaders("Application","Authorization",c,"Bearer ");const m=this.configuration.selectHeaderAccept(["application/json"]);void 0!==m&&(c=c.set("Accept",m));let A="json";m&&(A=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let C=`/FxsTemplates(${this.configuration.encodeParam({name:"id",value:v,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:w,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${w}${C}`,{params:l.toHttpParams(),responseType:A,...s?{withCredentials:s}:{},headers:c,observe:b})}getFxsTemplateQuery(p,b="body",v=!1,E){const h=p.id;if(null==h)throw new Error("Required parameter id was null or undefined when calling getFxsTemplate.");const l=p.$select,c=p.$expand;let m=new a.rx(this.encoder);return m=this.addToHttpParams(m,"$select",l,a.l2.Form,!1),m=this.addToHttpParams(m,"$expand",c,a.l2.Form,!1),`/FxsTemplates(${this.configuration.encodeParam({name:"id",value:h,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})?`+m.toString()}listFxsTemplate(p,b="body"){const v=p?.$top,E=p?.$skip,h=p?.$search,l=p?.$filter,c=p?.$count,m=p?.$orderby,A=p?.$select,C=p?.$expand;let w=new a.rx(this.encoder);w=this.addToHttpParams(w,"$top",v,a.l2.Form,!1),w=this.addToHttpParams(w,"$skip",E,a.l2.Form,!1),w=this.addToHttpParams(w,"$search",h,a.l2.Form,!1),w=this.addToHttpParams(w,"$filter",l,a.l2.Form,!1),w=this.addToHttpParams(w,"$count",c,a.l2.Form,!1),w=this.addToHttpParams(w,"$orderby",m,a.l2.Form,!1),w=this.addToHttpParams(w,"$select",A,a.l2.Form,!1),w=this.addToHttpParams(w,"$expand",C,a.l2.Form,!1);let s=this.defaultHeaders;s=this.configuration.addCredentialToHeaders("Application","Authorization",s,"Bearer ");const g=this.configuration.selectHeaderAccept(["application/json"]);void 0!==g&&(s=s.set("Accept",g));let $="json";g&&($=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");const{basePath:L,withCredentials:y}=this.configuration;return this.httpClient.request("get",`${L}/FxsTemplates`,{params:w.toHttpParams(),responseType:$,...y?{withCredentials:y}:{},headers:s,observe:b})}listFxsTemplateQuery(p,b="body",v=!1,E){const h=p.$top,l=p.$skip,c=p.$search,m=p.$filter,A=p.$count,C=p.$orderby,w=p.$select,s=p.$expand;let g=new a.rx(this.encoder);
1return g=this.addToHttpParams(g,"$top",h,a.l2.Form,!1),g=this.addToHttpParams(g,"$skip",l,a.l2.Form,!1),g=this.addToHttpParams(g,"$search",c,a.l2.Form,!1),g=this.addToHttpParams(g,"$filter",m,a.l2.Form,!1),g=this.addToHttpParams(g,"$count",A,a.l2.Form,!1),g=this.addToHttpParams(g,"$orderby",C,a.l2.Form,!1),g=this.addToHttpParams(g,"$select",w,a.l2.Form,!1),g=this.addToHttpParams(g,"$expand",s,a.l2.Form,!1),"/FxsTemplates?"+g.toString()}updateFxsTemplate(p,b="body"){const v=p?.id;if(null==v)throw new Error("Required parameter id was null or undefined when calling updateFxsTemplate.");const E=p?.pbxFxsTemplate;if(null==E)throw new Error("Required parameter pbxFxsTemplate was null or undefined when calling updateFxsTemplate.");let h=this.defaultHeaders;h=this.configuration.addCredentialToHeaders("Application","Authorization",h,"Bearer ");const l=this.configuration.selectHeaderAccept(["application/json"]);void 0!==l&&(h=h.set("Accept",l));const m=this.configuration.selectHeaderContentType(["application/json"]);void 0!==m&&(h=h.set("Content-Type",m));let A="json";l&&(A=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let C=`/FxsTemplates(${this.configuration.encodeParam({name:"id",value:v,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:w,withCredentials:s}=this.configuration;return this.httpClient.request("patch",`${w}${C}`,{body:E,responseType:A,...s?{withCredentials:s}:{},headers:h,observe:b})}updateFxsTemplateQuery(p,b="body",v=!1,E){const h=p.id;if(null==h)throw new Error("Required parameter id was null or undefined when calling updateFxsTemplate.");if(null==p.pbxFxsTemplate)throw new Error("Required parameter pbxFxsTemplate was null or undefined when calling updateFxsTemplate.");return`/FxsTemplates(${this.configuration.encodeParam({name:"id",value:h,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`}static \u0275fac=(()=>{let p;return function(v){return(p||(p=I.xGo(f)))(v||f)}})();static \u0275prov=N.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},94943(x,V,i){"use strict";i.d(V,{L:()=>B});var a=i(97201),T=i(4499),I=i(35547),N=i(85802);let B=(()=>{class f extends T.d{createTrunkTemplate(p,b="body"){const v=p?.pbxTrunkTemplate;if(null==v)throw new Error("Required parameter pbxTrunkTemplate was null or undefined when calling createTrunkTemplate.");let E=this.defaultHeaders;E=this.configuration.addCredentialToHeaders("Application","Authorization",E,"Bearer ");const h=this.configuration.selectHeaderAccept(["application/json"]);void 0!==h&&(E=E.set("Accept",h));const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(E=E.set("Content-Type",c));let m="json";h&&(m=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob");const{basePath:C,withCredentials:w}=this.configuration;return this.httpClient.request("post",`${C}/TrunkTemplates`,{body:v,responseType:m,...w?{withCredentials:w}:{},headers:E,observe:b})}createTrunkTemplateQuery(p,b="body",v=!1,E){if(null==p.pbxTrunkTemplate)throw new Error("Required parameter pbxTrunkTemplate was null or undefined when calling createTrunkTemplate.");return"/TrunkTemplates"}deleteTrunkTemplate(p,b="body"){const v=p?.id;if(null==v)throw new Error("Required parameter id was null or undefined when calling deleteTrunkTemplate.");const E=p?.ifMatch;let h=this.defaultHeaders;null!=E&&(h=h.set("If-Match",String(E))),h=this.configuration.addCredentialToHeaders("Application","Authorization",h,"Bearer ");const l=this.configuration.selectHeaderAccept(["application/json"]);void 0!==l&&(h=h.set("Accept",l));let c="json";l&&(c=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let m=`/TrunkTemplates(${this.configuration.encodeParam({name:"id",value:v,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:A,withCredentials:C}=this.configuration;return this.httpClient.request("delete",`${A}${m}`,{responseType:c,...C?{withCredentials:C}:{},headers:h,observe:b})}deleteTrunkTemplateQuery(p,b="body",v=!1,E){const h=p.id;if(null==h)throw new Error("Required parameter id was null or undefined when calling deleteTrunkTemplate.");return`/TrunkTemplates(${this.configuration.encodeParam({name:"id",value:h,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`}getTrunkTemplate(p,b="body"){const v=p?.id;if(null==v)throw new Error("Required parameter id was null or undefined when calling getTrunkTemplate.");const E=p?.$select,h=p?.$expand;let l=new a.rx(this.encoder);l=this.addToHttpParams(l,"$select",E,a.l2.Form,!1),l=this.addToHttpParams(l,"$expand",h,a.l2.Form,!1);let c=this.defaultHeaders;c=this.configuration.addCredentialToHeaders("Application","Authorization",c,"Bearer ");const m=this.configuration.selectHeaderAccept(["application/json"]);void 0!==m&&(c=c.set("Accept",m));let A="json";m&&(A=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob");let C=`/TrunkTemplates(${this.configuration.encodeParam({name:"id",value:v,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:w,withCredentials:s}=this.configuration;return this.httpClient.request("get",`${w}${C}`,{params:l.toHttpParams(),responseType:A,...s?{withCredentials:s}:{},headers:c,observe:b})}getTrunkTemplateQuery(p,b="body",v=!1,E){const h=p.id;if(null==h)throw new Error("Required parameter id was null or undefined when calling getTrunkTemplate.");const l=p.$select,c=p.$expand;let m=new a.rx(this.encoder);return m=this.addToHttpParams(m,"$select",l,a.l2.Form,!1),m=this.addToHttpParams(m,"$expand",c,a.l2.Form,!1),`/TrunkTemplates(${this.configuration.encodeParam({name:"id",value:h,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})?`+m.toString()}listTrunkTemplate(p,b="body"){const v=p?.$top,E=p?.$skip,h=p?.$search,l=p?.$filter,c=p?.$count,m=p?.$orderby,A=p?.$select,C=p?.$expand;let w=new a.rx(this.encoder);w=this.addToHttpParams(w,"$top",v,a.l2.Form,!1),w=this.addToHttpParams(w,"$skip",E,a.l2.Form,!1),w=this.addToHttpParams(w,"$search",h,a.l2.Form,!1),w=this.addToHttpParams(w,"$filter",l,a.l2.Form,!1),w=this.addToHttpParams(w,"$count",c,a.l2.Form,!1),w=this.addToHttpParams(w,"$orderby",m,a.l2.Form,!1),w=this.addToHttpParams(w,"$select",A,a.l2.Form,!1),w=this.addToHttpParams(w,"$expand",C,a.l2.Form,!1);let s=this.defaultHeaders;s=this.configuration.addCredentialToHeaders("Application","Authorization",s,"Bearer ");const g=this.configuration.selectHeaderAccept(["application/json"]);void 0!==g&&(s=s.set("Accept",g));let $="json";g&&($=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob");const{basePath:L,withCredentials:y}=this.configuration;return this.httpClient.request("get",`${L}/TrunkTemplates`,{params:w.toHttpParams(),responseType:$,...y?{withCredentials:y}:{},headers:s,observe:b})}listTrunkTemplateQuery(p,b="body",v=!1,E){const h=p.$top,l=p.$skip,c=p.$search,m=p.$filter,A=p.$count,C=p.$orderby,w=p.$select,s=p.$expand;let g=new a.rx(this.encoder);
1return g=this.addToHttpParams(g,"$top",h,a.l2.Form,!1),g=this.addToHttpParams(g,"$skip",l,a.l2.Form,!1),g=this.addToHttpParams(g,"$search",c,a.l2.Form,!1),g=this.addToHttpParams(g,"$filter",m,a.l2.Form,!1),g=this.addToHttpParams(g,"$count",A,a.l2.Form,!1),g=this.addToHttpParams(g,"$orderby",C,a.l2.Form,!1),g=this.addToHttpParams(g,"$select",w,a.l2.Form,!1),g=this.addToHttpParams(g,"$expand",s,a.l2.Form,!1),"/TrunkTemplates?"+g.toString()}updateTrunkTemplate(p,b="body"){const v=p?.id;if(null==v)throw new Error("Required parameter id was null or undefined when calling updateTrunkTemplate.");const E=p?.pbxTrunkTemplate;if(null==E)throw new Error("Required parameter pbxTrunkTemplate was null or undefined when calling updateTrunkTemplate.");let h=this.defaultHeaders;h=this.configuration.addCredentialToHeaders("Application","Authorization",h,"Bearer ");const l=this.configuration.selectHeaderAccept(["application/json"]);void 0!==l&&(h=h.set("Accept",l));const m=this.configuration.selectHeaderContentType(["application/json"]);void 0!==m&&(h=h.set("Content-Type",m));let A="json";l&&(A=l.startsWith("text")?"text":this.configuration.isJsonMime(l)?"json":"blob");let C=`/TrunkTemplates(${this.configuration.encodeParam({name:"id",value:v,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`;const{basePath:w,withCredentials:s}=this.configuration;return this.httpClient.request("patch",`${w}${C}`,{body:E,responseType:A,...s?{withCredentials:s}:{},headers:h,observe:b})}updateTrunkTemplateQuery(p,b="body",v=!1,E){const h=p.id;if(null==h)throw new Error("Required parameter id was null or undefined when calling updateTrunkTemplate.");if(null==p.pbxTrunkTemplate)throw new Error("Required parameter pbxTrunkTemplate was null or undefined when calling updateTrunkTemplate.");return`/TrunkTemplates(${this.configuration.encodeParam({name:"id",value:h,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})})`}static \u0275fac=(()=>{let p;return function(v){return(p||(p=I.xGo(f)))(v||f)}})();static \u0275prov=N.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},99558(x,V,i){"use strict";i.d(V,{e:()=>a});const a={External:"External",Internal:"Internal",Both:"Both",Specified:"Specified"}},87840(x,V,i){"use strict";i.d(V,{m:()=>a});const a={Nothing:"Nothing",IncomingCalls:"IncomingCalls",OutgoingCalls:"OutgoingCalls",InOutCalls:"InOutCalls"}},59549(x,V,i){"use strict";i.d(V,{V:()=>a});const a={Preferred:"Preferred",Supported:"Supported",Dedicated:"Dedicated",ThirdParty:"ThirdParty",Deleted:"Deleted",Unknown:"Unknown"}},97525(x,V,i){"use strict";i.d(V,{$:()=>a});const a={Any:"Any",Ipv4:"IPV4",Ipv6:"IPV6"}},31321(x,V,i){"use strict";i.d(V,{j:()=>a});const a={Any:"Any",Udp:"UDP",Tcp:"TCP",Tls:"TLS"}},95731(x,V,i){"use strict";var a=i(65992),T=i(79477),I=i(59705),N=i(52910);x.exports=N||a.call(I,T)},98910(x,V,i){"use strict";var a=i(65992),T=i(79477),I=i(95731);x.exports=function(){return I(a,T,arguments)}},79477(x){"use strict";x.exports=Function.prototype.apply},59705(x){"use strict";x.exports=Function.prototype.call},61885(x,V,i){"use strict";var a=i(65992),T=i(46758),I=i(59705),N=i(95731);x.exports=function(f){if(f.length<1||"function"!=typeof f[0])throw new T("a function is required");return N(a,I,f)}},52910(x){"use strict";x.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},48128(x,V,i){"use strict";var a=i(31358),T=i(4570),I=i(61885),N=i(98910);x.exports=function(f){var S=I(arguments),p=f.length-(arguments.length-1);return a(S,1+(p>0?p:0),!0)},T?T(x.exports,"apply",{value:N}):x.exports.apply=N},12773(x,V,i){"use strict";var a=i(90258),T=i(61885),I=T([a("%String.prototype.indexOf%")]);x.exports=function(B,f){var S=a(B,!!f);return"function"==typeof S&&I(B,".prototype.")>-1?T([S]):S}},92736(x,V,i){"use strict";var a=i(4570),T=i(58413),I=i(46758),N=i(83798);x.exports=function(f,S,p){if(!f||"object"!=typeof f&&"function"!=typeof f)throw new I("`obj` must be an object or a function`");if("string"!=typeof S&&"symbol"!=typeof S)throw new I("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new I("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new I("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new I("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new I("`loose`, if provided, must be a boolean");var b=arguments.length>3?arguments[3]:null,v=arguments.length>4?arguments[4]:null,E=arguments.length>5?arguments[5]:null,h=arguments.length>6&&arguments[6],l=!!N&&N(f,S);if(a)a(f,S,{configurable:null===E&&l?l.configurable:!E,enumerable:null===b&&l?l.enumerable:!b,value:p,writable:null===v&&l?l.writable:!v});else{if(!h&&(b||v||E))throw new T("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");f[S]=p}}},63361(x,V,i){"use strict";var I,a=i(61885),T=i(83798);try{I=[].__proto__===Array.prototype}catch(S){if(!S||"object"!=typeof S||!("code"in S)||"ERR_PROTO_ACCESS"!==S.code)throw S}var N=!!I&&T&&T(Object.prototype,"__proto__"),B=Object,f=B.getPrototypeOf;x.exports=N&&"function"==typeof N.get?a([N.get]):"function"==typeof f&&function(p){return f(null==p?p:B(p))}},4570(x){"use strict";var V=Object.defineProperty||!1;if(V)try{V({},"a",{value:1})}catch{V=!1}x.exports=V},1756(x){"use strict";x.exports=EvalError},37640(x){"use strict";x.exports=Error},77933(x){"use strict";x.exports=RangeError},6613(x){"use strict";x.exports=ReferenceError},58413(x){"use strict";x.exports=SyntaxError},46758(x){"use strict";x.exports=TypeError},5286(x){"use strict";x.exports=URIError},65891(x){"use strict";x.exports=Object},49132(x){"use strict";var i=Object.prototype.toString,a=Math.max,I=function(S,p){for(var b=[],v=0;v<S.length;v+=1)b[v]=S[v];for(var E=0;E<p.length;E+=1)b[E+S.length]=p[E];return b};x.exports=function(S){var p=this;if("function"!=typeof p||"[object Function]"!==i.apply(p))throw new TypeError("Function.prototype.bind called on incompatible "+p);for(var v,b=function(S){for(var b=[],v=1,E=0;v<S.length;v+=1,E+=1)b[E]=S[v];return b}(arguments),h=a(0,p.length-b.length),l=[],c=0;c<h;c++)l[c]="$"+c;if(v=Function("binder","return function ("+function(f){for(var p="",b=0;b<f.length;b+=1)p+=f[b],b+1<f.length&&(p+=",");return p}(l)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof v){var A=p.apply(this,I(b,arguments));return Object(A)===A?A:this}return p.apply(S,I(b,arguments))}),p.prototype){var m=function(){};m.prototype=p.prototype,v.prototype=new m,m.prototype=null}return v}},65992(x,V,i){"use strict";var a=i(49132);x.exports=Function.prototype.bind||a},90258(x,V,i){"use strict";
1var a,T=i(65891),I=i(37640),N=i(1756),B=i(77933),f=i(6613),S=i(58413),p=i(46758),b=i(5286),v=i(70837),E=i(3383),h=i(79039),l=i(14981),c=i(80975),m=i(5337),A=i(4912),C=Function,w=function(ne){try{return C('"use strict"; return ('+ne+").constructor;")()}catch{}},s=i(83798),g=i(4570),$=function(){throw new p},j=s?function(){try{return $}catch{try{return s(arguments,"callee").get}catch{return $}}}():$,L=i(19900)(),y=i(91627),F=i(27203),W=i(97669),R=i(79477),k=i(59705),K={},J=typeof Uint8Array>"u"||!y?a:y(Uint8Array),ee={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?a:ArrayBuffer,"%ArrayIteratorPrototype%":L&&y?y([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":typeof Atomics>"u"?a:Atomics,"%BigInt%":typeof BigInt>"u"?a:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?a:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":I,"%eval%":eval,"%EvalError%":N,"%Float16Array%":typeof Float16Array>"u"?a:Float16Array,"%Float32Array%":typeof Float32Array>"u"?a:Float32Array,"%Float64Array%":typeof Float64Array>"u"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?a:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":K,"%Int8Array%":typeof Int8Array>"u"?a:Int8Array,"%Int16Array%":typeof Int16Array>"u"?a:Int16Array,"%Int32Array%":typeof Int32Array>
1"u"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&y?y(y([][Symbol.iterator]())):a,"%JSON%":"object"==typeof JSON?JSON:a,"%Map%":typeof Map>"u"?a:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L||!y?a:y((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":T,"%Object.getOwnPropertyDescriptor%":s,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?a:Promise,"%Proxy%":typeof Proxy>"u"?a:Proxy,"%RangeError%":B,"%ReferenceError%":f,"%Reflect%":typeof Reflect>"u"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?a:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L||!y?a:y((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&y?y(""[Symbol.iterator]()):a,"%Symbol%":L?Symbol:a,"%SyntaxError%":S,"%ThrowTypeError%":j,"%TypedArray%":J,"%TypeError%":p,"%Uint8Array%":typeof Uint8Array>"u"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?a:Uint32Array,"%URIError%":b,"%WeakMap%":typeof WeakMap>"u"?a:WeakMap,"%WeakRef%":typeof WeakRef>"u"?a:WeakRef,"%WeakSet%":typeof WeakSet>"u"?a:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":R,"%Object.defineProperty%":g,"%Object.getPrototypeOf%":F,"%Math.abs%":v,"%Math.floor%":E,"%Math.max%":h,"%Math.min%":l,"%Math.pow%":c,"%Math.round%":m,"%Math.sign%":A,"%Reflect.getPrototypeOf%":W};if(y)try{null.error}catch(ne){var Ee=y(y(ne));ee["%Error.prototype%"]=Ee}var fe=function ne(Q){var ie;if("%AsyncFunction%"===Q)ie=w("async function () {}");else if("%GeneratorFunction%"===Q)ie=w("function* () {}");else if("%AsyncGeneratorFunction%"===Q)ie=w("async function* () {}");else if("%AsyncGenerator%"===Q){var D=ne("%AsyncGeneratorFunction%");D&&(ie=D.prototype)}else if("%AsyncIteratorPrototype%"===Q){var z=ne("%AsyncGenerator%");z&&y&&(ie=y(z.prototype))}return ee[Q]=ie,ie},me={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=i(65992),pe=i(78368),ye=de.call(k,Array.prototype.concat),re=de.call(
1R,Array.prototype.splice),Pe=de.call(k,String.prototype.replace),ae=de.call(k,String.prototype.slice),we=de.call(k,RegExp.prototype.exec),Ce=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ne=/\\(\\)?/g,xe=function(Q,ie){var z,D=Q;if(pe(me,D)&&(D="%"+(z=me[D])[0]+"%"),pe(ee,D)){var X=ee[D];if(X===K&&(X=fe(D)),typeof X>"u"&&!ie)throw new p("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:z,name:D,value:X}}throw new S("intrinsic "+Q+" does not exist!")};x.exports=function(Q,ie){if("string"!=typeof Q||0===Q.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof ie)throw new p('"allowMissing" argument must be a boolean');if(null===we(/^%?[^%]*%?$/,Q))throw new S("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var D=function(Q){var ie=ae(Q,0,1),D=ae(Q,-1);if("%"===ie&&"%"!==D)throw new S("invalid intrinsic syntax, expected closing `%`");if("%"===D&&"%"!==ie)throw new S("invalid intrinsic syntax, expected opening `%`");var z=[];return Pe(Q,Ce,function(X,le,te,be){z[z.length]=te?Pe(be,Ne,"$1"):le||X}),z}(Q),z=D.length>0?D[0]:"",X=xe("%"+z+"%",ie),le=X.name,te=X.value,be=!1,Ae=X.alias;Ae&&(z=Ae[0],re(D,ye([0,1],Ae)));for(var Te=1,he=!0;Te<D.length;Te+=1){var oe=D[Te],ve=ae(oe,0,1),Ie=ae(oe,-1);if(('"'===ve||"'"===ve||"`"===ve||'"'===Ie||"'"===Ie||"`"===Ie)&&ve!==Ie)throw new S("property names with quotes must have matching quotes");if(("constructor"===oe||!he)&&(be=!0),pe(ee,le="%"+(z+="."+oe)+"%"))te=ee[le];else if(null!=te){if(!(oe in te)){if(!ie)throw new p("base intrinsic for "+Q+" exists, but the property is not available.");return}if(s&&Te+1>=D.length){var Se=s(te,oe);te=(he=!!Se)&&"get"in Se&&!("originalValue"in Se.get)?Se.get:te[oe]}else he=pe(te,oe),te=te[oe];he&&!be&&(ee[le]=te)}}return te}},27203(x,V,i){"use strict";var a=i(65891);x.exports=a.getPrototypeOf||null},97669(x){"use strict";x.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},91627(x,V,i){"use strict";var a=i(97669),T=i(27203),I=i(63361);x.exports=a?function(B){return a(B)}:T?function(B){if(!B||"object"!=typeof B&&"function"!=typeof B)throw new TypeError("getProto: not an object");return T(B)}:I?function(B){return I(B)}:null},52786(x){"use strict";x.exports=Object.getOwnPropertyDescriptor},83798(x,V,i){"use strict";var a=i(52786);if(a)try{a([],"length")}catch{a=null}x.exports=a},35861(x,V,i){"use strict";var a=i(4570),T=function(){return!!a};T.hasArrayLengthDefineBug=function(){if(!a)return null;try{return 1!==a([],"length",{value:1}).length}catch{return!0}},x.exports=T},19900(x,V,i){"use strict";var a=typeof Symbol<"u"&&Symbol,T=i(45310);x.exports=function(){return"function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&T()}},45310(x){"use strict";x.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var i={},a=Symbol("test"),T=Object(a);if("string"==typeof a||"[object Symbol]"!==Object.prototype.toString.call(a)||"[object Symbol]"!==Object.prototype.toString.call(T))return!1;for(var N in i[a]=42,i)return!1;if("function"==typeof Object.keys&&0!==Object.keys(i).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(i).length)return!1;var B=Object.getOwnPropertySymbols(i);if(1!==B.length||B[0]!==a||!Object.prototype.propertyIsEnumerable.call(i,a))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var f=Object.getOwnPropertyDescriptor(i,a);if(42!==f.value||!0!==f.enumerable)return!1}return!0}},78368(x,V,i){"use strict";var a=Function.prototype.call,T=Object.prototype.hasOwnProperty,I=i(65992);x.exports=I.call(a,T)},20053(x){var V={}.toString;x.exports=Array.isArray||function(i){return"[object Array]"==V.call(i)}},64858(x,V,i){"use strict";var a=(typeof JSON<"u"?JSON:i(1468)).stringify,T=i(20053),I=i(44934),N=i(48128),B=i(12773),f=B("Array.prototype.join"),S=B("Array.prototype.indexOf"),p=B("Array.prototype.splice"),b=B("Array.prototype.sort"),v=function(l,c){for(var m="",A=0;A<l;A+=1)m+=c;return m},E=function(h,l,c){return c};x.exports=function(l){var c=arguments.length>1?arguments[1]:void 0,m=c&&c.space||"";"number"==typeof m&&(m=v(m," "));var A=!!c&&"boolean"==typeof c.cycles&&c.cycles,C=c&&c.replacer?N(c.replacer):E;if(c&&typeof c.collapseEmpty<"u"&&"boolean"!=typeof c.collapseEmpty)throw new TypeError("`collapseEmpty` must be a boolean, if provided");var w=!!c&&c.collapseEmpty,s="function"==typeof c?c:c&&c.cmp,g=s&&function(j){var L=s.length>2&&function(F){return j[F]};return function(y,F){return s({key:y,value:j[y]},{key:F,value:j[F]},L?{__proto__:null,get:L}:void 0)}},$=[];return function j(L,y,F,W){var R=m?"\n"+v(W,m):"",k=m?": ":":";if(F&&F.toJSON&&"function"==typeof F.toJSON&&(F=F.toJSON()),void 0!==(F=C(L,y,F))
1){if("object"!=typeof F||null===F)return a(F);var K=function(pe,ye){return w&&0===pe.length?ye:("[]"===ye?"[":"{")+f(pe,",")+R+("[]"===ye?"]":"}")};if(T(F)){for(var fe=[],J=0;J<F.length;J++){var ee=j(F,J,F[J],W+1)||a(null);fe[fe.length]=R+m+ee}return K(fe,"[]")}if(-1!==S($,F)){if(A)return a("__cycle__");throw new TypeError("Converting circular structure to JSON")}$[$.length]=F;var Ee=b(I(F),g&&g(F));for(fe=[],J=0;J<Ee.length;J++){var me=j(F,y=Ee[J],F[y],W+1);if(me){var de=a(y)+k+me;fe[fe.length]=R+m+de}}return p($,S($,F),1),K(fe,"{}")}}({"":l},"",l,0)}},1468(x,V,i){"use strict";V.parse=i(10267),V.stringify=i(23141)},10267(x){"use strict";var V,i,T,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function I(h){throw{name:"SyntaxError",message:h,at:V,text:T}}function N(h){return h&&h!==i&&I("Expected '"+h+"' instead of '"+i+"'"),i=T.charAt(V),V+=1,i}function B(){var h,l="";for("-"===i&&(l="-",N("-"));i>="0"&&i<="9";)l+=i,N();if("."===i)for(l+=".";N()&&i>="0"&&i<="9";)l+=i;if("e"===i||"E"===i)for(l+=i,N(),("-"===i||"+"===i)&&(l+=i,N());i>="0"&&i<="9";)l+=i,N();return h=Number(l),isFinite(h)||I("Bad number"),h}function f(){var h,l,m,c="";if('"'===i)for(;N();){if('"'===i)return N(),c;if("\\"===i)if(N(),"u"===i){for(m=0,l=0;l<4&&(h=parseInt(N(),16),isFinite(h));l+=1)m=16*m+h;c+=String.fromCharCode(m)}else{if("string"!=typeof a[i])break;c+=a[i]}else c+=i}I("Bad string")}function S(){for(;i&&i<=" ";)N()}function E(){switch(S(),i){case"{":return function v(){var h,l={};if("{"===i){if(N("{"),S(),"}"===i)return N("}"),l;for(;i;){if(h=f(),S(),N(":"),Object.prototype.hasOwnProperty.call(l,h)&&I('Duplicate key "'+h+'"'),l[h]=E(),S(),"}"===i)return N("}"),l;N(","),S()}}I("Bad object")}();case"[":return function b(){var h=[];if("["===i){if(N("["),S(),"]"===i)return N("]"),h;for(;i;){if(h.push(E()),S(),"]"===i)return N("]"),h;N(","),S()}}I("Bad array")}();case'"':return f();case"-":return B();default:return i>="0"&&i<="9"?B():function p(){switch(i){case"t":return N("t"),N("r"),N("u"),N("e"),!0;case"f":return N("f"),N("a"),N("l"),N("s"),N("e"),!1;case"n":return N("n"),N("u"),N("l"),N("l"),null;default:I("Unexpected '"+i+"'")}}()}}x.exports=function(h,l){var c;return T=h,V=0,i=" ",c=E(),S(),i&&I("Syntax error"),"function"==typeof l?function m(A,C){var w,s,g=A[C];if(g&&"object"==typeof g)for(w in E)Object.prototype.hasOwnProperty.call(g,w)&&
1(typeof(s=m(g,w))>"u"?delete g[w]:g[w]=s);return l.call(A,C,g)}({"":c},""):c}},23141(x){"use strict";var i,a,I,V=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,T={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function N(f){return V.lastIndex=0,V.test(f)?'"'+f.replace(V,function(S){var p=T[S];return"string"==typeof p?p:"\\u"+("0000"+S.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+f+'"'}function B(f,S){var p,b,v,E,l,h=i,c=S[f];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(f)),"function"==typeof I&&(c=I.call(S,f,c)),typeof c){case"string":return N(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(i+=a,l=[],"[object Array]"===Object.prototype.toString.apply(c)){for(E=c.length,p=0;p<E;p+=1)l[p]=B(p,c)||"null";return v=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+h+"]":"["+l.join(",")+"]",i=h,v}if(I&&"object"==typeof I)for(E=I.length,p=0;p<E;p+=1)"string"==typeof(b=I[p])&&(v=B(b,c))&&l.push(N(b)+(i?": ":":")+v);else for(b in c)Object.prototype.hasOwnProperty.call(c,b)&&(v=B(b,c))&&l.push(N(b)+(i?": ":":")+v);return v=0===l.length?"{}":i?"{\n"+i+l.join(",\n"+i)+"\n"+h+"}":"{"+l.join(",")+"}",i=h,v}}x.exports=function(f,S,p){var b;if(i="",a="","number"==typeof p)for(b=0;b<p;b+=1)a+=" ";else"string"==typeof p&&(a=p);if(I=S,S&&"function"!=typeof S&&("object"!=typeof S||"number"!=typeof S.length))throw new Error("JSON.stringify");return B("",{"":f})}},70837(x){"use strict";x.exports=Math.abs},3383(x){"use strict";x.exports=Math.floor},85488(x){"use strict";x.exports=Number.isNaN||function(i){return i!=i}},79039(x){"use strict";x.exports=Math.max},14981(x){"use strict";x.exports=Math.min},80975(x){"use strict";x.exports=Math.pow},5337(x){"use strict";x.exports=Math.round},4912(x,V,i){"use strict";var a=i(85488);x.exports=function(I){return a(I)||0===I?I:I<0?-1:1}},50366(x,V,i){"use strict";var a;if(!Object.keys){var T=Object.prototype.hasOwnProperty,I=Object.prototype.toString,N=i(21050),B=Object.prototype.propertyIsEnumerable,f=!B.call({toString:null},"toString"),S=B.call(function(){},"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],b=function(l){var c=l.constructor;return c&&c.prototype===l},v={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},E=function(){if(typeof window>"u")return!1;for(var l in window)try{if(!v["$"+l]&&T.call(window,l)&&null!==window[l]&&"object"==typeof window[l])try{b(window[l])}catch{return!0}}catch{return!0}return!1}();a=function(c){var m=null!==c&&"object"==typeof c,A="[object Function]"===I.call(c),C=N(c),w=m&&"[object String]"===I.call(c),s=[];if(!m&&!A&&!C)throw new TypeError("Object.keys called on a non-object");var g=S&&A;if(w&&c.length>0&&!T.call(c,0))for(var $=0;$<c.length;++$)s.push(String($));if(C&&c.length>0)for(var j=0;j<c.length;++j)s.push(String(j));else for(var L in c)(!g||"prototype"!==L)&&T.call(c,L)&&s.push(String(L));if(f)for(var y=function(l){if(typeof window>"u"||!E)return b(l);try{return b(l)}catch{return!1}}(c),F=0;F<p.length;++F)(!y||"constructor"!==p[F])&&T.call(c,p[F])&&s.push(p[F]);return s}}x.exports=a},44934(x,V,i){"use strict";var a=Array.prototype.slice,T=i(21050),I=Object.keys,N=I?function(S){return I(S)}:i(50366),B=Object.keys;N.shim=function(){if(Object.keys){var S=function(){var p=Object.keys(arguments);return p&&p.length===arguments.length}(1,2);S||(Object.keys=function(b){return T(b)?B(a.call(b)):B(b)})}else Object.keys=N;return Object.keys||N},x.exports=N},21050(x){"use strict";var V=Object.prototype.toString;x.exports=function(a){var T=V.call(a),I="[object Arguments]"===T;return I||(I="[object Array]"!==T&&null!==a&&"object"==typeof a&&"number"==typeof a.length&&a.length>=0&&"[object Function]"===V.call(a.callee)),I}},31358(x,V,i){"use strict";var a=i(90258),T=i(92736),I=i(35861)(),N=i(83798),B=i(46758),f=a("%Math.floor%");x.exports=function(p,b){if("function"!=typeof p)throw new B("`fn` is not a function");if("number"!=typeof b||b<0||b>4294967295||f(b)!==b)throw new B("`length` must be a positive 32-bit integer");var v=arguments.length>2&&!!arguments[2],E=!0,h=!0;if("length"in p&&N){var l=N(p,"length");l&&!l.configurable&&(E=!1),l&&!l.writable&&(h=!1)}return(E||h||!v)&&(I?T(p,"length",b,!0,!0):T(p,"length",b)),p}},10080(x,V,i){"use strict";i.d(V,{Eo:()=>f,Xe:()=>B,q9:()=>v,vl:()=>E,yQ:()=>S});const a=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
1037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",N=new RegExp("^["+a+"]["+a+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function B(h,l){const c=[];let m=l.exec(h);for(;m;){const A=[];A.startIndex=l.lastIndex-m[0].length;const C=m.length;for(let w=0;w<C;w++)A.push(m[w]);c.push(A),m=l.exec(h)}return c}const f=function(h){const l=N.exec(h);return!(null===l||typeof l>"u")};function S(h){return typeof h<"u"}const v=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],E=["__proto__","constructor","prototype"]},76592(x,V,i){"use strict";i.d(V,{t:()=>I});var a=i(10080);const T={allowBooleanAttributes:!1,unpairedTags:[]};function I(s,g){g=Object.assign({},T,g);const $=[];let j=!1,L=!1;"\ufeff"===s[0]&&(s=s.substr(1));for(let y=0;y<s.length;y++)if("<"===s[y]&&"?"===s[y+1]){if(y+=2,y=B(s,y),y.err)return y}else{if("<"!==s[y]){if(N(s[y]))continue;return c("InvalidChar","char '"+s[y]+"' is not expected.",C(s,y))}{let F=y;if(y++,"!"===s[y]){y=f(s,y);continue}{let W=!1;"/"===s[y]&&(W=!0,y++);let R="";for(;y<s.length&&">"!==s[y]&&" "!==s[y]&&"\t"!==s[y]&&"\n"!==s[y]&&"\r"!==s[y];y++)R+=s[y];if(R=R.trim(),"/"===R[R.length-1]&&(R=R.substring(0,R.length-1),y--),!A(R)){let J;return J=0===R.trim().length?"Invalid space after '<'.":"Tag '"+R+"' is an invalid name.",c("InvalidTag",J,C(s,y))}const k=b(s,y);if(!1===k)return c("InvalidAttr","Attributes for '"+R+"' have open quote.",C(s,y));let K=k.value;if(y=k.index,"/"===K[K.length-1]){const J=y-K.length;K=K.substring(0,K.length-1);const ee=E(K,g);if(!0!==ee)return c(ee.err.code,ee.err.msg,C(s,J+ee.err.line));j=!0}else if(W){if(!k.tagClosed)return c("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",C(s,y));if(K.trim().length>0)return c("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",C(s,F));if(0===$.length)return c("InvalidTag","Closing tag '"+R+"' has not been opened.",C(s,F));{const J=$.pop();if(R!==J.tagName){let ee=C(s,J.tagStartPos);return c("InvalidTag","Expected closing tag '"+J.tagName+"' (opened in line "+ee.line+", col "+ee.col+") instead of closing tag '"+R+"'.",C(s,F))}0==$.length&&(L=!0)}}else{const J=E(K,g);if(!0!==J)return c(J.err.code,J.err.msg,C(s,y-K.length+J.err.line));if(!0===L)return c("InvalidXml","Multiple possible root nodes found.",C(s,y));-1!==g.unpairedTags.indexOf(R)||$.push({tagName:R,tagStartPos:F}),j=!0}for(y++;y<s.length;y++)if("<"===s[y]){if("!"===s[y+1]){y++,y=f(s,y);continue}if("?"!==s[y+1])break;if(y=B(s,++y),y.err)return y}else if("&"===s[y]){const J=l(s,y);if(-1==J)return c("InvalidChar","char '&' is not expected.",C(s,y));y=J}else if(!0===L&&!N(s[y]))return c("InvalidXml","Extra text at the end",C(s,y));"<"===s[y]&&y--}}}return j?1==$.length?c("InvalidTag","Unclosed tag '"+$[0].tagName+"'.",C(s,$[0].tagStartPos)):!($.length>0)||c("InvalidXml","Invalid '"+JSON.stringify($.map(y=>y.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):c("InvalidXml","Start tag expected.",1)}function N(s){return" "===s||"\t"===s||"\n"===s||"\r"===s}function B(s,g){const $=g;for(;g<s.length;g++)if("?"==s[g]||" "==s[g]){const j=s.substr($,g-$);if(g>5&&"xml"===j)return c("InvalidXml","XML declaration allowed only at the start of the document.",C(s,g));if("?"==s[g]&&">"==s[g+1]){g++;break}continue}return g}function f(s,g){if(s.length>g+5&&"-"===s[g+1]&&"-"===s[g+2]){for(g+=3;g<s.length;g++)if("-"===s[g]&&"-"===s[g+1]&&">"===s[g+2]){g+=2;break}}else if(s.length>g+8&&"D"===s[g+1]&&"O"===s[g+2]&&"C"===s[g+3]&&"T"===s[g+4]&&"Y"===s[g+5]&&"P"===s[g+6]&&"E"===s[g+7]){let $=1;for(g+=8;g<s.length;g++)if("<"===s[g])$++;else if(">"===s[g]&&($--,0===$))break}else if(s.length>g+9&&"["===s[g+1]&&"C"===s[g+2]&&"D"===s[g+3]&&"A"===s[g+4]&&"T"===s[g+5]&&"A"===s[g+6]&&"["===s[g+7])for(g+=8;g<s.length;g++)if("]"===s[g]&&"]"===s[g+1]&&">"===s[g+2]){g+=2;break}return g}function b(s,g){let $="",j="",L=!1;for(;g<s.length;g++){if('"'===s[g]||"'"===s[g])""===j?j=s[g]:j!==s[g]||(j="");else if(">"===s[g]&&""===j){L=!0;break}$+=s[g]}return""===j&&{value:$,index:g,tagClosed:L}}const v=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function E(s,g){const $=(0,a.Xe)(s,v),j={};for(let L=0;L<$.length;L++){if(0===$[L][1].length)return c("InvalidAttr","Attribute '"+$[L][2]+"' has no space in starting.",w($[L]));if(void 0!==$[L][3]&&void 0===$[L][4])return c("InvalidAttr","Attribute '"+$[L][2]+"' is without value.",w($[L]));if(void 0===$[L][3]&&!g.allowBooleanAttributes)return c("InvalidAttr","boolean attribute '"+$[L][2]+"' is not allowed.",w($[L]));const y=$[L][2];
1if(!m(y))return c("InvalidAttr","Attribute '"+y+"' is an invalid name.",w($[L]));if(Object.prototype.hasOwnProperty.call(j,y))return c("InvalidAttr","Attribute '"+y+"' is repeated.",w($[L]));j[y]=1}return!0}function l(s,g){if(";"===s[++g])return-1;if("#"===s[g])return function h(s,g){let $=/\d/;for("x"===s[g]&&(g++,$=/[\da-fA-F]/);g<s.length;g++){if(";"===s[g])return g;if(!s[g].match($))break}return-1}(s,++g);let $=0;for(;g<s.length;g++,$++)if(!(s[g].match(/\w/)&&$<20)){if(";"===s[g])break;return-1}return g}function c(s,g,$){return{err:{code:s,msg:g,line:$.line||$,col:$.col}}}function m(s){return(0,a.Eo)(s)}function A(s){return(0,a.Eo)(s)}function C(s,g){const $=s.substring(0,g).split(/\r?\n/);return{line:$.length,col:$[$.length-1].length+1}}function w(s){return s.startIndex+s[1].length}}}]);

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