diff --git a/dist/development/strigo.sdk.js b/dist/development/strigo.sdk.js index 2a81514..751617a 100644 --- a/dist/development/strigo.sdk.js +++ b/dist/development/strigo.sdk.js @@ -11924,7 +11924,7 @@ ${JSON.stringify(parsedContext)}` : ""); } function generateCssURL(version) { if (window.Strigo.isDevelopment()) { - return `${"http://local.strigo.io:7002"}/styles/strigo.css`; + return `${SDK_LOCAL_URL}/styles/strigo.css`; } if (version) { return `${CDN_BASE_PATH}@${version}/dist/production/styles/strigo.min.css`; @@ -11933,7 +11933,7 @@ ${JSON.stringify(parsedContext)}` : ""); } function generateWidgetCssURL(version) { if (window.Strigo.isDevelopment()) { - return `${"http://local.strigo.io:7002"}/styles/strigo-widget.css`; + return `${SDK_LOCAL_URL}/styles/strigo-widget.css`; } if (version) { return `${CDN_BASE_PATH}@${version}/dist/production/styles/strigo-widget.min.css`; @@ -11942,7 +11942,7 @@ ${JSON.stringify(parsedContext)}` : ""); } function generateAcademyHatCssURL(version) { if (window.Strigo.isDevelopment()) { - return `${"http://local.strigo.io:7002"}/styles/strigo-academy-hat.css`; + return `${SDK_LOCAL_URL}/styles/strigo-academy-hat.css`; } if (version) { return `${CDN_BASE_PATH}@${version}/dist/production/styles/strigo-academy-hat.min.css`; @@ -11951,7 +11951,7 @@ ${JSON.stringify(parsedContext)}` : ""); } function generateRecorderCssURL(version) { if (window.Strigo.isDevelopment()) { - return `${"http://local.strigo.io:7002"}/styles/strigo-assessment-recorder.css`; + return `${SDK_LOCAL_URL}/styles/strigo-assessment-recorder.css`; } if (version) { return `${CDN_BASE_PATH}@${version}/dist/production/styles/strigo-assessment-recorder.min.css`; @@ -11959,7 +11959,7 @@ ${JSON.stringify(parsedContext)}` : ""); return `${CDN_BASE_PATH}@master/dist/production/styles/strigo-assessment-recorder.min.css`; } function generateAssessmentRecorderURL() { - return window.Strigo.isDevelopment() ? "http://local.strigo.io:7015" : ASSESSMENT_RECORDER_URL; + return window.Strigo.isDevelopment() ? RECORDER_LOCAL_URL : ASSESSMENT_RECORDER_URL; } function isRecordingUrlParamExists() { const { search } = window.location; @@ -13208,7 +13208,7 @@ ${JSON.stringify(parsedContext)}` : ""); this.config = {}; } isDevelopment() { - return true; + return false; } init() { try { diff --git a/dist/production/strigo.sdk.min.js b/dist/production/strigo.sdk.min.js index 623b112..f4de32d 100644 --- a/dist/production/strigo.sdk.min.js +++ b/dist/production/strigo.sdk.min.js @@ -1,18 +1,18 @@ -(()=>{var pB=Object.create;var ba=Object.defineProperty;var hB=Object.getOwnPropertyDescriptor;var wB=Object.getOwnPropertyNames;var vB=Object.getPrototypeOf,QB=Object.prototype.hasOwnProperty;var mB=h=>ba(h,"__esModule",{value:!0});var Ia=(h,p)=>()=>(p||h((p={exports:{}}).exports,p),p.exports);var CB=(h,p,y,b)=>{if(p&&typeof p=="object"||typeof p=="function")for(let x of wB(p))!QB.call(h,x)&&(y||x!=="default")&&ba(h,x,{get:()=>p[x],enumerable:!(b=hB(p,x))||b.enumerable});return h},Ha=(h,p)=>CB(mB(ba(h!=null?pB(vB(h)):{},"default",!p&&h&&h.__esModule?{get:()=>h.default,enumerable:!0}:{value:h,enumerable:!0})),h);var Xc=Ia((Sa,xa)=>{(function(h,p){typeof Sa=="object"&&typeof xa!="undefined"?xa.exports=p():typeof define=="function"&&define.amd?define(p):(h=typeof globalThis!="undefined"?globalThis:h||self,h.html2canvas=p())})(Sa,function(){"use strict";var h=function(r,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},h(r,e)};function p(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");h(r,e);function o(){this.constructor=r}r.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}var y=function(){return y=Object.assign||function(e){for(var o,n=1,a=arguments.length;n0&&l[l.length-1])&&(U[0]===6||U[0]===2)){o=0;continue}if(U[0]===3&&(!l||U[1]>l[0]&&U[1]=55296&&a<=56319&&o>10)+55296,d%1024+56320)),(a+1===o||n.length>16384)&&(l+=String.fromCharCode.apply(String,n),n.length=0)}return l},QA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xA=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),mA=0;mA>4,E[a++]=(d&15)<<4|v>>2,E[a++]=(v&3)<<6|w&63;return U},ut=function(r){for(var e=r.length,o=[],n=0;n>LA,Ue=1<>LA,Yt=JA+ft,eA=Yt,bA=2048>>6,Re=eA+bA,Ft=65536>>le,ue=1<=0){if(e<55296||e>56319&&e<=65535)return o=this.index[e>>LA],o=(o<>LA)],o=(o<>le),o=this.index[o],o+=e>>LA&D,o=this.index[o],o=(o<XA?(a.push(!0),v-=XA):a.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return n.push(d),o.push(jt);if(v===oA||v===_e){if(d===0)return n.push(d),o.push(Ze);var w=o[d-1];return os.indexOf(w)===-1?(n.push(n[d-1]),o.push(w)):(n.push(d),o.push(Ze))}if(n.push(d),v===rs)return o.push(e==="strict"?vr:gt);if(v===kn||v===Pn)return o.push(Ze);if(v===ns)return l>=131072&&l<=196605||l>=196608&&l<=262141?o.push(gt):o.push(Ze);o.push(v)}),[n,o,a]},Xn=function(r,e,o,n){var a=n[o];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var l=o;l<=n.length;){l++;var d=n[l];if(d===e)return!0;if(d!==YA)break}if(a===YA)for(var l=o;l>0;){l--;var v=n[l];if(Array.isArray(r)?r.indexOf(v)!==-1:r===v)for(var w=o;w<=n.length;){w++;var d=n[w];if(d===e)return!0;if(d!==YA)break}if(v!==YA)break}return!1},Wn=function(r,e){for(var o=r;o>=0;){var n=e[o];if(n===YA)o--;else return n}return 0},Po=function(r,e,o,n,a){if(o[n]===0)return dA;var l=n-1;if(Array.isArray(a)&&a[l]===!0)return dA;var d=l-1,v=l+1,w=e[l],U=d>=0?e[d]:0,E=e[v];if(w===O&&E===k)return dA;if(fe.indexOf(w)!==-1)return cA;if(fe.indexOf(E)!==-1||Cr.indexOf(E)!==-1)return dA;if(Wn(l,e)===ne)return pt;if(Vn.get(r[l])===_e||(w===yt||w===Zr)&&Vn.get(r[v])===_e||w===aA||E===aA||w===Se||[YA,hr,xe].indexOf(w)===-1&&E===Se||[je,wr,zr,Bt,ze].indexOf(E)!==-1||Wn(l,e)===zt||Xn(Qr,zt,l,e)||Xn([je,wr],vr,l,e)||Xn(Ko,Ko,l,e))return dA;if(w===YA)return pt;if(w===Qr||E===Qr)return dA;if(E===jt||w===jt)return pt;if([hr,xe,vr].indexOf(E)!==-1||w===ts||U===Nn&&qt.indexOf(w)!==-1||w===ze&&E===Nn||E===_n||$e.indexOf(E)!==-1&&w===he||$e.indexOf(w)!==-1&&E===he||w===mr&&[gt,yt,Zr].indexOf(E)!==-1||[gt,yt,Zr].indexOf(w)!==-1&&E===Zt||$e.indexOf(w)!==-1&&Mo.indexOf(E)!==-1||Mo.indexOf(w)!==-1&&$e.indexOf(E)!==-1||[mr,Zt].indexOf(w)!==-1&&(E===he||[zt,xe].indexOf(E)!==-1&&e[v+1]===he)||[zt,xe].indexOf(w)!==-1&&E===he||w===he&&[he,ze,Bt].indexOf(E)!==-1)return dA;if([he,ze,Bt,je,wr].indexOf(E)!==-1)for(var I=l;I>=0;){var L=e[I];if(L===he)return dA;if([ze,Bt].indexOf(L)!==-1)I--;else break}if([mr,Zt].indexOf(E)!==-1)for(var I=[je,wr].indexOf(w)!==-1?d:l;I>=0;){var L=e[I];if(L===he)return dA;if([ze,Bt].indexOf(L)!==-1)I--;else break}if(Gn===w&&[Gn,we,qr,Le].indexOf(E)!==-1||[we,qr].indexOf(w)!==-1&&[we,ye].indexOf(E)!==-1||[ye,Le].indexOf(w)!==-1&&E===ye||Ro.indexOf(w)!==-1&&[_n,Zt].indexOf(E)!==-1||Ro.indexOf(E)!==-1&&w===mr||$e.indexOf(w)!==-1&&$e.indexOf(E)!==-1||w===Bt&&$e.indexOf(E)!==-1||$e.concat(he).indexOf(w)!==-1&&E===zt&&dt.indexOf(r[v])===-1||$e.concat(he).indexOf(E)!==-1&&w===wr)return dA;if(w===qe&&E===qe){for(var q=o[l],P=1;q>0&&(q--,e[q]===qe);)P++;if(P%2!==0)return dA}return w===yt&&E===Zr?dA:pt},$r=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var o=_o(r,e.lineBreak),n=o[0],a=o[1],l=o[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(a=a.map(function(v){return[he,Ze,kn].indexOf(v)!==-1?gt:v}));var d=e.wordBreak==="keep-all"?l.map(function(v,w){return v&&r[w]>=19968&&r[w]<=40959}):void 0;return[n,a,d]},No=function(){function r(e,o,n,a){this.codePoints=e,this.required=o===cA,this.start=n,this.end=a}return r.prototype.slice=function(){return $.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),Jn=function(r,e){var o=HA(r),n=$r(o,e),a=n[0],l=n[1],d=n[2],v=o.length,w=0,U=0;return{next:function(){if(U>=v)return{done:!0,value:null};for(var E=dA;U=Ar&&r<=57},Zo=function(r){return r>=55296&&r<=57343},ht=function(r){return oe(r)||r>=VA&&r<=zn||r>=jo&&r<=nn},ws=function(r){return r>=jo&&r<=ps},Zn=function(r){return r>=VA&&r<=Ot},vs=function(r){return ws(r)||Zn(r)},Qs=function(r){return r>=gs},At=function(r){return r===An||r===ss||r===as},on=function(r){return vs(r)||Qs(r)||r===Ir},qA=function(r){return on(r)||oe(r)||r===ae},qo=function(r){return r>=DA&&r<=rn||r===PA||r>=Jo&&r<=Sr||r===Yo},Oe=function(r,e){return r!==Et?!1:e!==An},sn=function(r,e,o){return r===ae?on(e)||Oe(e,o):on(r)?!0:!!(r===Et&&Oe(r,e))},an=function(r,e,o){return r===Te||r===ae?oe(e)?!0:e===Hr&&oe(o):oe(r===Hr?e:r)},$o=function(r){var e=0,o=1;(r[e]===Te||r[e]===ae)&&(r[e]===ae&&(o=-1),e++);for(var n=[];oe(r[e]);)n.push(r[e++]);var a=n.length?parseInt($.apply(void 0,n),10):0;r[e]===Hr&&e++;for(var l=[];oe(r[e]);)l.push(r[e++]);var d=l.length,v=d?parseInt($.apply(void 0,l),10):0;(r[e]===zo||r[e]===xr)&&e++;var w=1;(r[e]===Te||r[e]===ae)&&(r[e]===ae&&(w=-1),e++);for(var U=[];oe(r[e]);)U.push(r[e++]);var E=U.length?parseInt($.apply(void 0,U),10):0;return o*(a+v*Math.pow(10,-d))*Math.pow(10,w*E)},ms={type:2},Lr={type:3},Cs={type:4},Tr={type:13},Ai={type:8},Us={type:21},Or={type:9},qn={type:10},cn={type:11},Fs={type:12},et={type:14},ln={type:23},un={type:1},ys={type:25},$n={type:24},Es={type:26},fn={type:27},bs={type:28},Ao={type:29},eo={type:31},Bn={type:32},ei=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(HA(e))},r.prototype.read=function(){for(var e=[],o=this.consumeToken();o!==Bn;)e.push(o),o=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case bt:return this.consumeStringToken(bt);case $t:var o=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(qA(o)||Oe(n,a)){var l=sn(o,n,a)?is:Go,d=this.consumeName();return{type:5,value:d,flags:l}}break;case cs:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),Tr;break;case br:return this.consumeStringToken(br);case en:return ms;case It:return Lr;case Tt:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),et;break;case Te:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Yn:return Cs;case ae:var v=e,w=this.peekCodePoint(0),U=this.peekCodePoint(1);if(an(v,w,U))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(sn(v,w,U))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(w===ae&&U===St)return this.consumeCodePoint(),this.consumeCodePoint(),$n;break;case Hr:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case yr:if(this.peekCodePoint(0)===Tt)for(this.consumeCodePoint();;){var E=this.consumeCodePoint();if(E===Tt&&(E=this.consumeCodePoint(),E===yr))return this.consumeToken();if(E===Pe)return this.consumeToken()}break;case ds:return Es;case jn:return fn;case Ht:if(this.peekCodePoint(0)===us&&this.peekCodePoint(1)===ae&&this.peekCodePoint(2)===ae)return this.consumeCodePoint(),this.consumeCodePoint(),ys;break;case ko:var I=this.peekCodePoint(0),L=this.peekCodePoint(1),q=this.peekCodePoint(2);if(sn(I,L,q)){var d=this.consumeName();return{type:7,value:d}}break;case Vo:return bs;case Et:if(Oe(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case fs:return Ao;case xt:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),Ai;break;case Bs:return cn;case Xo:return Fs;case ve:case hs:var P=this.peekCodePoint(0),j=this.peekCodePoint(1);return P===Te&&(ht(j)||j===Lt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case ee:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),Or;if(this.peekCodePoint(0)===ee)return this.consumeCodePoint(),Us;break;case tn:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),qn;break;case Pe:return Bn}return At(e)?(this.consumeWhiteSpace(),eo):oe(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):on(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:$(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e=="undefined"?-1:e},r.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},r.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},r.prototype.consumeUnicodeRangeToken=function(){for(var e=[],o=this.consumeCodePoint();ht(o)&&e.length<6;)e.push(o),o=this.consumeCodePoint();for(var n=!1;o===Lt&&e.length<6;)e.push(o),o=this.consumeCodePoint(),n=!0;if(n){var a=parseInt($.apply(void 0,e.map(function(w){return w===Lt?Ar:w})),16),l=parseInt($.apply(void 0,e.map(function(w){return w===Lt?zn:w})),16);return{type:30,start:a,end:l}}var d=parseInt($.apply(void 0,e),16);if(this.peekCodePoint(0)===ae&&ht(this.peekCodePoint(1))){this.consumeCodePoint(),o=this.consumeCodePoint();for(var v=[];ht(o)&&v.length<6;)v.push(o),o=this.consumeCodePoint();var l=parseInt($.apply(void 0,v),16);return{type:30,start:d,end:l}}else return{type:30,start:d,end:d}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===en?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===en?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe)return{type:22,value:""};var o=this.peekCodePoint(0);if(o===br||o===bt){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe||this.peekCodePoint(0)===It)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),ln)}for(;;){var a=this.consumeCodePoint();if(a===Pe||a===It)return{type:22,value:$.apply(void 0,e)};if(At(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe||this.peekCodePoint(0)===It?(this.consumeCodePoint(),{type:22,value:$.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ln);if(a===bt||a===br||a===en||qo(a))return this.consumeBadUrlRemnants(),ln;if(a===Et)if(Oe(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ln;else e.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;At(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===It||e===Pe)return;Oe(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var o=5e4,n="";e>0;){var a=Math.min(o,e);n+=$.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var o="",n=0;do{var a=this._value[n];if(a===Pe||a===void 0||a===e)return o+=this.consumeStringSlice(n),{type:0,value:o};if(a===An)return this._value.splice(0,n),un;if(a===Et){var l=this._value[n+1];l!==Pe&&l!==void 0&&(l===An?(o+=this.consumeStringSlice(n),n=-1,this._value.shift()):Oe(a,l)&&(o+=this.consumeStringSlice(n),o+=$(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],o=Ur,n=this.peekCodePoint(0);for((n===Te||n===ae)&&e.push(this.consumeCodePoint());oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===Hr&&oe(a))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),o=Fr;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((n===zo||n===xr)&&((a===Te||a===ae)&&oe(l)||oe(a)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),o=Fr;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[$o(e),o]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),o=e[0],n=e[1],a=this.peekCodePoint(0),l=this.peekCodePoint(1),d=this.peekCodePoint(2);if(sn(a,l,d)){var v=this.consumeName();return{type:15,number:o,flags:n,unit:v}}return a===ls?(this.consumeCodePoint(),{type:16,number:o,flags:n}):{type:17,number:o,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ht(e)){for(var o=$(e);ht(this.peekCodePoint(0))&&o.length<6;)o+=$(this.consumeCodePoint());At(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(o,16);return n===0||Zo(n)||n>1114111?Wo:n}return e===Pe?Wo:e},r.prototype.consumeName=function(){for(var e="";;){var o=this.consumeCodePoint();if(qA(o))e+=$(o);else if(Oe(o,this.peekCodePoint(0)))e+=$(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(o),e}},r}(),er=function(){function r(e){this._tokens=e}return r.create=function(e){var o=new ei;return o.write(e),new r(o.read())},r.parseValue=function(e){return r.create(e).parseComponentValue()},r.parseValues=function(e){return r.create(e).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var o=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return o;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var e=[];;){var o=this.consumeComponentValue();if(o.type===32)return e;e.push(o),e.push()}},r.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},r.prototype.consumeSimpleBlock=function(e){for(var o={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||ri(n,e))return o;this.reconsumeToken(n),o.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(e){for(var o={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return o;this.reconsumeToken(n),o.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e=="undefined"?Bn:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),Dr=function(r){return r.type===15},tt=function(r){return r.type===17},yA=function(r){return r.type===20},ti=function(r){return r.type===0},to=function(r,e){return yA(r)&&r.value===e},Kr=function(r){return r.type!==31},wt=function(r){return r.type!==31&&r.type!==4},De=function(r){var e=[],o=[];return r.forEach(function(n){if(n.type===4){if(o.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(o),o=[];return}n.type!==31&&o.push(n)}),o.length&&e.push(o),e},ri=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},vt=function(r){return r.type===17||r.type===15},ZA=function(r){return r.type===16||vt(r)},gn=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},ie={type:17,number:0,flags:Ur},tr={type:16,number:50,flags:Ur},Ne={type:16,number:100,flags:Ur},rr=function(r,e,o){var n=r[0],a=r[1];return[KA(n,e),KA(typeof a!="undefined"?a:n,o)]},KA=function(r,e){if(r.type===16)return r.number/100*e;if(Dr(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},dn="deg",ni="grad",oi="rad",nr="turn",or={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case dn:return Math.PI*e.number/180;case ni:return Math.PI/200*e.number;case oi:return e.number;case nr:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},ir=function(r){return r.type===15&&(r.unit===dn||r.unit===ni||r.unit===oi||r.unit===nr)},ii=function(r){var e=r.filter(yA).map(function(o){return o.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ie,ie];case"to top":case"bottom":return Qe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ie,Ne];case"to right":case"left":return Qe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ne,Ne];case"to bottom":case"top":return Qe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ne,ie];case"to left":case"right":return Qe(270)}return 0},Qe=function(r){return Math.PI*r/180},Qt={name:"color",parse:function(r,e){if(e.type===18){var o=si[e.name];if(typeof o=="undefined")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return o(r,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),a=e.value.substring(1,2),l=e.value.substring(2,3);return rt(parseInt(n+n,16),parseInt(a+a,16),parseInt(l+l,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),a=e.value.substring(1,2),l=e.value.substring(2,3),d=e.value.substring(3,4);return rt(parseInt(n+n,16),parseInt(a+a,16),parseInt(l+l,16),parseInt(d+d,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),a=e.value.substring(2,4),l=e.value.substring(4,6);return rt(parseInt(n,16),parseInt(a,16),parseInt(l,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),a=e.value.substring(2,4),l=e.value.substring(4,6),d=e.value.substring(6,8);return rt(parseInt(n,16),parseInt(a,16),parseInt(l,16),parseInt(d,16)/255)}}if(e.type===20){var v=MA[e.value.toUpperCase()];if(typeof v!="undefined")return v}return MA.TRANSPARENT}},Be=function(r){return(255&r)===0},$A=function(r){var e=255&r,o=255&r>>8,n=255&r>>16,a=255&r>>24;return e<255?"rgba("+a+","+n+","+o+","+e/255+")":"rgb("+a+","+n+","+o+")"},rt=function(r,e,o,n){return(r<<24|e<<16|o<<8|Math.round(n*255)<<0)>>>0},ro=function(r,e){if(r.type===17)return r.number;if(r.type===16){var o=e===3?1:255;return e===3?r.number/100*o:Math.round(r.number/100*o)}return 0},te=function(r,e){var o=e.filter(wt);if(o.length===3){var n=o.map(ro),a=n[0],l=n[1],d=n[2];return rt(a,l,d,1)}if(o.length===4){var v=o.map(ro),a=v[0],l=v[1],d=v[2],w=v[3];return rt(a,l,d,w)}return 0};function no(r,e,o){return o<0&&(o+=1),o>=1&&(o-=1),o<1/6?(e-r)*o*6+r:o<1/2?e:o<2/3?(e-r)*6*(2/3-o)+r:r}var oo=function(r,e){var o=e.filter(wt),n=o[0],a=o[1],l=o[2],d=o[3],v=(n.type===17?Qe(n.number):or.parse(r,n))/(Math.PI*2),w=ZA(a)?a.number/100:0,U=ZA(l)?l.number/100:0,E=typeof d!="undefined"&&ZA(d)?KA(d,1):1;if(w===0)return rt(U*255,U*255,U*255,1);var I=U<=.5?U*(w+1):U+w-U*w,L=U*2-I,q=no(L,I,v+1/3),P=no(L,I,v),j=no(L,I,v-1/3);return rt(q*255,P*255,j*255,E)},si={hsl:oo,hsla:oo,rgb:te,rgba:te},Dt=function(r,e){return Qt.parse(r,er.create(e).parseComponentValue())},MA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Is={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(o){if(yA(o))switch(o.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ai={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pn=function(r,e){var o=Qt.parse(r,e[0]),n=e[1];return n&&ZA(n)?{color:o,stop:n}:{color:o,stop:null}},ci=function(r,e){var o=r[0],n=r[r.length-1];o.stop===null&&(o.stop=ie),n.stop===null&&(n.stop=Ne);for(var a=[],l=0,d=0;dl?a.push(w):a.push(l),l=w}else a.push(null)}for(var U=null,d=0;dd.optimumDistance)?{optimumCorner:v,optimumDistance:E}:d},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},li=function(r,e,o,n,a){var l=0,d=0;switch(r.size){case 0:r.shape===0?l=d=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(o),Math.abs(o-a)):r.shape===1&&(l=Math.min(Math.abs(e),Math.abs(e-n)),d=Math.min(Math.abs(o),Math.abs(o-a)));break;case 2:if(r.shape===0)l=d=Math.min(me(e,o),me(e,o-a),me(e-n,o),me(e-n,o-a));else if(r.shape===1){var v=Math.min(Math.abs(o),Math.abs(o-a))/Math.min(Math.abs(e),Math.abs(e-n)),w=io(n,a,e,o,!0),U=w[0],E=w[1];l=me(U-e,(E-o)/v),d=v*l}break;case 1:r.shape===0?l=d=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(o),Math.abs(o-a)):r.shape===1&&(l=Math.max(Math.abs(e),Math.abs(e-n)),d=Math.max(Math.abs(o),Math.abs(o-a)));break;case 3:if(r.shape===0)l=d=Math.max(me(e,o),me(e,o-a),me(e-n,o),me(e-n,o-a));else if(r.shape===1){var v=Math.max(Math.abs(o),Math.abs(o-a))/Math.max(Math.abs(e),Math.abs(e-n)),I=io(n,a,e,o,!1),U=I[0],E=I[1];l=me(U-e,(E-o)/v),d=v*l}break}return Array.isArray(r.size)&&(l=KA(r.size[0],n),d=r.size.length===2?KA(r.size[1],a):l),[l,d]},Mr=function(r,e){var o=Qe(180),n=[];return De(e).forEach(function(a,l){if(l===0){var d=a[0];if(d.type===20&&d.value==="to"){o=ii(a);return}else if(ir(d)){o=or.parse(r,d);return}}var v=pn(r,a);n.push(v)}),{angle:o,stops:n,type:1}},Kt=function(r,e){var o=Qe(180),n=[];return De(e).forEach(function(a,l){if(l===0){var d=a[0];if(d.type===20&&["top","left","right","bottom"].indexOf(d.value)!==-1){o=ii(a);return}else if(ir(d)){o=(or.parse(r,d)+Qe(270))%Qe(360);return}}var v=pn(r,a);n.push(v)}),{angle:o,stops:n,type:1}},Hs=function(r,e){var o=Qe(180),n=[],a=1,l=0,d=3,v=[];return De(e).forEach(function(w,U){var E=w[0];if(U===0){if(yA(E)&&E.value==="linear"){a=1;return}else if(yA(E)&&E.value==="radial"){a=2;return}}if(E.type===18){if(E.name==="from"){var I=Qt.parse(r,E.values[0]);n.push({stop:ie,color:I})}else if(E.name==="to"){var I=Qt.parse(r,E.values[0]);n.push({stop:Ne,color:I})}else if(E.name==="color-stop"){var L=E.values.filter(wt);if(L.length===2){var I=Qt.parse(r,L[1]),q=L[0];tt(q)&&n.push({stop:{type:16,number:q.number*100,flags:q.flags},color:I})}}}}),a===1?{angle:(o+Qe(180))%Qe(360),stops:n,type:a}:{size:d,shape:l,stops:n,position:v,type:a}},ui="closest-side",Mt="farthest-side",so="closest-corner",vn="farthest-corner",fi="circle",ao="ellipse",Bi="cover",gi="contain",Ss=function(r,e){var o=0,n=3,a=[],l=[];return De(e).forEach(function(d,v){var w=!0;if(v===0){var U=!1;w=d.reduce(function(I,L){if(U)if(yA(L))switch(L.value){case"center":return l.push(tr),I;case"top":case"left":return l.push(ie),I;case"right":case"bottom":return l.push(Ne),I}else(ZA(L)||vt(L))&&l.push(L);else if(yA(L))switch(L.value){case fi:return o=0,!1;case ao:return o=1,!1;case"at":return U=!0,!1;case ui:return n=0,!1;case Bi:case Mt:return n=1,!1;case gi:case so:return n=2,!1;case vn:return n=3,!1}else if(vt(L)||ZA(L))return Array.isArray(n)||(n=[]),n.push(L),!1;return I},w)}if(w){var E=pn(r,d);a.push(E)}}),{size:n,shape:o,stops:a,position:l,type:2}},Ge=function(r,e){var o=0,n=3,a=[],l=[];return De(e).forEach(function(d,v){var w=!0;if(v===0?w=d.reduce(function(E,I){if(yA(I))switch(I.value){case"center":return l.push(tr),!1;case"top":case"left":return l.push(ie),!1;case"right":case"bottom":return l.push(Ne),!1}else if(ZA(I)||vt(I))return l.push(I),!1;return E},w):v===1&&(w=d.reduce(function(E,I){if(yA(I))switch(I.value){case fi:return o=0,!1;case ao:return o=1,!1;case gi:case ui:return n=0,!1;case Mt:return n=1,!1;case so:return n=2,!1;case Bi:case vn:return n=3,!1}else if(vt(I)||ZA(I))return Array.isArray(n)||(n=[]),n.push(I),!1;return E},w)),w){var U=pn(r,d);a.push(U)}}),{size:n,shape:o,stops:a,position:l,type:2}},di=function(r){return r.type===1},xs=function(r){return r.type===2},Rr={name:"image",parse:function(r,e){if(e.type===22){var o={url:e.value,type:0};return r.cache.addImage(e.value),o}if(e.type===18){var n=Qn[e.name];if(typeof n=="undefined")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(r,e.values)}throw new Error("Unsupported image type "+e.type)}};function ge(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!Qn[r.name])}var Qn={"linear-gradient":Mr,"-moz-linear-gradient":Kt,"-ms-linear-gradient":Kt,"-o-linear-gradient":Kt,"-webkit-linear-gradient":Kt,"radial-gradient":Ss,"-moz-radial-gradient":Ge,"-ms-radial-gradient":Ge,"-o-radial-gradient":Ge,"-webkit-radial-gradient":Ge,"-webkit-gradient":Hs},pi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var o=e[0];return o.type===20&&o.value==="none"?[]:e.filter(function(n){return wt(n)&&ge(n)}).map(function(n){return Rr.parse(r,n)})}},Ls={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(o){if(yA(o))switch(o.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ke={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return De(e).map(function(o){return o.filter(ZA)}).map(gn)}},hi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return De(e).map(function(o){return o.filter(yA).map(function(n){return n.value}).join(" ")}).map(wi)}},wi=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Rt;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Rt||(Rt={}));var vi={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return De(e).map(function(o){return o.filter(Ts)})}},Ts=function(r){return yA(r)||ZA(r)},nt=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Os=nt("top"),Qi=nt("right"),Ds=nt("bottom"),sr=nt("left"),mn=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,o){return gn(o.filter(ZA))}}},Ks=mn("top-left"),mi=mn("top-right"),Ms=mn("bottom-right"),co=mn("bottom-left"),Ke=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,o){switch(o){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ci=Ke("top"),Rs=Ke("right"),ot=Ke("bottom"),Ui=Ke("left"),_r=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,o){return Dr(o)?o.number:0}}},_s=_r("top"),ar=_r("right"),Fi=_r("bottom"),Ps=_r("left"),lo={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},uo={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},cr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(yA).reduce(function(o,n){return o|Ns(n.value)},0)}},Ns=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Cn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Gs={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Un;(function(r){r.NORMAL="normal",r.STRICT="strict"})(Un||(Un={}));var _t={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return Un.STRICT;case"normal":default:return Un.NORMAL}}},fo={name:"line-height",initialValue:"normal",prefix:!1,type:4},yi=function(r,e){return yA(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:ZA(r)?KA(r,e):e},Bo={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:Rr.parse(r,e)}},ks={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Pr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Pt=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},Vs=Pt("top"),Nr=Pt("right"),Fn=Pt("bottom"),mt=Pt("left"),Ei={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(yA).map(function(o){switch(o.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},go={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},yn=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},En=yn("top"),Xs=yn("right"),Ws=yn("bottom"),Js=yn("left"),bn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ys={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},js={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&to(e[0],"none")?[]:De(e).map(function(o){for(var n={color:MA.TRANSPARENT,offsetX:ie,offsetY:ie,blur:ie},a=0,l=0;l1?1:0],this.overflowWrap=K(e,go,o.overflowWrap),this.paddingTop=K(e,En,o.paddingTop),this.paddingRight=K(e,Xs,o.paddingRight),this.paddingBottom=K(e,Ws,o.paddingBottom),this.paddingLeft=K(e,Js,o.paddingLeft),this.paintOrder=K(e,M,o.paintOrder),this.position=K(e,Ys,o.position),this.textAlign=K(e,bn,o.textAlign),this.textDecorationColor=K(e,A,(n=o.textDecorationColor)!==null&&n!==void 0?n:o.color),this.textDecorationLine=K(e,t,(a=o.textDecorationLine)!==null&&a!==void 0?a:o.textDecoration),this.textShadow=K(e,js,o.textShadow),this.textTransform=K(e,zs,o.textTransform),this.transform=K(e,In,o.transform),this.transformOrigin=K(e,Aa,o.transformOrigin),this.visibility=K(e,Ee,o.visibility),this.webkitTextStrokeColor=K(e,X,o.webkitTextStrokeColor),this.webkitTextStrokeWidth=K(e,_,o.webkitTextStrokeWidth),this.wordBreak=K(e,ea,o.wordBreak),this.zIndex=K(e,Gt,o.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Be(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return u(this.display,4)||u(this.display,33554432)||u(this.display,268435456)||u(this.display,536870912)||u(this.display,67108864)||u(this.display,134217728)},r}(),iA=function(){function r(e,o){this.content=K(e,B,o.content),this.quotes=K(e,S,o.quotes)}return r}(),fA=function(){function r(e,o){this.counterIncrement=K(e,Q,o.counterIncrement),this.counterReset=K(e,m,o.counterReset)}return r}(),K=function(r,e,o){var n=new ei,a=o!==null&&typeof o!="undefined"?o.toString():e.initialValue;n.write(a);var l=new er(n.read());switch(e.type){case 2:var d=l.parseComponentValue();return e.parse(r,yA(d)?d.value:e.initialValue);case 0:return e.parse(r,l.parseComponentValue());case 1:return e.parse(r,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(e.format){case"angle":return or.parse(r,l.parseComponentValue());case"color":return Qt.parse(r,l.parseComponentValue());case"image":return Rr.parse(r,l.parseComponentValue());case"length":var v=l.parseComponentValue();return vt(v)?v:ie;case"length-percentage":var w=l.parseComponentValue();return ZA(w)?w:ie;case"time":return Hn.parse(r,l.parseComponentValue())}break}},RA="data-html2canvas-debug",wA=function(r){var e=r.getAttribute(RA);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},IA=function(r,e){var o=wA(r);return o===1||e===o},jA=function(){function r(e,o){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,IA(o,3))debugger;this.styles=new rA(e,window.getComputedStyle(o,null)),pa(o)&&(this.styles.animationDuration.some(function(n){return n>0})&&(o.style.animationDuration="0s"),this.styles.transform!==null&&(o.style.transform="none")),this.bounds=V(this.context,o),IA(o,4)&&(this.flags|=16)}return r}(),it="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwM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ACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQG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AgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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(d&15)<<4|v>>2,E[a++]=(v&3)<<6|w&63;return U},pu=function(r){for(var e=r.length,o=[],n=0;n>kr,vu=1<>kr,mu=ja+Qu,Cu=mu,Uu=2048>>6,Fu=Cu+Uu,yu=65536>>ra,Eu=1<=0){if(e<55296||e>56319&&e<=65535)return o=this.index[e>>kr],o=(o<>kr)],o=(o<>ra),o=this.index[o],o+=e>>kr&bu,o=this.index[o],o=(o<=55296&&a<=56319&&o>10)+55296,d%1024+56320)),(a+1===o||n.length>16384)&&(l+=String.fromCharCode.apply(String,n),n.length=0)}return l},Ku=Hu(it),Ve="\xD7",ua="\xF7",Mu=function(r){return Ku.get(r)},Ru=function(r,e,o){var n=o-2,a=e[n],l=e[o-1],d=e[o];if(l===ia&&d===sa)return Ve;if(l===ia||l===sa||l===qa||d===ia||d===sa||d===qa)return ua;if(l===Ac&&[Ac,aa,ec,tc].indexOf(d)!==-1||(l===ec||l===aa)&&(d===aa||d===ca)||(l===tc||l===ca)&&d===ca||d===rc||d===$a||d===Tu||l===Lu)return Ve;if(l===rc&&d===nc){for(;a===$a;)a=e[--n];if(a===nc)return Ve}if(l===la&&d===la){for(var v=0;a===la;)v++,a=e[--n];if(v%2===0)return Ve}return ua},_u=function(r){var e=Ou(r),o=e.length,n=0,a=0,l=e.map(Mu);return{next:function(){if(n>=o)return{done:!0,value:null};for(var d=Ve;nd.x||E.y>d.y;return d=E,U===0?!0:I});return r.body.removeChild(e),v},ku=function(){return typeof new Image().crossOrigin!="undefined"},Vu=function(){return typeof new XMLHttpRequest().responseType=="string"},Xu=function(r){var e=new Image,o=r.createElement("canvas"),n=o.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),o.toDataURL()}catch{return!1}return!0},oc=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},Wu=function(r){var e=r.createElement("canvas"),o=100;e.width=o,e.height=o;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,o,o);var a=new Image,l=e.toDataURL();a.src=l;var d=fa(o,o,0,0,a);return n.fillStyle="red",n.fillRect(0,0,o,o),ic(d).then(function(v){n.drawImage(v,0,0);var w=n.getImageData(0,0,o,o).data;n.fillStyle="red",n.fillRect(0,0,o,o);var U=r.createElement("div");return U.style.backgroundImage="url("+l+")",U.style.height=o+"px",oc(w)?ic(fa(o,o,0,0,U)):Promise.reject(!1)}).then(function(v){return n.drawImage(v,0,0),oc(n.getImageData(0,0,o,o).data)}).catch(function(){return!1})},fa=function(r,e,o,n,a){var l="http://www.w3.org/2000/svg",d=document.createElementNS(l,"svg"),v=document.createElementNS(l,"foreignObject");return d.setAttributeNS(null,"width",r.toString()),d.setAttributeNS(null,"height",e.toString()),v.setAttributeNS(null,"width","100%"),v.setAttributeNS(null,"height","100%"),v.setAttributeNS(null,"x",o.toString()),v.setAttributeNS(null,"y",n.toString()),v.setAttributeNS(null,"externalResourcesRequired","true"),d.appendChild(v),v.appendChild(a),d},ic=function(r){return new Promise(function(e,o){var n=new Image;n.onload=function(){return e(n)},n.onerror=o,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},de={get SUPPORT_RANGE_BOUNDS(){var r=Nu(document);return Object.defineProperty(de,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=de.SUPPORT_RANGE_BOUNDS&&Gu(document);return Object.defineProperty(de,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=Xu(document);return Object.defineProperty(de,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?Wu(document):Promise.resolve(!1);return Object.defineProperty(de,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=ku();return Object.defineProperty(de,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Vu();return Object.defineProperty(de,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(de,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(de,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},wo=function(){function r(e,o){this.text=e,this.bounds=o}return r}(),Ju=function(r,e,o,n){var a=zu(e,o),l=[],d=0;return a.forEach(function(v){if(o.textDecorationLine.length||v.trim().length>0)if(de.SUPPORT_RANGE_BOUNDS){var w=sc(n,d,v.length).getClientRects();if(w.length>1){var U=Ba(v),E=0;U.forEach(function(L){l.push(new wo(L,J.fromDOMRectList(r,sc(n,E+d,L.length).getClientRects()))),E+=L.length})}else l.push(new wo(v,J.fromDOMRectList(r,w)))}else{var I=n.splitText(v.length);l.push(new wo(v,Yu(r,n))),n=I}else de.SUPPORT_RANGE_BOUNDS||(n=n.splitText(v.length));d+=v.length}),l},Yu=function(r,e){var o=e.ownerDocument;if(o){var n=o.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var a=e.parentNode;if(a){a.replaceChild(n,e);var l=V(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),l}}return J.EMPTY},sc=function(r,e,o){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,e),a.setEnd(r,e+o),a},Ba=function(r){if(de.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(r)).map(function(o){return o.segment})}return Pu(r)},ju=function(r,e){if(de.SUPPORT_NATIVE_TEXT_SEGMENTATION){var o=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(o.segment(r)).map(function(n){return n.segment})}return qu(r,e)},zu=function(r,e){return e.letterSpacing!==0?Ba(r):ju(r,e)},Zu=[32,160,4961,65792,65793,4153,4241],qu=function(r,e){for(var o=Jn(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],a,l=function(){if(a.value){var d=a.value.slice(),v=HA(d),w="";v.forEach(function(U){Zu.indexOf(U)===-1?w+=$(U):(w.length&&n.push(w),n.push($(U)),w="")}),w.length&&n.push(w)}};!(a=o.next()).done;)l();return n},$u=function(){function r(e,o,n){this.text=Af(o.data,n.textTransform),this.textBounds=Ju(e,this.text,n,o)}return r}(),Af=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(ef,tf);case 2:return r.toUpperCase();default:return r}},ef=/(^|\s|:|-|\(|\))([a-z])/g,tf=function(r,e,o){return r.length>0?e+o.toUpperCase():r},ac=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return e}(jA),cc=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return e}(jA),lc=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this,l=new XMLSerializer,d=V(o,n);return n.setAttribute("width",d.width+"px"),n.setAttribute("height",d.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return e}(jA),uc=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this;return a.value=n.value,a}return e}(jA),ga=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return e}(jA),rf=[{type:15,flags:0,unit:"px",number:3}],nf=[{type:16,flags:0,number:50}],of=function(r){return r.width>r.height?new J(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)o.textNodes.push(new $u(r,a,o.styles));else if(xn(a))if(Fc(a)&&a.assignedNodes)a.assignedNodes().forEach(function(v){return xi(r,v,o,n)});else{var d=pc(r,a);d.styles.isVisible()&&(lf(a,d,n)?d.flags|=4:uf(d.styles)&&(d.flags|=2),cf.indexOf(a.tagName)!==-1&&(d.flags|=8),o.elements.push(d),a.slot,a.shadowRoot?xi(r,a.shadowRoot,d,n):!Ti(a)&&!vc(a)&&!Oi(a)&&xi(r,a,d,n))}},pc=function(r,e){return wa(e)?new ac(r,e):Qc(e)?new cc(r,e):vc(e)?new lc(r,e):ff(e)?new uc(r,e):Bf(e)?new ga(r,e):gf(e)?new da(r,e):Oi(e)?new Bc(r,e):Ti(e)?new gc(r,e):Cc(e)?new dc(r,e):new jA(r,e)},hc=function(r,e){var o=pc(r,e);return o.flags|=4,xi(r,e,o,o),o},lf=function(r,e,o){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||ha(r)&&o.styles.isTransparent()},uf=function(r){return r.isPositioned()||r.isFloating()},wc=function(r){return r.nodeType===Node.TEXT_NODE},xn=function(r){return r.nodeType===Node.ELEMENT_NODE},pa=function(r){return xn(r)&&typeof r.style!="undefined"&&!Li(r)},Li=function(r){return typeof r.className=="object"},ff=function(r){return r.tagName==="LI"},Bf=function(r){return r.tagName==="OL"},gf=function(r){return r.tagName==="INPUT"},df=function(r){return r.tagName==="HTML"},vc=function(r){return r.tagName==="svg"},ha=function(r){return r.tagName==="BODY"},Qc=function(r){return r.tagName==="CANVAS"},mc=function(r){return r.tagName==="VIDEO"},wa=function(r){return r.tagName==="IMG"},Cc=function(r){return r.tagName==="IFRAME"},Uc=function(r){return r.tagName==="STYLE"},pf=function(r){return r.tagName==="SCRIPT"},Ti=function(r){return r.tagName==="TEXTAREA"},Oi=function(r){return r.tagName==="SELECT"},Fc=function(r){return r.tagName==="SLOT"},yc=function(r){return r.tagName.indexOf("-")>0},hf=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(e){var o=this.counters[e];return o&&o.length?o[o.length-1]:1},r.prototype.getCounterValues=function(e){var o=this.counters[e];return o||[]},r.prototype.pop=function(e){var o=this;e.forEach(function(n){return o.counters[n].pop()})},r.prototype.parse=function(e){var o=this,n=e.counterIncrement,a=e.counterReset,l=!0;n!==null&&n.forEach(function(v){var w=o.counters[v.counter];w&&v.increment!==0&&(l=!1,w.length||w.push(1),w[Math.max(0,w.length-1)]+=v.increment)});var d=[];return l&&a.forEach(function(v){var w=o.counters[v.counter];d.push(v.counter),w||(w=o.counters[v.counter]=[]),w.push(v.reset)}),d},r}(),Ec={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},bc={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},wf={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},vf={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Ln=function(r,e,o,n,a,l){return ro?Qo(r,a,l.length>0):n.integers.reduce(function(d,v,w){for(;r>=v;)r-=v,d+=n.values[w];return d},"")+l},Ic=function(r,e,o,n){var a="";do o||r--,a=n(r)+a,r/=e;while(r*e>=e);return a},Ae=function(r,e,o,n,a){var l=o-e+1;return(r<0?"-":"")+(Ic(Math.abs(r),l,n,function(d){return $(Math.floor(d%l)+e)})+a)},Vr=function(r,e,o){o===void 0&&(o=". ");var n=e.length;return Ic(Math.abs(r),n,!1,function(a){return e[Math.floor(a%n)]})+o},Tn=1<<0,lr=1<<1,ur=1<<2,vo=1<<3,kt=function(r,e,o,n,a,l){if(r<-9999||r>9999)return Qo(r,4,a.length>0);var d=Math.abs(r),v=a;if(d===0)return e[0]+v;for(var w=0;d>0&&w<=4;w++){var U=d%10;U===0&&u(l,Tn)&&v!==""?v=e[U]+v:U>1||U===1&&w===0||U===1&&w===1&&u(l,lr)||U===1&&w===1&&u(l,ur)&&r>100||U===1&&w>1&&u(l,vo)?v=e[U]+(w>0?o[w-1]:"")+v:U===1&&w>0&&(v=o[w-1]+v),d=Math.floor(d/10)}return(r<0?n:"")+v},Hc="\u5341\u767E\u5343\u842C",Sc="\u62FE\u4F70\u4EDF\u842C",xc="\u30DE\u30A4\u30CA\u30B9",va="\uB9C8\uC774\uB108\uC2A4",Qo=function(r,e,o){var n=o?". ":"",a=o?"\u3001":"",l=o?", ":"",d=o?" ":"";switch(e){case 0:return"\u2022"+d;case 1:return"\u25E6"+d;case 2:return"\u25FE"+d;case 5:var v=Ae(r,48,57,!0,n);return v.length<4?"0"+v:v;case 4:return Vr(r,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",a);case 6:return Ln(r,1,3999,Ec,3,n).toLowerCase();case 7:return Ln(r,1,3999,Ec,3,n);case 8:return Ae(r,945,969,!1,n);case 9:return Ae(r,97,122,!1,n);case 10:return Ae(r,65,90,!1,n);case 11:return Ae(r,1632,1641,!0,n);case 12:case 49:return Ln(r,1,9999,bc,3,n);case 35:return Ln(r,1,9999,bc,3,n).toLowerCase();case 13:return Ae(r,2534,2543,!0,n);case 14:case 30:return Ae(r,6112,6121,!0,n);case 15:return Vr(r,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",a);case 16:return Vr(r,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",a);case 17:case 48:return kt(r,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Hc,"\u8CA0",a,lr|ur|vo);case 47:return kt(r,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Sc,"\u8CA0",a,Tn|lr|ur|vo);case 42:return kt(r,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Hc,"\u8D1F",a,lr|ur|vo);case 41:return kt(r,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Sc,"\u8D1F",a,Tn|lr|ur|vo);case 26:return kt(r,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",xc,a,0);case 25:return kt(r,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",xc,a,Tn|lr|ur);case 31:return kt(r,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",va,l,Tn|lr|ur);case 33:return kt(r,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",va,l,0);case 32:return kt(r,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",va,l,Tn|lr|ur);case 18:return Ae(r,2406,2415,!0,n);case 20:return Ln(r,1,19999,vf,3,n);case 21:return Ae(r,2790,2799,!0,n);case 22:return Ae(r,2662,2671,!0,n);case 22:return Ln(r,1,10999,wf,3,n);case 23:return Vr(r,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Vr(r,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Ae(r,3302,3311,!0,n);case 28:return Vr(r,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",a);case 29:return Vr(r,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",a);case 34:return Ae(r,3792,3801,!0,n);case 37:return Ae(r,6160,6169,!0,n);case 38:return Ae(r,4160,4169,!0,n);case 39:return Ae(r,2918,2927,!0,n);case 40:return Ae(r,1776,1785,!0,n);case 43:return Ae(r,3046,3055,!0,n);case 44:return Ae(r,3174,3183,!0,n);case 45:return Ae(r,3664,3673,!0,n);case 46:return Ae(r,3872,3881,!0,n);case 3:default:return Ae(r,48,57,!0,n)}},Lc="data-html2canvas-ignore",Tc=function(){function r(e,o,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=o,this.counters=new hf,this.quoteDepth=0,!o.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(o.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(e,o){var n=this,a=Qf(e,o);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var l=e.defaultView.pageXOffset,d=e.defaultView.pageYOffset,v=a.contentWindow,w=v.document,U=Uf(a).then(function(){return b(n,void 0,void 0,function(){var E,I;return x(this,function(L){switch(L.label){case 0:return this.scrolledElements.forEach(bf),v&&(v.scrollTo(o.left,o.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(v.scrollY!==o.top||v.scrollX!==o.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(v.scrollX-o.left,v.scrollY-o.top,0,0))),E=this.options.onclone,I=this.clonedReferenceElement,typeof I=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:w.fonts&&w.fonts.ready?[4,w.fonts.ready]:[3,2];case 1:L.sent(),L.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Cf(w)]:[3,4];case 3:L.sent(),L.label=4;case 4:return typeof E=="function"?[2,Promise.resolve().then(function(){return E(w,I)}).then(function(){return a})]:[2,a]}})})});return w.open(),w.write(yf(document.doctype)+""),Ef(this.referenceElement.ownerDocument,l,d),w.replaceChild(w.adoptNode(this.documentElement),w.documentElement),w.close(),U},r.prototype.createElementClone=function(e){if(IA(e,2))debugger;if(Qc(e))return this.createCanvasClone(e);if(mc(e))return this.createVideoClone(e);if(Uc(e))return this.createStyleClone(e);var o=e.cloneNode(!1);return wa(o)&&(wa(e)&&e.currentSrc&&e.currentSrc!==e.src&&(o.src=e.currentSrc,o.srcset=""),o.loading==="lazy"&&(o.loading="eager")),yc(o)?this.createCustomElementClone(o):o},r.prototype.createCustomElementClone=function(e){var o=document.createElement("html2canvascustomelement");return Qa(e.style,o),o},r.prototype.createStyleClone=function(e){try{var o=e.sheet;if(o&&o.cssRules){var n=[].slice.call(o.cssRules,0).reduce(function(l,d){return d&&typeof d.cssText=="string"?l+d.cssText:l},""),a=e.cloneNode(!1);return a.textContent=n,a}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return e.cloneNode(!1)},r.prototype.createCanvasClone=function(e){var o;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var l=e.getContext("2d"),d=a.getContext("2d");if(d)if(!this.options.allowTaint&&l)d.putImageData(l.getImageData(0,0,e.width,e.height),0,0);else{var v=(o=e.getContext("webgl2"))!==null&&o!==void 0?o:e.getContext("webgl");if(v){var w=v.getContextAttributes();(w==null?void 0:w.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}d.drawImage(e,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},r.prototype.createVideoClone=function(e){var o=e.ownerDocument.createElement("canvas");o.width=e.offsetWidth,o.height=e.offsetHeight;var n=o.getContext("2d");try{return n&&(n.drawImage(e,0,0,o.width,o.height),this.options.allowTaint||n.getImageData(0,0,o.width,o.height)),o}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},r.prototype.appendChildNode=function(e,o,n){(!xn(o)||!pf(o)&&!o.hasAttribute(Lc)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(o)))&&(!this.options.copyStyles||!xn(o)||!Uc(o))&&e.appendChild(this.cloneNode(o,n))},r.prototype.cloneChildNodes=function(e,o,n){for(var a=this,l=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;l;l=l.nextSibling)if(xn(l)&&Fc(l)&&typeof l.assignedNodes=="function"){var d=l.assignedNodes();d.length&&d.forEach(function(v){return a.appendChildNode(o,v,n)})}else this.appendChildNode(o,l,n)},r.prototype.cloneNode=function(e,o){if(wc(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&xn(e)&&(pa(e)||Li(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var l=n.getComputedStyle(e),d=n.getComputedStyle(e,":before"),v=n.getComputedStyle(e,":after");this.referenceElement===e&&pa(a)&&(this.clonedReferenceElement=a),ha(a)&&Sf(a);var w=this.counters.parse(new fA(this.context,l)),U=this.resolvePseudoContent(e,a,d,mo.BEFORE);yc(e)&&(o=!0),mc(e)||this.cloneChildNodes(e,a,o),U&&a.insertBefore(U,a.firstChild);var E=this.resolvePseudoContent(e,a,v,mo.AFTER);return E&&a.appendChild(E),this.counters.pop(w),(l&&(this.options.copyStyles||Li(e))&&!Cc(e)||o)&&Qa(l,a),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(Ti(e)||Oi(e))&&(Ti(a)||Oi(a))&&(a.value=e.value),a}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,o,n,a){var l=this;if(!!n){var d=n.content,v=o.ownerDocument;if(!(!v||!d||d==="none"||d==="-moz-alt-content"||n.display==="none")){this.counters.parse(new fA(this.context,n));var w=new iA(this.context,n),U=v.createElement("html2canvaspseudoelement");Qa(n,U),w.content.forEach(function(I){if(I.type===0)U.appendChild(v.createTextNode(I.value));else if(I.type===22){var L=v.createElement("img");L.src=I.value,L.style.opacity="1",U.appendChild(L)}else if(I.type===18){if(I.name==="attr"){var q=I.values.filter(yA);q.length&&U.appendChild(v.createTextNode(e.getAttribute(q[0].value)||""))}else if(I.name==="counter"){var P=I.values.filter(wt),j=P[0],pA=P[1];if(j&&yA(j)){var nA=l.counters.getCounterValue(j.value),tA=pA&&yA(pA)?Pr.parse(l.context,pA.value):3;U.appendChild(v.createTextNode(Qo(nA,tA,!1)))}}else if(I.name==="counters"){var EA=I.values.filter(wt),j=EA[0],hA=EA[1],pA=EA[2];if(j&&yA(j)){var lA=l.counters.getCounterValues(j.value),Z=pA&&yA(pA)?Pr.parse(l.context,pA.value):3,UA=hA&&hA.type===0?hA.value:"",FA=lA.map(function(be){return Qo(be,Z,!1)}).join(UA);U.appendChild(v.createTextNode(FA))}}}else if(I.type===20)switch(I.value){case"open-quote":U.appendChild(v.createTextNode(T(w.quotes,l.quoteDepth++,!0)));break;case"close-quote":U.appendChild(v.createTextNode(T(w.quotes,--l.quoteDepth,!1)));break;default:U.appendChild(v.createTextNode(I.value))}}),U.className=ma+" "+Ca;var E=a===mo.BEFORE?" "+ma:" "+Ca;return Li(o)?o.className.baseValue+=E:o.className+=E,U}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),mo;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(mo||(mo={}));var Qf=function(r,e){var o=r.createElement("iframe");return o.className="html2canvas-container",o.style.visibility="hidden",o.style.position="fixed",o.style.left="-10000px",o.style.top="0px",o.style.border="0",o.width=e.width.toString(),o.height=e.height.toString(),o.scrolling="no",o.setAttribute(Lc,"true"),r.body.appendChild(o),o},mf=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},Cf=function(r){return Promise.all([].slice.call(r.images,0).map(mf))},Uf=function(r){return new Promise(function(e,o){var n=r.contentWindow;if(!n)return o("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var l=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(l),e(r))},50)}})},Ff=["all","d","content"],Qa=function(r,e){for(var o=r.length-1;o>=0;o--){var n=r.item(o);Ff.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},yf=function(r){var e="";return r&&(e+=""),e},Ef=function(r,e,o){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||o!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,o)},bf=function(r){var e=r[0],o=r[1],n=r[2];e.scrollLeft=o,e.scrollTop=n},If=":before",Hf=":after",ma="___html2canvas___pseudoelement_before",Ca="___html2canvas___pseudoelement_after",Oc=`{ +(()=>{var wB=Object.create;var ba=Object.defineProperty;var vB=Object.getOwnPropertyDescriptor;var QB=Object.getOwnPropertyNames;var mB=Object.getPrototypeOf,CB=Object.prototype.hasOwnProperty;var UB=h=>ba(h,"__esModule",{value:!0});var Ia=(h,p)=>()=>(p||h((p={exports:{}}).exports,p),p.exports);var FB=(h,p,y,b)=>{if(p&&typeof p=="object"||typeof p=="function")for(let x of QB(p))!CB.call(h,x)&&(y||x!=="default")&&ba(h,x,{get:()=>p[x],enumerable:!(b=vB(p,x))||b.enumerable});return h},Ha=(h,p)=>FB(UB(ba(h!=null?wB(mB(h)):{},"default",!p&&h&&h.__esModule?{get:()=>h.default,enumerable:!0}:{value:h,enumerable:!0})),h);var Wc=Ia((Sa,xa)=>{(function(h,p){typeof Sa=="object"&&typeof xa!="undefined"?xa.exports=p():typeof define=="function"&&define.amd?define(p):(h=typeof globalThis!="undefined"?globalThis:h||self,h.html2canvas=p())})(Sa,function(){"use strict";var h=function(r,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},h(r,e)};function p(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");h(r,e);function o(){this.constructor=r}r.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}var y=function(){return y=Object.assign||function(e){for(var o,n=1,a=arguments.length;n0&&l[l.length-1])&&(U[0]===6||U[0]===2)){o=0;continue}if(U[0]===3&&(!l||U[1]>l[0]&&U[1]=55296&&a<=56319&&o>10)+55296,d%1024+56320)),(a+1===o||n.length>16384)&&(l+=String.fromCharCode.apply(String,n),n.length=0)}return l},EA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_A=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),FA=0;FA>4,E[a++]=(d&15)<<4|v>>2,E[a++]=(v&3)<<6|w&63;return U},ut=function(r){for(var e=r.length,o=[],n=0;n>xA,Ue=1<>xA,Yt=JA+ft,eA=Yt,bA=2048>>6,Re=eA+bA,Ft=65536>>le,ue=1<=0){if(e<55296||e>56319&&e<=65535)return o=this.index[e>>xA],o=(o<>xA)],o=(o<>le),o=this.index[o],o+=e>>xA&D,o=this.index[o],o=(o<XA?(a.push(!0),v-=XA):a.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return n.push(d),o.push(jt);if(v===oA||v===_e){if(d===0)return n.push(d),o.push(Ze);var w=o[d-1];return os.indexOf(w)===-1?(n.push(n[d-1]),o.push(w)):(n.push(d),o.push(Ze))}if(n.push(d),v===rs)return o.push(e==="strict"?vr:gt);if(v===Vn||v===Nn)return o.push(Ze);if(v===ns)return l>=131072&&l<=196605||l>=196608&&l<=262141?o.push(gt):o.push(Ze);o.push(v)}),[n,o,a]},Wn=function(r,e,o,n){var a=n[o];if(Array.isArray(r)?r.indexOf(a)!==-1:r===a)for(var l=o;l<=n.length;){l++;var d=n[l];if(d===e)return!0;if(d!==YA)break}if(a===YA)for(var l=o;l>0;){l--;var v=n[l];if(Array.isArray(r)?r.indexOf(v)!==-1:r===v)for(var w=o;w<=n.length;){w++;var d=n[w];if(d===e)return!0;if(d!==YA)break}if(v!==YA)break}return!1},Jn=function(r,e){for(var o=r;o>=0;){var n=e[o];if(n===YA)o--;else return n}return 0},No=function(r,e,o,n,a){if(o[n]===0)return dA;var l=n-1;if(Array.isArray(a)&&a[l]===!0)return dA;var d=l-1,v=l+1,w=e[l],U=d>=0?e[d]:0,E=e[v];if(w===O&&E===V)return dA;if(fe.indexOf(w)!==-1)return cA;if(fe.indexOf(E)!==-1||Cr.indexOf(E)!==-1)return dA;if(Jn(l,e)===ne)return pt;if(Xn.get(r[l])===_e||(w===yt||w===Zr)&&Xn.get(r[v])===_e||w===aA||E===aA||w===Se||[YA,hr,xe].indexOf(w)===-1&&E===Se||[je,wr,zr,Bt,ze].indexOf(E)!==-1||Jn(l,e)===zt||Wn(Qr,zt,l,e)||Wn([je,wr],vr,l,e)||Wn(Mo,Mo,l,e))return dA;if(w===YA)return pt;if(w===Qr||E===Qr)return dA;if(E===jt||w===jt)return pt;if([hr,xe,vr].indexOf(E)!==-1||w===ts||U===Gn&&qt.indexOf(w)!==-1||w===ze&&E===Gn||E===Pn||$e.indexOf(E)!==-1&&w===he||$e.indexOf(w)!==-1&&E===he||w===mr&&[gt,yt,Zr].indexOf(E)!==-1||[gt,yt,Zr].indexOf(w)!==-1&&E===Zt||$e.indexOf(w)!==-1&&Ro.indexOf(E)!==-1||Ro.indexOf(w)!==-1&&$e.indexOf(E)!==-1||[mr,Zt].indexOf(w)!==-1&&(E===he||[zt,xe].indexOf(E)!==-1&&e[v+1]===he)||[zt,xe].indexOf(w)!==-1&&E===he||w===he&&[he,ze,Bt].indexOf(E)!==-1)return dA;if([he,ze,Bt,je,wr].indexOf(E)!==-1)for(var I=l;I>=0;){var L=e[I];if(L===he)return dA;if([ze,Bt].indexOf(L)!==-1)I--;else break}if([mr,Zt].indexOf(E)!==-1)for(var I=[je,wr].indexOf(w)!==-1?d:l;I>=0;){var L=e[I];if(L===he)return dA;if([ze,Bt].indexOf(L)!==-1)I--;else break}if(kn===w&&[kn,we,qr,Le].indexOf(E)!==-1||[we,qr].indexOf(w)!==-1&&[we,ye].indexOf(E)!==-1||[ye,Le].indexOf(w)!==-1&&E===ye||_o.indexOf(w)!==-1&&[Pn,Zt].indexOf(E)!==-1||_o.indexOf(E)!==-1&&w===mr||$e.indexOf(w)!==-1&&$e.indexOf(E)!==-1||w===Bt&&$e.indexOf(E)!==-1||$e.concat(he).indexOf(w)!==-1&&E===zt&&dt.indexOf(r[v])===-1||$e.concat(he).indexOf(E)!==-1&&w===wr)return dA;if(w===qe&&E===qe){for(var q=o[l],P=1;q>0&&(q--,e[q]===qe);)P++;if(P%2!==0)return dA}return w===yt&&E===Zr?dA:pt},$r=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var o=Po(r,e.lineBreak),n=o[0],a=o[1],l=o[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(a=a.map(function(v){return[he,Ze,Vn].indexOf(v)!==-1?gt:v}));var d=e.wordBreak==="keep-all"?l.map(function(v,w){return v&&r[w]>=19968&&r[w]<=40959}):void 0;return[n,a,d]},Go=function(){function r(e,o,n,a){this.codePoints=e,this.required=o===cA,this.start=n,this.end=a}return r.prototype.slice=function(){return AA.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),Yn=function(r,e){var o=SA(r),n=$r(o,e),a=n[0],l=n[1],d=n[2],v=o.length,w=0,U=0;return{next:function(){if(U>=v)return{done:!0,value:null};for(var E=dA;U=Ar&&r<=57},qo=function(r){return r>=55296&&r<=57343},ht=function(r){return oe(r)||r>=VA&&r<=Zn||r>=zo&&r<=nn},ws=function(r){return r>=zo&&r<=ps},qn=function(r){return r>=VA&&r<=Ot},vs=function(r){return ws(r)||qn(r)},Qs=function(r){return r>=gs},At=function(r){return r===An||r===ss||r===as},on=function(r){return vs(r)||Qs(r)||r===Ir},qA=function(r){return on(r)||oe(r)||r===ae},$o=function(r){return r>=OA&&r<=rn||r===PA||r>=Yo&&r<=Sr||r===jo},Oe=function(r,e){return r!==Et?!1:e!==An},sn=function(r,e,o){return r===ae?on(e)||Oe(e,o):on(r)?!0:!!(r===Et&&Oe(r,e))},an=function(r,e,o){return r===Te||r===ae?oe(e)?!0:e===Hr&&oe(o):oe(r===Hr?e:r)},Ai=function(r){var e=0,o=1;(r[e]===Te||r[e]===ae)&&(r[e]===ae&&(o=-1),e++);for(var n=[];oe(r[e]);)n.push(r[e++]);var a=n.length?parseInt(AA.apply(void 0,n),10):0;r[e]===Hr&&e++;for(var l=[];oe(r[e]);)l.push(r[e++]);var d=l.length,v=d?parseInt(AA.apply(void 0,l),10):0;(r[e]===Zo||r[e]===xr)&&e++;var w=1;(r[e]===Te||r[e]===ae)&&(r[e]===ae&&(w=-1),e++);for(var U=[];oe(r[e]);)U.push(r[e++]);var E=U.length?parseInt(AA.apply(void 0,U),10):0;return o*(a+v*Math.pow(10,-d))*Math.pow(10,w*E)},ms={type:2},Lr={type:3},Cs={type:4},Tr={type:13},ei={type:8},Us={type:21},Or={type:9},$n={type:10},cn={type:11},Fs={type:12},et={type:14},ln={type:23},un={type:1},ys={type:25},Ao={type:24},Es={type:26},fn={type:27},bs={type:28},eo={type:29},to={type:31},Bn={type:32},ti=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(SA(e))},r.prototype.read=function(){for(var e=[],o=this.consumeToken();o!==Bn;)e.push(o),o=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case bt:return this.consumeStringToken(bt);case $t:var o=this.peekCodePoint(0),n=this.peekCodePoint(1),a=this.peekCodePoint(2);if(qA(o)||Oe(n,a)){var l=sn(o,n,a)?is:ko,d=this.consumeName();return{type:5,value:d,flags:l}}break;case cs:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),Tr;break;case br:return this.consumeStringToken(br);case en:return ms;case It:return Lr;case Tt:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),et;break;case Te:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case jn:return Cs;case ae:var v=e,w=this.peekCodePoint(0),U=this.peekCodePoint(1);if(an(v,w,U))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(sn(v,w,U))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(w===ae&&U===St)return this.consumeCodePoint(),this.consumeCodePoint(),Ao;break;case Hr:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case yr:if(this.peekCodePoint(0)===Tt)for(this.consumeCodePoint();;){var E=this.consumeCodePoint();if(E===Tt&&(E=this.consumeCodePoint(),E===yr))return this.consumeToken();if(E===Pe)return this.consumeToken()}break;case ds:return Es;case zn:return fn;case Ht:if(this.peekCodePoint(0)===us&&this.peekCodePoint(1)===ae&&this.peekCodePoint(2)===ae)return this.consumeCodePoint(),this.consumeCodePoint(),ys;break;case Vo:var I=this.peekCodePoint(0),L=this.peekCodePoint(1),q=this.peekCodePoint(2);if(sn(I,L,q)){var d=this.consumeName();return{type:7,value:d}}break;case Xo:return bs;case Et:if(Oe(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case fs:return eo;case xt:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),ei;break;case Bs:return cn;case Wo:return Fs;case ve:case hs:var P=this.peekCodePoint(0),Y=this.peekCodePoint(1);return P===Te&&(ht(Y)||Y===Lt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case ee:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),Or;if(this.peekCodePoint(0)===ee)return this.consumeCodePoint(),Us;break;case tn:if(this.peekCodePoint(0)===Er)return this.consumeCodePoint(),$n;break;case Pe:return Bn}return At(e)?(this.consumeWhiteSpace(),to):oe(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):on(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:AA(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e=="undefined"?-1:e},r.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},r.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},r.prototype.consumeUnicodeRangeToken=function(){for(var e=[],o=this.consumeCodePoint();ht(o)&&e.length<6;)e.push(o),o=this.consumeCodePoint();for(var n=!1;o===Lt&&e.length<6;)e.push(o),o=this.consumeCodePoint(),n=!0;if(n){var a=parseInt(AA.apply(void 0,e.map(function(w){return w===Lt?Ar:w})),16),l=parseInt(AA.apply(void 0,e.map(function(w){return w===Lt?Zn:w})),16);return{type:30,start:a,end:l}}var d=parseInt(AA.apply(void 0,e),16);if(this.peekCodePoint(0)===ae&&ht(this.peekCodePoint(1))){this.consumeCodePoint(),o=this.consumeCodePoint();for(var v=[];ht(o)&&v.length<6;)v.push(o),o=this.consumeCodePoint();var l=parseInt(AA.apply(void 0,v),16);return{type:30,start:d,end:l}}else return{type:30,start:d,end:d}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===en?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===en?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe)return{type:22,value:""};var o=this.peekCodePoint(0);if(o===br||o===bt){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe||this.peekCodePoint(0)===It)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),ln)}for(;;){var a=this.consumeCodePoint();if(a===Pe||a===It)return{type:22,value:AA.apply(void 0,e)};if(At(a))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe||this.peekCodePoint(0)===It?(this.consumeCodePoint(),{type:22,value:AA.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ln);if(a===bt||a===br||a===en||$o(a))return this.consumeBadUrlRemnants(),ln;if(a===Et)if(Oe(a,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ln;else e.push(a)}},r.prototype.consumeWhiteSpace=function(){for(;At(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===It||e===Pe)return;Oe(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var o=5e4,n="";e>0;){var a=Math.min(o,e);n+=AA.apply(void 0,this._value.splice(0,a)),e-=a}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var o="",n=0;do{var a=this._value[n];if(a===Pe||a===void 0||a===e)return o+=this.consumeStringSlice(n),{type:0,value:o};if(a===An)return this._value.splice(0,n),un;if(a===Et){var l=this._value[n+1];l!==Pe&&l!==void 0&&(l===An?(o+=this.consumeStringSlice(n),n=-1,this._value.shift()):Oe(a,l)&&(o+=this.consumeStringSlice(n),o+=AA(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],o=Ur,n=this.peekCodePoint(0);for((n===Te||n===ae)&&e.push(this.consumeCodePoint());oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var a=this.peekCodePoint(1);if(n===Hr&&oe(a))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),o=Fr;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),a=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((n===Zo||n===xr)&&((a===Te||a===ae)&&oe(l)||oe(a)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),o=Fr;oe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Ai(e),o]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),o=e[0],n=e[1],a=this.peekCodePoint(0),l=this.peekCodePoint(1),d=this.peekCodePoint(2);if(sn(a,l,d)){var v=this.consumeName();return{type:15,number:o,flags:n,unit:v}}return a===ls?(this.consumeCodePoint(),{type:16,number:o,flags:n}):{type:17,number:o,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(ht(e)){for(var o=AA(e);ht(this.peekCodePoint(0))&&o.length<6;)o+=AA(this.consumeCodePoint());At(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(o,16);return n===0||qo(n)||n>1114111?Jo:n}return e===Pe?Jo:e},r.prototype.consumeName=function(){for(var e="";;){var o=this.consumeCodePoint();if(qA(o))e+=AA(o);else if(Oe(o,this.peekCodePoint(0)))e+=AA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(o),e}},r}(),er=function(){function r(e){this._tokens=e}return r.create=function(e){var o=new ti;return o.write(e),new r(o.read())},r.parseValue=function(e){return r.create(e).parseComponentValue()},r.parseValues=function(e){return r.create(e).parseComponentValues()},r.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var o=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return o;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},r.prototype.parseComponentValues=function(){for(var e=[];;){var o=this.consumeComponentValue();if(o.type===32)return e;e.push(o),e.push()}},r.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},r.prototype.consumeSimpleBlock=function(e){for(var o={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||ni(n,e))return o;this.reconsumeToken(n),o.values.push(this.consumeComponentValue()),n=this.consumeToken()}},r.prototype.consumeFunction=function(e){for(var o={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return o;this.reconsumeToken(n),o.values.push(this.consumeComponentValue())}},r.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e=="undefined"?Bn:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),Dr=function(r){return r.type===15},tt=function(r){return r.type===17},UA=function(r){return r.type===20},ri=function(r){return r.type===0},ro=function(r,e){return UA(r)&&r.value===e},Kr=function(r){return r.type!==31},wt=function(r){return r.type!==31&&r.type!==4},De=function(r){var e=[],o=[];return r.forEach(function(n){if(n.type===4){if(o.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(o),o=[];return}n.type!==31&&o.push(n)}),o.length&&e.push(o),e},ni=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},vt=function(r){return r.type===17||r.type===15},ZA=function(r){return r.type===16||vt(r)},gn=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},ie={type:17,number:0,flags:Ur},tr={type:16,number:50,flags:Ur},Ne={type:16,number:100,flags:Ur},rr=function(r,e,o){var n=r[0],a=r[1];return[DA(n,e),DA(typeof a!="undefined"?a:n,o)]},DA=function(r,e){if(r.type===16)return r.number/100*e;if(Dr(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},dn="deg",oi="grad",ii="rad",nr="turn",or={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case dn:return Math.PI*e.number/180;case oi:return Math.PI/200*e.number;case ii:return e.number;case nr:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},ir=function(r){return r.type===15&&(r.unit===dn||r.unit===oi||r.unit===ii||r.unit===nr)},si=function(r){var e=r.filter(UA).map(function(o){return o.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ie,ie];case"to top":case"bottom":return Qe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ie,Ne];case"to right":case"left":return Qe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ne,Ne];case"to bottom":case"top":return Qe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ne,ie];case"to left":case"right":return Qe(270)}return 0},Qe=function(r){return Math.PI*r/180},Qt={name:"color",parse:function(r,e){if(e.type===18){var o=ai[e.name];if(typeof o=="undefined")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return o(r,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),a=e.value.substring(1,2),l=e.value.substring(2,3);return rt(parseInt(n+n,16),parseInt(a+a,16),parseInt(l+l,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),a=e.value.substring(1,2),l=e.value.substring(2,3),d=e.value.substring(3,4);return rt(parseInt(n+n,16),parseInt(a+a,16),parseInt(l+l,16),parseInt(d+d,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),a=e.value.substring(2,4),l=e.value.substring(4,6);return rt(parseInt(n,16),parseInt(a,16),parseInt(l,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),a=e.value.substring(2,4),l=e.value.substring(4,6),d=e.value.substring(6,8);return rt(parseInt(n,16),parseInt(a,16),parseInt(l,16),parseInt(d,16)/255)}}if(e.type===20){var v=KA[e.value.toUpperCase()];if(typeof v!="undefined")return v}return KA.TRANSPARENT}},Be=function(r){return(255&r)===0},$A=function(r){var e=255&r,o=255&r>>8,n=255&r>>16,a=255&r>>24;return e<255?"rgba("+a+","+n+","+o+","+e/255+")":"rgb("+a+","+n+","+o+")"},rt=function(r,e,o,n){return(r<<24|e<<16|o<<8|Math.round(n*255)<<0)>>>0},no=function(r,e){if(r.type===17)return r.number;if(r.type===16){var o=e===3?1:255;return e===3?r.number/100*o:Math.round(r.number/100*o)}return 0},te=function(r,e){var o=e.filter(wt);if(o.length===3){var n=o.map(no),a=n[0],l=n[1],d=n[2];return rt(a,l,d,1)}if(o.length===4){var v=o.map(no),a=v[0],l=v[1],d=v[2],w=v[3];return rt(a,l,d,w)}return 0};function oo(r,e,o){return o<0&&(o+=1),o>=1&&(o-=1),o<1/6?(e-r)*o*6+r:o<1/2?e:o<2/3?(e-r)*6*(2/3-o)+r:r}var io=function(r,e){var o=e.filter(wt),n=o[0],a=o[1],l=o[2],d=o[3],v=(n.type===17?Qe(n.number):or.parse(r,n))/(Math.PI*2),w=ZA(a)?a.number/100:0,U=ZA(l)?l.number/100:0,E=typeof d!="undefined"&&ZA(d)?DA(d,1):1;if(w===0)return rt(U*255,U*255,U*255,1);var I=U<=.5?U*(w+1):U+w-U*w,L=U*2-I,q=oo(L,I,v+1/3),P=oo(L,I,v),Y=oo(L,I,v-1/3);return rt(q*255,P*255,Y*255,E)},ai={hsl:io,hsla:io,rgb:te,rgba:te},Dt=function(r,e){return Qt.parse(r,er.create(e).parseComponentValue())},KA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Is={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(o){if(UA(o))switch(o.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ci={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pn=function(r,e){var o=Qt.parse(r,e[0]),n=e[1];return n&&ZA(n)?{color:o,stop:n}:{color:o,stop:null}},li=function(r,e){var o=r[0],n=r[r.length-1];o.stop===null&&(o.stop=ie),n.stop===null&&(n.stop=Ne);for(var a=[],l=0,d=0;dl?a.push(w):a.push(l),l=w}else a.push(null)}for(var U=null,d=0;dd.optimumDistance)?{optimumCorner:v,optimumDistance:E}:d},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},ui=function(r,e,o,n,a){var l=0,d=0;switch(r.size){case 0:r.shape===0?l=d=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(o),Math.abs(o-a)):r.shape===1&&(l=Math.min(Math.abs(e),Math.abs(e-n)),d=Math.min(Math.abs(o),Math.abs(o-a)));break;case 2:if(r.shape===0)l=d=Math.min(me(e,o),me(e,o-a),me(e-n,o),me(e-n,o-a));else if(r.shape===1){var v=Math.min(Math.abs(o),Math.abs(o-a))/Math.min(Math.abs(e),Math.abs(e-n)),w=so(n,a,e,o,!0),U=w[0],E=w[1];l=me(U-e,(E-o)/v),d=v*l}break;case 1:r.shape===0?l=d=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(o),Math.abs(o-a)):r.shape===1&&(l=Math.max(Math.abs(e),Math.abs(e-n)),d=Math.max(Math.abs(o),Math.abs(o-a)));break;case 3:if(r.shape===0)l=d=Math.max(me(e,o),me(e,o-a),me(e-n,o),me(e-n,o-a));else if(r.shape===1){var v=Math.max(Math.abs(o),Math.abs(o-a))/Math.max(Math.abs(e),Math.abs(e-n)),I=so(n,a,e,o,!1),U=I[0],E=I[1];l=me(U-e,(E-o)/v),d=v*l}break}return Array.isArray(r.size)&&(l=DA(r.size[0],n),d=r.size.length===2?DA(r.size[1],a):l),[l,d]},Mr=function(r,e){var o=Qe(180),n=[];return De(e).forEach(function(a,l){if(l===0){var d=a[0];if(d.type===20&&d.value==="to"){o=si(a);return}else if(ir(d)){o=or.parse(r,d);return}}var v=pn(r,a);n.push(v)}),{angle:o,stops:n,type:1}},Kt=function(r,e){var o=Qe(180),n=[];return De(e).forEach(function(a,l){if(l===0){var d=a[0];if(d.type===20&&["top","left","right","bottom"].indexOf(d.value)!==-1){o=si(a);return}else if(ir(d)){o=(or.parse(r,d)+Qe(270))%Qe(360);return}}var v=pn(r,a);n.push(v)}),{angle:o,stops:n,type:1}},Hs=function(r,e){var o=Qe(180),n=[],a=1,l=0,d=3,v=[];return De(e).forEach(function(w,U){var E=w[0];if(U===0){if(UA(E)&&E.value==="linear"){a=1;return}else if(UA(E)&&E.value==="radial"){a=2;return}}if(E.type===18){if(E.name==="from"){var I=Qt.parse(r,E.values[0]);n.push({stop:ie,color:I})}else if(E.name==="to"){var I=Qt.parse(r,E.values[0]);n.push({stop:Ne,color:I})}else if(E.name==="color-stop"){var L=E.values.filter(wt);if(L.length===2){var I=Qt.parse(r,L[1]),q=L[0];tt(q)&&n.push({stop:{type:16,number:q.number*100,flags:q.flags},color:I})}}}}),a===1?{angle:(o+Qe(180))%Qe(360),stops:n,type:a}:{size:d,shape:l,stops:n,position:v,type:a}},fi="closest-side",Mt="farthest-side",ao="closest-corner",vn="farthest-corner",Bi="circle",co="ellipse",gi="cover",di="contain",Ss=function(r,e){var o=0,n=3,a=[],l=[];return De(e).forEach(function(d,v){var w=!0;if(v===0){var U=!1;w=d.reduce(function(I,L){if(U)if(UA(L))switch(L.value){case"center":return l.push(tr),I;case"top":case"left":return l.push(ie),I;case"right":case"bottom":return l.push(Ne),I}else(ZA(L)||vt(L))&&l.push(L);else if(UA(L))switch(L.value){case Bi:return o=0,!1;case co:return o=1,!1;case"at":return U=!0,!1;case fi:return n=0,!1;case gi:case Mt:return n=1,!1;case di:case ao:return n=2,!1;case vn:return n=3,!1}else if(vt(L)||ZA(L))return Array.isArray(n)||(n=[]),n.push(L),!1;return I},w)}if(w){var E=pn(r,d);a.push(E)}}),{size:n,shape:o,stops:a,position:l,type:2}},Ge=function(r,e){var o=0,n=3,a=[],l=[];return De(e).forEach(function(d,v){var w=!0;if(v===0?w=d.reduce(function(E,I){if(UA(I))switch(I.value){case"center":return l.push(tr),!1;case"top":case"left":return l.push(ie),!1;case"right":case"bottom":return l.push(Ne),!1}else if(ZA(I)||vt(I))return l.push(I),!1;return E},w):v===1&&(w=d.reduce(function(E,I){if(UA(I))switch(I.value){case Bi:return o=0,!1;case co:return o=1,!1;case di:case fi:return n=0,!1;case Mt:return n=1,!1;case ao:return n=2,!1;case gi:case vn:return n=3,!1}else if(vt(I)||ZA(I))return Array.isArray(n)||(n=[]),n.push(I),!1;return E},w)),w){var U=pn(r,d);a.push(U)}}),{size:n,shape:o,stops:a,position:l,type:2}},pi=function(r){return r.type===1},xs=function(r){return r.type===2},Rr={name:"image",parse:function(r,e){if(e.type===22){var o={url:e.value,type:0};return r.cache.addImage(e.value),o}if(e.type===18){var n=Qn[e.name];if(typeof n=="undefined")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(r,e.values)}throw new Error("Unsupported image type "+e.type)}};function ge(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!Qn[r.name])}var Qn={"linear-gradient":Mr,"-moz-linear-gradient":Kt,"-ms-linear-gradient":Kt,"-o-linear-gradient":Kt,"-webkit-linear-gradient":Kt,"radial-gradient":Ss,"-moz-radial-gradient":Ge,"-ms-radial-gradient":Ge,"-o-radial-gradient":Ge,"-webkit-radial-gradient":Ge,"-webkit-gradient":Hs},hi={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(r,e){if(e.length===0)return[];var o=e[0];return o.type===20&&o.value==="none"?[]:e.filter(function(n){return wt(n)&&ge(n)}).map(function(n){return Rr.parse(r,n)})}},Ls={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(o){if(UA(o))switch(o.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ke={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return De(e).map(function(o){return o.filter(ZA)}).map(gn)}},wi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return De(e).map(function(o){return o.filter(UA).map(function(n){return n.value}).join(" ")}).map(vi)}},vi=function(r){switch(r){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Rt;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(Rt||(Rt={}));var Qi={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return De(e).map(function(o){return o.filter(Ts)})}},Ts=function(r){return UA(r)||ZA(r)},nt=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Os=nt("top"),mi=nt("right"),Ds=nt("bottom"),sr=nt("left"),mn=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,o){return gn(o.filter(ZA))}}},Ks=mn("top-left"),Ci=mn("top-right"),Ms=mn("bottom-right"),lo=mn("bottom-left"),Ke=function(r){return{name:"border-"+r+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,o){switch(o){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ui=Ke("top"),Rs=Ke("right"),ot=Ke("bottom"),Fi=Ke("left"),_r=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,o){return Dr(o)?o.number:0}}},_s=_r("top"),ar=_r("right"),yi=_r("bottom"),Ps=_r("left"),uo={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fo={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},cr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(UA).reduce(function(o,n){return o|Ns(n.value)},0)}},Ns=function(r){switch(r){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Cn={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Gs={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(r,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Un;(function(r){r.NORMAL="normal",r.STRICT="strict"})(Un||(Un={}));var _t={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return Un.STRICT;case"normal":default:return Un.NORMAL}}},Bo={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ei=function(r,e){return UA(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:ZA(r)?DA(r,e):e},go={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:Rr.parse(r,e)}},ks={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(r,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Pr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(r,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Pt=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},Vs=Pt("top"),Nr=Pt("right"),Fn=Pt("bottom"),mt=Pt("left"),bi={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(UA).map(function(o){switch(o.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},po={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},yn=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},En=yn("top"),Xs=yn("right"),Ws=yn("bottom"),Js=yn("left"),bn={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(r,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ys={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(r,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},js={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&ro(e[0],"none")?[]:De(e).map(function(o){for(var n={color:KA.TRANSPARENT,offsetX:ie,offsetY:ie,blur:ie},a=0,l=0;l1?1:0],this.overflowWrap=K(e,po,o.overflowWrap),this.paddingTop=K(e,En,o.paddingTop),this.paddingRight=K(e,Xs,o.paddingRight),this.paddingBottom=K(e,Ws,o.paddingBottom),this.paddingLeft=K(e,Js,o.paddingLeft),this.paintOrder=K(e,M,o.paintOrder),this.position=K(e,Ys,o.position),this.textAlign=K(e,bn,o.textAlign),this.textDecorationColor=K(e,A,(n=o.textDecorationColor)!==null&&n!==void 0?n:o.color),this.textDecorationLine=K(e,t,(a=o.textDecorationLine)!==null&&a!==void 0?a:o.textDecoration),this.textShadow=K(e,js,o.textShadow),this.textTransform=K(e,zs,o.textTransform),this.transform=K(e,In,o.transform),this.transformOrigin=K(e,Aa,o.transformOrigin),this.visibility=K(e,Ee,o.visibility),this.webkitTextStrokeColor=K(e,X,o.webkitTextStrokeColor),this.webkitTextStrokeWidth=K(e,_,o.webkitTextStrokeWidth),this.wordBreak=K(e,ea,o.wordBreak),this.zIndex=K(e,Gt,o.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return Be(this.backgroundColor)},r.prototype.isTransformed=function(){return this.transform!==null},r.prototype.isPositioned=function(){return this.position!==0},r.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},r.prototype.isFloating=function(){return this.float!==0},r.prototype.isInlineLevel=function(){return u(this.display,4)||u(this.display,33554432)||u(this.display,268435456)||u(this.display,536870912)||u(this.display,67108864)||u(this.display,134217728)},r}(),sA=function(){function r(e,o){this.content=K(e,B,o.content),this.quotes=K(e,S,o.quotes)}return r}(),fA=function(){function r(e,o){this.counterIncrement=K(e,Q,o.counterIncrement),this.counterReset=K(e,m,o.counterReset)}return r}(),K=function(r,e,o){var n=new ti,a=o!==null&&typeof o!="undefined"?o.toString():e.initialValue;n.write(a);var l=new er(n.read());switch(e.type){case 2:var d=l.parseComponentValue();return e.parse(r,UA(d)?d.value:e.initialValue);case 0:return e.parse(r,l.parseComponentValue());case 1:return e.parse(r,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(e.format){case"angle":return or.parse(r,l.parseComponentValue());case"color":return Qt.parse(r,l.parseComponentValue());case"image":return Rr.parse(r,l.parseComponentValue());case"length":var v=l.parseComponentValue();return vt(v)?v:ie;case"length-percentage":var w=l.parseComponentValue();return ZA(w)?w:ie;case"time":return Hn.parse(r,l.parseComponentValue())}break}},MA="data-html2canvas-debug",wA=function(r){var e=r.getAttribute(MA);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},IA=function(r,e){var o=wA(r);return o===1||e===o},jA=function(){function r(e,o){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,IA(o,3))debugger;this.styles=new rA(e,window.getComputedStyle(o,null)),pa(o)&&(this.styles.animationDuration.some(function(n){return n>0})&&(o.style.animationDuration="0s"),this.styles.transform!==null&&(o.style.transform="none")),this.bounds=k(this.context,o),IA(o,4)&&(this.flags|=16)}return r}(),it="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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AcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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AAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Sn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ii=0;Ii>4,E[a++]=(d&15)<<4|v>>2,E[a++]=(v&3)<<6|w&63;return U},wu=function(r){for(var e=r.length,o=[],n=0;n>kr,mu=1<>kr,Uu=za+Cu,Fu=Uu,yu=2048>>6,Eu=Fu+yu,bu=65536>>ra,Iu=1<=0){if(e<55296||e>56319&&e<=65535)return o=this.index[e>>kr],o=(o<>kr)],o=(o<>ra),o=this.index[o],o+=e>>kr&Hu,o=this.index[o],o=(o<=55296&&a<=56319&&o>10)+55296,d%1024+56320)),(a+1===o||n.length>16384)&&(l+=String.fromCharCode.apply(String,n),n.length=0)}return l},Ru=xu(it),Ve="\xD7",ua="\xF7",_u=function(r){return Ru.get(r)},Pu=function(r,e,o){var n=o-2,a=e[n],l=e[o-1],d=e[o];if(l===ia&&d===sa)return Ve;if(l===ia||l===sa||l===$a||d===ia||d===sa||d===$a)return ua;if(l===ec&&[ec,aa,tc,rc].indexOf(d)!==-1||(l===tc||l===aa)&&(d===aa||d===ca)||(l===rc||l===ca)&&d===ca||d===nc||d===Ac||d===Du||l===Ou)return Ve;if(l===nc&&d===oc){for(;a===Ac;)a=e[--n];if(a===oc)return Ve}if(l===la&&d===la){for(var v=0;a===la;)v++,a=e[--n];if(v%2===0)return Ve}return ua},Nu=function(r){var e=Ku(r),o=e.length,n=0,a=0,l=e.map(_u);return{next:function(){if(n>=o)return{done:!0,value:null};for(var d=Ve;nd.x||E.y>d.y;return d=E,U===0?!0:I});return r.body.removeChild(e),v},Xu=function(){return typeof new Image().crossOrigin!="undefined"},Wu=function(){return typeof new XMLHttpRequest().responseType=="string"},Ju=function(r){var e=new Image,o=r.createElement("canvas"),n=o.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,";try{n.drawImage(e,0,0),o.toDataURL()}catch{return!1}return!0},ic=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},Yu=function(r){var e=r.createElement("canvas"),o=100;e.width=o,e.height=o;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,o,o);var a=new Image,l=e.toDataURL();a.src=l;var d=fa(o,o,0,0,a);return n.fillStyle="red",n.fillRect(0,0,o,o),sc(d).then(function(v){n.drawImage(v,0,0);var w=n.getImageData(0,0,o,o).data;n.fillStyle="red",n.fillRect(0,0,o,o);var U=r.createElement("div");return U.style.backgroundImage="url("+l+")",U.style.height=o+"px",ic(w)?sc(fa(o,o,0,0,U)):Promise.reject(!1)}).then(function(v){return n.drawImage(v,0,0),ic(n.getImageData(0,0,o,o).data)}).catch(function(){return!1})},fa=function(r,e,o,n,a){var l="http://www.w3.org/2000/svg",d=document.createElementNS(l,"svg"),v=document.createElementNS(l,"foreignObject");return d.setAttributeNS(null,"width",r.toString()),d.setAttributeNS(null,"height",e.toString()),v.setAttributeNS(null,"width","100%"),v.setAttributeNS(null,"height","100%"),v.setAttributeNS(null,"x",o.toString()),v.setAttributeNS(null,"y",n.toString()),v.setAttributeNS(null,"externalResourcesRequired","true"),d.appendChild(v),v.appendChild(a),d},sc=function(r){return new Promise(function(e,o){var n=new Image;n.onload=function(){return e(n)},n.onerror=o,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(r))})},de={get SUPPORT_RANGE_BOUNDS(){var r=ku(document);return Object.defineProperty(de,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=de.SUPPORT_RANGE_BOUNDS&&Vu(document);return Object.defineProperty(de,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=Ju(document);return Object.defineProperty(de,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?Yu(document):Promise.resolve(!1);return Object.defineProperty(de,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=Xu();return Object.defineProperty(de,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=Wu();return Object.defineProperty(de,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(de,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(de,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},vo=function(){function r(e,o){this.text=e,this.bounds=o}return r}(),ju=function(r,e,o,n){var a=qu(e,o),l=[],d=0;return a.forEach(function(v){if(o.textDecorationLine.length||v.trim().length>0)if(de.SUPPORT_RANGE_BOUNDS){var w=ac(n,d,v.length).getClientRects();if(w.length>1){var U=Ba(v),E=0;U.forEach(function(L){l.push(new vo(L,j.fromDOMRectList(r,ac(n,E+d,L.length).getClientRects()))),E+=L.length})}else l.push(new vo(v,j.fromDOMRectList(r,w)))}else{var I=n.splitText(v.length);l.push(new vo(v,zu(r,n))),n=I}else de.SUPPORT_RANGE_BOUNDS||(n=n.splitText(v.length));d+=v.length}),l},zu=function(r,e){var o=e.ownerDocument;if(o){var n=o.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var a=e.parentNode;if(a){a.replaceChild(n,e);var l=k(r,n);return n.firstChild&&a.replaceChild(n.firstChild,n),l}}return j.EMPTY},ac=function(r,e,o){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var a=n.createRange();return a.setStart(r,e),a.setEnd(r,e+o),a},Ba=function(r){if(de.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(r)).map(function(o){return o.segment})}return Gu(r)},Zu=function(r,e){if(de.SUPPORT_NATIVE_TEXT_SEGMENTATION){var o=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(o.segment(r)).map(function(n){return n.segment})}return Af(r,e)},qu=function(r,e){return e.letterSpacing!==0?Ba(r):Zu(r,e)},$u=[32,160,4961,65792,65793,4153,4241],Af=function(r,e){for(var o=Yn(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],a,l=function(){if(a.value){var d=a.value.slice(),v=SA(d),w="";v.forEach(function(U){$u.indexOf(U)===-1?w+=AA(U):(w.length&&n.push(w),n.push(AA(U)),w="")}),w.length&&n.push(w)}};!(a=o.next()).done;)l();return n},ef=function(){function r(e,o,n){this.text=tf(o.data,n.textTransform),this.textBounds=ju(e,this.text,n,o)}return r}(),tf=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(rf,nf);case 2:return r.toUpperCase();default:return r}},rf=/(^|\s|:|-|\(|\))([a-z])/g,nf=function(r,e,o){return r.length>0?e+o.toUpperCase():r},cc=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this;return a.src=n.currentSrc||n.src,a.intrinsicWidth=n.naturalWidth,a.intrinsicHeight=n.naturalHeight,a.context.cache.addImage(a.src),a}return e}(jA),lc=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this;return a.canvas=n,a.intrinsicWidth=n.width,a.intrinsicHeight=n.height,a}return e}(jA),uc=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this,l=new XMLSerializer,d=k(o,n);return n.setAttribute("width",d.width+"px"),n.setAttribute("height",d.height+"px"),a.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(n)),a.intrinsicWidth=n.width.baseVal.value,a.intrinsicHeight=n.height.baseVal.value,a.context.cache.addImage(a.svg),a}return e}(jA),fc=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this;return a.value=n.value,a}return e}(jA),ga=function(r){p(e,r);function e(o,n){var a=r.call(this,o,n)||this;return a.start=n.start,a.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,a}return e}(jA),of=[{type:15,flags:0,unit:"px",number:3}],sf=[{type:16,flags:0,number:50}],af=function(r){return r.width>r.height?new j(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)o.textNodes.push(new ef(r,a,o.styles));else if(xn(a))if(yc(a)&&a.assignedNodes)a.assignedNodes().forEach(function(v){return Li(r,v,o,n)});else{var d=hc(r,a);d.styles.isVisible()&&(ff(a,d,n)?d.flags|=4:Bf(d.styles)&&(d.flags|=2),uf.indexOf(a.tagName)!==-1&&(d.flags|=8),o.elements.push(d),a.slot,a.shadowRoot?Li(r,a.shadowRoot,d,n):!Oi(a)&&!Qc(a)&&!Di(a)&&Li(r,a,d,n))}},hc=function(r,e){return wa(e)?new cc(r,e):mc(e)?new lc(r,e):Qc(e)?new uc(r,e):gf(e)?new fc(r,e):df(e)?new ga(r,e):pf(e)?new da(r,e):Di(e)?new gc(r,e):Oi(e)?new dc(r,e):Uc(e)?new pc(r,e):new jA(r,e)},wc=function(r,e){var o=hc(r,e);return o.flags|=4,Li(r,e,o,o),o},ff=function(r,e,o){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||ha(r)&&o.styles.isTransparent()},Bf=function(r){return r.isPositioned()||r.isFloating()},vc=function(r){return r.nodeType===Node.TEXT_NODE},xn=function(r){return r.nodeType===Node.ELEMENT_NODE},pa=function(r){return xn(r)&&typeof r.style!="undefined"&&!Ti(r)},Ti=function(r){return typeof r.className=="object"},gf=function(r){return r.tagName==="LI"},df=function(r){return r.tagName==="OL"},pf=function(r){return r.tagName==="INPUT"},hf=function(r){return r.tagName==="HTML"},Qc=function(r){return r.tagName==="svg"},ha=function(r){return r.tagName==="BODY"},mc=function(r){return r.tagName==="CANVAS"},Cc=function(r){return r.tagName==="VIDEO"},wa=function(r){return r.tagName==="IMG"},Uc=function(r){return r.tagName==="IFRAME"},Fc=function(r){return r.tagName==="STYLE"},wf=function(r){return r.tagName==="SCRIPT"},Oi=function(r){return r.tagName==="TEXTAREA"},Di=function(r){return r.tagName==="SELECT"},yc=function(r){return r.tagName==="SLOT"},Ec=function(r){return r.tagName.indexOf("-")>0},vf=function(){function r(){this.counters={}}return r.prototype.getCounterValue=function(e){var o=this.counters[e];return o&&o.length?o[o.length-1]:1},r.prototype.getCounterValues=function(e){var o=this.counters[e];return o||[]},r.prototype.pop=function(e){var o=this;e.forEach(function(n){return o.counters[n].pop()})},r.prototype.parse=function(e){var o=this,n=e.counterIncrement,a=e.counterReset,l=!0;n!==null&&n.forEach(function(v){var w=o.counters[v.counter];w&&v.increment!==0&&(l=!1,w.length||w.push(1),w[Math.max(0,w.length-1)]+=v.increment)});var d=[];return l&&a.forEach(function(v){var w=o.counters[v.counter];d.push(v.counter),w||(w=o.counters[v.counter]=[]),w.push(v.reset)}),d},r}(),bc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ic={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Qf={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},mf={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},Ln=function(r,e,o,n,a,l){return ro?mo(r,a,l.length>0):n.integers.reduce(function(d,v,w){for(;r>=v;)r-=v,d+=n.values[w];return d},"")+l},Hc=function(r,e,o,n){var a="";do o||r--,a=n(r)+a,r/=e;while(r*e>=e);return a},Ae=function(r,e,o,n,a){var l=o-e+1;return(r<0?"-":"")+(Hc(Math.abs(r),l,n,function(d){return AA(Math.floor(d%l)+e)})+a)},Vr=function(r,e,o){o===void 0&&(o=". ");var n=e.length;return Hc(Math.abs(r),n,!1,function(a){return e[Math.floor(a%n)]})+o},Tn=1<<0,lr=1<<1,ur=1<<2,Qo=1<<3,kt=function(r,e,o,n,a,l){if(r<-9999||r>9999)return mo(r,4,a.length>0);var d=Math.abs(r),v=a;if(d===0)return e[0]+v;for(var w=0;d>0&&w<=4;w++){var U=d%10;U===0&&u(l,Tn)&&v!==""?v=e[U]+v:U>1||U===1&&w===0||U===1&&w===1&&u(l,lr)||U===1&&w===1&&u(l,ur)&&r>100||U===1&&w>1&&u(l,Qo)?v=e[U]+(w>0?o[w-1]:"")+v:U===1&&w>0&&(v=o[w-1]+v),d=Math.floor(d/10)}return(r<0?n:"")+v},Sc="\u5341\u767E\u5343\u842C",xc="\u62FE\u4F70\u4EDF\u842C",Lc="\u30DE\u30A4\u30CA\u30B9",va="\uB9C8\uC774\uB108\uC2A4",mo=function(r,e,o){var n=o?". ":"",a=o?"\u3001":"",l=o?", ":"",d=o?" ":"";switch(e){case 0:return"\u2022"+d;case 1:return"\u25E6"+d;case 2:return"\u25FE"+d;case 5:var v=Ae(r,48,57,!0,n);return v.length<4?"0"+v:v;case 4:return Vr(r,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",a);case 6:return Ln(r,1,3999,bc,3,n).toLowerCase();case 7:return Ln(r,1,3999,bc,3,n);case 8:return Ae(r,945,969,!1,n);case 9:return Ae(r,97,122,!1,n);case 10:return Ae(r,65,90,!1,n);case 11:return Ae(r,1632,1641,!0,n);case 12:case 49:return Ln(r,1,9999,Ic,3,n);case 35:return Ln(r,1,9999,Ic,3,n).toLowerCase();case 13:return Ae(r,2534,2543,!0,n);case 14:case 30:return Ae(r,6112,6121,!0,n);case 15:return Vr(r,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",a);case 16:return Vr(r,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",a);case 17:case 48:return kt(r,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Sc,"\u8CA0",a,lr|ur|Qo);case 47:return kt(r,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",xc,"\u8CA0",a,Tn|lr|ur|Qo);case 42:return kt(r,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Sc,"\u8D1F",a,lr|ur|Qo);case 41:return kt(r,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",xc,"\u8D1F",a,Tn|lr|ur|Qo);case 26:return kt(r,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Lc,a,0);case 25:return kt(r,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Lc,a,Tn|lr|ur);case 31:return kt(r,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",va,l,Tn|lr|ur);case 33:return kt(r,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",va,l,0);case 32:return kt(r,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",va,l,Tn|lr|ur);case 18:return Ae(r,2406,2415,!0,n);case 20:return Ln(r,1,19999,mf,3,n);case 21:return Ae(r,2790,2799,!0,n);case 22:return Ae(r,2662,2671,!0,n);case 22:return Ln(r,1,10999,Qf,3,n);case 23:return Vr(r,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Vr(r,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Ae(r,3302,3311,!0,n);case 28:return Vr(r,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",a);case 29:return Vr(r,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",a);case 34:return Ae(r,3792,3801,!0,n);case 37:return Ae(r,6160,6169,!0,n);case 38:return Ae(r,4160,4169,!0,n);case 39:return Ae(r,2918,2927,!0,n);case 40:return Ae(r,1776,1785,!0,n);case 43:return Ae(r,3046,3055,!0,n);case 44:return Ae(r,3174,3183,!0,n);case 45:return Ae(r,3664,3673,!0,n);case 46:return Ae(r,3872,3881,!0,n);case 3:default:return Ae(r,48,57,!0,n)}},Tc="data-html2canvas-ignore",Oc=function(){function r(e,o,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=o,this.counters=new vf,this.quoteDepth=0,!o.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(o.ownerDocument.documentElement,!1)}return r.prototype.toIFrame=function(e,o){var n=this,a=Cf(e,o);if(!a.contentWindow)return Promise.reject("Unable to find iframe window");var l=e.defaultView.pageXOffset,d=e.defaultView.pageYOffset,v=a.contentWindow,w=v.document,U=yf(a).then(function(){return b(n,void 0,void 0,function(){var E,I;return x(this,function(L){switch(L.label){case 0:return this.scrolledElements.forEach(Hf),v&&(v.scrollTo(o.left,o.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(v.scrollY!==o.top||v.scrollX!==o.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(v.scrollX-o.left,v.scrollY-o.top,0,0))),E=this.options.onclone,I=this.clonedReferenceElement,typeof I=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:w.fonts&&w.fonts.ready?[4,w.fonts.ready]:[3,2];case 1:L.sent(),L.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ff(w)]:[3,4];case 3:L.sent(),L.label=4;case 4:return typeof E=="function"?[2,Promise.resolve().then(function(){return E(w,I)}).then(function(){return a})]:[2,a]}})})});return w.open(),w.write(bf(document.doctype)+""),If(this.referenceElement.ownerDocument,l,d),w.replaceChild(w.adoptNode(this.documentElement),w.documentElement),w.close(),U},r.prototype.createElementClone=function(e){if(IA(e,2))debugger;if(mc(e))return this.createCanvasClone(e);if(Cc(e))return this.createVideoClone(e);if(Fc(e))return this.createStyleClone(e);var o=e.cloneNode(!1);return wa(o)&&(wa(e)&&e.currentSrc&&e.currentSrc!==e.src&&(o.src=e.currentSrc,o.srcset=""),o.loading==="lazy"&&(o.loading="eager")),Ec(o)?this.createCustomElementClone(o):o},r.prototype.createCustomElementClone=function(e){var o=document.createElement("html2canvascustomelement");return Qa(e.style,o),o},r.prototype.createStyleClone=function(e){try{var o=e.sheet;if(o&&o.cssRules){var n=[].slice.call(o.cssRules,0).reduce(function(l,d){return d&&typeof d.cssText=="string"?l+d.cssText:l},""),a=e.cloneNode(!1);return a.textContent=n,a}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return e.cloneNode(!1)},r.prototype.createCanvasClone=function(e){var o;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var a=e.cloneNode(!1);try{a.width=e.width,a.height=e.height;var l=e.getContext("2d"),d=a.getContext("2d");if(d)if(!this.options.allowTaint&&l)d.putImageData(l.getImageData(0,0,e.width,e.height),0,0);else{var v=(o=e.getContext("webgl2"))!==null&&o!==void 0?o:e.getContext("webgl");if(v){var w=v.getContextAttributes();(w==null?void 0:w.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}d.drawImage(e,0,0)}return a}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return a},r.prototype.createVideoClone=function(e){var o=e.ownerDocument.createElement("canvas");o.width=e.offsetWidth,o.height=e.offsetHeight;var n=o.getContext("2d");try{return n&&(n.drawImage(e,0,0,o.width,o.height),this.options.allowTaint||n.getImageData(0,0,o.width,o.height)),o}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var a=e.ownerDocument.createElement("canvas");return a.width=e.offsetWidth,a.height=e.offsetHeight,a},r.prototype.appendChildNode=function(e,o,n){(!xn(o)||!wf(o)&&!o.hasAttribute(Tc)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(o)))&&(!this.options.copyStyles||!xn(o)||!Fc(o))&&e.appendChild(this.cloneNode(o,n))},r.prototype.cloneChildNodes=function(e,o,n){for(var a=this,l=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;l;l=l.nextSibling)if(xn(l)&&yc(l)&&typeof l.assignedNodes=="function"){var d=l.assignedNodes();d.length&&d.forEach(function(v){return a.appendChildNode(o,v,n)})}else this.appendChildNode(o,l,n)},r.prototype.cloneNode=function(e,o){if(vc(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&xn(e)&&(pa(e)||Ti(e))){var a=this.createElementClone(e);a.style.transitionProperty="none";var l=n.getComputedStyle(e),d=n.getComputedStyle(e,":before"),v=n.getComputedStyle(e,":after");this.referenceElement===e&&pa(a)&&(this.clonedReferenceElement=a),ha(a)&&Lf(a);var w=this.counters.parse(new fA(this.context,l)),U=this.resolvePseudoContent(e,a,d,Co.BEFORE);Ec(e)&&(o=!0),Cc(e)||this.cloneChildNodes(e,a,o),U&&a.insertBefore(U,a.firstChild);var E=this.resolvePseudoContent(e,a,v,Co.AFTER);return E&&a.appendChild(E),this.counters.pop(w),(l&&(this.options.copyStyles||Ti(e))&&!Uc(e)||o)&&Qa(l,a),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([a,e.scrollLeft,e.scrollTop]),(Oi(e)||Di(e))&&(Oi(a)||Di(a))&&(a.value=e.value),a}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,o,n,a){var l=this;if(!!n){var d=n.content,v=o.ownerDocument;if(!(!v||!d||d==="none"||d==="-moz-alt-content"||n.display==="none")){this.counters.parse(new fA(this.context,n));var w=new sA(this.context,n),U=v.createElement("html2canvaspseudoelement");Qa(n,U),w.content.forEach(function(I){if(I.type===0)U.appendChild(v.createTextNode(I.value));else if(I.type===22){var L=v.createElement("img");L.src=I.value,L.style.opacity="1",U.appendChild(L)}else if(I.type===18){if(I.name==="attr"){var q=I.values.filter(UA);q.length&&U.appendChild(v.createTextNode(e.getAttribute(q[0].value)||""))}else if(I.name==="counter"){var P=I.values.filter(wt),Y=P[0],pA=P[1];if(Y&&UA(Y)){var nA=l.counters.getCounterValue(Y.value),tA=pA&&UA(pA)?Pr.parse(l.context,pA.value):3;U.appendChild(v.createTextNode(mo(nA,tA,!1)))}}else if(I.name==="counters"){var yA=I.values.filter(wt),Y=yA[0],hA=yA[1],pA=yA[2];if(Y&&UA(Y)){var lA=l.counters.getCounterValues(Y.value),Z=pA&&UA(pA)?Pr.parse(l.context,pA.value):3,mA=hA&&hA.type===0?hA.value:"",CA=lA.map(function(be){return mo(be,Z,!1)}).join(mA);U.appendChild(v.createTextNode(CA))}}}else if(I.type===20)switch(I.value){case"open-quote":U.appendChild(v.createTextNode(T(w.quotes,l.quoteDepth++,!0)));break;case"close-quote":U.appendChild(v.createTextNode(T(w.quotes,--l.quoteDepth,!1)));break;default:U.appendChild(v.createTextNode(I.value))}}),U.className=ma+" "+Ca;var E=a===Co.BEFORE?" "+ma:" "+Ca;return Ti(o)?o.className.baseValue+=E:o.className+=E,U}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),Co;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(Co||(Co={}));var Cf=function(r,e){var o=r.createElement("iframe");return o.className="html2canvas-container",o.style.visibility="hidden",o.style.position="fixed",o.style.left="-10000px",o.style.top="0px",o.style.border="0",o.width=e.width.toString(),o.height=e.height.toString(),o.scrolling="no",o.setAttribute(Tc,"true"),r.body.appendChild(o),o},Uf=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},Ff=function(r){return Promise.all([].slice.call(r.images,0).map(Uf))},yf=function(r){return new Promise(function(e,o){var n=r.contentWindow;if(!n)return o("No window assigned for iframe");var a=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var l=setInterval(function(){a.body.childNodes.length>0&&a.readyState==="complete"&&(clearInterval(l),e(r))},50)}})},Ef=["all","d","content"],Qa=function(r,e){for(var o=r.length-1;o>=0;o--){var n=r.item(o);Ef.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},bf=function(r){var e="";return r&&(e+=""),e},If=function(r,e,o){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||o!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,o)},Hf=function(r){var e=r[0],o=r[1],n=r[2];e.scrollLeft=o,e.scrollTop=n},Sf=":before",xf=":after",ma="___html2canvas___pseudoelement_before",Ca="___html2canvas___pseudoelement_after",Dc=`{ content: "" !important; display: none !important; -}`,Sf=function(r){xf(r,"."+ma+If+Oc+` - .`+Ca+Hf+Oc)},xf=function(r,e){var o=r.ownerDocument;if(o){var n=o.createElement("style");n.textContent=e,r.appendChild(n)}},Dc=function(){function r(){}return r.getOrigin=function(e){var o=r._link;return o?(o.href=e,o.href=o.href,o.protocol+o.hostname+o.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),Lf=function(){function r(e,o){this.context=e,this._options=o,this._cache={}}return r.prototype.addImage=function(e){var o=Promise.resolve();return this.has(e)||(Fa(e)||Kf(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),o},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return b(this,void 0,void 0,function(){var o,n,a,l,d=this;return x(this,function(v){switch(v.label){case 0:return o=Dc.isSameOrigin(e),n=!Ua(e)&&this._options.useCORS===!0&&de.SUPPORT_CORS_IMAGES&&!o,a=!Ua(e)&&!o&&!Fa(e)&&typeof this._options.proxy=="string"&&de.SUPPORT_CORS_XHR&&!n,!o&&this._options.allowTaint===!1&&!Ua(e)&&!Fa(e)&&!a&&!n?[2]:(l=e,a?[4,this.proxy(l)]:[3,2]);case 1:l=v.sent(),v.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(w,U){var E=new Image;E.onload=function(){return w(E)},E.onerror=U,(Mf(l)||n)&&(E.crossOrigin="anonymous"),E.src=l,E.complete===!0&&setTimeout(function(){return w(E)},500),d._options.imageTimeout>0&&setTimeout(function(){return U("Timed out ("+d._options.imageTimeout+"ms) loading image")},d._options.imageTimeout)})];case 3:return[2,v.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]!="undefined"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var o=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(l,d){var v=de.SUPPORT_RESPONSE_TYPE?"blob":"text",w=new XMLHttpRequest;w.onload=function(){if(w.status===200)if(v==="text")l(w.response);else{var I=new FileReader;I.addEventListener("load",function(){return l(I.result)},!1),I.addEventListener("error",function(L){return d(L)},!1),I.readAsDataURL(w.response)}else d("Failed to proxy resource "+a+" with status code "+w.status)},w.onerror=d;var U=n.indexOf("?")>-1?"&":"?";if(w.open("GET",""+n+U+"url="+encodeURIComponent(e)+"&responseType="+v),v!=="text"&&w instanceof XMLHttpRequest&&(w.responseType=v),o._options.imageTimeout){var E=o._options.imageTimeout;w.timeout=E,w.ontimeout=function(){return d("Timed out ("+E+"ms) proxying "+a)}}w.send()})},r}(),Tf=/^data:image\/svg\+xml/i,Of=/^data:image\/.*;base64,/i,Df=/^data:image\/.*/i,Kf=function(r){return de.SUPPORT_SVG_DRAWING||!Rf(r)},Ua=function(r){return Df.test(r)},Mf=function(r){return Of.test(r)},Fa=function(r){return r.substr(0,4)==="blob"},Rf=function(r){return r.substr(-3).toLowerCase()==="svg"||Tf.test(r)},z=function(){function r(e,o){this.type=0,this.x=e,this.y=o}return r.prototype.add=function(e,o){return new r(this.x+e,this.y+o)},r}(),On=function(r,e,o){return new z(r.x+(e.x-r.x)*o,r.y+(e.y-r.y)*o)},Di=function(){function r(e,o,n,a){this.type=1,this.start=e,this.startControl=o,this.endControl=n,this.end=a}return r.prototype.subdivide=function(e,o){var n=On(this.start,this.startControl,e),a=On(this.startControl,this.endControl,e),l=On(this.endControl,this.end,e),d=On(n,a,e),v=On(a,l,e),w=On(d,v,e);return o?new r(this.start,n,d,w):new r(w,v,l,this.end)},r.prototype.add=function(e,o){return new r(this.start.add(e,o),this.startControl.add(e,o),this.endControl.add(e,o),this.end.add(e,o))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Xe=function(r){return r.type===1},_f=function(){function r(e){var o=e.styles,n=e.bounds,a=rr(o.borderTopLeftRadius,n.width,n.height),l=a[0],d=a[1],v=rr(o.borderTopRightRadius,n.width,n.height),w=v[0],U=v[1],E=rr(o.borderBottomRightRadius,n.width,n.height),I=E[0],L=E[1],q=rr(o.borderBottomLeftRadius,n.width,n.height),P=q[0],j=q[1],pA=[];pA.push((l+w)/n.width),pA.push((P+I)/n.width),pA.push((d+j)/n.height),pA.push((U+L)/n.height);var nA=Math.max.apply(Math,pA);nA>1&&(l/=nA,d/=nA,w/=nA,U/=nA,I/=nA,L/=nA,P/=nA,j/=nA);var tA=n.width-w,EA=n.height-L,hA=n.width-I,lA=n.height-j,Z=o.borderTopWidth,UA=o.borderRightWidth,FA=o.borderBottomWidth,uA=o.borderLeftWidth,re=KA(o.paddingTop,e.bounds.width),be=KA(o.paddingRight,e.bounds.width),Me=KA(o.paddingBottom,e.bounds.width),_A=KA(o.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||d>0?WA(n.left+uA/3,n.top+Z/3,l-uA/3,d-Z/3,SA.TOP_LEFT):new z(n.left+uA/3,n.top+Z/3),this.topRightBorderDoubleOuterBox=l>0||d>0?WA(n.left+tA,n.top+Z/3,w-UA/3,U-Z/3,SA.TOP_RIGHT):new z(n.left+n.width-UA/3,n.top+Z/3),this.bottomRightBorderDoubleOuterBox=I>0||L>0?WA(n.left+hA,n.top+EA,I-UA/3,L-FA/3,SA.BOTTOM_RIGHT):new z(n.left+n.width-UA/3,n.top+n.height-FA/3),this.bottomLeftBorderDoubleOuterBox=P>0||j>0?WA(n.left+uA/3,n.top+lA,P-uA/3,j-FA/3,SA.BOTTOM_LEFT):new z(n.left+uA/3,n.top+n.height-FA/3),this.topLeftBorderDoubleInnerBox=l>0||d>0?WA(n.left+uA*2/3,n.top+Z*2/3,l-uA*2/3,d-Z*2/3,SA.TOP_LEFT):new z(n.left+uA*2/3,n.top+Z*2/3),this.topRightBorderDoubleInnerBox=l>0||d>0?WA(n.left+tA,n.top+Z*2/3,w-UA*2/3,U-Z*2/3,SA.TOP_RIGHT):new z(n.left+n.width-UA*2/3,n.top+Z*2/3),this.bottomRightBorderDoubleInnerBox=I>0||L>0?WA(n.left+hA,n.top+EA,I-UA*2/3,L-FA*2/3,SA.BOTTOM_RIGHT):new z(n.left+n.width-UA*2/3,n.top+n.height-FA*2/3),this.bottomLeftBorderDoubleInnerBox=P>0||j>0?WA(n.left+uA*2/3,n.top+lA,P-uA*2/3,j-FA*2/3,SA.BOTTOM_LEFT):new z(n.left+uA*2/3,n.top+n.height-FA*2/3),this.topLeftBorderStroke=l>0||d>0?WA(n.left+uA/2,n.top+Z/2,l-uA/2,d-Z/2,SA.TOP_LEFT):new z(n.left+uA/2,n.top+Z/2),this.topRightBorderStroke=l>0||d>0?WA(n.left+tA,n.top+Z/2,w-UA/2,U-Z/2,SA.TOP_RIGHT):new z(n.left+n.width-UA/2,n.top+Z/2),this.bottomRightBorderStroke=I>0||L>0?WA(n.left+hA,n.top+EA,I-UA/2,L-FA/2,SA.BOTTOM_RIGHT):new z(n.left+n.width-UA/2,n.top+n.height-FA/2),this.bottomLeftBorderStroke=P>0||j>0?WA(n.left+uA/2,n.top+lA,P-uA/2,j-FA/2,SA.BOTTOM_LEFT):new z(n.left+uA/2,n.top+n.height-FA/2),this.topLeftBorderBox=l>0||d>0?WA(n.left,n.top,l,d,SA.TOP_LEFT):new z(n.left,n.top),this.topRightBorderBox=w>0||U>0?WA(n.left+tA,n.top,w,U,SA.TOP_RIGHT):new z(n.left+n.width,n.top),this.bottomRightBorderBox=I>0||L>0?WA(n.left+hA,n.top+EA,I,L,SA.BOTTOM_RIGHT):new z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=P>0||j>0?WA(n.left,n.top+lA,P,j,SA.BOTTOM_LEFT):new z(n.left,n.top+n.height),this.topLeftPaddingBox=l>0||d>0?WA(n.left+uA,n.top+Z,Math.max(0,l-uA),Math.max(0,d-Z),SA.TOP_LEFT):new z(n.left+uA,n.top+Z),this.topRightPaddingBox=w>0||U>0?WA(n.left+Math.min(tA,n.width-UA),n.top+Z,tA>n.width+UA?0:Math.max(0,w-UA),Math.max(0,U-Z),SA.TOP_RIGHT):new z(n.left+n.width-UA,n.top+Z),this.bottomRightPaddingBox=I>0||L>0?WA(n.left+Math.min(hA,n.width-uA),n.top+Math.min(EA,n.height-FA),Math.max(0,I-UA),Math.max(0,L-FA),SA.BOTTOM_RIGHT):new z(n.left+n.width-UA,n.top+n.height-FA),this.bottomLeftPaddingBox=P>0||j>0?WA(n.left+uA,n.top+Math.min(lA,n.height-FA),Math.max(0,P-uA),Math.max(0,j-FA),SA.BOTTOM_LEFT):new z(n.left+uA,n.top+n.height-FA),this.topLeftContentBox=l>0||d>0?WA(n.left+uA+_A,n.top+Z+re,Math.max(0,l-(uA+_A)),Math.max(0,d-(Z+re)),SA.TOP_LEFT):new z(n.left+uA+_A,n.top+Z+re),this.topRightContentBox=w>0||U>0?WA(n.left+Math.min(tA,n.width+uA+_A),n.top+Z+re,tA>n.width+uA+_A?0:w-uA+_A,U-(Z+re),SA.TOP_RIGHT):new z(n.left+n.width-(UA+be),n.top+Z+re),this.bottomRightContentBox=I>0||L>0?WA(n.left+Math.min(hA,n.width-(uA+_A)),n.top+Math.min(EA,n.height+Z+re),Math.max(0,I-(UA+be)),L-(FA+Me),SA.BOTTOM_RIGHT):new z(n.left+n.width-(UA+be),n.top+n.height-(FA+Me)),this.bottomLeftContentBox=P>0||j>0?WA(n.left+uA+_A,n.top+lA,Math.max(0,P-(uA+_A)),j-(FA+Me),SA.BOTTOM_LEFT):new z(n.left+uA+_A,n.top+n.height-(FA+Me))}return r}(),SA;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(SA||(SA={}));var WA=function(r,e,o,n,a){var l=4*((Math.sqrt(2)-1)/3),d=o*l,v=n*l,w=r+o,U=e+n;switch(a){case SA.TOP_LEFT:return new Di(new z(r,U),new z(r,U-v),new z(w-d,e),new z(w,e));case SA.TOP_RIGHT:return new Di(new z(r,e),new z(r+d,e),new z(w,U-v),new z(w,U));case SA.BOTTOM_RIGHT:return new Di(new z(w,e),new z(w,e+v),new z(r+d,U),new z(r,U));case SA.BOTTOM_LEFT:default:return new Di(new z(w,U),new z(w-d,U),new z(r,e+v),new z(r,e))}},Ki=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},Pf=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},Mi=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},Nf=function(){function r(e,o,n){this.offsetX=e,this.offsetY=o,this.matrix=n,this.type=0,this.target=2|4}return r}(),Ri=function(){function r(e,o){this.path=e,this.target=o,this.type=1}return r}(),Gf=function(){function r(e){this.opacity=e,this.type=2,this.target=2|4}return r}(),kf=function(r){return r.type===0},Kc=function(r){return r.type===1},Vf=function(r){return r.type===2},Mc=function(r,e){return r.length===e.length?r.some(function(o,n){return o===e[n]}):!1},Xf=function(r,e,o,n,a){return r.map(function(l,d){switch(d){case 0:return l.add(e,o);case 1:return l.add(e+n,o);case 2:return l.add(e+n,o+a);case 3:return l.add(e,o+a)}return l})},Rc=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),_c=function(){function r(e,o){if(this.container=e,this.parent=o,this.effects=[],this.curves=new _f(this.container),this.container.styles.opacity<1&&this.effects.push(new Gf(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new Nf(n,a,l))}if(this.container.styles.overflowX!==0){var d=Ki(this.curves),v=Mi(this.curves);Mc(d,v)?this.effects.push(new Ri(d,2|4)):(this.effects.push(new Ri(d,2)),this.effects.push(new Ri(v,4)))}}return r.prototype.getEffects=function(e){for(var o=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var l=n.effects.filter(function(w){return!Kc(w)});if(o||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,l),o=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var d=Ki(n.curves),v=Mi(n.curves);Mc(d,v)||a.unshift(new Ri(v,2|4))}}else a.unshift.apply(a,l);n=n.parent}return a.filter(function(w){return u(w.target,e)})},r}(),ya=function(r,e,o,n){r.container.elements.forEach(function(a){var l=u(a.flags,4),d=u(a.flags,2),v=new _c(a,r);u(a.styles.display,2048)&&n.push(v);var w=u(a.flags,8)?[]:n;if(l||d){var U=l||a.styles.isPositioned()?o:e,E=new Rc(v);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var I=a.styles.zIndex.order;if(I<0){var L=0;U.negativeZIndex.some(function(P,j){return I>P.element.container.styles.zIndex.order?(L=j,!1):L>0}),U.negativeZIndex.splice(L,0,E)}else if(I>0){var q=0;U.positiveZIndex.some(function(P,j){return I>=P.element.container.styles.zIndex.order?(q=j+1,!1):q>0}),U.positiveZIndex.splice(q,0,E)}else U.zeroOrAutoZIndexOrTransformedOrOpacity.push(E)}else a.styles.isFloating()?U.nonPositionedFloats.push(E):U.nonPositionedInlineLevel.push(E);ya(v,E,l?E:o,w)}else a.styles.isInlineLevel()?e.inlineLevel.push(v):e.nonInlineLevel.push(v),ya(v,e,o,w);u(a.flags,8)&&Pc(a,w)})},Pc=function(r,e){for(var o=r instanceof ga?r.start:1,n=r instanceof ga?r.reversed:!1,a=0;a0&&o.intrinsicHeight>0){var l=Pi(o),d=Mi(n);this.path(d),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,o.intrinsicWidth,o.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(o){return b(this,void 0,void 0,function(){var n,a,l,d,v,w,tA,tA,U,E,I,L,hA,q,P,lA,j,pA,nA,tA,EA,hA,lA;return x(this,function(Z){switch(Z.label){case 0:this.applyEffects(o.getEffects(4)),n=o.container,a=o.curves,l=n.styles,d=0,v=n.textNodes,Z.label=1;case 1:return d0&&pe>0&&(FA=l.ctx.createPattern(lA,"repeat"),l.renderRepeat(re,FA,Ie,He))):xs(E)&&(uA=Ea(o,n,[null,null,null]),re=uA[0],be=uA[1],Me=uA[2],_A=uA[3],pe=uA[4],fr=E.position.length===0?[tr]:E.position,Ie=KA(fr[0],_A),He=KA(fr[fr.length-1],pe),Xr=li(E,Ie,He,_A,pe),Ct=Xr[0],Br=Xr[1],Ct>0&&Br>0&&(Wr=l.ctx.createRadialGradient(be+Ie,Me+He,0,be+Ie,Me+He,Ct),ci(E.stops,Ct*2).forEach(function(Co){return Wr.addColorStop(Co.stop,$A(Co.color))}),l.path(re),l.ctx.fillStyle=Wr,Ct!==Br?(Jr=o.bounds.left+.5*o.bounds.width,Vt=o.bounds.top+.5*o.bounds.height,Yr=Br/Ct,Xt=1/Yr,l.ctx.save(),l.ctx.translate(Jr,Vt),l.ctx.transform(1,0,0,Yr,0,0),l.ctx.translate(-Jr,-Vt),l.ctx.fillRect(be,Xt*(Me-Vt)+Vt,_A,pe*Xt),l.ctx.restore()):l.ctx.fill())),Mn.label=6;case 6:return n--,[2]}})},l=this,d=0,v=o.styles.backgroundImage.slice(0).reverse(),U.label=1;case 1:return d0?E.style!==2?[3,5]:[4,this.renderDashedDottedBorder(E.color,E.width,v,o.curves,2)]:[3,11]):[3,13];case 4:return L.sent(),[3,11];case 5:return E.style!==3?[3,7]:[4,this.renderDashedDottedBorder(E.color,E.width,v,o.curves,3)];case 6:return L.sent(),[3,11];case 7:return E.style!==4?[3,9]:[4,this.renderDoubleBorder(E.color,E.width,v,o.curves)];case 8:return L.sent(),[3,11];case 9:return[4,this.renderSolidBorder(E.color,v,o.curves)];case 10:L.sent(),L.label=11;case 11:v++,L.label=12;case 12:return w++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(o,n,a,l,d){return b(this,void 0,void 0,function(){var v,w,U,E,I,L,q,P,j,pA,nA,tA,EA,hA,lA,Z,lA,Z;return x(this,function(UA){return this.ctx.save(),v=jf(l,a),w=Nc(l,a),d===2&&(this.path(w),this.ctx.clip()),Xe(w[0])?(U=w[0].start.x,E=w[0].start.y):(U=w[0].x,E=w[0].y),Xe(w[1])?(I=w[1].end.x,L=w[1].end.y):(I=w[1].x,L=w[1].y),a===0||a===2?q=Math.abs(U-I):q=Math.abs(E-L),this.ctx.beginPath(),d===3?this.formatPath(v):this.formatPath(w.slice(0,2)),P=n<3?n*3:n*2,j=n<3?n*2:n,d===3&&(P=n,j=n),pA=!0,q<=P*2?pA=!1:q<=P*2+j?(nA=q/(2*P+j),P*=nA,j*=nA):(tA=Math.floor((q+j)/(P+j)),EA=(q-tA*P)/(tA-1),hA=(q-(tA+1)*P)/tA,j=hA<=0||Math.abs(j-EA){(function(h){typeof Vl=="object"&&typeof Na!="undefined"?Na.exports=h():typeof define=="function"&&define.amd?define([],h):(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this).interact=h()})(function(){var h={};Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0,h.default=function(A){return!(!A||!A.Window)&&A instanceof A.Window};var p={};Object.defineProperty(p,"__esModule",{value:!0}),p.getWindow=function(A){return(0,h.default)(A)?A:(A.ownerDocument||A).defaultView||b.window},p.init=x,p.window=p.realWindow=void 0;var y=void 0;p.realWindow=y;var b=void 0;function x(A){p.realWindow=y=A;var t=A.document.createTextNode("");t.ownerDocument!==A.document&&typeof A.wrap=="function"&&A.wrap(t)===t&&(A=A.wrap(A)),p.window=b=A}p.window=b,typeof window!="undefined"&&window&&x(window);var F={};function J(A){return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(A)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var V=function(A){return!!A&&J(A)==="object"},sA=function(A){return typeof A=="function"},HA={window:function(A){return A===p.window||(0,h.default)(A)},docFrag:function(A){return V(A)&&A.nodeType===11},object:V,func:sA,number:function(A){return typeof A=="number"},bool:function(A){return typeof A=="boolean"},string:function(A){return typeof A=="string"},element:function(A){if(!A||J(A)!=="object")return!1;var t=p.getWindow(A)||p.window;return/object|function/.test(typeof Element=="undefined"?"undefined":J(Element))?A instanceof Element||A instanceof t.Element:A.nodeType===1&&typeof A.nodeName=="string"},plainObject:function(A){return V(A)&&!!A.constructor&&/function Object\b/.test(A.constructor.toString())},array:function(A){return V(A)&&A.length!==void 0&&sA(A.splice)}};F.default=HA;var $={};function QA(A){var t=A.interaction;if(t.prepared.name==="drag"){var i=t.prepared.axis;i==="x"?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):i==="y"&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function xA(A){var t=A.iEvent,i=A.interaction;if(i.prepared.name==="drag"){var s=i.prepared.axis;if(s==="x"||s==="y"){var c=s==="x"?"y":"x";t.page[c]=i.coords.start.page[c],t.client[c]=i.coords.start.client[c],t.delta[c]=0}}}Object.defineProperty($,"__esModule",{value:!0}),$.default=void 0;var mA={id:"actions/drag",install:function(A){var t=A.actions,i=A.Interactable,s=A.defaults;i.prototype.draggable=mA.draggable,t.map.drag=mA,t.methodDict.drag="draggable",s.actions.drag=mA.defaults},listeners:{"interactions:before-action-move":QA,"interactions:action-resume":QA,"interactions:action-move":xA,"auto-start:check":function(A){var t=A.interaction,i=A.interactable,s=A.buttons,c=i.options.drag;if(c&&c.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(s&i.options.drag.mouseButtons)!=0))return A.action={name:"drag",axis:c.lockAxis==="start"?c.startAxis:c.lockAxis},!1}},draggable:function(A){return F.default.object(A)?(this.options.drag.enabled=A.enabled!==!1,this.setPerAction("drag",A),this.setOnEvents("drag",A),/^(xy|x|y|start)$/.test(A.lockAxis)&&(this.options.drag.lockAxis=A.lockAxis),/^(xy|x|y)$/.test(A.startAxis)&&(this.options.drag.startAxis=A.startAxis),this):F.default.bool(A)?(this.options.drag.enabled=A,this):this.options.drag},beforeMove:QA,move:xA,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},se=mA;$.default=se;var vA={};Object.defineProperty(vA,"__esModule",{value:!0}),vA.default=void 0;var NA={init:function(A){var t=A;NA.document=t.document,NA.DocumentFragment=t.DocumentFragment||ce,NA.SVGElement=t.SVGElement||ce,NA.SVGSVGElement=t.SVGSVGElement||ce,NA.SVGElementInstance=t.SVGElementInstance||ce,NA.Element=t.Element||ce,NA.HTMLElement=t.HTMLElement||NA.Element,NA.Event=t.Event,NA.Touch=t.Touch||ce,NA.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ce(){}var ut=NA;vA.default=ut;var GA={};Object.defineProperty(GA,"__esModule",{value:!0}),GA.default=void 0;var LA={init:function(A){var t=vA.default.Element,i=A.navigator||{};LA.supportsTouch="ontouchstart"in A||F.default.func(A.DocumentTouch)&&vA.default.document instanceof A.DocumentTouch,LA.supportsPointerEvent=i.pointerEnabled!==!1&&!!vA.default.PointerEvent,LA.isIOS=/iP(hone|od|ad)/.test(i.platform),LA.isIOS7=/iP(hone|od|ad)/.test(i.platform)&&/OS 7[^\d]/.test(i.appVersion),LA.isIe9=/MSIE 9/.test(i.userAgent),LA.isOperaMobile=i.appName==="Opera"&&LA.supportsTouch&&/Presto/.test(i.userAgent),LA.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",LA.pEventTypes=LA.supportsPointerEvent?vA.default.PointerEvent===A.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,LA.wheelEvent=vA.default.document&&"onmousewheel"in vA.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},le=LA;GA.default=le;var W={};function TA(A){var t=A.parentNode;if(F.default.docFrag(t)){for(;(t=t.host)&&F.default.docFrag(t););return t}return t}function JA(A,t){return p.window!==p.realWindow&&(t=t.replace(/\/deep\//g," ")),A[GA.default.prefixedMatchesSelector](t)}Object.defineProperty(W,"__esModule",{value:!0}),W.closest=function(A,t){for(;F.default.element(A);){if(JA(A,t))return A;A=TA(A)}return null},W.getActualElement=function(A){return A.correspondingUseElement||A},W.getElementClientRect=Yt,W.getElementRect=function(A){var t=Yt(A);if(!GA.default.isIOS7&&t){var i=ft(p.getWindow(A));t.left+=i.x,t.right+=i.x,t.top+=i.y,t.bottom+=i.y}return t},W.getPath=function(A){for(var t=[];A;)t.push(A),A=TA(A);return t},W.getScrollXY=ft,W.indexOfDeepestElement=function(A){for(var t,i=[],s=0;s=(parseInt(p.getWindow(H).getComputedStyle(H).zIndex,10)||0)&&(t=s);else t=s}else t=s}var T,H;return t},W.matchesSelector=JA,W.matchesUpTo=function(A,t,i){for(;F.default.element(A);){if(JA(A,t))return!0;if((A=TA(A))===i)return JA(A,t)}return!1},W.nodeContains=function(A,t){if(A.contains)return A.contains(t);for(;t;){if(t===A)return!0;t=t.parentNode}return!1},W.parentNode=TA,W.trySelector=function(A){return!!F.default.string(A)&&(vA.default.document.querySelector(A),!0)};var Ue=function(A){return A.parentNode||A.host};function Ye(A,t){for(var i,s=[],c=A;(i=Ue(c))&&c!==t&&i!==c.ownerDocument;)s.unshift(c),c=i;return s}function ft(A){return{x:(A=A||p.window).scrollX||A.document.documentElement.scrollLeft,y:A.scrollY||A.document.documentElement.scrollTop}}function Yt(A){var t=A instanceof vA.default.SVGElement?A.getBoundingClientRect():A.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var eA={};Object.defineProperty(eA,"__esModule",{value:!0}),eA.default=function(A,t){for(var i in t)A[i]=t[i];return A};var bA={};function Re(A,t){(t==null||t>A.length)&&(t=A.length);for(var i=0,s=Array(t);i1?G(t):t[0];CA(s,A.page),kA(s,A.client),A.timeStamp=i},R.setZeroCoords=function(A){A.page.x=0,A.page.y=0,A.client.x=0,A.client.y=0},R.touchAngle=function(A,t){var i=t+"X",s=t+"Y",c=XA(A),f=c[1][i]-c[0][i],g=c[1][s]-c[0][s];return 180*Math.atan2(g,f)/Math.PI},R.touchBBox=function(A){if(!A.length)return null;var t=XA(A),i=Math.min(t[0].pageX,t[1].pageX),s=Math.min(t[0].pageY,t[1].pageY),c=Math.max(t[0].pageX,t[1].pageX),f=Math.max(t[0].pageY,t[1].pageY);return{x:i,y:s,left:i,top:s,right:c,bottom:f,width:c-i,height:f-s}},R.touchDistance=function(A,t){var i=t+"X",s=t+"Y",c=XA(A),f=c[0][i]-c[1][i],g=c[0][s]-c[1][s];return(0,N.default)(f,g)};var O={};function k(A,t){for(var i=0;i_.left&&K.x<_.right,wA=K.y>_.top&&K.y<_.bottom;rA=RA&&wA}var IA=H.getRect(M);if(IA&&iA==="center"){var jA=IA.left+IA.width/2,it=IA.top+IA.height/2;rA=jA>=_.left&&jA<=_.right&&it>=_.top&&it<=_.bottom}return IA&&F.default.number(iA)&&(rA=Math.max(0,Math.min(_.right,IA.right)-Math.max(_.left,IA.left))*Math.max(0,Math.min(_.bottom,IA.bottom)-Math.max(_.top,IA.top))/(IA.width*IA.height)>=iA),C.options.drop.checker&&(rA=C.options.drop.checker(S,T,rA,C,X,H,M)),rA}(this,f,g,u,B,Q,m)},i.dynamicDrop=function(f){return F.default.bool(f)?(A.dynamicDrop=f,i):A.dynamicDrop},(0,eA.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",A.dynamicDrop=!1,c.actions.drop=Zt.defaults},listeners:{"interactions:before-action-start":function(A){var t=A.interaction;t.prepared.name==="drag"&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(A,t){var i=A.interaction,s=(A.event,A.iEvent);if(i.prepared.name==="drag"){var c=i.dropState;c.activeDrops=null,c.events=null,c.activeDrops=vr(t,i.element),c.events=Qr(i,0,s),c.events.activate&&(_n(c.activeDrops,c.events.activate),t.fire("actions/drop:start",{interaction:i,dragEvent:s}))}},"interactions:action-move":he,"interactions:after-action-move":function(A,t){var i=A.interaction,s=A.iEvent;i.prepared.name==="drag"&&(Bt(i,i.dropState.events),t.fire("actions/drop:move",{interaction:i,dragEvent:s}),i.dropState.events={})},"interactions:action-end":function(A,t){if(A.interaction.prepared.name==="drag"){var i=A.interaction,s=A.iEvent;he(A,t),Bt(i,i.dropState.events),t.fire("actions/drop:end",{interaction:i,dragEvent:s})}},"interactions:stop":function(A){var t=A.interaction;if(t.prepared.name==="drag"){var i=t.dropState;i&&(i.activeDrops=null,i.events=null,i.cur.dropzone=null,i.cur.element=null,i.prev.dropzone=null,i.prev.element=null,i.rejected=!1)}}},getActiveDrops:vr,getDrop:zt,getDropEvents:Qr,fireDropEvents:Bt,defaults:{enabled:!1,accept:null,overlap:"pointer"}},mr=Zt;zr.default=mr;var ze={};function Pn(A){var t=A.interaction,i=A.iEvent,s=A.phase;if(t.prepared.name==="gesture"){var c=t.pointers.map(function(Q){return Q.pointer}),f=s==="start",g=s==="end",u=t.interactable.options.deltaSource;if(i.touches=[c[0],c[1]],f)i.distance=R.touchDistance(c,u),i.box=R.touchBBox(c),i.scale=1,i.ds=0,i.angle=R.touchAngle(c,u),i.da=0,t.gesture.startDistance=i.distance,t.gesture.startAngle=i.angle;else if(g){var B=t.prevEvent;i.distance=B.distance,i.box=B.box,i.scale=B.scale,i.ds=0,i.angle=B.angle,i.da=0}else i.distance=R.touchDistance(c,u),i.box=R.touchBBox(c),i.scale=i.distance/t.gesture.startDistance,i.angle=R.touchAngle(c,u),i.ds=i.scale-t.gesture.scale,i.da=i.angle-t.gesture.angle;t.gesture.distance=i.distance,t.gesture.angle=i.angle,F.default.number(i.scale)&&i.scale!==1/0&&!isNaN(i.scale)&&(t.gesture.scale=i.scale)}}Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=void 0;var Ze={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(A){var t=A.actions,i=A.Interactable,s=A.defaults;i.prototype.gesturable=function(c){return F.default.object(c)?(this.options.gesture.enabled=c.enabled!==!1,this.setPerAction("gesture",c),this.setOnEvents("gesture",c),this):F.default.bool(c)?(this.options.gesture.enabled=c,this):this.options.gesture},t.map.gesture=Ze,t.methodDict.gesture="gesturable",s.actions.gesture=Ze.defaults},listeners:{"interactions:action-start":Pn,"interactions:action-move":Pn,"interactions:action-end":Pn,"interactions:new":function(A){A.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(A){if(!(A.interaction.pointers.length<2)){var t=A.interactable.options.gesture;if(t&&t.enabled)return A.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},rs=Ze;ze.default=rs;var yt={};function Zr(A,t,i,s,c,f,g){if(!t)return!1;if(t===!0){var u=F.default.number(f.width)?f.width:f.right-f.left,B=F.default.number(f.height)?f.height:f.bottom-f.top;if(g=Math.min(g,Math.abs((A==="left"||A==="right"?u:B)/2)),u<0&&(A==="left"?A="right":A==="right"&&(A="left")),B<0&&(A==="top"?A="bottom":A==="bottom"&&(A="top")),A==="left"){var Q=u>=0?f.left:f.right;return i.x=0?f.top:f.bottom;return i.y(u>=0?f.right:f.left)-g;if(A==="bottom")return i.y>(B>=0?f.bottom:f.top)-g}return!!F.default.element(s)&&(F.default.element(t)?t===s:W.matchesUpTo(s,t,c))}function qr(A){var t=A.iEvent,i=A.interaction;if(i.prepared.name==="resize"&&i.resizeAxes){var s=t;i.interactable.options.resize.square?(i.resizeAxes==="y"?s.delta.x=s.delta.y:s.delta.y=s.delta.x,s.axes="xy"):(s.axes=i.resizeAxes,i.resizeAxes==="x"?s.delta.y=0:i.resizeAxes==="y"&&(s.delta.x=0))}}Object.defineProperty(yt,"__esModule",{value:!0}),yt.default=void 0;var Le={id:"actions/resize",before:["actions/drag"],install:function(A){var t=A.actions,i=A.browser,s=A.Interactable,c=A.defaults;Le.cursors=function(f){return f.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(i),Le.defaultMargin=i.supportsTouch||i.supportsPointerEvent?20:10,s.prototype.resizable=function(f){return function(g,u,B){return F.default.object(u)?(g.options.resize.enabled=u.enabled!==!1,g.setPerAction("resize",u),g.setOnEvents("resize",u),F.default.string(u.axis)&&/^x$|^y$|^xy$/.test(u.axis)?g.options.resize.axis=u.axis:u.axis===null&&(g.options.resize.axis=B.defaults.actions.resize.axis),F.default.bool(u.preserveAspectRatio)?g.options.resize.preserveAspectRatio=u.preserveAspectRatio:F.default.bool(u.square)&&(g.options.resize.square=u.square),g):F.default.bool(u)?(g.options.resize.enabled=u,g):g.options.resize}(this,f,A)},t.map.resize=Le,t.methodDict.resize="resizable",c.actions.resize=Le.defaults},listeners:{"interactions:new":function(A){A.interaction.resizeAxes="xy"},"interactions:action-start":function(A){(function(t){var i=t.iEvent,s=t.interaction;if(s.prepared.name==="resize"&&s.prepared.edges){var c=i,f=s.rect;s._rects={start:(0,eA.default)({},f),corrected:(0,eA.default)({},f),previous:(0,eA.default)({},f),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},c.edges=s.prepared.edges,c.rect=s._rects.corrected,c.deltaRect=s._rects.delta}})(A),qr(A)},"interactions:action-move":function(A){(function(t){var i=t.iEvent,s=t.interaction;if(s.prepared.name==="resize"&&s.prepared.edges){var c=i,f=s.interactable.options.resize.invert,g=f==="reposition"||f==="negate",u=s.rect,B=s._rects,Q=B.start,m=B.corrected,C=B.delta,S=B.previous;if((0,eA.default)(S,m),g){if((0,eA.default)(m,u),f==="reposition"){if(m.top>m.bottom){var T=m.top;m.top=m.bottom,m.bottom=T}if(m.left>m.right){var H=m.left;m.left=m.right,m.right=H}}}else m.top=Math.min(u.top,Q.bottom),m.bottom=Math.max(u.bottom,Q.top),m.left=Math.min(u.left,Q.right),m.right=Math.max(u.right,Q.left);for(var M in m.width=m.right-m.left,m.height=m.bottom-m.top,m)C[M]=m[M]-S[M];c.edges=s.prepared.edges,c.rect=m,c.deltaRect=C}})(A),qr(A)},"interactions:action-end":function(A){var t=A.iEvent,i=A.interaction;if(i.prepared.name==="resize"&&i.prepared.edges){var s=t;s.edges=i.prepared.edges,s.rect=i._rects.corrected,s.deltaRect=i._rects.delta}},"auto-start:check":function(A){var t=A.interaction,i=A.interactable,s=A.element,c=A.rect,f=A.buttons;if(c){var g=(0,eA.default)({},t.coords.cur.page),u=i.options.resize;if(u&&u.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(f&u.mouseButtons)!=0)){if(F.default.object(u.edges)){var B={left:!1,right:!1,top:!1,bottom:!1};for(var Q in B)B[Q]=Zr(Q,u.edges[Q],g,t._latestPointer.eventTarget,s,c,u.margin||Le.defaultMargin);B.left=B.left&&!B.right,B.top=B.top&&!B.bottom,(B.left||B.right||B.top||B.bottom)&&(A.action={name:"resize",edges:B})}else{var m=u.axis!=="y"&&g.x>c.right-Le.defaultMargin,C=u.axis!=="x"&&g.y>c.bottom-Le.defaultMargin;(m||C)&&(A.action={name:"resize",axes:(m?"x":"")+(C?"y":"")})}return!A.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(A){var t=A.edges,i=A.axis,s=A.name,c=Le.cursors,f=null;if(i)f=c[s+i];else if(t){for(var g="",u=["top","bottom","left","right"],B=0;B=1){var Q={x:cA.x*B,y:cA.y*B};if(Q.x||Q.y){var m=pt(f);F.default.window(f)?f.scrollBy(Q.x,Q.y):f&&(f.scrollLeft+=Q.x,f.scrollTop+=Q.y);var C=pt(f),S={x:C.x-m.x,y:C.y-m.y};(S.x||S.y)&&t.fire({type:"autoscroll",target:i,interactable:t,delta:S,interaction:A,container:f})}cA.prevTime=g}cA.isScrolling&&(we.default.cancel(cA.i),cA.i=we.default.request(cA.scroll))},check:function(A,t){var i;return(i=A.options[t].autoScroll)==null?void 0:i.enabled},onInteractionMove:function(A){var t=A.interaction,i=A.pointer;if(t.interacting()&&cA.check(t.interactable,t.prepared.name))if(t.simulation)cA.x=cA.y=0;else{var s,c,f,g,u=t.interactable,B=t.element,Q=t.prepared.name,m=u.options[Q].autoScroll,C=dA(m.container,u,B);if(F.default.window(C))g=i.clientXC.innerWidth-cA.margin,f=i.clientY>C.innerHeight-cA.margin;else{var S=W.getElementClientRect(C);g=i.clientXS.right-cA.margin,f=i.clientY>S.bottom-cA.margin}cA.x=c?1:g?-1:0,cA.y=f?1:s?-1:0,cA.isScrolling||(cA.margin=m.margin,cA.speed=m.speed,cA.start(t))}}};function dA(A,t,i){return(F.default.string(A)?(0,bA.getStringOptionResult)(A,t,i):A)||(0,p.getWindow)(i)}function pt(A){return F.default.window(A)&&(A=window.document.body),{x:A.scrollLeft,y:A.scrollTop}}var Vn={id:"auto-scroll",install:function(A){var t=A.defaults,i=A.actions;A.autoScroll=cA,cA.now=function(){return A.now()},i.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=cA.defaults},listeners:{"interactions:new":function(A){A.interaction.autoScroll=null},"interactions:destroy":function(A){A.interaction.autoScroll=null,cA.stop(),cA.interaction&&(cA.interaction=null)},"interactions:stop":cA.stop,"interactions:action-move":function(A){return cA.onInteractionMove(A)}}},$e=Vn;dt.default=$e;var fe={};Object.defineProperty(fe,"__esModule",{value:!0}),fe.copyAction=function(A,t){return A.name=t.name,A.axis=t.axis,A.edges=t.edges,A},fe.sign=void 0,fe.warnOnce=function(A,t){var i=!1;return function(){return i||(p.window.console.warn(t),i=!0),A.apply(this,arguments)}},fe.sign=function(A){return A>=0?1:-1};var Cr={};function Mo(A){return F.default.bool(A)?(this.options.styleCursor=A,this):A===null?(delete this.options.styleCursor,this):this.options.styleCursor}function os(A){return F.default.func(A)?(this.options.actionChecker=A,this):A===null?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0;var Ro={id:"auto-start/interactableMethods",install:function(A){var t=A.Interactable;t.prototype.getAction=function(i,s,c,f){var g=function(u,B,Q,m,C){var S=u.getRect(m),T={action:null,interactable:u,interaction:Q,element:m,rect:S,buttons:B.buttons||{0:1,1:4,3:8,4:16}[B.button]};return C.fire("auto-start:check",T),T.action}(this,s,c,f,A);return this.options.actionChecker?this.options.actionChecker(i,s,g,this,f,c):g},t.prototype.ignoreFrom=(0,fe.warnOnce)(function(i){return this._backCompatOption("ignoreFrom",i)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,fe.warnOnce)(function(i){return this._backCompatOption("allowFrom",i)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=os,t.prototype.styleCursor=Mo}};Cr.default=Ro;var qt={};function _o(A,t,i,s,c){return t.testIgnoreAllow(t.options[A.name],i,s)&&t.options[A.name].enabled&&$r(t,i,A,c)?A:null}function Xn(A,t,i,s,c,f,g){for(var u=0,B=s.length;u=u||S.interactable===A&&((Q+=T===i.name?1:0)>=f||S.element===t&&(m++,T===i.name&&m>=g))))return!1}return u>0}function No(A,t){return F.default.number(A)?(t.autoStart.maxInteractions=A,this):t.autoStart.maxInteractions}function Jn(A,t,i){var s=i.autoStart.cursorElement;s&&s!==A&&(s.style.cursor=""),A.ownerDocument.documentElement.style.cursor=t,A.style.cursor=t,i.autoStart.cursorElement=t?A:null}function Go(A,t){var i=A.interactable,s=A.element,c=A.prepared;if(A.pointerType==="mouse"&&i&&i.options.styleCursor){var f="";if(c.name){var g=i.options[c.name].cursorChecker;f=F.default.func(g)?g(c,i,s,A._interacting):t.actions.map[c.name].getCursor(c)}Jn(A.element,f||"",t)}else t.autoStart.cursorElement&&Jn(t.autoStart.cursorElement,"",t)}Object.defineProperty(qt,"__esModule",{value:!0}),qt.default=void 0;var is={id:"auto-start/base",before:["actions"],install:function(A){var t=A.interactStatic,i=A.defaults;A.usePlugin(Cr.default),i.base.actionChecker=null,i.base.styleCursor=!0,(0,eA.default)(i.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(s){return No(s,A)},A.autoStart={maxInteractions:1/0,withinInteractionLimit:$r,cursorElement:null}},listeners:{"interactions:down":function(A,t){var i=A.interaction,s=A.pointer,c=A.event,f=A.eventTarget;i.interacting()||Po(i,Wn(i,s,c,f,t),t)},"interactions:move":function(A,t){(function(i,s){var c=i.interaction,f=i.pointer,g=i.event,u=i.eventTarget;c.pointerType!=="mouse"||c.pointerIsDown||c.interacting()||Po(c,Wn(c,f,g,u,s),s)})(A,t),function(i,s){var c=i.interaction;if(c.pointerIsDown&&!c.interacting()&&c.pointerWasMoved&&c.prepared.name){s.fire("autoStart:before-start",i);var f=c.interactable,g=c.prepared.name;g&&f&&(f.options[g].manualStart||!$r(f,c.element,c.prepared,s)?c.stop():(c.start(c.prepared,f,c.element),Go(c,s)))}}(A,t)},"interactions:stop":function(A,t){var i=A.interaction,s=i.interactable;s&&s.options.styleCursor&&Jn(i.element,"",t)}},maxInteractions:No,withinInteractionLimit:$r,validateAction:_o},Ur=is;qt.default=Ur;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.default=void 0;var An={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(A,t){var i=A.interaction,s=A.eventTarget,c=A.dx,f=A.dy;if(i.prepared.name==="drag"){var g=Math.abs(c),u=Math.abs(f),B=i.interactable.options.drag,Q=B.startAxis,m=g>u?"x":g0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},i))},"interactions:move":function(A){var t=A.interaction,i=A.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!i&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(A){var t=A.interaction;Et(t)>0&&(t.prepared.name=null)}},getHoldDuration:Et},as=ss;yr.default=as;var bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.default=void 0;var Er={id:"auto-start",install:function(A){A.usePlugin(qt.default),A.usePlugin(yr.default),A.usePlugin(Fr.default)}};bt.default=Er;var $t={};function cs(A){return/^(always|never|auto)$/.test(A)?(this.options.preventDefault=A,this):F.default.bool(A)?(this.options.preventDefault=A?"always":"never",this):this.options.preventDefault}function ls(A){var t=A.interaction,i=A.event;t.interactable&&t.interactable.checkAndPreventDefault(i)}function br(A){var t=A.Interactable;t.prototype.preventDefault=cs,t.prototype.checkAndPreventDefault=function(i){return function(s,c,f){var g=s.options.preventDefault;if(g!=="never")if(g!=="always"){if(c.events.supportsPassive&&/^touch(start|move)$/.test(f.type)){var u=(0,p.getWindow)(f.target).document,B=c.getDocOptions(u);if(!B||!B.events||B.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(f.type)||F.default.element(f.target)&&(0,W.matchesSelector)(f.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||f.preventDefault()}else f.preventDefault()}(this,A,i)},A.interactions.docEvents.push({type:"dragstart",listener:function(i){for(var s=0;sA.length)&&(t=A.length);for(var i=0,s=Array(t);i150)return null;var B=180*Math.atan2(u.prevEvent.velocityY,u.prevEvent.velocityX)/Math.PI;B<0&&(B+=360);var Q=112.5<=B&&B<247.5,m=202.5<=B&&B<337.5;return{up:m,down:!m&&22.5<=B&&B<157.5,left:Q,right:!Q&&(292.5<=B||B<67.5),angle:B,speed:u.prevEvent.speed,velocity:{x:u.prevEvent.velocityX,y:u.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&ds(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),g}(O.BaseEvent);Te.InteractEvent=Jo,Object.defineProperties(Jo.prototype,{pageX:{get:function(){return this.page.x},set:function(A){this.page.x=A}},pageY:{get:function(){return this.page.y},set:function(A){this.page.y=A}},clientX:{get:function(){return this.client.x},set:function(A){this.client.x=A}},clientY:{get:function(){return this.client.y},set:function(A){this.client.y=A}},dx:{get:function(){return this.delta.x},set:function(A){this.delta.x=A}},dy:{get:function(){return this.delta.y},set:function(A){this.delta.y=A}},velocityX:{get:function(){return this.velocity.x},set:function(A){this.velocity.x=A}},velocityY:{get:function(){return this.velocity.y},set:function(A){this.velocity.y=A}}});var Sr={};function Yo(A,t){for(var i=0;ithis.pointerMoveTolerance);var Q=this.getPointerIndex(s),m={pointer:s,pointerIndex:Q,pointerInfo:this.pointers[Q],event:c,type:"move",eventTarget:f,dx:g,dy:u,duplicate:B,interaction:this};B||R.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",m),B||this.simulation||(this.interacting()&&(m.type=null,this.move(m)),this.pointerWasMoved&&R.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(s){s&&s.event||R.setZeroCoords(this.coords.delta),(s=(0,eA.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},s||{})).phase="move",this._doPhase(s)}},{key:"pointerUp",value:function(s,c,f,g){var u=this.getPointerIndex(s);u===-1&&(u=this.updatePointer(s,c,f,!1));var B=/cancel$/i.test(c.type)?"cancel":"up";this._scopeFire("interactions:".concat(B),{pointer:s,pointerIndex:u,pointerInfo:this.pointers[u],event:c,eventTarget:f,type:B,curEventTarget:g,interaction:this}),this.simulation||this.end(c),this.removePointer(s,c)}},{key:"documentBlur",value:function(s){this.end(s),this._scopeFire("interactions:blur",{event:s,type:"blur",interaction:this})}},{key:"end",value:function(s){var c;this._ending=!0,s=s||this._latestPointer.event,this.interacting()&&(c=this._doPhase({event:s,interaction:this,phase:"end"})),this._ending=!1,c===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(s){var c=R.getPointerId(s);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:aA.findIndex(this.pointers,function(f){return f.id===c})}},{key:"getPointerInfo",value:function(s){return this.pointers[this.getPointerIndex(s)]}},{key:"updatePointer",value:function(s,c,f,g){var u=R.getPointerId(s),B=this.getPointerIndex(s),Q=this.pointers[B];return g=g!==!1&&(g||/(down|start)$/i.test(c.type)),Q?Q.pointer=s:(Q=new Sr.PointerInfo(u,s,c,null,null),B=this.pointers.length,this.pointers.push(Q)),R.setCoords(this.coords.cur,this.pointers.map(function(m){return m.pointer}),this._now()),R.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),g&&(this.pointerIsDown=!0,Q.downTime=this.coords.cur.timeStamp,Q.downTarget=f,R.pointerExtend(this.downPointer,s),this.interacting()||(R.copyCoords(this.coords.start,this.coords.cur),R.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=c,this.pointerWasMoved=!1)),this._updateLatestPointer(s,c,f),this._scopeFire("interactions:update-pointer",{pointer:s,event:c,eventTarget:f,down:g,pointerInfo:Q,pointerIndex:B,interaction:this}),B}},{key:"removePointer",value:function(s,c){var f=this.getPointerIndex(s);if(f!==-1){var g=this.pointers[f];this._scopeFire("interactions:remove-pointer",{pointer:s,event:c,eventTarget:null,pointerIndex:f,pointerInfo:g,interaction:this}),this.pointers.splice(f,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(s,c,f){this._latestPointer.pointer=s,this._latestPointer.event=c,this._latestPointer.eventTarget=f}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(s,c,f,g){return new Te.InteractEvent(this,s,this.prepared.name,c,this.element,f,g)}},{key:"_fireEvent",value:function(s){var c;(c=this.interactable)==null||c.fire(s),(!this.prevEvent||s.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=s)}},{key:"_doPhase",value:function(s){var c=s.event,f=s.phase,g=s.preEnd,u=s.type,B=this.rect;if(B&&f==="move"&&(bA.addEdges(this.edges,B,this.coords.delta[this.interactable.options.deltaSource]),B.width=B.right-B.left,B.height=B.bottom-B.top),this._scopeFire("interactions:before-action-".concat(f),s)===!1)return!1;var Q=s.iEvent=this._createPreparedEvent(c,f,g,u);return this._scopeFire("interactions:action-".concat(f),s),f==="start"&&(this.prevEvent=Q),this._fireEvent(Q),this._scopeFire("interactions:after-action-".concat(f),s),!0}},{key:"_now",value:function(){return Date.now()}}],i&&ps(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),A}();ve.Interaction=zn;var hs=zn;ve.default=hs;var Ot={};function oe(A){A.pointerIsDown&&(Zn(A.coords.cur,A.offset.total),A.offset.pending.x=0,A.offset.pending.y=0)}function Zo(A){ht(A.interaction)}function ht(A){if(!function(i){return!(!i.offset.pending.x&&!i.offset.pending.y)}(A))return!1;var t=A.offset.pending;return Zn(A.coords.cur,t),Zn(A.coords.delta,t),bA.addEdges(A.edges,A.rect,t),t.x=0,t.y=0,!0}function ws(A){var t=A.x,i=A.y;this.offset.pending.x+=t,this.offset.pending.y+=i,this.offset.total.x+=t,this.offset.total.y+=i}function Zn(A,t){var i=A.page,s=A.client,c=t.x,f=t.y;i.x+=c,i.y+=f,s.x+=c,s.y+=f}Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.addTotal=oe,Ot.applyPending=ht,Ot.default=void 0,ve._ProxyMethods.offsetBy="";var vs={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(A){A.Interaction.prototype.offsetBy=ws},listeners:{"interactions:new":function(A){A.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(A){return oe(A.interaction)},"interactions:before-action-start":Zo,"interactions:before-action-move":Zo,"interactions:before-action-end":function(A){var t=A.interaction;if(ht(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(A){var t=A.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Qs=vs;Ot.default=Qs;var At={};function on(A,t){for(var i=0;if.minSpeed&&u>f.endSpeed)this.startInertia();else{if(B.result=B.setAll(this.modifierArg),!B.result.changed)return!1;this.startSmoothEnd()}return c.modification.result.rect=null,c.offsetBy(this.targetOffset),c._doPhase({interaction:c,event:s,phase:"inertiastart"}),c.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),c.modification.result.rect=null,this.active=!0,c.simulation=this,!0}},{key:"startInertia",value:function(){var s=this,c=this.interaction.coords.velocity.client,f=Oe(this.interaction),g=f.resistance,u=-Math.log(f.endSpeed/this.v0)/g;this.targetOffset={x:(c.x-u)/g,y:(c.y-u)/g},this.te=u,this.lambda_v0=g/this.v0,this.one_ve_v0=1-f.endSpeed/this.v0;var B=this.modification,Q=this.modifierArg;Q.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},B.result=B.setAll(Q),B.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+B.result.delta.x,y:this.targetOffset.y+B.result.delta.y}),this.onNextFrame(function(){return s.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var s=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return s.smoothEndTick()})}},{key:"onNextFrame",value:function(s){var c=this;this.timeout=we.default.request(function(){c.active&&s()})}},{key:"inertiaTick",value:function(){var s,c,f,g,u,B=this,Q=this.interaction,m=Oe(Q).resistance,C=(Q._now()-this.t0)/1e3;if(C=0;f--){var g=c[f],u=g.selector,B=g.context,Q=g.listeners;u===this.target&&B===this._context&&c.splice(f,1);for(var m=Q.length-1;m>=0;m--)this._scopeEvents.removeDelegate(this.target,this._context,s,Q[m][0],Q[m][1])}else this._scopeEvents.remove(this.target,"all")}}])&&Fs(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),A}();cn.Interactable=ln;var un={};function ys(A,t){for(var i=0;iA.length)&&(t=A.length);for(var i=0,s=Array(t);i=0;M--){var iA=_[M];if(iA.selector===m&&iA.context===C){for(var fA=iA.listeners,K=fA.length-1;K>=0;K--){var RA=eo(fA[K],2),wA=RA[0],IA=RA[1],jA=IA.capture,it=IA.passive;if(wA===T&&jA===X.capture&&it===X.passive){fA.splice(K,1),fA.length||(_.splice(M,1),u(C,S,B),u(C,S,Q,!0)),rA=!0;break}}if(rA)break}}},delegateListener:B,delegateUseCapture:Q,delegatedEvents:s,documents:c,targets:i,supportsOptions:!1,supportsPassive:!1};function g(m,C,S,T){var H=er(T),M=aA.find(i,function(X){return X.eventTarget===m});M||(M={eventTarget:m,events:{}},i.push(M)),M.events[C]||(M.events[C]=[]),m.addEventListener&&!aA.contains(M.events[C],S)&&(m.addEventListener(C,S,f.supportsOptions?H:H.capture),M.events[C].push(S))}function u(m,C,S,T){var H=er(T),M=aA.findIndex(i,function(K){return K.eventTarget===m}),X=i[M];if(X&&X.events)if(C!=="all"){var _=!1,rA=X.events[C];if(rA){if(S==="all"){for(var iA=rA.length-1;iA>=0;iA--)u(m,C,rA[iA],H);return}for(var fA=0;fA=2)continue;if(!c.interacting()&&t===c.pointerType)return c}return null}};function ti(A,t){return A.pointers.some(function(i){return i.id===t})}var to=yA;tt.default=to;var Kr={};function wt(A){return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(A)}function De(A,t){return function(i){if(Array.isArray(i))return i}(A)||function(i,s){var c=i==null?null:typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(c!=null){var f,g,u=[],B=!0,Q=!1;try{for(c=c.call(i);!(B=(f=c.next()).done)&&(u.push(f.value),!s||u.length!==s);B=!0);}catch(m){Q=!0,g=m}finally{try{B||c.return==null||c.return()}finally{if(Q)throw g}}return u}}(A,t)||function(i,s){if(i){if(typeof i=="string")return ri(i,s);var c=Object.prototype.toString.call(i).slice(8,-1);return c==="Object"&&i.constructor&&(c=i.constructor.name),c==="Map"||c==="Set"?Array.from(i):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?ri(i,s):void 0}}(A,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ri(A,t){(t==null||t>A.length)&&(t=A.length);for(var i=0,s=Array(t);i=0;s--){var c=t.interactions.list[s];c.interactable===i&&(c.stop(),t.fire("interactions:destroy",{interaction:c}),c.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(s,1))}}},onDocSignal:dn,doOnInteractions:rr,methodNames:Ne},oi=ni;Kr.default=oi;var nr={};function or(A){return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(A)}function ir(){return ir=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(A,t,i){var s=ii(A,t);if(s){var c=Object.getOwnPropertyDescriptor(s,t);return c.get?c.get.call(arguments.length<3?A:i):c.value}},ir.apply(this,arguments)}function ii(A,t){for(;!Object.prototype.hasOwnProperty.call(A,t)&&(A=Be(A))!==null;);return A}function Qe(A,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Qe(A,t)}function Qt(A,t){if(t&&(or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(A)}function Be(A){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Be(A)}function $A(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(A,t){for(var i=0;iA.length)&&(t=A.length);for(var i=0,s=Array(t);iMath.abs(B.y),u.coords,u.rect),(0,eA.default)(s,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Bi(A,t,i){var s=A.startCoords,c=A.edgeSign;t?i.y=s.y+(i.x-s.x)*c.y:i.x=s.x+(i.y-s.y)*c.x}function gi(A,t,i,s){var c=A.startRect,f=A.startCoords,g=A.ratio,u=A.edgeSign;if(t){var B=s.width/g;i.y=f.y+(B-c.height)*u.y}else{var Q=s.height*g;i.x=f.x+(Q-c.width)*u.x}}Mt.aspectRatio=ao;var Ss=(0,ee.makeModifier)(ao,"aspectRatio");Mt.default=Ss;var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.default=void 0;var di=function(){};di._defaults={};var xs=di;Ge.default=xs;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Object.defineProperty(Rr,"default",{enumerable:!0,get:function(){return Ge.default}});var ge={};function Qn(A,t,i){return F.default.func(A)?bA.resolveRectLike(A,t.interactable,t.element,[i.x,i.y,t]):bA.resolveRectLike(A,t.interactable,t.element)}Object.defineProperty(ge,"__esModule",{value:!0}),ge.default=void 0,ge.getRestrictionRect=Qn,ge.restrict=void 0;var pi={start:function(A){var t=A.rect,i=A.startOffset,s=A.state,c=A.interaction,f=A.pageCoords,g=s.options,u=g.elementRect,B=(0,eA.default)({left:0,top:0,right:0,bottom:0},g.offset||{});if(t&&u){var Q=Qn(g.restriction,c,f);if(Q){var m=Q.right-Q.left-t.width,C=Q.bottom-Q.top-t.height;m<0&&(B.left+=m,B.right+=m),C<0&&(B.top+=C,B.bottom+=C)}B.left+=i.left-t.width*u.left,B.top+=i.top-t.height*u.top,B.right+=i.right-t.width*(1-u.right),B.bottom+=i.bottom-t.height*(1-u.bottom)}s.offset=B},set:function(A){var t=A.coords,i=A.interaction,s=A.state,c=s.options,f=s.offset,g=Qn(c.restriction,i,t);if(g){var u=bA.xywhToTlbr(g);t.x=Math.max(Math.min(u.right-f.right,t.x),u.left+f.left),t.y=Math.max(Math.min(u.bottom-f.bottom,t.y),u.top+f.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};ge.restrict=pi;var Ls=(0,ee.makeModifier)(pi,"restrict");ge.default=Ls;var ke={};Object.defineProperty(ke,"__esModule",{value:!0}),ke.restrictEdges=ke.default=void 0;var hi={top:1/0,left:1/0,bottom:-1/0,right:-1/0},wi={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Rt(A,t){for(var i=["top","left","bottom","right"],s=0;sA.length)&&(t=A.length);for(var i=0,s=Array(t);i{var DB="Expected a function",Wl=0/0,KB="[object Symbol]",MB=/^\s+|\s+$/g,RB=/^[-+]0x[0-9a-f]+$/i,_B=/^0b[01]+$/i,PB=/^0o[0-7]+$/i,NB=parseInt,GB=typeof global=="object"&&global&&global.Object===Object&&global,kB=typeof self=="object"&&self&&self.Object===Object&&self,VB=GB||kB||Function("return this")(),XB=Object.prototype,WB=XB.toString,JB=Math.max,YB=Math.min,Ga=function(){return VB.Date.now()};function jB(h,p,y){var b,x,F,J,V,sA,HA=0,$=!1,QA=!1,xA=!0;if(typeof h!="function")throw new TypeError(DB);p=Jl(p)||0,ka(y)&&($=!!y.leading,QA="maxWait"in y,F=QA?JB(Jl(y.maxWait)||0,p):F,xA="trailing"in y?!!y.trailing:xA);function mA(W){var TA=b,JA=x;return b=x=void 0,HA=W,J=h.apply(JA,TA),J}function se(W){return HA=W,V=setTimeout(ce,p),$?mA(W):J}function vA(W){var TA=W-sA,JA=W-HA,Ue=p-TA;return QA?YB(Ue,F-JA):Ue}function NA(W){var TA=W-sA,JA=W-HA;return sA===void 0||TA>=p||TA<0||QA&&JA>=F}function ce(){var W=Ga();if(NA(W))return ut(W);V=setTimeout(ce,vA(W))}function ut(W){return V=void 0,xA&&b?mA(W):(b=x=void 0,J)}function GA(){V!==void 0&&clearTimeout(V),HA=0,b=sA=x=V=void 0}function LA(){return V===void 0?J:ut(Ga())}function le(){var W=Ga(),TA=NA(W);if(b=arguments,x=this,sA=W,TA){if(V===void 0)return se(sA);if(QA)return V=setTimeout(ce,p),mA(sA)}return V===void 0&&(V=setTimeout(ce,p)),J}return le.cancel=GA,le.flush=LA,le}function ka(h){var p=typeof h;return!!h&&(p=="object"||p=="function")}function zB(h){return!!h&&typeof h=="object"}function ZB(h){return typeof h=="symbol"||zB(h)&&WB.call(h)==KB}function Jl(h){if(typeof h=="number")return h;if(ZB(h))return Wl;if(ka(h)){var p=typeof h.valueOf=="function"?h.valueOf():h;h=ka(p)?p+"":p}if(typeof h!="string")return h===0?h:+h;h=h.replace(MB,"");var y=_B.test(h);return y||PB.test(h)?NB(h.slice(2),y?2:8):RB.test(h)?Wl:+h}Yl.exports=jB});var Ol=Ha(Xc(),1);function Uo(h,p){try{return JSON.parse(window[h].getItem(p))}catch(y){return AA.error("get storage data error",{err:y}),null}}function Fo(h,p,y){try{return window[h].setItem(p,JSON.stringify(y)),y}catch(b){return AA.error("setup storage error",{err:b}),null}}function Gi(h,p,y,b){try{let x=Uo(h,p);if(!x)throw new Error("Can't find initial state");let F={...x,[y]:b};return window[h].setItem(p,JSON.stringify(F)),F}catch(x){return AA.error("set storage value error",{err:x}),null}}function ki(h,p){try{window[h].removeItem(p)}catch(y){AA.error("clear storage error",{err:y})}}var Wc="strigo-sdk",Jc="strigo.io",Yc=["strigo-exercises"],jc=["orig-iframe"],Vi=` +}`,Lf=function(r){Tf(r,"."+ma+Sf+Dc+` + .`+Ca+xf+Dc)},Tf=function(r,e){var o=r.ownerDocument;if(o){var n=o.createElement("style");n.textContent=e,r.appendChild(n)}},Kc=function(){function r(){}return r.getOrigin=function(e){var o=r._link;return o?(o.href=e,o.href=o.href,o.protocol+o.hostname+o.port):"about:blank"},r.isSameOrigin=function(e){return r.getOrigin(e)===r._origin},r.setContext=function(e){r._link=e.document.createElement("a"),r._origin=r.getOrigin(e.location.href)},r._origin="about:blank",r}(),Of=function(){function r(e,o){this.context=e,this._options=o,this._cache={}}return r.prototype.addImage=function(e){var o=Promise.resolve();return this.has(e)||(Fa(e)||Rf(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),o},r.prototype.match=function(e){return this._cache[e]},r.prototype.loadImage=function(e){return b(this,void 0,void 0,function(){var o,n,a,l,d=this;return x(this,function(v){switch(v.label){case 0:return o=Kc.isSameOrigin(e),n=!Ua(e)&&this._options.useCORS===!0&&de.SUPPORT_CORS_IMAGES&&!o,a=!Ua(e)&&!o&&!Fa(e)&&typeof this._options.proxy=="string"&&de.SUPPORT_CORS_XHR&&!n,!o&&this._options.allowTaint===!1&&!Ua(e)&&!Fa(e)&&!a&&!n?[2]:(l=e,a?[4,this.proxy(l)]:[3,2]);case 1:l=v.sent(),v.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(w,U){var E=new Image;E.onload=function(){return w(E)},E.onerror=U,(_f(l)||n)&&(E.crossOrigin="anonymous"),E.src=l,E.complete===!0&&setTimeout(function(){return w(E)},500),d._options.imageTimeout>0&&setTimeout(function(){return U("Timed out ("+d._options.imageTimeout+"ms) loading image")},d._options.imageTimeout)})];case 3:return[2,v.sent()]}})})},r.prototype.has=function(e){return typeof this._cache[e]!="undefined"},r.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},r.prototype.proxy=function(e){var o=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var a=e.substring(0,256);return new Promise(function(l,d){var v=de.SUPPORT_RESPONSE_TYPE?"blob":"text",w=new XMLHttpRequest;w.onload=function(){if(w.status===200)if(v==="text")l(w.response);else{var I=new FileReader;I.addEventListener("load",function(){return l(I.result)},!1),I.addEventListener("error",function(L){return d(L)},!1),I.readAsDataURL(w.response)}else d("Failed to proxy resource "+a+" with status code "+w.status)},w.onerror=d;var U=n.indexOf("?")>-1?"&":"?";if(w.open("GET",""+n+U+"url="+encodeURIComponent(e)+"&responseType="+v),v!=="text"&&w instanceof XMLHttpRequest&&(w.responseType=v),o._options.imageTimeout){var E=o._options.imageTimeout;w.timeout=E,w.ontimeout=function(){return d("Timed out ("+E+"ms) proxying "+a)}}w.send()})},r}(),Df=/^data:image\/svg\+xml/i,Kf=/^data:image\/.*;base64,/i,Mf=/^data:image\/.*/i,Rf=function(r){return de.SUPPORT_SVG_DRAWING||!Pf(r)},Ua=function(r){return Mf.test(r)},_f=function(r){return Kf.test(r)},Fa=function(r){return r.substr(0,4)==="blob"},Pf=function(r){return r.substr(-3).toLowerCase()==="svg"||Df.test(r)},z=function(){function r(e,o){this.type=0,this.x=e,this.y=o}return r.prototype.add=function(e,o){return new r(this.x+e,this.y+o)},r}(),On=function(r,e,o){return new z(r.x+(e.x-r.x)*o,r.y+(e.y-r.y)*o)},Ki=function(){function r(e,o,n,a){this.type=1,this.start=e,this.startControl=o,this.endControl=n,this.end=a}return r.prototype.subdivide=function(e,o){var n=On(this.start,this.startControl,e),a=On(this.startControl,this.endControl,e),l=On(this.endControl,this.end,e),d=On(n,a,e),v=On(a,l,e),w=On(d,v,e);return o?new r(this.start,n,d,w):new r(w,v,l,this.end)},r.prototype.add=function(e,o){return new r(this.start.add(e,o),this.startControl.add(e,o),this.endControl.add(e,o),this.end.add(e,o))},r.prototype.reverse=function(){return new r(this.end,this.endControl,this.startControl,this.start)},r}(),Xe=function(r){return r.type===1},Nf=function(){function r(e){var o=e.styles,n=e.bounds,a=rr(o.borderTopLeftRadius,n.width,n.height),l=a[0],d=a[1],v=rr(o.borderTopRightRadius,n.width,n.height),w=v[0],U=v[1],E=rr(o.borderBottomRightRadius,n.width,n.height),I=E[0],L=E[1],q=rr(o.borderBottomLeftRadius,n.width,n.height),P=q[0],Y=q[1],pA=[];pA.push((l+w)/n.width),pA.push((P+I)/n.width),pA.push((d+Y)/n.height),pA.push((U+L)/n.height);var nA=Math.max.apply(Math,pA);nA>1&&(l/=nA,d/=nA,w/=nA,U/=nA,I/=nA,L/=nA,P/=nA,Y/=nA);var tA=n.width-w,yA=n.height-L,hA=n.width-I,lA=n.height-Y,Z=o.borderTopWidth,mA=o.borderRightWidth,CA=o.borderBottomWidth,uA=o.borderLeftWidth,re=DA(o.paddingTop,e.bounds.width),be=DA(o.paddingRight,e.bounds.width),Me=DA(o.paddingBottom,e.bounds.width),RA=DA(o.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||d>0?WA(n.left+uA/3,n.top+Z/3,l-uA/3,d-Z/3,HA.TOP_LEFT):new z(n.left+uA/3,n.top+Z/3),this.topRightBorderDoubleOuterBox=l>0||d>0?WA(n.left+tA,n.top+Z/3,w-mA/3,U-Z/3,HA.TOP_RIGHT):new z(n.left+n.width-mA/3,n.top+Z/3),this.bottomRightBorderDoubleOuterBox=I>0||L>0?WA(n.left+hA,n.top+yA,I-mA/3,L-CA/3,HA.BOTTOM_RIGHT):new z(n.left+n.width-mA/3,n.top+n.height-CA/3),this.bottomLeftBorderDoubleOuterBox=P>0||Y>0?WA(n.left+uA/3,n.top+lA,P-uA/3,Y-CA/3,HA.BOTTOM_LEFT):new z(n.left+uA/3,n.top+n.height-CA/3),this.topLeftBorderDoubleInnerBox=l>0||d>0?WA(n.left+uA*2/3,n.top+Z*2/3,l-uA*2/3,d-Z*2/3,HA.TOP_LEFT):new z(n.left+uA*2/3,n.top+Z*2/3),this.topRightBorderDoubleInnerBox=l>0||d>0?WA(n.left+tA,n.top+Z*2/3,w-mA*2/3,U-Z*2/3,HA.TOP_RIGHT):new z(n.left+n.width-mA*2/3,n.top+Z*2/3),this.bottomRightBorderDoubleInnerBox=I>0||L>0?WA(n.left+hA,n.top+yA,I-mA*2/3,L-CA*2/3,HA.BOTTOM_RIGHT):new z(n.left+n.width-mA*2/3,n.top+n.height-CA*2/3),this.bottomLeftBorderDoubleInnerBox=P>0||Y>0?WA(n.left+uA*2/3,n.top+lA,P-uA*2/3,Y-CA*2/3,HA.BOTTOM_LEFT):new z(n.left+uA*2/3,n.top+n.height-CA*2/3),this.topLeftBorderStroke=l>0||d>0?WA(n.left+uA/2,n.top+Z/2,l-uA/2,d-Z/2,HA.TOP_LEFT):new z(n.left+uA/2,n.top+Z/2),this.topRightBorderStroke=l>0||d>0?WA(n.left+tA,n.top+Z/2,w-mA/2,U-Z/2,HA.TOP_RIGHT):new z(n.left+n.width-mA/2,n.top+Z/2),this.bottomRightBorderStroke=I>0||L>0?WA(n.left+hA,n.top+yA,I-mA/2,L-CA/2,HA.BOTTOM_RIGHT):new z(n.left+n.width-mA/2,n.top+n.height-CA/2),this.bottomLeftBorderStroke=P>0||Y>0?WA(n.left+uA/2,n.top+lA,P-uA/2,Y-CA/2,HA.BOTTOM_LEFT):new z(n.left+uA/2,n.top+n.height-CA/2),this.topLeftBorderBox=l>0||d>0?WA(n.left,n.top,l,d,HA.TOP_LEFT):new z(n.left,n.top),this.topRightBorderBox=w>0||U>0?WA(n.left+tA,n.top,w,U,HA.TOP_RIGHT):new z(n.left+n.width,n.top),this.bottomRightBorderBox=I>0||L>0?WA(n.left+hA,n.top+yA,I,L,HA.BOTTOM_RIGHT):new z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=P>0||Y>0?WA(n.left,n.top+lA,P,Y,HA.BOTTOM_LEFT):new z(n.left,n.top+n.height),this.topLeftPaddingBox=l>0||d>0?WA(n.left+uA,n.top+Z,Math.max(0,l-uA),Math.max(0,d-Z),HA.TOP_LEFT):new z(n.left+uA,n.top+Z),this.topRightPaddingBox=w>0||U>0?WA(n.left+Math.min(tA,n.width-mA),n.top+Z,tA>n.width+mA?0:Math.max(0,w-mA),Math.max(0,U-Z),HA.TOP_RIGHT):new z(n.left+n.width-mA,n.top+Z),this.bottomRightPaddingBox=I>0||L>0?WA(n.left+Math.min(hA,n.width-uA),n.top+Math.min(yA,n.height-CA),Math.max(0,I-mA),Math.max(0,L-CA),HA.BOTTOM_RIGHT):new z(n.left+n.width-mA,n.top+n.height-CA),this.bottomLeftPaddingBox=P>0||Y>0?WA(n.left+uA,n.top+Math.min(lA,n.height-CA),Math.max(0,P-uA),Math.max(0,Y-CA),HA.BOTTOM_LEFT):new z(n.left+uA,n.top+n.height-CA),this.topLeftContentBox=l>0||d>0?WA(n.left+uA+RA,n.top+Z+re,Math.max(0,l-(uA+RA)),Math.max(0,d-(Z+re)),HA.TOP_LEFT):new z(n.left+uA+RA,n.top+Z+re),this.topRightContentBox=w>0||U>0?WA(n.left+Math.min(tA,n.width+uA+RA),n.top+Z+re,tA>n.width+uA+RA?0:w-uA+RA,U-(Z+re),HA.TOP_RIGHT):new z(n.left+n.width-(mA+be),n.top+Z+re),this.bottomRightContentBox=I>0||L>0?WA(n.left+Math.min(hA,n.width-(uA+RA)),n.top+Math.min(yA,n.height+Z+re),Math.max(0,I-(mA+be)),L-(CA+Me),HA.BOTTOM_RIGHT):new z(n.left+n.width-(mA+be),n.top+n.height-(CA+Me)),this.bottomLeftContentBox=P>0||Y>0?WA(n.left+uA+RA,n.top+lA,Math.max(0,P-(uA+RA)),Y-(CA+Me),HA.BOTTOM_LEFT):new z(n.left+uA+RA,n.top+n.height-(CA+Me))}return r}(),HA;(function(r){r[r.TOP_LEFT=0]="TOP_LEFT",r[r.TOP_RIGHT=1]="TOP_RIGHT",r[r.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",r[r.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(HA||(HA={}));var WA=function(r,e,o,n,a){var l=4*((Math.sqrt(2)-1)/3),d=o*l,v=n*l,w=r+o,U=e+n;switch(a){case HA.TOP_LEFT:return new Ki(new z(r,U),new z(r,U-v),new z(w-d,e),new z(w,e));case HA.TOP_RIGHT:return new Ki(new z(r,e),new z(r+d,e),new z(w,U-v),new z(w,U));case HA.BOTTOM_RIGHT:return new Ki(new z(w,e),new z(w,e+v),new z(r+d,U),new z(r,U));case HA.BOTTOM_LEFT:default:return new Ki(new z(w,U),new z(w-d,U),new z(r,e+v),new z(r,e))}},Mi=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},Gf=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},Ri=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},kf=function(){function r(e,o,n){this.offsetX=e,this.offsetY=o,this.matrix=n,this.type=0,this.target=2|4}return r}(),_i=function(){function r(e,o){this.path=e,this.target=o,this.type=1}return r}(),Vf=function(){function r(e){this.opacity=e,this.type=2,this.target=2|4}return r}(),Xf=function(r){return r.type===0},Mc=function(r){return r.type===1},Wf=function(r){return r.type===2},Rc=function(r,e){return r.length===e.length?r.some(function(o,n){return o===e[n]}):!1},Jf=function(r,e,o,n,a){return r.map(function(l,d){switch(d){case 0:return l.add(e,o);case 1:return l.add(e+n,o);case 2:return l.add(e+n,o+a);case 3:return l.add(e,o+a)}return l})},_c=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),Pc=function(){function r(e,o){if(this.container=e,this.parent=o,this.effects=[],this.curves=new Nf(this.container),this.container.styles.opacity<1&&this.effects.push(new Vf(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new kf(n,a,l))}if(this.container.styles.overflowX!==0){var d=Mi(this.curves),v=Ri(this.curves);Rc(d,v)?this.effects.push(new _i(d,2|4)):(this.effects.push(new _i(d,2)),this.effects.push(new _i(v,4)))}}return r.prototype.getEffects=function(e){for(var o=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,a=this.effects.slice(0);n;){var l=n.effects.filter(function(w){return!Mc(w)});if(o||n.container.styles.position!==0||!n.parent){if(a.unshift.apply(a,l),o=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var d=Mi(n.curves),v=Ri(n.curves);Rc(d,v)||a.unshift(new _i(v,2|4))}}else a.unshift.apply(a,l);n=n.parent}return a.filter(function(w){return u(w.target,e)})},r}(),ya=function(r,e,o,n){r.container.elements.forEach(function(a){var l=u(a.flags,4),d=u(a.flags,2),v=new Pc(a,r);u(a.styles.display,2048)&&n.push(v);var w=u(a.flags,8)?[]:n;if(l||d){var U=l||a.styles.isPositioned()?o:e,E=new _c(v);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var I=a.styles.zIndex.order;if(I<0){var L=0;U.negativeZIndex.some(function(P,Y){return I>P.element.container.styles.zIndex.order?(L=Y,!1):L>0}),U.negativeZIndex.splice(L,0,E)}else if(I>0){var q=0;U.positiveZIndex.some(function(P,Y){return I>=P.element.container.styles.zIndex.order?(q=Y+1,!1):q>0}),U.positiveZIndex.splice(q,0,E)}else U.zeroOrAutoZIndexOrTransformedOrOpacity.push(E)}else a.styles.isFloating()?U.nonPositionedFloats.push(E):U.nonPositionedInlineLevel.push(E);ya(v,E,l?E:o,w)}else a.styles.isInlineLevel()?e.inlineLevel.push(v):e.nonInlineLevel.push(v),ya(v,e,o,w);u(a.flags,8)&&Nc(a,w)})},Nc=function(r,e){for(var o=r instanceof ga?r.start:1,n=r instanceof ga?r.reversed:!1,a=0;a0&&o.intrinsicHeight>0){var l=Ni(o),d=Ri(n);this.path(d),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,o.intrinsicWidth,o.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(o){return b(this,void 0,void 0,function(){var n,a,l,d,v,w,tA,tA,U,E,I,L,hA,q,P,lA,Y,pA,nA,tA,yA,hA,lA;return x(this,function(Z){switch(Z.label){case 0:this.applyEffects(o.getEffects(4)),n=o.container,a=o.curves,l=n.styles,d=0,v=n.textNodes,Z.label=1;case 1:return d0&&pe>0&&(CA=l.ctx.createPattern(lA,"repeat"),l.renderRepeat(re,CA,Ie,He))):xs(E)&&(uA=Ea(o,n,[null,null,null]),re=uA[0],be=uA[1],Me=uA[2],RA=uA[3],pe=uA[4],fr=E.position.length===0?[tr]:E.position,Ie=DA(fr[0],RA),He=DA(fr[fr.length-1],pe),Xr=ui(E,Ie,He,RA,pe),Ct=Xr[0],Br=Xr[1],Ct>0&&Br>0&&(Wr=l.ctx.createRadialGradient(be+Ie,Me+He,0,be+Ie,Me+He,Ct),li(E.stops,Ct*2).forEach(function(Uo){return Wr.addColorStop(Uo.stop,$A(Uo.color))}),l.path(re),l.ctx.fillStyle=Wr,Ct!==Br?(Jr=o.bounds.left+.5*o.bounds.width,Vt=o.bounds.top+.5*o.bounds.height,Yr=Br/Ct,Xt=1/Yr,l.ctx.save(),l.ctx.translate(Jr,Vt),l.ctx.transform(1,0,0,Yr,0,0),l.ctx.translate(-Jr,-Vt),l.ctx.fillRect(be,Xt*(Me-Vt)+Vt,RA,pe*Xt),l.ctx.restore()):l.ctx.fill())),Mn.label=6;case 6:return n--,[2]}})},l=this,d=0,v=o.styles.backgroundImage.slice(0).reverse(),U.label=1;case 1:return d0?E.style!==2?[3,5]:[4,this.renderDashedDottedBorder(E.color,E.width,v,o.curves,2)]:[3,11]):[3,13];case 4:return L.sent(),[3,11];case 5:return E.style!==3?[3,7]:[4,this.renderDashedDottedBorder(E.color,E.width,v,o.curves,3)];case 6:return L.sent(),[3,11];case 7:return E.style!==4?[3,9]:[4,this.renderDoubleBorder(E.color,E.width,v,o.curves)];case 8:return L.sent(),[3,11];case 9:return[4,this.renderSolidBorder(E.color,v,o.curves)];case 10:L.sent(),L.label=11;case 11:v++,L.label=12;case 12:return w++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(o,n,a,l,d){return b(this,void 0,void 0,function(){var v,w,U,E,I,L,q,P,Y,pA,nA,tA,yA,hA,lA,Z,lA,Z;return x(this,function(mA){return this.ctx.save(),v=Zf(l,a),w=Gc(l,a),d===2&&(this.path(w),this.ctx.clip()),Xe(w[0])?(U=w[0].start.x,E=w[0].start.y):(U=w[0].x,E=w[0].y),Xe(w[1])?(I=w[1].end.x,L=w[1].end.y):(I=w[1].x,L=w[1].y),a===0||a===2?q=Math.abs(U-I):q=Math.abs(E-L),this.ctx.beginPath(),d===3?this.formatPath(v):this.formatPath(w.slice(0,2)),P=n<3?n*3:n*2,Y=n<3?n*2:n,d===3&&(P=n,Y=n),pA=!0,q<=P*2?pA=!1:q<=P*2+Y?(nA=q/(2*P+Y),P*=nA,Y*=nA):(tA=Math.floor((q+Y)/(P+Y)),yA=(q-tA*P)/(tA-1),hA=(q-(tA+1)*P)/tA,Y=hA<=0||Math.abs(Y-yA){(function(h){typeof Wl=="object"&&typeof Ga!="undefined"?Ga.exports=h():typeof define=="function"&&define.amd?define([],h):(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this).interact=h()})(function(){var h={};Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0,h.default=function(A){return!(!A||!A.Window)&&A instanceof A.Window};var p={};Object.defineProperty(p,"__esModule",{value:!0}),p.getWindow=function(A){return(0,h.default)(A)?A:(A.ownerDocument||A).defaultView||b.window},p.init=x,p.window=p.realWindow=void 0;var y=void 0;p.realWindow=y;var b=void 0;function x(A){p.realWindow=y=A;var t=A.document.createTextNode("");t.ownerDocument!==A.document&&typeof A.wrap=="function"&&A.wrap(t)===t&&(A=A.wrap(A)),p.window=b=A}p.window=b,typeof window!="undefined"&&window&&x(window);var F={};function j(A){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(A)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var k=function(A){return!!A&&j(A)==="object"},iA=function(A){return typeof A=="function"},SA={window:function(A){return A===p.window||(0,h.default)(A)},docFrag:function(A){return k(A)&&A.nodeType===11},object:k,func:iA,number:function(A){return typeof A=="number"},bool:function(A){return typeof A=="boolean"},string:function(A){return typeof A=="string"},element:function(A){if(!A||j(A)!=="object")return!1;var t=p.getWindow(A)||p.window;return/object|function/.test(typeof Element=="undefined"?"undefined":j(Element))?A instanceof Element||A instanceof t.Element:A.nodeType===1&&typeof A.nodeName=="string"},plainObject:function(A){return k(A)&&!!A.constructor&&/function Object\b/.test(A.constructor.toString())},array:function(A){return k(A)&&A.length!==void 0&&iA(A.splice)}};F.default=SA;var AA={};function EA(A){var t=A.interaction;if(t.prepared.name==="drag"){var i=t.prepared.axis;i==="x"?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):i==="y"&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function _A(A){var t=A.iEvent,i=A.interaction;if(i.prepared.name==="drag"){var s=i.prepared.axis;if(s==="x"||s==="y"){var c=s==="x"?"y":"x";t.page[c]=i.coords.start.page[c],t.client[c]=i.coords.start.client[c],t.delta[c]=0}}}Object.defineProperty(AA,"__esModule",{value:!0}),AA.default=void 0;var FA={id:"actions/drag",install:function(A){var t=A.actions,i=A.Interactable,s=A.defaults;i.prototype.draggable=FA.draggable,t.map.drag=FA,t.methodDict.drag="draggable",s.actions.drag=FA.defaults},listeners:{"interactions:before-action-move":EA,"interactions:action-resume":EA,"interactions:action-move":_A,"auto-start:check":function(A){var t=A.interaction,i=A.interactable,s=A.buttons,c=i.options.drag;if(c&&c.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(s&i.options.drag.mouseButtons)!=0))return A.action={name:"drag",axis:c.lockAxis==="start"?c.startAxis:c.lockAxis},!1}},draggable:function(A){return F.default.object(A)?(this.options.drag.enabled=A.enabled!==!1,this.setPerAction("drag",A),this.setOnEvents("drag",A),/^(xy|x|y|start)$/.test(A.lockAxis)&&(this.options.drag.lockAxis=A.lockAxis),/^(xy|x|y)$/.test(A.startAxis)&&(this.options.drag.startAxis=A.startAxis),this):F.default.bool(A)?(this.options.drag.enabled=A,this):this.options.drag},beforeMove:EA,move:_A,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},se=FA;AA.default=se;var vA={};Object.defineProperty(vA,"__esModule",{value:!0}),vA.default=void 0;var NA={init:function(A){var t=A;NA.document=t.document,NA.DocumentFragment=t.DocumentFragment||ce,NA.SVGElement=t.SVGElement||ce,NA.SVGSVGElement=t.SVGSVGElement||ce,NA.SVGElementInstance=t.SVGElementInstance||ce,NA.Element=t.Element||ce,NA.HTMLElement=t.HTMLElement||NA.Element,NA.Event=t.Event,NA.Touch=t.Touch||ce,NA.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ce(){}var ut=NA;vA.default=ut;var GA={};Object.defineProperty(GA,"__esModule",{value:!0}),GA.default=void 0;var xA={init:function(A){var t=vA.default.Element,i=A.navigator||{};xA.supportsTouch="ontouchstart"in A||F.default.func(A.DocumentTouch)&&vA.default.document instanceof A.DocumentTouch,xA.supportsPointerEvent=i.pointerEnabled!==!1&&!!vA.default.PointerEvent,xA.isIOS=/iP(hone|od|ad)/.test(i.platform),xA.isIOS7=/iP(hone|od|ad)/.test(i.platform)&&/OS 7[^\d]/.test(i.appVersion),xA.isIe9=/MSIE 9/.test(i.userAgent),xA.isOperaMobile=i.appName==="Opera"&&xA.supportsTouch&&/Presto/.test(i.userAgent),xA.prefixedMatchesSelector="matches"in t.prototype?"matches":"webkitMatchesSelector"in t.prototype?"webkitMatchesSelector":"mozMatchesSelector"in t.prototype?"mozMatchesSelector":"oMatchesSelector"in t.prototype?"oMatchesSelector":"msMatchesSelector",xA.pEventTypes=xA.supportsPointerEvent?vA.default.PointerEvent===A.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,xA.wheelEvent=vA.default.document&&"onmousewheel"in vA.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},le=xA;GA.default=le;var W={};function LA(A){var t=A.parentNode;if(F.default.docFrag(t)){for(;(t=t.host)&&F.default.docFrag(t););return t}return t}function JA(A,t){return p.window!==p.realWindow&&(t=t.replace(/\/deep\//g," ")),A[GA.default.prefixedMatchesSelector](t)}Object.defineProperty(W,"__esModule",{value:!0}),W.closest=function(A,t){for(;F.default.element(A);){if(JA(A,t))return A;A=LA(A)}return null},W.getActualElement=function(A){return A.correspondingUseElement||A},W.getElementClientRect=Yt,W.getElementRect=function(A){var t=Yt(A);if(!GA.default.isIOS7&&t){var i=ft(p.getWindow(A));t.left+=i.x,t.right+=i.x,t.top+=i.y,t.bottom+=i.y}return t},W.getPath=function(A){for(var t=[];A;)t.push(A),A=LA(A);return t},W.getScrollXY=ft,W.indexOfDeepestElement=function(A){for(var t,i=[],s=0;s=(parseInt(p.getWindow(H).getComputedStyle(H).zIndex,10)||0)&&(t=s);else t=s}else t=s}var T,H;return t},W.matchesSelector=JA,W.matchesUpTo=function(A,t,i){for(;F.default.element(A);){if(JA(A,t))return!0;if((A=LA(A))===i)return JA(A,t)}return!1},W.nodeContains=function(A,t){if(A.contains)return A.contains(t);for(;t;){if(t===A)return!0;t=t.parentNode}return!1},W.parentNode=LA,W.trySelector=function(A){return!!F.default.string(A)&&(vA.default.document.querySelector(A),!0)};var Ue=function(A){return A.parentNode||A.host};function Ye(A,t){for(var i,s=[],c=A;(i=Ue(c))&&c!==t&&i!==c.ownerDocument;)s.unshift(c),c=i;return s}function ft(A){return{x:(A=A||p.window).scrollX||A.document.documentElement.scrollLeft,y:A.scrollY||A.document.documentElement.scrollTop}}function Yt(A){var t=A instanceof vA.default.SVGElement?A.getBoundingClientRect():A.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var eA={};Object.defineProperty(eA,"__esModule",{value:!0}),eA.default=function(A,t){for(var i in t)A[i]=t[i];return A};var bA={};function Re(A,t){(t==null||t>A.length)&&(t=A.length);for(var i=0,s=Array(t);i1?G(t):t[0];QA(s,A.page),kA(s,A.client),A.timeStamp=i},R.setZeroCoords=function(A){A.page.x=0,A.page.y=0,A.client.x=0,A.client.y=0},R.touchAngle=function(A,t){var i=t+"X",s=t+"Y",c=XA(A),f=c[1][i]-c[0][i],g=c[1][s]-c[0][s];return 180*Math.atan2(g,f)/Math.PI},R.touchBBox=function(A){if(!A.length)return null;var t=XA(A),i=Math.min(t[0].pageX,t[1].pageX),s=Math.min(t[0].pageY,t[1].pageY),c=Math.max(t[0].pageX,t[1].pageX),f=Math.max(t[0].pageY,t[1].pageY);return{x:i,y:s,left:i,top:s,right:c,bottom:f,width:c-i,height:f-s}},R.touchDistance=function(A,t){var i=t+"X",s=t+"Y",c=XA(A),f=c[0][i]-c[1][i],g=c[0][s]-c[1][s];return(0,N.default)(f,g)};var O={};function V(A,t){for(var i=0;i_.left&&K.x<_.right,wA=K.y>_.top&&K.y<_.bottom;rA=MA&&wA}var IA=H.getRect(M);if(IA&&sA==="center"){var jA=IA.left+IA.width/2,it=IA.top+IA.height/2;rA=jA>=_.left&&jA<=_.right&&it>=_.top&&it<=_.bottom}return IA&&F.default.number(sA)&&(rA=Math.max(0,Math.min(_.right,IA.right)-Math.max(_.left,IA.left))*Math.max(0,Math.min(_.bottom,IA.bottom)-Math.max(_.top,IA.top))/(IA.width*IA.height)>=sA),C.options.drop.checker&&(rA=C.options.drop.checker(S,T,rA,C,X,H,M)),rA}(this,f,g,u,B,Q,m)},i.dynamicDrop=function(f){return F.default.bool(f)?(A.dynamicDrop=f,i):A.dynamicDrop},(0,eA.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",A.dynamicDrop=!1,c.actions.drop=Zt.defaults},listeners:{"interactions:before-action-start":function(A){var t=A.interaction;t.prepared.name==="drag"&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(A,t){var i=A.interaction,s=(A.event,A.iEvent);if(i.prepared.name==="drag"){var c=i.dropState;c.activeDrops=null,c.events=null,c.activeDrops=vr(t,i.element),c.events=Qr(i,0,s),c.events.activate&&(Pn(c.activeDrops,c.events.activate),t.fire("actions/drop:start",{interaction:i,dragEvent:s}))}},"interactions:action-move":he,"interactions:after-action-move":function(A,t){var i=A.interaction,s=A.iEvent;i.prepared.name==="drag"&&(Bt(i,i.dropState.events),t.fire("actions/drop:move",{interaction:i,dragEvent:s}),i.dropState.events={})},"interactions:action-end":function(A,t){if(A.interaction.prepared.name==="drag"){var i=A.interaction,s=A.iEvent;he(A,t),Bt(i,i.dropState.events),t.fire("actions/drop:end",{interaction:i,dragEvent:s})}},"interactions:stop":function(A){var t=A.interaction;if(t.prepared.name==="drag"){var i=t.dropState;i&&(i.activeDrops=null,i.events=null,i.cur.dropzone=null,i.cur.element=null,i.prev.dropzone=null,i.prev.element=null,i.rejected=!1)}}},getActiveDrops:vr,getDrop:zt,getDropEvents:Qr,fireDropEvents:Bt,defaults:{enabled:!1,accept:null,overlap:"pointer"}},mr=Zt;zr.default=mr;var ze={};function Nn(A){var t=A.interaction,i=A.iEvent,s=A.phase;if(t.prepared.name==="gesture"){var c=t.pointers.map(function(Q){return Q.pointer}),f=s==="start",g=s==="end",u=t.interactable.options.deltaSource;if(i.touches=[c[0],c[1]],f)i.distance=R.touchDistance(c,u),i.box=R.touchBBox(c),i.scale=1,i.ds=0,i.angle=R.touchAngle(c,u),i.da=0,t.gesture.startDistance=i.distance,t.gesture.startAngle=i.angle;else if(g){var B=t.prevEvent;i.distance=B.distance,i.box=B.box,i.scale=B.scale,i.ds=0,i.angle=B.angle,i.da=0}else i.distance=R.touchDistance(c,u),i.box=R.touchBBox(c),i.scale=i.distance/t.gesture.startDistance,i.angle=R.touchAngle(c,u),i.ds=i.scale-t.gesture.scale,i.da=i.angle-t.gesture.angle;t.gesture.distance=i.distance,t.gesture.angle=i.angle,F.default.number(i.scale)&&i.scale!==1/0&&!isNaN(i.scale)&&(t.gesture.scale=i.scale)}}Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=void 0;var Ze={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(A){var t=A.actions,i=A.Interactable,s=A.defaults;i.prototype.gesturable=function(c){return F.default.object(c)?(this.options.gesture.enabled=c.enabled!==!1,this.setPerAction("gesture",c),this.setOnEvents("gesture",c),this):F.default.bool(c)?(this.options.gesture.enabled=c,this):this.options.gesture},t.map.gesture=Ze,t.methodDict.gesture="gesturable",s.actions.gesture=Ze.defaults},listeners:{"interactions:action-start":Nn,"interactions:action-move":Nn,"interactions:action-end":Nn,"interactions:new":function(A){A.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(A){if(!(A.interaction.pointers.length<2)){var t=A.interactable.options.gesture;if(t&&t.enabled)return A.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},rs=Ze;ze.default=rs;var yt={};function Zr(A,t,i,s,c,f,g){if(!t)return!1;if(t===!0){var u=F.default.number(f.width)?f.width:f.right-f.left,B=F.default.number(f.height)?f.height:f.bottom-f.top;if(g=Math.min(g,Math.abs((A==="left"||A==="right"?u:B)/2)),u<0&&(A==="left"?A="right":A==="right"&&(A="left")),B<0&&(A==="top"?A="bottom":A==="bottom"&&(A="top")),A==="left"){var Q=u>=0?f.left:f.right;return i.x=0?f.top:f.bottom;return i.y(u>=0?f.right:f.left)-g;if(A==="bottom")return i.y>(B>=0?f.bottom:f.top)-g}return!!F.default.element(s)&&(F.default.element(t)?t===s:W.matchesUpTo(s,t,c))}function qr(A){var t=A.iEvent,i=A.interaction;if(i.prepared.name==="resize"&&i.resizeAxes){var s=t;i.interactable.options.resize.square?(i.resizeAxes==="y"?s.delta.x=s.delta.y:s.delta.y=s.delta.x,s.axes="xy"):(s.axes=i.resizeAxes,i.resizeAxes==="x"?s.delta.y=0:i.resizeAxes==="y"&&(s.delta.x=0))}}Object.defineProperty(yt,"__esModule",{value:!0}),yt.default=void 0;var Le={id:"actions/resize",before:["actions/drag"],install:function(A){var t=A.actions,i=A.browser,s=A.Interactable,c=A.defaults;Le.cursors=function(f){return f.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(i),Le.defaultMargin=i.supportsTouch||i.supportsPointerEvent?20:10,s.prototype.resizable=function(f){return function(g,u,B){return F.default.object(u)?(g.options.resize.enabled=u.enabled!==!1,g.setPerAction("resize",u),g.setOnEvents("resize",u),F.default.string(u.axis)&&/^x$|^y$|^xy$/.test(u.axis)?g.options.resize.axis=u.axis:u.axis===null&&(g.options.resize.axis=B.defaults.actions.resize.axis),F.default.bool(u.preserveAspectRatio)?g.options.resize.preserveAspectRatio=u.preserveAspectRatio:F.default.bool(u.square)&&(g.options.resize.square=u.square),g):F.default.bool(u)?(g.options.resize.enabled=u,g):g.options.resize}(this,f,A)},t.map.resize=Le,t.methodDict.resize="resizable",c.actions.resize=Le.defaults},listeners:{"interactions:new":function(A){A.interaction.resizeAxes="xy"},"interactions:action-start":function(A){(function(t){var i=t.iEvent,s=t.interaction;if(s.prepared.name==="resize"&&s.prepared.edges){var c=i,f=s.rect;s._rects={start:(0,eA.default)({},f),corrected:(0,eA.default)({},f),previous:(0,eA.default)({},f),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},c.edges=s.prepared.edges,c.rect=s._rects.corrected,c.deltaRect=s._rects.delta}})(A),qr(A)},"interactions:action-move":function(A){(function(t){var i=t.iEvent,s=t.interaction;if(s.prepared.name==="resize"&&s.prepared.edges){var c=i,f=s.interactable.options.resize.invert,g=f==="reposition"||f==="negate",u=s.rect,B=s._rects,Q=B.start,m=B.corrected,C=B.delta,S=B.previous;if((0,eA.default)(S,m),g){if((0,eA.default)(m,u),f==="reposition"){if(m.top>m.bottom){var T=m.top;m.top=m.bottom,m.bottom=T}if(m.left>m.right){var H=m.left;m.left=m.right,m.right=H}}}else m.top=Math.min(u.top,Q.bottom),m.bottom=Math.max(u.bottom,Q.top),m.left=Math.min(u.left,Q.right),m.right=Math.max(u.right,Q.left);for(var M in m.width=m.right-m.left,m.height=m.bottom-m.top,m)C[M]=m[M]-S[M];c.edges=s.prepared.edges,c.rect=m,c.deltaRect=C}})(A),qr(A)},"interactions:action-end":function(A){var t=A.iEvent,i=A.interaction;if(i.prepared.name==="resize"&&i.prepared.edges){var s=t;s.edges=i.prepared.edges,s.rect=i._rects.corrected,s.deltaRect=i._rects.delta}},"auto-start:check":function(A){var t=A.interaction,i=A.interactable,s=A.element,c=A.rect,f=A.buttons;if(c){var g=(0,eA.default)({},t.coords.cur.page),u=i.options.resize;if(u&&u.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(f&u.mouseButtons)!=0)){if(F.default.object(u.edges)){var B={left:!1,right:!1,top:!1,bottom:!1};for(var Q in B)B[Q]=Zr(Q,u.edges[Q],g,t._latestPointer.eventTarget,s,c,u.margin||Le.defaultMargin);B.left=B.left&&!B.right,B.top=B.top&&!B.bottom,(B.left||B.right||B.top||B.bottom)&&(A.action={name:"resize",edges:B})}else{var m=u.axis!=="y"&&g.x>c.right-Le.defaultMargin,C=u.axis!=="x"&&g.y>c.bottom-Le.defaultMargin;(m||C)&&(A.action={name:"resize",axes:(m?"x":"")+(C?"y":"")})}return!A.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(A){var t=A.edges,i=A.axis,s=A.name,c=Le.cursors,f=null;if(i)f=c[s+i];else if(t){for(var g="",u=["top","bottom","left","right"],B=0;B=1){var Q={x:cA.x*B,y:cA.y*B};if(Q.x||Q.y){var m=pt(f);F.default.window(f)?f.scrollBy(Q.x,Q.y):f&&(f.scrollLeft+=Q.x,f.scrollTop+=Q.y);var C=pt(f),S={x:C.x-m.x,y:C.y-m.y};(S.x||S.y)&&t.fire({type:"autoscroll",target:i,interactable:t,delta:S,interaction:A,container:f})}cA.prevTime=g}cA.isScrolling&&(we.default.cancel(cA.i),cA.i=we.default.request(cA.scroll))},check:function(A,t){var i;return(i=A.options[t].autoScroll)==null?void 0:i.enabled},onInteractionMove:function(A){var t=A.interaction,i=A.pointer;if(t.interacting()&&cA.check(t.interactable,t.prepared.name))if(t.simulation)cA.x=cA.y=0;else{var s,c,f,g,u=t.interactable,B=t.element,Q=t.prepared.name,m=u.options[Q].autoScroll,C=dA(m.container,u,B);if(F.default.window(C))g=i.clientXC.innerWidth-cA.margin,f=i.clientY>C.innerHeight-cA.margin;else{var S=W.getElementClientRect(C);g=i.clientXS.right-cA.margin,f=i.clientY>S.bottom-cA.margin}cA.x=c?1:g?-1:0,cA.y=f?1:s?-1:0,cA.isScrolling||(cA.margin=m.margin,cA.speed=m.speed,cA.start(t))}}};function dA(A,t,i){return(F.default.string(A)?(0,bA.getStringOptionResult)(A,t,i):A)||(0,p.getWindow)(i)}function pt(A){return F.default.window(A)&&(A=window.document.body),{x:A.scrollLeft,y:A.scrollTop}}var Xn={id:"auto-scroll",install:function(A){var t=A.defaults,i=A.actions;A.autoScroll=cA,cA.now=function(){return A.now()},i.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=cA.defaults},listeners:{"interactions:new":function(A){A.interaction.autoScroll=null},"interactions:destroy":function(A){A.interaction.autoScroll=null,cA.stop(),cA.interaction&&(cA.interaction=null)},"interactions:stop":cA.stop,"interactions:action-move":function(A){return cA.onInteractionMove(A)}}},$e=Xn;dt.default=$e;var fe={};Object.defineProperty(fe,"__esModule",{value:!0}),fe.copyAction=function(A,t){return A.name=t.name,A.axis=t.axis,A.edges=t.edges,A},fe.sign=void 0,fe.warnOnce=function(A,t){var i=!1;return function(){return i||(p.window.console.warn(t),i=!0),A.apply(this,arguments)}},fe.sign=function(A){return A>=0?1:-1};var Cr={};function Ro(A){return F.default.bool(A)?(this.options.styleCursor=A,this):A===null?(delete this.options.styleCursor,this):this.options.styleCursor}function os(A){return F.default.func(A)?(this.options.actionChecker=A,this):A===null?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0;var _o={id:"auto-start/interactableMethods",install:function(A){var t=A.Interactable;t.prototype.getAction=function(i,s,c,f){var g=function(u,B,Q,m,C){var S=u.getRect(m),T={action:null,interactable:u,interaction:Q,element:m,rect:S,buttons:B.buttons||{0:1,1:4,3:8,4:16}[B.button]};return C.fire("auto-start:check",T),T.action}(this,s,c,f,A);return this.options.actionChecker?this.options.actionChecker(i,s,g,this,f,c):g},t.prototype.ignoreFrom=(0,fe.warnOnce)(function(i){return this._backCompatOption("ignoreFrom",i)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,fe.warnOnce)(function(i){return this._backCompatOption("allowFrom",i)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=os,t.prototype.styleCursor=Ro}};Cr.default=_o;var qt={};function Po(A,t,i,s,c){return t.testIgnoreAllow(t.options[A.name],i,s)&&t.options[A.name].enabled&&$r(t,i,A,c)?A:null}function Wn(A,t,i,s,c,f,g){for(var u=0,B=s.length;u=u||S.interactable===A&&((Q+=T===i.name?1:0)>=f||S.element===t&&(m++,T===i.name&&m>=g))))return!1}return u>0}function Go(A,t){return F.default.number(A)?(t.autoStart.maxInteractions=A,this):t.autoStart.maxInteractions}function Yn(A,t,i){var s=i.autoStart.cursorElement;s&&s!==A&&(s.style.cursor=""),A.ownerDocument.documentElement.style.cursor=t,A.style.cursor=t,i.autoStart.cursorElement=t?A:null}function ko(A,t){var i=A.interactable,s=A.element,c=A.prepared;if(A.pointerType==="mouse"&&i&&i.options.styleCursor){var f="";if(c.name){var g=i.options[c.name].cursorChecker;f=F.default.func(g)?g(c,i,s,A._interacting):t.actions.map[c.name].getCursor(c)}Yn(A.element,f||"",t)}else t.autoStart.cursorElement&&Yn(t.autoStart.cursorElement,"",t)}Object.defineProperty(qt,"__esModule",{value:!0}),qt.default=void 0;var is={id:"auto-start/base",before:["actions"],install:function(A){var t=A.interactStatic,i=A.defaults;A.usePlugin(Cr.default),i.base.actionChecker=null,i.base.styleCursor=!0,(0,eA.default)(i.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(s){return Go(s,A)},A.autoStart={maxInteractions:1/0,withinInteractionLimit:$r,cursorElement:null}},listeners:{"interactions:down":function(A,t){var i=A.interaction,s=A.pointer,c=A.event,f=A.eventTarget;i.interacting()||No(i,Jn(i,s,c,f,t),t)},"interactions:move":function(A,t){(function(i,s){var c=i.interaction,f=i.pointer,g=i.event,u=i.eventTarget;c.pointerType!=="mouse"||c.pointerIsDown||c.interacting()||No(c,Jn(c,f,g,u,s),s)})(A,t),function(i,s){var c=i.interaction;if(c.pointerIsDown&&!c.interacting()&&c.pointerWasMoved&&c.prepared.name){s.fire("autoStart:before-start",i);var f=c.interactable,g=c.prepared.name;g&&f&&(f.options[g].manualStart||!$r(f,c.element,c.prepared,s)?c.stop():(c.start(c.prepared,f,c.element),ko(c,s)))}}(A,t)},"interactions:stop":function(A,t){var i=A.interaction,s=i.interactable;s&&s.options.styleCursor&&Yn(i.element,"",t)}},maxInteractions:Go,withinInteractionLimit:$r,validateAction:Po},Ur=is;qt.default=Ur;var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.default=void 0;var An={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(A,t){var i=A.interaction,s=A.eventTarget,c=A.dx,f=A.dy;if(i.prepared.name==="drag"){var g=Math.abs(c),u=Math.abs(f),B=i.interactable.options.drag,Q=B.startAxis,m=g>u?"x":g0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},i))},"interactions:move":function(A){var t=A.interaction,i=A.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!i&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(A){var t=A.interaction;Et(t)>0&&(t.prepared.name=null)}},getHoldDuration:Et},as=ss;yr.default=as;var bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.default=void 0;var Er={id:"auto-start",install:function(A){A.usePlugin(qt.default),A.usePlugin(yr.default),A.usePlugin(Fr.default)}};bt.default=Er;var $t={};function cs(A){return/^(always|never|auto)$/.test(A)?(this.options.preventDefault=A,this):F.default.bool(A)?(this.options.preventDefault=A?"always":"never",this):this.options.preventDefault}function ls(A){var t=A.interaction,i=A.event;t.interactable&&t.interactable.checkAndPreventDefault(i)}function br(A){var t=A.Interactable;t.prototype.preventDefault=cs,t.prototype.checkAndPreventDefault=function(i){return function(s,c,f){var g=s.options.preventDefault;if(g!=="never")if(g!=="always"){if(c.events.supportsPassive&&/^touch(start|move)$/.test(f.type)){var u=(0,p.getWindow)(f.target).document,B=c.getDocOptions(u);if(!B||!B.events||B.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(f.type)||F.default.element(f.target)&&(0,W.matchesSelector)(f.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||f.preventDefault()}else f.preventDefault()}(this,A,i)},A.interactions.docEvents.push({type:"dragstart",listener:function(i){for(var s=0;sA.length)&&(t=A.length);for(var i=0,s=Array(t);i150)return null;var B=180*Math.atan2(u.prevEvent.velocityY,u.prevEvent.velocityX)/Math.PI;B<0&&(B+=360);var Q=112.5<=B&&B<247.5,m=202.5<=B&&B<337.5;return{up:m,down:!m&&22.5<=B&&B<157.5,left:Q,right:!Q&&(292.5<=B||B<67.5),angle:B,speed:u.prevEvent.speed,velocity:{x:u.prevEvent.velocityX,y:u.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}])&&ds(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),g}(O.BaseEvent);Te.InteractEvent=Yo,Object.defineProperties(Yo.prototype,{pageX:{get:function(){return this.page.x},set:function(A){this.page.x=A}},pageY:{get:function(){return this.page.y},set:function(A){this.page.y=A}},clientX:{get:function(){return this.client.x},set:function(A){this.client.x=A}},clientY:{get:function(){return this.client.y},set:function(A){this.client.y=A}},dx:{get:function(){return this.delta.x},set:function(A){this.delta.x=A}},dy:{get:function(){return this.delta.y},set:function(A){this.delta.y=A}},velocityX:{get:function(){return this.velocity.x},set:function(A){this.velocity.x=A}},velocityY:{get:function(){return this.velocity.y},set:function(A){this.velocity.y=A}}});var Sr={};function jo(A,t){for(var i=0;ithis.pointerMoveTolerance);var Q=this.getPointerIndex(s),m={pointer:s,pointerIndex:Q,pointerInfo:this.pointers[Q],event:c,type:"move",eventTarget:f,dx:g,dy:u,duplicate:B,interaction:this};B||R.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",m),B||this.simulation||(this.interacting()&&(m.type=null,this.move(m)),this.pointerWasMoved&&R.copyCoords(this.coords.prev,this.coords.cur))}},{key:"move",value:function(s){s&&s.event||R.setZeroCoords(this.coords.delta),(s=(0,eA.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},s||{})).phase="move",this._doPhase(s)}},{key:"pointerUp",value:function(s,c,f,g){var u=this.getPointerIndex(s);u===-1&&(u=this.updatePointer(s,c,f,!1));var B=/cancel$/i.test(c.type)?"cancel":"up";this._scopeFire("interactions:".concat(B),{pointer:s,pointerIndex:u,pointerInfo:this.pointers[u],event:c,eventTarget:f,type:B,curEventTarget:g,interaction:this}),this.simulation||this.end(c),this.removePointer(s,c)}},{key:"documentBlur",value:function(s){this.end(s),this._scopeFire("interactions:blur",{event:s,type:"blur",interaction:this})}},{key:"end",value:function(s){var c;this._ending=!0,s=s||this._latestPointer.event,this.interacting()&&(c=this._doPhase({event:s,interaction:this,phase:"end"})),this._ending=!1,c===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(s){var c=R.getPointerId(s);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:aA.findIndex(this.pointers,function(f){return f.id===c})}},{key:"getPointerInfo",value:function(s){return this.pointers[this.getPointerIndex(s)]}},{key:"updatePointer",value:function(s,c,f,g){var u=R.getPointerId(s),B=this.getPointerIndex(s),Q=this.pointers[B];return g=g!==!1&&(g||/(down|start)$/i.test(c.type)),Q?Q.pointer=s:(Q=new Sr.PointerInfo(u,s,c,null,null),B=this.pointers.length,this.pointers.push(Q)),R.setCoords(this.coords.cur,this.pointers.map(function(m){return m.pointer}),this._now()),R.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),g&&(this.pointerIsDown=!0,Q.downTime=this.coords.cur.timeStamp,Q.downTarget=f,R.pointerExtend(this.downPointer,s),this.interacting()||(R.copyCoords(this.coords.start,this.coords.cur),R.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=c,this.pointerWasMoved=!1)),this._updateLatestPointer(s,c,f),this._scopeFire("interactions:update-pointer",{pointer:s,event:c,eventTarget:f,down:g,pointerInfo:Q,pointerIndex:B,interaction:this}),B}},{key:"removePointer",value:function(s,c){var f=this.getPointerIndex(s);if(f!==-1){var g=this.pointers[f];this._scopeFire("interactions:remove-pointer",{pointer:s,event:c,eventTarget:null,pointerIndex:f,pointerInfo:g,interaction:this}),this.pointers.splice(f,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(s,c,f){this._latestPointer.pointer=s,this._latestPointer.event=c,this._latestPointer.eventTarget=f}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(s,c,f,g){return new Te.InteractEvent(this,s,this.prepared.name,c,this.element,f,g)}},{key:"_fireEvent",value:function(s){var c;(c=this.interactable)==null||c.fire(s),(!this.prevEvent||s.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=s)}},{key:"_doPhase",value:function(s){var c=s.event,f=s.phase,g=s.preEnd,u=s.type,B=this.rect;if(B&&f==="move"&&(bA.addEdges(this.edges,B,this.coords.delta[this.interactable.options.deltaSource]),B.width=B.right-B.left,B.height=B.bottom-B.top),this._scopeFire("interactions:before-action-".concat(f),s)===!1)return!1;var Q=s.iEvent=this._createPreparedEvent(c,f,g,u);return this._scopeFire("interactions:action-".concat(f),s),f==="start"&&(this.prevEvent=Q),this._fireEvent(Q),this._scopeFire("interactions:after-action-".concat(f),s),!0}},{key:"_now",value:function(){return Date.now()}}],i&&ps(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),A}();ve.Interaction=Zn;var hs=Zn;ve.default=hs;var Ot={};function oe(A){A.pointerIsDown&&(qn(A.coords.cur,A.offset.total),A.offset.pending.x=0,A.offset.pending.y=0)}function qo(A){ht(A.interaction)}function ht(A){if(!function(i){return!(!i.offset.pending.x&&!i.offset.pending.y)}(A))return!1;var t=A.offset.pending;return qn(A.coords.cur,t),qn(A.coords.delta,t),bA.addEdges(A.edges,A.rect,t),t.x=0,t.y=0,!0}function ws(A){var t=A.x,i=A.y;this.offset.pending.x+=t,this.offset.pending.y+=i,this.offset.total.x+=t,this.offset.total.y+=i}function qn(A,t){var i=A.page,s=A.client,c=t.x,f=t.y;i.x+=c,i.y+=f,s.x+=c,s.y+=f}Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.addTotal=oe,Ot.applyPending=ht,Ot.default=void 0,ve._ProxyMethods.offsetBy="";var vs={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(A){A.Interaction.prototype.offsetBy=ws},listeners:{"interactions:new":function(A){A.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(A){return oe(A.interaction)},"interactions:before-action-start":qo,"interactions:before-action-move":qo,"interactions:before-action-end":function(A){var t=A.interaction;if(ht(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(A){var t=A.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Qs=vs;Ot.default=Qs;var At={};function on(A,t){for(var i=0;if.minSpeed&&u>f.endSpeed)this.startInertia();else{if(B.result=B.setAll(this.modifierArg),!B.result.changed)return!1;this.startSmoothEnd()}return c.modification.result.rect=null,c.offsetBy(this.targetOffset),c._doPhase({interaction:c,event:s,phase:"inertiastart"}),c.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),c.modification.result.rect=null,this.active=!0,c.simulation=this,!0}},{key:"startInertia",value:function(){var s=this,c=this.interaction.coords.velocity.client,f=Oe(this.interaction),g=f.resistance,u=-Math.log(f.endSpeed/this.v0)/g;this.targetOffset={x:(c.x-u)/g,y:(c.y-u)/g},this.te=u,this.lambda_v0=g/this.v0,this.one_ve_v0=1-f.endSpeed/this.v0;var B=this.modification,Q=this.modifierArg;Q.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},B.result=B.setAll(Q),B.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+B.result.delta.x,y:this.targetOffset.y+B.result.delta.y}),this.onNextFrame(function(){return s.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var s=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return s.smoothEndTick()})}},{key:"onNextFrame",value:function(s){var c=this;this.timeout=we.default.request(function(){c.active&&s()})}},{key:"inertiaTick",value:function(){var s,c,f,g,u,B=this,Q=this.interaction,m=Oe(Q).resistance,C=(Q._now()-this.t0)/1e3;if(C=0;f--){var g=c[f],u=g.selector,B=g.context,Q=g.listeners;u===this.target&&B===this._context&&c.splice(f,1);for(var m=Q.length-1;m>=0;m--)this._scopeEvents.removeDelegate(this.target,this._context,s,Q[m][0],Q[m][1])}else this._scopeEvents.remove(this.target,"all")}}])&&Fs(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),A}();cn.Interactable=ln;var un={};function ys(A,t){for(var i=0;iA.length)&&(t=A.length);for(var i=0,s=Array(t);i=0;M--){var sA=_[M];if(sA.selector===m&&sA.context===C){for(var fA=sA.listeners,K=fA.length-1;K>=0;K--){var MA=to(fA[K],2),wA=MA[0],IA=MA[1],jA=IA.capture,it=IA.passive;if(wA===T&&jA===X.capture&&it===X.passive){fA.splice(K,1),fA.length||(_.splice(M,1),u(C,S,B),u(C,S,Q,!0)),rA=!0;break}}if(rA)break}}},delegateListener:B,delegateUseCapture:Q,delegatedEvents:s,documents:c,targets:i,supportsOptions:!1,supportsPassive:!1};function g(m,C,S,T){var H=er(T),M=aA.find(i,function(X){return X.eventTarget===m});M||(M={eventTarget:m,events:{}},i.push(M)),M.events[C]||(M.events[C]=[]),m.addEventListener&&!aA.contains(M.events[C],S)&&(m.addEventListener(C,S,f.supportsOptions?H:H.capture),M.events[C].push(S))}function u(m,C,S,T){var H=er(T),M=aA.findIndex(i,function(K){return K.eventTarget===m}),X=i[M];if(X&&X.events)if(C!=="all"){var _=!1,rA=X.events[C];if(rA){if(S==="all"){for(var sA=rA.length-1;sA>=0;sA--)u(m,C,rA[sA],H);return}for(var fA=0;fA=2)continue;if(!c.interacting()&&t===c.pointerType)return c}return null}};function ri(A,t){return A.pointers.some(function(i){return i.id===t})}var ro=UA;tt.default=ro;var Kr={};function wt(A){return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(A)}function De(A,t){return function(i){if(Array.isArray(i))return i}(A)||function(i,s){var c=i==null?null:typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(c!=null){var f,g,u=[],B=!0,Q=!1;try{for(c=c.call(i);!(B=(f=c.next()).done)&&(u.push(f.value),!s||u.length!==s);B=!0);}catch(m){Q=!0,g=m}finally{try{B||c.return==null||c.return()}finally{if(Q)throw g}}return u}}(A,t)||function(i,s){if(i){if(typeof i=="string")return ni(i,s);var c=Object.prototype.toString.call(i).slice(8,-1);return c==="Object"&&i.constructor&&(c=i.constructor.name),c==="Map"||c==="Set"?Array.from(i):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?ni(i,s):void 0}}(A,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ni(A,t){(t==null||t>A.length)&&(t=A.length);for(var i=0,s=Array(t);i=0;s--){var c=t.interactions.list[s];c.interactable===i&&(c.stop(),t.fire("interactions:destroy",{interaction:c}),c.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(s,1))}}},onDocSignal:dn,doOnInteractions:rr,methodNames:Ne},ii=oi;Kr.default=ii;var nr={};function or(A){return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(A)}function ir(){return ir=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(A,t,i){var s=si(A,t);if(s){var c=Object.getOwnPropertyDescriptor(s,t);return c.get?c.get.call(arguments.length<3?A:i):c.value}},ir.apply(this,arguments)}function si(A,t){for(;!Object.prototype.hasOwnProperty.call(A,t)&&(A=Be(A))!==null;);return A}function Qe(A,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},Qe(A,t)}function Qt(A,t){if(t&&(or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}(A)}function Be(A){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Be(A)}function $A(A,t){if(!(A instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(A,t){for(var i=0;iA.length)&&(t=A.length);for(var i=0,s=Array(t);iMath.abs(B.y),u.coords,u.rect),(0,eA.default)(s,u.coords)),u.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function gi(A,t,i){var s=A.startCoords,c=A.edgeSign;t?i.y=s.y+(i.x-s.x)*c.y:i.x=s.x+(i.y-s.y)*c.x}function di(A,t,i,s){var c=A.startRect,f=A.startCoords,g=A.ratio,u=A.edgeSign;if(t){var B=s.width/g;i.y=f.y+(B-c.height)*u.y}else{var Q=s.height*g;i.x=f.x+(Q-c.width)*u.x}}Mt.aspectRatio=co;var Ss=(0,ee.makeModifier)(co,"aspectRatio");Mt.default=Ss;var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.default=void 0;var pi=function(){};pi._defaults={};var xs=pi;Ge.default=xs;var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Object.defineProperty(Rr,"default",{enumerable:!0,get:function(){return Ge.default}});var ge={};function Qn(A,t,i){return F.default.func(A)?bA.resolveRectLike(A,t.interactable,t.element,[i.x,i.y,t]):bA.resolveRectLike(A,t.interactable,t.element)}Object.defineProperty(ge,"__esModule",{value:!0}),ge.default=void 0,ge.getRestrictionRect=Qn,ge.restrict=void 0;var hi={start:function(A){var t=A.rect,i=A.startOffset,s=A.state,c=A.interaction,f=A.pageCoords,g=s.options,u=g.elementRect,B=(0,eA.default)({left:0,top:0,right:0,bottom:0},g.offset||{});if(t&&u){var Q=Qn(g.restriction,c,f);if(Q){var m=Q.right-Q.left-t.width,C=Q.bottom-Q.top-t.height;m<0&&(B.left+=m,B.right+=m),C<0&&(B.top+=C,B.bottom+=C)}B.left+=i.left-t.width*u.left,B.top+=i.top-t.height*u.top,B.right+=i.right-t.width*(1-u.right),B.bottom+=i.bottom-t.height*(1-u.bottom)}s.offset=B},set:function(A){var t=A.coords,i=A.interaction,s=A.state,c=s.options,f=s.offset,g=Qn(c.restriction,i,t);if(g){var u=bA.xywhToTlbr(g);t.x=Math.max(Math.min(u.right-f.right,t.x),u.left+f.left),t.y=Math.max(Math.min(u.bottom-f.bottom,t.y),u.top+f.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};ge.restrict=hi;var Ls=(0,ee.makeModifier)(hi,"restrict");ge.default=Ls;var ke={};Object.defineProperty(ke,"__esModule",{value:!0}),ke.restrictEdges=ke.default=void 0;var wi={top:1/0,left:1/0,bottom:-1/0,right:-1/0},vi={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Rt(A,t){for(var i=["top","left","bottom","right"],s=0;sA.length)&&(t=A.length);for(var i=0,s=Array(t);i{var _B="Expected a function",Yl=0/0,PB="[object Symbol]",NB=/^\s+|\s+$/g,GB=/^[-+]0x[0-9a-f]+$/i,kB=/^0b[01]+$/i,VB=/^0o[0-7]+$/i,XB=parseInt,WB=typeof global=="object"&&global&&global.Object===Object&&global,JB=typeof self=="object"&&self&&self.Object===Object&&self,YB=WB||JB||Function("return this")(),jB=Object.prototype,zB=jB.toString,ZB=Math.max,qB=Math.min,ka=function(){return YB.Date.now()};function $B(h,p,y){var b,x,F,j,k,iA,SA=0,AA=!1,EA=!1,_A=!0;if(typeof h!="function")throw new TypeError(_B);p=jl(p)||0,Va(y)&&(AA=!!y.leading,EA="maxWait"in y,F=EA?ZB(jl(y.maxWait)||0,p):F,_A="trailing"in y?!!y.trailing:_A);function FA(W){var LA=b,JA=x;return b=x=void 0,SA=W,j=h.apply(JA,LA),j}function se(W){return SA=W,k=setTimeout(ce,p),AA?FA(W):j}function vA(W){var LA=W-iA,JA=W-SA,Ue=p-LA;return EA?qB(Ue,F-JA):Ue}function NA(W){var LA=W-iA,JA=W-SA;return iA===void 0||LA>=p||LA<0||EA&&JA>=F}function ce(){var W=ka();if(NA(W))return ut(W);k=setTimeout(ce,vA(W))}function ut(W){return k=void 0,_A&&b?FA(W):(b=x=void 0,j)}function GA(){k!==void 0&&clearTimeout(k),SA=0,b=iA=x=k=void 0}function xA(){return k===void 0?j:ut(ka())}function le(){var W=ka(),LA=NA(W);if(b=arguments,x=this,iA=W,LA){if(k===void 0)return se(iA);if(EA)return k=setTimeout(ce,p),FA(iA)}return k===void 0&&(k=setTimeout(ce,p)),j}return le.cancel=GA,le.flush=xA,le}function Va(h){var p=typeof h;return!!h&&(p=="object"||p=="function")}function Ag(h){return!!h&&typeof h=="object"}function eg(h){return typeof h=="symbol"||Ag(h)&&zB.call(h)==PB}function jl(h){if(typeof h=="number")return h;if(eg(h))return Yl;if(Va(h)){var p=typeof h.valueOf=="function"?h.valueOf():h;h=Va(p)?p+"":p}if(typeof h!="string")return h===0?h:+h;h=h.replace(NB,"");var y=kB.test(h);return y||VB.test(h)?XB(h.slice(2),y?2:8):GB.test(h)?Yl:+h}zl.exports=$B});var Kl=Ha(Wc(),1);function Fo(h,p){try{return JSON.parse(window[h].getItem(p))}catch(y){return $.error("get storage data error",{err:y}),null}}function yo(h,p,y){try{return window[h].setItem(p,JSON.stringify(y)),y}catch(b){return $.error("setup storage error",{err:b}),null}}function ki(h,p,y,b){try{let x=Fo(h,p);if(!x)throw new Error("Can't find initial state");let F={...x,[y]:b};return window[h].setItem(p,JSON.stringify(F)),F}catch(x){return $.error("set storage value error",{err:x}),null}}function Vi(h,p){try{window[h].removeItem(p)}catch(y){$.error("clear storage error",{err:y})}}var Jc="strigo-sdk",Yc="strigo.io",jc=["strigo-exercises"],zc=["orig-iframe"],Xi=` -`,Wt="https://cdn.statically.io/gh/strigo/strigo-sdk";var zc="https://assessment-recorder.web.app",yo="http://local.strigo.io:3000";function Fe(){return Uo("localStorage","strigoConfig")}function $c(h){let p=Fe();return Fo("localStorage","strigoConfig",{...p,...h})}function Al(h){let p=Fe();return Fo("localStorage","strigoConfig",{...p,...h})}function el(h,p){return Gi("localStorage","strigoConfig",h,p)}function gr(h){return Fe()?.[h]}function tl(){ki("localStorage","strigoConfig")}async function rl(h){try{let p=window.Strigo.isDevelopment()?yo:"https://app.strigo.io",y=await fetch(`${p}/api/internal/academy/v1/config?domain=${window.location.hostname}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${h.token}`}});if(!y.ok)throw new Error(`Failed to fetch remote configuration: ${y.statusText}`);return(await y.json()).data}catch(p){return AA.warn("Error fetching configuration from Strigo",{err:p}),null}}async function nl(h,p){try{AA.info("Sending success event to strigo",{eventName:p});let y=window.Strigo.isDevelopment()?yo:"https://app.strigo.io",b=await fetch(`${y}/api/internal/academy/v1/success-event`,{method:"POST",body:JSON.stringify({eventName:p}),headers:{"Content-Type":"application/json",Authorization:`Bearer ${h.token}`}});if(!b.ok)throw new Error(`Failed sending success event to Strigo: ${b.statusText}`);let x=await b.json();AA.info("Success event Response",{successEventResponse:x})}catch(y){return AA.warn("Error sending success event to Strigo",{err:y}),null}}var ol=class{constructor(p){this.url=p?.url}setup(p){this.url=p.url}logToRemote(p,y,b){return fetch(this.url,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({level:p,message:y,context:b})}).then(x=>{x.ok||console.warn("Logging to Strigo failed",{result:x})}).catch(x=>{console.warn("Logging to Strigo failed",{err:x})})}logToConsole(p,y,b){let x=`${new Date().toISOString()} - ${y}`,F=b.err instanceof Error?{...b,err:{message:b.err.message,name:b.err.name,stack:b.err.stack}}:b;console[p](x,b?` -${JSON.stringify(F)}`:"")}getDefaultContext(){let p=Fe();if(!p)return{};let{user:y,subDomain:b,initSite:x,version:F,selectedWidgetFlavor:J}=p;return{token:y?.token.token,initSite:x?.href,subDomain:b,development:window.Strigo.isDevelopment(),version:F,selectedWidgetFlavor:J}}log(p,y,b){let x={...this.getDefaultContext(),...b};try{this.url&&window.Strigo.isDevelopment()&&this.logToRemote(p,y,x),this.logToConsole(p,`Academy - ${y}`,x)}catch(F){console.log("Logging error:",{err:F})}}debug(p,y={}){this.log("debug",p,y)}info(p,y={}){this.log("info",p,y)}warn(p,y={}){this.log("warn",p,y)}error(p,y={}){this.log("error",p,y)}},AA=new ol;function il(h){return Fo("sessionStorage","strigoSession",h)}function Xi(){return Uo("sessionStorage","strigoSession")}function Rn(){return Xi()?Xi().shouldPanelBeOpen:!0}function Eo(){return Xi()?.widgetFlavor}function Wi(h,p){return Gi("sessionStorage","strigoSession",h,p)}function sl(h){return Xi()?.[h]}function al(){ki("sessionStorage","strigoSession")}function bo(){return window.top}function dr(){return document.getElementsByTagName("head")[0]}function cl(){document.open(),document.close()}function ll(){let h=document.createElement("div");return h.className="strigo-main",document.body.appendChild(h),h}function pr(h){let{url:p,parentElement:y}=h,b=document.createElement("link");b.rel="stylesheet",b.href=p,y.appendChild(b)}function Io(h){let{url:p,parentElement:y,classNames:b,id:x}=h,F=document.createElement("iframe");return F.classList.add(...b),F.id=x,F.src=p,y.appendChild(F),F}function ul(){location.reload()}function fl(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function Ji(){return fl()?[window.screen.width,window.screen.width]:[window.screen.width/2,window.screen.width]}function Bl(){return fl()?[0,0]:[window.screen.width*.25,0]}function gl(){let h=new XMLHttpRequest;h.open("GET",window.document.location.href,!1),h.send(null);let y=h.getAllResponseHeaders().toLowerCase().split(`\r -`);for(let b of y)if(b.includes("x-frame-options")){let x=b.split(":");if(x&&x.length>1)return x[1].trim()!=="deny"}return!0}function dl(){let h=document.getElementById("strigo-widget"),p=document.getElementById("strigo-collapse-div"),y=document.getElementById("strigo-academy-hat");h.classList.toggle("align-left"),p.classList.toggle("align-left"),y.classList.toggle("align-left");let b=h.classList.contains("align-left")?"left":"right",x=document.getElementById("strigo-exercises");el("dockingSide",b),x.contentWindow.postMessage({dockingSide:b},"*")}function pl(h){h.document.getElementById("strigo-widget").remove()}function Yi(){let h=document.getElementById("strigo-widget");h.classList.add("slide-in"),h.classList.add("loaded"),document.getElementById("strigo-collapse-div").classList.remove("slide-in"),document.getElementById("strigo-academy-hat").classList.remove("slide-in")}function hl(){let h=document.getElementById("strigo-widget");h.classList.remove("slide-in"),h.classList.remove("loaded"),document.getElementById("strigo-collapse-div").classList.add("slide-in"),document.getElementById("strigo-academy-hat").classList.add("slide-in")}var FB=function(h){if(h.filter(y=>["HTML","BODY"].includes(y.target.nodeName)).length>0){if(window.document.getElementById("strigo-widget")){console.log("*** Strigo widget already exist on the DOM.");return}console.log("*** Reloading widget in navigation observer"),setTimeout(window.Strigo.open.bind(window.Strigo),0)}};function Ta(){let p=!Rn();Wi("shouldPanelBeOpen",p),p?Yi():hl()}function wl(h){let p=Rn(),y=gr("dockingSide"),b=document.createElement("div");b.className="strigo-academy-hat",b.id="strigo-academy-hat",b.onclick=()=>{Ta()};let x=document.createElement("div");x.className="strigo-academy-hat-icon",x.id="strigo-academy-hat-icon",x.innerHTML=Vi,b.appendChild(x);let F=document.createElement("div");F.className="strigo-collapse-div",F.id="strigo-collapse-div";let J=document.createElement("iframe");J.className="strigo-iframe",J.id="strigo-exercises",J.src=h;let V=document.createElement("div");return V.id="strigo-widget",V.appendChild(F),V.appendChild(J),y==="left"&&(V.classList.add("align-left"),F.classList.add("align-left"),b.classList.add("align-left")),document.body.appendChild(V),document.body.appendChild(b),p?Yi():hl(),J}function vl(h){h.strigoNavigationObserver={observer:new MutationObserver(FB)};let p={childList:!0,subtree:!0};h?.strigoNavigationObserver?.observer?.observe(h.document,p)}function Oa(){var h;(function(D){D[D.All=0]="All",D[D.Two=1]="Two",D[D.One=2]="One"})(h||(h={}));let p,y;function b(D,Y){if(D.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(D.tagName.toLowerCase()==="html")return"html";let N={root:document.body,idName:R=>!0,className:R=>!0,tagName:R=>!0,attr:(R,OA)=>!1,seedMinLength:1,buildNodesInfoUpToRoot:!1,threshold:1e3,maxNumberOfTries:2e3};return p=Object.assign(Object.assign({},N),Y),y=sA(p.root,N),HA(D)}function x(D,Y){let N={root:document.body,idName:OA=>!0,className:OA=>!0,tagName:OA=>!0,attr:(OA,gA)=>!1,optimizedMinLength:6,threshold:1e3,maxNumberOfTries:2e3,fallbackNodesInfo:D,permutationsThreshold:5e4};p=Object.assign(Object.assign({},N),Y),y=sA(p.root,N);let R=(()=>$(D,h.All,()=>$(D,h.Two,()=>$(D,h.One,()=>$(p.fallbackNodesInfo,h.All,()=>$(p.fallbackNodesInfo,h.Two,()=>$(p.fallbackNodesInfo,h.One)))))))();if(R){let OA=xA(R),gA=y.querySelector(OA),CA=Ye(ft(R,gA));return CA.length>0&&(R=CA[0]),xA(R)}else throw console.log("*** Selector was not found."),new Error("Selector was not found.")}function F(D,Y){let N=TA(D.find(kA=>kA.identifier==="id")),BA=TA(...D.filter(kA=>kA.identifier==="attribute")),R=TA(...D.filter(kA=>kA.identifier==="className")),OA=TA(...D.filter(kA=>kA.identifier==="tagName")),gA=D.find(kA=>kA.identifier==="index").index,CA=N||BA||R||OA||[GA()];if(Y===h.All)gA&&(CA=CA.concat(CA.filter(W).map(kA=>le(kA,gA))));else if(Y===h.Two)CA=CA.slice(0,1),gA&&(CA=CA.concat(CA.filter(W).map(kA=>le(kA,gA))));else if(Y===h.One){let[kA]=CA=CA.slice(0,1);gA&&W(kA)&&(CA=[le(kA,gA)])}return CA}function J(D){let Y=1;return D.forEach(N=>{Y=Y*N.length}),Y}function V(D,Y){let N=D.map(({nodeIdentifiers:R,level:OA})=>{let gA=F(R,Y);for(let CA of gA)CA.level=OA;return gA});return J(N)>p.permutationsThreshold?null:N}function sA(D,Y){return D.nodeType===Node.DOCUMENT_NODE?D:D===Y.root?D.ownerDocument:D}function HA(D){let Y=[],N=D,BA=0;for(;N&&N!==p.root.parentElement;){let R=[TA(vA(N)),TA(ut(N)),TA(...NA(N)),TA(...ce(N)),TA(LA(N))].filter(JA).flat().sort((OA,gA)=>OA.penalty-gA.penalty);if(Y.push({nodeIdentifiers:R,level:BA}),!p.buildNodesInfoUpToRoot&&Y.length>=p.seedMinLength&&$(Y,h.All,()=>$(Y,h.Two,()=>$(Y,h.One,()=>$(p.fallbackNodesInfo,h.All,()=>$(p.fallbackNodesInfo,h.Two,()=>$(p.fallbackNodesInfo,h.One))))))())break;N=N.parentElement,BA++}return Y}function $(D,Y,N){let BA=V(D,Y);return BA?QA(BA,N):N?N():null}function QA(D,Y){let N=Ye(Ue(D));if(N.length>p.threshold)return Y?Y():null;for(let BA of N){let R=!1;try{R=se(BA)}catch{continue}if(R||p.allowDuplicates)return BA}return console.log("*** Did not found a unique path. returning null."),Y?Y():null}function xA(D){let Y=D[0],N=Y.name;for(let BA=1;BA ${N}`:N=`${D[BA].name} ${N}`,Y=D[BA]}return N}function mA(D){return D.map(Y=>Y.penalty).reduce((Y,N)=>Y+N,0)}function se(D){switch(y.querySelectorAll(xA(D)).length){case 0:throw new Error(`Can't select any node with this selector: ${xA(D)}`);case 1:return!0;default:return!1}}function vA(D){D?.getAttribute||alert(JSON.stringify(D));let Y=D.getAttribute("id");return Y&&p.idName(Y)?{name:"#"+ue(Y,{isIdentifier:!0}),penalty:0,identifier:"id"}:null}function NA(D){return Array.from(D.attributes).filter(N=>p.attr(N.name,N.value)).map(N=>({name:"["+ue(N.name,{isIdentifier:!0})+'="'+ue(N.value)+'"]',penalty:.5,identifier:"attribute"}))}function ce(D){return Array.from(D.classList).filter(p.className).map(N=>({name:"."+ue(N,{isIdentifier:!0}),penalty:1,identifier:"className"}))}function ut(D){let Y=D.tagName.toLowerCase();return p.tagName(Y)?{name:Y,penalty:2,identifier:"tagName"}:null}function GA(){return{name:"*",penalty:3,identifier:"any"}}function LA(D){let Y=D.parentNode;if(!Y)return null;let N=Y.firstChild;if(!N)return null;let BA=0;for(;N&&(N.nodeType===Node.ELEMENT_NODE&&BA++,N!==D);)N=N.nextSibling;return{index:BA,outOf:Y.childElementCount,penalty:4,identifier:"index"}}function le(D,Y){return{name:D.name+`:nth-child(${Y})`,penalty:D.penalty+1}}function W(D){return D.name!=="html"&&!D.name.startsWith("#")&&!p.allowDuplicates}function TA(...D){let Y=D.filter(JA);return Y.length>0?Y:null}function JA(D){return D!=null}function*Ue(D,Y=[]){if(D.length>0)for(let N of D[0])yield*Ue(D.slice(1,D.length),Y.concat(N));else yield Y}function Ye(D){return Array.from(D).sort((Y,N)=>mA(Y)-mA(N))}function*ft(D,Y,N={counter:0,visited:new Map}){if(D.length>2&&D.length>p.optimizedMinLength)for(let BA=1;BAp.maxNumberOfTries){console.log(`*** Selector optimization exhausted. Exceeded max number of tries - ${p.maxNumberOfTries}`);return}N.counter+=1;let R=[...D];R.splice(BA,1);let OA=xA(R);if(N.visited.has(OA))return;se(R)&&Yt(R,Y)&&(yield R,N.visited.set(OA,!0),yield*ft(R,Y,N))}}function Yt(D,Y){return y.querySelector(xA(D))===Y}let eA=/[ -,\.\/:-@\[-\^`\{-~]/,bA=/[ -,\.\/:-@\[\]\^`\{-~]/,Re=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ft={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function ue(D,Y={}){let N=Object.assign(Object.assign({},Ft),Y);N.quotes!="single"&&N.quotes!="double"&&(N.quotes="single");let BA=N.quotes=="double"?'"':"'",R=N.isIdentifier,OA=D.charAt(0),gA="",CA=0,kA=D.length;for(;CA126){if(G>=55296&&G<=56319&&CAF===p},x=y.getElementProfileNodesInfo(h.target,b);return console.log("*** Just FYI - this is how it can generate css selector:",y.generateSelectorFromNodesInfo(x,b)),x}function Ho(h,p){let y=Oa(),x={...{allowDuplicates:!1,optimizedMinLength:10,threshold:1e3,attr:J=>J===dataAttribute,fallbackNodesInfo:h},...p};return y.generateSelectorFromNodesInfo(h,x)}function ml(h,p){this.saveSelectedSelector=x=>{x.preventDefault(),x.stopPropagation(),console.log("Removing mouse over event listener from the selected element."),h.removeEventListener("mouseover",this.mouseOverEvent);let F=yB(x,{dataAttribute:"some-custom-strigo-attribute"});this.elementProfile=F||{};let J=h.getElementById("element-selector-overlay");J||console.error("Missing selector overlay element!"),h?.body?.removeChild(J),console.log("Selected element with elementProfile:",this.elementProfile),p.onElementProfileCreated(this.elementProfile)};function y(x,F){for(let J in F)x.style[J]=F[J]}this.move=(x,F,J=[])=>{if(F===x.target)return;let V=x.target;if(J.includes(V.id))return;let sA=V.offsetWidth+2,HA=V.offsetHeight+2;function $(mA){let se=0,vA=0;for(;mA&&!isNaN(mA.offsetLeft)&&!isNaN(mA.offsetTop);)se+=mA.offsetLeft-mA.scrollLeft,vA+=mA.offsetTop-mA.scrollTop,mA=mA.offsetParent;return{top:vA-window.scrollY,left:se-window.scrollX}}let QA=$(V),xA={top:QA.top-2+"px",left:QA.left-2+"px",width:sA+"px",height:HA+"px"};y(F,xA)},this.mouseOverEvent=x=>{let F=h.getElementById("element-selector-overlay");this.move(x,F,["element-selector-overlay","strigo-assessment-recorder-iframe"]),x.target.addEventListener("click",this.saveSelectedSelector)},this.removeClickListenerFromHoveredElement=x=>{x.target.removeEventListener("click",this.saveSelectedSelector)};let b=h.createElement("div");b.setAttribute("id","element-selector-overlay"),b.setAttribute("id","element-selector-overlay"),b.setAttribute("style",` +`,Wt="https://cdn.statically.io/gh/strigo/strigo-sdk";var Zc="https://assessment-recorder.web.app",Eo="http://local.strigo.io:3000";function Fe(){return Fo("localStorage","strigoConfig")}function Al(h){let p=Fe();return yo("localStorage","strigoConfig",{...p,...h})}function el(h){let p=Fe();return yo("localStorage","strigoConfig",{...p,...h})}function tl(h,p){return ki("localStorage","strigoConfig",h,p)}function gr(h){return Fe()?.[h]}function rl(){Vi("localStorage","strigoConfig")}async function nl(h){try{let p=window.Strigo.isDevelopment()?Eo:"https://app.strigo.io",y=await fetch(`${p}/api/internal/academy/v1/config?domain=${window.location.hostname}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${h.token}`}});if(!y.ok)throw new Error(`Failed to fetch remote configuration: ${y.statusText}`);return(await y.json()).data}catch(p){return $.warn("Error fetching configuration from Strigo",{err:p}),null}}async function ol(h,p){try{$.info("Sending success event to strigo",{eventName:p});let y=window.Strigo.isDevelopment()?Eo:"https://app.strigo.io",b=await fetch(`${y}/api/internal/academy/v1/success-event`,{method:"POST",body:JSON.stringify({eventName:p}),headers:{"Content-Type":"application/json",Authorization:`Bearer ${h.token}`}});if(!b.ok)throw new Error(`Failed sending success event to Strigo: ${b.statusText}`);let x=await b.json();$.info("Success event Response",{successEventResponse:x})}catch(y){return $.warn("Error sending success event to Strigo",{err:y}),null}}var il=class{constructor(p){this.url=p?.url}setup(p){this.url=p.url}logToRemote(p,y,b){return fetch(this.url,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({level:p,message:y,context:b})}).then(x=>{x.ok||console.warn("Logging to Strigo failed",{result:x})}).catch(x=>{console.warn("Logging to Strigo failed",{err:x})})}logToConsole(p,y,b){let x=`${new Date().toISOString()} - ${y}`,F=b.err instanceof Error?{...b,err:{message:b.err.message,name:b.err.name,stack:b.err.stack}}:b;console[p](x,b?` +${JSON.stringify(F)}`:"")}getDefaultContext(){let p=Fe();if(!p)return{};let{user:y,subDomain:b,initSite:x,version:F,selectedWidgetFlavor:j}=p;return{token:y?.token.token,initSite:x?.href,subDomain:b,development:window.Strigo.isDevelopment(),version:F,selectedWidgetFlavor:j}}log(p,y,b){let x={...this.getDefaultContext(),...b};try{this.url&&window.Strigo.isDevelopment()&&this.logToRemote(p,y,x),this.logToConsole(p,`Academy - ${y}`,x)}catch(F){console.log("Logging error:",{err:F})}}debug(p,y={}){this.log("debug",p,y)}info(p,y={}){this.log("info",p,y)}warn(p,y={}){this.log("warn",p,y)}error(p,y={}){this.log("error",p,y)}},$=new il;function sl(h){return yo("sessionStorage","strigoSession",h)}function Wi(){return Fo("sessionStorage","strigoSession")}function Rn(){return Wi()?Wi().shouldPanelBeOpen:!0}function bo(){return Wi()?.widgetFlavor}function Ji(h,p){return ki("sessionStorage","strigoSession",h,p)}function al(h){return Wi()?.[h]}function cl(){Vi("sessionStorage","strigoSession")}function Io(){return window.top}function dr(){return document.getElementsByTagName("head")[0]}function ll(){document.open(),document.close()}function ul(){let h=document.createElement("div");return h.className="strigo-main",document.body.appendChild(h),h}function pr(h){let{url:p,parentElement:y}=h,b=document.createElement("link");b.rel="stylesheet",b.href=p,y.appendChild(b)}function Ho(h){let{url:p,parentElement:y,classNames:b,id:x}=h,F=document.createElement("iframe");return F.classList.add(...b),F.id=x,F.src=p,y.appendChild(F),F}function fl(){location.reload()}function Bl(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function Yi(){return Bl()?[window.screen.width,window.screen.width]:[window.screen.width/2,window.screen.width]}function gl(){return Bl()?[0,0]:[window.screen.width*.25,0]}function dl(){let h=new XMLHttpRequest;h.open("GET",window.document.location.href,!1),h.send(null);let y=h.getAllResponseHeaders().toLowerCase().split(`\r +`);for(let b of y)if(b.includes("x-frame-options")){let x=b.split(":");if(x&&x.length>1)return x[1].trim()!=="deny"}return!0}function pl(){let h=document.getElementById("strigo-widget"),p=document.getElementById("strigo-collapse-div"),y=document.getElementById("strigo-academy-hat");h.classList.toggle("align-left"),p.classList.toggle("align-left"),y.classList.toggle("align-left");let b=h.classList.contains("align-left")?"left":"right",x=document.getElementById("strigo-exercises");tl("dockingSide",b),x.contentWindow.postMessage({dockingSide:b},"*")}function hl(h){h.document.getElementById("strigo-widget").remove()}function ji(){let h=document.getElementById("strigo-widget");h.classList.add("slide-in"),h.classList.add("loaded"),document.getElementById("strigo-collapse-div").classList.remove("slide-in"),document.getElementById("strigo-academy-hat").classList.remove("slide-in")}function wl(){let h=document.getElementById("strigo-widget");h.classList.remove("slide-in"),h.classList.remove("loaded"),document.getElementById("strigo-collapse-div").classList.add("slide-in"),document.getElementById("strigo-academy-hat").classList.add("slide-in")}var EB=function(h){if(h.filter(y=>["HTML","BODY"].includes(y.target.nodeName)).length>0){if(window.document.getElementById("strigo-widget")){console.log("*** Strigo widget already exist on the DOM.");return}console.log("*** Reloading widget in navigation observer"),setTimeout(window.Strigo.open.bind(window.Strigo),0)}};function Ta(){let p=!Rn();Ji("shouldPanelBeOpen",p),p?ji():wl()}function vl(h){let p=Rn(),y=gr("dockingSide"),b=document.createElement("div");b.className="strigo-academy-hat",b.id="strigo-academy-hat",b.onclick=()=>{Ta()};let x=document.createElement("div");x.className="strigo-academy-hat-icon",x.id="strigo-academy-hat-icon",x.innerHTML=Xi,b.appendChild(x);let F=document.createElement("div");F.className="strigo-collapse-div",F.id="strigo-collapse-div";let j=document.createElement("iframe");j.className="strigo-iframe",j.id="strigo-exercises",j.src=h;let k=document.createElement("div");return k.id="strigo-widget",k.appendChild(F),k.appendChild(j),y==="left"&&(k.classList.add("align-left"),F.classList.add("align-left"),b.classList.add("align-left")),document.body.appendChild(k),document.body.appendChild(b),p?ji():wl(),j}function Ql(h){h.strigoNavigationObserver={observer:new MutationObserver(EB)};let p={childList:!0,subtree:!0};h?.strigoNavigationObserver?.observer?.observe(h.document,p)}function Oa(){var h;(function(D){D[D.All=0]="All",D[D.Two=1]="Two",D[D.One=2]="One"})(h||(h={}));let p,y;function b(D,J){if(D.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(D.tagName.toLowerCase()==="html")return"html";let N={root:document.body,idName:R=>!0,className:R=>!0,tagName:R=>!0,attr:(R,TA)=>!1,seedMinLength:1,buildNodesInfoUpToRoot:!1,threshold:1e3,maxNumberOfTries:2e3};return p=Object.assign(Object.assign({},N),J),y=iA(p.root,N),SA(D)}function x(D,J){let N={root:document.body,idName:TA=>!0,className:TA=>!0,tagName:TA=>!0,attr:(TA,gA)=>!1,optimizedMinLength:6,threshold:1e3,maxNumberOfTries:2e3,fallbackNodesInfo:D,permutationsThreshold:5e4};p=Object.assign(Object.assign({},N),J),y=iA(p.root,N);let R=(()=>AA(D,h.All,()=>AA(D,h.Two,()=>AA(D,h.One,()=>AA(p.fallbackNodesInfo,h.All,()=>AA(p.fallbackNodesInfo,h.Two,()=>AA(p.fallbackNodesInfo,h.One)))))))();if(R){let TA=_A(R),gA=y.querySelector(TA),QA=Ye(ft(R,gA));return QA.length>0&&(R=QA[0]),_A(R)}else throw console.log("*** Selector was not found."),new Error("Selector was not found.")}function F(D,J){let N=LA(D.find(kA=>kA.identifier==="id")),BA=LA(...D.filter(kA=>kA.identifier==="attribute")),R=LA(...D.filter(kA=>kA.identifier==="className")),TA=LA(...D.filter(kA=>kA.identifier==="tagName")),gA=D.find(kA=>kA.identifier==="index").index,QA=N||BA||R||TA||[GA()];if(J===h.All)gA&&(QA=QA.concat(QA.filter(W).map(kA=>le(kA,gA))));else if(J===h.Two)QA=QA.slice(0,1),gA&&(QA=QA.concat(QA.filter(W).map(kA=>le(kA,gA))));else if(J===h.One){let[kA]=QA=QA.slice(0,1);gA&&W(kA)&&(QA=[le(kA,gA)])}return QA}function j(D){let J=1;return D.forEach(N=>{J=J*N.length}),J}function k(D,J){let N=D.map(({nodeIdentifiers:R,level:TA})=>{let gA=F(R,J);for(let QA of gA)QA.level=TA;return gA});return j(N)>p.permutationsThreshold?null:N}function iA(D,J){return D.nodeType===Node.DOCUMENT_NODE?D:D===J.root?D.ownerDocument:D}function SA(D){let J=[],N=D,BA=0;for(;N&&N!==p.root.parentElement;){let R=[LA(vA(N)),LA(ut(N)),LA(...NA(N)),LA(...ce(N)),LA(xA(N))].filter(JA).flat().sort((TA,gA)=>TA.penalty-gA.penalty);if(J.push({nodeIdentifiers:R,level:BA}),!p.buildNodesInfoUpToRoot&&J.length>=p.seedMinLength&&AA(J,h.All,()=>AA(J,h.Two,()=>AA(J,h.One,()=>AA(p.fallbackNodesInfo,h.All,()=>AA(p.fallbackNodesInfo,h.Two,()=>AA(p.fallbackNodesInfo,h.One))))))())break;N=N.parentElement,BA++}return J}function AA(D,J,N){let BA=k(D,J);return BA?EA(BA,N):N?N():null}function EA(D,J){let N=Ye(Ue(D));if(N.length>p.threshold)return J?J():null;for(let BA of N){let R=!1;try{R=se(BA)}catch{continue}if(R||p.allowDuplicates)return BA}return console.log("*** Did not found a unique path. returning null."),J?J():null}function _A(D){let J=D[0],N=J.name;for(let BA=1;BA ${N}`:N=`${D[BA].name} ${N}`,J=D[BA]}return N}function FA(D){return D.map(J=>J.penalty).reduce((J,N)=>J+N,0)}function se(D){switch(y.querySelectorAll(_A(D)).length){case 0:throw new Error(`Can't select any node with this selector: ${_A(D)}`);case 1:return!0;default:return!1}}function vA(D){D?.getAttribute||alert(JSON.stringify(D));let J=D.getAttribute("id");return J&&p.idName(J)?{name:"#"+ue(J,{isIdentifier:!0}),penalty:0,identifier:"id"}:null}function NA(D){return Array.from(D.attributes).filter(N=>p.attr(N.name,N.value)).map(N=>({name:"["+ue(N.name,{isIdentifier:!0})+'="'+ue(N.value)+'"]',penalty:.5,identifier:"attribute"}))}function ce(D){return Array.from(D.classList).filter(p.className).map(N=>({name:"."+ue(N,{isIdentifier:!0}),penalty:1,identifier:"className"}))}function ut(D){let J=D.tagName.toLowerCase();return p.tagName(J)?{name:J,penalty:2,identifier:"tagName"}:null}function GA(){return{name:"*",penalty:3,identifier:"any"}}function xA(D){let J=D.parentNode;if(!J)return null;let N=J.firstChild;if(!N)return null;let BA=0;for(;N&&(N.nodeType===Node.ELEMENT_NODE&&BA++,N!==D);)N=N.nextSibling;return{index:BA,outOf:J.childElementCount,penalty:4,identifier:"index"}}function le(D,J){return{name:D.name+`:nth-child(${J})`,penalty:D.penalty+1}}function W(D){return D.name!=="html"&&!D.name.startsWith("#")&&!p.allowDuplicates}function LA(...D){let J=D.filter(JA);return J.length>0?J:null}function JA(D){return D!=null}function*Ue(D,J=[]){if(D.length>0)for(let N of D[0])yield*Ue(D.slice(1,D.length),J.concat(N));else yield J}function Ye(D){return Array.from(D).sort((J,N)=>FA(J)-FA(N))}function*ft(D,J,N={counter:0,visited:new Map}){if(D.length>2&&D.length>p.optimizedMinLength)for(let BA=1;BAp.maxNumberOfTries){console.log(`*** Selector optimization exhausted. Exceeded max number of tries - ${p.maxNumberOfTries}`);return}N.counter+=1;let R=[...D];R.splice(BA,1);let TA=_A(R);if(N.visited.has(TA))return;se(R)&&Yt(R,J)&&(yield R,N.visited.set(TA,!0),yield*ft(R,J,N))}}function Yt(D,J){return y.querySelector(_A(D))===J}let eA=/[ -,\.\/:-@\[-\^`\{-~]/,bA=/[ -,\.\/:-@\[\]\^`\{-~]/,Re=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Ft={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function ue(D,J={}){let N=Object.assign(Object.assign({},Ft),J);N.quotes!="single"&&N.quotes!="double"&&(N.quotes="single");let BA=N.quotes=="double"?'"':"'",R=N.isIdentifier,TA=D.charAt(0),gA="",QA=0,kA=D.length;for(;QA126){if(G>=55296&&G<=56319&&QAF===p},x=y.getElementProfileNodesInfo(h.target,b);return console.log("*** Just FYI - this is how it can generate css selector:",y.generateSelectorFromNodesInfo(x,b)),x}function So(h,p){let y=Oa(),x={...{allowDuplicates:!1,optimizedMinLength:10,threshold:1e3,attr:j=>j===dataAttribute,fallbackNodesInfo:h},...p};return y.generateSelectorFromNodesInfo(h,x)}function Cl(h,p){this.removeOverlayElement=()=>{console.log("Removing mouse over event listener from the selected element."),h.removeEventListener("mouseover",this.mouseOverEvent);let x=h.getElementById("element-selector-overlay");x||console.error("Missing selector overlay element!"),h?.body?.removeChild(x)},this.saveSelectedSelector=x=>{x.preventDefault(),x.stopPropagation(),this.removeOverlayElement();let F=bB(x,{dataAttribute:"some-custom-strigo-attribute"});this.elementProfile=F||{},console.log("Selected element with elementProfile:",this.elementProfile),p.onElementProfileCreated(this.elementProfile)};function y(x,F){for(let j in F)x.style[j]=F[j]}this.move=(x,F,j=[])=>{if(F===x.target)return;let k=x.target;if(j.includes(k.id))return;let iA=k.offsetWidth+2,SA=k.offsetHeight+2;function AA(FA){let se=0,vA=0;for(;FA&&!isNaN(FA.offsetLeft)&&!isNaN(FA.offsetTop);)se+=FA.offsetLeft-FA.scrollLeft,vA+=FA.offsetTop-FA.scrollTop,FA=FA.offsetParent;return{top:vA-window.scrollY,left:se-window.scrollX}}let EA=AA(k),_A={top:EA.top-2+"px",left:EA.left-2+"px",width:iA+"px",height:SA+"px"};y(F,_A)},this.mouseOverEvent=x=>{let F=h.getElementById("element-selector-overlay");this.move(x,F,["element-selector-overlay","strigo-assessment-recorder-iframe"]),x.target.addEventListener("click",this.saveSelectedSelector)},this.removeClickListenerFromHoveredElement=x=>{x.target.removeEventListener("click",this.saveSelectedSelector)};let b=h.createElement("div");b.setAttribute("id","element-selector-overlay"),b.setAttribute("id","element-selector-overlay"),b.setAttribute("style",` position: fixed; top: 0; left: 0; @@ -26,7 +26,7 @@ ${JSON.stringify(F)}`:"")}getDefaultContext(){let p=Fe();if(!p)return{};let{user border: 2px dashed #696CBF; box-sizing: border-box; border-radius: 4px; - `),console.log("Appending overlay selector element."),h.body.appendChild(b),h.addEventListener("mouseover",this.mouseOverEvent),h.addEventListener("mouseout",this.removeClickListenerFromHoveredElement)}var Da="strigoChildIframe";function EB(h){let p={};for(let[y,b]of h)p[y]=b;return p}function Ul(h){let y=new URLSearchParams(h).entries();return EB(y)}function Fl(){let{host:h,pathname:p,href:y,origin:b,search:x}=window.location;return{host:h,pathName:p,href:y,origin:b,search:x,params:Ul(x)}}function ji(h){let{subDomain:p,user:y,webApiKey:b}=h;return window.Strigo.isDevelopment()?`${yo}/academy/courses?token=${y.token.token}&webApiKey=${b}`:`https://${p}.${Jc}/academy/courses?token=${y.token.token}&webApiKey=${b}`}function yl(h){let p=new URL(h);return p.searchParams.set(Da,"true"),p.toString()}function El(){return window.location.search.includes(Da)}function bl(){let h=new URL(window.location.href),p=new URLSearchParams(h.search);p.delete(Da),h.search=p.toString(),window.history.replaceState(window.history.state,"",h)}function Il(){let h=document.getElementById(Wc);return{webApiKey:h?.getAttribute("data-web-api-key")||"",subDomain:h?.getAttribute("data-subdomain")||"",selectedWidgetFlavor:h?.getAttribute("data-layout-flavor")||"dynamic"}}function Hl(h){return window.Strigo.isDevelopment()?`${SDK_LOCAL_URL}/styles/strigo.css`:h?`${Wt}@${h}/dist/production/styles/strigo.min.css`:`${Wt}@master/dist/production/styles/strigo.min.css`}function Sl(h){return window.Strigo.isDevelopment()?`${SDK_LOCAL_URL}/styles/strigo-widget.css`:h?`${Wt}@${h}/dist/production/styles/strigo-widget.min.css`:`${Wt}@master/dist/production/styles/strigo-widget.min.css`}function zi(h){return window.Strigo.isDevelopment()?`${SDK_LOCAL_URL}/styles/strigo-academy-hat.css`:h?`${Wt}@${h}/dist/production/styles/strigo-academy-hat.min.css`:`${Wt}@master/dist/production/styles/strigo-academy-hat.min.css`}function xl(h){return window.Strigo.isDevelopment()?`${SDK_LOCAL_URL}/styles/strigo-assessment-recorder.css`:h?`${Wt}@${h}/dist/production/styles/strigo-assessment-recorder.min.css`:`${Wt}@master/dist/production/styles/strigo-assessment-recorder.min.css`}function Ll(){return window.Strigo.isDevelopment()?RECORDER_LOCAL_URL:zc}function Tl(){let{search:h}=window.location,p=Ul(h);return"strigoAssessmentRecorder"in p}var Zi="strigoAssessmentUuid";function Dl(){return!!(Tl()||window.sessionStorage.getItem("isStrigoRecordingMode"))}function Kl(){window.sessionStorage.setItem("isStrigoRecordingMode","true");let h=new URL(window.location.href).searchParams.get(Zi);if(window.sessionStorage.setItem(Zi,h),document.getElementById("strigo-assessment-recorder-iframe"))return;let p=Ll();pr({parentElement:dr(),url:xl()});let y=Io({classNames:["strigo-assessment-recorder-iframe","drawer","is-open"],id:"strigo-assessment-recorder-iframe",parentElement:window.document.body,url:p});window.addEventListener("message",b=>{if(!b||!b.data||b.origin!==p)return;let x;try{x=JSON.parse(b.data)}catch{return}let{messageType:F,payload:J}=x;switch(F){case"start-capture":{AA.info("Start capturing message received"),y.classList.remove("is-open"),setTimeout(()=>{y.classList.add("semi-open")},600);let{elementType:V,rootElementSelector:sA}=J?.captureParams;window.Strigo.startElementSelector(HA=>{let $=document.getElementById("strigo-assessment-recorder-iframe"),QA=Ho(HA);$.classList.remove("semi-open"),$.classList.add("is-open"),(0,Ol.default)(document.querySelector(QA),{backgroundColor:"#c6c7e7"}).then(xA=>{let mA={imageData:xA.toDataURL(),profile:HA,querySelector:QA};$.contentWindow.postMessage(JSON.stringify({messageType:"end-capture",payload:{elementType:V,selectedElement:mA},windowName:window.name}),"*")})},sA);break}case"submit-assessment":{let V=window.sessionStorage.getItem(Zi);window.sessionStorage.removeItem("isStrigoRecordingMode"),window.opener.postMessage({assessment:{...J.assessment,url:window.location.href},recorderWindowId:V},"*"),window.close();break}case"cancel-assessment":{window.sessionStorage.removeItem("isStrigoRecordingMode"),window.close();break}default:break}},!1)}function Ma(){try{return JSON.parse(window["localStorage"].getItem("strigoAssessments"))}catch(h){return AA.error("Get assessments storage error",{error:h}),null}}function Ml(){try{let h=Ma();if(h)return AA.debug("Assessments storage already exists"),h;let p={assessments:[]};return window["localStorage"].setItem("strigoAssessments",JSON.stringify(p)),p}catch(h){return AA.error("Init assessments storage error",{error:h}),null}}function Rl(h){try{let p=h?{assessments:[...h]}:{assessments:[]};return window["localStorage"].setItem("strigoAssessments",JSON.stringify(p)),p}catch(p){return AA.error("Assessments storage setup error",{error:p}),null}}function _l(){try{window["localStorage"].removeItem("strigoAssessments")}catch(h){AA.error("Clear assessments storage error",{error:h})}}var Je=typeof window!="undefined"?window:null,_a=Je===null,xo=_a?void 0:Je.document,st="addEventListener",at="removeEventListener",Ra="getBoundingClientRect",So="_a",ct="_b",Jt="_c",qi="horizontal",lt=function(){return!1},HB=_a?"calc":["","-webkit-","-moz-","-o-"].filter(function(h){var p=xo.createElement("div");return p.style.cssText="width:"+h+"calc(9px)",!!p.style.length}).shift()+"calc",Nl=function(h){return typeof h=="string"||h instanceof String},Pl=function(h){if(Nl(h)){var p=xo.querySelector(h);if(!p)throw new Error("Selector "+h+" did not match a DOM element");return p}return h},Ce=function(h,p,y){var b=h[p];return b!==void 0?b:y},$i=function(h,p,y,b){if(p){if(b==="end")return 0;if(b==="center")return h/2}else if(y){if(b==="start")return 0;if(b==="center")return h/2}return h},SB=function(h,p){var y=xo.createElement("div");return y.className="gutter gutter-"+p,y},xB=function(h,p,y){var b={};return Nl(p)?b[h]=p:b[h]=HB+"("+p+"% - "+y+"px)",b},LB=function(h,p){var y;return y={},y[h]=p+"px",y},TB=function(h,p){if(p===void 0&&(p={}),_a)return{};var y=h,b,x,F,J,V,sA;Array.from&&(y=Array.from(y));var HA=Pl(y[0]),$=HA.parentNode,QA=getComputedStyle?getComputedStyle($):null,xA=QA?QA.flexDirection:null,mA=Ce(p,"sizes")||y.map(function(){return 100/y.length}),se=Ce(p,"minSize",100),vA=Array.isArray(se)?se:y.map(function(){return se}),NA=Ce(p,"maxSize",1/0),ce=Array.isArray(NA)?NA:y.map(function(){return NA}),ut=Ce(p,"expandToMin",!1),GA=Ce(p,"gutterSize",10),LA=Ce(p,"gutterAlign","center"),le=Ce(p,"snapOffset",30),W=Array.isArray(le)?le:y.map(function(){return le}),TA=Ce(p,"dragInterval",1),JA=Ce(p,"direction",qi),Ue=Ce(p,"cursor",JA===qi?"col-resize":"row-resize"),Ye=Ce(p,"gutter",SB),ft=Ce(p,"elementStyle",xB),Yt=Ce(p,"gutterStyle",LB);JA===qi?(b="width",x="clientX",F="left",J="right",V="clientWidth"):JA==="vertical"&&(b="height",x="clientY",F="top",J="bottom",V="clientHeight");function eA(G,O,k,oA){var zA=ft(b,O,k,oA);Object.keys(zA).forEach(function(aA){G.style[aA]=zA[aA]})}function bA(G,O,k){var oA=Yt(b,O,k);Object.keys(oA).forEach(function(zA){G.style[zA]=oA[zA]})}function Re(){return sA.map(function(G){return G.size})}function Ft(G){return"touches"in G?G.touches[0][x]:G[x]}function ue(G){var O=sA[this.a],k=sA[this.b],oA=O.size+k.size;O.size=G/this.size*oA,k.size=oA-G/this.size*oA,eA(O.element,O.size,this[ct],O.i),eA(k.element,k.size,this[Jt],k.i)}function D(G){var O,k=sA[this.a],oA=sA[this.b];!this.dragging||(O=Ft(G)-this.start+(this[ct]-this.dragOffset),TA>1&&(O=Math.round(O/TA)*TA),O<=k.minSize+k.snapOffset+this[ct]?O=k.minSize+this[ct]:O>=this.size-(oA.minSize+oA.snapOffset+this[Jt])&&(O=this.size-(oA.minSize+this[Jt])),O>=k.maxSize-k.snapOffset+this[ct]?O=k.maxSize+this[ct]:O<=this.size-(oA.maxSize-oA.snapOffset+this[Jt])&&(O=this.size-(oA.maxSize+this[Jt])),ue.call(this,O),Ce(p,"onDrag",lt)(Re()))}function Y(){var G=sA[this.a].element,O=sA[this.b].element,k=G[Ra](),oA=O[Ra]();this.size=k[b]+oA[b]+this[ct]+this[Jt],this.start=k[F],this.end=k[J]}function N(G){if(!getComputedStyle)return null;var O=getComputedStyle(G);if(!O)return null;var k=G[V];return k===0?null:(JA===qi?k-=parseFloat(O.paddingLeft)+parseFloat(O.paddingRight):k-=parseFloat(O.paddingTop)+parseFloat(O.paddingBottom),k)}function BA(G){var O=N($);if(O===null||vA.reduce(function(aA,ne){return aA+ne},0)>O)return G;var k=0,oA=[],zA=G.map(function(aA,ne){var Se=O*aA/100,YA=$i(GA,ne===0,ne===G.length-1,LA),_e=vA[ne]+YA;return Se<_e?(k+=_e-Se,oA.push(0),_e):(oA.push(Se-_e),Se)});return k===0?G:zA.map(function(aA,ne){var Se=aA;if(k>0&&oA[ne]-k>0){var YA=Math.min(k,oA[ne]-k);k-=YA,Se=aA-YA}return Se/O*100})}function R(){var G=this,O=sA[G.a].element,k=sA[G.b].element;G.dragging&&Ce(p,"onDragEnd",lt)(Re()),G.dragging=!1,Je[at]("mouseup",G.stop),Je[at]("touchend",G.stop),Je[at]("touchcancel",G.stop),Je[at]("mousemove",G.move),Je[at]("touchmove",G.move),G.stop=null,G.move=null,O[at]("selectstart",lt),O[at]("dragstart",lt),k[at]("selectstart",lt),k[at]("dragstart",lt),O.style.userSelect="",O.style.webkitUserSelect="",O.style.MozUserSelect="",O.style.pointerEvents="",k.style.userSelect="",k.style.webkitUserSelect="",k.style.MozUserSelect="",k.style.pointerEvents="",G.gutter.style.cursor="",G.parent.style.cursor="",xo.body.style.cursor=""}function OA(G){if(!("button"in G&&G.button!==0)){var O=this,k=sA[O.a].element,oA=sA[O.b].element;O.dragging||Ce(p,"onDragStart",lt)(Re()),G.preventDefault(),O.dragging=!0,O.move=D.bind(O),O.stop=R.bind(O),Je[st]("mouseup",O.stop),Je[st]("touchend",O.stop),Je[st]("touchcancel",O.stop),Je[st]("mousemove",O.move),Je[st]("touchmove",O.move),k[st]("selectstart",lt),k[st]("dragstart",lt),oA[st]("selectstart",lt),oA[st]("dragstart",lt),k.style.userSelect="none",k.style.webkitUserSelect="none",k.style.MozUserSelect="none",k.style.pointerEvents="none",oA.style.userSelect="none",oA.style.webkitUserSelect="none",oA.style.MozUserSelect="none",oA.style.pointerEvents="none",O.gutter.style.cursor=Ue,O.parent.style.cursor=Ue,xo.body.style.cursor=Ue,Y.call(O),O.dragOffset=Ft(G)-O.end}}mA=BA(mA);var gA=[];sA=y.map(function(G,O){var k={element:Pl(G),size:mA[O],minSize:vA[O],maxSize:ce[O],snapOffset:W[O],i:O},oA;if(O>0&&(oA={a:O-1,b:O,dragging:!1,direction:JA,parent:$},oA[ct]=$i(GA,O-1===0,!1,LA),oA[Jt]=$i(GA,!1,O===y.length-1,LA),xA==="row-reverse"||xA==="column-reverse")){var zA=oA.a;oA.a=oA.b,oA.b=zA}if(O>0){var aA=Ye(O,JA,k.element);bA(aA,GA,O),oA[So]=OA.bind(oA),aA[st]("mousedown",oA[So]),aA[st]("touchstart",oA[So]),$.insertBefore(aA,k.element),oA.gutter=aA}return eA(k.element,k.size,$i(GA,O===0,O===y.length-1,LA),O),O>0&&gA.push(oA),k});function CA(G){var O=G.i===gA.length,k=O?gA[G.i-1]:gA[G.i];Y.call(k);var oA=O?k.size-G.minSize-k[Jt]:G.minSize+k[ct];ue.call(k,oA)}sA.forEach(function(G){var O=G.element[Ra]()[b];O0){var zA=gA[oA-1],aA=sA[zA.a],ne=sA[zA.b];aA.size=O[oA-1],ne.size=k,eA(aA.element,aA.size,zA[ct],aA.i),eA(ne.element,ne.size,zA[Jt],ne.i)}})}function XA(G,O){gA.forEach(function(k){if(O!==!0?k.parent.removeChild(k.gutter):(k.gutter[at]("mousedown",k[So]),k.gutter[at]("touchstart",k[So])),G!==!0){var oA=ft(b,k.a.size,k[ct]);Object.keys(oA).forEach(function(zA){sA[k.a].element.style[zA]="",sA[k.b].element.style[zA]=""})}})}return{setSizes:kA,getSizes:Re,collapse:function(O){CA(sA[O])},destroy:XA,parent:$,pairs:gA}},Pa=TB;var OB=` + `),console.log("Appending overlay selector element."),h.body.appendChild(b),h.addEventListener("mouseover",this.mouseOverEvent),h.addEventListener("mouseout",this.removeClickListenerFromHoveredElement),window.focus(),h.body.focus(),window.addEventListener("keydown",x=>{x.key==="Escape"&&(console.log("Aborting element selection...",x.key),this.removeOverlayElement(),p.onElementSelectionCancel())},!0)}var _n="strigoAssessmentUuid",Da="strigoAssessmentRecorder";var Ka="strigoChildIframe";function IB(h){let p={};for(let[y,b]of h)p[y]=b;return p}function Fl(h){let y=new URLSearchParams(h).entries();return IB(y)}function yl(){let{host:h,pathname:p,href:y,origin:b,search:x}=window.location;return{host:h,pathName:p,href:y,origin:b,search:x,params:Fl(x)}}function zi(h){let{subDomain:p,user:y,webApiKey:b}=h;return window.Strigo.isDevelopment()?`${Eo}/academy/courses?token=${y.token.token}&webApiKey=${b}`:`https://${p}.${Yc}/academy/courses?token=${y.token.token}&webApiKey=${b}`}function El(h){let p=new URL(h);return p.searchParams.set(Ka,"true"),p.toString()}function bl(){return window.location.search.includes(Ka)}function Il(){let h=new URL(window.location.href),p=new URLSearchParams(h.search);p.delete(Ka),h.search=p.toString(),window.history.replaceState(window.history.state,"",h)}function Hl(){let h=document.getElementById(Jc);return{webApiKey:h?.getAttribute("data-web-api-key")||"",subDomain:h?.getAttribute("data-subdomain")||"",selectedWidgetFlavor:h?.getAttribute("data-layout-flavor")||"dynamic"}}function Sl(h){return window.Strigo.isDevelopment()?`${SDK_LOCAL_URL}/styles/strigo.css`:h?`${Wt}@${h}/dist/production/styles/strigo.min.css`:`${Wt}@master/dist/production/styles/strigo.min.css`}function xl(h){return window.Strigo.isDevelopment()?`${SDK_LOCAL_URL}/styles/strigo-widget.css`:h?`${Wt}@${h}/dist/production/styles/strigo-widget.min.css`:`${Wt}@master/dist/production/styles/strigo-widget.min.css`}function Zi(h){return window.Strigo.isDevelopment()?`${SDK_LOCAL_URL}/styles/strigo-academy-hat.css`:h?`${Wt}@${h}/dist/production/styles/strigo-academy-hat.min.css`:`${Wt}@master/dist/production/styles/strigo-academy-hat.min.css`}function Ll(h){return window.Strigo.isDevelopment()?`${SDK_LOCAL_URL}/styles/strigo-assessment-recorder.css`:h?`${Wt}@${h}/dist/production/styles/strigo-assessment-recorder.min.css`:`${Wt}@master/dist/production/styles/strigo-assessment-recorder.min.css`}function Tl(){return window.Strigo.isDevelopment()?RECORDER_LOCAL_URL:Zc}function Ol(){let{search:h}=window.location,p=Fl(h);return Da in p}function Dl(h){let p=new URL(h),y=new URLSearchParams(p.search);return y.delete(_n),y.delete(Da),p.search=y.toString(),p.toString()}function Ml(){return!!(Ol()||window.sessionStorage.getItem("isStrigoRecordingMode"))}function HB(h,p){let y=document.getElementById("strigo-assessment-recorder-iframe"),b=So(h);y.classList.remove("semi-open"),y.classList.add("is-open"),(0,Kl.default)(document.querySelector(b),{backgroundColor:"#c6c7e7"}).then(x=>{let F={imageData:x.toDataURL(),profile:h,querySelector:b};y.contentWindow.postMessage(JSON.stringify({messageType:"end-capture",payload:{elementType:p,selectedElement:F},windowName:window.name}),"*")})}function SB(h){$.info("Aborting element selection...");let p=document.getElementById("strigo-assessment-recorder-iframe");p.contentWindow.postMessage(JSON.stringify({messageType:"end-capture",payload:{elementType:h,selectedElement:null},windowName:window.name}),"*"),p.classList.remove("semi-open"),setTimeout(()=>{p.classList.add("is-open")},400)}function Rl(){window.sessionStorage.setItem("isStrigoRecordingMode","true");let h=new URL(window.location.href).searchParams.get(_n);if(window.sessionStorage.setItem(_n,h),document.getElementById("strigo-assessment-recorder-iframe"))return;let p=Tl();pr({parentElement:dr(),url:Ll()});let y=Ho({classNames:["strigo-assessment-recorder-iframe","drawer","is-open"],id:"strigo-assessment-recorder-iframe",parentElement:window.document.body,url:p});window.addEventListener("message",b=>{if(!b||!b.data||b.origin!==p)return;let x;try{x=JSON.parse(b.data)}catch{return}let{messageType:F,payload:j}=x;switch(F){case"start-capture":{$.info("Start capturing message received"),y.classList.remove("is-open"),setTimeout(()=>{y.classList.add("semi-open")},600);let{elementType:k,rootElementSelector:iA}=j?.captureParams;window.Strigo.startElementSelector(SA=>HB(SA,k),()=>SB(k),iA);break}case"submit-assessment":{let k=window.sessionStorage.getItem(_n);window.sessionStorage.removeItem("isStrigoRecordingMode");let iA=Dl(window.location.href);window.opener.postMessage({assessment:{...j.assessment,url:iA},recorderWindowId:k},"*"),window.close();break}case"cancel-assessment":{window.sessionStorage.removeItem("isStrigoRecordingMode"),window.close();break}default:break}},!1)}function Ra(){try{return JSON.parse(window["localStorage"].getItem("strigoAssessments"))}catch(h){return $.error("Get assessments storage error",{error:h}),null}}function _l(){try{let h=Ra();if(h)return $.debug("Assessments storage already exists"),h;let p={assessments:[]};return window["localStorage"].setItem("strigoAssessments",JSON.stringify(p)),p}catch(h){return $.error("Init assessments storage error",{error:h}),null}}function Pl(h){try{let p=h?{assessments:[...h]}:{assessments:[]};return window["localStorage"].setItem("strigoAssessments",JSON.stringify(p)),p}catch(p){return $.error("Assessments storage setup error",{error:p}),null}}function Nl(){try{window["localStorage"].removeItem("strigoAssessments")}catch(h){$.error("Clear assessments storage error",{error:h})}}var Je=typeof window!="undefined"?window:null,Pa=Je===null,Lo=Pa?void 0:Je.document,st="addEventListener",at="removeEventListener",_a="getBoundingClientRect",xo="_a",ct="_b",Jt="_c",qi="horizontal",lt=function(){return!1},TB=Pa?"calc":["","-webkit-","-moz-","-o-"].filter(function(h){var p=Lo.createElement("div");return p.style.cssText="width:"+h+"calc(9px)",!!p.style.length}).shift()+"calc",kl=function(h){return typeof h=="string"||h instanceof String},Gl=function(h){if(kl(h)){var p=Lo.querySelector(h);if(!p)throw new Error("Selector "+h+" did not match a DOM element");return p}return h},Ce=function(h,p,y){var b=h[p];return b!==void 0?b:y},$i=function(h,p,y,b){if(p){if(b==="end")return 0;if(b==="center")return h/2}else if(y){if(b==="start")return 0;if(b==="center")return h/2}return h},OB=function(h,p){var y=Lo.createElement("div");return y.className="gutter gutter-"+p,y},DB=function(h,p,y){var b={};return kl(p)?b[h]=p:b[h]=TB+"("+p+"% - "+y+"px)",b},KB=function(h,p){var y;return y={},y[h]=p+"px",y},MB=function(h,p){if(p===void 0&&(p={}),Pa)return{};var y=h,b,x,F,j,k,iA;Array.from&&(y=Array.from(y));var SA=Gl(y[0]),AA=SA.parentNode,EA=getComputedStyle?getComputedStyle(AA):null,_A=EA?EA.flexDirection:null,FA=Ce(p,"sizes")||y.map(function(){return 100/y.length}),se=Ce(p,"minSize",100),vA=Array.isArray(se)?se:y.map(function(){return se}),NA=Ce(p,"maxSize",1/0),ce=Array.isArray(NA)?NA:y.map(function(){return NA}),ut=Ce(p,"expandToMin",!1),GA=Ce(p,"gutterSize",10),xA=Ce(p,"gutterAlign","center"),le=Ce(p,"snapOffset",30),W=Array.isArray(le)?le:y.map(function(){return le}),LA=Ce(p,"dragInterval",1),JA=Ce(p,"direction",qi),Ue=Ce(p,"cursor",JA===qi?"col-resize":"row-resize"),Ye=Ce(p,"gutter",OB),ft=Ce(p,"elementStyle",DB),Yt=Ce(p,"gutterStyle",KB);JA===qi?(b="width",x="clientX",F="left",j="right",k="clientWidth"):JA==="vertical"&&(b="height",x="clientY",F="top",j="bottom",k="clientHeight");function eA(G,O,V,oA){var zA=ft(b,O,V,oA);Object.keys(zA).forEach(function(aA){G.style[aA]=zA[aA]})}function bA(G,O,V){var oA=Yt(b,O,V);Object.keys(oA).forEach(function(zA){G.style[zA]=oA[zA]})}function Re(){return iA.map(function(G){return G.size})}function Ft(G){return"touches"in G?G.touches[0][x]:G[x]}function ue(G){var O=iA[this.a],V=iA[this.b],oA=O.size+V.size;O.size=G/this.size*oA,V.size=oA-G/this.size*oA,eA(O.element,O.size,this[ct],O.i),eA(V.element,V.size,this[Jt],V.i)}function D(G){var O,V=iA[this.a],oA=iA[this.b];!this.dragging||(O=Ft(G)-this.start+(this[ct]-this.dragOffset),LA>1&&(O=Math.round(O/LA)*LA),O<=V.minSize+V.snapOffset+this[ct]?O=V.minSize+this[ct]:O>=this.size-(oA.minSize+oA.snapOffset+this[Jt])&&(O=this.size-(oA.minSize+this[Jt])),O>=V.maxSize-V.snapOffset+this[ct]?O=V.maxSize+this[ct]:O<=this.size-(oA.maxSize-oA.snapOffset+this[Jt])&&(O=this.size-(oA.maxSize+this[Jt])),ue.call(this,O),Ce(p,"onDrag",lt)(Re()))}function J(){var G=iA[this.a].element,O=iA[this.b].element,V=G[_a](),oA=O[_a]();this.size=V[b]+oA[b]+this[ct]+this[Jt],this.start=V[F],this.end=V[j]}function N(G){if(!getComputedStyle)return null;var O=getComputedStyle(G);if(!O)return null;var V=G[k];return V===0?null:(JA===qi?V-=parseFloat(O.paddingLeft)+parseFloat(O.paddingRight):V-=parseFloat(O.paddingTop)+parseFloat(O.paddingBottom),V)}function BA(G){var O=N(AA);if(O===null||vA.reduce(function(aA,ne){return aA+ne},0)>O)return G;var V=0,oA=[],zA=G.map(function(aA,ne){var Se=O*aA/100,YA=$i(GA,ne===0,ne===G.length-1,xA),_e=vA[ne]+YA;return Se<_e?(V+=_e-Se,oA.push(0),_e):(oA.push(Se-_e),Se)});return V===0?G:zA.map(function(aA,ne){var Se=aA;if(V>0&&oA[ne]-V>0){var YA=Math.min(V,oA[ne]-V);V-=YA,Se=aA-YA}return Se/O*100})}function R(){var G=this,O=iA[G.a].element,V=iA[G.b].element;G.dragging&&Ce(p,"onDragEnd",lt)(Re()),G.dragging=!1,Je[at]("mouseup",G.stop),Je[at]("touchend",G.stop),Je[at]("touchcancel",G.stop),Je[at]("mousemove",G.move),Je[at]("touchmove",G.move),G.stop=null,G.move=null,O[at]("selectstart",lt),O[at]("dragstart",lt),V[at]("selectstart",lt),V[at]("dragstart",lt),O.style.userSelect="",O.style.webkitUserSelect="",O.style.MozUserSelect="",O.style.pointerEvents="",V.style.userSelect="",V.style.webkitUserSelect="",V.style.MozUserSelect="",V.style.pointerEvents="",G.gutter.style.cursor="",G.parent.style.cursor="",Lo.body.style.cursor=""}function TA(G){if(!("button"in G&&G.button!==0)){var O=this,V=iA[O.a].element,oA=iA[O.b].element;O.dragging||Ce(p,"onDragStart",lt)(Re()),G.preventDefault(),O.dragging=!0,O.move=D.bind(O),O.stop=R.bind(O),Je[st]("mouseup",O.stop),Je[st]("touchend",O.stop),Je[st]("touchcancel",O.stop),Je[st]("mousemove",O.move),Je[st]("touchmove",O.move),V[st]("selectstart",lt),V[st]("dragstart",lt),oA[st]("selectstart",lt),oA[st]("dragstart",lt),V.style.userSelect="none",V.style.webkitUserSelect="none",V.style.MozUserSelect="none",V.style.pointerEvents="none",oA.style.userSelect="none",oA.style.webkitUserSelect="none",oA.style.MozUserSelect="none",oA.style.pointerEvents="none",O.gutter.style.cursor=Ue,O.parent.style.cursor=Ue,Lo.body.style.cursor=Ue,J.call(O),O.dragOffset=Ft(G)-O.end}}FA=BA(FA);var gA=[];iA=y.map(function(G,O){var V={element:Gl(G),size:FA[O],minSize:vA[O],maxSize:ce[O],snapOffset:W[O],i:O},oA;if(O>0&&(oA={a:O-1,b:O,dragging:!1,direction:JA,parent:AA},oA[ct]=$i(GA,O-1===0,!1,xA),oA[Jt]=$i(GA,!1,O===y.length-1,xA),_A==="row-reverse"||_A==="column-reverse")){var zA=oA.a;oA.a=oA.b,oA.b=zA}if(O>0){var aA=Ye(O,JA,V.element);bA(aA,GA,O),oA[xo]=TA.bind(oA),aA[st]("mousedown",oA[xo]),aA[st]("touchstart",oA[xo]),AA.insertBefore(aA,V.element),oA.gutter=aA}return eA(V.element,V.size,$i(GA,O===0,O===y.length-1,xA),O),O>0&&gA.push(oA),V});function QA(G){var O=G.i===gA.length,V=O?gA[G.i-1]:gA[G.i];J.call(V);var oA=O?V.size-G.minSize-V[Jt]:G.minSize+V[ct];ue.call(V,oA)}iA.forEach(function(G){var O=G.element[_a]()[b];O0){var zA=gA[oA-1],aA=iA[zA.a],ne=iA[zA.b];aA.size=O[oA-1],ne.size=V,eA(aA.element,aA.size,zA[ct],aA.i),eA(ne.element,ne.size,zA[Jt],ne.i)}})}function XA(G,O){gA.forEach(function(V){if(O!==!0?V.parent.removeChild(V.gutter):(V.gutter[at]("mousedown",V[xo]),V.gutter[at]("touchstart",V[xo])),G!==!0){var oA=ft(b,V.a.size,V[ct]);Object.keys(oA).forEach(function(zA){iA[V.a].element.style[zA]="",iA[V.b].element.style[zA]=""})}})}return{setSizes:kA,getSizes:Re,collapse:function(O){QA(iA[O])},destroy:XA,parent:AA,pairs:gA}},Na=MB;var RB=`
-`;function Gl(){let h=document.createElement("div");h.className="strigo-loader",h.innerHTML=OB,document.body.appendChild(h)}function kl(){let h=document.querySelector(".strigo-loader");return new Promise(p=>{let y=setInterval(()=>{h.style.opacity||(h.style.opacity="1");let b=parseFloat(h.style.opacity);b>0?h.style.opacity=(b-.1).toString():(h.style.pointerEvents="none",clearInterval(y),p())},200)})}var Ya=Ha(Xl(),1);var ql=Ha(jl(),1);var qB="strigoLocationId",$B="strigo-location-id",Va={subtree:!0,childList:!0},zl={subtree:!0,characterData:!0,childList:!0},Ut={},To={},Lo,$l;function Wa(h,p){To[h]={...To[h],...p}}function Au(h,p){let y=window.sessionStorage.getItem(h),x={...y?JSON.parse(y):{},...p};window.sessionStorage.setItem(h,JSON.stringify(x))}function Ag(h,p){let y=h.recordedAssessment?.exampleElement?.profile,b=y.map(({nodeIdentifiers:xA,level:mA})=>({level:mA,nodeIdentifiers:xA.filter(({identifier:se})=>se!=="className")})),x;try{x=Ho(y,{allowDuplicates:!0,fallbackNodesInfo:b})}catch{console.log("*** Failed to retrieve a selector for the example element");return}let{_id:F}=h,J=document.querySelectorAll(x)||[];console.log("*** Example elements found:",J);let V=Array.from(J).filter(xA=>p.contains(xA));console.log("*** Example elements that are inside the location element:",V);let sA=V?.length||0,HA=window.sessionStorage.getItem(F),QA=(HA?JSON.parse(HA):{})?.[document.location.href];return console.log("*** evaluating example element count",{currentExampleElementCount:sA,previousExampleElementCount:QA,exampleElementSelector:x,documentText:document.body.innerText.slice(0,10)}),QA||(console.log("*** Persisting example element count to local storage",{currentExampleElementCount:sA}),Au(F,{[document.location.href]:sA})),sA}var Xa=async(h,p={})=>{let{_id:y,challengeSuccessEvent:b}=h;console.log("*** Successfully detected assessment criteria!",{assessmentId:y,challengeSuccessEvent:b,...h,window,...p}),Wa(y,{status:"SUCCESS"}),AA.info(`sent event ${b}`),await window.Strigo.sendEvent(b)};function eg(h){if(console.log("*** Got an item count mutation in the location element!"),Lo!==document.location.href){console.log("*** Aborting element count due to race condition");return}let{challengeSuccessEvent:p,_id:y}=this.assessment;if(To[y]?.status==="SUCCESS"){console.log("*** Assessment already completed successfully.");return}let b;try{b=Ag(this.assessment,this.locationElement)}catch{return}let x=window.sessionStorage.getItem(y),J=(x?JSON.parse(x):{})?.[document.location.href];J&&b>parseInt(J)&&(console.log("*** Yo! we got a successfully added item!",{currentExampleElementCount:b,previousExampleElementCount:J}),Au(y,{[document.location.href]:b}),Xa(this.assessment),Ut[y].observer.disconnect(),delete Ut[y])}var tg=(h,p)=>{let y,b,x=To[h]?.locationElement,F=window.document.contains(x);if(x&&F)console.log("*** Got a cached location element...",x),y=x;else try{let J=p.map(({nodeIdentifiers:V,level:sA})=>({level:sA,nodeIdentifiers:V.filter(({identifier:HA})=>HA!=="className")}));b=Ho(p,{threshold:5e3}),console.log("*** Retrieving location element by selector:",b),y=window.document.querySelector(b),console.log("*** Found location element:",{locationElement:y,locationElementSelector:b}),Wa(h,{locationElement:y})}catch(J){console.log("*** Error in selecting Location element",J)}return{locationElement:y,locationElementSelector:b}},rg=function(h,p){let y=window.document.createElement("div");y.dataset[qB]=p;let b={top:-window.scrollY,left:-window.scrollX},x=h;for(;x&&x!==window.document.body;)b.top+=x.offsetTop,b.left+=x.offsetLeft,x=x.offsetParent;let F=` +`;function Vl(){let h=document.createElement("div");h.className="strigo-loader",h.innerHTML=RB,document.body.appendChild(h)}function Xl(){let h=document.querySelector(".strigo-loader");return new Promise(p=>{let y=setInterval(()=>{h.style.opacity||(h.style.opacity="1");let b=parseFloat(h.style.opacity);b>0?h.style.opacity=(b-.1).toString():(h.style.pointerEvents="none",clearInterval(y),p())},200)})}var ja=Ha(Jl(),1);var Au=Ha(Zl(),1);var tg="strigoLocationId",rg="strigo-location-id",Xa={subtree:!0,childList:!0},ql={subtree:!0,characterData:!0,childList:!0},Ut={},Oo={},To,eu;function Ja(h,p){Oo[h]={...Oo[h],...p}}function tu(h,p){let y=window.sessionStorage.getItem(h),x={...y?JSON.parse(y):{},...p};window.sessionStorage.setItem(h,JSON.stringify(x))}function ng(h,p){let y=h.recordedAssessment?.exampleElement?.profile,b=y.map(({nodeIdentifiers:_A,level:FA})=>({level:FA,nodeIdentifiers:_A.filter(({identifier:se})=>se!=="className")})),x;try{x=So(y,{allowDuplicates:!0,fallbackNodesInfo:b})}catch{console.log("*** Failed to retrieve a selector for the example element");return}let{_id:F}=h,j=document.querySelectorAll(x)||[];console.log("*** Example elements found:",j);let k=Array.from(j).filter(_A=>p.contains(_A));console.log("*** Example elements that are inside the location element:",k);let iA=k?.length||0,SA=window.sessionStorage.getItem(F),EA=(SA?JSON.parse(SA):{})?.[document.location.href];return console.log("*** evaluating example element count",{currentExampleElementCount:iA,previousExampleElementCount:EA,exampleElementSelector:x,documentText:document.body.innerText.slice(0,10)}),EA||(console.log("*** Persisting example element count to local storage",{currentExampleElementCount:iA}),tu(F,{[document.location.href]:iA})),iA}var Wa=async(h,p={})=>{let{_id:y,challengeSuccessEvent:b}=h;console.log("*** Successfully detected assessment criteria!",{assessmentId:y,challengeSuccessEvent:b,...h,window,...p}),Ja(y,{status:"SUCCESS"}),$.info(`sent event ${b}`),await window.Strigo.sendEvent(b)};function og(h){if(console.log("*** Got an item count mutation in the location element!"),To!==document.location.href){console.log("*** Aborting element count due to race condition");return}let{challengeSuccessEvent:p,_id:y}=this.assessment;if(Oo[y]?.status==="SUCCESS"){console.log("*** Assessment already completed successfully.");return}let b;try{b=ng(this.assessment,this.locationElement)}catch{return}let x=window.sessionStorage.getItem(y),j=(x?JSON.parse(x):{})?.[document.location.href];j&&b>parseInt(j)&&(console.log("*** Yo! we got a successfully added item!",{currentExampleElementCount:b,previousExampleElementCount:j}),tu(y,{[document.location.href]:b}),Wa(this.assessment),Ut[y].observer.disconnect(),delete Ut[y])}var ig=(h,p)=>{let y,b,x=Oo[h]?.locationElement,F=window.document.contains(x);if(x&&F)console.log("*** Got a cached location element...",x),y=x;else try{let j=p.map(({nodeIdentifiers:k,level:iA})=>({level:iA,nodeIdentifiers:k.filter(({identifier:SA})=>SA!=="className")}));b=So(p,{threshold:5e3}),console.log("*** Retrieving location element by selector:",b),y=window.document.querySelector(b),console.log("*** Found location element:",{locationElement:y,locationElementSelector:b}),Ja(h,{locationElement:y})}catch(j){console.log("*** Error in selecting Location element",j)}return{locationElement:y,locationElementSelector:b}},sg=function(h,p){let y=window.document.createElement("div");y.dataset[tg]=p;let b={top:-window.scrollY,left:-window.scrollX},x=h;for(;x&&x!==window.document.body;)b.top+=x.offsetTop,b.left+=x.offsetLeft,x=x.offsetParent;let F=` position: fixed; top: ${b.top-40}px; left: ${b.left}px; z-index: 2147483646; position: fixed; - `;return y.setAttribute("style",F),window.document.body.appendChild(y),y},ng=function(h,p,y){if(window.document.getElementById(`${y._id}-context-overlay`)){console.log("*** Already got an existing debug element for this assessment.",y);return}h.style.border="2px dashed #696CBF",h.style["border-radius"]="4px";let x=window.document.createElement("div");x.setAttribute("id",`${y._id}-context-overlay`);let F=` + `;return y.setAttribute("style",F),window.document.body.appendChild(y),y},ag=function(h,p,y){if(window.document.getElementById(`${y._id}-context-overlay`)){console.log("*** Already got an existing debug element for this assessment.",y);return}h.style.border="2px dashed #696CBF",h.style["border-radius"]="4px";let x=window.document.createElement("div");x.setAttribute("id",`${y._id}-context-overlay`);let F=` width: 400px; padding: 1px; background: rgba(226, 226, 252, 0.90); @@ -58,7 +58,7 @@ ${JSON.stringify(F)}`:"")}getDefaultContext(){let p=Fe();if(!p)return{};let{user
assessmentId: ${y?._id}
Expected text: ${y?.recordedAssessment?.expectedText}
Selector used: ${p}
- `,console.log("*** Appending assessment debug context element.");let J=window.document.querySelectorAll(`[data-${$B}="${p}"]`)?.[0];J?J.appendChild(x):rg(h,p).appendChild(x)},Zl=function(){console.log("*** Evaluating Assessments...",{bodyTextDuringAssessment:window.document.body.innerText.slice(0,50)}),$l.forEach(h=>{let{recordedAssessment:p,challengeSuccessEvent:y,_id:b}=h,{actionType:x,expectedText:F}=p,J=p?.locationElement?.profile;if(!J){console.log("*** missing location element profile. Aborting...");return}if(To?.[b]?.status==="SUCCESS"){console.log('*** Assessment already in "success" status. Aborting...');return}Wa(b,{status:"pending"});let{locationElement:V,locationElementSelector:sA}=tg(b,J);if(!V){console.log("*** Failed to find location element. Aborting assessment evaluation...");return}switch(Fe()?.isAcademyAssessmentDebug&&ng(V,sA,h),x){case"added-item":{let $=eg.bind({assessment:h,locationElement:V,window});if(Ut[b]?.observer&&V===Ut[b].element){Ut[b].element=V;try{$([]),Ut[b].observer.observe(V,Va),AA.info("Same reference - no need to observe again"),console.log(" *** Same reference - no need to observe again",V)}catch(QA){console.log("*** Got an error in item count",QA);break}break}if(Ut[b]?.observer){try{$([]),Ut[b].observer.observe(V,Va),AA.info("DOM Reference have changed - observing again"),console.log(" *** DOM Reference have changed - observing again",V)}catch(QA){console.log("*** Got an error in item count",QA);break}break}Ut[b]={element:V,observer:new MutationObserver($)};try{$([]),Ut[b].observer.observe(V,Va)}catch(QA){console.log("*** Got an error in item count",QA);break}break}case"text-change":{if(console.log("*** Assessing text changes in location element...",{locationElement:V,locationElementType:V instanceof HTMLInputElement?"input":"non-input",innerTextValue:V instanceof HTMLInputElement?V?.value:V?.innerText,expectedText:F}),V instanceof HTMLInputElement&&V?.value?.includes(F)){Xa(h,{locationElement:V});break}if(V?.innerText?.includes(F)){Xa(h,{locationElement:V});break}break}default:break}})},og=function(h){let p=h.some(b=>b.addedNodes?.length>0),y=h.some(b=>b.type=="characterData");if(console.log("#####",{isAddedNodes:p,isCharacterDataChanged:y}),!p&&!y){console.log("*** No added nodes and no character data change were detected after url change.",{previousLocation:Lo||"",newLocation:document.location.href});return}Lo===document.location.href?console.log("*** No URL change and no nodes were added."):(console.log("*** Detected URL change!",{previousLocation:Lo||"",newLocation:document.location.href}),Lo=document.location.href),Ja(window)},Ja=(0,ql.default)(h=>{if(console.log("*** Initializing document observer"),$l=Ma().assessments.filter(({assessmentType:p})=>p==="recorded-flow"),!window?.strigoObserver?.observer){console.log("*** Adding Strigo observer to document body"),window.strigoObserver={observer:new MutationObserver(og),observedBodyElement:window.document.body},Zl(),console.log("*** Starting to observe document body"),window?.strigoObserver?.observer?.observe(window.document,zl);return}Zl(),window.document.contains(window.strigoObserver.observedBodyElement)||(console.log('*** Detected a "body" element change. Re-initializing the document observer...'),window.strigoObserver.observedBodyElement=window.document.body,window.strigoObserver.observer.observe(window.document,zl))},500);var eu=342;function tu(){console.log("Posting dockable state to Strigo...");let h=gr("dockingSide");document.getElementById("strigo-exercises").contentWindow.postMessage({dockable:!0,dockingSide:h},"*")}function sg(){let[h]=Ji();(0,Ya.default)("#strigo-widget").resizable({edges:{left:"#strigo-collapse-div",right:"#strigo-collapse-div.align-left",bottom:!1,top:!1},listeners:{move(p){let y=p.target;y.style.width=`${p.rect.widthh?h:p.rect.width}px`},start(){let p=document.getElementById("strigo-exercises");p.style.pointerEvents="none"},end(){let p=document.getElementById("strigo-exercises");p.style.pointerEvents="auto"}},modifiers:[Ya.default.modifiers.restrictEdges({outer:"parent"})]})}var nu=class{init(){return AA.info("overlay init called"),"OVERLAY"}setup({version:p}){AA.info("overlay setup called"),pr({parentElement:dr(),url:Sl(p)}),pr({parentElement:dr(),url:zi(p)});let y=wl(ji(Fe())),b=bo();this.initEventListeners(b,y),console.log("adding observer"),Ja(b),vl(b),console.log("observer added"),sg()}shutdown(){AA.info("overlay shutdown called");let p=bo();this.removeEventListeners(p),p?.strigoObserver?.observer?.disconnect(),pl(p)}collapse(){AA.info("overlay collapse called"),Ta()}open(){Yi(),tu()}move(){dl()}initEventListeners(p,y){es(y,tu),As(p)}removeEventListeners(p){ou()}},Oo=new nu;function su(h){if(!(!h||!h.data))switch(h.data){case"move":{AA.info("Panel move message received"),Eo()==="overlay"&&Oo.move();break}case"close":{AA.info("Shutdown message received - will collapse panel"),window.Strigo?.collapse();break}case"destroy":{AA.info("Destroy message received"),window.Strigo?.destroy();break}case"challenge-success":{AA.info("Challenge event success received"),Eo()==="overlay"&&Oo.open();break}default:break}}function As(h){h.addEventListener("message",su,!1)}function ou(){window.removeEventListener("message",su)}function es(h,p){h.addEventListener("load",async()=>{sl("isLoading")&&(p&&await p(),Wi("isLoading",!1))})}function au(h){let p=gr("initSite")?.host;h.addEventListener("load",function(){try{this.contentWindow.location.host!==p&&window.Strigo.shutdown()}catch(y){AA.error(y),window.Strigo.shutdown()}})}function cu(){return Pa(["#strigo-exercises","#original-site"],{sizes:[25,75],maxSize:Ji(),minSize:Bl(),gutterSize:2})}async function cg(){await kl(),document.getElementById("strigo-exercises").contentWindow.postMessage({dockable:!1},"*")}var lu=class{init(){let p;return El()?(AA.info("Child SDK window"),p="CHILD",window.dispatchEvent(new Event("strigo-opened")),bl()):(AA.info("Parent SDK window"),p="PARENT"),p}setup({version:p}){AA.info("iframe setup started"),cl(),pr({parentElement:dr(),url:Hl(p)}),pr({parentElement:dr(),url:zi(p)}),Gl();let y=Fe(),b=ll(),x=Io({parentElement:b,url:ji(y),classNames:Yc,id:"strigo-exercises"}),F=Io({parentElement:b,url:yl(y.initSite.href),classNames:jc,id:"original-site"}),J=document.createElement("div");J.className="strigo-academy-hat align-left",J.id="strigo-academy-hat",J.onclick=()=>{document.getElementById("strigo-academy-hat").classList.toggle("slide-in"),this.splitInstance=cu()};let V=document.createElement("div");V.className="strigo-academy-hat-icon",V.id="strigo-academy-hat-icon",V.innerHTML=Vi,J.appendChild(V),b.appendChild(J),this.splitInstance=cu();let sA=bo();this.initEventListeners(sA,x,F)}collapse(){this.splitInstance&&(this.splitInstance.destroy(),this.splitInstance=Pa(["#strigo-exercises","#original-site"],{sizes:[25,75],minSize:0,gutterSize:0}),this.splitInstance.collapse(0),document.getElementById("strigo-academy-hat").classList.toggle("slide-in"))}open(){}shutdown(){AA.info("iframe shutdown called"),ul()}initEventListeners(p,y,b){es(y,cg),au(b),As(b.contentWindow)}},uu=new lu;function fu(h){return h&&h==="dynamic"?gl()?"iframe":"overlay":h}function Do(h){let p=null;switch(h){case"iframe":{p=uu;break}case"overlay":{p=Oo;break}default:throw AA.error("Widget flavor is not supported",{widgetFlavor:h}),new Error(`Widget flavor ${h} is not supported`)}return p}var Bu=class{constructor(){this.config={}}isDevelopment(){return!1}init(){try{if(AA.info("Initializing SDK..."),this.config.initialized){AA.info("SDK was already initialized");return}Ml();let{webApiKey:p,subDomain:y,selectedWidgetFlavor:b}=Il();if(!p||!y||!b)throw new Error("Init data is missing");let x=fu(b);$c({webApiKey:p,subDomain:y,selectedWidgetFlavor:x});let F=Do(x);this.config.sdkType=F.init(),this.config.initialized=!0,AA.info("Initialized SDK."),this.config.sdkType!=="CHILD"&&Rn()&&this.setup()}catch(p){AA.error("Could not initialize SDK",{err:p})}}async setup(p){try{AA.info("Starting to setup SDK...");let y=document.getElementById("strigo-widget");if(this.config.isOpen&&y||this.config.sdkType==="CHILD"){AA.info('panel is already opened. Aborting "setup" action...');return}if(!this.config.initialized)throw new Error("SDK was not initialized");let x=Fe(),{email:F,token:J,version:V,openWidget:sA=!0,dockingSide:HA="right"}={...x.user,...x,...p};if(!F||!J)throw new Error("Setup data is missing");let $=await rl(J);if(!$?.allowedAcademyDomains?.includes(window.location.host.replace(/^www\./i,""))){console.log("Running on an unrelated domain. Aborting...",{allowedDomains:$?.allowedAcademyDomains,currentHost:window.location.host});return}if($){let{loggingConfig:QA,userAssessments:xA}=$;AA.debug("Configuration fetched from Strigo"),AA.setup(QA),Rl(xA)}Al({user:{email:F,token:J},initSite:Fl(),version:V,loggingConfig:$?.loggingConfig,isAcademyAssessmentDebug:$?.isAcademyAssessmentDebug,dockingSide:HA}),this.config.configured=!0,AA.info("Finished SDK setup."),sA&&this.open()}catch(y){AA.error("Could not setup SDK",{err:y})}}open(){try{if(AA.info("Opening academy panel..."),!this.config.configured)throw new Error("SDK was not set up");let p=document.getElementById("strigo-widget");if(this.config.isOpen&&p||this.config.sdkType==="CHILD"){AA.info('Panel is already opened. Aborting "open" action...');return}let b=Fe();il({currentUrl:b.initSite.href,shouldPanelBeOpen:Rn(),isLoading:!0,widgetFlavor:b.selectedWidgetFlavor}),Do(b.selectedWidgetFlavor).setup({version:b.version}),this.config.isOpen=!0,AA.info("Opened academy panel.")}catch(p){AA.error("Could not open academy panel",{err:p})}}collapse(){AA.info("Collapsing academy panel");let{selectedWidgetFlavor:p}=Fe();Do(p).collapse()}shutdown(){try{if(AA.info("Closing academy panel..."),this.config.sdkType==="CHILD"){window.parent.postMessage(JSON.stringify({messageType:"close"}),"*"),AA.info("Notified parent frame to close academy panel.");return}if(!this.config.isOpen){AA.info("Tried to close unopened academy panel");return}let p=Do(Eo());al(),p.collapse(),p.shutdown(),this.config.isOpen=!1,AA.info("Closed academy panel.")}catch(p){AA.error("Could not close academy panel",{err:p})}}destroy(){try{if(AA.info("Destroying SDK..."),this.config.sdkType==="CHILD"){window.parent.postMessage(JSON.stringify({messageType:"destroy"}),"*"),AA.info("Notified parent frame to destroy SDK.");return}tl(),_l(),this.shutdown(),this.config={},AA.info("Destroyed SDK.")}catch(p){AA.error("Could not destroy SDK",{err:p})}}async sendEvent(p){let y=gr("user"),{token:b}=y;await nl(b,p),AA.debug("sendEvent called",{eventName:p})}startElementSelector(p,y){AA.debug("startElementSelector called");let b=y?window.document.querySelector(y):window.document.body;ml(window.document,{onElementProfileCreated:p,zIndex:9999999999,rootElement:b})}assessmentRecorder(){Kl()}},gu=new Bu;window.Strigo=gu;Dl()?(console.log("Strigo recorder mode"),window.Strigo.assessmentRecorder()):window.Strigo.init();})(); + `,console.log("*** Appending assessment debug context element.");let j=window.document.querySelectorAll(`[data-${rg}="${p}"]`)?.[0];j?j.appendChild(x):sg(h,p).appendChild(x)},$l=function(){console.log("*** Evaluating Assessments...",{bodyTextDuringAssessment:window.document.body.innerText.slice(0,50)}),eu.forEach(h=>{let{recordedAssessment:p,challengeSuccessEvent:y,_id:b}=h,{actionType:x,expectedText:F}=p,j=p?.locationElement?.profile;if(!j){console.log("*** missing location element profile. Aborting...");return}if(Oo?.[b]?.status==="SUCCESS"){console.log('*** Assessment already in "success" status. Aborting...');return}Ja(b,{status:"pending"});let{locationElement:k,locationElementSelector:iA}=ig(b,j);if(!k){console.log("*** Failed to find location element. Aborting assessment evaluation...");return}switch(Fe()?.isAcademyAssessmentDebug&&ag(k,iA,h),x){case"added-item":{let AA=og.bind({assessment:h,locationElement:k,window});if(Ut[b]?.observer&&k===Ut[b].element){Ut[b].element=k;try{AA([]),Ut[b].observer.observe(k,Xa),$.info("Same reference - no need to observe again"),console.log(" *** Same reference - no need to observe again",k)}catch(EA){console.log("*** Got an error in item count",EA);break}break}if(Ut[b]?.observer){try{AA([]),Ut[b].observer.observe(k,Xa),$.info("DOM Reference have changed - observing again"),console.log(" *** DOM Reference have changed - observing again",k)}catch(EA){console.log("*** Got an error in item count",EA);break}break}Ut[b]={element:k,observer:new MutationObserver(AA)};try{AA([]),Ut[b].observer.observe(k,Xa)}catch(EA){console.log("*** Got an error in item count",EA);break}break}case"text-change":{if(console.log("*** Assessing text changes in location element...",{locationElement:k,locationElementType:k instanceof HTMLInputElement?"input":"non-input",innerTextValue:k instanceof HTMLInputElement?k?.value:k?.innerText,expectedText:F}),k instanceof HTMLInputElement&&k?.value?.includes(F)){Wa(h,{locationElement:k});break}if(k?.innerText?.includes(F)){Wa(h,{locationElement:k});break}break}default:break}})},cg=function(h){let p=h.some(b=>b.addedNodes?.length>0),y=h.some(b=>b.type=="characterData");if(console.log("#####",{isAddedNodes:p,isCharacterDataChanged:y}),!p&&!y){console.log("*** No added nodes and no character data change were detected after url change.",{previousLocation:To||"",newLocation:document.location.href});return}To===document.location.href?console.log("*** No URL change and no nodes were added."):(console.log("*** Detected URL change!",{previousLocation:To||"",newLocation:document.location.href}),To=document.location.href),Ya(window)},Ya=(0,Au.default)(h=>{if(console.log("*** Initializing document observer"),eu=Ra().assessments.filter(({assessmentType:p})=>p==="recorded-flow"),!window?.strigoObserver?.observer){console.log("*** Adding Strigo observer to document body"),window.strigoObserver={observer:new MutationObserver(cg),observedBodyElement:window.document.body},$l(),console.log("*** Starting to observe document body"),window?.strigoObserver?.observer?.observe(window.document,ql);return}$l(),window.document.contains(window.strigoObserver.observedBodyElement)||(console.log('*** Detected a "body" element change. Re-initializing the document observer...'),window.strigoObserver.observedBodyElement=window.document.body,window.strigoObserver.observer.observe(window.document,ql))},500);var ru=342;function nu(){console.log("Posting dockable state to Strigo...");let h=gr("dockingSide");document.getElementById("strigo-exercises").contentWindow.postMessage({dockable:!0,dockingSide:h},"*")}function ug(){let[h]=Yi();(0,ja.default)("#strigo-widget").resizable({edges:{left:"#strigo-collapse-div",right:"#strigo-collapse-div.align-left",bottom:!1,top:!1},listeners:{move(p){let y=p.target;y.style.width=`${p.rect.widthh?h:p.rect.width}px`},start(){let p=document.getElementById("strigo-exercises");p.style.pointerEvents="none"},end(){let p=document.getElementById("strigo-exercises");p.style.pointerEvents="auto"}},modifiers:[ja.default.modifiers.restrictEdges({outer:"parent"})]})}var iu=class{init(){return $.info("overlay init called"),"OVERLAY"}setup({version:p}){$.info("overlay setup called"),pr({parentElement:dr(),url:xl(p)}),pr({parentElement:dr(),url:Zi(p)});let y=vl(zi(Fe())),b=Io();this.initEventListeners(b,y),console.log("adding observer"),Ya(b),Ql(b),console.log("observer added"),ug()}shutdown(){$.info("overlay shutdown called");let p=Io();this.removeEventListeners(p),p?.strigoObserver?.observer?.disconnect(),hl(p)}collapse(){$.info("overlay collapse called"),Ta()}open(){ji(),nu()}move(){pl()}initEventListeners(p,y){es(y,nu),As(p)}removeEventListeners(p){su()}},Do=new iu;function cu(h){if(!(!h||!h.data))switch(h.data){case"move":{$.info("Panel move message received"),bo()==="overlay"&&Do.move();break}case"close":{$.info("Shutdown message received - will collapse panel"),window.Strigo?.collapse();break}case"destroy":{$.info("Destroy message received"),window.Strigo?.destroy();break}case"challenge-success":{$.info("Challenge event success received"),bo()==="overlay"&&Do.open();break}default:break}}function As(h){h.addEventListener("message",cu,!1)}function su(){window.removeEventListener("message",cu)}function es(h,p){h.addEventListener("load",async()=>{al("isLoading")&&(p&&await p(),Ji("isLoading",!1))})}function lu(h){let p=gr("initSite")?.host;h.addEventListener("load",function(){try{this.contentWindow.location.host!==p&&window.Strigo.shutdown()}catch(y){$.error(y),window.Strigo.shutdown()}})}function uu(){return Na(["#strigo-exercises","#original-site"],{sizes:[25,75],maxSize:Yi(),minSize:gl(),gutterSize:2})}async function Bg(){await Xl(),document.getElementById("strigo-exercises").contentWindow.postMessage({dockable:!1},"*")}var fu=class{init(){let p;return bl()?($.info("Child SDK window"),p="CHILD",window.dispatchEvent(new Event("strigo-opened")),Il()):($.info("Parent SDK window"),p="PARENT"),p}setup({version:p}){$.info("iframe setup started"),ll(),pr({parentElement:dr(),url:Sl(p)}),pr({parentElement:dr(),url:Zi(p)}),Vl();let y=Fe(),b=ul(),x=Ho({parentElement:b,url:zi(y),classNames:jc,id:"strigo-exercises"}),F=Ho({parentElement:b,url:El(y.initSite.href),classNames:zc,id:"original-site"}),j=document.createElement("div");j.className="strigo-academy-hat align-left",j.id="strigo-academy-hat",j.onclick=()=>{document.getElementById("strigo-academy-hat").classList.toggle("slide-in"),this.splitInstance=uu()};let k=document.createElement("div");k.className="strigo-academy-hat-icon",k.id="strigo-academy-hat-icon",k.innerHTML=Xi,j.appendChild(k),b.appendChild(j),this.splitInstance=uu();let iA=Io();this.initEventListeners(iA,x,F)}collapse(){this.splitInstance&&(this.splitInstance.destroy(),this.splitInstance=Na(["#strigo-exercises","#original-site"],{sizes:[25,75],minSize:0,gutterSize:0}),this.splitInstance.collapse(0),document.getElementById("strigo-academy-hat").classList.toggle("slide-in"))}open(){}shutdown(){$.info("iframe shutdown called"),fl()}initEventListeners(p,y,b){es(y,Bg),lu(b),As(b.contentWindow)}},Bu=new fu;function gu(h){return h&&h==="dynamic"?dl()?"iframe":"overlay":h}function Ko(h){let p=null;switch(h){case"iframe":{p=Bu;break}case"overlay":{p=Do;break}default:throw $.error("Widget flavor is not supported",{widgetFlavor:h}),new Error(`Widget flavor ${h} is not supported`)}return p}var du=class{constructor(){this.config={}}isDevelopment(){return!1}init(){try{if($.info("Initializing SDK..."),this.config.initialized){$.info("SDK was already initialized");return}_l();let{webApiKey:p,subDomain:y,selectedWidgetFlavor:b}=Hl();if(!p||!y||!b)throw new Error("Init data is missing");let x=gu(b);Al({webApiKey:p,subDomain:y,selectedWidgetFlavor:x});let F=Ko(x);this.config.sdkType=F.init(),this.config.initialized=!0,$.info("Initialized SDK."),this.config.sdkType!=="CHILD"&&Rn()&&this.setup()}catch(p){$.error("Could not initialize SDK",{err:p})}}async setup(p){try{$.info("Starting to setup SDK...");let y=document.getElementById("strigo-widget");if(this.config.isOpen&&y||this.config.sdkType==="CHILD"){$.info('panel is already opened. Aborting "setup" action...');return}if(!this.config.initialized)throw new Error("SDK was not initialized");let x=Fe(),{email:F,token:j,version:k,openWidget:iA=!0,dockingSide:SA="right"}={...x.user,...x,...p};if(!F||!j)throw new Error("Setup data is missing");let AA=await nl(j);if(!AA?.allowedAcademyDomains?.includes(window.location.host.replace(/^www\./i,""))){console.log("Running on an unrelated domain. Aborting...",{allowedDomains:AA?.allowedAcademyDomains,currentHost:window.location.host});return}if(AA){let{loggingConfig:EA,userAssessments:_A}=AA;$.debug("Configuration fetched from Strigo"),$.setup(EA),Pl(_A)}el({user:{email:F,token:j},initSite:yl(),version:k,loggingConfig:AA?.loggingConfig,isAcademyAssessmentDebug:AA?.isAcademyAssessmentDebug,dockingSide:SA}),this.config.configured=!0,$.info("Finished SDK setup."),iA&&this.open()}catch(y){$.error("Could not setup SDK",{err:y})}}open(){try{if($.info("Opening academy panel..."),!this.config.configured)throw new Error("SDK was not set up");let p=document.getElementById("strigo-widget");if(this.config.isOpen&&p||this.config.sdkType==="CHILD"){$.info('Panel is already opened. Aborting "open" action...');return}let b=Fe();sl({currentUrl:b.initSite.href,shouldPanelBeOpen:Rn(),isLoading:!0,widgetFlavor:b.selectedWidgetFlavor}),Ko(b.selectedWidgetFlavor).setup({version:b.version}),this.config.isOpen=!0,$.info("Opened academy panel.")}catch(p){$.error("Could not open academy panel",{err:p})}}collapse(){$.info("Collapsing academy panel");let{selectedWidgetFlavor:p}=Fe();Ko(p).collapse()}shutdown(){try{if($.info("Closing academy panel..."),this.config.sdkType==="CHILD"){window.parent.postMessage(JSON.stringify({messageType:"close"}),"*"),$.info("Notified parent frame to close academy panel.");return}if(!this.config.isOpen){$.info("Tried to close unopened academy panel");return}let p=Ko(bo());cl(),p.collapse(),p.shutdown(),this.config.isOpen=!1,$.info("Closed academy panel.")}catch(p){$.error("Could not close academy panel",{err:p})}}destroy(){try{if($.info("Destroying SDK..."),this.config.sdkType==="CHILD"){window.parent.postMessage(JSON.stringify({messageType:"destroy"}),"*"),$.info("Notified parent frame to destroy SDK.");return}rl(),Nl(),this.shutdown(),this.config={},$.info("Destroyed SDK.")}catch(p){$.error("Could not destroy SDK",{err:p})}}async sendEvent(p){let y=gr("user"),{token:b}=y;await ol(b,p),$.debug("sendEvent called",{eventName:p})}startElementSelector(p,y,b){$.debug("startElementSelector called");let x=b?window.document.querySelector(b):window.document.body;Cl(window.document,{onElementProfileCreated:p,onElementSelectionCancel:y,zIndex:9999999999,rootElement:x})}assessmentRecorder(){Rl()}},pu=new du;window.Strigo=pu;Ml()?(console.log("Strigo recorder mode"),window.Strigo.assessmentRecorder()):window.Strigo.init();})(); /*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen