PageSourceSearch

https://dolly.no/1878.ccfadb1e0c98c12d.js

js dolly.no collected 2026-10-02 20:15:36 UTC 23,290 bytes, 1 lines download raw bytes

1(self.webpackChunkeSusoft=self.webpackChunkeSusoft||[]).push([[1878],{83990:(V,C,N)=>{"use strict";N.d(C,{L:()=>E});var d=N(17705),p=N(89310);let E=(()=>{var T;class g{constructor(l){this.logistraService=l}execute(){return this.logistraService.getLogistraSettings()}}return(T=g).\u0275fac=function(l){return new(l||T)(d.KVO(p.h))},T.\u0275prov=d.jDH({token:T,factory:T.\u0275fac}),g})()},89310:(V,C,N)=>{"use strict";N.d(C,{h:()=>A});var d=N(21626),p=N(18370),E=N(92771),T=N(58523),g=N(96354),h=N(23294),l=N(99437),i=N(18810),c=N(40024),y=N(57504),b=N(50297),f=N(17705);let A=(()=>{var m;class o extends p.Y{constructor(r,e){super(r),this.userStorage=r,this.http=e,this.xmlParseOptions={attributeNamePrefix:"_",textNodeName:"text",ignoreAttributes:!1,arrayMode:!1,numParseOptions:{leadingZeros:!1,hex:!1}},this.$settings=this.call(this.http.get("admin/logistra/settings")),this.logistraSetting=new E.m(1),this.notifyChanges()}static getFirstValue(r){return r[Object.keys(r)[0]]}getTransportAgreements(){return this.$settings.pipe((0,T.q)(r=>this.http.get("./api/logistra/transport_agreements.xml",{headers:(new d.Lr).set("X-Cargonizer-Key",r.apiKey).set("X-Cargonizer-Sender",r.senderId).set("use-sandbox",r.useSandbox.toString()),responseType:"text"}))).pipe(this.responseConverter())}getpickupPointsArea(r,e,t){return this.$settings.pipe((0,T.q)(n=>this.http.get("./api/logistra/service_partners.xml",{headers:(new d.Lr).set("X-Cargonizer-Key",n.apiKey).set("use-sandbox",n.useSandbox.toString()),params:(new d.Nl).set("country",r).set("postcode",e).set("carrier",t),responseType:"text"}))).pipe(this.responseConverter())}saveLogistraSettings(r){return this.call(this.http.post("admin/logistra/settings",r)).pipe((0,g.T)(e=>(this.notifyChanges(),e)))}getLogistraSettings(){return this.logistraSetting.pipe((0,h.F)())}notifyChanges(){this.$settings.subscribe(r=>{this.logistraSetting.next(r)},()=>this.logistraSetting.next(null))}createConsignment(r){return this.$settings.pipe((0,T.q)(e=>this.http.post("./api/logistra/consignments.xml",this.requestBodyParser(r),{headers:(new d.Lr).set("X-Cargonizer-Key",e.apiKey).set("X-Cargonizer-Sender",e.senderId).set("Content-Type","application/xml").set("use-sandbox",e.useSandbox.toString()),responseType:"text"}))).pipe(this.responseConverter()).pipe(this.logistraErrorCatcher())}getCostEstimate(r){return this.$settings.pipe((0,T.q)(e=>this.http.post("./api/logistra/consignment_costs.xml",this.requestBodyParser(r),{headers:(new d.Lr).set("X-Cargonizer-Key",e.apiKey).set("X-Cargonizer-Sender",e.senderId).set("Content-Type","application/xml").set("use-sandbox",e.useSandbox.toString()),responseType:"text"}))).pipe(this.responseConverter()).pipe(this.logistraErrorCatcher())}logistraErrorCatcher(){return(0,l.W)(r=>{const e=this.parseResponse(r.error);return(0,i.$)(y.B.valuesOf(o.getFirstValue(o.getFirstValue(e))).join("\n"))})}responseConverter(){return(0,g.T)(r=>this.parseResponse(r))}parseResponse(r){let e=c.parse(r,this.xmlParseOptions);return this.convertArrays(e),e=o.getFirstValue(e),e}convertArrays(r){Object.keys(r).forEach(e=>{const t=r[e];if((t instanceof Object||t instanceof Array)&&this.convertArrays(t),t._type)switch(t._type){case"array":const n=t[e.substring(0,e.length-1)];r[e]=n instanceof Array?n:[n];break;case"integer":case"float":case"text":case"string":r[e]=t.text}else if(e.endsWith("s")&&t[e.substring(0,e.length-1)]){const n=t[e.substring(0,e.length-1)];return void(r[e]=n instanceof Array?n:[n])}})}requestBodyParser(r){return this.requestBodyConverter(r),new c.j2xParser(this.xmlParseOptions).parse(r)}requestBodyConverter(r){Object.keys(r).forEach(e=>{const t=r[e];if((t instanceof Object||t instanceof Array)&&this.requestBodyParser(t),t instanceof Array){const n=e.substring(0,e.length-1);r[e]={_type:"array"},r[e][n]=t}})}}return(m=o).\u0275fac=function(r){return new(r||m)(f.KVO(b.q),f.KVO(d.Qq))},m.\u0275prov=f.jDH({token:m,factory:m.\u0275fac}),o})()},71249:(V,C,N)=>{"use strict";N.d(C,{V:()=>d});var d=function(p){return p.BUSINESS_TO_CONSUMER="B2C",p.BUSINESS_TO_BUSINESS="B2B",p.WHOLESALE="WS",p}(d||{})},90710:(V,C,N)=>{"use strict";const d=N(42999).buildOptions,p={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:"  ",supressEmptyNode:!1,tagValueProcessor:function(o){return o},attrValueProcessor:function(o){return o}},E=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function T(o){this.options=d(o,p,E),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=A),this.isCDATA=this.options.cdataTagName?m:function(){return!1},this.replaceCDATAstr=h,this.replaceCDATAarr=l,this.processTextOrObjNode=g,this.options.format?(this.indentate=f,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=b,this.buildObjNode=c):(this.buildTextNode=y,this.buildObjNode=i),this.buildTextValNo
1de=y,this.buildObjectNode=i}function g(o,s,r){const e=this.j2x(o,r+1);return void 0!==o[this.options.textNodeName]&&1===Object.keys(o).length?this.buildTextNode(e.val,s,e.attrStr,r):this.buildObjNode(e.val,s,e.attrStr,r)}function h(o,s){return o=this.options.tagValueProcessor(""+o),""===this.options.cdataPositionChar||""===o?o+"<![CDATA["+s+"]]"+this.tagEndChar:o.replace(this.options.cdataPositionChar,"<![CDATA["+s+"]]"+this.tagEndChar)}function l(o,s){if(o=this.options.tagValueProcessor(""+o),""===this.options.cdataPositionChar||""===o)return o+"<![CDATA["+s.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let r in s)o=o.replace(this.options.cdataPositionChar,"<![CDATA["+s[r]+"]]>");return o+this.newLine}function i(o,s,r,e){return r&&-1===o.indexOf("<")?this.indentate(e)+"<"+s+r+">"+o+"</"+s+this.tagEndChar:this.indentate(e)+"<"+s+r+this.tagEndChar+o+this.indentate(e)+"</"+s+this.tagEndChar}function c(o,s,r,e){return""!==o?this.buildObjectNode(o,s,r,e):this.indentate(e)+"<"+s+r+"/"+this.tagEndChar}function y(o,s,r,e){return this.indentate(e)+"<"+s+r+">"+this.options.tagValueProcessor(o)+"</"+s+this.tagEndChar}function b(o,s,r,e){return""!==o?this.buildTextValNode(o,s,r,e):this.indentate(e)+"<"+s+r+"/"+this.tagEndChar}function f(o){return this.options.indentBy.repeat(o)}function A(o){return!!o.startsWith(this.options.attributeNamePrefix)&&o.substr(this.attrPrefixLen)}function m(o){return o===this.options.cdataTagName}T.prototype.parse=function(o){return Array.isArray(o)&&this.options.rootNodeName&&this.options.rootNodeName.length>1&&(o={[this.options.rootNodeName]:o}),this.j2x(o,0).val},T.prototype.j2x=function(o,s){let r="",e="";for(let t in o)if(!(typeof o[t]>"u"))if(null===o[t])e+=this.indentate(s)+"<"+t+"/"+this.tagEndChar;else if(o[t]instanceof Date)e+=this.buildTextNode(o[t],t,"",s);else if("object"!=typeof o[t]){const n=this.isAttribute(t);n?r+=" "+n+'="'+this.options.attrValueProcessor(""+o[t])+'"':this.isCDATA(t)?e+=this.replaceCDATAstr(o[this.options.textNodeName]?o[this.options.textNodeName]:"",o[t]):t===this.options.textNodeName?o[this.options.cdataTagName]||(e+=this.options.tagValueProcessor(""+o[t])):e+=this.buildTextNode(o[t],t,"",s)}else if(Array.isArray(o[t]))if(this.isCDATA(t))e+=this.indentate(s),e+=this.replaceCDATAarr(o[this.options.textNodeName]?o[this.options.textNodeName]:"",o[t]);else{const n=o[t].length;for(let u=0;u<n;u++){const v=o[t][u];typeof v>"u"||(e+=null===v?this.indentate(s)+"<"+t+"/"+this.tagEndChar:"object"==typeof v?this.processTextOrObjNode(v,t,s):this.buildTextNode(v,t,"",s))}}else if(this.options.attrNodeName&&t===this.options.attrNodeName){const n=Object.keys(o[t]),u=n.length;for(let v=0;v<u;v++)r+=" "+n[v]+'="'+this.options.attrValueProcessor(""+o[t][n[v]])+'"'}else e+=this.processTextOrObjNode(o[t],t,s);return{attrStr:r,val:e}},V.exports=T},78453:(V,C,N)=>{"use strict";const d=function(f){return String.fromCharCode(f)},p={nilChar:d(176),missingChar:d(201),nilPremitive:d(175),missingPremitive:d(200),emptyChar:d(178),emptyValue:d(177),boundryChar:d(179),objStart:d(198),arrStart:d(204),arrayEnd:d(185)},E=[p.nilChar,p.nilPremitive,p.missingChar,p.missingPremitive,p.boundryChar,p.emptyChar,p.emptyValue,p.arrayEnd,p.objStart,p.arrStart],T=function(f,A,m){if("string"==typeof A)return g(f&&f[0]&&void 0!==f[0].val?f[0].val:f,A);{const o=function i(f){return void 0===f?p.missingChar:null===f?p.nilChar:!(f.child&&0===Object.keys(f.child).length&&(!f.attrsMap||0===Object.keys(f.attrsMap).length))||p.emptyChar}(f);if(!0===o){let s="";if(Array.isArray(A)){s+=p.arrStart;const r=A[0],e=f.length;if("string"==typeof r)for(let t=0;t<e;t++){const n=g(f[t].val,r);s=h(s,n)}else for(let t=0;t<e;t++){const n=T(f[t],r,m);s=h(s,n)}s+=p.arrayEnd}else{s+=p.objStart;const r=Object.keys(A);Array.isArray(f)&&(f=f[0]);for(let e in r){const t=r[e];let n;n=T(!m.ignoreAttributes&&f.attrsMap&&f.attrsMap[t]?f.attrsMap[t]:t===m.textNodeName?f.val:f.child[t],A[t],m),s=h(s,n)}}return s}return o}},g=function(f){switch(f){case void 0:return p.missingPremitive;case null:return p.nilPremitive;case"":return p.emptyValue;default:return f}},h=function(f,A){return!l(A[0])&&!l(f[f.length-1])&&(f+=p.boundryChar),f+A},l=function(f){return-1!==E.indexOf(f)},c=N(37488),y=N(42999).buildOptions;C.convert2nimn=function(f,A,m){return m=y(m,c.defaultOptions,c.props),T(f,A,m)}},8959:(V,C,N)=>{"use strict";const d=N(42999),p=function(E,T,g){const h={};if(!T.alwaysCreateTextNode&&(!E.child||d.isEmptyObject(E.child))&&(!E.attrsMap||d.isEmptyObject(E.attrsMap)))return d.isExist(E.val)?E.val:"";
1if(d.isExist(E.val)&&("string"!=typeof E.val||""!==E.val&&E.val!==T.cdataPositionChar)){const i=d.isTagNameInArrayMode(E.tagname,T.arrayMode,g);h[T.textNodeName]=i?[E.val]:E.val}d.merge(h,E.attrsMap,T.arrayMode);const l=Object.keys(E.child);for(let i=0;i<l.length;i++){const c=l[i];if(E.child[c]&&E.child[c].length>1){h[c]=[];for(let y in E.child[c])E.child[c].hasOwnProperty(y)&&h[c].push(p(E.child[c][y],T,c))}else{const y=p(E.child[c][0],T,c),b=!0===T.arrayMode&&"object"==typeof y||d.isTagNameInArrayMode(c,T.arrayMode,g);h[c]=b?[y]:y}}return h};C.convertToJson=p},9511:(V,C,N)=>{"use strict";const d=N(42999),p=N(42999).buildOptions,E=N(37488),g=function(i,c,y){let b="{";const f=Object.keys(i.child);for(let A=0;A<f.length;A++){const m=f[A];if(i.child[m]&&i.child[m].length>1){b+='"'+m+'" : [ ';for(let o in i.child[m])b+=g(i.child[m][o],c)+" , ";b=b.substr(0,b.length-1)+" ] "}else b+='"'+m+'" : '+g(i.child[m][0],c)+" ,"}return d.merge(b,i.attrsMap),d.isEmptyObject(b)?d.isExist(i.val)?i.val:"":(d.isExist(i.val)&&("string"==typeof i.val&&(""===i.val||i.val===c.cdataPositionChar)||(b+='"'+c.textNodeName+'" : '+function h(i){return!0!==i&&!1!==i&&isNaN(i)?'"'+i+'"':i}(i.val))),","===b[b.length-1]&&(b=b.substr(0,b.length-2)),b+"}")};C.convertToJsonString=function(i,c){return(c=p(c,E.defaultOptions,E.props)).indentBy=c.indentBy||"",g(i,c,0)}},40024:(V,C,N)=>{"use strict";const d=N(8959),p=N(37488),E=N(37488),T=N(42999).buildOptions,g=N(10573);C.parse=function(l,i={},c){if(c){!0===c&&(c={});const f=g.validate(l,c);if(!0!==f)throw Error(f.err.msg)}i.parseTrueNumberOnly&&!1!==i.parseNodeValue&&!i.numParseOptions&&(i.numParseOptions={leadingZeros:!1});let y=T(i,E.defaultOptions,E.props);const b=p.getTraversalObj(l,y);return d.convertToJson(b,y)},C.convertTonimn=N(78453).convert2nimn,C.getTraversalObj=p.getTraversalObj,C.convertToJson=d.convertToJson,C.convertToJsonString=N(9511).convertToJsonString,C.validate=g.validate,C.j2xParser=N(90710),C.parseToNimn=function(l,i,c){return C.convertTonimn(C.getTraversalObj(l,c),i,c)}},42999:(V,C)=>{"use strict";const N=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",p="["+N+"]["+N+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",E=new RegExp("^"+p+"$");C.isExist=function(h){return typeof h<"u"},C.isEmptyObject=function(h){return 0===Object.keys(h).length},C.merge=function(h,l,i){if(l){const c=Object.keys(l),y=c.length;for(let b=0;b<y;b++)h[c[b]]="strict"===i?[l[c[b]]]:l[c[b]]}},C.getValue=function(h){return C.isExist(h)?h:""},C.buildOptions=function(h,l,i){let c={};if(!h)return l;for(let y=0;y<i.length;y++)c[i[y]]=void 0!==h[i[y]]?h[i[y]]:l[i[y]];return c},C.isTagNameInArrayMode=function(h,l,i){return!1!==l&&(l instanceof RegExp?l.test(h):"function"==typeof l?!!l(h,i):"strict"===l)},C.isName=function(h){const l=E.exec(h);return!(null===l||typeof l>"u")},C.getAllMatches=function(h,l){const i=[];let c=l.exec(h);for(;c;){const y=[];y.startIndex=l.lastIndex-c[0].length;const b=c.length;for(let f=0;f<b;f++)y.push(c[f]);i.push(y),c=l.exec(h)}return i},C.nameRegexp=p},10573:(V,C,N)=>{"use strict";const d=N(42999),p={allowBooleanAttributes:!1},E=["allowBooleanAttributes"];function T(e,t){const n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const u=e.substr(n,t-n);if(t>5&&"xml"===u)return A("InvalidXml","XML declaration allowed only at the start of the document.",s(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function g(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}C.validate=function(e,t){t=d.buildOptions(t,p,E);const n=[];let u=!1,v=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let a=0;a<e.length;a++)if("<"===e[a]&&"?"===e[a+1]){if(a+=2,a=T(e,a),a.err)return a}else{if("<"!==e[a]){if(" "===e[a]||"\t"===e[a]||"\n"===e[a]||"\r"===e[a])continue;return A("InvalidChar","char '"+e[a]+"' is not expected.",s(e,a))}{let P=a;if(a++,"!"===e[a]){a=g(e,a);continue}{let S=!1;"/"===e[a]&&(S=!0,a++);let I="";for(;a<e.length&&">"!==e[a]&&" "!==e[a]&&"\t"!==e[a]&&"\n"!==e[a]&&"\r"!==e[a];a++)I+=e[a];if(I=I.trim(),"/"===I[I.length-1]&&(I=I.substring(0,I.length-1),a--),!o(I)){let O;return O=0===I.trim().length?"Invalid space after '<'.":"Tag '"+I+"' is an invali
1d name.",A("InvalidTag",O,s(e,a))}const M=i(e,a);if(!1===M)return A("InvalidAttr","Attributes for '"+I+"' have open quote.",s(e,a));let _=M.value;if(a=M.index,"/"===_[_.length-1]){const O=a-_.length;_=_.substring(0,_.length-1);const w=y(_,t);if(!0!==w)return A(w.err.code,w.err.msg,s(e,O+w.err.line));u=!0}else if(S){if(!M.tagClosed)return A("InvalidTag","Closing tag '"+I+"' doesn't have proper closing.",s(e,a));if(_.trim().length>0)return A("InvalidTag","Closing tag '"+I+"' can't have attributes or invalid starting.",s(e,P));{const O=n.pop();if(I!==O.tagName){let w=s(e,O.tagStartPos);return A("InvalidTag","Expected closing tag '"+O.tagName+"' (opened in line "+w.line+", col "+w.col+") instead of closing tag '"+I+"'.",s(e,P))}0==n.length&&(v=!0)}}else{const O=y(_,t);if(!0!==O)return A(O.err.code,O.err.msg,s(e,a-_.length+O.err.line));if(!0===v)return A("InvalidXml","Multiple possible root nodes found.",s(e,a));n.push({tagName:I,tagStartPos:P}),u=!0}for(a++;a<e.length;a++)if("<"===e[a]){if("!"===e[a+1]){a++,a=g(e,a);continue}if("?"!==e[a+1])break;if(a=T(e,++a),a.err)return a}else if("&"===e[a]){const O=f(e,a);if(-1==O)return A("InvalidChar","char '&' is not expected.",s(e,a));a=O}"<"===e[a]&&a--}}}return u?1==n.length?A("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",s(e,n[0].tagStartPos)):!(n.length>0)||A("InvalidXml","Invalid '"+JSON.stringify(n.map(a=>a.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):A("InvalidXml","Start tag expected.",1)};const h='"',l="'";function i(e,t){let n="",u="",v=!1;for(;t<e.length;t++){if(e[t]===h||e[t]===l)""===u?u=e[t]:u!==e[t]||(u="");else if(">"===e[t]&&""===u){v=!0;break}n+=e[t]}return""===u&&{value:n,index:t,tagClosed:v}}const c=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function y(e,t){const n=d.getAllMatches(e,c),u={};for(let v=0;v<n.length;v++){if(0===n[v][1].length)return A("InvalidAttr","Attribute '"+n[v][2]+"' has no space in starting.",r(n[v]));if(void 0===n[v][3]&&!t.allowBooleanAttributes)return A("InvalidAttr","boolean attribute '"+n[v][2]+"' is not allowed.",r(n[v]));const a=n[v][2];if(!m(a))return A("InvalidAttr","Attribute '"+a+"' is an invalid name.",r(n[v]));if(u.hasOwnProperty(a))return A("InvalidAttr","Attribute '"+a+"' is repeated.",r(n[v]));u[a]=1}return!0}function f(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function b(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function A(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function m(e){return d.isName(e)}function o(e){return d.isName(e)}function s(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function r(e){return e.startIndex+e[1].length}},35038:V=>{"use strict";V.exports=function(C,N,d){this.tagname=C,this.parent=N,this.child={},this.attrsMap={},this.val=d,this.addChild=function(p){Array.isArray(this.child[p.tagname])?this.child[p.tagname].push(p):this.child[p.tagname]=[p]}}},37488:(V,C,N)=>{"use strict";const d=N(42999),p=N(42999).buildOptions,E=N(35038),T=N(22140);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,d.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const h={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(s,r){return s},attrValueProcessor:function(s,r){return s},stopNodes:[],alwaysCreateTextNode:!1};C.defaultOptions=h;const l=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function i(s,r,e){return r&&(e.trimValues&&(r=r.trim()),r=y(r=e.tagValueProcessor(r,s),e.parseNodeValue,e.numParseOptions)),r}function c(s,r){if(r.ignoreNameSpace){const e=s.split(":"),t="/"===s.charAt(0)?"/":"";if("xmlns"===e[0])return"";2===e.length&&(s=t+e[1])}return s}function y(s,r,e){if(r&&"string"==typeof s){const t=s.trim();return"true"===t||"false"!==t&&T(s,e)}return d.isExist(s)?s:""}C.props=l;const b=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function f(s,r){if(!r.ignoreAttributes&&"string"==typeof s){s=s.replace(/\r?\n/g," ");const e=d.getAllMatches(s,b),t=e.length,n={};for(let u=0;u<t;u++){const v=c(e[u][1],r);v.length&&(void 0!==e[u][4]?(r.trimValues&&(e[u][4]=e[u][4].trim()),e[u][4]=r.attrValueProcessor(e[u][4],v),n[r.attributeNamePrefix+v]=y(e[u][4],r.parseAttributeValue,r.numParseOptions)):r.allowBooleanAttributes&&(n[r.attributeNamePrefix+v]=!0))}if(!Object.keys(n).length)return;if(r.attrNodeName){const u={};return u[r.attrNodeName]=n,u}return n}}function m(s,r){let e,t="";for(let n=r;n<s.length;n++){let u=s[n];if(e)u===e&&(e="");else if('"'===u||"'"===u)e=u;else{if(">"===u)return{data:t,index:n};"\t"===u&&(u=" ")}t+=u}}function o(s,r,e,t){const n=s.indexOf(r,e);if(-1===n)throw new Error(t);return n+r.length-1}C.getTraversalObj=function(s,r){s=s.replace(/\r\n?/g,"\n"),r=p(r,h,l);const e=new E("!xml");let t=e,n="";for(let u=0;u<s.length;u++)if("<"===s[u])if("/"===s[u+1]){const a=o(s,">",u,"Closing Tag is not closed.");let P=s.substring(u+2,a).trim();if(r.ignoreNameSpace){const S=P.indexOf(":");-1!==S&&(P=P.substr(S+1))}t&&(t.val=t.val?d.getValue(t.val)+""+i(P,n,r):i(P,n,r)),r.stopNodes.length&&r.stopNodes.includes(t.tagname)&&(t.child=[],null==t.attrsMap&&(t.attrsMap={}),t.val=s.substr(t.startIndex+1,u-t.startIndex-1)),t=t.parent,n="",u=a}else if("?"===s[u+1])u=o(s,"?>",u,"Pi Tag is not closed.");else if("!--"===s.substr(u+1,3))u=o(s,"--\x3e",u,"Comment is not closed.");else if("!D"===s.substr(u+1,2)){const a=o(s,">",u,"DOCTYPE is not closed.");u=s.substring(u,a).indexOf("[")>=0?s.indexOf("]>",u)+1:a}else if("!["===s.substr(u+1,2)){const a=o(s,"]]>",u,"CDATA is not closed.")-2,P=s.substring(u+9,a);if(n&&(t.val=d.getValue(t.val)+""+i(t.tagname,n,r),n=""),r.cdataTagName){const S=new E(r.cdataTagName,t,P);t.addChild(S),t.val=d.getValue(t.val)+r.cdataPositionChar,P&&(S.val=P)}else t.val=(t.val||"")+(P||"");u=a+2}else{const a=m(s,u+1);let P=a.data;const S=a.index,I=P.indexOf(" ");let M=P,_=!0;if(-1!==I&&(M=P.substr(0,I).replace(/\s\s*$/,""),P=P.substr(I+1)),r.ignoreNameSpace){const O=M.indexOf(":");-1!==O&&(M=M.substr(O+1),_=M!==a.data.substr(O+1))}if(t&&n&&"!xml"!==t.tagname&&(t.val=d.getValue(t.val)+""+i(t.tagname,n,r)),P.length>0&&P.lastIndexOf("/")===P.length-1){"/"===M[M.length-1]?(M=M.substr(0,M.length-1),P=M):P=P.substr(0,P.length-1);const O=new E(M,t,"");M!==P&&(O.attrsMap=f(P,r)),t.addChild(O)}else{const O=new E(M,t);r.stopNodes.length&&r.stopNodes.includes(O.tagname)&&(O.startIndex=S),M!==P&&_&&(O.attrsMap=f(P,r)),t.addChild(O),t=O}n="",u=S}else n+=s[u];return e}},58523:(V,C,N)=>{"use strict";N.d(C,{q:()=>p});const p=N(73028).Z},22140:V=>{const C=/^[-+]?0x[a-fA-F0-9]+$/,N=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,d={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};V.exports=function p(g,h={}){if(h=Object.assign({},d,h),!g||"string"!=typeof g)return g;let l=g.trim();if(void 0!==h.skipLike&&h.skipLike.test(l))return g;if("0"===g)return 0;if(h.hex&&C.test(l))return function T(g,h){if(parseInt)return parseInt(g,h);if(Number.parseInt)return Number.parseInt(g,h);if(window&&window.parseInt)return window.parseInt(g,h);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(l,16);if(-1!==l.search(/[eE]/)){const i=l.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(i){if(h.leadingZeros)l=(i[1]||"")+i[3];else if("0"!==i[2]||"."!==i[3][0])return g;return h.eNotation?Number(l):g}return g}{const i=N.exec(l);if(i){const c=i[1],y=i[2];let b=function E(g){return g&&-1!==g.indexOf(".")&&("."===(g=g.replace(/0+$/,""))?g="0":"."===g[0]?g="0"+g:"."===g[g.length-1]&&(g=g.substr(0,g.length-1))),g}(i[3]);if(!h.leadingZeros&&y.length>0&&c&&"."!==l[2])return g;if(!h.leadingZeros&&y.length>0&&!c&&"."!==l[1])return g;if(h.leadingZeros&&y===g)return 0;{const f=Number(l),A=""+f;return-1!==A.search(/[eE]/)?h.eNotation?f:g:-1!==l.indexOf(".")?"0"===A&&""===b||A===b||c&&A==="-"+b?f:g:y?b===A||c+b===A?f:g:l===A||l===c+A?f:g}}return g}}}}]);

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.