var DcsEncoderModule;(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===r(e)?e:String(e)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}t.r(e),t.d(e,{CedEncoder:()=>Qe});var c=[1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657,46368,75025],a=c.length,f=new Map([["A",0],["B",1],["C",2],["D",3],["E",4],["F",5],["G",6],["H",7],["I",8],["J",9],["K",10],["L",11],["M",12],["N",13],["O",14],["P",15],["Q",16],["R",17],["S",18],["T",19],["U",20],["V",21],["W",22],["X",23],["Y",24],["Z",25],["a",26],["b",27],["c",28],["d",29],["e",30],["f",31],["g",32],["h",33],["i",34],["j",35],["k",36],["l",37],["m",38],["n",39],["o",40],["p",41],["q",42],["r",43],["s",44],["t",45],["u",46],["v",47],["w",48],["x",49],["y",50],["z",51],["0",52],["1",53],["2",54],["3",55],["4",56],["5",57],["6",58],["7",59],["8",60],["9",61],["-",62],["_",63]]),s=new Map([["000000",0],["000001",1],["000010",2],["000011",3],["000100",4],["000101",5],["000110",6],["000111",7],["001000",8],["001001",9],["001010",10],["001011",11],["001100",12],["001101",13],["001110",14],["001111",15],["010000",16],["010001",17],["010010",18],["010011",19],["010100",20],["010101",21],["010110",22],["010111",23],["011000",24],["011001",25],["011010",26],["011011",27],["011100",28],["011101",29],["011110",30],["011111",31],["100000",32],["100001",33],["100010",34],["100011",35],["100100",36],["100101",37],["100110",38],["100111",39],["101000",40],["101001",41],["101010",42],["101011",43],["101100",44],["101101",45],["101110",46],["101111",47],["110000",48],["110001",49],["110010",50],["110011",51],["110100",52],["110101",53],["110110",54],["110111",55],["111000",56],["111001",57],["111010",58],["111011",59],["111100",60],["111101",61],["111110",62],["111111",63]]),l=new Map([[0,"000000"],[1,"000001"],[2,"000010"],[3,"000011"],[4,"000100"],[5,"000101"],[6,"000110"],[7,"000111"],[8,"001000"],[9,"001001"],[10,"001010"],[11,"001011"],[12,"001100"],[13,"001101"],[14,"001110"],[15,"001111"],[16,"010000"],[17,"010001"],[18,"010010"],[19,"010011"],[20,"010100"],[21,"010101"],[22,"010110"],[23,"010111"],[24,"011000"],[25,"011001"],[26,"011010"],[27,"011011"],[28,"011100"],[29,"011101"],[30,"011110"],[31,"011111"],[32,"100000"],[33,"100001"],[34,"100010"],[35,"100011"],[36,"100100"],[37,"100101"],[38,"100110"],[39,"100111"],[40,"101000"],[41,"101001"],[42,"101010"],[43,"101011"],[44,"101100"],[45,"101101"],[46,"101110"],[47,"101111"],[48,"110000"],[49,"110001"],[50,"110010"],[51,"110011"],[52,"110100"],[53,"110101"],[54,"110110"],[55,"110111"],[56,"111000"],[57,"111001"],[58,"111010"],[59,"111011"],[60,"111100"],[61,"111101"],[62,"111110"],[63,"111111"]]),h=new Map([["0",0],["1",1],["2",2],["3",3],["4",4],["5",5],["6",6],["7",7],["8",8],["9",9],["a",10],["b",11],["c",12],["d",13],["e",14],["f",15]]),d=new Map([[0,"0000"],[1,"0001"],[2,"0010"],[3,"0011"],[4,"0100"],[5,"0101"],[6,"0110"],[7,"0111"],[8,"1000"],[9,"1001"],[10,"1010"],[11,"1011"],[12,"1100"],[13,"1101"],[14,"1110"],[15,"1111"]]),y=new Map([["0000",0],["0001",1],["0010",2],["0011",3],["0100",4],["0101",5],["0110",6],["0111",7],["1000",8],["1001",9],["1010",10],["1011",11],["1100",12],["1101",13],["1110",14],["1111",15]]),v=new Map([["BitFieldSubSection","00"],["RangeSubSection","01"],["FibonacciSubSection","10"],["None","11"]]),p=(new Map([["00","BitFieldSubSection"],["01","RangeSubSection"],["10","FibonacciSubSection"],["11","None"]]),function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;n(this,t),this.bitString="0".repeat(e)}return u(t,[{key:"size",get:function(){return this.bitString.length}},{key:"isEmpty",get:function(){return 0===this.size}},{key:"clone",value:function(t){return this.bitString=t.toString(),this}},{key:"get",value:function(t){return"1"===this.bitString[t]}},{key:"toString",value:function(){return this.bitString}},{key:"add",value:function(t){return this.bitString+=t,this}},{key:"insert",value:function(t){return this.bitString=t+this.bitString,this}},{key:"shiftRight",value:function(t){return this.bitString="0".repeat(t)+this.bitString,this}},{key:"shiftLeft",value:function(t){return this.bitString=this.bitString.substring(t),this}},{key:"trim",value:function(t){return this.bitString=this.bitString.substring(0,this.size-t),this}},{key:"subSet",value:function(e,n){return(new t).fromBinaryString(this.bitString.substring(e,e+n))}},{key:"set",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"1":"0";t>=this.bitString.length?this.bitString+="0".repeat(t-this.size)+e:this.bitString=this.bitString.substring(0,t)+e+this.bitString.substring(t+1)}},{key:"toBase64",value:function(){var t=this.bitString,e=this.size%24;t+=e?"0".repeat(24-e):"";for(var n="",r=0;r<t.length;r+=6){var i=t.substring(r,r+6);n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[s.get(i)]}return n}},{key:"fromBase64",value:function(t){if(!/^[A-Za-z0-9\-_]+$/.test(t))return null;this.bitString="";for(var e=0;e<t.length;e++){var n=f.get(t[e]),r=l.get(n);this.bitString+=r}return this}},{key:"fromBinaryString",value:function(t){this.bitString="";for(var e=0;e<t.length;e++)"1"!==t[e]&&"0"!==t[e]||(this.bitString+=t[e]);return this}},{key:"fromUUID",value:function(t){this.bitString="";for(var e=0;e<t.length;e++){var n=h.get(t[e]);if(void 0!==n){var r=d.get(n);this.bitString+=r}}return this}},{key:"toUUID",value:function(){for(var t="",e=0;e<this.size;e+=4){var n=this.bitString.substring(e,e+4);t+="0123456789abcdef"[y.get(n)]}return"".concat(t.substring(0,8),"-").concat(t.substring(8,12),"-").concat(t.substring(12,16),"-").concat(t.substring(16,20),"-").concat(t.substring(20))}}]),t}());function m(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(n(this,t),m(this,"bitSet",new p),m(this,"value",0),!(e<=0||e>=65536)){for(var r=e,i=this.largestFibonacciIndexLessOrEqual(r),o=i;r>0;)for(this.bitSet.set(o),r-=c[o],o-=1;o>=0&&c[o]>r;)o-=1;this.bitSet.set(i+1),this.value=e}}return u(t,[{key:"largestFibonacciIndexLessOrEqual",value:function(t){for(var e=2;c[e-1]<=t;)e++;return e-2}},{key:"fromBitSet",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.value=0;for(var n=0,r=e;r<t.size&&!(n>=a);){var i=t.get(r),o=r+1===t.size||n+1===a?i:t.get(r+1);if(i&&(this.value+=c[n],o)){r++;break}n++,r++}return this.bitSet=t.subSet(e,r-e+1),this}},{key:"size",get:function(){return this.bitSet.size}},{key:"number",get:function(){return this.value}},{key:"codeword",get:function(){return this.bitSet}},{key:"toString",value:function(){return this.bitSet.toString()}},{key:"toNumber",value:function(){return this.value}}]),t}(),g=function(){function t(e,r){n(this,t),this.startId=e,this.numberOfIds=r}return u(t,[{key:"endId",get:function(){return new b(this.startId.number+this.numberOfIds.number-1)}},{key:"toIdsRange",value:function(){return new R(this.startId.number,this.endId.number)}}]),t}(),R=function(){function t(e,r){n(this,t),this.startId=e,this.endId=r}return u(t,[{key:"numberOfIds",get:function(){return this.endId-this.startId+1}},{key:"isSingleIdRange",get:function(){return this.endId===this.startId}},{key:"toFibonacciNumberIdsRange",value:function(){return new g(new b(this.startId),new b(this.numberOfIds))}}]),t}();function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function w(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}function I(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function D(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function N(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var B=function(t){w(r,t);var e=N(r);function r(t){return n(this,r),e.call(this,t)}return u(r,[{key:"createRange",value:function(t,e){return new R(t,e)}}]),r}(function(){function t(e){n(this,t),m(this,"ranges",new Array),this.status=e}return u(t,[{key:"numberOfRanges",get:function(){return this.ranges.length}},{key:"add",value:function(t){this.ranges.push(t)}},{key:"get",value:function(t){return this.ranges[t]}},{key:"fromIds",value:function(t){var e,n=0,r=0,i=D(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;0!==n?(o===r+1||(this.ranges.push(this.createRange(n,r)),n=o),r=o):(n=o,r=o)}}catch(t){i.e(t)}finally{i.f()}return 0!=r&&this.ranges.push(this.createRange(n,r)),this}}]),t}());function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function F(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var E=function(t){return t[t.Undefined=0]="Undefined",t[t.Disabled=1]="Disabled",t[t.Enabled=2]="Enabled",t}({}),j=(new Map([["00",E.Undefined],["01",E.Disabled],["10",E.Enabled]]),new Map([[E.Undefined,"00"],[E.Disabled,"01"],[E.Enabled,"10"]])),U=(new Map([["0000",[E.Enabled]],["0001",[E.Enabled,E.Disabled]],["0011",[E.Enabled,E.Undefined]],["0100",[E.Disabled,E.Enabled]],["0101",[E.Disabled]],["0111",[E.Disabled,E.Undefined]],["1100",[E.Undefined,E.Enabled]],["1101",[E.Undefined,E.Disabled]],["1111",[E.Undefined]]]),new Map([["10","0000"],["1001","0001"],["1000","0011"],["0110","0100"],["01","0101"],["0100","0111"],["0010","1100"],["0001","1101"],["00","1111"]]));var M=function(){function t(e,r){if(n(this,t),this.enabled=e,this.disabled=r,this.maximumID=0,this.minimumID=65536,this.undefinedIds=new Array,this.isEmpty)this.maximumID=0,this.minimumID=0;else{for(var i=0,o=[].concat(F(this.enabled),F(this.disabled));i<o.length;i++){var u=o[i];this.minimumID=u<this.minimumID?u:this.minimumID,this.maximumID=u>this.maximumID?u:this.maximumID}this.setUndefined(),this.maximumStatus=this.getIdStatus(this.maximumID),this.minimumStatus=this.getIdStatus(this.minimumID)}}return u(t,[{key:"setUndefined",value:function(){for(var t=this.minimumID;t<=this.maximumID;t++)-1==this.enabled.indexOf(t)&&-1==this.disabled.indexOf(t)&&this.undefinedIds.push(t)}},{key:"getIdStatus",value:function(t){return-1!==this.disabled.indexOf(t)?E.Disabled:-1!==this.enabled.indexOf(t)?E.Enabled:E.Undefined}},{key:"isEmpty",get:function(){return 0===this.enabled.length&&0===this.disabled.length}},{key:"isStatusSameForMaxMinIds",get:function(){return this.maximumStatus===this.minimumStatus}},{key:"numberOfEnabled",get:function(){return this.enabled.length}},{key:"numberOfDisabled",get:function(){return this.disabled.length}},{key:"numberOfUndefined",get:function(){return this.undefinedIds.length}},{key:"applyShift",value:function(t){if(!this.isEmpty&&0!==t){for(var e in this.enabled)this.enabled[e]+=t;for(var n in this.disabled)this.disabled[n]+=t;for(var r in this.undefinedIds)this.undefinedIds[r]+=t}}},{key:"toRanges",value:function(){if(this.isEmpty)return[new B(E.Enabled)];var t=function(t,e){return t-e},e=new B(E.Enabled).fromIds(this.enabled.sort(t)),n=new B(E.Disabled).fromIds(this.disabled.sort(t)),r=[e,n];if(this.isStatusSameForMaxMinIds){var i=new B(E.Undefined).fromIds(this.undefinedIds.sort(t));r=this.minimumStatus===E.Enabled?n.numberOfRanges<i.numberOfRanges?[e,n]:[e,i]:e.numberOfRanges<i.numberOfRanges?[n,e]:[n,i]}return r.filter((function(t){return t.numberOfRanges>0}))}},{key:"toPurposesVendors",value:function(){return{enabled:this.enabled,disabled:this.disabled}}}],[{key:"fromRanges",value:function(e){var n;if(e.length>2||0==e.length)return new t([],[]);var r,i=(m(n={},E.Enabled,new Array),m(n,E.Disabled,new Array),m(n,E.Undefined,new Array),n),o=P(e);try{for(o.s();!(r=o.n()).done;){var u,c=r.value,a=P(c.ranges);try{for(a.s();!(u=a.n()).done;)for(var f=u.value,s=f.startId;s<=f.endId;)i[c.status].push(s++)}catch(t){a.e(t)}finally{a.f()}}}catch(t){o.e(t)}finally{o.f()}var l=function(t,e){for(var n=i[t].length,r=i[t][0],o=i[t][n-1],u=r;u<=o;u++)-1===i[t].indexOf(u)&&-1===i[E.Undefined].indexOf(u)&&i[e].push(u)};return i[E.Undefined].length>0&&(i[E.Enabled].length>0?l(E.Enabled,E.Disabled):l(E.Disabled,E.Enabled)),new t(i[E.Enabled],i[E.Disabled])}}]),t}();function K(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var z=function(t){w(r,t);var e=K(r);function r(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return n(this,r),e.call(this,i,t)}return u(r)}(u((function t(e,r){n(this,t),this.version=e,this.sections=r}))),C=u((function t(){n(this,t)}));function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var L=function(t){w(r,t);var e=T(r);function r(t){var i;return n(this,r),(i=e.call(this)).name="Header",i.size=t.size,i.variants=t,i}return u(r)}(C);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var H=function(t){w(r,t);var e=_(r);function r(t,i){var o;return n(this,r),(o=e.call(this)).name="PurposesConsent",o.key="purposes",o.size=0,o.variants=i,o.fields=t,o}return u(r)}(C);function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var $=function(t){w(r,t);var e=V(r);function r(t,i){var o;return n(this,r),(o=e.call(this)).name="PurposesLegitimateInterest",o.key="purposes_li",o.size=0,o.variants=i,o.fields=t,o}return u(r)}(C);function q(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var Z=function(t){w(r,t);var e=q(r);function r(t,i){var o;return n(this,r),(o=e.call(this)).name="VendorsConsent",o.key="vendors",o.size=0,o.variants=i,o.fields=t,o}return u(r)}(C);function G(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var J=function(t){w(r,t);var e=G(r);function r(t,i){var o;return n(this,r),(o=e.call(this)).name="VendorsLegitimateInterest",o.key="vendors_li",o.size=0,o.variants=i,o.fields=t,o}return u(r)}(C),Q=function(){function t(e,r,i){n(this,t),this.name=e,this.description=r,this.size=i}return u(t,[{key:"adjustEncoded",value:function(t,e){if(0!=this.size&&t.size!==this.size){var n=this.size-t.size;if("number"==typeof e||e instanceof Date)if(n>0)t.insert(new p(n));else{var r=-n;t.shiftLeft(r)}else if(n>0)t.add(new p(n));else{var i=-n;t.trim(i)}}}}]),t}();function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var X=function(t){w(r,t);var e=W(r);function r(t,i,o,u){var c;return n(this,r),(c=e.call(this,t,o,u)).key=i,c}return u(r)}(Q);function Y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var tt=function(t){w(r,t);var e=Y(r);function r(t,i,o,u){var c;return n(this,r),(c=e.call(this,t,o,u)).value=i,c}return u(r)}(Q),et=6,nt=128,rt=36,it=16,ot=1,ut=16,ct=16,at=0,ft=4,st=16,lt=1,ht=16,dt=16,yt=0,vt=0,pt=2,mt=1;function bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var gt=function(t){w(r,t);var e=bt(r);function r(t,i,o){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rt;return n(this,r),e.call(this,t,i,o,u)}return u(r)}(X);function Rt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var St=function(t){w(r,t);var e=Rt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description)}return u(r)}(gt);function wt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(St,"FieldName","Created"),m(St,"KeyName","created"),m(St,"Description","UTC epoch time format with decisecond precision when the Consent String was initially created");var It=function(t){w(r,t);var e=wt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description)}return u(r)}(gt);function Ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(It,"FieldName","LastUpdated"),m(It,"KeyName","updated"),m(It,"Description","UTC epoch time format with decisecond precision when the Consent String was last time updated");var Dt=function(t){w(r,t);var e=Ot(r);function r(t,i,o){var u,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:it;return n(this,r),(u=e.call(this,t,i,o,c)).value=i,u}return u(r)}(tt);function xt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var Nt=function(t){w(r,t);var e=xt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,nt)}return u(r)}(X);function Bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Nt,"FieldName","UserId"),m(Nt,"KeyName","user_id"),m(Nt,"Description","User ID (UUID)");var kt=function(t){w(r,t);var e=Bt(r);function r(t){return n(this,r),e.call(this,r.FieldName,t,r.Description,et)}return u(r)}(Dt);function Ft(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(kt,"FieldName","Version"),m(kt,"Description","Version number of the encoding format");var Pt=function(t){w(r,t);var e=Ft(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,pt)}return u(r)}(X);function At(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Pt,"FieldName","EncodingAlgorithm"),m(Pt,"KeyName","encodingAlgorithm"),m(Pt,"Description","Defines encoding algorithm that was used to encode purposes or vendors IDs statuses.");var Et=function(t){w(r,t);var e=At(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description)}return u(r)}(gt);function jt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Et,"FieldName","LastSync"),m(Et,"KeyName","sync"),m(Et,"Description","Last sync date");var Ut=function(t){w(r,t);var e=jt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,mt)}return u(r)}(X);function Mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Ut,"FieldName","HasSynced"),m(Ut,"KeyName","hasSynced"),m(Ut,"Description","If set to 1 then last sync date is present, if not last sync date is absent in the header");var Kt=function(t){w(r,t);var e=Mt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,at)}return u(r)}(X);function zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Kt,"FieldName","BitField"),m(Kt,"KeyName","bitField"),m(Kt,"Description","BitField encoded vendors or purposes IDs statuses: Enabled, Disabled or Undefined");var Ct=function(t){w(r,t);var e=zt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,ct)}return u(r)}(X);function Tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Ct,"FieldName","NumberOfIDs"),m(Ct,"KeyName","numberOfIds"),m(Ct,"Description","Number of vendor or purposes IDs encoded ");var Lt=function(t){w(r,t);var e=Tt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,ot)}return u(r)}(X);function _t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Lt,"FieldName","StartFromOne"),m(Lt,"KeyName","startFromOne"),m(Lt,"Description","If set to 1 then encoding started form ID 1, if not encoding started form StartID");var Ht=function(t){w(r,t);var e=_t(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,ut)}return u(r)}(X);function Vt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Ht,"FieldName","StartID"),m(Ht,"KeyName","startId"),m(Ht,"Description","Start (minimum) vendor or purposes ID that was encoded (Optional)");var $t=function(t){w(r,t);var e=Vt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,ft)}return u(r)}(X);function qt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m($t,"FieldName","EncodedStatuses"),m($t,"KeyName","encodedStatuses"),m($t,"Description","Define what statuses and in what order have been encoded");var Zt=function(t){w(r,t);var e=qt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,st)}return u(r)}(X);function Gt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Zt,"FieldName","NumberOfRanges"),m(Zt,"KeyName","numberOfRanges"),m(Zt,"Description","Number of ranges encoded");var Jt=function(t){w(r,t);var e=Gt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,dt)}return u(r)}(X);function Qt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Jt,"FieldName","RangeEnd"),m(Jt,"KeyName","rangeEnd"),m(Jt,"Description","Last ID in the encoded range");var Wt=function(t){w(r,t);var e=Qt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,ht)}return u(r)}(X);function Xt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Wt,"FieldName","RangeStart"),m(Wt,"KeyName","rangeStart"),m(Wt,"Description","First ID in the encoded range");var Yt=function(t){w(r,t);var e=Xt(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,lt)}return u(r)}(X);function te(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(Yt,"FieldName","SingleIdRange"),m(Yt,"KeyName","singleIdRange"),m(Yt,"Description","Set to 1 if range contains only RangeStart ID");var ee=function(t){w(r,t);var e=te(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,vt)}return u(r)}(X);function ne(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}m(ee,"FieldName","FibonacciNumberIdsInRange"),m(ee,"KeyName","fibonacciNumberIdsInRange"),m(ee,"Description","Number of IDs encoded in the range for Fibonacci encoding");var re=function(t){w(r,t);var e=ne(r);function r(){return n(this,r),e.call(this,r.FieldName,r.KeyName,r.Description,yt)}return u(r)}(X);m(re,"FieldName","FibonacciRangeStart"),m(re,"KeyName","fibonacciRangeStart"),m(re,"Description","First ID in the encoded range for Fibonacci encoding");var ie=u((function t(){n(this,t)}));function oe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var ue=new(function(t){w(r,t);var e=oe(r);function r(t){var i;return n(this,r),(i=e.call(this)).name="BitFieldSubSection",i.size=0,i.fields=t,i}return u(r)}(ie))([new Lt,new Ht,new Ct,new Kt]);function ce(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var ae=new(function(t){w(r,t);var e=ce(r);function r(t){var i;return n(this,r),(i=e.call(this)).name="FibonacciSubSection",i.size=0,i.fields=t,i}return u(r)}(ie))([new $t,new Zt,new re,new ee]);function fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var se=function(t){w(r,t);var e=fe(r);function r(t){var i;return n(this,r),(i=e.call(this)).name="HeaderSubSection",i.size=t.map((function(t){return t.size})).reduce((function(t,e){return e+t}),0),i.fields=t,i}return u(r)}(ie),le=function(t){return new se([new kt(t),new Nt,new St,new It,new Ut,new Et])},he=le(2);function de(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var ye,ve=new(function(t){w(r,t);var e=de(r);function r(t){var i;return n(this,r),(i=e.call(this)).name="RangeSubSection",i.size=0,i.fields=t,i}return u(r)}(ie))([new $t,new Zt,new Yt,new Wt,new Jt]),pe=(m(ye={},1,new z([new L(le(1)),new H([new Pt],[ue]),new $([new Pt],[ue,ve,ae]),new Z([new Pt],[ue,ve,ae]),new J([new Pt],[ue,ve,ae])],1)),m(ye,2,new z([new L(le(2)),new H([new Pt],[ue,ve,ae]),new $([new Pt],[ue,ve,ae]),new Z([new Pt],[ue,ve,ae]),new J([new Pt],[ue,ve,ae])])),ye),me=function(){function t(){n(this,t)}return u(t,[{key:"encode",value:function(t){var e=Math.round(t.getTime()/100);return(new p).fromBinaryString(e.toString(2))}}]),t}(),be=function(){function t(){n(this,t)}return u(t,[{key:"encode",value:function(t){return(new p).fromBinaryString(t.toString(2))}}]),t}(),ge=function(){function t(){n(this,t)}return u(t,[{key:"encode",value:function(t){return(new p).fromUUID(t)}}]),t}(),Re=function(){function t(){n(this,t)}return u(t,[{key:"encode",value:function(t){return(new p).fromBinaryString(v.get(t)||"")}}]),t}(),Se=function(){function t(){n(this,t)}return u(t,[{key:"encode",value:function(t){var e=new p;if(t.isEmpty)return e;for(var n=t.minimumID;n<=t.maximumID;n++){var r=t.getIdStatus(n),i=j.get(r);i&&e.add((new p).fromBinaryString(i))}return e}}]),t}(),we=function(){function t(){n(this,t)}return u(t,[{key:"encode",value:function(t){return(new p).fromBinaryString(U.get(t.reduce((function(t,e){return t+j.get(e)}),""))||"")}}]),t}(),Ie=function(){function t(){n(this,t)}return u(t,[{key:"encode",value:function(t){return t.codeword}}]),t}(),Oe={Version:new be,UserId:new ge,Created:new me,LastUpdated:new me,StartFromOne:new be,StartID:new be,NumberOfIDs:new be,BitField:new Se,EncodedStatuses:new we,NumberOfRanges:new be,SingleIdRange:new be,RangeStart:new be,RangeEnd:new be,FibonacciRangeStart:new Ie,FibonacciNumberIdsInRange:new Ie,EncodingAlgorithm:new Re,LastSync:new me,HasSynced:new be},De=function(){function t(){n(this,t),m(this,"fieldIndex",0),m(this,"mapping",Oe)}return u(t,[{key:"encodeNext",value:function(t){var e=this.schema.fields[this.fieldIndex],n=this.mapping[e.name].encode(t);return e.adjustEncoded(n,t),this.fieldIndex++,n}},{key:"setSchema",value:function(t){this.schema=t}},{key:"getSchema",value:function(){return this.schema}}]),t}();function xe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var Ne=function(t){w(r,t);var e=xe(r);function r(){var t;return n(this,r),(t=e.call(this)).schema=ue,t}return u(r,[{key:"encode",value:function(t){this.fieldIndex=0;var e=new p,n=t.isEmpty?0:t.maximumID-t.minimumID+1,r=0,i=1,o=1;if(1<=t.minimumID&&t.minimumID<8){var u=t.minimumID-1;r=2*u,n+=u}else o=t.minimumID,i=0;return e.add(this.encodeNext(i)),0===i?e.add(this.encodeNext(o)):this.fieldIndex++,e.add(this.encodeNext(n)),e.add(this.encodeNext(t).shiftRight(r)),e}}]),r}(De);function Be(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return ke(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var Pe=function(t){w(r,t);var e=Fe(r);function r(){var t;return n(this,r),(t=e.call(this)).schema=ve,t}return u(r,[{key:"encode",value:function(t){this.fieldIndex=0;var e=new p,n=t.toRanges(),r=n.map((function(t){return t.status}));e.add(this.encodeNext(r));for(var i=this.fieldIndex,o=0;o<r.length;o++){var u=n[o];e.add(this.encodeNext(u.numberOfRanges));var c,a=this.fieldIndex,f=Be(u.ranges);try{for(f.s();!(c=f.n()).done;){var s=c.value;e.add(this.encodeNext(s.isSingleIdRange?1:0)),e.add(this.encodeNext(s.startId)),s.isSingleIdRange?this.fieldIndex++:e.add(this.encodeNext(s.endId)),this.fieldIndex=a}}catch(t){f.e(t)}finally{f.f()}this.fieldIndex=i}return e}}]),r}(De);function Ae(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ee(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function Ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function je(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var Ue=function(t){w(r,t);var e=je(r);function r(){var t;return n(this,r),(t=e.call(this)).schema=ae,t}return u(r,[{key:"encode",value:function(t){this.fieldIndex=0;var e=new p,n=t.toRanges(),r=n.map((function(t){return t.status}));e.add(this.encodeNext(r));for(var i=this.fieldIndex,o=0;o<r.length;o++){var u=n[o];e.add(this.encodeNext(u.numberOfRanges));var c,a=this.fieldIndex,f=Ae(u.ranges);try{for(f.s();!(c=f.n()).done;){var s=c.value.toFibonacciNumberIdsRange();e.add(this.encodeNext(s.startId)),e.add(this.encodeNext(s.numberOfIds)),this.fieldIndex=a}}catch(t){f.e(t)}finally{f.f()}this.fieldIndex=i}return e}}]),r}(De);function Me(t){return"string"==typeof t||t instanceof String}function Ke(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var ze=function(t){w(r,t);var e=Ke(r);function r(){var t;return n(this,r),(t=e.call(this)).schema=he,t}return u(r,[{key:"addHasSyncedIndicatorIfRequired",value:function(t){var e=void 0!==t.sync;t.hasSynced=e?1:0}},{key:"convertISODateStringsToDates",value:function(t){var e=t.created,n=t.updated,r=t.sync;Me(e)&&(t.created=new Date(e)),Me(n)&&(t.updated=new Date(n)),r&&Me(r)&&(t.sync=new Date(r))}},{key:"encode",value:function(t){this.fieldIndex=0;var e=new p;for(this.addHasSyncedIndicatorIfRequired(t),this.convertISODateStringsToDates(t);this.fieldIndex<this.schema.fields.length;){var n=this.schema.fields[this.fieldIndex];if(n instanceof X){var r=t[n.key];void 0!==r?e.add(this.encodeNext(r)):this.fieldIndex++}else if(n instanceof tt){var i=n.value;e.add(this.encodeNext(i))}}return e}}]),r}(De),Ce={BitFieldSubSection:new Ne,FibonacciSubSection:new Ue,RangeSubSection:new Pe,HeaderSubSection:new ze};function Te(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Le(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function Le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var _e=function(){function t(){n(this,t),m(this,"fieldMapping",Oe),m(this,"subSectionMapping",Ce)}return u(t,[{key:"setupSubSectionSchema",value:function(){if(Array.isArray(this.schema.variants)){var t,e=Te(this.schema.variants);try{for(e.s();!(t=e.n()).done;){var n=t.value;this.subSectionMapping[n.name].setSchema(n)}}catch(t){e.e(t)}finally{e.f()}}else{var r=this.schema.variants;this.subSectionMapping[r.name].setSchema(r)}}},{key:"encode",value:function(t){var e=new p,n=new p,r="",i=-1;if(this.setupSubSectionSchema(),Array.isArray(this.schema.variants)){var o,u=Te(this.schema.variants);try{for(u.s();!(o=u.n()).done;){var c=o.value.name,a=this.subSectionMapping[c].encode(t);(-1===i||i>a.size)&&(e=a,r=c,i=a.size)}}catch(t){u.e(t)}finally{u.f()}}else{r=this.schema.variants.name,i=(e=this.subSectionMapping[r].encode(t)).size}if(this.schema.fields&&this.schema.fields.length>0){var f=this.schema.fields[0];n=this.fieldMapping[f.name].encode(r)}return n.add(e)}},{key:"setSchema",value:function(t){this.schema=t}},{key:"getSchema",value:function(){return this.schema}}]),t}();function He(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var Ve=function(t){w(r,t);var e=He(r);function r(){var t;return n(this,r),(t=e.call(this)).schema=new L(he),t}return u(r)}(_e);function $e(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return I(this,n)}}var qe=function(t){w(r,t);var e=$e(r);function r(){var t;return n(this,r),(t=e.call(this)).schema=new H([new Pt],[ue]),t}return u(r)}(_e),Ze={Header:new Ve,PurposesConsent:new qe,PurposesLegitimateInterest:new qe,VendorsConsent:new qe,VendorsLegitimateInterest:new qe};function Ge(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Je(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Je(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function Je(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Qe=function(){function t(e,r,i){n(this,t),this.userStatus=e,this.version=r,this.options=i,this.schema=pe[r]}return u(t,[{key:"encode",value:function(){var t=new p;if(!this.userStatus)return t.toBase64();var e,n=Ge(this.schema.sections);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=Ze[r.name];i.setSchema(r);var o=r.key;if(o){var u=this.userStatus[o],c=new M(u.enabled,u.disabled),a=i;t.add(a.encode(c))}else{var f=this.userStatus,s=i;t.add(s.encode(f))}}}catch(t){n.e(t)}finally{n.f()}return t.toBase64()}}]),t}();DcsEncoderModule=e})();
|