import{l as oB,_ as uB,a as cB,b as gB,c as lB,d as QB,e as wB,f as fB,g as CB,h as hB,i as UB,j as FB,k as dB,m as pB,n as EB,o as vB,p as HB}from"./title_timers.800a6b78.js";import{_ as IB,a as mB,b as yB}from"./icon_name_active.5a25be96.js";import{_ as LB}from"./icon_tips.9bbfc6f5.js";import{C as KB}from"./index.fc7d34d1.js";import{s as Ae,p as bB,r as UA,C as Nr,j as Vr}from"./index.3d95a92c.js";import{d as JA,V as Ot,aE as Pr,aF as we,a4 as TB,a as Q,F as fe,j as D,q as Mt,T as LA,u as _t,w as kr,a0 as SB,x as Xr,P as ee,B as Ce,g as FA,D as Jr,k as DB,l as Rt,C as xB,J as Yr,A as OB}from"./vendor.a0144ce9.js";/* empty css              *//* empty css              *//* empty css               *//* empty css               *//* empty css                *//* empty css               */import{C as MB}from"./index.5f620fbc.js";import{i as _B}from"./icon_teacher.40b6f077.js";import{C as RB}from"./index.ccfa57ee.js";import{O as GB}from"./organ-search.a2c2f321.js";/* empty css                *//* empty css                */import{S as Gt}from"./index.ac03cc7c.js";import{u as NB,a as VB}from"./index.28b40a59.js";/* empty css               */import"./icon_timer2.563d016a.js";import"./index.376fb8f6.js";/* empty css               *//* empty css                *//* empty css               */import"./icon_student.bbb32387.js";const PB="_roomHeader_13gb6_1",kB="_countTimer_13gb6_9",XB="_timer_13gb6_12",JB="_title_13gb6_23",YB="_chargeTimer_13gb6_35",WB="_studentList_13gb6_45",ZB="_studentCount_13gb6_51",jB="_btnGroupInvite_13gb6_56",zB="_searchList_13gb6_77",qB="_dataItem_13gb6_82";var X={roomHeader:PB,countTimer:kB,timer:XB,title:JB,chargeTimer:YB,studentList:WB,studentCount:ZB,btnGroupInvite:jB,searchList:zB,dataItem:qB};const $B="_shareSection_b869d_1",Aa="_img_b869d_8",ea="_name_b869d_14",ta="_titleTips_b869d_20",ra="_section_b869d_26",na="_txt_b869d_32",sa="_teacherName_b869d_42",Ba="_download_b869d_45",aa="_logo_b869d_51",ia="_qrcode_b869d_61";var $={shareSection:$B,img:Aa,name:ea,titleTips:ta,section:ra,txt:na,teacherName:sa,download:Ba,logo:aa,qrcode:ia,continue:"_continue_b869d_65"};/*!
 * qrcode.vue v3.3.3
 * A Vue.js component to generate QRCode.
 * © 2017-2021 @scopewu(https://github.com/scopewu)
 * MIT License.
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ge=function(){return Ge=Object.assign||function(A){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(A[s]=r[s])}return A},Ge.apply(this,arguments)},Wr={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3},oa=Wr;function Zr(e){this.mode=oa.MODE_8BIT_BYTE,this.data=e}Zr.prototype={getLength:function(e){return this.data.length},write:function(e){for(var A=0;A<this.data.length;A++)e.put(this.data.charCodeAt(A),8)}};var ua=Zr,Nt={L:1,M:0,Q:3,H:2},Ne=Nt;function gA(e,A){this.totalCount=e,this.dataCount=A}gA.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];gA.getRSBlocks=function(e,A){var r=gA.getRsBlockTable(e,A);if(r==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+A);for(var t=r.length/3,n=new Array,s=0;s<t;s++)for(var B=r[s*3+0],a=r[s*3+1],i=r[s*3+2],o=0;o<B;o++)n.push(new gA(a,i));return n};gA.getRsBlockTable=function(e,A){switch(A){case Ne.L:return gA.RS_BLOCK_TABLE[(e-1)*4+0];case Ne.M:return gA.RS_BLOCK_TABLE[(e-1)*4+1];case Ne.Q:return gA.RS_BLOCK_TABLE[(e-1)*4+2];case Ne.H:return gA.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};var ca=gA;function jr(){this.buffer=new Array,this.length=0}jr.prototype={get:function(e){var A=Math.floor(e/8);return(this.buffer[A]>>>7-e%8&1)==1},put:function(e,A){for(var r=0;r<A;r++)this.putBit((e>>>A-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var A=Math.floor(this.length/8);this.buffer.length<=A&&this.buffer.push(0),e&&(this.buffer[A]|=128>>>this.length%8),this.length++}};var ga=jr,aA={glog:function(e){if(e<1)throw new Error("glog("+e+")");return aA.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return aA.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var N=0;N<8;N++)aA.EXP_TABLE[N]=1<<N;for(var N=8;N<256;N++)aA.EXP_TABLE[N]=aA.EXP_TABLE[N-4]^aA.EXP_TABLE[N-5]^aA.EXP_TABLE[N-6]^aA.EXP_TABLE[N-8];for(var N=0;N<255;N++)aA.LOG_TABLE[aA.EXP_TABLE[N]]=N;var zr=aA,YA=zr;function Ve(e,A){if(e.length==null)throw new Error(e.length+"/"+A);for(var r=0;r<e.length&&e[r]==0;)r++;this.num=new Array(e.length-r+A);for(var t=0;t<e.length-r;t++)this.num[t]=e[t+r]}Ve.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var A=new Array(this.getLength()+e.getLength()-1),r=0;r<this.getLength();r++)for(var t=0;t<e.getLength();t++)A[r+t]^=YA.gexp(YA.glog(this.get(r))+YA.glog(e.get(t)));return new Ve(A,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var A=YA.glog(this.get(0))-YA.glog(e.get(0)),r=new Array(this.getLength()),t=0;t<this.getLength();t++)r[t]=this.get(t);for(var t=0;t<e.getLength();t++)r[t]^=YA.gexp(YA.glog(e.get(t))+A);return new Ve(r,0).mod(e)}};var qr=Ve,tA=Wr,$r=qr,la=zr,KA={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},V={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function(e){for(var A=e<<10;V.getBCHDigit(A)-V.getBCHDigit(V.G15)>=0;)A^=V.G15<<V.getBCHDigit(A)-V.getBCHDigit(V.G15);return(e<<10|A)^V.G15_MASK},getBCHTypeNumber:function(e){for(var A=e<<12;V.getBCHDigit(A)-V.getBCHDigit(V.G18)>=0;)A^=V.G18<<V.getBCHDigit(A)-V.getBCHDigit(V.G18);return e<<12|A},getBCHDigit:function(e){for(var A=0;e!=0;)A++,e>>>=1;return A},getPatternPosition:function(e){return V.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,A,r){switch(e){case KA.PATTERN000:return(A+r)%2==0;case KA.PATTERN001:return A%2==0;case KA.PATTERN010:return r%3==0;case KA.PATTERN011:return(A+r)%3==0;case KA.PATTERN100:return(Math.floor(A/2)+Math.floor(r/3))%2==0;case KA.PATTERN101:return A*r%2+A*r%3==0;case KA.PATTERN110:return(A*r%2+A*r%3)%2==0;case KA.PATTERN111:return(A*r%3+(A+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var A=new $r([1],0),r=0;r<e;r++)A=A.multiply(new $r([1,la.gexp(r)],0));return A},getLengthInBits:function(e,A){if(1<=A&&A<10)switch(e){case tA.MODE_NUMBER:return 10;case tA.MODE_ALPHA_NUM:return 9;case tA.MODE_8BIT_BYTE:return 8;case tA.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(A<27)switch(e){case tA.MODE_NUMBER:return 12;case tA.MODE_ALPHA_NUM:return 11;case tA.MODE_8BIT_BYTE:return 16;case tA.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(A<41)switch(e){case tA.MODE_NUMBER:return 14;case tA.MODE_ALPHA_NUM:return 13;case tA.MODE_8BIT_BYTE:return 16;case tA.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+A)},getLostPoint:function(e){for(var A=e.getModuleCount(),r=0,t=0;t<A;t++)for(var n=0;n<A;n++){for(var s=0,B=e.isDark(t,n),a=-1;a<=1;a++)if(!(t+a<0||A<=t+a))for(var i=-1;i<=1;i++)n+i<0||A<=n+i||a==0&&i==0||B==e.isDark(t+a,n+i)&&s++;s>5&&(r+=3+s-5)}for(var t=0;t<A-1;t++)for(var n=0;n<A-1;n++){var o=0;e.isDark(t,n)&&o++,e.isDark(t+1,n)&&o++,e.isDark(t,n+1)&&o++,e.isDark(t+1,n+1)&&o++,(o==0||o==4)&&(r+=3)}for(var t=0;t<A;t++)for(var n=0;n<A-6;n++)e.isDark(t,n)&&!e.isDark(t,n+1)&&e.isDark(t,n+2)&&e.isDark(t,n+3)&&e.isDark(t,n+4)&&!e.isDark(t,n+5)&&e.isDark(t,n+6)&&(r+=40);for(var n=0;n<A;n++)for(var t=0;t<A-6;t++)e.isDark(t,n)&&!e.isDark(t+1,n)&&e.isDark(t+2,n)&&e.isDark(t+3,n)&&e.isDark(t+4,n)&&!e.isDark(t+5,n)&&e.isDark(t+6,n)&&(r+=40);for(var u=0,n=0;n<A;n++)for(var t=0;t<A;t++)e.isDark(t,n)&&u++;var c=Math.abs(100*u/A/A-50)/5;return r+=c*10,r}},Qa=V,wa=ua,An=ca,en=ga,bA=Qa,fa=qr;function lA(e,A){this.typeNumber=e,this.errorCorrectLevel=A,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var AA=lA.prototype;AA.addData=function(e){var A=new wa(e);this.dataList.push(A),this.dataCache=null};AA.isDark=function(e,A){if(e<0||this.moduleCount<=e||A<0||this.moduleCount<=A)throw new Error(e+","+A);return this.modules[e][A]};AA.getModuleCount=function(){return this.moduleCount};AA.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var A=An.getRSBlocks(e,this.errorCorrectLevel),r=new en,t=0,n=0;n<A.length;n++)t+=A[n].dataCount;for(var n=0;n<this.dataList.length;n++){var s=this.dataList[n];r.put(s.mode,4),r.put(s.getLength(),bA.getLengthInBits(s.mode,e)),s.write(r)}if(r.getLengthInBits()<=t*8)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())};AA.makeImpl=function(e,A){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var t=0;t<this.moduleCount;t++)this.modules[r][t]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,A),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=lA.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,A)};AA.setupPositionProbePattern=function(e,A){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var t=-1;t<=7;t++)A+t<=-1||this.moduleCount<=A+t||(0<=r&&r<=6&&(t==0||t==6)||0<=t&&t<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=t&&t<=4?this.modules[e+r][A+t]=!0:this.modules[e+r][A+t]=!1)};AA.getBestMaskPattern=function(){for(var e=0,A=0,r=0;r<8;r++){this.makeImpl(!0,r);var t=bA.getLostPoint(this);(r==0||e>t)&&(e=t,A=r)}return A};AA.createMovieClip=function(e,A,r){var t=e.createEmptyMovieClip(A,r),n=1;this.make();for(var s=0;s<this.modules.length;s++)for(var B=s*n,a=0;a<this.modules[s].length;a++){var i=a*n,o=this.modules[s][a];o&&(t.beginFill(0,100),t.moveTo(i,B),t.lineTo(i+n,B),t.lineTo(i+n,B+n),t.lineTo(i,B+n),t.endFill())}return t};AA.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var A=8;A<this.moduleCount-8;A++)this.modules[6][A]==null&&(this.modules[6][A]=A%2==0)};AA.setupPositionAdjustPattern=function(){for(var e=bA.getPatternPosition(this.typeNumber),A=0;A<e.length;A++)for(var r=0;r<e.length;r++){var t=e[A],n=e[r];if(this.modules[t][n]==null)for(var s=-2;s<=2;s++)for(var B=-2;B<=2;B++)s==-2||s==2||B==-2||B==2||s==0&&B==0?this.modules[t+s][n+B]=!0:this.modules[t+s][n+B]=!1}};AA.setupTypeNumber=function(e){for(var A=bA.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var t=!e&&(A>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=t}for(var r=0;r<18;r++){var t=!e&&(A>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=t}};AA.setupTypeInfo=function(e,A){for(var r=this.errorCorrectLevel<<3|A,t=bA.getBCHTypeInfo(r),n=0;n<15;n++){var s=!e&&(t>>n&1)==1;n<6?this.modules[n][8]=s:n<8?this.modules[n+1][8]=s:this.modules[this.moduleCount-15+n][8]=s}for(var n=0;n<15;n++){var s=!e&&(t>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=s:n<9?this.modules[8][15-n-1+1]=s:this.modules[8][15-n-1]=s}this.modules[this.moduleCount-8][8]=!e};AA.mapData=function(e,A){for(var r=-1,t=this.moduleCount-1,n=7,s=0,B=this.moduleCount-1;B>0;B-=2)for(B==6&&B--;;){for(var a=0;a<2;a++)if(this.modules[t][B-a]==null){var i=!1;s<e.length&&(i=(e[s]>>>n&1)==1);var o=bA.getMask(A,t,B-a);o&&(i=!i),this.modules[t][B-a]=i,n--,n==-1&&(s++,n=7)}if(t+=r,t<0||this.moduleCount<=t){t-=r,r=-r;break}}};lA.PAD0=236;lA.PAD1=17;lA.createData=function(e,A,r){for(var t=An.getRSBlocks(e,A),n=new en,s=0;s<r.length;s++){var B=r[s];n.put(B.mode,4),n.put(B.getLength(),bA.getLengthInBits(B.mode,e)),B.write(n)}for(var a=0,s=0;s<t.length;s++)a+=t[s].dataCount;if(n.getLengthInBits()>a*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+a*8+")");for(n.getLengthInBits()+4<=a*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=a*8||(n.put(lA.PAD0,8),n.getLengthInBits()>=a*8));)n.put(lA.PAD1,8);return lA.createBytes(n,t)};lA.createBytes=function(e,A){for(var r=0,t=0,n=0,s=new Array(A.length),B=new Array(A.length),a=0;a<A.length;a++){var i=A[a].dataCount,o=A[a].totalCount-i;t=Math.max(t,i),n=Math.max(n,o),s[a]=new Array(i);for(var u=0;u<s[a].length;u++)s[a][u]=255&e.buffer[u+r];r+=i;var c=bA.getErrorCorrectPolynomial(o),g=new fa(s[a],c.getLength()-1),C=g.mod(c);B[a]=new Array(c.getLength()-1);for(var u=0;u<B[a].length;u++){var l=u+C.getLength()-B[a].length;B[a][u]=l>=0?C.get(l):0}}for(var w=0,u=0;u<A.length;u++)w+=A[u].totalCount;for(var p=new Array(w),f=0,u=0;u<t;u++)for(var a=0;a<A.length;a++)u<s[a].length&&(p[f++]=s[a][u]);for(var u=0;u<n;u++)for(var a=0;a<A.length;a++)u<B[a].length&&(p[f++]=B[a][u]);return p};var Ca=lA,tn="H",ha=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function rn(e,A){var r=Nt[A],t=new Ca(-1,r);return t.addData(Ua(e)),t.make(),t}function nn(e){return e in Nt}function Ua(e){for(var A="",r=0;r<e.length;r++){var t=e.charCodeAt(r);t<128?A+=String.fromCharCode(t):t<2048?(A+=String.fromCharCode(192|t>>6),A+=String.fromCharCode(128|t&63)):t<55296||t>=57344?(A+=String.fromCharCode(224|t>>12),A+=String.fromCharCode(128|t>>6&63),A+=String.fromCharCode(128|t&63)):(r++,t=65536+((t&1023)<<10|e.charCodeAt(r)&1023),A+=String.fromCharCode(240|t>>18),A+=String.fromCharCode(128|t>>12&63),A+=String.fromCharCode(128|t>>6&63),A+=String.fromCharCode(128|t&63))}return A}function sn(e,A){A===void 0&&(A=0);var r=[];return e.forEach(function(t,n){var s=null;t.forEach(function(B,a){if(!B&&s!==null){r.push("M"+(s+A)+" "+(n+A)+"h"+(a-s)+"v1H"+(s+A)+"z"),s=null;return}if(a===t.length-1){if(!B)return;s===null?r.push("M"+(a+A)+","+(n+A)+" h1v1H"+(a+A)+"z"):r.push("M"+(s+A)+","+(n+A)+" h"+(a+1-s)+"v1H"+(s+A)+"z");return}B&&s===null&&(s=a)})}),r.join("")}var Vt={value:{type:String,required:!0,default:""},size:{type:Number,default:100},level:{type:String,default:tn,validator:function(e){return nn(e)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:0}},Fa=Ge(Ge({},Vt),{renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}}),da=JA({name:"QRCodeSvg",props:Vt,setup:function(e){var A=Ot(0),r=Ot(""),t=function(){var n=e.value,s=e.level,B=e.margin,a=rn(n,s).modules;A.value=a.length+B*2,r.value=sn(a,B)};return t(),Pr(t),function(){return we("svg",{width:e.size,height:e.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+A.value+" "+A.value},[we("path",{fill:e.background,d:"M0,0 h"+A.value+"v"+A.value+"H0z"}),we("path",{fill:e.foreground,d:r.value})])}}}),pa=JA({name:"QRCodeCanvas",props:Vt,setup:function(e){var A=Ot(null),r=function(){var t=e.value,n=e.level,s=e.size,B=e.margin,a=e.background,i=e.foreground,o=rn(t,n).modules,u=o.length+B*2,c=A.value;if(!!c){var g=c.getContext("2d");if(!!g){var C=window.devicePixelRatio||1,l=s/u*C;c.height=c.width=s*C,g.scale(l,l),g.fillStyle=a,g.fillRect(0,0,u,u),g.fillStyle=i,ha?g.fill(new Path2D(sn(o,B))):o.forEach(function(w,p){w.forEach(function(f,U){f&&g.fillRect(U+B,p+B,1,1)})})}}};return TB(r),Pr(r),function(){return we("canvas",{ref:A,style:{width:e.size+"px",height:e.size+"px"}})}}}),Ea=JA({name:"Qrcode",render:function(){var e=this.$props,A=e.renderAs,r=e.value,t=e.size,n=e.margin,s=e.level,B=e.background,a=e.foreground,i=t>>>0,o=n>>>0,u=nn(s)?s:tn;return we(A==="svg"?da:pa,{value:r,size:i,margin:o,level:u,background:B,foreground:a})},props:Fa});/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Pt=function(e,A){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},Pt(e,A)};function iA(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Pt(e,A);function r(){this.constructor=e}e.prototype=A===null?Object.create(A):(r.prototype=A.prototype,new r)}var kt=function(){return kt=Object.assign||function(A){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(A[s]=r[s])}return A},kt.apply(this,arguments)};function Z(e,A,r,t){function n(s){return s instanceof r?s:new r(function(B){B(s)})}return new(r||(r=Promise))(function(s,B){function a(u){try{o(t.next(u))}catch(c){B(c)}}function i(u){try{o(t.throw(u))}catch(c){B(c)}}function o(u){u.done?s(u.value):n(u.value).then(a,i)}o((t=t.apply(e,A||[])).next())})}function J(e,A){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},t,n,s,B;return B={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(B[Symbol.iterator]=function(){return this}),B;function a(o){return function(u){return i([o,u])}}function i(o){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,n&&(s=o[0]&2?n.return:o[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,o[1])).done)return s;switch(n=0,s&&(o=[o[0]&2,s.value]),o[0]){case 0:case 1:s=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,n=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(o[0]===6&&r.label<s[1]){r.label=s[1],s=o;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(o);break}s[2]&&r.ops.pop(),r.trys.pop();continue}o=A.call(e,r)}catch(u){o=[6,u],n=0}finally{t=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function Pe(e,A,r){if(r||arguments.length===2)for(var t=0,n=A.length,s;t<n;t++)(s||!(t in A))&&(s||(s=Array.prototype.slice.call(A,0,t)),s[t]=A[t]);return e.concat(s||A)}var dA=function(){function e(A,r,t,n){this.left=A,this.top=r,this.width=t,this.height=n}return e.prototype.add=function(A,r,t,n){return new e(this.left+A,this.top+r,this.width+t,this.height+n)},e.fromClientRect=function(A,r){return new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(A,r){var t=Array.from(r).find(function(n){return n.width!==0});return t?new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),ke=function(e,A){return dA.fromClientRect(e,A.getBoundingClientRect())},va=function(e){var A=e.body,r=e.documentElement;if(!A||!r)throw new Error("Unable to get document size");var t=Math.max(Math.max(A.scrollWidth,r.scrollWidth),Math.max(A.offsetWidth,r.offsetWidth),Math.max(A.clientWidth,r.clientWidth)),n=Math.max(Math.max(A.scrollHeight,r.scrollHeight),Math.max(A.offsetHeight,r.offsetHeight),Math.max(A.clientHeight,r.clientHeight));return new dA(0,0,t,n)},Xe=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var s=e.charCodeAt(r++);(s&64512)==56320?A.push(((n&1023)<<10)+(s&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},x=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,s="";++n<r;){var B=e[n];B<=65535?t.push(B):(B-=65536,t.push((B>>10)+55296,B%1024+56320)),(n+1===r||t.length>16384)&&(s+=String.fromCharCode.apply(String,t),t.length=0)}return s},Bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ha=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Je=0;Je<Bn.length;Je++)Ha[Bn.charCodeAt(Je)]=Je;var an="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",he=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var Ye=0;Ye<an.length;Ye++)he[an.charCodeAt(Ye)]=Ye;var Ia=function(e){var A=e.length*.75,r=e.length,t,n=0,s,B,a,i;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var o=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(A):new Array(A),u=Array.isArray(o)?o:new Uint8Array(o);for(t=0;t<r;t+=4)s=he[e.charCodeAt(t)],B=he[e.charCodeAt(t+1)],a=he[e.charCodeAt(t+2)],i=he[e.charCodeAt(t+3)],u[n++]=s<<2|B>>4,u[n++]=(B&15)<<4|a>>2,u[n++]=(a&3)<<6|i&63;return o},ma=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},ya=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},WA=5,Xt=6+5,Jt=2,La=Xt-WA,on=65536>>WA,Ka=1<<WA,Yt=Ka-1,ba=1024>>WA,Ta=on+ba,Sa=Ta,Da=2048>>6,xa=Sa+Da,Oa=65536>>Xt,Ma=1<<La,_a=Ma-1,un=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},Ra=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},Ga=function(e,A){var r=Ia(e),t=Array.isArray(r)?ya(r):new Uint32Array(r),n=Array.isArray(r)?ma(r):new Uint16Array(r),s=24,B=un(n,s/2,t[4]/2),a=t[5]===2?un(n,(s+t[4])/2):Ra(t,Math.ceil((s+t[4])/4));return new Na(t[0],t[1],t[2],t[3],B,a)},Na=function(){function e(A,r,t,n,s,B){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=s,this.data=B}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>WA],r=(r<<Jt)+(A&Yt),this.data[r];if(A<=65535)return r=this.index[on+(A-55296>>WA)],r=(r<<Jt)+(A&Yt),this.data[r];if(A<this.highStart)return r=xa-Oa+(A>>Xt),r=this.index[r],r+=A>>WA&_a,r=this.index[r],r=(r<<Jt)+(A&Yt),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Va=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var We=0;We<cn.length;We++)Va[cn.charCodeAt(We)]=We;var Pa=" ",gn=50,ka=1,ln=2,Qn=3,Xa=4,Ja=5,wn=7,fn=8,Cn=9,TA=10,Wt=11,hn=12,Zt=13,Ya=14,Ue=15,jt=16,Ze=17,Fe=18,Wa=19,Un=20,zt=21,de=22,qt=23,te=24,eA=25,pe=26,Ee=27,re=28,Za=29,ZA=30,ja=31,je=32,ze=33,$t=34,Ar=35,er=36,ve=37,tr=38,qe=39,$e=40,rr=41,Fn=42,za=43,qa=[9001,65288],dn="!",H="\xD7",At="\xF7",nr=Ga(Pa),pA=[ZA,er],sr=[ka,ln,Qn,Ja],pn=[TA,fn],En=[Ee,pe],$a=sr.concat(pn),vn=[tr,qe,$e,$t,Ar],Ai=[Ue,Zt],ei=function(e,A){A===void 0&&(A="strict");var r=[],t=[],n=[];return e.forEach(function(s,B){var a=nr.get(s);if(a>gn?(n.push(!0),a-=gn):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return t.push(B),r.push(jt);if(a===Xa||a===Wt){if(B===0)return t.push(B),r.push(ZA);var i=r[B-1];return $a.indexOf(i)===-1?(t.push(t[B-1]),r.push(i)):(t.push(B),r.push(ZA))}if(t.push(B),a===ja)return r.push(A==="strict"?zt:ve);if(a===Fn||a===Za)return r.push(ZA);if(a===za)return s>=131072&&s<=196605||s>=196608&&s<=262141?r.push(ve):r.push(ZA);r.push(a)}),[t,r,n]},Br=function(e,A,r,t){var n=t[r];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var s=r;s<=t.length;){s++;var B=t[s];if(B===A)return!0;if(B!==TA)break}if(n===TA)for(var s=r;s>0;){s--;var a=t[s];if(Array.isArray(e)?e.indexOf(a)!==-1:e===a)for(var i=r;i<=t.length;){i++;var B=t[i];if(B===A)return!0;if(B!==TA)break}if(a!==TA)break}return!1},Hn=function(e,A){for(var r=e;r>=0;){var t=A[r];if(t===TA)r--;else return t}return 0},ti=function(e,A,r,t,n){if(r[t]===0)return H;var s=t-1;if(Array.isArray(n)&&n[s]===!0)return H;var B=s-1,a=s+1,i=A[s],o=B>=0?A[B]:0,u=A[a];if(i===ln&&u===Qn)return H;if(sr.indexOf(i)!==-1)return dn;if(sr.indexOf(u)!==-1||pn.indexOf(u)!==-1)return H;if(Hn(s,A)===fn)return At;if(nr.get(e[s])===Wt||(i===je||i===ze)&&nr.get(e[a])===Wt||i===wn||u===wn||i===Cn||[TA,Zt,Ue].indexOf(i)===-1&&u===Cn||[Ze,Fe,Wa,te,re].indexOf(u)!==-1||Hn(s,A)===de||Br(qt,de,s,A)||Br([Ze,Fe],zt,s,A)||Br(hn,hn,s,A))return H;if(i===TA)return At;if(i===qt||u===qt)return H;if(u===jt||i===jt)return At;if([Zt,Ue,zt].indexOf(u)!==-1||i===Ya||o===er&&Ai.indexOf(i)!==-1||i===re&&u===er||u===Un||pA.indexOf(u)!==-1&&i===eA||pA.indexOf(i)!==-1&&u===eA||i===Ee&&[ve,je,ze].indexOf(u)!==-1||[ve,je,ze].indexOf(i)!==-1&&u===pe||pA.indexOf(i)!==-1&&En.indexOf(u)!==-1||En.indexOf(i)!==-1&&pA.indexOf(u)!==-1||[Ee,pe].indexOf(i)!==-1&&(u===eA||[de,Ue].indexOf(u)!==-1&&A[a+1]===eA)||[de,Ue].indexOf(i)!==-1&&u===eA||i===eA&&[eA,re,te].indexOf(u)!==-1)return H;if([eA,re,te,Ze,Fe].indexOf(u)!==-1)for(var c=s;c>=0;){var g=A[c];if(g===eA)return H;if([re,te].indexOf(g)!==-1)c--;else break}if([Ee,pe].indexOf(u)!==-1)for(var c=[Ze,Fe].indexOf(i)!==-1?B:s;c>=0;){var g=A[c];if(g===eA)return H;if([re,te].indexOf(g)!==-1)c--;else break}if(tr===i&&[tr,qe,$t,Ar].indexOf(u)!==-1||[qe,$t].indexOf(i)!==-1&&[qe,$e].indexOf(u)!==-1||[$e,Ar].indexOf(i)!==-1&&u===$e||vn.indexOf(i)!==-1&&[Un,pe].indexOf(u)!==-1||vn.indexOf(u)!==-1&&i===Ee||pA.indexOf(i)!==-1&&pA.indexOf(u)!==-1||i===te&&pA.indexOf(u)!==-1||pA.concat(eA).indexOf(i)!==-1&&u===de&&qa.indexOf(e[a])===-1||pA.concat(eA).indexOf(u)!==-1&&i===Fe)return H;if(i===rr&&u===rr){for(var C=r[s],l=1;C>0&&(C--,A[C]===rr);)l++;if(l%2!=0)return H}return i===je&&u===ze?H:At},ri=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var r=ei(e,A.lineBreak),t=r[0],n=r[1],s=r[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(a){return[eA,ZA,Fn].indexOf(a)!==-1?ve:a}));var B=A.wordBreak==="keep-all"?s.map(function(a,i){return a&&e[i]>=19968&&e[i]<=40959}):void 0;return[t,n,B]},ni=function(){function e(A,r,t,n){this.codePoints=A,this.required=r===dn,this.start=t,this.end=n}return e.prototype.slice=function(){return x.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),si=function(e,A){var r=Xe(e),t=ri(r,A),n=t[0],s=t[1],B=t[2],a=r.length,i=0,o=0;return{next:function(){if(o>=a)return{done:!0,value:null};for(var u=H;o<a&&(u=ti(r,s,n,++o,B))===H;);if(u!==H||o===a){var c=new ni(r,u,i,o);return i=o,{value:c,done:!1}}return{done:!0,value:null}}}},Bi=1<<0,ai=1<<1,He=1<<2,In=1<<3,et=10,mn=47,Ie=92,ii=9,oi=32,tt=34,me=61,ui=35,ci=36,gi=37,rt=39,nt=40,ye=41,li=95,z=45,Qi=33,wi=60,fi=62,Ci=64,hi=91,Ui=93,Fi=61,di=123,st=63,pi=125,yn=124,Ei=126,vi=128,Ln=65533,ar=42,jA=43,Hi=44,Ii=58,mi=59,Le=46,yi=0,Li=8,Ki=11,bi=14,Ti=31,Si=127,QA=-1,Kn=48,bn=97,Tn=101,Di=102,xi=117,Oi=122,Sn=65,Dn=69,xn=70,Mi=85,_i=90,Y=function(e){return e>=Kn&&e<=57},Ri=function(e){return e>=55296&&e<=57343},ne=function(e){return Y(e)||e>=Sn&&e<=xn||e>=bn&&e<=Di},Gi=function(e){return e>=bn&&e<=Oi},Ni=function(e){return e>=Sn&&e<=_i},Vi=function(e){return Gi(e)||Ni(e)},Pi=function(e){return e>=vi},Bt=function(e){return e===et||e===ii||e===oi},at=function(e){return Vi(e)||Pi(e)||e===li},On=function(e){return at(e)||Y(e)||e===z},ki=function(e){return e>=yi&&e<=Li||e===Ki||e>=bi&&e<=Ti||e===Si},SA=function(e,A){return e!==Ie?!1:A!==et},it=function(e,A,r){return e===z?at(A)||SA(A,r):at(e)?!0:!!(e===Ie&&SA(e,A))},ir=function(e,A,r){return e===jA||e===z?Y(A)?!0:A===Le&&Y(r):Y(e===Le?A:e)},Xi=function(e){var A=0,r=1;(e[A]===jA||e[A]===z)&&(e[A]===z&&(r=-1),A++);for(var t=[];Y(e[A]);)t.push(e[A++]);var n=t.length?parseInt(x.apply(void 0,t),10):0;e[A]===Le&&A++;for(var s=[];Y(e[A]);)s.push(e[A++]);var B=s.length,a=B?parseInt(x.apply(void 0,s),10):0;(e[A]===Dn||e[A]===Tn)&&A++;var i=1;(e[A]===jA||e[A]===z)&&(e[A]===z&&(i=-1),A++);for(var o=[];Y(e[A]);)o.push(e[A++]);var u=o.length?parseInt(x.apply(void 0,o),10):0;return r*(n+a*Math.pow(10,-B))*Math.pow(10,i*u)},Ji={type:2},Yi={type:3},Wi={type:4},Zi={type:13},ji={type:8},zi={type:21},qi={type:9},$i={type:10},Ao={type:11},eo={type:12},to={type:14},ot={type:23},ro={type:1},no={type:25},so={type:24},Bo={type:26},ao={type:27},io={type:28},oo={type:29},uo={type:31},or={type:32},Mn=function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(Xe(A))},e.prototype.read=function(){for(var A=[],r=this.consumeToken();r!==or;)A.push(r),r=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case tt:return this.consumeStringToken(tt);case ui:var r=this.peekCodePoint(0),t=this.peekCodePoint(1),n=this.peekCodePoint(2);if(On(r)||SA(t,n)){var s=it(r,t,n)?ai:Bi,B=this.consumeName();return{type:5,value:B,flags:s}}break;case ci:if(this.peekCodePoint(0)===me)return this.consumeCodePoint(),Zi;break;case rt:return this.consumeStringToken(rt);case nt:return Ji;case ye:return Yi;case ar:if(this.peekCodePoint(0)===me)return this.consumeCodePoint(),to;break;case jA:if(ir(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Hi:return Wi;case z:var a=A,i=this.peekCodePoint(0),o=this.peekCodePoint(1);if(ir(a,i,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(it(a,i,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(i===z&&o===fi)return this.consumeCodePoint(),this.consumeCodePoint(),so;break;case Le:if(ir(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case mn:if(this.peekCodePoint(0)===ar)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===ar&&(u=this.consumeCodePoint(),u===mn))return this.consumeToken();if(u===QA)return this.consumeToken()}break;case Ii:return Bo;case mi:return ao;case wi:if(this.peekCodePoint(0)===Qi&&this.peekCodePoint(1)===z&&this.peekCodePoint(2)===z)return this.consumeCodePoint(),this.consumeCodePoint(),no;break;case Ci:var c=this.peekCodePoint(0),g=this.peekCodePoint(1),C=this.peekCodePoint(2);if(it(c,g,C)){var B=this.consumeName();return{type:7,value:B}}break;case hi:return io;case Ie:if(SA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case Ui:return oo;case Fi:if(this.peekCodePoint(0)===me)return this.consumeCodePoint(),ji;break;case di:return Ao;case pi:return eo;case xi:case Mi:var l=this.peekCodePoint(0),w=this.peekCodePoint(1);return l===jA&&(ne(w)||w===st)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case yn:if(this.peekCodePoint(0)===me)return this.consumeCodePoint(),qi;if(this.peekCodePoint(0)===yn)return this.consumeCodePoint(),zi;break;case Ei:if(this.peekCodePoint(0)===me)return this.consumeCodePoint(),$i;break;case QA:return or}return Bt(A)?(this.consumeWhiteSpace(),uo):Y(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):at(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:x(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A=="undefined"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],r=this.consumeCodePoint();ne(r)&&A.length<6;)A.push(r),r=this.consumeCodePoint();for(var t=!1;r===st&&A.length<6;)A.push(r),r=this.consumeCodePoint(),t=!0;if(t){var n=parseInt(x.apply(void 0,A.map(function(i){return i===st?Kn:i})),16),s=parseInt(x.apply(void 0,A.map(function(i){return i===st?xn:i})),16);return{type:30,start:n,end:s}}var B=parseInt(x.apply(void 0,A),16);if(this.peekCodePoint(0)===z&&ne(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var a=[];ne(r)&&a.length<6;)a.push(r),r=this.consumeCodePoint();var s=parseInt(x.apply(void 0,a),16);return{type:30,start:B,end:s}}else return{type:30,start:B,end:B}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===nt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===nt?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===QA)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===rt||r===tt){var t=this.consumeStringToken(this.consumeCodePoint());return t.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===QA||this.peekCodePoint(0)===ye)?(this.consumeCodePoint(),{type:22,value:t.value}):(this.consumeBadUrlRemnants(),ot)}for(;;){var n=this.consumeCodePoint();if(n===QA||n===ye)return{type:22,value:x.apply(void 0,A)};if(Bt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===QA||this.peekCodePoint(0)===ye?(this.consumeCodePoint(),{type:22,value:x.apply(void 0,A)}):(this.consumeBadUrlRemnants(),ot);if(n===tt||n===rt||n===nt||ki(n))return this.consumeBadUrlRemnants(),ot;if(n===Ie)if(SA(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ot;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Bt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===ye||A===QA)return;SA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var r=5e4,t="";A>0;){var n=Math.min(r,A);t+=x.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(A){var r="",t=0;do{var n=this._value[t];if(n===QA||n===void 0||n===A)return r+=this.consumeStringSlice(t),{type:0,value:r};if(n===et)return this._value.splice(0,t),ro;if(n===Ie){var s=this._value[t+1];s!==QA&&s!==void 0&&(s===et?(r+=this.consumeStringSlice(t),t=-1,this._value.shift()):SA(n,s)&&(r+=this.consumeStringSlice(t),r+=x(this.consumeEscapedCodePoint()),t=-1))}t++}while(!0)},e.prototype.consumeNumber=function(){var A=[],r=He,t=this.peekCodePoint(0);for((t===jA||t===z)&&A.push(this.consumeCodePoint());Y(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(t===Le&&Y(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=In;Y(this.peekCodePoint(0));)A.push(this.consumeCodePoint());t=this.peekCodePoint(0),n=this.peekCodePoint(1);var s=this.peekCodePoint(2);if((t===Dn||t===Tn)&&((n===jA||n===z)&&Y(s)||Y(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),r=In;Y(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[Xi(A),r]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),r=A[0],t=A[1],n=this.peekCodePoint(0),s=this.peekCodePoint(1),B=this.peekCodePoint(2);if(it(n,s,B)){var a=this.consumeName();return{type:15,number:r,flags:t,unit:a}}return n===gi?(this.consumeCodePoint(),{type:16,number:r,flags:t}):{type:17,number:r,flags:t}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(ne(A)){for(var r=x(A);ne(this.peekCodePoint(0))&&r.length<6;)r+=x(this.consumeCodePoint());Bt(this.peekCodePoint(0))&&this.consumeCodePoint();var t=parseInt(r,16);return t===0||Ri(t)||t>1114111?Ln:t}return A===QA?Ln:A},e.prototype.consumeName=function(){for(var A="";;){var r=this.consumeCodePoint();if(On(r))A+=x(r);else if(SA(r,this.peekCodePoint(0)))A+=x(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),A}},e}(),_n=function(){function e(A){this._tokens=A}return e.create=function(A){var r=new Mn;return r.write(A),new e(r.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var r=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var r=this.consumeComponentValue();if(r.type===32)return A;A.push(r),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var r={type:A,values:[]},t=this.consumeToken();;){if(t.type===32||go(t,A))return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue()),t=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var r={name:A.value,values:[],type:18};;){var t=this.consumeToken();if(t.type===32||t.type===3)return r;this.reconsumeToken(t),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A=="undefined"?or:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e}(),Ke=function(e){return e.type===15},se=function(e){return e.type===17},b=function(e){return e.type===20},co=function(e){return e.type===0},ur=function(e,A){return b(e)&&e.value===A},Rn=function(e){return e.type!==31},Be=function(e){return e.type!==31&&e.type!==4},wA=function(e){var A=[],r=[];return e.forEach(function(t){if(t.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(r),r=[];return}t.type!==31&&r.push(t)}),r.length&&A.push(r),A},go=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},DA=function(e){return e.type===17||e.type===15},M=function(e){return e.type===16||DA(e)},Gn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},P={type:17,number:0,flags:He},cr={type:16,number:50,flags:He},xA={type:16,number:100,flags:He},be=function(e,A,r){var t=e[0],n=e[1];return[T(t,A),T(typeof n!="undefined"?n:t,r)]},T=function(e,A){if(e.type===16)return e.number/100*A;if(Ke(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Nn="deg",Vn="grad",Pn="rad",kn="turn",ut={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Nn:return Math.PI*A.number/180;case Vn:return Math.PI/200*A.number;case Pn:return A.number;case kn:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Xn=function(e){return e.type===15&&(e.unit===Nn||e.unit===Vn||e.unit===Pn||e.unit===kn)},Jn=function(e){var A=e.filter(b).map(function(r){return r.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[P,P];case"to top":case"bottom":return rA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[P,xA];case"to right":case"left":return rA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[xA,xA];case"to bottom":case"top":return rA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[xA,P];case"to left":case"right":return rA(270)}return 0},rA=function(e){return Math.PI*e/180},OA={name:"color",parse:function(e,A){if(A.type===18){var r=lo[A.name];if(typeof r=="undefined")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return r(e,A.values)}if(A.type===5){if(A.value.length===3){var t=A.value.substring(0,1),n=A.value.substring(1,2),s=A.value.substring(2,3);return _A(parseInt(t+t,16),parseInt(n+n,16),parseInt(s+s,16),1)}if(A.value.length===4){var t=A.value.substring(0,1),n=A.value.substring(1,2),s=A.value.substring(2,3),B=A.value.substring(3,4);return _A(parseInt(t+t,16),parseInt(n+n,16),parseInt(s+s,16),parseInt(B+B,16)/255)}if(A.value.length===6){var t=A.value.substring(0,2),n=A.value.substring(2,4),s=A.value.substring(4,6);return _A(parseInt(t,16),parseInt(n,16),parseInt(s,16),1)}if(A.value.length===8){var t=A.value.substring(0,2),n=A.value.substring(2,4),s=A.value.substring(4,6),B=A.value.substring(6,8);return _A(parseInt(t,16),parseInt(n,16),parseInt(s,16),parseInt(B,16)/255)}}if(A.type===20){var a=EA[A.value.toUpperCase()];if(typeof a!="undefined")return a}return EA.TRANSPARENT}},MA=function(e){return(255&e)==0},G=function(e){var A=255&e,r=255&e>>8,t=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+t+","+r+","+A/255+")":"rgb("+n+","+t+","+r+")"},_A=function(e,A,r,t){return(e<<24|A<<16|r<<8|Math.round(t*255)<<0)>>>0},Yn=function(e,A){if(e.type===17)return e.number;if(e.type===16){var r=A===3?1:255;return A===3?e.number/100*r:Math.round(e.number/100*r)}return 0},Wn=function(e,A){var r=A.filter(Be);if(r.length===3){var t=r.map(Yn),n=t[0],s=t[1],B=t[2];return _A(n,s,B,1)}if(r.length===4){var a=r.map(Yn),n=a[0],s=a[1],B=a[2],i=a[3];return _A(n,s,B,i)}return 0};function gr(e,A,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(A-e)*r*6+e:r<1/2?A:r<2/3?(A-e)*6*(2/3-r)+e:e}var Zn=function(e,A){var r=A.filter(Be),t=r[0],n=r[1],s=r[2],B=r[3],a=(t.type===17?rA(t.number):ut.parse(e,t))/(Math.PI*2),i=M(n)?n.number/100:0,o=M(s)?s.number/100:0,u=typeof B!="undefined"&&M(B)?T(B,1):1;if(i===0)return _A(o*255,o*255,o*255,1);var c=o<=.5?o*(i+1):o+i-o*i,g=o*2-c,C=gr(g,c,a+1/3),l=gr(g,c,a),w=gr(g,c,a-1/3);return _A(C*255,l*255,w*255,u)},lo={hsl:Zn,hsla:Zn,rgb:Wn,rgba:Wn},Te=function(e,A){return OA.parse(e,_n.create(A).parseComponentValue())},EA={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},Qo={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(b(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wo={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ct=function(e,A){var r=OA.parse(e,A[0]),t=A[1];return t&&M(t)?{color:r,stop:t}:{color:r,stop:null}},jn=function(e,A){var r=e[0],t=e[e.length-1];r.stop===null&&(r.stop=P),t.stop===null&&(t.stop=xA);for(var n=[],s=0,B=0;B<e.length;B++){var a=e[B].stop;if(a!==null){var i=T(a,A);i>s?n.push(i):n.push(s),s=i}else n.push(null)}for(var o=null,B=0;B<n.length;B++){var u=n[B];if(u===null)o===null&&(o=B);else if(o!==null){for(var c=B-o,g=n[o-1],C=(u-g)/(c+1),l=1;l<=c;l++)n[o+l-1]=C*l;o=null}}return e.map(function(w,p){var f=w.color;return{color:f,stop:Math.max(Math.min(1,n[p]/A),0)}})},fo=function(e,A,r){var t=A/2,n=r/2,s=T(e[0],A)-t,B=n-T(e[1],r);return(Math.atan2(B,s)+Math.PI*2)%(Math.PI*2)},Co=function(e,A,r){var t=typeof e=="number"?e:fo(e,A,r),n=Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)),s=A/2,B=r/2,a=n/2,i=Math.sin(t-Math.PI/2)*a,o=Math.cos(t-Math.PI/2)*a;return[n,s-o,s+o,B-i,B+i]},oA=function(e,A){return Math.sqrt(e*e+A*A)},zn=function(e,A,r,t,n){var s=[[0,0],[0,A],[e,0],[e,A]];return s.reduce(function(B,a){var i=a[0],o=a[1],u=oA(r-i,t-o);return(n?u<B.optimumDistance:u>B.optimumDistance)?{optimumCorner:a,optimumDistance:u}:B},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},ho=function(e,A,r,t,n){var s=0,B=0;switch(e.size){case 0:e.shape===0?s=B=Math.min(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(s=Math.min(Math.abs(A),Math.abs(A-t)),B=Math.min(Math.abs(r),Math.abs(r-n)));break;case 2:if(e.shape===0)s=B=Math.min(oA(A,r),oA(A,r-n),oA(A-t,r),oA(A-t,r-n));else if(e.shape===1){var a=Math.min(Math.abs(r),Math.abs(r-n))/Math.min(Math.abs(A),Math.abs(A-t)),i=zn(t,n,A,r,!0),o=i[0],u=i[1];s=oA(o-A,(u-r)/a),B=a*s}break;case 1:e.shape===0?s=B=Math.max(Math.abs(A),Math.abs(A-t),Math.abs(r),Math.abs(r-n)):e.shape===1&&(s=Math.max(Math.abs(A),Math.abs(A-t)),B=Math.max(Math.abs(r),Math.abs(r-n)));break;case 3:if(e.shape===0)s=B=Math.max(oA(A,r),oA(A,r-n),oA(A-t,r),oA(A-t,r-n));else if(e.shape===1){var a=Math.max(Math.abs(r),Math.abs(r-n))/Math.max(Math.abs(A),Math.abs(A-t)),c=zn(t,n,A,r,!1),o=c[0],u=c[1];s=oA(o-A,(u-r)/a),B=a*s}break}return Array.isArray(e.size)&&(s=T(e.size[0],t),B=e.size.length===2?T(e.size[1],n):s),[s,B]},Uo=function(e,A){var r=rA(180),t=[];return wA(A).forEach(function(n,s){if(s===0){var B=n[0];if(B.type===20&&B.value==="to"){r=Jn(n);return}else if(Xn(B)){r=ut.parse(e,B);return}}var a=ct(e,n);t.push(a)}),{angle:r,stops:t,type:1}},gt=function(e,A){var r=rA(180),t=[];return wA(A).forEach(function(n,s){if(s===0){var B=n[0];if(B.type===20&&["top","left","right","bottom"].indexOf(B.value)!==-1){r=Jn(n);return}else if(Xn(B)){r=(ut.parse(e,B)+rA(270))%rA(360);return}}var a=ct(e,n);t.push(a)}),{angle:r,stops:t,type:1}},Fo=function(e,A){var r=rA(180),t=[],n=1,s=0,B=3,a=[];return wA(A).forEach(function(i,o){var u=i[0];if(o===0){if(b(u)&&u.value==="linear"){n=1;return}else if(b(u)&&u.value==="radial"){n=2;return}}if(u.type===18){if(u.name==="from"){var c=OA.parse(e,u.values[0]);t.push({stop:P,color:c})}else if(u.name==="to"){var c=OA.parse(e,u.values[0]);t.push({stop:xA,color:c})}else if(u.name==="color-stop"){var g=u.values.filter(Be);if(g.length===2){var c=OA.parse(e,g[1]),C=g[0];se(C)&&t.push({stop:{type:16,number:C.number*100,flags:C.flags},color:c})}}}}),n===1?{angle:(r+rA(180))%rA(360),stops:t,type:n}:{size:B,shape:s,stops:t,position:a,type:n}},qn="closest-side",$n="farthest-side",As="closest-corner",es="farthest-corner",ts="circle",rs="ellipse",ns="cover",ss="contain",po=function(e,A){var r=0,t=3,n=[],s=[];return wA(A).forEach(function(B,a){var i=!0;if(a===0){var o=!1;i=B.reduce(function(c,g){if(o)if(b(g))switch(g.value){case"center":return s.push(cr),c;case"top":case"left":return s.push(P),c;case"right":case"bottom":return s.push(xA),c}else(M(g)||DA(g))&&s.push(g);else if(b(g))switch(g.value){case ts:return r=0,!1;case rs:return r=1,!1;case"at":return o=!0,!1;case qn:return t=0,!1;case ns:case $n:return t=1,!1;case ss:case As:return t=2,!1;case es:return t=3,!1}else if(DA(g)||M(g))return Array.isArray(t)||(t=[]),t.push(g),!1;return c},i)}if(i){var u=ct(e,B);n.push(u)}}),{size:t,shape:r,stops:n,position:s,type:2}},lt=function(e,A){var r=0,t=3,n=[],s=[];return wA(A).forEach(function(B,a){var i=!0;if(a===0?i=B.reduce(function(u,c){if(b(c))switch(c.value){case"center":return s.push(cr),!1;case"top":case"left":return s.push(P),!1;case"right":case"bottom":return s.push(xA),!1}else if(M(c)||DA(c))return s.push(c),!1;return u},i):a===1&&(i=B.reduce(function(u,c){if(b(c))switch(c.value){case ts:return r=0,!1;case rs:return r=1,!1;case ss:case qn:return t=0,!1;case $n:return t=1,!1;case As:return t=2,!1;case ns:case es:return t=3,!1}else if(DA(c)||M(c))return Array.isArray(t)||(t=[]),t.push(c),!1;return u},i)),i){var o=ct(e,B);n.push(o)}}),{size:t,shape:r,stops:n,position:s,type:2}},Eo=function(e){return e.type===1},vo=function(e){return e.type===2},lr={name:"image",parse:function(e,A){if(A.type===22){var r={url:A.value,type:0};return e.cache.addImage(A.value),r}if(A.type===18){var t=Bs[A.name];if(typeof t=="undefined")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return t(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function Ho(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!Bs[e.name])}var Bs={"linear-gradient":Uo,"-moz-linear-gradient":gt,"-ms-linear-gradient":gt,"-o-linear-gradient":gt,"-webkit-linear-gradient":gt,"radial-gradient":po,"-moz-radial-gradient":lt,"-ms-radial-gradient":lt,"-o-radial-gradient":lt,"-webkit-radial-gradient":lt,"-webkit-gradient":Fo},Io={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A.filter(function(t){return Be(t)&&Ho(t)}).map(function(t){return lr.parse(e,t)})}},mo={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(r){if(b(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},yo={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return wA(A).map(function(r){return r.filter(M)}).map(Gn)}},Lo={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return wA(A).map(function(r){return r.filter(b).map(function(t){return t.value}).join(" ")}).map(Ko)}},Ko=function(e){switch(e){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}},ae;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(ae||(ae={}));var bo={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return wA(A).map(function(r){return r.filter(To)})}},To=function(e){return b(e)||M(e)},Qt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},So=Qt("top"),Do=Qt("right"),xo=Qt("bottom"),Oo=Qt("left"),wt=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,r){return Gn(r.filter(M))}}},Mo=wt("top-left"),_o=wt("top-right"),Ro=wt("bottom-right"),Go=wt("bottom-left"),ft=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},No=ft("top"),Vo=ft("right"),Po=ft("bottom"),ko=ft("left"),Ct=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,r){return Ke(r)?r.number:0}}},Xo=Ct("top"),Jo=Ct("right"),Yo=Ct("bottom"),Wo=Ct("left"),Zo={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jo={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},zo={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(b).reduce(function(r,t){return r|qo(t.value)},0)}},qo=function(e){switch(e){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},$o={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Au={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},ht;(function(e){e.NORMAL="normal",e.STRICT="strict"})(ht||(ht={}));var eu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"strict":return ht.STRICT;case"normal":default:return ht.NORMAL}}},tu={name:"line-height",initialValue:"normal",prefix:!1,type:4},as=function(e,A){return b(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:M(e)?T(e,A):A},ru={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:lr.parse(e,A)}},nu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Qr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){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}}},Ut=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},su=Ut("top"),Bu=Ut("right"),au=Ut("bottom"),iu=Ut("left"),ou={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(b).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},uu={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ft=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},cu=Ft("top"),gu=Ft("right"),lu=Ft("bottom"),Qu=Ft("left"),wu={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},fu={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Cu={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&ur(A[0],"none")?[]:wA(A).map(function(r){for(var t={color:EA.TRANSPARENT,offsetX:P,offsetY:P,blur:P},n=0,s=0;s<r.length;s++){var B=r[s];DA(B)?(n===0?t.offsetX=B:n===1?t.offsetY=B:t.blur=B,n++):t.color=OA.parse(e,B)}return t})}},hu={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Uu={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var r=pu[A.name];if(typeof r=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return r(A.values)}return null}},Fu=function(e){var A=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return A.length===6?A:null},du=function(e){var A=e.filter(function(i){return i.type===17}).map(function(i){return i.number}),r=A[0],t=A[1];A[2],A[3];var n=A[4],s=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var B=A[12],a=A[13];return A[14],A[15],A.length===16?[r,t,n,s,B,a]:null},pu={matrix:Fu,matrix3d:du},is={type:16,number:50,flags:He},Eu=[is,is],vu={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var r=A.filter(M);return r.length!==2?Eu:[r[0],r[1]]}},Hu={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Se;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Se||(Se={}));var Iu={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Se.BREAK_ALL;case"keep-all":return Se.KEEP_ALL;case"normal":default:return Se.NORMAL}}},mu={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(se(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},os={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},yu={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return se(A)?A.number:1}},Lu={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ku={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(b).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},bu={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var r=[],t=[];return A.forEach(function(n){switch(n.type){case 20:case 0:r.push(n.value);break;case 17:r.push(n.number.toString());break;case 4:t.push(r.join(" ")),r.length=0;break}}),r.length&&t.push(r.join(" ")),t.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},Tu={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Su={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){if(se(A))return A.number;if(b(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},Du={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(b).map(function(r){return r.value})}},xu={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},_=function(e,A){return(e&A)!=0},Ou={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var r=A[0];return r.type===20&&r.value==="none"?[]:A}},Mu={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;for(var t=[],n=A.filter(Rn),s=0;s<n.length;s++){var B=n[s],a=n[s+1];if(B.type===20){var i=a&&se(a)?a.number:1;t.push({counter:B.value,increment:i})}}return t}},_u={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var r=[],t=A.filter(Rn),n=0;n<t.length;n++){var s=t[n],B=t[n+1];if(b(s)&&s.value!=="none"){var a=B&&se(B)?B.number:0;r.push({counter:s.value,reset:a})}}return r}},Ru={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ke).map(function(r){return os.parse(e,r)})}},Gu={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var r=A[0];if(r.type===20&&r.value==="none")return null;var t=[],n=A.filter(co);if(n.length%2!=0)return null;for(var s=0;s<n.length;s+=2){var B=n[s].value,a=n[s+1].value;t.push({open:B,close:a})}return t}},us=function(e,A,r){if(!e)return"";var t=e[Math.min(A,e.length-1)];return t?r?t.open:t.close:""},Nu={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&ur(A[0],"none")?[]:wA(A).map(function(r){for(var t={color:255,offsetX:P,offsetY:P,blur:P,spread:P,inset:!1},n=0,s=0;s<r.length;s++){var B=r[s];ur(B,"inset")?t.inset=!0:DA(B)?(n===0?t.offsetX=B:n===1?t.offsetY=B:n===2?t.blur=B:t.spread=B,n++):t.color=OA.parse(e,B)}return t})}},Vu={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var r=[0,1,2],t=[];return A.filter(b).forEach(function(n){switch(n.value){case"stroke":t.push(1);break;case"fill":t.push(0);break;case"markers":t.push(2);break}}),r.forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),t}},Pu={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ku={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ke(A)?A.number:0}},Xu=function(){function e(A,r){var t,n;this.animationDuration=d(A,Ru,r.animationDuration),this.backgroundClip=d(A,Qo,r.backgroundClip),this.backgroundColor=d(A,wo,r.backgroundColor),this.backgroundImage=d(A,Io,r.backgroundImage),this.backgroundOrigin=d(A,mo,r.backgroundOrigin),this.backgroundPosition=d(A,yo,r.backgroundPosition),this.backgroundRepeat=d(A,Lo,r.backgroundRepeat),this.backgroundSize=d(A,bo,r.backgroundSize),this.borderTopColor=d(A,So,r.borderTopColor),this.borderRightColor=d(A,Do,r.borderRightColor),this.borderBottomColor=d(A,xo,r.borderBottomColor),this.borderLeftColor=d(A,Oo,r.borderLeftColor),this.borderTopLeftRadius=d(A,Mo,r.borderTopLeftRadius),this.borderTopRightRadius=d(A,_o,r.borderTopRightRadius),this.borderBottomRightRadius=d(A,Ro,r.borderBottomRightRadius),this.borderBottomLeftRadius=d(A,Go,r.borderBottomLeftRadius),this.borderTopStyle=d(A,No,r.borderTopStyle),this.borderRightStyle=d(A,Vo,r.borderRightStyle),this.borderBottomStyle=d(A,Po,r.borderBottomStyle),this.borderLeftStyle=d(A,ko,r.borderLeftStyle),this.borderTopWidth=d(A,Xo,r.borderTopWidth),this.borderRightWidth=d(A,Jo,r.borderRightWidth),this.borderBottomWidth=d(A,Yo,r.borderBottomWidth),this.borderLeftWidth=d(A,Wo,r.borderLeftWidth),this.boxShadow=d(A,Nu,r.boxShadow),this.color=d(A,Zo,r.color),this.direction=d(A,jo,r.direction),this.display=d(A,zo,r.display),this.float=d(A,$o,r.cssFloat),this.fontFamily=d(A,bu,r.fontFamily),this.fontSize=d(A,Tu,r.fontSize),this.fontStyle=d(A,xu,r.fontStyle),this.fontVariant=d(A,Du,r.fontVariant),this.fontWeight=d(A,Su,r.fontWeight),this.letterSpacing=d(A,Au,r.letterSpacing),this.lineBreak=d(A,eu,r.lineBreak),this.lineHeight=d(A,tu,r.lineHeight),this.listStyleImage=d(A,ru,r.listStyleImage),this.listStylePosition=d(A,nu,r.listStylePosition),this.listStyleType=d(A,Qr,r.listStyleType),this.marginTop=d(A,su,r.marginTop),this.marginRight=d(A,Bu,r.marginRight),this.marginBottom=d(A,au,r.marginBottom),this.marginLeft=d(A,iu,r.marginLeft),this.opacity=d(A,yu,r.opacity);var s=d(A,ou,r.overflow);this.overflowX=s[0],this.overflowY=s[s.length>1?1:0],this.overflowWrap=d(A,uu,r.overflowWrap),this.paddingTop=d(A,cu,r.paddingTop),this.paddingRight=d(A,gu,r.paddingRight),this.paddingBottom=d(A,lu,r.paddingBottom),this.paddingLeft=d(A,Qu,r.paddingLeft),this.paintOrder=d(A,Vu,r.paintOrder),this.position=d(A,fu,r.position),this.textAlign=d(A,wu,r.textAlign),this.textDecorationColor=d(A,Lu,(t=r.textDecorationColor)!==null&&t!==void 0?t:r.color),this.textDecorationLine=d(A,Ku,(n=r.textDecorationLine)!==null&&n!==void 0?n:r.textDecoration),this.textShadow=d(A,Cu,r.textShadow),this.textTransform=d(A,hu,r.textTransform),this.transform=d(A,Uu,r.transform),this.transformOrigin=d(A,vu,r.transformOrigin),this.visibility=d(A,Hu,r.visibility),this.webkitTextStrokeColor=d(A,Pu,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=d(A,ku,r.webkitTextStrokeWidth),this.wordBreak=d(A,Iu,r.wordBreak),this.zIndex=d(A,mu,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return MA(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return _(this.display,4)||_(this.display,33554432)||_(this.display,268435456)||_(this.display,536870912)||_(this.display,67108864)||_(this.display,134217728)},e}(),Ju=function(){function e(A,r){this.content=d(A,Ou,r.content),this.quotes=d(A,Gu,r.quotes)}return e}(),cs=function(){function e(A,r){this.counterIncrement=d(A,Mu,r.counterIncrement),this.counterReset=d(A,_u,r.counterReset)}return e}(),d=function(e,A,r){var t=new Mn,n=r!==null&&typeof r!="undefined"?r.toString():A.initialValue;t.write(n);var s=new _n(t.read());switch(A.type){case 2:var B=s.parseComponentValue();return A.parse(e,b(B)?B.value:A.initialValue);case 0:return A.parse(e,s.parseComponentValue());case 1:return A.parse(e,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(A.format){case"angle":return ut.parse(e,s.parseComponentValue());case"color":return OA.parse(e,s.parseComponentValue());case"image":return lr.parse(e,s.parseComponentValue());case"length":var a=s.parseComponentValue();return DA(a)?a:P;case"length-percentage":var i=s.parseComponentValue();return M(i)?i:P;case"time":return os.parse(e,s.parseComponentValue())}break}},Yu="data-html2canvas-debug",Wu=function(e){var A=e.getAttribute(Yu);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},wr=function(e,A){var r=Wu(e);return r===1||A===r},fA=function(){function e(A,r){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,wr(r,3))debugger;this.styles=new Xu(A,window.getComputedStyle(r,null)),Lr(r)&&(this.styles.animationDuration.some(function(t){return t>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=ke(this.context,r),wr(r,4)&&(this.flags|=16)}return e}(),Zu=" ",gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",De=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var dt=0;dt<gs.length;dt++)De[gs.charCodeAt(dt)]=dt;var ju=function(e){var A=e.length*.75,r=e.length,t,n=0,s,B,a,i;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var o=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(A):new Array(A),u=Array.isArray(o)?o:new Uint8Array(o);for(t=0;t<r;t+=4)s=De[e.charCodeAt(t)],B=De[e.charCodeAt(t+1)],a=De[e.charCodeAt(t+2)],i=De[e.charCodeAt(t+3)],u[n++]=s<<2|B>>4,u[n++]=(B&15)<<4|a>>2,u[n++]=(a&3)<<6|i&63;return o},zu=function(e){for(var A=e.length,r=[],t=0;t<A;t+=2)r.push(e[t+1]<<8|e[t]);return r},qu=function(e){for(var A=e.length,r=[],t=0;t<A;t+=4)r.push(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]);return r},zA=5,fr=6+5,Cr=2,$u=fr-zA,ls=65536>>zA,Ac=1<<zA,hr=Ac-1,ec=1024>>zA,tc=ls+ec,rc=tc,nc=2048>>6,sc=rc+nc,Bc=65536>>fr,ac=1<<$u,ic=ac-1,Qs=function(e,A,r){return e.slice?e.slice(A,r):new Uint16Array(Array.prototype.slice.call(e,A,r))},oc=function(e,A,r){return e.slice?e.slice(A,r):new Uint32Array(Array.prototype.slice.call(e,A,r))},uc=function(e,A){var r=ju(e),t=Array.isArray(r)?qu(r):new Uint32Array(r),n=Array.isArray(r)?zu(r):new Uint16Array(r),s=24,B=Qs(n,s/2,t[4]/2),a=t[5]===2?Qs(n,(s+t[4])/2):oc(t,Math.ceil((s+t[4])/4));return new cc(t[0],t[1],t[2],t[3],B,a)},cc=function(){function e(A,r,t,n,s,B){this.initialValue=A,this.errorValue=r,this.highStart=t,this.highValueIndex=n,this.index=s,this.data=B}return e.prototype.get=function(A){var r;if(A>=0){if(A<55296||A>56319&&A<=65535)return r=this.index[A>>zA],r=(r<<Cr)+(A&hr),this.data[r];if(A<=65535)return r=this.index[ls+(A-55296>>zA)],r=(r<<Cr)+(A&hr),this.data[r];if(A<this.highStart)return r=sc-Bc+(A>>fr),r=this.index[r],r+=A>>zA&ic,r=this.index[r],r=(r<<Cr)+(A&hr),this.data[r];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gc=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var pt=0;pt<ws.length;pt++)gc[ws.charCodeAt(pt)]=pt;var lc=1,Ur=2,Fr=3,fs=4,Cs=5,Qc=7,hs=8,dr=9,pr=10,Us=11,Fs=12,ds=13,ps=14,Er=15,wc=function(e){for(var A=[],r=0,t=e.length;r<t;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<t){var s=e.charCodeAt(r++);(s&64512)==56320?A.push(((n&1023)<<10)+(s&1023)+65536):(A.push(n),r--)}else A.push(n)}return A},fc=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var t=[],n=-1,s="";++n<r;){var B=e[n];B<=65535?t.push(B):(B-=65536,t.push((B>>10)+55296,B%1024+56320)),(n+1===r||t.length>16384)&&(s+=String.fromCharCode.apply(String,t),t.length=0)}return s},Cc=uc(Zu),nA="\xD7",vr="\xF7",hc=function(e){return Cc.get(e)},Uc=function(e,A,r){var t=r-2,n=A[t],s=A[r-1],B=A[r];if(s===Ur&&B===Fr)return nA;if(s===Ur||s===Fr||s===fs||B===Ur||B===Fr||B===fs)return vr;if(s===hs&&[hs,dr,Us,Fs].indexOf(B)!==-1||(s===Us||s===dr)&&(B===dr||B===pr)||(s===Fs||s===pr)&&B===pr||B===ds||B===Cs||B===Qc||s===lc)return nA;if(s===ds&&B===ps){for(;n===Cs;)n=A[--t];if(n===ps)return nA}if(s===Er&&B===Er){for(var a=0;n===Er;)a++,n=A[--t];if(a%2==0)return nA}return vr},Fc=function(e){var A=wc(e),r=A.length,t=0,n=0,s=A.map(hc);return{next:function(){if(t>=r)return{done:!0,value:null};for(var B=nA;t<r&&(B=Uc(A,s,++t))===nA;);if(B!==nA||t===r){var a=fc.apply(null,A.slice(n,t));return n=t,{value:a,done:!1}}return{done:!0,value:null}}}},dc=function(e){for(var A=Fc(e),r=[],t;!(t=A.next()).done;)t.value&&r.push(t.value.slice());return r},pc=function(e){var A=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var t=e.createElement("boundtest");t.style.height=A+"px",t.style.display="block",e.body.appendChild(t),r.selectNode(t);var n=r.getBoundingClientRect(),s=Math.round(n.height);if(e.body.removeChild(t),s===A)return!0}}return!1},Ec=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var r=e.createRange();A.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var t=A.firstChild,n=Xe(t.data).map(function(i){return x(i)}),s=0,B={},a=n.every(function(i,o){r.setStart(t,s),r.setEnd(t,s+i.length);var u=r.getBoundingClientRect();s+=i.length;var c=u.x>B.x||u.y>B.y;return B=u,o===0?!0:c});return e.body.removeChild(A),a},vc=function(){return typeof new Image().crossOrigin!="undefined"},Hc=function(){return typeof new XMLHttpRequest().responseType=="string"},Ic=function(e){var A=new Image,r=e.createElement("canvas"),t=r.getContext("2d");if(!t)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{t.drawImage(A,0,0),r.toDataURL()}catch{return!1}return!0},Es=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},mc=function(e){var A=e.createElement("canvas"),r=100;A.width=r,A.height=r;var t=A.getContext("2d");if(!t)return Promise.reject(!1);t.fillStyle="rgb(0, 255, 0)",t.fillRect(0,0,r,r);var n=new Image,s=A.toDataURL();n.src=s;var B=Hr(r,r,0,0,n);return t.fillStyle="red",t.fillRect(0,0,r,r),vs(B).then(function(a){t.drawImage(a,0,0);var i=t.getImageData(0,0,r,r).data;t.fillStyle="red",t.fillRect(0,0,r,r);var o=e.createElement("div");return o.style.backgroundImage="url("+s+")",o.style.height=r+"px",Es(i)?vs(Hr(r,r,0,0,o)):Promise.reject(!1)}).then(function(a){return t.drawImage(a,0,0),Es(t.getImageData(0,0,r,r).data)}).catch(function(){return!1})},Hr=function(e,A,r,t,n){var s="http://www.w3.org/2000/svg",B=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return B.setAttributeNS(null,"width",e.toString()),B.setAttributeNS(null,"height",A.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",r.toString()),a.setAttributeNS(null,"y",t.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),B.appendChild(a),a.appendChild(n),B},vs=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){return A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},k={get SUPPORT_RANGE_BOUNDS(){var e=pc(document);return Object.defineProperty(k,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=k.SUPPORT_RANGE_BOUNDS&&Ec(document);return Object.defineProperty(k,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Ic(document);return Object.defineProperty(k,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?mc(document):Promise.resolve(!1);return Object.defineProperty(k,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=vc();return Object.defineProperty(k,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Hc();return Object.defineProperty(k,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(k,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(k,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},xe=function(){function e(A,r){this.text=A,this.bounds=r}return e}(),yc=function(e,A,r,t){var n=bc(A,r),s=[],B=0;return n.forEach(function(a){if(r.textDecorationLine.length||a.trim().length>0)if(k.SUPPORT_RANGE_BOUNDS){var i=Hs(t,B,a.length).getClientRects();if(i.length>1){var o=Ir(a),u=0;o.forEach(function(g){s.push(new xe(g,dA.fromDOMRectList(e,Hs(t,u+B,g.length).getClientRects()))),u+=g.length})}else s.push(new xe(a,dA.fromDOMRectList(e,i)))}else{var c=t.splitText(a.length);s.push(new xe(a,Lc(e,t))),t=c}else k.SUPPORT_RANGE_BOUNDS||(t=t.splitText(a.length));B+=a.length}),s},Lc=function(e,A){var r=A.ownerDocument;if(r){var t=r.createElement("html2canvaswrapper");t.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(t,A);var s=ke(e,t);return t.firstChild&&n.replaceChild(t.firstChild,t),s}}return dA.EMPTY},Hs=function(e,A,r){var t=e.ownerDocument;if(!t)throw new Error("Node has no owner document");var n=t.createRange();return n.setStart(e,A),n.setEnd(e,A+r),n},Ir=function(e){if(k.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return dc(e)},Kc=function(e,A){if(k.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(t){return t.segment})}return Sc(e,A)},bc=function(e,A){return A.letterSpacing!==0?Ir(e):Kc(e,A)},Tc=[32,160,4961,65792,65793,4153,4241],Sc=function(e,A){for(var r=si(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),t=[],n,s=function(){if(n.value){var B=n.value.slice(),a=Xe(B),i="";a.forEach(function(o){Tc.indexOf(o)===-1?i+=x(o):(i.length&&t.push(i),t.push(x(o)),i="")}),i.length&&t.push(i)}};!(n=r.next()).done;)s();return t},Dc=function(){function e(A,r,t){this.text=xc(r.data,t.textTransform),this.textBounds=yc(A,this.text,t,r)}return e}(),xc=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(Oc,Mc);case 2:return e.toUpperCase();default:return e}},Oc=/(^|\s|:|-|\(|\))([a-z])/g,Mc=function(e,A,r){return e.length>0?A+r.toUpperCase():e},Is=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,n.context.cache.addImage(n.src),n}return A}(fA),ms=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return A}(fA),ys=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this,s=new XMLSerializer,B=ke(r,t);return t.setAttribute("width",B.width+"px"),t.setAttribute("height",B.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(s.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(fA),Ls=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A}(fA),mr=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.start=t.start,n.reversed=typeof t.reversed=="boolean"&&t.reversed===!0,n}return A}(fA),_c=[{type:15,flags:0,unit:"px",number:3}],Rc=[{type:16,flags:0,number:50}],Gc=function(e){return e.width>e.height?new dA(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new dA(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Nc=function(e){var A=e.type===Vc?new Array(e.value.length+1).join("\u2022"):e.value;return A.length===0?e.placeholder||"":A},Et="checkbox",vt="radio",Vc="password",Ks=707406591,yr=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=Nc(t),(n.type===Et||n.type===vt)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=Gc(n.bounds)),n.type){case Et:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=_c;break;case vt:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Rc;break}return n}return A}(fA),bs=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this,s=t.options[t.selectedIndex||0];return n.value=s&&s.text||"",n}return A}(fA),Ts=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.value=t.value,n}return A}(fA),Ss=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=xs(r,t.contentWindow.document.documentElement);var s=t.contentWindow.document.documentElement?Te(r,getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):EA.TRANSPARENT,B=t.contentWindow.document.body?Te(r,getComputedStyle(t.contentWindow.document.body).backgroundColor):EA.TRANSPARENT;n.backgroundColor=MA(s)?MA(B)?n.styles.backgroundColor:B:s}}catch{}return n}return A}(fA),Pc=["OL","UL","MENU"],Ht=function(e,A,r,t){for(var n=A.firstChild,s=void 0;n;n=s)if(s=n.nextSibling,Os(n)&&n.data.trim().length>0)r.textNodes.push(new Dc(e,n,r.styles));else if(ie(n))if(Vs(n)&&n.assignedNodes)n.assignedNodes().forEach(function(a){return Ht(e,a,r,t)});else{var B=Ds(e,n);B.styles.isVisible()&&(kc(n,B,t)?B.flags|=4:Xc(B.styles)&&(B.flags|=2),Pc.indexOf(n.tagName)!==-1&&(B.flags|=8),r.elements.push(B),n.slot,n.shadowRoot?Ht(e,n.shadowRoot,B,t):!mt(n)&&!Ms(n)&&!yt(n)&&Ht(e,n,B,t))}},Ds=function(e,A){return br(A)?new Is(e,A):_s(A)?new ms(e,A):Ms(A)?new ys(e,A):Jc(A)?new Ls(e,A):Yc(A)?new mr(e,A):Wc(A)?new yr(e,A):yt(A)?new bs(e,A):mt(A)?new Ts(e,A):Gs(A)?new Ss(e,A):new fA(e,A)},xs=function(e,A){var r=Ds(e,A);return r.flags|=4,Ht(e,A,r,r),r},kc=function(e,A,r){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Kr(e)&&r.styles.isTransparent()},Xc=function(e){return e.isPositioned()||e.isFloating()},Os=function(e){return e.nodeType===Node.TEXT_NODE},ie=function(e){return e.nodeType===Node.ELEMENT_NODE},Lr=function(e){return ie(e)&&typeof e.style!="undefined"&&!It(e)},It=function(e){return typeof e.className=="object"},Jc=function(e){return e.tagName==="LI"},Yc=function(e){return e.tagName==="OL"},Wc=function(e){return e.tagName==="INPUT"},Zc=function(e){return e.tagName==="HTML"},Ms=function(e){return e.tagName==="svg"},Kr=function(e){return e.tagName==="BODY"},_s=function(e){return e.tagName==="CANVAS"},Rs=function(e){return e.tagName==="VIDEO"},br=function(e){return e.tagName==="IMG"},Gs=function(e){return e.tagName==="IFRAME"},Ns=function(e){return e.tagName==="STYLE"},jc=function(e){return e.tagName==="SCRIPT"},mt=function(e){return e.tagName==="TEXTAREA"},yt=function(e){return e.tagName==="SELECT"},Vs=function(e){return e.tagName==="SLOT"},Ps=function(e){return e.tagName.indexOf("-")>0},zc=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var r=this.counters[A];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(A){var r=this.counters[A];return r||[]},e.prototype.pop=function(A){var r=this;A.forEach(function(t){return r.counters[t].pop()})},e.prototype.parse=function(A){var r=this,t=A.counterIncrement,n=A.counterReset,s=!0;t!==null&&t.forEach(function(a){var i=r.counters[a.counter];i&&a.increment!==0&&(s=!1,i.length||i.push(1),i[Math.max(0,i.length-1)]+=a.increment)});var B=[];return s&&n.forEach(function(a){var i=r.counters[a.counter];B.push(a.counter),i||(i=r.counters[a.counter]=[]),i.push(a.reset)}),B},e}(),ks={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"]},Xs={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"]},qc={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"]},$c={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"]},oe=function(e,A,r,t,n,s){return e<A||e>r?Me(e,n,s.length>0):t.integers.reduce(function(B,a,i){for(;e>=a;)e-=a,B+=t.values[i];return B},"")+s},Js=function(e,A,r,t){var n="";do r||e--,n=t(e)+n,e/=A;while(e*A>=A);return n},O=function(e,A,r,t,n){var s=r-A+1;return(e<0?"-":"")+(Js(Math.abs(e),s,t,function(B){return x(Math.floor(B%s)+A)})+n)},qA=function(e,A,r){r===void 0&&(r=". ");var t=A.length;return Js(Math.abs(e),t,!1,function(n){return A[Math.floor(n%t)]})+r},ue=1<<0,RA=1<<1,GA=1<<2,Oe=1<<3,vA=function(e,A,r,t,n,s){if(e<-9999||e>9999)return Me(e,4,n.length>0);var B=Math.abs(e),a=n;if(B===0)return A[0]+a;for(var i=0;B>0&&i<=4;i++){var o=B%10;o===0&&_(s,ue)&&a!==""?a=A[o]+a:o>1||o===1&&i===0||o===1&&i===1&&_(s,RA)||o===1&&i===1&&_(s,GA)&&e>100||o===1&&i>1&&_(s,Oe)?a=A[o]+(i>0?r[i-1]:"")+a:o===1&&i>0&&(a=r[i-1]+a),B=Math.floor(B/10)}return(e<0?t:"")+a},Ys="\u5341\u767E\u5343\u842C",Ws="\u62FE\u4F70\u4EDF\u842C",Zs="\u30DE\u30A4\u30CA\u30B9",Tr="\uB9C8\uC774\uB108\uC2A4",Me=function(e,A,r){var t=r?". ":"",n=r?"\u3001":"",s=r?", ":"",B=r?" ":"";switch(A){case 0:return"\u2022"+B;case 1:return"\u25E6"+B;case 2:return"\u25FE"+B;case 5:var a=O(e,48,57,!0,t);return a.length<4?"0"+a:a;case 4:return qA(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",n);case 6:return oe(e,1,3999,ks,3,t).toLowerCase();case 7:return oe(e,1,3999,ks,3,t);case 8:return O(e,945,969,!1,t);case 9:return O(e,97,122,!1,t);case 10:return O(e,65,90,!1,t);case 11:return O(e,1632,1641,!0,t);case 12:case 49:return oe(e,1,9999,Xs,3,t);case 35:return oe(e,1,9999,Xs,3,t).toLowerCase();case 13:return O(e,2534,2543,!0,t);case 14:case 30:return O(e,6112,6121,!0,t);case 15:return qA(e,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",n);case 16:return qA(e,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",n);case 17:case 48:return vA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ys,"\u8CA0",n,RA|GA|Oe);case 47:return vA(e,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Ws,"\u8CA0",n,ue|RA|GA|Oe);case 42:return vA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ys,"\u8D1F",n,RA|GA|Oe);case 41:return vA(e,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Ws,"\u8D1F",n,ue|RA|GA|Oe);case 26:return vA(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Zs,n,0);case 25:return vA(e,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Zs,n,ue|RA|GA);case 31:return vA(e,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Tr,s,ue|RA|GA);case 33:return vA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Tr,s,0);case 32:return vA(e,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Tr,s,ue|RA|GA);case 18:return O(e,2406,2415,!0,t);case 20:return oe(e,1,19999,$c,3,t);case 21:return O(e,2790,2799,!0,t);case 22:return O(e,2662,2671,!0,t);case 22:return oe(e,1,10999,qc,3,t);case 23:return qA(e,"\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 qA(e,"\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 O(e,3302,3311,!0,t);case 28:return qA(e,"\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",n);case 29:return qA(e,"\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",n);case 34:return O(e,3792,3801,!0,t);case 37:return O(e,6160,6169,!0,t);case 38:return O(e,4160,4169,!0,t);case 39:return O(e,2918,2927,!0,t);case 40:return O(e,1776,1785,!0,t);case 43:return O(e,3046,3055,!0,t);case 44:return O(e,3174,3183,!0,t);case 45:return O(e,3664,3673,!0,t);case 46:return O(e,3872,3881,!0,t);case 3:default:return O(e,48,57,!0,t)}},js="data-html2canvas-ignore",zs=function(){function e(A,r,t){if(this.context=A,this.options=t,this.scrolledElements=[],this.referenceElement=r,this.counters=new zc,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,r){var t=this,n=Ag(A,r);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var s=A.defaultView.pageXOffset,B=A.defaultView.pageYOffset,a=n.contentWindow,i=a.document,o=rg(n).then(function(){return Z(t,void 0,void 0,function(){var u,c;return J(this,function(g){switch(g.label){case 0:return this.scrolledElements.forEach(ag),a&&(a.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(a.scrollY!==r.top||a.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-r.left,a.scrollY-r.top,0,0))),u=this.options.onclone,c=this.clonedReferenceElement,typeof c=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:i.fonts&&i.fonts.ready?[4,i.fonts.ready]:[3,2];case 1:g.sent(),g.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,tg(i)]:[3,4];case 3:g.sent(),g.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(i,c)}).then(function(){return n})]:[2,n]}})})});return i.open(),i.write(sg(document.doctype)+"<html></html>"),Bg(this.referenceElement.ownerDocument,s,B),i.replaceChild(i.adoptNode(this.documentElement),i.documentElement),i.close(),o},e.prototype.createElementClone=function(A){if(wr(A,2))debugger;if(_s(A))return this.createCanvasClone(A);if(Rs(A))return this.createVideoClone(A);if(Ns(A))return this.createStyleClone(A);var r=A.cloneNode(!1);return br(r)&&(br(A)&&A.currentSrc&&A.currentSrc!==A.src&&(r.src=A.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),Ps(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(A){var r=document.createElement("html2canvascustomelement");return Sr(A.style,r),r},e.prototype.createStyleClone=function(A){try{var r=A.sheet;if(r&&r.cssRules){var t=[].slice.call(r.cssRules,0).reduce(function(s,B){return B&&typeof B.cssText=="string"?s+B.cssText:s},""),n=A.cloneNode(!1);return n.textContent=t,n}}catch(s){if(this.context.logger.error("Unable to access cssRules property",s),s.name!=="SecurityError")throw s}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var r;if(this.options.inlineImages&&A.ownerDocument){var t=A.ownerDocument.createElement("img");try{return t.src=A.toDataURL(),t}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var s=A.getContext("2d"),B=n.getContext("2d");if(B)if(!this.options.allowTaint&&s)B.putImageData(s.getImageData(0,0,A.width,A.height),0,0);else{var a=(r=A.getContext("webgl2"))!==null&&r!==void 0?r:A.getContext("webgl");if(a){var i=a.getContextAttributes();(i==null?void 0:i.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}B.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var r=A.ownerDocument.createElement("canvas");r.width=A.offsetWidth,r.height=A.offsetHeight;var t=r.getContext("2d");try{return t&&(t.drawImage(A,0,0,r.width,r.height),this.options.allowTaint||t.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,r,t){(!ie(r)||!jc(r)&&!r.hasAttribute(js)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!ie(r)||!Ns(r))&&A.appendChild(this.cloneNode(r,t))},e.prototype.cloneChildNodes=function(A,r,t){for(var n=this,s=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;s;s=s.nextSibling)if(ie(s)&&Vs(s)&&typeof s.assignedNodes=="function"){var B=s.assignedNodes();B.length&&B.forEach(function(a){return n.appendChildNode(r,a,t)})}else this.appendChildNode(r,s,t)},e.prototype.cloneNode=function(A,r){if(Os(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var t=A.ownerDocument.defaultView;if(t&&ie(A)&&(Lr(A)||It(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var s=t.getComputedStyle(A),B=t.getComputedStyle(A,":before"),a=t.getComputedStyle(A,":after");this.referenceElement===A&&Lr(n)&&(this.clonedReferenceElement=n),Kr(n)&&ug(n);var i=this.counters.parse(new cs(this.context,s)),o=this.resolvePseudoContent(A,n,B,_e.BEFORE);Ps(A)&&(r=!0),Rs(A)||this.cloneChildNodes(A,n,r),o&&n.insertBefore(o,n.firstChild);var u=this.resolvePseudoContent(A,n,a,_e.AFTER);return u&&n.appendChild(u),this.counters.pop(i),(s&&(this.options.copyStyles||It(A))&&!Gs(A)||r)&&Sr(s,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(mt(A)||yt(A))&&(mt(n)||yt(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,r,t,n){var s=this;if(!!t){var B=t.content,a=r.ownerDocument;if(!(!a||!B||B==="none"||B==="-moz-alt-content"||t.display==="none")){this.counters.parse(new cs(this.context,t));var i=new Ju(this.context,t),o=a.createElement("html2canvaspseudoelement");Sr(t,o),i.content.forEach(function(c){if(c.type===0)o.appendChild(a.createTextNode(c.value));else if(c.type===22){var g=a.createElement("img");g.src=c.value,g.style.opacity="1",o.appendChild(g)}else if(c.type===18){if(c.name==="attr"){var C=c.values.filter(b);C.length&&o.appendChild(a.createTextNode(A.getAttribute(C[0].value)||""))}else if(c.name==="counter"){var l=c.values.filter(Be),w=l[0],p=l[1];if(w&&b(w)){var f=s.counters.getCounterValue(w.value),U=p&&b(p)?Qr.parse(s.context,p.value):3;o.appendChild(a.createTextNode(Me(f,U,!1)))}}else if(c.name==="counters"){var I=c.values.filter(Be),w=I[0],v=I[1],p=I[2];if(w&&b(w)){var y=s.counters.getCounterValues(w.value),F=p&&b(p)?Qr.parse(s.context,p.value):3,m=v&&v.type===0?v.value:"",L=y.map(function(W){return Me(W,F,!1)}).join(m);o.appendChild(a.createTextNode(L))}}}else if(c.type===20)switch(c.value){case"open-quote":o.appendChild(a.createTextNode(us(i.quotes,s.quoteDepth++,!0)));break;case"close-quote":o.appendChild(a.createTextNode(us(i.quotes,--s.quoteDepth,!1)));break;default:o.appendChild(a.createTextNode(c.value))}}),o.className=Dr+" "+xr;var u=n===_e.BEFORE?" "+Dr:" "+xr;return It(r)?r.className.baseValue+=u:r.className+=u,o}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e}(),_e;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(_e||(_e={}));var Ag=function(e,A){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=A.width.toString(),r.height=A.height.toString(),r.scrolling="no",r.setAttribute(js,"true"),e.body.appendChild(r),r},eg=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},tg=function(e){return Promise.all([].slice.call(e.images,0).map(eg))},rg=function(e){return new Promise(function(A,r){var t=e.contentWindow;if(!t)return r("No window assigned for iframe");var n=t.document;t.onload=e.onload=function(){t.onload=e.onload=null;var s=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(s),A(e))},50)}})},ng=["all","d","content"],Sr=function(e,A){for(var r=e.length-1;r>=0;r--){var t=e.item(r);ng.indexOf(t)===-1&&A.style.setProperty(t,e.getPropertyValue(t))}return A},sg=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},Bg=function(e,A,r){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,r)},ag=function(e){var A=e[0],r=e[1],t=e[2];A.scrollLeft=r,A.scrollTop=t},ig=":before",og=":after",Dr="___html2canvas___pseudoelement_before",xr="___html2canvas___pseudoelement_after",qs=`{
    content: "" !important;
    display: none !important;
}`,ug=function(e){cg(e,"."+Dr+ig+qs+`
         .`+xr+og+qs)},cg=function(e,A){var r=e.ownerDocument;if(r){var t=r.createElement("style");t.textContent=A,e.appendChild(t)}},$s=function(){function e(){}return e.getOrigin=function(A){var r=e._link;return r?(r.href=A,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),gg=function(){function e(A,r){this.context=A,this._options=r,this._cache={}}return e.prototype.addImage=function(A){var r=Promise.resolve();return this.has(A)||(Mr(A)||fg(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),r},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return Z(this,void 0,void 0,function(){var r,t,n,s,B=this;return J(this,function(a){switch(a.label){case 0:return r=$s.isSameOrigin(A),t=!Or(A)&&this._options.useCORS===!0&&k.SUPPORT_CORS_IMAGES&&!r,n=!Or(A)&&!r&&!Mr(A)&&typeof this._options.proxy=="string"&&k.SUPPORT_CORS_XHR&&!t,!r&&this._options.allowTaint===!1&&!Or(A)&&!Mr(A)&&!n&&!t?[2]:(s=A,n?[4,this.proxy(s)]:[3,2]);case 1:s=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(i,o){var u=new Image;u.onload=function(){return i(u)},u.onerror=o,(Cg(s)||t)&&(u.crossOrigin="anonymous"),u.src=s,u.complete===!0&&setTimeout(function(){return i(u)},500),B._options.imageTimeout>0&&setTimeout(function(){return o("Timed out ("+B._options.imageTimeout+"ms) loading image")},B._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]!="undefined"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var r=this,t=this._options.proxy;if(!t)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(s,B){var a=k.SUPPORT_RESPONSE_TYPE?"blob":"text",i=new XMLHttpRequest;i.onload=function(){if(i.status===200)if(a==="text")s(i.response);else{var c=new FileReader;c.addEventListener("load",function(){return s(c.result)},!1),c.addEventListener("error",function(g){return B(g)},!1),c.readAsDataURL(i.response)}else B("Failed to proxy resource "+n+" with status code "+i.status)},i.onerror=B;var o=t.indexOf("?")>-1?"&":"?";if(i.open("GET",""+t+o+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&i instanceof XMLHttpRequest&&(i.responseType=a),r._options.imageTimeout){var u=r._options.imageTimeout;i.timeout=u,i.ontimeout=function(){return B("Timed out ("+u+"ms) proxying "+n)}}i.send()})},e}(),lg=/^data:image\/svg\+xml/i,Qg=/^data:image\/.*;base64,/i,wg=/^data:image\/.*/i,fg=function(e){return k.SUPPORT_SVG_DRAWING||!hg(e)},Or=function(e){return wg.test(e)},Cg=function(e){return Qg.test(e)},Mr=function(e){return e.substr(0,4)==="blob"},hg=function(e){return e.substr(-3).toLowerCase()==="svg"||lg.test(e)},h=function(){function e(A,r){this.type=0,this.x=A,this.y=r}return e.prototype.add=function(A,r){return new e(this.x+A,this.y+r)},e}(),ce=function(e,A,r){return new h(e.x+(A.x-e.x)*r,e.y+(A.y-e.y)*r)},Lt=function(){function e(A,r,t,n){this.type=1,this.start=A,this.startControl=r,this.endControl=t,this.end=n}return e.prototype.subdivide=function(A,r){var t=ce(this.start,this.startControl,A),n=ce(this.startControl,this.endControl,A),s=ce(this.endControl,this.end,A),B=ce(t,n,A),a=ce(n,s,A),i=ce(B,a,A);return r?new e(this.start,t,B,i):new e(i,a,s,this.end)},e.prototype.add=function(A,r){return new e(this.start.add(A,r),this.startControl.add(A,r),this.endControl.add(A,r),this.end.add(A,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),sA=function(e){return e.type===1},Ug=function(){function e(A){var r=A.styles,t=A.bounds,n=be(r.borderTopLeftRadius,t.width,t.height),s=n[0],B=n[1],a=be(r.borderTopRightRadius,t.width,t.height),i=a[0],o=a[1],u=be(r.borderBottomRightRadius,t.width,t.height),c=u[0],g=u[1],C=be(r.borderBottomLeftRadius,t.width,t.height),l=C[0],w=C[1],p=[];p.push((s+i)/t.width),p.push((l+c)/t.width),p.push((B+w)/t.height),p.push((o+g)/t.height);var f=Math.max.apply(Math,p);f>1&&(s/=f,B/=f,i/=f,o/=f,c/=f,g/=f,l/=f,w/=f);var U=t.width-i,I=t.height-g,v=t.width-c,y=t.height-w,F=r.borderTopWidth,m=r.borderRightWidth,L=r.borderBottomWidth,E=r.borderLeftWidth,j=T(r.paddingTop,A.bounds.width),W=T(r.paddingRight,A.bounds.width),q=T(r.paddingBottom,A.bounds.width),R=T(r.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||B>0?S(t.left+E/3,t.top+F/3,s-E/3,B-F/3,K.TOP_LEFT):new h(t.left+E/3,t.top+F/3),this.topRightBorderDoubleOuterBox=s>0||B>0?S(t.left+U,t.top+F/3,i-m/3,o-F/3,K.TOP_RIGHT):new h(t.left+t.width-m/3,t.top+F/3),this.bottomRightBorderDoubleOuterBox=c>0||g>0?S(t.left+v,t.top+I,c-m/3,g-L/3,K.BOTTOM_RIGHT):new h(t.left+t.width-m/3,t.top+t.height-L/3),this.bottomLeftBorderDoubleOuterBox=l>0||w>0?S(t.left+E/3,t.top+y,l-E/3,w-L/3,K.BOTTOM_LEFT):new h(t.left+E/3,t.top+t.height-L/3),this.topLeftBorderDoubleInnerBox=s>0||B>0?S(t.left+E*2/3,t.top+F*2/3,s-E*2/3,B-F*2/3,K.TOP_LEFT):new h(t.left+E*2/3,t.top+F*2/3),this.topRightBorderDoubleInnerBox=s>0||B>0?S(t.left+U,t.top+F*2/3,i-m*2/3,o-F*2/3,K.TOP_RIGHT):new h(t.left+t.width-m*2/3,t.top+F*2/3),this.bottomRightBorderDoubleInnerBox=c>0||g>0?S(t.left+v,t.top+I,c-m*2/3,g-L*2/3,K.BOTTOM_RIGHT):new h(t.left+t.width-m*2/3,t.top+t.height-L*2/3),this.bottomLeftBorderDoubleInnerBox=l>0||w>0?S(t.left+E*2/3,t.top+y,l-E*2/3,w-L*2/3,K.BOTTOM_LEFT):new h(t.left+E*2/3,t.top+t.height-L*2/3),this.topLeftBorderStroke=s>0||B>0?S(t.left+E/2,t.top+F/2,s-E/2,B-F/2,K.TOP_LEFT):new h(t.left+E/2,t.top+F/2),this.topRightBorderStroke=s>0||B>0?S(t.left+U,t.top+F/2,i-m/2,o-F/2,K.TOP_RIGHT):new h(t.left+t.width-m/2,t.top+F/2),this.bottomRightBorderStroke=c>0||g>0?S(t.left+v,t.top+I,c-m/2,g-L/2,K.BOTTOM_RIGHT):new h(t.left+t.width-m/2,t.top+t.height-L/2),this.bottomLeftBorderStroke=l>0||w>0?S(t.left+E/2,t.top+y,l-E/2,w-L/2,K.BOTTOM_LEFT):new h(t.left+E/2,t.top+t.height-L/2),this.topLeftBorderBox=s>0||B>0?S(t.left,t.top,s,B,K.TOP_LEFT):new h(t.left,t.top),this.topRightBorderBox=i>0||o>0?S(t.left+U,t.top,i,o,K.TOP_RIGHT):new h(t.left+t.width,t.top),this.bottomRightBorderBox=c>0||g>0?S(t.left+v,t.top+I,c,g,K.BOTTOM_RIGHT):new h(t.left+t.width,t.top+t.height),this.bottomLeftBorderBox=l>0||w>0?S(t.left,t.top+y,l,w,K.BOTTOM_LEFT):new h(t.left,t.top+t.height),this.topLeftPaddingBox=s>0||B>0?S(t.left+E,t.top+F,Math.max(0,s-E),Math.max(0,B-F),K.TOP_LEFT):new h(t.left+E,t.top+F),this.topRightPaddingBox=i>0||o>0?S(t.left+Math.min(U,t.width-m),t.top+F,U>t.width+m?0:Math.max(0,i-m),Math.max(0,o-F),K.TOP_RIGHT):new h(t.left+t.width-m,t.top+F),this.bottomRightPaddingBox=c>0||g>0?S(t.left+Math.min(v,t.width-E),t.top+Math.min(I,t.height-L),Math.max(0,c-m),Math.max(0,g-L),K.BOTTOM_RIGHT):new h(t.left+t.width-m,t.top+t.height-L),this.bottomLeftPaddingBox=l>0||w>0?S(t.left+E,t.top+Math.min(y,t.height-L),Math.max(0,l-E),Math.max(0,w-L),K.BOTTOM_LEFT):new h(t.left+E,t.top+t.height-L),this.topLeftContentBox=s>0||B>0?S(t.left+E+R,t.top+F+j,Math.max(0,s-(E+R)),Math.max(0,B-(F+j)),K.TOP_LEFT):new h(t.left+E+R,t.top+F+j),this.topRightContentBox=i>0||o>0?S(t.left+Math.min(U,t.width+E+R),t.top+F+j,U>t.width+E+R?0:i-E+R,o-(F+j),K.TOP_RIGHT):new h(t.left+t.width-(m+W),t.top+F+j),this.bottomRightContentBox=c>0||g>0?S(t.left+Math.min(v,t.width-(E+R)),t.top+Math.min(I,t.height+F+j),Math.max(0,c-(m+W)),g-(L+q),K.BOTTOM_RIGHT):new h(t.left+t.width-(m+W),t.top+t.height-(L+q)),this.bottomLeftContentBox=l>0||w>0?S(t.left+E+R,t.top+y,Math.max(0,l-(E+R)),w-(L+q),K.BOTTOM_LEFT):new h(t.left+E+R,t.top+t.height-(L+q))}return e}(),K;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(K||(K={}));var S=function(e,A,r,t,n){var s=4*((Math.sqrt(2)-1)/3),B=r*s,a=t*s,i=e+r,o=A+t;switch(n){case K.TOP_LEFT:return new Lt(new h(e,o),new h(e,o-a),new h(i-B,A),new h(i,A));case K.TOP_RIGHT:return new Lt(new h(e,A),new h(e+B,A),new h(i,o-a),new h(i,o));case K.BOTTOM_RIGHT:return new Lt(new h(i,A),new h(i,A+a),new h(e+B,o),new h(e,o));case K.BOTTOM_LEFT:default:return new Lt(new h(i,o),new h(i-B,o),new h(e,A+a),new h(e,A))}},Kt=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Fg=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},bt=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},dg=function(){function e(A,r,t){this.offsetX=A,this.offsetY=r,this.matrix=t,this.type=0,this.target=2|4}return e}(),Tt=function(){function e(A,r){this.path=A,this.target=r,this.type=1}return e}(),pg=function(){function e(A){this.opacity=A,this.type=2,this.target=2|4}return e}(),Eg=function(e){return e.type===0},AB=function(e){return e.type===1},vg=function(e){return e.type===2},eB=function(e,A){return e.length===A.length?e.some(function(r,t){return r===A[t]}):!1},Hg=function(e,A,r,t,n){return e.map(function(s,B){switch(B){case 0:return s.add(A,r);case 1:return s.add(A+t,r);case 2:return s.add(A+t,r+n);case 3:return s.add(A,r+n)}return s})},tB=function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),rB=function(){function e(A,r){if(this.container=A,this.parent=r,this.effects=[],this.curves=new Ug(this.container),this.container.styles.opacity<1&&this.effects.push(new pg(this.container.styles.opacity)),this.container.styles.transform!==null){var t=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,s=this.container.styles.transform;this.effects.push(new dg(t,n,s))}if(this.container.styles.overflowX!==0){var B=Kt(this.curves),a=bt(this.curves);eB(B,a)?this.effects.push(new Tt(B,2|4)):(this.effects.push(new Tt(B,2)),this.effects.push(new Tt(a,4)))}}return e.prototype.getEffects=function(A){for(var r=[2,3].indexOf(this.container.styles.position)===-1,t=this.parent,n=this.effects.slice(0);t;){var s=t.effects.filter(function(i){return!AB(i)});if(r||t.container.styles.position!==0||!t.parent){if(n.unshift.apply(n,s),r=[2,3].indexOf(t.container.styles.position)===-1,t.container.styles.overflowX!==0){var B=Kt(t.curves),a=bt(t.curves);eB(B,a)||n.unshift(new Tt(a,2|4))}}else n.unshift.apply(n,s);t=t.parent}return n.filter(function(i){return _(i.target,A)})},e}(),_r=function(e,A,r,t){e.container.elements.forEach(function(n){var s=_(n.flags,4),B=_(n.flags,2),a=new rB(n,e);_(n.styles.display,2048)&&t.push(a);var i=_(n.flags,8)?[]:t;if(s||B){var o=s||n.styles.isPositioned()?r:A,u=new tB(a);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var c=n.styles.zIndex.order;if(c<0){var g=0;o.negativeZIndex.some(function(l,w){return c>l.element.container.styles.zIndex.order?(g=w,!1):g>0}),o.negativeZIndex.splice(g,0,u)}else if(c>0){var C=0;o.positiveZIndex.some(function(l,w){return c>=l.element.container.styles.zIndex.order?(C=w+1,!1):C>0}),o.positiveZIndex.splice(C,0,u)}else o.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?o.nonPositionedFloats.push(u):o.nonPositionedInlineLevel.push(u);_r(a,u,s?u:r,i)}else n.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),_r(a,A,r,i);_(n.flags,8)&&nB(n,i)})},nB=function(e,A){for(var r=e instanceof mr?e.start:1,t=e instanceof mr?e.reversed:!1,n=0;n<A.length;n++){var s=A[n];s.container instanceof Ls&&typeof s.container.value=="number"&&s.container.value!==0&&(r=s.container.value),s.listValue=Me(r,s.container.styles.listStyleType,!0),r+=t?-1:1}},Ig=function(e){var A=new rB(e,null),r=new tB(A),t=[];return _r(A,r,r,t),nB(A.container,t),r},sB=function(e,A){switch(A){case 0:return BA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return BA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return BA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return BA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},mg=function(e,A){switch(A){case 0:return BA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return BA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return BA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return BA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},yg=function(e,A){switch(A){case 0:return BA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return BA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return BA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return BA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Lg=function(e,A){switch(A){case 0:return St(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return St(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return St(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return St(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},St=function(e,A){var r=[];return sA(e)?r.push(e.subdivide(.5,!1)):r.push(e),sA(A)?r.push(A.subdivide(.5,!0)):r.push(A),r},BA=function(e,A,r,t){var n=[];return sA(e)?n.push(e.subdivide(.5,!1)):n.push(e),sA(r)?n.push(r.subdivide(.5,!0)):n.push(r),sA(t)?n.push(t.subdivide(.5,!0).reverse()):n.push(t),sA(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},BB=function(e){var A=e.bounds,r=e.styles;return A.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Dt=function(e){var A=e.styles,r=e.bounds,t=T(A.paddingLeft,r.width),n=T(A.paddingRight,r.width),s=T(A.paddingTop,r.width),B=T(A.paddingBottom,r.width);return r.add(t+A.borderLeftWidth,s+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+t+n),-(A.borderTopWidth+A.borderBottomWidth+s+B))},Kg=function(e,A){return e===0?A.bounds:e===2?Dt(A):BB(A)},bg=function(e,A){return e===0?A.bounds:e===2?Dt(A):BB(A)},Rr=function(e,A,r){var t=Kg(le(e.styles.backgroundOrigin,A),e),n=bg(le(e.styles.backgroundClip,A),e),s=Tg(le(e.styles.backgroundSize,A),r,t),B=s[0],a=s[1],i=be(le(e.styles.backgroundPosition,A),t.width-B,t.height-a),o=Sg(le(e.styles.backgroundRepeat,A),i,s,t,n),u=Math.round(t.left+i[0]),c=Math.round(t.top+i[1]);return[o,u,c,B,a]},ge=function(e){return b(e)&&e.value===ae.AUTO},xt=function(e){return typeof e=="number"},Tg=function(e,A,r){var t=A[0],n=A[1],s=A[2],B=e[0],a=e[1];if(!B)return[0,0];if(M(B)&&a&&M(a))return[T(B,r.width),T(a,r.height)];var i=xt(s);if(b(B)&&(B.value===ae.CONTAIN||B.value===ae.COVER)){if(xt(s)){var o=r.width/r.height;return o<s!=(B.value===ae.COVER)?[r.width,r.width/s]:[r.height*s,r.height]}return[r.width,r.height]}var u=xt(t),c=xt(n),g=u||c;if(ge(B)&&(!a||ge(a))){if(u&&c)return[t,n];if(!i&&!g)return[r.width,r.height];if(g&&i){var C=u?t:n*s,l=c?n:t/s;return[C,l]}var w=u?t:r.width,p=c?n:r.height;return[w,p]}if(i){var f=0,U=0;return M(B)?f=T(B,r.width):M(a)&&(U=T(a,r.height)),ge(B)?f=U*s:(!a||ge(a))&&(U=f/s),[f,U]}var I=null,v=null;if(M(B)?I=T(B,r.width):a&&M(a)&&(v=T(a,r.height)),I!==null&&(!a||ge(a))&&(v=u&&c?I/t*n:r.height),v!==null&&ge(B)&&(I=u&&c?v/n*t:r.width),I!==null&&v!==null)return[I,v];throw new Error("Unable to calculate background-size for element")},le=function(e,A){var r=e[A];return typeof r=="undefined"?e[0]:r},Sg=function(e,A,r,t,n){var s=A[0],B=A[1],a=r[0],i=r[1];switch(e){case 2:return[new h(Math.round(t.left),Math.round(t.top+B)),new h(Math.round(t.left+t.width),Math.round(t.top+B)),new h(Math.round(t.left+t.width),Math.round(i+t.top+B)),new h(Math.round(t.left),Math.round(i+t.top+B))];case 3:return[new h(Math.round(t.left+s),Math.round(t.top)),new h(Math.round(t.left+s+a),Math.round(t.top)),new h(Math.round(t.left+s+a),Math.round(t.height+t.top)),new h(Math.round(t.left+s),Math.round(t.height+t.top))];case 1:return[new h(Math.round(t.left+s),Math.round(t.top+B)),new h(Math.round(t.left+s+a),Math.round(t.top+B)),new h(Math.round(t.left+s+a),Math.round(t.top+B+i)),new h(Math.round(t.left+s),Math.round(t.top+B+i))];default:return[new h(Math.round(n.left),Math.round(n.top)),new h(Math.round(n.left+n.width),Math.round(n.top)),new h(Math.round(n.left+n.width),Math.round(n.height+n.top)),new h(Math.round(n.left),Math.round(n.height+n.top))]}},Dg="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",aB="Hidden Text",xg=function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,r){var t=this._document.createElement("div"),n=this._document.createElement("img"),s=this._document.createElement("span"),B=this._document.body;t.style.visibility="hidden",t.style.fontFamily=A,t.style.fontSize=r,t.style.margin="0",t.style.padding="0",t.style.whiteSpace="nowrap",B.appendChild(t),n.src=Dg,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",s.style.fontFamily=A,s.style.fontSize=r,s.style.margin="0",s.style.padding="0",s.appendChild(this._document.createTextNode(aB)),t.appendChild(s),t.appendChild(n);var a=n.offsetTop-s.offsetTop+2;t.removeChild(s),t.appendChild(this._document.createTextNode(aB)),t.style.lineHeight="normal",n.style.verticalAlign="super";var i=n.offsetTop-t.offsetTop+2;return B.removeChild(t),{baseline:a,middle:i}},e.prototype.getMetrics=function(A,r){var t=A+" "+r;return typeof this._data[t]=="undefined"&&(this._data[t]=this.parseMetrics(A,r)),this._data[t]},e}(),iB=function(){function e(A,r){this.context=A,this.options=r}return e}(),Og=1e4,Mg=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n._activeEffects=[],n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),t.canvas||(n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px"),n.fontMetrics=new xg(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+t.width+"x"+t.height+") with scale "+t.scale),n}return A.prototype.applyEffects=function(r){for(var t=this;this._activeEffects.length;)this.popEffect();r.forEach(function(n){return t.applyEffect(n)})},A.prototype.applyEffect=function(r){this.ctx.save(),vg(r)&&(this.ctx.globalAlpha=r.opacity),Eg(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),AB(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(r){return Z(this,void 0,void 0,function(){var t;return J(this,function(n){switch(n.label){case 0:return t=r.element.container.styles,t.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(r){return Z(this,void 0,void 0,function(){return J(this,function(t){switch(t.label){case 0:if(_(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(r)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(r,t,n){var s=this;if(t===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+n);else{var B=Ir(r.text);B.reduce(function(a,i){return s.ctx.fillText(i,a,r.bounds.top+n),a+s.ctx.measureText(i).width},r.bounds.left)}},A.prototype.createFontStyle=function(r){var t=r.fontVariant.filter(function(B){return B==="normal"||B==="small-caps"}).join(""),n=Vg(r.fontFamily).join(", "),s=Ke(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,t,r.fontWeight,s,n].join(" "),n,s]},A.prototype.renderTextNode=function(r,t){return Z(this,void 0,void 0,function(){var n,s,B,a,i,o,u,c,g=this;return J(this,function(C){return n=this.createFontStyle(t),s=n[0],B=n[1],a=n[2],this.ctx.font=s,this.ctx.direction=t.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",i=this.fontMetrics.getMetrics(B,a),o=i.baseline,u=i.middle,c=t.paintOrder,r.textBounds.forEach(function(l){c.forEach(function(w){switch(w){case 0:g.ctx.fillStyle=G(t.color),g.renderTextWithLetterSpacing(l,t.letterSpacing,o);var p=t.textShadow;p.length&&l.text.trim().length&&(p.slice(0).reverse().forEach(function(f){g.ctx.shadowColor=G(f.color),g.ctx.shadowOffsetX=f.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=f.offsetY.number*g.options.scale,g.ctx.shadowBlur=f.blur.number,g.renderTextWithLetterSpacing(l,t.letterSpacing,o)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),t.textDecorationLine.length&&(g.ctx.fillStyle=G(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(f){switch(f){case 1:g.ctx.fillRect(l.bounds.left,Math.round(l.bounds.top+o),l.bounds.width,1);break;case 2:g.ctx.fillRect(l.bounds.left,Math.round(l.bounds.top),l.bounds.width,1);break;case 3:g.ctx.fillRect(l.bounds.left,Math.ceil(l.bounds.top+u),l.bounds.width,1);break}}));break;case 1:t.webkitTextStrokeWidth&&l.text.trim().length&&(g.ctx.strokeStyle=G(t.webkitTextStrokeColor),g.ctx.lineWidth=t.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(l.text,l.bounds.left,l.bounds.top+o)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(r,t,n){if(n&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var s=Dt(r),B=bt(t);this.path(B),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,r.intrinsicWidth,r.intrinsicHeight,s.left,s.top,s.width,s.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(r){return Z(this,void 0,void 0,function(){var t,n,s,B,a,i,o,o,u,c,g,C,l,w,p,f,U,I,v,o,y,l,f;return J(this,function(F){switch(F.label){case 0:this.applyEffects(r.getEffects(4)),t=r.container,n=r.curves,s=t.styles,B=0,a=t.textNodes,F.label=1;case 1:return B<a.length?(i=a[B],[4,this.renderTextNode(i,s)]):[3,4];case 2:F.sent(),F.label=3;case 3:return B++,[3,1];case 4:if(!(t instanceof Is))return[3,8];F.label=5;case 5:return F.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return o=F.sent(),this.renderReplacedElement(t,n,o),[3,8];case 7:return F.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof ms&&this.renderReplacedElement(t,n,t.canvas),!(t instanceof ys))return[3,12];F.label=9;case 9:return F.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return o=F.sent(),this.renderReplacedElement(t,n,o),[3,12];case 11:return F.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof Ss&&t.tree?(u=new A(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}),[4,u.render(t.tree)]):[3,14];case 13:c=F.sent(),t.width&&t.height&&this.ctx.drawImage(c,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),F.label=14;case 14:if(t instanceof yr&&(g=Math.min(t.bounds.width,t.bounds.height),t.type===Et?t.checked&&(this.ctx.save(),this.path([new h(t.bounds.left+g*.39363,t.bounds.top+g*.79),new h(t.bounds.left+g*.16,t.bounds.top+g*.5549),new h(t.bounds.left+g*.27347,t.bounds.top+g*.44071),new h(t.bounds.left+g*.39694,t.bounds.top+g*.5649),new h(t.bounds.left+g*.72983,t.bounds.top+g*.23),new h(t.bounds.left+g*.84,t.bounds.top+g*.34085),new h(t.bounds.left+g*.39363,t.bounds.top+g*.79)]),this.ctx.fillStyle=G(Ks),this.ctx.fill(),this.ctx.restore()):t.type===vt&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+g/2,t.bounds.top+g/2,g/4,0,Math.PI*2,!0),this.ctx.fillStyle=G(Ks),this.ctx.fill(),this.ctx.restore())),_g(t)&&t.value.length){switch(C=this.createFontStyle(s),l=C[0],w=C[1],p=this.fontMetrics.getMetrics(l,w).baseline,this.ctx.font=l,this.ctx.fillStyle=G(s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Gg(t.styles.textAlign),f=Dt(t),U=0,t.styles.textAlign){case 1:U+=f.width/2;break;case 2:U+=f.width;break}I=f.add(U,0,0,-f.height/2+1),this.ctx.save(),this.path([new h(f.left,f.top),new h(f.left+f.width,f.top),new h(f.left+f.width,f.top+f.height),new h(f.left,f.top+f.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new xe(t.value,I),s.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!_(t.styles.display,2048))return[3,20];if(t.styles.listStyleImage===null)return[3,19];if(v=t.styles.listStyleImage,v.type!==0)return[3,18];o=void 0,y=v.url,F.label=15;case 15:return F.trys.push([15,17,,18]),[4,this.context.cache.match(y)];case 16:return o=F.sent(),this.ctx.drawImage(o,t.bounds.left-(o.width+10),t.bounds.top),[3,18];case 17:return F.sent(),this.context.logger.error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:r.listValue&&t.styles.listStyleType!==-1&&(l=this.createFontStyle(s)[0],this.ctx.font=l,this.ctx.fillStyle=G(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",f=new dA(t.bounds.left,t.bounds.top+T(t.styles.paddingTop,t.bounds.width),t.bounds.width,as(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new xe(r.listValue,f),s.letterSpacing,as(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),F.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(r){return Z(this,void 0,void 0,function(){var t,n,s,B,a,s,i,o,s,u,c,s,g,C,s,l,w,s,p,f,s;return J(this,function(U){switch(U.label){case 0:if(_(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:U.sent(),t=0,n=r.negativeZIndex,U.label=2;case 2:return t<n.length?(s=n[t],[4,this.renderStack(s)]):[3,5];case 3:U.sent(),U.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:U.sent(),B=0,a=r.nonInlineLevel,U.label=7;case 7:return B<a.length?(s=a[B],[4,this.renderNode(s)]):[3,10];case 8:U.sent(),U.label=9;case 9:return B++,[3,7];case 10:i=0,o=r.nonPositionedFloats,U.label=11;case 11:return i<o.length?(s=o[i],[4,this.renderStack(s)]):[3,14];case 12:U.sent(),U.label=13;case 13:return i++,[3,11];case 14:u=0,c=r.nonPositionedInlineLevel,U.label=15;case 15:return u<c.length?(s=c[u],[4,this.renderStack(s)]):[3,18];case 16:U.sent(),U.label=17;case 17:return u++,[3,15];case 18:g=0,C=r.inlineLevel,U.label=19;case 19:return g<C.length?(s=C[g],[4,this.renderNode(s)]):[3,22];case 20:U.sent(),U.label=21;case 21:return g++,[3,19];case 22:l=0,w=r.zeroOrAutoZIndexOrTransformedOrOpacity,U.label=23;case 23:return l<w.length?(s=w[l],[4,this.renderStack(s)]):[3,26];case 24:U.sent(),U.label=25;case 25:return l++,[3,23];case 26:p=0,f=r.positiveZIndex,U.label=27;case 27:return p<f.length?(s=f[p],[4,this.renderStack(s)]):[3,30];case 28:U.sent(),U.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},A.prototype.formatPath=function(r){var t=this;r.forEach(function(n,s){var B=sA(n)?n.start:n;s===0?t.ctx.moveTo(B.x,B.y):t.ctx.lineTo(B.x,B.y),sA(n)&&t.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(r,t,n,s){this.path(r),this.ctx.fillStyle=t,this.ctx.translate(n,s),this.ctx.fill(),this.ctx.translate(-n,-s)},A.prototype.resizeImage=function(r,t,n){var s;if(r.width===t&&r.height===n)return r;var B=(s=this.canvas.ownerDocument)!==null&&s!==void 0?s:document,a=B.createElement("canvas");a.width=Math.max(1,t),a.height=Math.max(1,n);var i=a.getContext("2d");return i.drawImage(r,0,0,r.width,r.height,0,0,t,n),a},A.prototype.renderBackgroundImage=function(r){return Z(this,void 0,void 0,function(){var t,n,s,B,a,i;return J(this,function(o){switch(o.label){case 0:t=r.styles.backgroundImage.length-1,n=function(u){var c,g,C,l,w,p,f,U,I,v,l,w,p,f,U,y,F,m,L,E,j,W,q,R,I,uA,l,HA,IA,f,U,mA,w,p,VA,cA,yA,PA,kA,CA,XA,hA;return J(this,function($A){switch($A.label){case 0:if(u.type!==0)return[3,5];c=void 0,g=u.url,$A.label=1;case 1:return $A.trys.push([1,3,,4]),[4,s.context.cache.match(g)];case 2:return c=$A.sent(),[3,4];case 3:return $A.sent(),s.context.logger.error("Error loading background-image "+g),[3,4];case 4:return c&&(C=Rr(r,t,[c.width,c.height,c.width/c.height]),l=C[0],w=C[1],p=C[2],f=C[3],U=C[4],I=s.ctx.createPattern(s.resizeImage(c,f,U),"repeat"),s.renderRepeat(l,I,w,p)),[3,6];case 5:Eo(u)?(v=Rr(r,t,[null,null,null]),l=v[0],w=v[1],p=v[2],f=v[3],U=v[4],y=Co(u.angle,f,U),F=y[0],m=y[1],L=y[2],E=y[3],j=y[4],W=document.createElement("canvas"),W.width=f,W.height=U,q=W.getContext("2d"),R=q.createLinearGradient(m,E,L,j),jn(u.stops,F).forEach(function(Qe){return R.addColorStop(Qe.stop,G(Qe.color))}),q.fillStyle=R,q.fillRect(0,0,f,U),f>0&&U>0&&(I=s.ctx.createPattern(W,"repeat"),s.renderRepeat(l,I,w,p))):vo(u)&&(uA=Rr(r,t,[null,null,null]),l=uA[0],HA=uA[1],IA=uA[2],f=uA[3],U=uA[4],mA=u.position.length===0?[cr]:u.position,w=T(mA[0],f),p=T(mA[mA.length-1],U),VA=ho(u,w,p,f,U),cA=VA[0],yA=VA[1],cA>0&&yA>0&&(PA=s.ctx.createRadialGradient(HA+w,IA+p,0,HA+w,IA+p,cA),jn(u.stops,cA*2).forEach(function(Qe){return PA.addColorStop(Qe.stop,G(Qe.color))}),s.path(l),s.ctx.fillStyle=PA,cA!==yA?(kA=r.bounds.left+.5*r.bounds.width,CA=r.bounds.top+.5*r.bounds.height,XA=yA/cA,hA=1/XA,s.ctx.save(),s.ctx.translate(kA,CA),s.ctx.transform(1,0,0,XA,0,0),s.ctx.translate(-kA,-CA),s.ctx.fillRect(HA,hA*(IA-CA)+CA,f,U*hA),s.ctx.restore()):s.ctx.fill())),$A.label=6;case 6:return t--,[2]}})},s=this,B=0,a=r.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return B<a.length?(i=a[B],[5,n(i)]):[3,4];case 2:o.sent(),o.label=3;case 3:return B++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(r,t,n){return Z(this,void 0,void 0,function(){return J(this,function(s){return this.path(sB(n,t)),this.ctx.fillStyle=G(r),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(r,t,n,s){return Z(this,void 0,void 0,function(){var B,a;return J(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(r,n,s)]:[3,2];case 1:return i.sent(),[2];case 2:return B=mg(s,n),this.path(B),this.ctx.fillStyle=G(r),this.ctx.fill(),a=yg(s,n),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(r){return Z(this,void 0,void 0,function(){var t,n,s,B,a,i,o,u,c=this;return J(this,function(g){switch(g.label){case 0:return this.applyEffects(r.getEffects(2)),t=r.container.styles,n=!MA(t.backgroundColor)||t.backgroundImage.length,s=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],B=Rg(le(t.backgroundClip,0),r.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(B),this.ctx.clip(),MA(t.backgroundColor)||(this.ctx.fillStyle=G(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(C){c.ctx.save();var l=Kt(r.curves),w=C.inset?0:Og,p=Hg(l,-w+(C.inset?1:-1)*C.spread.number,(C.inset?1:-1)*C.spread.number,C.spread.number*(C.inset?-2:2),C.spread.number*(C.inset?-2:2));C.inset?(c.path(l),c.ctx.clip(),c.mask(p)):(c.mask(l),c.ctx.clip(),c.path(p)),c.ctx.shadowOffsetX=C.offsetX.number+w,c.ctx.shadowOffsetY=C.offsetY.number,c.ctx.shadowColor=G(C.color),c.ctx.shadowBlur=C.blur.number,c.ctx.fillStyle=C.inset?G(C.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()}),g.label=2;case 2:a=0,i=0,o=s,g.label=3;case 3:return i<o.length?(u=o[i],u.style!==0&&!MA(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,a,r.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,a,r.curves,3)];case 6:return g.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,a,r.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,a,r.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return i++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(r,t,n,s,B){return Z(this,void 0,void 0,function(){var a,i,o,u,c,g,C,l,w,p,f,U,I,v,y,F,y,F;return J(this,function(m){return this.ctx.save(),a=Lg(s,n),i=sB(s,n),B===2&&(this.path(i),this.ctx.clip()),sA(i[0])?(o=i[0].start.x,u=i[0].start.y):(o=i[0].x,u=i[0].y),sA(i[1])?(c=i[1].end.x,g=i[1].end.y):(c=i[1].x,g=i[1].y),n===0||n===2?C=Math.abs(o-c):C=Math.abs(u-g),this.ctx.beginPath(),B===3?this.formatPath(a):this.formatPath(i.slice(0,2)),l=t<3?t*3:t*2,w=t<3?t*2:t,B===3&&(l=t,w=t),p=!0,C<=l*2?p=!1:C<=l*2+w?(f=C/(2*l+w),l*=f,w*=f):(U=Math.floor((C+w)/(l+w)),I=(C-U*l)/(U-1),v=(C-(U+1)*l)/U,w=v<=0||Math.abs(w-I)<Math.abs(w-v)?I:v),p&&(B===3?this.ctx.setLineDash([0,l+w]):this.ctx.setLineDash([l,w])),B===3?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=t*2+1.1,this.ctx.strokeStyle=G(r),this.ctx.stroke(),this.ctx.setLineDash([]),B===2&&(sA(i[0])&&(y=i[3],F=i[0],this.ctx.beginPath(),this.formatPath([new h(y.end.x,y.end.y),new h(F.start.x,F.start.y)]),this.ctx.stroke()),sA(i[1])&&(y=i[1],F=i[2],this.ctx.beginPath(),this.formatPath([new h(y.end.x,y.end.y),new h(F.start.x,F.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(r){return Z(this,void 0,void 0,function(){var t;return J(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=G(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Ig(r),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(iB),_g=function(e){return e instanceof Ts||e instanceof bs?!0:e instanceof yr&&e.type!==vt&&e.type!==Et},Rg=function(e,A){switch(e){case 0:return Kt(A);case 2:return Fg(A);case 1:default:return bt(A)}},Gg=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ng=["-apple-system","system-ui"],Vg=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return Ng.indexOf(A)===-1}):e},Pg=function(e){iA(A,e);function A(r,t){var n=e.call(this,r,t)||this;return n.canvas=t.canvas?t.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=t,n.canvas.width=Math.floor(t.width*t.scale),n.canvas.height=Math.floor(t.height*t.scale),n.canvas.style.width=t.width+"px",n.canvas.style.height=t.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-t.x,-t.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale),n}return A.prototype.render=function(r){return Z(this,void 0,void 0,function(){var t,n;return J(this,function(s){switch(s.label){case 0:return t=Hr(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,kg(t)];case 1:return n=s.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=G(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(iB),kg=function(e){return new Promise(function(A,r){var t=new Image;t.onload=function(){A(t)},t.onerror=r,t.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Xg=function(){function e(A){var r=A.id,t=A.enabled;this.id=r,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Pe([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Pe([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Pe([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],r=0;r<arguments.length;r++)A[r]=arguments[r];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Pe([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e}(),Jg=function(){function e(A,r){var t;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new Xg({id:this.instanceName,enabled:A.logging}),this.cache=(t=A.cache)!==null&&t!==void 0?t:new gg(this,A)}return e.instanceCount=1,e}(),Yg=function(e,A){return A===void 0&&(A={}),Wg(e,A)};typeof window!="undefined"&&$s.setContext(window);var Wg=function(e,A){return Z(void 0,void 0,void 0,function(){var r,t,n,s,B,a,i,o,u,c,g,C,l,w,p,f,U,I,v,y,F,m,F,L,E,j,W,q,R,uA,HA,IA,mA,VA,cA,yA,PA,kA,CA,XA;return J(this,function(hA){switch(hA.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(t=r.defaultView,!t)throw new Error("Document is not attached to a Window");return n={allowTaint:(L=A.allowTaint)!==null&&L!==void 0?L:!1,imageTimeout:(E=A.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:A.proxy,useCORS:(j=A.useCORS)!==null&&j!==void 0?j:!1},s=kt({logging:(W=A.logging)!==null&&W!==void 0?W:!0,cache:A.cache},n),B={windowWidth:(q=A.windowWidth)!==null&&q!==void 0?q:t.innerWidth,windowHeight:(R=A.windowHeight)!==null&&R!==void 0?R:t.innerHeight,scrollX:(uA=A.scrollX)!==null&&uA!==void 0?uA:t.pageXOffset,scrollY:(HA=A.scrollY)!==null&&HA!==void 0?HA:t.pageYOffset},a=new dA(B.scrollX,B.scrollY,B.windowWidth,B.windowHeight),i=new Jg(s,a),o=(IA=A.foreignObjectRendering)!==null&&IA!==void 0?IA:!1,u={allowTaint:(mA=A.allowTaint)!==null&&mA!==void 0?mA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:o,copyStyles:o},i.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),c=new zs(i,e,u),g=c.clonedReferenceElement,g?[4,c.toIFrame(r,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return C=hA.sent(),l=Kr(g)||Zc(g)?va(g.ownerDocument):ke(i,g),w=l.width,p=l.height,f=l.left,U=l.top,I=Zg(i,g,A.backgroundColor),v={canvas:A.canvas,backgroundColor:I,scale:(cA=(VA=A.scale)!==null&&VA!==void 0?VA:t.devicePixelRatio)!==null&&cA!==void 0?cA:1,x:((yA=A.x)!==null&&yA!==void 0?yA:0)+f,y:((PA=A.y)!==null&&PA!==void 0?PA:0)+U,width:(kA=A.width)!==null&&kA!==void 0?kA:Math.ceil(w),height:(CA=A.height)!==null&&CA!==void 0?CA:Math.ceil(p)},o?(i.logger.debug("Document cloned, using foreign object rendering"),F=new Pg(i,v),[4,F.render(g)]):[3,3];case 2:return y=hA.sent(),[3,5];case 3:return i.logger.debug("Document cloned, element located at "+f+","+U+" with size "+w+"x"+p+" using computed rendering"),i.logger.debug("Starting DOM parsing"),m=xs(i,g),I===m.styles.backgroundColor&&(m.styles.backgroundColor=EA.TRANSPARENT),i.logger.debug("Starting renderer for element at "+v.x+","+v.y+" with size "+v.width+"x"+v.height),F=new Mg(i,v),[4,F.render(m)];case 4:y=hA.sent(),hA.label=5;case 5:return((XA=A.removeContainer)!==null&&XA!==void 0?XA:!0)&&(zs.destroy(C)||i.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),i.logger.debug("Finished rendering"),[2,y]}})})},Zg=function(e,A,r){var t=A.ownerDocument,n=t.documentElement?Te(e,getComputedStyle(t.documentElement).backgroundColor):EA.TRANSPARENT,s=t.body?Te(e,getComputedStyle(t.body).backgroundColor):EA.TRANSPARENT,B=typeof r=="string"?Te(e,r):r===null?EA.TRANSPARENT:4294967295;return A===t.documentElement?MA(n)?MA(s)?B:s:n:B},jg=Yg,zg=JA({name:"share",props:{teacherId:{type:Number}},data(){return{qrCode:"",image:null}},mounted(){console.log(Ae),this.qrCode=location.origin+"/student/#/inviteTeacher?id="+this.teacherId,this.$nextTick(async()=>{const e=document.getElementById("share-preview-container");jg(e,{allowTaint:!0,useCORS:!0}).then(A=>{let r=A.toDataURL("image/png");this.image=r})})},methods:{async shareShow(){let e=this.image;e&&bB({api:"shareAchievements",content:{title:"\u6211\u5728\u9177\u4E50\u79C0\u4F7F\u7528\u5C0F\u9177Ai\u7EC3\u4E60\u4E50\u5668",desc:"\u9177\u4E50\u79C0\u5C0F\u9177Ai\u5E2E\u52A9\u6211\u81EA\u4E3B\u7EC3\u4E60\u4E50\u5668\uFF0C\u771F\u7684\u592A\u597D\u7528\u5566\uFF01\u6BCF\u5929\u90FD\u8981\u575A\u6301\u7EC3\u4E60\u54E6~",image:e,video:"",type:"image"}},A=>{A&&A.content&&LA(A.content.message||(A.content.status?"\u5206\u4EAB\u6210\u529F":"\u5206\u4EAB\u5931\u8D25"))})}},render(){return Q(fe,null,[Q("div",{class:$.continue,onClick:()=>{this.shareShow()}},[D("\u5206\u4EAB")]),Q("div",{class:$.shareSection,id:"share-preview-container"},[Q("div",{class:$.section},[Q(Mt,{center:!0,border:!1,style:{padding:0}},{icon:()=>Q("img",{src:Ae.user.data.heardUrl?Ae.user.data.heardUrl+"?time="+new Date().valueOf():_B,class:$.img,crossorigin:"anonymous"},null),title:()=>Q("div",null,[Q("p",{class:$.name},[Ae.user.data.username]),Q("p",{class:$.titleTips},[D("\u9177\u4E50\u79C0\u5165\u9A7B\u8001\u5E08")])])}),Q("p",{class:[$.txt,$.teacherName]},[Q("span",null,[Ae.user.data.username]),D("\u9080\u8BF7\u60A8\u52A0\u5165\u9177\u4E50\u79C0")]),Q("p",{class:$.txt},[D("\u6765\u4E0E\u6211\u4E00\u8D77\u8E0F\u5165\u97F3\u4E50\u6BBF\u5802\u5427\uFF01")])]),Q("div",{class:[$.section,$.download]},[Q("div",{class:$.logo},[Q("img",{src:oB},null),Q("p",null,[D("\u626B\u7801\u4E0B\u8F7D\u9177\u4E50\u79C0\u5F00\u542F\u6559\u5B66\u4E4B\u65C5")])]),Q("div",{class:$.qrcode},[Q(Ea,{value:this.qrCode,style:{width:"100%",height:"100%"}},null)])])])])}});const qg="_label_v8pn1_1",$g="_studentList_v8pn1_13",Al="_btnGroup_v8pn1_20";var Gr={label:qg,studentList:$g,btnGroup:Al};function el(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Xr(e)}var tl=JA({name:"myStudent",props:{courseId:Number,onSubmit:{type:Function,default:e=>{}}},data(){return{searchStatus:!1,openStatus:!1,subjectList:[],list:[],dataShow:!0,loading:!1,finished:!1,params:{userName:"",subjectName:"\u5168\u90E8\u58F0\u90E8",subjectId:null,page:1,rows:20},interfaceIds:[],userIdList:[]}},async mounted(){try{const e=await UA.get("/api-teacher/subject/subjectSelect");this.subjectList=e.data||[]}catch{}await this.getExistList(),await this.getList()},methods:{onSort(){this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.searchStatus=!1,this.getList()},onSearch(e){this.params.userName=e,this.onSort()},async getExistList(){try{const r=((await UA.post("/api-teacher/courseSchedule/selectStudent",{data:{courseId:this.courseId,page:1,rows:20}})).data.rows||[]).map(t=>t.userId);this.interfaceIds=[...r],this.userIdList=[...r]}catch{}},async getList(){try{const e=await UA.post("/api-teacher/courseSchedule/selectStudent",{data:this.params});this.loading=!1;const A=e.data||{};if(this.list.length>0&&A.pageNo===1)return;const r=A.rows||[];r.forEach(t=>{this.userIdList.includes(t.userId)?t.checked=!0:t.checked=!1}),this.list=this.list.concat(r||[]),this.finished=A.pageNo>=A.totalPage,this.params.page=A.pageNo+1,this.dataShow=this.list.length>0}catch{this.dataShow=!1,this.finished=!0}},equar(e,A){if(e.length!==A.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==A[r])return!1;return!0},nextSubmit(){if(this.userIdList.length<=0)return LA("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B66\u5458");if(this.equar(this.interfaceIds,this.userIdList))return LA("\u60A8\u672A\u8C03\u6574\u5B66\u5458");const e=this.userIdList.filter(n=>!this.interfaceIds.includes(n)&&n),A=this.interfaceIds.filter(n=>!this.userIdList.includes(n)&&n);console.log(e,A);const r=[],t=[];this.list.forEach(n=>{e.includes(n.userId)&&r.push(n),A.includes(n.userId)&&t.push(n)}),console.log(r,t),this.onSubmit({addStudents:r,removeStudents:t,userIdList:this.userIdList})},onCheckbox(e){if(!e.checked&&this.userIdList.length>=7)return LA("\u5B66\u751F\u5DF2\u8FBE\u4E0A\u9650");e.checked=!e.checked;const A=this.userIdList.includes(e.userId);e.checked?!A&&this.userIdList.push(e.userId):A&&this.userIdList.splice(this.userIdList.indexOf(e.userId),1)}},render(){let e;return Q(fe,null,[Q(RB,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u5458\u540D\u79F0",onSearch:this.onSearch},{left:()=>Q("div",{class:Gr.label,onClick:()=>{this.searchStatus=!this.searchStatus,this.openStatus=!this.openStatus}},[this.params.subjectName,Q(_t,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}),Q("div",{class:Gr.studentList},[this.dataShow?Q(kr,{loading:this.loading,"onUpdate:loading":A=>this.loading=A,finished:this.finished,finishedText:" ",class:["mb12"],immediateCheck:!1,onLoad:this.getList},el(e=this.list.map(A=>Q(Gt,{item:{userName:A.userName,subjectName:A.subjectName,avatar:A.avatar},onClick:()=>{this.onCheckbox(A)}},{default:()=>[Q(SB,{modelValue:A.checked,"onUpdate:modelValue":r=>A.checked=r,name:A.userId,onClick:()=>{this.onCheckbox(A)}},null)]})))?e:{default:()=>[e]}):Q(Nr,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u5B66\u5458"},null)]),Q(ee,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:()=>this.searchStatus=!1,onClosed:()=>this.openStatus=!1},{default:()=>[this.openStatus&&Q(GB,{subjectList:this.subjectList,onSort:this.onSort,isReset:!0,modelValue:this.params.subjectId,"onUpdate:modelValue":A=>this.params.subjectId=A,subjectName:this.params.subjectName,"onUpdate:subjectName":A=>this.params.subjectName=A},null)]}),Q("div",{class:Gr.btnGroup},[Q(Ce,{type:"primary",round:!0,block:!0,onClick:this.nextSubmit},{default:()=>[D("\u4E0B\u4E00\u6B65")]})])])}});const rl="_confirmTitle_yqlm2_1",nl="_timer_yqlm2_8",sl="_addTitle_yqlm2_11",Bl="_calc_yqlm2_12",al="_studentList_yqlm2_26",il="_btnGroup_yqlm2_30";var NA={confirmTitle:rl,timer:nl,addTitle:sl,calc:Bl,studentList:al,btnGroup:il},ol=JA({name:"studentConfirm",props:{courseInfo:{type:Object,default:{}},studentObject:{type:Object,default:{}},onSubmit:{type:Function,default:e=>{}}},computed:{timer(){const e=this.courseInfo;return FA(e.startTime).format("YYYY/MM/DD HH:mm")+" ~ "+FA(e.endTime).format("HH:mm")},addStudents(){const{addStudents:e}=this.studentObject;return e||[]},removeStudents(){const{removeStudents:e}=this.studentObject;return e||[]},calcTimer(){const{addStudents:e,removeStudents:A}=this.studentObject,{singleCourseTime:r,studentCount:t}=this.courseInfo,n=e.length-A.length;console.log(n,r,this.courseInfo);const s=n>=0?"add":"remove",B=(t+1)*t*r,a=Math.abs((Math.abs(n+t)+1)*Math.abs(n+t)*r);return{type:s,mins:Math.abs(B-a)}}},render(){return Q("div",{class:NA.studentConfirm},[Q("div",{class:[NA.confirmTitle,"van-hairline--bottom"]},[Q("p",null,[D("\u60A8\u5C06\u4E3A"),this.courseInfo.groupName]),Q("p",{class:NA.timer},[this.timer])]),Q("div",{class:NA.studentList},[this.addStudents.length>0&&Q(fe,null,[Q("p",{class:NA.addTitle},[D("\u6DFB\u52A0\u5B66\u5458 "),Q("span",null,[this.addStudents.length]),D(" \u540D")]),this.addStudents.map(e=>Q(Gt,{border:!1,item:e},null))]),this.removeStudents.length>0&&Q(fe,null,[Q("p",{class:NA.addTitle},[D("\u79FB\u9664\u5B66\u5458 "),Q("span",null,[this.removeStudents.length]),D(" \u540D")]),this.removeStudents.map(e=>Q(Gt,{border:!1,item:e},null))])]),Q("p",{class:NA.calc},[D("\u8C03\u6574\u540E\u5C06"),this.calcTimer.type==="remove"?"\u91CA\u653E":"\u51BB\u7ED3"," ",Q("span",null,[this.calcTimer.mins]),D(" \u5206\u949F")]),Q("div",{class:NA.btnGroup},[Q(Ce,{type:"primary",round:!0,block:!0,onClick:()=>{const{userIdList:e}=this.studentObject;this.onSubmit(e)}},{default:()=>[D("\u786E\u8BA4\u8C03\u6574")]})])])}});function ul(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Xr(e)}const Re=e=>{const A=`./images/${e}`;return{"./images/icon_arrow.png":uB,"./images/icon_class_plan.png":cB,"./images/icon_education.png":IB,"./images/icon_education_active.png":mB,"./images/icon_freeze_timer.png":gB,"./images/icon_invite_student.png":lB,"./images/icon_last_timer.png":QB,"./images/icon_message.png":wB,"./images/icon_music_account.png":fB,"./images/icon_name_active.png":yB,"./images/icon_num.png":CB,"./images/icon_timers.png":hB,"./images/icon_tips.png":LB,"./images/logo.png":UB,"./images/paino_bg.png":FB,"./images/room_bg.png":dB,"./images/select_timers.png":pB,"./images/select_timers_bg.png":EB,"./images/share_bg.png":vB,"./images/title_timers.png":HB}[A].default};var _l=JA({name:"PianoRoom",data(){return{shareStatus:!1,teacherId:0,typeStatus:!1,courseTxt:"\u6240\u6709\u8BFE\u7A0B",actions:[{name:"\u6240\u6709\u8BFE\u7A0B"},{name:"\u672A\u5F00\u59CB",status:"NOT_START"},{name:"\u8FDB\u884C\u4E2D",status:"ING"},{name:"\u5DF2\u5B8C\u6210",status:"COMPLETE"},{name:"\u5DF2\u53D6\u6D88",status:"CANCEL"}],remain:{frozenTime:0,remainTime:0,studentCount:0},list:[],dataShow:!0,loading:!1,finished:!1,monthTxt:FA().format("YYYY\u5E74MM\u6708"),month:new Date,params:{status:"",month:FA().format("YYYY-MM"),page:1,rows:20},timeShow:!1,timeUpdateStatus:!1,timeUpdateInfo:{},timeUpdateTimer:new Date,studentStatus:!1,studentConfirm:!1,studentChangeObject:{},background:"transparent",setLoading:!1,startClassTime:"",endClassTime:"",minDate:new Date}},async mounted(){await this._init(),await this.getBaseData(),await this.getList(),NB(document,"scroll",e=>{const{y:A}=VB();A.value>45?this.background="#fff":this.background="transparent"})},methods:{async _init(){try{const e=await UA.get("/api-teacher/courseSchedule/selectRemainTime"),{frozenTime:A,remainTime:r,studentCount:t,teacherId:n}=e.data||{};this.remain={frozenTime:A||0,remainTime:r||0,studentCount:t||0},this.teacherId=n}catch{}},async getBaseData(){try{const e=await UA.get("/api-teacher/sysConfig/queryByParamNameList",{params:{paramNames:"course_start_setting,course_end_setting"}});console.log(e);const A=e.data;for(let r=0,t=A.length;r<t;r++)A[r].paramName==="course_start_setting"&&(this.startClassTime=A[r].paramValue?A[r].paramValue.split(":"):[]),A[r].paramName==="course_end_setting"&&(this.endClassTime=A[r].paramValue?A[r].paramValue.split(":"):[]);console.log(this.startClassTime,this.endClassTime)}catch{}},onSearch(){this.dataShow=!0,this.loading=!1,this.finished=!1,this.list=[],this.params.page=1,this.getList()},onSelect(e){this.courseTxt=e.name,this.params.status=e.status||"",this._init(),this.onSearch()},async getList(){try{if(this.setLoading)return;this.setLoading=!0;const e=await UA.post("/api-teacher/courseSchedule/selectCourseList",{data:this.params});this.setLoading=!1,this.loading=!1;const A=e.data||{};if(this.list.length>0&&A.pageNo===1)return;this.list=this.list.concat(A.rows||[]),this.finished=A.pageNo>=A.totalPage,this.params.page=A.pageNo+1,this.dataShow=this.list.length>0}catch{this.dataShow=!1,this.finished=!0}},async onCourseDelete(e){try{Jr.confirm({title:"\u63D0\u793A",message:"\u786E\u5B9A\u5220\u9664\u8BE5\u8BFE\u7A0B\u5417\uFF1F",confirmButtonColor:"var(--van-primary)"}).then(async()=>{await UA.post("/api-teacher/courseSchedule/deleteCourse",{data:{courseId:e.courseId}}),console.log("\u5220\u9664\u6210\u529F"),LA("\u8BFE\u7A0B\u5220\u9664\u6210\u529F"),this._init(),this.onSearch()})}catch{}},onTimeUpdateChange(e){try{Jr.confirm({title:"\u63D0\u793A",message:"\u786E\u5B9A\u8C03\u6574\u8BE5\u8BFE\u7A0B\u5417\uFF1F",confirmButtonColor:"var(--van-primary)"}).then(async()=>{const{courseId:A,singleCourseTime:r}=this.timeUpdateInfo,t=FA(e).format("YYYY-MM-DD HH:mm:ss"),n=FA(e).add(r,"minute").format("YYYY-MM-DD HH:mm:ss");await UA.post("/api-teacher/courseSchedule/updateCourseTime",{data:{courseId:A,startTime:t,endTime:n}}),this.timeUpdateStatus=!1,LA("\u8BFE\u7A0B\u8C03\u6574\u6210\u529F"),this.onSearch()})}catch{}},async onStudentChange(e){try{const{courseId:A}=this.timeUpdateInfo;await UA.post("/api-teacher/courseSchedule/updateCourseStudent",{data:{studentIds:e,courseId:A}}),this.studentConfirm=!1,LA("\u5B66\u751F\u8C03\u6574\u6210\u529F"),setTimeout(async()=>{await this._init(),this.onSearch()},1e3)}catch{}},onTeacherAuth(e){const A=Ae.user.data;A.entryStatus==="PASS"?e&&e():A.entryStatus==="DOING"?LA("\u8BA4\u8BC1\u5BA1\u6838\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"):this.$router.push("/teacherCert")},filterDate(e,A){var t;let r=0;return this.$refs.datetime&&(r=((t=this.$refs.datetime.getPicker().getValues()[3])==null?void 0:t.split("\u65F6")[0])||0),e=="hour"?A.filter(n=>Number(this.startClassTime[0])<=Number(n)&&Number(this.endClassTime[0])>=Number(n)):e==="minute"?A.filter(n=>Number(this.startClassTime[1])<=Number(n)&&Number(this.endClassTime[1])>=Number(n)||r!=Number(this.endClassTime[0])):A}},render(){let e;return Q(fe,null,[Q("div",{class:X.roomHeader},[Q(KB,{background:this.background,rightText:"\u8BFE\u7A0B\u8BB0\u5F55",onClickRight:()=>{this.$router.push("/courseRecord")},border:!1},null),Q(DB,{class:X.countTimer},{default:()=>[Q(Rt,{span:9},{default:()=>[Q("p",{class:X.timer},[this.remain.remainTime,Q("span",null,[D("\u5206\u949F")])]),Q("p",{class:X.title},[Q("img",{src:Re("icon_last_timer.png")},null),Q("span",null,[D("\u7434\u623F\u5269\u4F59\u65F6\u957F")])])]}),Q(Rt,{span:9},{default:()=>[Q("p",{class:X.timer},[this.remain.frozenTime,Q("span",null,[D("\u5206\u949F")])]),Q("p",{class:X.title},[Q("img",{src:Re("icon_freeze_timer.png")},null),Q("span",null,[D("\u51BB\u7ED3\u65F6\u957F")])])]}),Q(Rt,{span:6},{default:()=>[Q(Ce,{type:"primary",round:!0,size:"small",class:X.chargeTimer,onClick:()=>{this.onTeacherAuth(()=>{this.$router.push({path:"/accountRechargeTimer"})})}},{default:()=>[D("\u65F6\u957F\u5145\u503C"),Q("img",{src:Re("icon_arrow.png")},null)]})]})]}),Q(xB,{class:X.studentList,border:!1},{default:()=>[Q(Mt,{title:`\u6211\u7684\u5B66\u5458 ${this.remain.studentCount} \u4EBA`,titleClass:X.studentCount,isLink:!0,to:"/myStudent",border:!1},null),Q(Mt,{valueClass:X.btnGroupInvite},{default:()=>[Q(Ce,{color:"#E0F7F3",round:!0,block:!0,onClick:()=>{this.onTeacherAuth(()=>{this.shareStatus=!0})}},{default:()=>[Q("img",{src:Re("icon_invite_student.png")},null),D("\u9080\u8BF7\u5B66\u5458")]}),Q(Ce,{color:"#E0F7F3",round:!0,block:!0,onClick:()=>{this.onTeacherAuth(()=>{this.$router.push("/classArrangement")})}},{default:()=>[Q("img",{src:Re("icon_class_plan.png")},null),D("\u6392\u8BFE")]})]})]})]),Q("div",{class:X.searchList},[Q("div",{class:X.dataItem,onClick:()=>{this.timeShow=!0}},[this.monthTxt,Q(_t,{classPrefix:"iconfont",name:"down",size:8,style:{marginLeft:"4px"},color:"#CCCCCC"},null)]),Q("div",{class:X.dataItem,onClick:()=>{this.typeStatus=!0}},[this.courseTxt,Q(_t,{classPrefix:"iconfont",name:"down",size:8,style:{marginLeft:"4px"},color:"#CCCCCC"},null)])]),this.dataShow?Q(kr,{loading:this.loading,"onUpdate:loading":A=>this.loading=A,finished:this.finished,finishedText:" ",class:[X.liveList,"mb12"],immediateCheck:!1,onLoad:this.getList},ul(e=this.list.map(A=>Q(MB,{item:A,operation:A.status==="NOT_START",onCourseDelete:this.onCourseDelete,onStudentAdjust:r=>{console.log(r),this.timeUpdateInfo=r,this.studentStatus=!0},onTimeAdjust:r=>{this.timeUpdateInfo=r,this.timeUpdateTimer=FA(r.startTime).toDate(),this.timeUpdateStatus=!0}},null)))?e:{default:()=>[e]}):Q(Nr,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u8BFE\u7A0B"},null),Q(ee,{position:"bottom",show:this.timeShow,"onUpdate:show":A=>this.timeShow=A,round:!0},{default:()=>[Q("div",{class:X.picker},[Q(Yr,{modelValue:this.month,"onUpdate:modelValue":A=>this.month=A,type:"year-month",formatter:Vr,onConfirm:A=>{this.monthTxt=FA(A).format("YYYY\u5E74MM\u6708"),this.params.month=FA(A).format("YYYY-MM"),this.timeShow=!1,this.onSearch()},onCancel:()=>this.timeShow=!1},null)])]}),Q(ee,{position:"bottom",show:this.timeUpdateStatus,"onUpdate:show":A=>this.timeUpdateStatus=A,round:!0},{default:()=>[Q("div",{class:X.picker},[Q(Yr,{modelValue:this.timeUpdateTimer,"onUpdate:modelValue":A=>this.timeUpdateTimer=A,type:"datetime",minDate:this.minDate,formatter:Vr,filter:this.filterDate,ref:"datetime",onConfirm:A=>{this.onTimeUpdateChange(A)},onCancel:()=>this.timeUpdateStatus=!1},null)])]}),Q(OB,{show:this.typeStatus,"onUpdate:show":A=>this.typeStatus=A,actions:this.actions,closeOnClickAction:!0,cancelText:"\u53D6\u6D88",onSelect:this.onSelect,onCancel:()=>{this.typeStatus=!1}},null),Q(ee,{show:this.shareStatus,"onUpdate:show":A=>this.shareStatus=A,round:!0},{default:()=>[Q(zg,{teacherId:this.teacherId},null)]}),Q(ee,{show:this.studentStatus,"onUpdate:show":A=>this.studentStatus=A,position:"bottom",round:!0},{default:()=>[this.studentStatus&&Q(tl,{courseId:this.timeUpdateInfo.courseId,onSubmit:A=>{this.studentChangeObject=A,this.studentStatus=!1,this.studentConfirm=!0}},null)]}),Q(ee,{show:this.studentConfirm,"onUpdate:show":A=>this.studentConfirm=A,position:"bottom",round:!0,closeable:!0},{default:()=>[Q(ol,{courseInfo:this.timeUpdateInfo,studentObject:this.studentChangeObject,onSubmit:async A=>{await this.onStudentChange(A)}},null)]})])}});export{_l as default,Re as getAssetsHomeFile};
