Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dcard/web-ad-tracking-sdk

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dcard/web-ad-tracking-sdk - npm Package Compare versions

Comparing version 2.4.3 to 2.5.0

4

build/dadk.iife.js

@@ -1,2 +0,2 @@

!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){if(this instanceof t){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(e,n))}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}var r=Array.isArray,o=e(r);const i=(c={queue:o,_initialized:t=>!0===t},t=>{if(!function(t){return null!=t}(t))return!1;try{return Object.entries(c).every((e=>{let[n,r]=e;return r(t[n])}))}catch(t){return!1}});var c;const a="dadk";function u(){if("undefined"==typeof window)return;const t=window[a];return function(t){return"function"==typeof t}(e=t)&&i(e)?t:void 0;var e}function f(){if("undefined"==typeof window)return;const t=window[a];if("function"!=typeof t)return;const e=t.queue;return o(e)?e:void 0}var l=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};var s=function(t){return function(e,n,r){for(var o=-1,i=Object(e),c=r(e),a=c.length;a--;){var u=c[t?a:++o];if(!1===n(i[u],u,i))break}return e}}();var d=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},p="object"==typeof t&&t&&t.Object===Object&&t,y=p,v="object"==typeof self&&self&&self.Object===Object&&self,h=y||v||Function("return this")(),b=h.Symbol,w=b,g=Object.prototype,_=g.hasOwnProperty,m=g.toString,j=w?w.toStringTag:void 0;var O=function(t){var e=_.call(t,j),n=t[j];try{t[j]=void 0;var r=!0}catch(t){}var o=m.call(t);return r&&(e?t[j]=n:delete t[j]),o},S=Object.prototype.toString;var P=O,A=function(t){return S.call(t)},x=b?b.toStringTag:void 0;var E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?P(t):A(t)};var I=function(t){return null!=t&&"object"==typeof t},T=E,C=I;var k=function(t){return C(t)&&"[object Arguments]"==T(t)},M=I,D=Object.prototype,F=D.hasOwnProperty,R=D.propertyIsEnumerable,L=k(function(){return arguments}())?k:function(t){return M(t)&&F.call(t,"callee")&&!R.call(t,"callee")},U=L,V={exports:{}};var N=function(){return!1};!function(t,e){var n=h,r=N,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||r;t.exports=a}(V,V.exports);var B=V.exports,$=/^(?:0|[1-9]\d*)$/;var z=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&$.test(t))&&t>-1&&t%1==0&&t<e};var H=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},q=E,G=H,J=I,K={};K["[object Float32Array]"]=K["[object Float64Array]"]=K["[object Int8Array]"]=K["[object Int16Array]"]=K["[object Int32Array]"]=K["[object Uint8Array]"]=K["[object Uint8ClampedArray]"]=K["[object Uint16Array]"]=K["[object Uint32Array]"]=!0,K["[object Arguments]"]=K["[object Array]"]=K["[object ArrayBuffer]"]=K["[object Boolean]"]=K["[object DataView]"]=K["[object Date]"]=K["[object Error]"]=K["[object Function]"]=K["[object Map]"]=K["[object Number]"]=K["[object Object]"]=K["[object RegExp]"]=K["[object Set]"]=K["[object String]"]=K["[object WeakMap]"]=!1;var Q=function(t){return J(t)&&G(t.length)&&!!K[q(t)]};var W=function(t){return function(e){return t(e)}},X={exports:{}};!function(t,e){var n=p,r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,i=o&&o.exports===r&&n.process,c=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=c}(X,X.exports);var Y=X.exports,Z=Q,tt=W,et=Y&&Y.isTypedArray,nt=et?tt(et):Z,rt=d,ot=U,it=r,ct=B,at=z,ut=nt,ft=Object.prototype.hasOwnProperty;var lt=function(t,e){var n=it(t),r=!n&&ot(t),o=!n&&!r&&ct(t),i=!n&&!r&&!o&&ut(t),c=n||r||o||i,a=c?rt(t.length,String):[],u=a.length;for(var f in t)!e&&!ft.call(t,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||at(f,u))||a.push(f);return a},st=Object.prototype;var dt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||st)};var pt=function(t,e){return function(n){return t(e(n))}},yt=pt(Object.keys,Object),vt=dt,ht=yt,bt=Object.prototype.hasOwnProperty;var wt=function(t){if(!vt(t))return ht(t);var e=[];for(var n in Object(t))bt.call(t,n)&&"constructor"!=n&&e.push(n);return e};var gt=E,_t=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var mt=function(t){if(!_t(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},jt=e(mt),Ot=mt,St=H;var Pt=function(t){return null!=t&&St(t.length)&&!Ot(t)},At=lt,xt=wt,Et=Pt;var It=s,Tt=function(t){return Et(t)?At(t):xt(t)};var Ct=Pt;var kt=function(t,e){return function(n,r){if(null==n)return n;if(!Ct(n))return t(n,r);for(var o=n.length,i=e?o:-1,c=Object(n);(e?i--:++i<o)&&!1!==r(c[i],i,c););return n}}((function(t,e){return t&&It(t,e,Tt)}));var Mt=function(t){return t};var Dt=l,Ft=kt,Rt=function(t){return"function"==typeof t?t:Mt},Lt=r;var Ut,Vt=e((function(t,e){return(Lt(t)?Dt:Ft)(t,Rt(e))})),Nt=new Uint8Array(16);function Bt(){if(!Ut&&!(Ut="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ut(Nt)}var $t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var zt=[],Ht=0;Ht<256;++Ht)zt.push((Ht+256).toString(16).substr(1));function qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(zt[t[e+0]]+zt[t[e+1]]+zt[t[e+2]]+zt[t[e+3]]+"-"+zt[t[e+4]]+zt[t[e+5]]+"-"+zt[t[e+6]]+zt[t[e+7]]+"-"+zt[t[e+8]]+zt[t[e+9]]+"-"+zt[t[e+10]]+zt[t[e+11]]+zt[t[e+12]]+zt[t[e+13]]+zt[t[e+14]]+zt[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&$t.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n}function Gt(t,e,n){var r=(t=t||{}).random||(t.rng||Bt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return qt(r)}var Jt=function(t,e){return Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Jt(t,e)};function Kt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Jt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Qt=function(){return Qt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Qt.apply(this,arguments)};function Wt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function Xt(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c}function Yt(t,e){return function(n,r){e(n,r,t)}}function Zt(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function te(t,e,n,r){return new(n||(n=Promise))((function(o,i){function c(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,a)}u((r=r.apply(t,e||[])).next())}))}function ee(t,e){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}var ne=Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function re(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||ne(e,t,n)}function oe(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),c=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}function ce(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(ie(arguments[e]));return t}function ae(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],c=0,a=i.length;c<a;c++,o++)r[o]=i[c];return r}function ue(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function fe(t){return this instanceof fe?(this.v=t,this):new fe(t)}function le(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},c("next"),c("throw"),c("return"),r[Symbol.asyncIterator]=function(){return this},r;function c(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof fe?Promise.resolve(n.value.v).then(u,f):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function u(t){a("next",t)}function f(t){a("throw",t)}function l(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function se(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:fe(t[r](e)),done:!1}:o?o(e):e}:o}}function de(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=oe(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function pe(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var ye=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function ve(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&ne(e,t,n);return ye(e,t),e}function he(t){return t&&t.__esModule?t:{default:t}}function be(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function we(t,e,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,n):o?o.value=n:e.set(t,n),n}function ge(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}var _e,me={__extends:Kt,__assign:Qt,__rest:Wt,__decorate:Xt,__param:Yt,__metadata:Zt,__awaiter:te,__generator:ee,__createBinding:ne,__exportStar:re,__values:oe,__read:ie,__spread:ce,__spreadArrays:ae,__spreadArray:ue,__await:fe,__asyncGenerator:le,__asyncDelegator:se,__asyncValues:de,__makeTemplateObject:pe,__importStar:ve,__importDefault:he,__classPrivateFieldGet:be,__classPrivateFieldSet:we,__classPrivateFieldIn:ge},je=Object.freeze({__proto__:null,get __assign(){return Qt},__asyncDelegator:se,__asyncGenerator:le,__asyncValues:de,__await:fe,__awaiter:te,__classPrivateFieldGet:be,__classPrivateFieldIn:ge,__classPrivateFieldSet:we,__createBinding:ne,__decorate:Xt,__esDecorate:function(t,e,n,r,o,i){function c(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,u=r.kind,f="getter"===u?"get":"setter"===u?"set":"value",l=!e&&t?r.static?t:t.prototype:null,s=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var y={};for(var v in r)y[v]="access"===v?{}:r[v];for(var v in r.access)y.access[v]=r.access[v];y.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(c(t||null))};var h=(0,n[p])("accessor"===u?{get:s.get,set:s.set}:s[f],y);if("accessor"===u){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(a=c(h.get))&&(s.get=a),(a=c(h.set))&&(s.set=a),(a=c(h.init))&&o.unshift(a)}else(a=c(h))&&("field"===u?o.unshift(a):s[f]=a)}l&&Object.defineProperty(l,r.name,s),d=!0},__exportStar:re,__extends:Kt,__generator:ee,__importDefault:he,__importStar:ve,__makeTemplateObject:pe,__metadata:Zt,__param:Yt,__propKey:function(t){return"symbol"==typeof t?t:"".concat(t)},__read:ie,__rest:Wt,__runInitializers:function(t,e,n){for(var r=arguments.length>2,o=0;o<e.length;o++)n=r?e[o].call(t,n):e[o].call(t);return r?n:void 0},__setFunctionName:function(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})},__spread:ce,__spreadArray:ue,__spreadArrays:ae,__values:oe,default:me}),Oe={},Se=n(je),Pe={},Ae={},xe={};var Ee,Ie,Te,Ce={};function ke(){return Ie||(Ie=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Se;e.__exportStar((_e||(_e=1,Object.defineProperty(xe,"__esModule",{value:!0})),xe),t),e.__exportStar((Ee||(Ee=1,Object.defineProperty(Ce,"__esModule",{value:!0})),Ce),t)}(Ae)),Ae}var Me,De={},Fe={};var Re,Le={};var Ue,Ve,Ne={};function Be(){if(Ve)return De;Ve=1,Object.defineProperty(De,"__esModule",{value:!0}),De.TrackEvent=De.TrackDeviceMetadata=De.InitDevice=void 0;const t=Se;var e;return De.InitDevice=t.__importStar((Me||(Me=1,e=Fe,Object.defineProperty(e,"__esModule",{value:!0}),e.pathname=e.PATHNAME=void 0,e.PATHNAME="/api/v2/devices/init",e.pathname=function(){return e.PATHNAME}),Fe)),De.TrackDeviceMetadata=t.__importStar((Re||(Re=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.pathname=Le.PATHNAME=void 0,Le.PATHNAME="/api/v2/devices/[deviceId]/metadata",Le.pathname=function(t){const{deviceId:e}=t;return`/api/v2/devices/${e}/metadata`}),Le)),De.TrackEvent=t.__importStar(function(){return Ue||(Ue=1,t=Ne,Object.defineProperty(t,"__esModule",{value:!0}),t.pathname=t.PATHNAME=void 0,t.PATHNAME="/api/v2/track",t.pathname=function(){return t.PATHNAME}),Ne;var t}()),De}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.V2=void 0;const e=Se;e.__exportStar((Te||(Te=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Se.__exportStar(ke(),t)}(Pe)),Pe),t),t.V2=e.__importStar(Be())}(Oe);const $e="https://pixel.dcard.tw";function ze(t,e){return te(this,void 0,void 0,(function*(){const n=$e+Oe.V2.InitDevice.pathname();return t(n,Object.assign({},e))}))}function He(t,e){var{deviceId:n}=e,r=Wt(e,["deviceId"]);return te(this,void 0,void 0,(function*(){const e=$e+Oe.V2.TrackDeviceMetadata.pathname({deviceId:n});return t(e,r)}))}function qe(t,e){return te(this,void 0,void 0,(function*(){const n=$e+Oe.V2.TrackEvent.pathname();return t(n,Object.assign({},e))}))}const Ge=(()=>{let t=null;return{get:()=>t,set:e=>{t=e}}})();var Je=E,Ke=r,Qe=I;var We=e((function(t){return"string"==typeof t||!Ke(t)&&Qe(t)&&"[object String]"==Je(t)})),Xe=pt(Object.getPrototypeOf,Object),Ye=E,Ze=Xe,tn=I,en=Function.prototype,nn=Object.prototype,rn=en.toString,on=nn.hasOwnProperty,cn=rn.call(Object);const an=e((function(t){if(!tn(t)||"[object Object]"!=Ye(t))return!1;var e=Ze(t);if(null===e)return!0;var n=on.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&rn.call(n)==cn}));function un(t,e){if(!o(t))return!1;for(let n=0;n<t.length;++n)if(!e(t[n],n,t))return!1;return!0}function fn(t){if(!an(t))return[];const e=[];return Vt(t,((t,n)=>{e.push([n,t])})),e}var ln=E,sn=I;var dn=e((function(t){return!0===t||!1===t||sn(t)&&"[object Boolean]"==ln(t)}));var pn=e((function(t){return null==t})),yn=E,vn=I;var hn=e((function(t){return"number"==typeof t||vn(t)&&"[object Number]"==yn(t)}));var bn=e((function(t){return void 0===t})),wn=h.isFinite;var gn=e((function(t){return"number"==typeof t&&wn(t)}));function _n(t){return gn(t)}const mn="[DADK]";function jn(t,e){const n={};return Vt(t,((r,o)=>{const i=r;if(!function(t,e){return!!an(t)&&Object.prototype.hasOwnProperty.call(t,e)}(e,o))return;const[c,a]=e[o];try{if(bn(i))return;c(i)?n[o]=i:(n[o]=a(i),function(t,e){console.warn(`${mn} the value of the ${String(e)} key is not expected, converting to the required type`,t[e])}(t,o))}catch(e){!function(t,e){console.error(`${mn} Failed to convert the value of the ${String(e)} to the required type`,t[e])}(t,o)}})),n}function On(t){if(!(hn(t)||dn(t)||pn(t)||We(t)))throw new Error("Only primitive types are accepted");return String(t)}function Sn(t){if(!(We(t)||dn(t)||pn(t)||hn(t)))throw new Error("Only primitive types are accepted");const e=Number(t);return e!=e?0:e}function Pn(t){return!!t}const An={contentIds:[function(t){return o(t)&&un(t,(t=>We(t)))},t=>{const e=o(t)?t:[t],n=[];return Vt(e,(t=>{n.push(On(t))})),n}],contents:[function(t){return o(t)&&un(t,(t=>an(t)&&un(fn(t),(t=>{let[,e]=t;return We(e)||_n(e)}))))},t=>{if(bn(t))return[];const e=o(t)?t:[t],n=[];return Vt(e,(t=>{if(!an(t))return;const e={};Vt(t,((t,n)=>{e[n]=We(t)||_n(t)?t:On(t)})),n.push(e)})),n}]},xn=[We,On],En=[_n,Sn],In=[_n,function(t){return Math.floor(Sn(t))}];function Tn(){return{}}function Cn(t){return e=>an(e)?t(e):{}}const kn={AddToCart:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,currency:xn,value:En}))})),AddToWishlist:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,currency:xn,value:xn}))})),CompleteRegistration:Cn((function(t){return jn(t,{contentName:xn,currency:xn,status:[dn,Pn],value:En})})),Contact:Cn(Tn),CustomizeProduct:Cn(Tn),Donate:Cn(Tn),FindLocation:Cn(Tn),InitiateCheckout:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,currency:xn,numItems:In,value:En}))})),Lead:Cn(Tn),PageView:function(t){const e=an(t);if(e&&We(t.url))return t;const n=e?t:{};return Object.assign(Object.assign({},n),{url:window.location.href})},Purchase:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentName:xn,contentType:xn,currency:xn,numItems:In,value:En}))})),Schedule:Cn(Tn),Search:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,currency:xn,searchString:xn,value:En}))})),StartTrial:Cn((function(t){return jn(t,{currency:xn,predictedLtv:En,value:En})})),SubmitApplication:Cn(Tn),Subscribe:Cn((function(t){return jn(t,{currency:xn,predictedLtv:En,value:En})})),ViewContent:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,contentName:xn,contentType:xn,currency:xn,value:En}))}))};
/*! js-cookie v3.0.5 | MIT */function Mn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Dn=function t(e,n){function r(t,r,o){if("undefined"!=typeof document){"number"==typeof(o=Mn({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in o)o[c]&&(i+="; "+c,!0!==o[c]&&(i+="="+o[c].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+i}}return Object.create({set:r,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),c=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=e.read(c,a),t===a)break}catch(t){}}return t?r[t]:r}},remove:function(t,e){r(t,"",Mn({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,Mn({},this.attributes,e))},withConverter:function(e){return t(Mn({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Fn="dcard-adkt-device";function Rn(){return Dn.get(Fn)||!1}function Ln(t){try{"localStorage"in window&&jt(window.localStorage.setItem)&&window.localStorage.setItem(Fn,t)}finally{!function(t){try{Dn.set(Fn,t,{expires:365,secure:!0,sameSite:"Strict"})}catch(t){}}(t)}}function Un(t,e){const n=(e,n)=>{const r=function(t){if(null!=t){if(function(t){return!!t&&"object"==typeof t}(t)){if(Object.keys(t).length<=0)return;return JSON.stringify(t)}return String(t)}}(n);null!=r&&t.append(e,r)};for(const[t,r]of fn(e))Array.isArray(r)?r.forEach((e=>{n(t,e)})):n(t,r);return t}function Vn(t){window.setTimeout((()=>{t()}),0)}var Nn;const Bn=(Nn=void 0,()=>Nn);function $n(t){return te(this,void 0,void 0,(function*(){return new Promise((e=>{window.setTimeout((()=>{e()}),t)}))}))}const zn=20,Hn={};function qn(t){const e=function(t){let{maxDelay:e,retryCountLimit:n}=t;return`${e}-${n}`}(t);return Hn[e]||(Hn[e]=function(t){const{maxDelay:e,retryCountLimit:n}=t,r=[e];let o=e,i=n;for(;i>0&&(o=Math.floor(o/(2+1/n)),!(o<zn));)r.unshift(o),i-=1;return r}(t)),Hn[e]}function Gn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Math.random();const r=qn(e),o=Math.min(t,r.length-2),i=r[o],c=r[o+1]-o+1;return Math.floor(i+n*c)}let Jn="";"undefined"!=typeof window&&(Jn=function(){let t=function(){try{return"localStorage"in window&&jt(window.localStorage.getItem)?window.localStorage.getItem(Fn)||"":Rn()}catch(t){return Rn()}}();return t||(t=Gt(),Ln(t)),t}());let Kn,Qn="";function Wn(){return(new Date).toISOString()}const Xn=(Yn=[(t,e)=>{let n;try{n=new URL(t)}catch(t){return Promise.reject(new Error("Invalid endpoint"))}return new Promise(((t,r)=>{const o=new Image;o.addEventListener("load",(()=>{Vn((()=>{t(!0)}))})),o.addEventListener("error",(()=>{Vn((()=>{r(new Error("Network error"))}))})),Un(n.searchParams,e),o.src=n.toString()}))}],(t,e)=>te(void 0,void 0,void 0,(function*(){Yn.length<=0||(yield function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return te(this,void 0,void 0,(function*(){let n;try{return yield t()}catch(t){n=t}const{maxDelay:r=500,retryCountLimit:o=3}=e;if(o<=0)throw n;for(let e=0;e<o;++e)try{const n=Gn(e,{maxDelay:r,retryCountLimit:o});return yield $n(n),yield t()}catch(t){n=t}throw n}))}((()=>te(void 0,void 0,void 0,(function*(){let n=!1;for(let r=0;r<Yn.length;r++){const o=Yn[r];try{if(n=yield t(o,e),n)break}catch(t){}}if(!n)throw new Error("Failed to send parcel")}))),{maxDelay:1e3,retryCountLimit:2}))})));var Yn;function Zn(){return new URLSearchParams(document.location.search.substring(1)).get("tripid")||""}function tr(t){const{asyncQueue:e}=t;e&&Vt(e,(t=>{er(t)}));const n=function(t){const e=(t||[]).slice(),n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.push(n),er(n)};return n.queue=e,n._initialized=!0,n}(e);return function(t){"undefined"!=typeof window&&(window[a]=t)}(n),n}function er(t){if(o(e=t)&&"init"===e[0]){const[,...e]=t;!function(t){if(Qn===t)return;(function(t){return"string"==typeof t})(t)&&(Qn=t);Xn(ze,{id:Jn,pixel:Qn,createdAt:Wn(),clickId:Zn()}).catch(Bn),function(){return te(this,void 0,void 0,(function*(){const t=Ge.get();let e="";if(!t)return e;try{const n=yield t.load();e=(yield n.get()).visitorId}catch(t){}return e}))}().then((t=>{t&&Xn(He,{deviceId:Jn,fingerprint:t})})).catch(Bn)}(...e)}else{var e;if(!function(t){return o(t)&&"track"===t[0]}(t))throw new Error(`${t[0]} is not an valid command`);{const[,...e]=t;!function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const[r,o]=e;if("PageView"===r)return function(t){const e=kn.PageView(t);if(null!=Kn&&Kn===e.url)return;Kn=e.url,nr("PageView",e)}(o);nr(r,kn[r](o))}(...e)}}}function nr(t,e){Xn(qe,Object.assign(Object.assign({},e),{url:window.location.href,referrer:document.referrer,createdAt:Wn(),deviceId:Jn,pixel:Qn,id:Gt(),type:t})).catch(Bn)}let rr=null;const or={load:()=>(rr||(rr=function(t){return te(this,void 0,void 0,(function*(){const e=document.createElement("script");return e.src=t,e.async=!0,document.head.appendChild(e),new Promise(((n,r)=>{e.addEventListener("load",(()=>{n()})),e.addEventListener("error",(()=>{r(new Error(`Failed to load script: ${t}`))}))}))}))}("https://openfpcdn.io/fingerprintjs/v3/iife.min.js").then((()=>{if(!window.FingerprintJS)throw new Error("Failed to load FingerprintJS");return window.FingerprintJS.load()}))),rr)};const ir=function(){const t=u();if(null==t?void 0:t._initialized)return t;or.load().catch((()=>{})),e=or,Ge.set(e);var e;return function(){const t=tr({asyncQueue:f()});return function(t){if("undefined"==typeof window||window.dadkUrlStateListenerInitiated)return;const e=window.history.pushState,n=window.history.replaceState;window.history.pushState=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.call(window.history,...r),t(window.location.href)},window.history.replaceState=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];n.call(window.history,...r),t(window.location.href)},window.addEventListener("popstate",(function(){t(window.location.href)}),!1),window.dadkUrlStateListenerInitiated=!0}((e=>{t("track","PageView",{url:e})})),t}()}()}();
!function(){"use strict";var t,e,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function o(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}function i(){if(e)return t;e=1;var r=Array.isArray;return t=r}var c=n(i());const u=(a={queue:c,_initialized:t=>!0===t},t=>{if(!function(t){return null!=t}(t))return!1;try{return Object.entries(a).every((([e,r])=>r(t[e])))}catch{return!1}});var a;const f="dadk";function s(){if("undefined"==typeof window)return;const t=window[f];return function(t){return"function"==typeof t}(e=t)&&u(e)?t:void 0;var e}function l(){if("undefined"==typeof window)return;const t=window[f];if("function"!=typeof t)return;const e=t.queue;return c(e)?e:void 0}var p,d,y,v,h,b,w,_,m,g,j,O,S,P,T,E,A,I,C,x,D,k,R,M,F,L;function N(){if(b)return h;b=1;var t=(v?y:(v=1,y=function(t){return function(e,r,n){for(var o=-1,i=Object(e),c=n(e),u=c.length;u--;){var a=c[t?u:++o];if(!1===r(i[a],a,i))break}return e}}))();return h=t}function U(){if(g)return m;g=1;var t="object"==typeof r&&r&&r.Object===Object&&r;return m=t}function V(){if(O)return j;O=1;var t=U(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return j=r}function H(){if(P)return S;P=1;var t=V().Symbol;return S=t}function B(){if(x)return C;x=1;var t=H(),e=function(){if(E)return T;E=1;var t=H(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return T=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var c=!0}catch(t){}var u=n.call(t);return c&&(e?t[o]=i:delete t[o]),u}}(),r=function(){if(I)return A;I=1;var t=Object.prototype.toString;return A=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function z(){if(k)return D;return k=1,D=function(t){return null!=t&&"object"==typeof t}}function $(){if(L)return F;L=1;var t=function(){if(M)return R;M=1;var t=B(),e=z();return R=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=z(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return F=i}var G,q,W,J,K,X,Q,Y,Z,tt,et,rt={exports:{}};function nt(){return W||(W=1,function(t,e){var r=V(),n=q?G:(q=1,G=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||n;t.exports=u}(rt,rt.exports)),rt.exports}function ot(){if(Q)return X;Q=1;return X=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}rt.exports;var it,ct,ut,at,ft,st,lt,pt,dt,yt,vt,ht,bt,wt,_t,mt,gt,jt,Ot,St,Pt,Tt,Et,At,It,Ct,xt,Dt,kt,Rt,Mt,Ft,Lt,Nt={exports:{}};function Ut(){if(ut)return ct;ut=1;var t=function(){if(Z)return Y;Z=1;var t=B(),e=ot(),r=z(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Y=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=et?tt:(et=1,tt=function(t){return function(e){return t(e)}}),r=function(){return it||(it=1,t=Nt,e=Nt.exports,r=U(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,c=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=c),Nt.exports;var t,e,r,n,o,i,c}(),n=r&&r.isTypedArray,o=n?e(n):t;return ct=o}function Vt(){if(ft)return at;ft=1;var t=_?w:(_=1,w=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=$(),r=i(),n=nt(),o=function(){if(K)return J;K=1;var t=/^(?:0|[1-9]\d*)$/;return J=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}(),c=Ut(),u=Object.prototype.hasOwnProperty;return at=function(i,a){var f=r(i),s=!f&&e(i),l=!f&&!s&&n(i),p=!f&&!s&&!l&&c(i),d=f||s||l||p,y=d?t(i.length,String):[],v=y.length;for(var h in i)!a&&!u.call(i,h)||d&&("length"==h||l&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||o(h,v))||y.push(h);return y}}function Ht(){if(dt)return pt;return dt=1,pt=function(t,e){return function(r){return t(e(r))}}}function Bt(){if(bt)return ht;bt=1;var t=function(){if(lt)return st;lt=1;var t=Object.prototype;return st=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}(),e=function(){if(vt)return yt;vt=1;var t=Ht()(Object.keys,Object);return yt=t}(),r=Object.prototype.hasOwnProperty;return ht=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function zt(){if(gt)return mt;gt=1;var t=B(),e=_t?wt:(_t=1,wt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)});return mt=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function $t(){if(Ot)return jt;Ot=1;var t=zt(),e=ot();return jt=function(r){return null!=r&&e(r.length)&&!t(r)}}function Gt(){if(Et)return Tt;Et=1;var t=N(),e=function(){if(Pt)return St;Pt=1;var t=Vt(),e=Bt(),r=$t();return St=function(n){return r(n)?t(n):e(n)}}();return Tt=function(r,n){return r&&t(r,n,e)}}function qt(){if(xt)return Ct;xt=1;var t=Gt(),e=function(){if(It)return At;It=1;var t=$t();return At=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,c=r?i:-1,u=Object(n);(r?c--:++c<i)&&!1!==o(u[c],c,u););return n}}}()(t);return Ct=e}function Wt(){if(Mt)return Rt;Mt=1;var t=kt?Dt:(kt=1,Dt=function(t){return t});return Rt=function(e){return"function"==typeof e?e:t}}Nt.exports;var Jt,Kt=function(){if(Lt)return Ft;Lt=1;var t=d?p:(d=1,p=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),e=qt(),r=Wt(),n=i();return Ft=function(o,i){return(n(o)?t:e)(o,r(i))}}(),Xt=n(Kt),Qt=new Uint8Array(16);function Yt(){if(!Jt&&!(Jt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jt(Qt)}var Zt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var te=[],ee=0;ee<256;++ee)te.push((ee+256).toString(16).substr(1));function re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(te[t[e+0]]+te[t[e+1]]+te[t[e+2]]+te[t[e+3]]+"-"+te[t[e+4]]+te[t[e+5]]+"-"+te[t[e+6]]+te[t[e+7]]+"-"+te[t[e+8]]+te[t[e+9]]+"-"+te[t[e+10]]+te[t[e+11]]+te[t[e+12]]+te[t[e+13]]+te[t[e+14]]+te[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&Zt.test(t)}(r))throw TypeError("Stringified UUID is invalid");return r}function ne(t,e,r){var n=(t=t||{}).random||(t.rng||Yt)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,re(n)}var oe={},ie=function(t,e){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},ie(t,e)};function ce(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ie(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ue=function(){return ue=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ue.apply(this,arguments)};function ae(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function fe(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c}function se(t,e){return function(r,n){e(r,n,t)}}function le(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function pe(t,e,r,n){return new(r||(r=Promise))((function(o,i){function c(t){try{a(n.next(t))}catch(t){i(t)}}function u(t){try{a(n.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,u)}a((n=n.apply(t,e||[])).next())}))}function de(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=u(0),c.throw=u(1),c.return=u(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function u(u){return function(a){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var ye=Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]};function ve(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||ye(e,t,r)}function he(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function be(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),c=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c}function we(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(be(arguments[e]));return t}function _e(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],c=0,u=i.length;c<u;c++,o++)n[o]=i[c];return n}function me(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function ge(t){return this instanceof ge?(this.v=t,this):new ge(t)}function je(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",(function(t){return function(e){return Promise.resolve(e).then(t,f)}})),n[Symbol.asyncIterator]=function(){return this},n;function c(t,e){o[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||u(t,e)}))},e&&(n[t]=e(n[t])))}function u(t,e){try{(r=o[t](e)).value instanceof ge?Promise.resolve(r.value.v).then(a,f):s(i[0][2],r)}catch(t){s(i[0][3],t)}var r}function a(t){u("next",t)}function f(t){u("throw",t)}function s(t,e){t(e),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Oe(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:ge(t[n](e)),done:!1}:o?o(e):e}:o}}function Se(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=he(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,o){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,o,(e=t[r](e)).done,e.value)}))}}}function Pe(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var Te=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function Ee(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&ye(e,t,r);return Te(e,t),e}function Ae(t){return t&&t.__esModule?t:{default:t}}function Ie(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function Ce(t,e,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r}function xe(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function De(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}var ke="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function Re(t){function e(e){t.error=t.hasError?new ke(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function o(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,(function(t){return e(t),o()}))}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}var Me,Fe={__extends:ce,__assign:ue,__rest:ae,__decorate:fe,__param:se,__metadata:le,__awaiter:pe,__generator:de,__createBinding:ye,__exportStar:ve,__values:he,__read:be,__spread:we,__spreadArrays:_e,__spreadArray:me,__await:ge,__asyncGenerator:je,__asyncDelegator:Oe,__asyncValues:Se,__makeTemplateObject:Pe,__importStar:Ee,__importDefault:Ae,__classPrivateFieldGet:Ie,__classPrivateFieldSet:Ce,__classPrivateFieldIn:xe,__addDisposableResource:De,__disposeResources:Re},Le=Object.freeze({__proto__:null,__addDisposableResource:De,get __assign(){return ue},__asyncDelegator:Oe,__asyncGenerator:je,__asyncValues:Se,__await:ge,__awaiter:pe,__classPrivateFieldGet:Ie,__classPrivateFieldIn:xe,__classPrivateFieldSet:Ce,__createBinding:ye,__decorate:fe,__disposeResources:Re,__esDecorate:function(t,e,r,n,o,i){function c(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var u,a=n.kind,f="getter"===a?"get":"setter"===a?"set":"value",s=!e&&t?n.static?t:t.prototype:null,l=e||(s?Object.getOwnPropertyDescriptor(s,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var v in n)y[v]="access"===v?{}:n[v];for(var v in n.access)y.access[v]=n.access[v];y.addInitializer=function(t){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(c(t||null))};var h=(0,r[d])("accessor"===a?{get:l.get,set:l.set}:l[f],y);if("accessor"===a){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(u=c(h.get))&&(l.get=u),(u=c(h.set))&&(l.set=u),(u=c(h.init))&&o.unshift(u)}else(u=c(h))&&("field"===a?o.unshift(u):l[f]=u)}s&&Object.defineProperty(s,n.name,l),p=!0},__exportStar:ve,__extends:ce,__generator:de,__importDefault:Ae,__importStar:Ee,__makeTemplateObject:Pe,__metadata:le,__param:se,__propKey:function(t){return"symbol"==typeof t?t:"".concat(t)},__read:be,__rest:ae,__runInitializers:function(t,e,r){for(var n=arguments.length>2,o=0;o<e.length;o++)r=n?e[o].call(t,r):e[o].call(t);return n?r:void 0},__setFunctionName:function(t,e,r){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})},__spread:we,__spreadArray:me,__spreadArrays:_e,__values:he,default:Fe}),Ne=o(Le),Ue={},Ve={},He={};var Be,ze,$e,Ge={};function qe(){return ze||(ze=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Ne;var r;e.__exportStar((Me||(Me=1,Object.defineProperty(He,"__esModule",{value:!0})),He),t),e.__exportStar((Be||(Be=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.PixelEventType=void 0,function(t){t.PAGE_VIEW="PageView",t.ADD_TO_CART="AddToCart",t.ADD_TO_WISHLIST="AddToWishlist",t.CONTACT="Contact",t.COMPLETE_REGISTRATION="CompleteRegistration",t.CUSTOMIZE_PRODUCT="CustomizeProduct",t.DONATE="Donate",t.FIND_LOCATION="FindLocation",t.INITIATE_CHECKOUT="InitiateCheckout",t.LEAD="Lead",t.PURCHASE="Purchase",t.SCHEDULE="Schedule",t.SEARCH="Search",t.START_TRIAL="StartTrial",t.SUBMIT_APPLICATION="SubmitApplication",t.SUBSCRIBE="Subscribe",t.VIEW_CONTENT="ViewContent"}(r||(Ge.PixelEventType=r={}))),Ge),t)}(Ve)),Ve}var We,Je={},Ke={};var Xe,Qe={};var Ye,Ze,tr,er={};function rr(){if(Ze)return Je;Ze=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.TrackEvent=Je.TrackDeviceMetadata=Je.InitDevice=void 0;const t=Ne;var e;return Je.InitDevice=t.__importStar((We||(We=1,e=Ke,Object.defineProperty(e,"__esModule",{value:!0}),e.PATHNAME=void 0,e.pathname=function(){return e.PATHNAME},e.PATHNAME="/api/v2/devices/init"),Ke)),Je.TrackDeviceMetadata=t.__importStar((Xe||(Xe=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.PATHNAME=void 0,Qe.pathname=function(t){const{deviceId:e}=t;return`/api/v2/devices/${e}/metadata`},Qe.PATHNAME="/api/v2/devices/[deviceId]/metadata"),Qe)),Je.TrackEvent=t.__importStar(function(){return Ye||(Ye=1,t=er,Object.defineProperty(t,"__esModule",{value:!0}),t.PATHNAME=void 0,t.pathname=function(){return t.PATHNAME},t.PATHNAME="/api/v2/track"),er;var t}()),Je}var nr=(tr||(tr=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.V2=void 0;const e=Ne;e.__exportStar(($e||($e=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Ne.__exportStar(qe(),t)}(Ue)),Ue),t),t.V2=e.__importStar(rr())}(oe)),oe);const or="https://pixel.dcard.tw";async function ir(t,e){return t(or+nr.V2.InitDevice.pathname(),{...e})}async function cr(t,{deviceId:e,...r}){return t(or+nr.V2.TrackDeviceMetadata.pathname({deviceId:e}),r)}async function ur(t,e){return t(or+nr.V2.TrackEvent.pathname(),{...e})}const ar=(()=>{let t=null;return{get:()=>t,set:e=>{t=e}}})();var fr,sr;var lr,pr,dr,yr,vr=function(){if(sr)return fr;sr=1;var t=B(),e=i(),r=z();return fr=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),hr=n(vr);const br=n(function(){if(yr)return dr;yr=1;var t=B(),e=function(){if(pr)return lr;pr=1;var t=Ht()(Object.getPrototypeOf,Object);return lr=t}(),r=z(),n=Function.prototype,o=Object.prototype,i=n.toString,c=o.hasOwnProperty,u=i.call(Object);return dr=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var a=c.call(o,"constructor")&&o.constructor;return"function"==typeof a&&a instanceof a&&i.call(a)==u}}());function wr(t,e){if(!c(t))return!1;for(let r=0;r<t.length;++r)if(!e(t[r],r,t))return!1;return!0}function _r(t){if(!br(t))return[];const e=[];return Xt(t,((t,r)=>{e.push([r,t])})),e}var mr,gr;var jr,Or,Sr=n(function(){if(gr)return mr;gr=1;var t=B(),e=z();return mr=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());var Pr,Tr,Er=n(Or?jr:(Or=1,jr=function(t){return null==t}));var Ar,Ir,Cr=n(function(){if(Tr)return Pr;Tr=1;var t=B(),e=z();return Pr=function(r){return"number"==typeof r||e(r)&&"[object Number]"==t(r)}}());var xr,Dr,kr=n(Ir?Ar:(Ir=1,Ar=function(t){return void 0===t}));var Rr=n(function(){if(Dr)return xr;Dr=1;var t=V().isFinite;return xr=function(e){return"number"==typeof e&&t(e)}}());function Mr(t){return Rr(t)}const Fr="[DADK]";function Lr(t,e){const r={};return Xt(t,((n,o)=>{const i=n;if(!function(t,e){return!!br(t)&&Object.prototype.hasOwnProperty.call(t,e)}(e,o))return;const[c,u]=e[o];try{if(kr(i))return;c(i)?r[o]=i:(r[o]=u(i),function(t,e){console.warn(`${Fr} the value of the ${String(e)} key is not expected, converting to the required type`,t[e])}(t,o))}catch(e){!function(t,e){console.error(`${Fr} Failed to convert the value of the ${String(e)} to the required type`,t[e])}(t,o)}})),r}function Nr(t){if(!(Cr(t)||Sr(t)||Er(t)||hr(t)))throw new Error("Only primitive types are accepted");return String(t)}function Ur(t){if(!(hr(t)||Sr(t)||Er(t)||Cr(t)))throw new Error("Only primitive types are accepted");const e=Number(t);return e!=e?0:e}function Vr(t){return!!t}const Hr={contentIds:[function(t){return c(t)&&wr(t,(t=>hr(t)))},t=>{const e=c(t)?t:[t],r=[];return Xt(e,(t=>{r.push(Nr(t))})),r}],contents:[function(t){return c(t)&&wr(t,(t=>br(t)&&wr(_r(t),(([,t])=>hr(t)||Mr(t)))))},t=>{if(kr(t))return[];const e=c(t)?t:[t],r=[];return Xt(e,(t=>{if(!br(t))return;const e={};Xt(t,((t,r)=>{e[r]=hr(t)||Mr(t)?t:Nr(t)})),r.push(e)})),r}]},Br=[hr,Nr],zr=[Mr,Ur],$r=[Mr,function(t){return Math.floor(Ur(t))}];function Gr(){return{}}function qr(t){return e=>br(e)?t(e):{}}const Wr={AddToCart:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,currency:Br,value:zr})})),AddToWishlist:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,currency:Br,value:Br})})),CompleteRegistration:qr((function(t){return Lr(t,{contentName:Br,currency:Br,status:[Sr,Vr],value:zr})})),Contact:qr(Gr),CustomizeProduct:qr(Gr),Donate:qr(Gr),FindLocation:qr(Gr),InitiateCheckout:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,currency:Br,numItems:$r,value:zr})})),Lead:qr(Gr),PageView:function(t){const e=br(t);return e&&hr(t.url)?t:{...e?t:{},url:window.location.href}},Purchase:qr((function(t){return Lr(t,{...Hr,contentName:Br,contentType:Br,currency:Br,numItems:$r,value:zr})})),Schedule:qr(Gr),Search:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,currency:Br,searchString:Br,value:zr})})),StartTrial:qr((function(t){return Lr(t,{currency:Br,predictedLtv:zr,value:zr})})),SubmitApplication:qr(Gr),Subscribe:qr((function(t){return Lr(t,{currency:Br,predictedLtv:zr,value:zr})})),ViewContent:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,contentName:Br,contentType:Br,currency:Br,value:zr})}))};
/*! js-cookie v3.0.5 | MIT */function Jr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var Kr=function t(e,r){function n(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=Jr({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in o)o[c]&&(i+="; "+c,!0!==o[c]&&(i+="="+o[c].split(";")[0]));return document.cookie=t+"="+e.write(n,t)+i}}return Object.create({set:n,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(n[u]=e.read(c,u),t===u)break}catch(t){}}return t?n[t]:n}},remove:function(t,e){n(t,"",Jr({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,Jr({},this.attributes,e))},withConverter:function(e){return t(Jr({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Xr=n(zt());const Qr="dcard-adkt-device";function Yr(){return Kr.get(Qr)||!1}function Zr(t){try{"localStorage"in window&&Xr(window.localStorage.setItem)&&window.localStorage.setItem(Qr,t)}finally{!function(t){try{Kr.set(Qr,t,{expires:365,secure:!0,sameSite:"Strict"})}catch(t){}}(t)}}function tn(t,e){const r=(e,r)=>{const n=function(t){if(null!=t){if(function(t){return!!t&&"object"==typeof t}(t)){if(Object.keys(t).length<=0)return;return JSON.stringify(t)}return String(t)}}(r);null!=n&&t.append(e,n)};for(const[t,n]of _r(e))Array.isArray(n)?n.forEach((e=>{r(t,e)})):r(t,n);return t}function en(t){window.setTimeout((()=>{t()}),0)}var rn;const nn=(rn=void 0,()=>rn);async function on(t){return new Promise((e=>{window.setTimeout((()=>{e()}),t)}))}const cn=20,un={};function an(t){const e=function({maxDelay:t,retryCountLimit:e}){return`${t}-${e}`}(t);return un[e]||(un[e]=function(t){const{maxDelay:e,retryCountLimit:r}=t,n=[e];let o=e,i=r;for(;i>0&&(o=Math.floor(o/(2+1/r)),!(o<cn));)n.unshift(o),i-=1;return n}(t)),un[e]}function fn(t,e,r=Math.random()){const n=an(e),o=Math.min(t,n.length-2),i=n[o],c=n[o+1]-o+1;return Math.floor(i+r*c)}let sn="";"undefined"!=typeof window&&(sn=function(){let t=function(){try{return"localStorage"in window&&Xr(window.localStorage.getItem)?window.localStorage.getItem(Qr)||"":Yr()}catch(t){return Yr()}}();return t||(t=ne(),Zr(t)),t}());let ln,pn="";function dn(){return(new Date).toISOString()}const yn=(vn=[(t,e)=>{let r;try{r=new URL(t)}catch{return Promise.reject(new Error("Invalid endpoint"))}return new Promise(((t,n)=>{const o=new Image;o.addEventListener("load",(()=>{en((()=>{t(!0)}))})),o.addEventListener("error",(()=>{en((()=>{n(new Error("Network error"))}))})),tn(r.searchParams,e),o.src=r.toString()}))}],async(t,e)=>{vn.length<=0||await async function(t,e={}){let r;try{return await t()}catch(t){r=t}const{maxDelay:n=500,retryCountLimit:o=3}=e;if(o<=0)throw r;for(let e=0;e<o;++e)try{const r=fn(e,{maxDelay:n,retryCountLimit:o});return await on(r),await t()}catch(t){r=t}throw r}((async()=>{let r=!1;for(let n=0;n<vn.length;n++){const o=vn[n];try{if(r=await t(o,e),r)break}catch{}}if(!r)throw new Error("Failed to send parcel")}),{maxDelay:1e3,retryCountLimit:2})});var vn;function hn(){return new URLSearchParams(document.location.search.substring(1)).get("tripid")||""}function bn(t){const{asyncQueue:e}=t;e&&Xt(e,(t=>{wn(t)}));const r=function(t){const e=(t||[]).slice(),r=(...t)=>{e.push(t),wn(t)};return r.queue=e,r._initialized=!0,r}(e);return function(t){"undefined"!=typeof window&&(window[f]=t)}(r),r}function wn(t){if(c(e=t)&&"init"===e[0]){const[,...e]=t;!function(t){if(pn===t)return;(function(t){return"string"==typeof t})(t)&&(pn=t);yn(ir,{id:sn,pixel:pn,createdAt:dn(),clickId:hn()}).catch(nn),async function(){const t=ar.get();let e="";if(!t)return e;try{const r=await t.load();e=(await r.get()).visitorId}catch{}return e}().then((t=>{t&&yn(cr,{deviceId:sn,fingerprint:t}).catch(nn)})).catch(nn)}(...e)}else{var e;if(!function(t){return c(t)&&"track"===t[0]}(t))throw new Error(`${t[0]} is not an valid command`);{const[,...e]=t;!function(...t){const[e,r]=t;if("PageView"===e)return function(t){const e=Wr.PageView(t);if(null!=ln&&ln===e.url)return;ln=e.url,_n("PageView",e)}(r);_n(e,Wr[e](r))}(...e)}}}function _n(t,e){yn(ur,{...e,url:window.location.href,referrer:document.referrer,createdAt:dn(),deviceId:sn,pixel:pn,id:ne(),type:t}).catch(nn)}let mn=null;const gn={load:()=>(mn||(mn=async function(t,e){const r=document.createElement("script");return r.src=t,r.async=!0,r.integrity=e,r.crossOrigin="anonymous",document.head.appendChild(r),new Promise(((e,n)=>{r.addEventListener("load",(()=>{e()})),r.addEventListener("error",(()=>{n(new Error(`Failed to load script: ${t}`))}))}))}("https://openfpcdn.io/fingerprintjs/v3.4.2/iife.min.js","sha384-GgRsmtg1axXz1oYH/JAhHd0lR8j2XGTAO1CbNWM7cI2S2ckhcJ6/vwnDjdX+uyed").then((()=>{if(!window.FingerprintJS)throw new Error("Failed to load FingerprintJS");return window.FingerprintJS.load()}))),mn)};(function(){const t=s();if(t?._initialized)return t;gn.load().catch((()=>{})),e=gn,ar.set(e);var e;(function(){const t=bn({asyncQueue:l()});(function(t){if("undefined"==typeof window||window.dadkUrlStateListenerInitiated)return;const e=window.history.pushState,r=window.history.replaceState;window.history.pushState=function(...r){e.call(window.history,...r),t(window.location.href)},window.history.replaceState=function(...e){r.call(window.history,...e),t(window.location.href)},window.addEventListener("popstate",(function(){t(window.location.href)}),!1),window.dadkUrlStateListenerInitiated=!0})((e=>{t("track","PageView",{url:e})}))})()})()}();

@@ -1,2 +0,2 @@

!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){if(this instanceof t){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(e,n))}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}var r=Array.isArray,o=e(r);const i=(c={queue:o,_initialized:t=>!0===t},t=>{if(!function(t){return null!=t}(t))return!1;try{return Object.entries(c).every((e=>{let[n,r]=e;return r(t[n])}))}catch(t){return!1}});var c;const a="dadk";function u(){if("undefined"==typeof window)return;const t=window[a];return function(t){return"function"==typeof t}(e=t)&&i(e)?t:void 0;var e}function f(){if("undefined"==typeof window)return;const t=window[a];if("function"!=typeof t)return;const e=t.queue;return o(e)?e:void 0}var l=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};var s=function(t){return function(e,n,r){for(var o=-1,i=Object(e),c=r(e),a=c.length;a--;){var u=c[t?a:++o];if(!1===n(i[u],u,i))break}return e}}();var d=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},p="object"==typeof t&&t&&t.Object===Object&&t,y=p,v="object"==typeof self&&self&&self.Object===Object&&self,h=y||v||Function("return this")(),b=h.Symbol,w=b,g=Object.prototype,_=g.hasOwnProperty,m=g.toString,j=w?w.toStringTag:void 0;var O=function(t){var e=_.call(t,j),n=t[j];try{t[j]=void 0;var r=!0}catch(t){}var o=m.call(t);return r&&(e?t[j]=n:delete t[j]),o},S=Object.prototype.toString;var P=O,A=function(t){return S.call(t)},x=b?b.toStringTag:void 0;var E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":x&&x in Object(t)?P(t):A(t)};var I=function(t){return null!=t&&"object"==typeof t},T=E,C=I;var k=function(t){return C(t)&&"[object Arguments]"==T(t)},M=I,D=Object.prototype,F=D.hasOwnProperty,R=D.propertyIsEnumerable,L=k(function(){return arguments}())?k:function(t){return M(t)&&F.call(t,"callee")&&!R.call(t,"callee")},U=L,V={exports:{}};var N=function(){return!1};!function(t,e){var n=h,r=N,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||r;t.exports=a}(V,V.exports);var B=V.exports,$=/^(?:0|[1-9]\d*)$/;var z=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&$.test(t))&&t>-1&&t%1==0&&t<e};var H=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},q=E,G=H,J=I,K={};K["[object Float32Array]"]=K["[object Float64Array]"]=K["[object Int8Array]"]=K["[object Int16Array]"]=K["[object Int32Array]"]=K["[object Uint8Array]"]=K["[object Uint8ClampedArray]"]=K["[object Uint16Array]"]=K["[object Uint32Array]"]=!0,K["[object Arguments]"]=K["[object Array]"]=K["[object ArrayBuffer]"]=K["[object Boolean]"]=K["[object DataView]"]=K["[object Date]"]=K["[object Error]"]=K["[object Function]"]=K["[object Map]"]=K["[object Number]"]=K["[object Object]"]=K["[object RegExp]"]=K["[object Set]"]=K["[object String]"]=K["[object WeakMap]"]=!1;var Q=function(t){return J(t)&&G(t.length)&&!!K[q(t)]};var W=function(t){return function(e){return t(e)}},X={exports:{}};!function(t,e){var n=p,r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,i=o&&o.exports===r&&n.process,c=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=c}(X,X.exports);var Y=X.exports,Z=Q,tt=W,et=Y&&Y.isTypedArray,nt=et?tt(et):Z,rt=d,ot=U,it=r,ct=B,at=z,ut=nt,ft=Object.prototype.hasOwnProperty;var lt=function(t,e){var n=it(t),r=!n&&ot(t),o=!n&&!r&&ct(t),i=!n&&!r&&!o&&ut(t),c=n||r||o||i,a=c?rt(t.length,String):[],u=a.length;for(var f in t)!e&&!ft.call(t,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||at(f,u))||a.push(f);return a},st=Object.prototype;var dt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||st)};var pt=function(t,e){return function(n){return t(e(n))}},yt=pt(Object.keys,Object),vt=dt,ht=yt,bt=Object.prototype.hasOwnProperty;var wt=function(t){if(!vt(t))return ht(t);var e=[];for(var n in Object(t))bt.call(t,n)&&"constructor"!=n&&e.push(n);return e};var gt=E,_t=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var mt=function(t){if(!_t(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},jt=e(mt),Ot=mt,St=H;var Pt=function(t){return null!=t&&St(t.length)&&!Ot(t)},At=lt,xt=wt,Et=Pt;var It=s,Tt=function(t){return Et(t)?At(t):xt(t)};var Ct=Pt;var kt=function(t,e){return function(n,r){if(null==n)return n;if(!Ct(n))return t(n,r);for(var o=n.length,i=e?o:-1,c=Object(n);(e?i--:++i<o)&&!1!==r(c[i],i,c););return n}}((function(t,e){return t&&It(t,e,Tt)}));var Mt=function(t){return t};var Dt=l,Ft=kt,Rt=function(t){return"function"==typeof t?t:Mt},Lt=r;var Ut,Vt=e((function(t,e){return(Lt(t)?Dt:Ft)(t,Rt(e))})),Nt=new Uint8Array(16);function Bt(){if(!Ut&&!(Ut="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ut(Nt)}var $t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var zt=[],Ht=0;Ht<256;++Ht)zt.push((Ht+256).toString(16).substr(1));function qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(zt[t[e+0]]+zt[t[e+1]]+zt[t[e+2]]+zt[t[e+3]]+"-"+zt[t[e+4]]+zt[t[e+5]]+"-"+zt[t[e+6]]+zt[t[e+7]]+"-"+zt[t[e+8]]+zt[t[e+9]]+"-"+zt[t[e+10]]+zt[t[e+11]]+zt[t[e+12]]+zt[t[e+13]]+zt[t[e+14]]+zt[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&$t.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n}function Gt(t,e,n){var r=(t=t||{}).random||(t.rng||Bt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return qt(r)}var Jt=function(t,e){return Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Jt(t,e)};function Kt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Jt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Qt=function(){return Qt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Qt.apply(this,arguments)};function Wt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}function Xt(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c}function Yt(t,e){return function(n,r){e(n,r,t)}}function Zt(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function te(t,e,n,r){return new(n||(n=Promise))((function(o,i){function c(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,a)}u((r=r.apply(t,e||[])).next())}))}function ee(t,e){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}var ne=Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function re(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||ne(e,t,n)}function oe(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ie(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),c=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}function ce(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(ie(arguments[e]));return t}function ae(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),o=0;for(e=0;e<n;e++)for(var i=arguments[e],c=0,a=i.length;c<a;c++,o++)r[o]=i[c];return r}function ue(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function fe(t){return this instanceof fe?(this.v=t,this):new fe(t)}function le(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(t,e||[]),i=[];return r={},c("next"),c("throw"),c("return"),r[Symbol.asyncIterator]=function(){return this},r;function c(t){o[t]&&(r[t]=function(e){return new Promise((function(n,r){i.push([t,e,n,r])>1||a(t,e)}))})}function a(t,e){try{(n=o[t](e)).value instanceof fe?Promise.resolve(n.value.v).then(u,f):l(i[0][2],n)}catch(t){l(i[0][3],t)}var n}function u(t){a("next",t)}function f(t){a("throw",t)}function l(t,e){t(e),i.shift(),i.length&&a(i[0][0],i[0][1])}}function se(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:fe(t[r](e)),done:!1}:o?o(e):e}:o}}function de(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=oe(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,o,(e=t[n](e)).done,e.value)}))}}}function pe(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var ye=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function ve(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&ne(e,t,n);return ye(e,t),e}function he(t){return t&&t.__esModule?t:{default:t}}function be(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function we(t,e,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,n):o?o.value=n:e.set(t,n),n}function ge(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}var _e,me={__extends:Kt,__assign:Qt,__rest:Wt,__decorate:Xt,__param:Yt,__metadata:Zt,__awaiter:te,__generator:ee,__createBinding:ne,__exportStar:re,__values:oe,__read:ie,__spread:ce,__spreadArrays:ae,__spreadArray:ue,__await:fe,__asyncGenerator:le,__asyncDelegator:se,__asyncValues:de,__makeTemplateObject:pe,__importStar:ve,__importDefault:he,__classPrivateFieldGet:be,__classPrivateFieldSet:we,__classPrivateFieldIn:ge},je=Object.freeze({__proto__:null,get __assign(){return Qt},__asyncDelegator:se,__asyncGenerator:le,__asyncValues:de,__await:fe,__awaiter:te,__classPrivateFieldGet:be,__classPrivateFieldIn:ge,__classPrivateFieldSet:we,__createBinding:ne,__decorate:Xt,__esDecorate:function(t,e,n,r,o,i){function c(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,u=r.kind,f="getter"===u?"get":"setter"===u?"set":"value",l=!e&&t?r.static?t:t.prototype:null,s=e||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,p=n.length-1;p>=0;p--){var y={};for(var v in r)y[v]="access"===v?{}:r[v];for(var v in r.access)y.access[v]=r.access[v];y.addInitializer=function(t){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(c(t||null))};var h=(0,n[p])("accessor"===u?{get:s.get,set:s.set}:s[f],y);if("accessor"===u){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(a=c(h.get))&&(s.get=a),(a=c(h.set))&&(s.set=a),(a=c(h.init))&&o.unshift(a)}else(a=c(h))&&("field"===u?o.unshift(a):s[f]=a)}l&&Object.defineProperty(l,r.name,s),d=!0},__exportStar:re,__extends:Kt,__generator:ee,__importDefault:he,__importStar:ve,__makeTemplateObject:pe,__metadata:Zt,__param:Yt,__propKey:function(t){return"symbol"==typeof t?t:"".concat(t)},__read:ie,__rest:Wt,__runInitializers:function(t,e,n){for(var r=arguments.length>2,o=0;o<e.length;o++)n=r?e[o].call(t,n):e[o].call(t);return r?n:void 0},__setFunctionName:function(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})},__spread:ce,__spreadArray:ue,__spreadArrays:ae,__values:oe,default:me}),Oe={},Se=n(je),Pe={},Ae={},xe={};var Ee,Ie,Te,Ce={};function ke(){return Ie||(Ie=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Se;e.__exportStar((_e||(_e=1,Object.defineProperty(xe,"__esModule",{value:!0})),xe),t),e.__exportStar((Ee||(Ee=1,Object.defineProperty(Ce,"__esModule",{value:!0})),Ce),t)}(Ae)),Ae}var Me,De={},Fe={};var Re,Le={};var Ue,Ve,Ne={};function Be(){if(Ve)return De;Ve=1,Object.defineProperty(De,"__esModule",{value:!0}),De.TrackEvent=De.TrackDeviceMetadata=De.InitDevice=void 0;const t=Se;var e;return De.InitDevice=t.__importStar((Me||(Me=1,e=Fe,Object.defineProperty(e,"__esModule",{value:!0}),e.pathname=e.PATHNAME=void 0,e.PATHNAME="/api/v2/devices/init",e.pathname=function(){return e.PATHNAME}),Fe)),De.TrackDeviceMetadata=t.__importStar((Re||(Re=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.pathname=Le.PATHNAME=void 0,Le.PATHNAME="/api/v2/devices/[deviceId]/metadata",Le.pathname=function(t){const{deviceId:e}=t;return`/api/v2/devices/${e}/metadata`}),Le)),De.TrackEvent=t.__importStar(function(){return Ue||(Ue=1,t=Ne,Object.defineProperty(t,"__esModule",{value:!0}),t.pathname=t.PATHNAME=void 0,t.PATHNAME="/api/v2/track",t.pathname=function(){return t.PATHNAME}),Ne;var t}()),De}!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.V2=void 0;const e=Se;e.__exportStar((Te||(Te=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Se.__exportStar(ke(),t)}(Pe)),Pe),t),t.V2=e.__importStar(Be())}(Oe);const $e="https://pixel.dcard.tw";function ze(t,e){return te(this,void 0,void 0,(function*(){const n=$e+Oe.V2.InitDevice.pathname();return t(n,Object.assign({},e))}))}function He(t,e){var{deviceId:n}=e,r=Wt(e,["deviceId"]);return te(this,void 0,void 0,(function*(){const e=$e+Oe.V2.TrackDeviceMetadata.pathname({deviceId:n});return t(e,r)}))}function qe(t,e){return te(this,void 0,void 0,(function*(){const n=$e+Oe.V2.TrackEvent.pathname();return t(n,Object.assign({},e))}))}const Ge=(()=>{let t=null;return{get:()=>t,set:e=>{t=e}}})();var Je=E,Ke=r,Qe=I;var We=e((function(t){return"string"==typeof t||!Ke(t)&&Qe(t)&&"[object String]"==Je(t)})),Xe=pt(Object.getPrototypeOf,Object),Ye=E,Ze=Xe,tn=I,en=Function.prototype,nn=Object.prototype,rn=en.toString,on=nn.hasOwnProperty,cn=rn.call(Object);const an=e((function(t){if(!tn(t)||"[object Object]"!=Ye(t))return!1;var e=Ze(t);if(null===e)return!0;var n=on.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&rn.call(n)==cn}));function un(t,e){if(!o(t))return!1;for(let n=0;n<t.length;++n)if(!e(t[n],n,t))return!1;return!0}function fn(t){if(!an(t))return[];const e=[];return Vt(t,((t,n)=>{e.push([n,t])})),e}var ln=E,sn=I;var dn=e((function(t){return!0===t||!1===t||sn(t)&&"[object Boolean]"==ln(t)}));var pn=e((function(t){return null==t})),yn=E,vn=I;var hn=e((function(t){return"number"==typeof t||vn(t)&&"[object Number]"==yn(t)}));var bn=e((function(t){return void 0===t})),wn=h.isFinite;var gn=e((function(t){return"number"==typeof t&&wn(t)}));function _n(t){return gn(t)}const mn="[DADK]";function jn(t,e){const n={};return Vt(t,((r,o)=>{const i=r;if(!function(t,e){return!!an(t)&&Object.prototype.hasOwnProperty.call(t,e)}(e,o))return;const[c,a]=e[o];try{if(bn(i))return;c(i)?n[o]=i:(n[o]=a(i),function(t,e){console.warn(`${mn} the value of the ${String(e)} key is not expected, converting to the required type`,t[e])}(t,o))}catch(e){!function(t,e){console.error(`${mn} Failed to convert the value of the ${String(e)} to the required type`,t[e])}(t,o)}})),n}function On(t){if(!(hn(t)||dn(t)||pn(t)||We(t)))throw new Error("Only primitive types are accepted");return String(t)}function Sn(t){if(!(We(t)||dn(t)||pn(t)||hn(t)))throw new Error("Only primitive types are accepted");const e=Number(t);return e!=e?0:e}function Pn(t){return!!t}const An={contentIds:[function(t){return o(t)&&un(t,(t=>We(t)))},t=>{const e=o(t)?t:[t],n=[];return Vt(e,(t=>{n.push(On(t))})),n}],contents:[function(t){return o(t)&&un(t,(t=>an(t)&&un(fn(t),(t=>{let[,e]=t;return We(e)||_n(e)}))))},t=>{if(bn(t))return[];const e=o(t)?t:[t],n=[];return Vt(e,(t=>{if(!an(t))return;const e={};Vt(t,((t,n)=>{e[n]=We(t)||_n(t)?t:On(t)})),n.push(e)})),n}]},xn=[We,On],En=[_n,Sn],In=[_n,function(t){return Math.floor(Sn(t))}];function Tn(){return{}}function Cn(t){return e=>an(e)?t(e):{}}const kn={AddToCart:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,currency:xn,value:En}))})),AddToWishlist:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,currency:xn,value:xn}))})),CompleteRegistration:Cn((function(t){return jn(t,{contentName:xn,currency:xn,status:[dn,Pn],value:En})})),Contact:Cn(Tn),CustomizeProduct:Cn(Tn),Donate:Cn(Tn),FindLocation:Cn(Tn),InitiateCheckout:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,currency:xn,numItems:In,value:En}))})),Lead:Cn(Tn),PageView:function(t){const e=an(t);if(e&&We(t.url))return t;const n=e?t:{};return Object.assign(Object.assign({},n),{url:window.location.href})},Purchase:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentName:xn,contentType:xn,currency:xn,numItems:In,value:En}))})),Schedule:Cn(Tn),Search:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,currency:xn,searchString:xn,value:En}))})),StartTrial:Cn((function(t){return jn(t,{currency:xn,predictedLtv:En,value:En})})),SubmitApplication:Cn(Tn),Subscribe:Cn((function(t){return jn(t,{currency:xn,predictedLtv:En,value:En})})),ViewContent:Cn((function(t){return jn(t,Object.assign(Object.assign({},An),{contentCategory:xn,contentName:xn,contentType:xn,currency:xn,value:En}))}))};
/*! js-cookie v3.0.5 | MIT */function Mn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Dn=function t(e,n){function r(t,r,o){if("undefined"!=typeof document){"number"==typeof(o=Mn({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in o)o[c]&&(i+="; "+c,!0!==o[c]&&(i+="="+o[c].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+i}}return Object.create({set:r,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),c=i.slice(1).join("=");try{var a=decodeURIComponent(i[0]);if(r[a]=e.read(c,a),t===a)break}catch(t){}}return t?r[t]:r}},remove:function(t,e){r(t,"",Mn({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,Mn({},this.attributes,e))},withConverter:function(e){return t(Mn({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const Fn="dcard-adkt-device";function Rn(){return Dn.get(Fn)||!1}function Ln(t){try{"localStorage"in window&&jt(window.localStorage.setItem)&&window.localStorage.setItem(Fn,t)}finally{!function(t){try{Dn.set(Fn,t,{expires:365,secure:!0,sameSite:"Strict"})}catch(t){}}(t)}}function Un(t,e){const n=(e,n)=>{const r=function(t){if(null!=t){if(function(t){return!!t&&"object"==typeof t}(t)){if(Object.keys(t).length<=0)return;return JSON.stringify(t)}return String(t)}}(n);null!=r&&t.append(e,r)};for(const[t,r]of fn(e))Array.isArray(r)?r.forEach((e=>{n(t,e)})):n(t,r);return t}function Vn(t){window.setTimeout((()=>{t()}),0)}var Nn;const Bn=(Nn=void 0,()=>Nn);function $n(t){return te(this,void 0,void 0,(function*(){return new Promise((e=>{window.setTimeout((()=>{e()}),t)}))}))}const zn=20,Hn={};function qn(t){const e=function(t){let{maxDelay:e,retryCountLimit:n}=t;return`${e}-${n}`}(t);return Hn[e]||(Hn[e]=function(t){const{maxDelay:e,retryCountLimit:n}=t,r=[e];let o=e,i=n;for(;i>0&&(o=Math.floor(o/(2+1/n)),!(o<zn));)r.unshift(o),i-=1;return r}(t)),Hn[e]}function Gn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Math.random();const r=qn(e),o=Math.min(t,r.length-2),i=r[o],c=r[o+1]-o+1;return Math.floor(i+n*c)}let Jn="";"undefined"!=typeof window&&(Jn=function(){let t=function(){try{return"localStorage"in window&&jt(window.localStorage.getItem)?window.localStorage.getItem(Fn)||"":Rn()}catch(t){return Rn()}}();return t||(t=Gt(),Ln(t)),t}());let Kn,Qn="";function Wn(){return(new Date).toISOString()}const Xn=(Yn=[(t,e)=>{let n;try{n=new URL(t)}catch(t){return Promise.reject(new Error("Invalid endpoint"))}return new Promise(((t,r)=>{const o=new Image;o.addEventListener("load",(()=>{Vn((()=>{t(!0)}))})),o.addEventListener("error",(()=>{Vn((()=>{r(new Error("Network error"))}))})),Un(n.searchParams,e),o.src=n.toString()}))}],(t,e)=>te(void 0,void 0,void 0,(function*(){Yn.length<=0||(yield function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return te(this,void 0,void 0,(function*(){let n;try{return yield t()}catch(t){n=t}const{maxDelay:r=500,retryCountLimit:o=3}=e;if(o<=0)throw n;for(let e=0;e<o;++e)try{const n=Gn(e,{maxDelay:r,retryCountLimit:o});return yield $n(n),yield t()}catch(t){n=t}throw n}))}((()=>te(void 0,void 0,void 0,(function*(){let n=!1;for(let r=0;r<Yn.length;r++){const o=Yn[r];try{if(n=yield t(o,e),n)break}catch(t){}}if(!n)throw new Error("Failed to send parcel")}))),{maxDelay:1e3,retryCountLimit:2}))})));var Yn;function Zn(){return new URLSearchParams(document.location.search.substring(1)).get("tripid")||""}function tr(t){const{asyncQueue:e}=t;e&&Vt(e,(t=>{er(t)}));const n=function(t){const e=(t||[]).slice(),n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.push(n),er(n)};return n.queue=e,n._initialized=!0,n}(e);return function(t){"undefined"!=typeof window&&(window[a]=t)}(n),n}function er(t){if(o(e=t)&&"init"===e[0]){const[,...e]=t;!function(t){if(Qn===t)return;(function(t){return"string"==typeof t})(t)&&(Qn=t);Xn(ze,{id:Jn,pixel:Qn,createdAt:Wn(),clickId:Zn()}).catch(Bn),function(){return te(this,void 0,void 0,(function*(){const t=Ge.get();let e="";if(!t)return e;try{const n=yield t.load();e=(yield n.get()).visitorId}catch(t){}return e}))}().then((t=>{t&&Xn(He,{deviceId:Jn,fingerprint:t})})).catch(Bn)}(...e)}else{var e;if(!function(t){return o(t)&&"track"===t[0]}(t))throw new Error(`${t[0]} is not an valid command`);{const[,...e]=t;!function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const[r,o]=e;if("PageView"===r)return function(t){const e=kn.PageView(t);if(null!=Kn&&Kn===e.url)return;Kn=e.url,nr("PageView",e)}(o);nr(r,kn[r](o))}(...e)}}}function nr(t,e){Xn(qe,Object.assign(Object.assign({},e),{url:window.location.href,referrer:document.referrer,createdAt:Wn(),deviceId:Jn,pixel:Qn,id:Gt(),type:t})).catch(Bn)}let rr=null;const or={load:()=>(rr||(rr=function(t){return te(this,void 0,void 0,(function*(){const e=document.createElement("script");return e.src=t,e.async=!0,document.head.appendChild(e),new Promise(((n,r)=>{e.addEventListener("load",(()=>{n()})),e.addEventListener("error",(()=>{r(new Error(`Failed to load script: ${t}`))}))}))}))}("https://openfpcdn.io/fingerprintjs/v3/iife.min.js").then((()=>{if(!window.FingerprintJS)throw new Error("Failed to load FingerprintJS");return window.FingerprintJS.load()}))),rr)};const ir=function(){const t=u();if(null==t?void 0:t._initialized)return t;or.load().catch((()=>{})),e=or,Ge.set(e);var e;return function(){const t=tr({asyncQueue:f()});return function(t){if("undefined"==typeof window||window.dadkUrlStateListenerInitiated)return;const e=window.history.pushState,n=window.history.replaceState;window.history.pushState=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.call(window.history,...r),t(window.location.href)},window.history.replaceState=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];n.call(window.history,...r),t(window.location.href)},window.addEventListener("popstate",(function(){t(window.location.href)}),!1),window.dadkUrlStateListenerInitiated=!0}((e=>{t("track","PageView",{url:e})})),t}()}()}();
!function(){"use strict";var t,e,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function o(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),r}function i(){if(e)return t;e=1;var r=Array.isArray;return t=r}var c=n(i());const u=(a={queue:c,_initialized:t=>!0===t},t=>{if(!function(t){return null!=t}(t))return!1;try{return Object.entries(a).every((([e,r])=>r(t[e])))}catch{return!1}});var a;const f="dadk";function s(){if("undefined"==typeof window)return;const t=window[f];return function(t){return"function"==typeof t}(e=t)&&u(e)?t:void 0;var e}function l(){if("undefined"==typeof window)return;const t=window[f];if("function"!=typeof t)return;const e=t.queue;return c(e)?e:void 0}var p,d,y,v,h,b,w,_,m,g,j,O,S,P,T,E,A,I,C,x,D,k,R,M,F,L;function N(){if(b)return h;b=1;var t=(v?y:(v=1,y=function(t){return function(e,r,n){for(var o=-1,i=Object(e),c=n(e),u=c.length;u--;){var a=c[t?u:++o];if(!1===r(i[a],a,i))break}return e}}))();return h=t}function U(){if(g)return m;g=1;var t="object"==typeof r&&r&&r.Object===Object&&r;return m=t}function V(){if(O)return j;O=1;var t=U(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return j=r}function H(){if(P)return S;P=1;var t=V().Symbol;return S=t}function B(){if(x)return C;x=1;var t=H(),e=function(){if(E)return T;E=1;var t=H(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return T=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var c=!0}catch(t){}var u=n.call(t);return c&&(e?t[o]=i:delete t[o]),u}}(),r=function(){if(I)return A;I=1;var t=Object.prototype.toString;return A=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function z(){if(k)return D;return k=1,D=function(t){return null!=t&&"object"==typeof t}}function $(){if(L)return F;L=1;var t=function(){if(M)return R;M=1;var t=B(),e=z();return R=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=z(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return F=i}var G,q,W,J,K,X,Q,Y,Z,tt,et,rt={exports:{}};function nt(){return W||(W=1,function(t,e){var r=V(),n=q?G:(q=1,G=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o?r.Buffer:void 0,u=(c?c.isBuffer:void 0)||n;t.exports=u}(rt,rt.exports)),rt.exports}function ot(){if(Q)return X;Q=1;return X=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}rt.exports;var it,ct,ut,at,ft,st,lt,pt,dt,yt,vt,ht,bt,wt,_t,mt,gt,jt,Ot,St,Pt,Tt,Et,At,It,Ct,xt,Dt,kt,Rt,Mt,Ft,Lt,Nt={exports:{}};function Ut(){if(ut)return ct;ut=1;var t=function(){if(Z)return Y;Z=1;var t=B(),e=ot(),r=z(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,Y=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=et?tt:(et=1,tt=function(t){return function(e){return t(e)}}),r=function(){return it||(it=1,t=Nt,e=Nt.exports,r=U(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,c=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=c),Nt.exports;var t,e,r,n,o,i,c}(),n=r&&r.isTypedArray,o=n?e(n):t;return ct=o}function Vt(){if(ft)return at;ft=1;var t=_?w:(_=1,w=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=$(),r=i(),n=nt(),o=function(){if(K)return J;K=1;var t=/^(?:0|[1-9]\d*)$/;return J=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}(),c=Ut(),u=Object.prototype.hasOwnProperty;return at=function(i,a){var f=r(i),s=!f&&e(i),l=!f&&!s&&n(i),p=!f&&!s&&!l&&c(i),d=f||s||l||p,y=d?t(i.length,String):[],v=y.length;for(var h in i)!a&&!u.call(i,h)||d&&("length"==h||l&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||o(h,v))||y.push(h);return y}}function Ht(){if(dt)return pt;return dt=1,pt=function(t,e){return function(r){return t(e(r))}}}function Bt(){if(bt)return ht;bt=1;var t=function(){if(lt)return st;lt=1;var t=Object.prototype;return st=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}(),e=function(){if(vt)return yt;vt=1;var t=Ht()(Object.keys,Object);return yt=t}(),r=Object.prototype.hasOwnProperty;return ht=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o}}function zt(){if(gt)return mt;gt=1;var t=B(),e=_t?wt:(_t=1,wt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)});return mt=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function $t(){if(Ot)return jt;Ot=1;var t=zt(),e=ot();return jt=function(r){return null!=r&&e(r.length)&&!t(r)}}function Gt(){if(Et)return Tt;Et=1;var t=N(),e=function(){if(Pt)return St;Pt=1;var t=Vt(),e=Bt(),r=$t();return St=function(n){return r(n)?t(n):e(n)}}();return Tt=function(r,n){return r&&t(r,n,e)}}function qt(){if(xt)return Ct;xt=1;var t=Gt(),e=function(){if(It)return At;It=1;var t=$t();return At=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,c=r?i:-1,u=Object(n);(r?c--:++c<i)&&!1!==o(u[c],c,u););return n}}}()(t);return Ct=e}function Wt(){if(Mt)return Rt;Mt=1;var t=kt?Dt:(kt=1,Dt=function(t){return t});return Rt=function(e){return"function"==typeof e?e:t}}Nt.exports;var Jt,Kt=function(){if(Lt)return Ft;Lt=1;var t=d?p:(d=1,p=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}),e=qt(),r=Wt(),n=i();return Ft=function(o,i){return(n(o)?t:e)(o,r(i))}}(),Xt=n(Kt),Qt=new Uint8Array(16);function Yt(){if(!Jt&&!(Jt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jt(Qt)}var Zt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var te=[],ee=0;ee<256;++ee)te.push((ee+256).toString(16).substr(1));function re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(te[t[e+0]]+te[t[e+1]]+te[t[e+2]]+te[t[e+3]]+"-"+te[t[e+4]]+te[t[e+5]]+"-"+te[t[e+6]]+te[t[e+7]]+"-"+te[t[e+8]]+te[t[e+9]]+"-"+te[t[e+10]]+te[t[e+11]]+te[t[e+12]]+te[t[e+13]]+te[t[e+14]]+te[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&Zt.test(t)}(r))throw TypeError("Stringified UUID is invalid");return r}function ne(t,e,r){var n=(t=t||{}).random||(t.rng||Yt)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,re(n)}var oe={},ie=function(t,e){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},ie(t,e)};function ce(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}ie(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ue=function(){return ue=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ue.apply(this,arguments)};function ae(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function fe(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c}function se(t,e){return function(r,n){e(r,n,t)}}function le(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function pe(t,e,r,n){return new(r||(r=Promise))((function(o,i){function c(t){try{a(n.next(t))}catch(t){i(t)}}function u(t){try{a(n.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(c,u)}a((n=n.apply(t,e||[])).next())}))}function de(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=u(0),c.throw=u(1),c.return=u(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function u(u){return function(a){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var ye=Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]};function ve(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||ye(e,t,r)}function he(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function be(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),c=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c}function we(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(be(arguments[e]));return t}function _e(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],c=0,u=i.length;c<u;c++,o++)n[o]=i[c];return n}function me(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function ge(t){return this instanceof ge?(this.v=t,this):new ge(t)}function je(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",(function(t){return function(e){return Promise.resolve(e).then(t,f)}})),n[Symbol.asyncIterator]=function(){return this},n;function c(t,e){o[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||u(t,e)}))},e&&(n[t]=e(n[t])))}function u(t,e){try{(r=o[t](e)).value instanceof ge?Promise.resolve(r.value.v).then(a,f):s(i[0][2],r)}catch(t){s(i[0][3],t)}var r}function a(t){u("next",t)}function f(t){u("throw",t)}function s(t,e){t(e),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Oe(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:ge(t[n](e)),done:!1}:o?o(e):e}:o}}function Se(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=he(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,o){(function(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)})(n,o,(e=t[r](e)).done,e.value)}))}}}function Pe(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var Te=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function Ee(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&ye(e,t,r);return Te(e,t),e}function Ae(t){return t&&t.__esModule?t:{default:t}}function Ie(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)}function Ce(t,e,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(t,r):o?o.value=r:e.set(t,r),r}function xe(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function De(t,e,r){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}var ke="function"==typeof SuppressedError?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function Re(t){function e(e){t.error=t.hasError?new ke(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var r,n=0;return function o(){for(;r=t.stack.pop();)try{if(!r.async&&1===n)return n=0,t.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,(function(t){return e(t),o()}))}else n|=1}catch(t){e(t)}if(1===n)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}var Me,Fe={__extends:ce,__assign:ue,__rest:ae,__decorate:fe,__param:se,__metadata:le,__awaiter:pe,__generator:de,__createBinding:ye,__exportStar:ve,__values:he,__read:be,__spread:we,__spreadArrays:_e,__spreadArray:me,__await:ge,__asyncGenerator:je,__asyncDelegator:Oe,__asyncValues:Se,__makeTemplateObject:Pe,__importStar:Ee,__importDefault:Ae,__classPrivateFieldGet:Ie,__classPrivateFieldSet:Ce,__classPrivateFieldIn:xe,__addDisposableResource:De,__disposeResources:Re},Le=Object.freeze({__proto__:null,__addDisposableResource:De,get __assign(){return ue},__asyncDelegator:Oe,__asyncGenerator:je,__asyncValues:Se,__await:ge,__awaiter:pe,__classPrivateFieldGet:Ie,__classPrivateFieldIn:xe,__classPrivateFieldSet:Ce,__createBinding:ye,__decorate:fe,__disposeResources:Re,__esDecorate:function(t,e,r,n,o,i){function c(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var u,a=n.kind,f="getter"===a?"get":"setter"===a?"set":"value",s=!e&&t?n.static?t:t.prototype:null,l=e||(s?Object.getOwnPropertyDescriptor(s,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var v in n)y[v]="access"===v?{}:n[v];for(var v in n.access)y.access[v]=n.access[v];y.addInitializer=function(t){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(c(t||null))};var h=(0,r[d])("accessor"===a?{get:l.get,set:l.set}:l[f],y);if("accessor"===a){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(u=c(h.get))&&(l.get=u),(u=c(h.set))&&(l.set=u),(u=c(h.init))&&o.unshift(u)}else(u=c(h))&&("field"===a?o.unshift(u):l[f]=u)}s&&Object.defineProperty(s,n.name,l),p=!0},__exportStar:ve,__extends:ce,__generator:de,__importDefault:Ae,__importStar:Ee,__makeTemplateObject:Pe,__metadata:le,__param:se,__propKey:function(t){return"symbol"==typeof t?t:"".concat(t)},__read:be,__rest:ae,__runInitializers:function(t,e,r){for(var n=arguments.length>2,o=0;o<e.length;o++)r=n?e[o].call(t,r):e[o].call(t);return n?r:void 0},__setFunctionName:function(t,e,r){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})},__spread:we,__spreadArray:me,__spreadArrays:_e,__values:he,default:Fe}),Ne=o(Le),Ue={},Ve={},He={};var Be,ze,$e,Ge={};function qe(){return ze||(ze=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});const e=Ne;var r;e.__exportStar((Me||(Me=1,Object.defineProperty(He,"__esModule",{value:!0})),He),t),e.__exportStar((Be||(Be=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.PixelEventType=void 0,function(t){t.PAGE_VIEW="PageView",t.ADD_TO_CART="AddToCart",t.ADD_TO_WISHLIST="AddToWishlist",t.CONTACT="Contact",t.COMPLETE_REGISTRATION="CompleteRegistration",t.CUSTOMIZE_PRODUCT="CustomizeProduct",t.DONATE="Donate",t.FIND_LOCATION="FindLocation",t.INITIATE_CHECKOUT="InitiateCheckout",t.LEAD="Lead",t.PURCHASE="Purchase",t.SCHEDULE="Schedule",t.SEARCH="Search",t.START_TRIAL="StartTrial",t.SUBMIT_APPLICATION="SubmitApplication",t.SUBSCRIBE="Subscribe",t.VIEW_CONTENT="ViewContent"}(r||(Ge.PixelEventType=r={}))),Ge),t)}(Ve)),Ve}var We,Je={},Ke={};var Xe,Qe={};var Ye,Ze,tr,er={};function rr(){if(Ze)return Je;Ze=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.TrackEvent=Je.TrackDeviceMetadata=Je.InitDevice=void 0;const t=Ne;var e;return Je.InitDevice=t.__importStar((We||(We=1,e=Ke,Object.defineProperty(e,"__esModule",{value:!0}),e.PATHNAME=void 0,e.pathname=function(){return e.PATHNAME},e.PATHNAME="/api/v2/devices/init"),Ke)),Je.TrackDeviceMetadata=t.__importStar((Xe||(Xe=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.PATHNAME=void 0,Qe.pathname=function(t){const{deviceId:e}=t;return`/api/v2/devices/${e}/metadata`},Qe.PATHNAME="/api/v2/devices/[deviceId]/metadata"),Qe)),Je.TrackEvent=t.__importStar(function(){return Ye||(Ye=1,t=er,Object.defineProperty(t,"__esModule",{value:!0}),t.PATHNAME=void 0,t.pathname=function(){return t.PATHNAME},t.PATHNAME="/api/v2/track"),er;var t}()),Je}var nr=(tr||(tr=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.V2=void 0;const e=Ne;e.__exportStar(($e||($e=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Ne.__exportStar(qe(),t)}(Ue)),Ue),t),t.V2=e.__importStar(rr())}(oe)),oe);const or="https://pixel.dcard.tw";async function ir(t,e){return t(or+nr.V2.InitDevice.pathname(),{...e})}async function cr(t,{deviceId:e,...r}){return t(or+nr.V2.TrackDeviceMetadata.pathname({deviceId:e}),r)}async function ur(t,e){return t(or+nr.V2.TrackEvent.pathname(),{...e})}const ar=(()=>{let t=null;return{get:()=>t,set:e=>{t=e}}})();var fr,sr;var lr,pr,dr,yr,vr=function(){if(sr)return fr;sr=1;var t=B(),e=i(),r=z();return fr=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),hr=n(vr);const br=n(function(){if(yr)return dr;yr=1;var t=B(),e=function(){if(pr)return lr;pr=1;var t=Ht()(Object.getPrototypeOf,Object);return lr=t}(),r=z(),n=Function.prototype,o=Object.prototype,i=n.toString,c=o.hasOwnProperty,u=i.call(Object);return dr=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var a=c.call(o,"constructor")&&o.constructor;return"function"==typeof a&&a instanceof a&&i.call(a)==u}}());function wr(t,e){if(!c(t))return!1;for(let r=0;r<t.length;++r)if(!e(t[r],r,t))return!1;return!0}function _r(t){if(!br(t))return[];const e=[];return Xt(t,((t,r)=>{e.push([r,t])})),e}var mr,gr;var jr,Or,Sr=n(function(){if(gr)return mr;gr=1;var t=B(),e=z();return mr=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());var Pr,Tr,Er=n(Or?jr:(Or=1,jr=function(t){return null==t}));var Ar,Ir,Cr=n(function(){if(Tr)return Pr;Tr=1;var t=B(),e=z();return Pr=function(r){return"number"==typeof r||e(r)&&"[object Number]"==t(r)}}());var xr,Dr,kr=n(Ir?Ar:(Ir=1,Ar=function(t){return void 0===t}));var Rr=n(function(){if(Dr)return xr;Dr=1;var t=V().isFinite;return xr=function(e){return"number"==typeof e&&t(e)}}());function Mr(t){return Rr(t)}const Fr="[DADK]";function Lr(t,e){const r={};return Xt(t,((n,o)=>{const i=n;if(!function(t,e){return!!br(t)&&Object.prototype.hasOwnProperty.call(t,e)}(e,o))return;const[c,u]=e[o];try{if(kr(i))return;c(i)?r[o]=i:(r[o]=u(i),function(t,e){console.warn(`${Fr} the value of the ${String(e)} key is not expected, converting to the required type`,t[e])}(t,o))}catch(e){!function(t,e){console.error(`${Fr} Failed to convert the value of the ${String(e)} to the required type`,t[e])}(t,o)}})),r}function Nr(t){if(!(Cr(t)||Sr(t)||Er(t)||hr(t)))throw new Error("Only primitive types are accepted");return String(t)}function Ur(t){if(!(hr(t)||Sr(t)||Er(t)||Cr(t)))throw new Error("Only primitive types are accepted");const e=Number(t);return e!=e?0:e}function Vr(t){return!!t}const Hr={contentIds:[function(t){return c(t)&&wr(t,(t=>hr(t)))},t=>{const e=c(t)?t:[t],r=[];return Xt(e,(t=>{r.push(Nr(t))})),r}],contents:[function(t){return c(t)&&wr(t,(t=>br(t)&&wr(_r(t),(([,t])=>hr(t)||Mr(t)))))},t=>{if(kr(t))return[];const e=c(t)?t:[t],r=[];return Xt(e,(t=>{if(!br(t))return;const e={};Xt(t,((t,r)=>{e[r]=hr(t)||Mr(t)?t:Nr(t)})),r.push(e)})),r}]},Br=[hr,Nr],zr=[Mr,Ur],$r=[Mr,function(t){return Math.floor(Ur(t))}];function Gr(){return{}}function qr(t){return e=>br(e)?t(e):{}}const Wr={AddToCart:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,currency:Br,value:zr})})),AddToWishlist:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,currency:Br,value:Br})})),CompleteRegistration:qr((function(t){return Lr(t,{contentName:Br,currency:Br,status:[Sr,Vr],value:zr})})),Contact:qr(Gr),CustomizeProduct:qr(Gr),Donate:qr(Gr),FindLocation:qr(Gr),InitiateCheckout:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,currency:Br,numItems:$r,value:zr})})),Lead:qr(Gr),PageView:function(t){const e=br(t);return e&&hr(t.url)?t:{...e?t:{},url:window.location.href}},Purchase:qr((function(t){return Lr(t,{...Hr,contentName:Br,contentType:Br,currency:Br,numItems:$r,value:zr})})),Schedule:qr(Gr),Search:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,currency:Br,searchString:Br,value:zr})})),StartTrial:qr((function(t){return Lr(t,{currency:Br,predictedLtv:zr,value:zr})})),SubmitApplication:qr(Gr),Subscribe:qr((function(t){return Lr(t,{currency:Br,predictedLtv:zr,value:zr})})),ViewContent:qr((function(t){return Lr(t,{...Hr,contentCategory:Br,contentName:Br,contentType:Br,currency:Br,value:zr})}))};
/*! js-cookie v3.0.5 | MIT */function Jr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var Kr=function t(e,r){function n(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=Jr({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var c in o)o[c]&&(i+="; "+c,!0!==o[c]&&(i+="="+o[c].split(";")[0]));return document.cookie=t+"="+e.write(n,t)+i}}return Object.create({set:n,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(n[u]=e.read(c,u),t===u)break}catch(t){}}return t?n[t]:n}},remove:function(t,e){n(t,"",Jr({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,Jr({},this.attributes,e))},withConverter:function(e){return t(Jr({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Xr=n(zt());const Qr="dcard-adkt-device";function Yr(){return Kr.get(Qr)||!1}function Zr(t){try{"localStorage"in window&&Xr(window.localStorage.setItem)&&window.localStorage.setItem(Qr,t)}finally{!function(t){try{Kr.set(Qr,t,{expires:365,secure:!0,sameSite:"Strict"})}catch(t){}}(t)}}function tn(t,e){const r=(e,r)=>{const n=function(t){if(null!=t){if(function(t){return!!t&&"object"==typeof t}(t)){if(Object.keys(t).length<=0)return;return JSON.stringify(t)}return String(t)}}(r);null!=n&&t.append(e,n)};for(const[t,n]of _r(e))Array.isArray(n)?n.forEach((e=>{r(t,e)})):r(t,n);return t}function en(t){window.setTimeout((()=>{t()}),0)}var rn;const nn=(rn=void 0,()=>rn);async function on(t){return new Promise((e=>{window.setTimeout((()=>{e()}),t)}))}const cn=20,un={};function an(t){const e=function({maxDelay:t,retryCountLimit:e}){return`${t}-${e}`}(t);return un[e]||(un[e]=function(t){const{maxDelay:e,retryCountLimit:r}=t,n=[e];let o=e,i=r;for(;i>0&&(o=Math.floor(o/(2+1/r)),!(o<cn));)n.unshift(o),i-=1;return n}(t)),un[e]}function fn(t,e,r=Math.random()){const n=an(e),o=Math.min(t,n.length-2),i=n[o],c=n[o+1]-o+1;return Math.floor(i+r*c)}let sn="";"undefined"!=typeof window&&(sn=function(){let t=function(){try{return"localStorage"in window&&Xr(window.localStorage.getItem)?window.localStorage.getItem(Qr)||"":Yr()}catch(t){return Yr()}}();return t||(t=ne(),Zr(t)),t}());let ln,pn="";function dn(){return(new Date).toISOString()}const yn=(vn=[(t,e)=>{let r;try{r=new URL(t)}catch{return Promise.reject(new Error("Invalid endpoint"))}return new Promise(((t,n)=>{const o=new Image;o.addEventListener("load",(()=>{en((()=>{t(!0)}))})),o.addEventListener("error",(()=>{en((()=>{n(new Error("Network error"))}))})),tn(r.searchParams,e),o.src=r.toString()}))}],async(t,e)=>{vn.length<=0||await async function(t,e={}){let r;try{return await t()}catch(t){r=t}const{maxDelay:n=500,retryCountLimit:o=3}=e;if(o<=0)throw r;for(let e=0;e<o;++e)try{const r=fn(e,{maxDelay:n,retryCountLimit:o});return await on(r),await t()}catch(t){r=t}throw r}((async()=>{let r=!1;for(let n=0;n<vn.length;n++){const o=vn[n];try{if(r=await t(o,e),r)break}catch{}}if(!r)throw new Error("Failed to send parcel")}),{maxDelay:1e3,retryCountLimit:2})});var vn;function hn(){return new URLSearchParams(document.location.search.substring(1)).get("tripid")||""}function bn(t){const{asyncQueue:e}=t;e&&Xt(e,(t=>{wn(t)}));const r=function(t){const e=(t||[]).slice(),r=(...t)=>{e.push(t),wn(t)};return r.queue=e,r._initialized=!0,r}(e);return function(t){"undefined"!=typeof window&&(window[f]=t)}(r),r}function wn(t){if(c(e=t)&&"init"===e[0]){const[,...e]=t;!function(t){if(pn===t)return;(function(t){return"string"==typeof t})(t)&&(pn=t);yn(ir,{id:sn,pixel:pn,createdAt:dn(),clickId:hn()}).catch(nn),async function(){const t=ar.get();let e="";if(!t)return e;try{const r=await t.load();e=(await r.get()).visitorId}catch{}return e}().then((t=>{t&&yn(cr,{deviceId:sn,fingerprint:t}).catch(nn)})).catch(nn)}(...e)}else{var e;if(!function(t){return c(t)&&"track"===t[0]}(t))throw new Error(`${t[0]} is not an valid command`);{const[,...e]=t;!function(...t){const[e,r]=t;if("PageView"===e)return function(t){const e=Wr.PageView(t);if(null!=ln&&ln===e.url)return;ln=e.url,_n("PageView",e)}(r);_n(e,Wr[e](r))}(...e)}}}function _n(t,e){yn(ur,{...e,url:window.location.href,referrer:document.referrer,createdAt:dn(),deviceId:sn,pixel:pn,id:ne(),type:t}).catch(nn)}let mn=null;const gn={load:()=>(mn||(mn=async function(t,e){const r=document.createElement("script");return r.src=t,r.async=!0,r.integrity=e,r.crossOrigin="anonymous",document.head.appendChild(r),new Promise(((e,n)=>{r.addEventListener("load",(()=>{e()})),r.addEventListener("error",(()=>{n(new Error(`Failed to load script: ${t}`))}))}))}("https://openfpcdn.io/fingerprintjs/v3.4.2/iife.min.js","sha384-GgRsmtg1axXz1oYH/JAhHd0lR8j2XGTAO1CbNWM7cI2S2ckhcJ6/vwnDjdX+uyed").then((()=>{if(!window.FingerprintJS)throw new Error("Failed to load FingerprintJS");return window.FingerprintJS.load()}))),mn)};(function(){const t=s();if(t?._initialized)return t;gn.load().catch((()=>{})),e=gn,ar.set(e);var e;(function(){const t=bn({asyncQueue:l()});(function(t){if("undefined"==typeof window||window.dadkUrlStateListenerInitiated)return;const e=window.history.pushState,r=window.history.replaceState;window.history.pushState=function(...r){e.call(window.history,...r),t(window.location.href)},window.history.replaceState=function(...e){r.call(window.history,...e),t(window.location.href)},window.addEventListener("popstate",(function(){t(window.location.href)}),!1),window.dadkUrlStateListenerInitiated=!0})((e=>{t("track","PageView",{url:e})}))})()})()}();
{
"name": "@dcard/web-ad-tracking-sdk",
"version": "2.4.3",
"version": "2.5.0",
"description": "The public advertising tracking SDK for web environments powered by Dcard Inc.",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/Dcard/dcard-web-ad-tracking-sdk.git"
},
"repository": "git@github.com:Dcard/dcard-web-ad-tracking-sdk.git",
"license": "MIT",

@@ -24,7 +21,3 @@ "exports": {

"node": ">=16"
},
"publishConfig": {
"access": "public",
"tag": "latest"
}
}
}
<h1 align="center">Welcome to Dcard Web AD Tracking SDK 👋</h1>
<p>
<a href="https://www.npmjs.com/package/@dcard/web-ad-tracking-sdk" target="_blank">
<img alt="NPM version" src="https://img.shields.io/badge/npm-2.4.3-blue.svg?cacheSeconds=2592000" />
<a href="https://www.npmjs.com/package/%40dcard/web-ad-tracking-sdk" target="_blank">
<img alt="NPM version" src="https://img.shields.io/npm/v/%40dcard%2Fweb-ad-tracking-sdk?cacheSeconds=2592000" />
</a>

@@ -22,3 +22,3 @@ <a href="#" target="_blank">

```sh
yarn add @dcard/web-ad-tracking-sdk
pnpm add @dcard/web-ad-tracking-sdk
```

@@ -51,3 +51,2 @@

</html>
```

@@ -54,0 +53,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc