@zyzgroup/core-vue 0.0.43 → 0.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/ce/style.css +1 -1
  2. package/ce/yz_custom_element.iife.js +148 -149
  3. package/ce/yz_custom_element.iife.js.map +1 -1
  4. package/ce/yz_custom_element.js +17265 -15234
  5. package/ce/yz_custom_element.js.map +1 -1
  6. package/ce/yz_custom_element.umd.cjs +148 -149
  7. package/ce/yz_custom_element.umd.cjs.map +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/zyzgroup_core_vue.iife.js +17 -10
  10. package/dist/zyzgroup_core_vue.iife.js.map +1 -1
  11. package/dist/zyzgroup_core_vue.js +8801 -3726
  12. package/dist/zyzgroup_core_vue.js.map +1 -1
  13. package/dist/zyzgroup_core_vue.umd.cjs +17 -10
  14. package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
  15. package/package.json +2 -2
  16. package/types/components/Accordion.ce.vue.d.ts +5 -11
  17. package/types/components/Accordion.vue.d.ts +5 -11
  18. package/types/components/Button.ce.vue.d.ts +17 -13
  19. package/types/components/Button.vue.d.ts +17 -13
  20. package/types/components/Canvas.ce.vue.d.ts +5 -5
  21. package/types/components/Canvas.vue.d.ts +5 -5
  22. package/types/components/Click.ce.vue.d.ts +38 -0
  23. package/types/components/Click.vue.d.ts +38 -0
  24. package/types/components/Container.ce.vue.d.ts +166 -12
  25. package/types/components/Container.vue.d.ts +166 -12
  26. package/types/components/Dialog.ce.vue.d.ts +31 -10
  27. package/types/components/Dialog.vue.d.ts +31 -10
  28. package/types/components/DialogLoading.ce.vue.d.ts +2 -2
  29. package/types/components/DialogLoading.vue.d.ts +2 -2
  30. package/types/components/MapTianditu.ce.vue.d.ts +8 -4
  31. package/types/components/MapTianditu.vue.d.ts +8 -4
  32. package/types/components/NumberKeyboard.ce.vue.d.ts +22 -0
  33. package/types/components/NumberKeyboard.vue.d.ts +22 -0
  34. package/types/components/Overlay.ce.vue.d.ts +3 -3
  35. package/types/components/Overlay.vue.d.ts +3 -3
  36. package/types/components/Page.ce.vue.d.ts +2 -3
  37. package/types/components/Page.vue.d.ts +2 -3
  38. package/types/components/PlateKeyboard.ce.vue.d.ts +2 -2
  39. package/types/components/PlateKeyboard.vue.d.ts +2 -2
  40. package/types/components/Pop.ce.vue.d.ts +12 -11
  41. package/types/components/Pop.vue.d.ts +12 -11
  42. package/types/components/Popover.ce.vue.d.ts +12 -12
  43. package/types/components/Popover.vue.d.ts +12 -12
  44. package/types/components/SVG.ce.vue.d.ts +5 -5
  45. package/types/components/SVG.vue.d.ts +5 -5
  46. package/types/components/chat/HalfRingIndicator.ce.vue.d.ts +15 -0
  47. package/types/components/chat/HalfRingIndicator.vue.d.ts +15 -0
  48. package/types/components/effect/BorderFocusText.ce.vue.d.ts +3 -4
  49. package/types/components/effect/BorderFocusText.vue.d.ts +3 -4
  50. package/types/components/effect/CSSAnimation.ce.vue.d.ts +3 -4
  51. package/types/components/effect/CSSAnimation.vue.d.ts +3 -4
  52. package/types/components/effect/CSSTransition.ce.vue.d.ts +3 -4
  53. package/types/components/effect/CSSTransition.vue.d.ts +3 -4
  54. package/types/components/effect/Circle.ce.vue.d.ts +4 -5
  55. package/types/components/effect/Circle.vue.d.ts +4 -5
  56. package/types/components/effect/Float.ce.vue.d.ts +1 -2
  57. package/types/components/effect/Float.vue.d.ts +1 -2
  58. package/types/components/effect/ImageMask.ce.vue.d.ts +3 -3
  59. package/types/components/effect/ImageMask.vue.d.ts +3 -3
  60. package/types/components/effect/LineDouble.ce.vue.d.ts +4 -5
  61. package/types/components/effect/LineDouble.vue.d.ts +4 -5
  62. package/types/components/effect/LineSingle.ce.vue.d.ts +4 -5
  63. package/types/components/effect/LineSingle.vue.d.ts +4 -5
  64. package/types/components/effect/Slide.ce.vue.d.ts +1 -2
  65. package/types/components/effect/Slide.vue.d.ts +1 -2
  66. package/types/components/effect/SlideCorner.ce.vue.d.ts +4 -5
  67. package/types/components/effect/SlideCorner.vue.d.ts +4 -5
  68. package/types/components/form/ColorPicker.ce.vue.d.ts +9 -13
  69. package/types/components/form/ColorPicker.vue.d.ts +9 -13
  70. package/types/components/form/Input.ce.vue.d.ts +1 -1
  71. package/types/components/form/Input.vue.d.ts +1 -1
  72. package/types/components/form/InputRangeBox.ce.vue.d.ts +2 -2
  73. package/types/components/form/InputRangeBox.vue.d.ts +2 -2
  74. package/types/components/form/InputRangeCanvas.ce.vue.d.ts +6 -4
  75. package/types/components/form/InputRangeCanvas.vue.d.ts +6 -4
  76. package/types/components/form/SlideLeftItem.ce.vue.d.ts +8 -7
  77. package/types/components/form/SlideLeftItem.vue.d.ts +8 -7
  78. package/types/components/form/Switch.ce.vue.d.ts +1 -1
  79. package/types/components/form/Switch.vue.d.ts +1 -1
  80. package/types/components/svg/SVGAdd.ce.vue.d.ts +7 -0
  81. package/types/components/svg/SVGAdd.vue.d.ts +7 -0
  82. package/types/components/svg/SVGCleanLeft.ce.vue.d.ts +7 -0
  83. package/types/components/svg/SVGCleanLeft.vue.d.ts +7 -0
  84. package/types/components/svg/SVGClose.ce.vue.d.ts +7 -0
  85. package/types/components/svg/SVGClose.vue.d.ts +7 -0
  86. package/types/components/svg/SVGDelete.ce.vue.d.ts +0 -3
  87. package/types/components/svg/SVGDelete.vue.d.ts +0 -3
  88. package/types/components/svg/SVGEllipse.ce.vue.d.ts +7 -0
  89. package/types/components/svg/SVGEllipse.vue.d.ts +7 -0
  90. package/types/components/svg/SVGWarn.ce.vue.d.ts +4 -4
  91. package/types/components/svg/SVGWarn.vue.d.ts +4 -4
  92. package/types/globalTeleport.d.ts +14 -3
  93. package/types/main.d.ts +1 -0
@@ -1,6 +1,19 @@
1
- var ZYZGroupCoreVue=function(Y,c,pe,le){"use strict";function ho(){return c.getCurrentInstance()}function Vt(e,t){return c.createVNode(e,t)}function mo(e){const t=Vt(e.component,e.props);e.appContext&&(t.appContext=e.appContext),c.render(t,e.selfContainer),e.parentContainer?.appendChild(e.selfContainer)}function po(e){let t;c.onMounted(()=>{t=e()}),c.onUnmounted(()=>{t?.()})}function Dt(e=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",o=t.length;let n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*o)];return n}function go(e){return e.replace(/(^\w)/g,t=>t.toLowerCase())}const yo=(e,t="-")=>{let o=e.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return o=o.replace(new RegExp(`^${t}`),""),o};function vo(e){return e.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function To(e){return go(vo(e))}const bo="[object String]",Eo="[object Symbol]";function Ut(e){return Object.prototype.toString.call(e)}function _o(e){return Ut(e)===bo}function Co(e){return e===e+0}function wo(e){return Ut(e)===Eo}function So(e,t){const o=e.findIndex(n=>n===t);return o>=0&&e.splice(o,1),e}let zt;try{zt=Map}catch{zt=function(){}}let $t;try{$t=Set}catch{$t=function(){}}function Po(e){return typeof e=="number"&&Number.isNaN(e)}function Io(e,t){if(e=parseFloat(e),Po(e)){if(typeof t=="number")return t;throw new Error(`parseNumber(${e}) isNaN!`)}return e}const j=(e,t,o)=>e<t?t:e>o?o:e;function Fo(e,t=12){return Io(e,0).toFixed(t)}function ko(e,t=12){return+Fo(e,t)}Oo();function Oo(){const e=new ArrayBuffer(4),t=new Float32Array(e),o=new Uint32Array(e),n=new Uint32Array(512),r=new Uint32Array(512);for(let u=0;u<256;++u){const h=u-127;h<-27?(n[u]=0,n[u|256]=32768,r[u]=24,r[u|256]=24):h<-14?(n[u]=1024>>-h-14,n[u|256]=1024>>-h-14|32768,r[u]=-h-1,r[u|256]=-h-1):h<=15?(n[u]=h+15<<10,n[u|256]=h+15<<10|32768,r[u]=13,r[u|256]=13):h<128?(n[u]=31744,n[u|256]=64512,r[u]=24,r[u|256]=24):(n[u]=31744,n[u|256]=64512,r[u]=13,r[u|256]=13)}const s=new Uint32Array(2048),a=new Uint32Array(64),d=new Uint32Array(64);for(let u=1;u<1024;++u){let h=u<<13,p=0;for(;!(h&8388608);)h<<=1,p-=8388608;h&=-8388609,p+=947912704,s[u]=h|p}for(let u=1024;u<2048;++u)s[u]=939524096+(u-1024<<13);for(let u=1;u<31;++u)a[u]=u<<23;a[31]=1199570944,a[32]=2147483648;for(let u=33;u<63;++u)a[u]=2147483648+(u-32<<23);a[63]=3347054592;for(let u=1;u<64;++u)u!==32&&(d[u]=1024);return{floatView:t,uint32View:o,baseTable:n,shiftTable:r,mantissaTable:s,exponentTable:a,offsetTable:d}}function J(){return(performance||Date).now()}function Ro(e,t){let o=!0;return function(...n){o&&(o=!1,e.apply(this,n),setTimeout(()=>{o=!0},t))}}function Lo(e,t){let o;return function(...n){clearTimeout(o),o=setTimeout(()=>{e.apply(this,n)},t)}}class ht{events;constructor(){this.events={}}has(t,o){return this.events[t]!==void 0&&this.events[t].indexOf(o)!==-1}prependListener(t,o){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(o),this}addListener(t,o){return this.events[t]||(this.events[t]=[]),this.events[t].push(o),this}on(t,o){return this.addListener(t,o),this}removeListener(t,o){return this.events[t]&&(this.events[t]=this.events[t].filter(n=>n!==o)),this}off(t,o){return this.removeListener(t,o),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...o){return this.events[t]&&this.events[t].slice(0).forEach(r=>{r(...o)}),this}once(t,o){const r=(()=>{let s=!1;return(...a)=>{s||(s=!0,o(...a),this.off(t,r))}})();return this.on(t,r),this}}class No extends ht{results=[];queue=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){super(),this.concurrency=t,this.rs=new ReadableStream({start:async o=>{this.controller=o}})}get stream(){return this.rs}clearUnstartTasks(){this.queue=[]}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const o=await Promise.allSettled(t.map(r=>r())),n=this.results.length;o.forEach((r,s)=>{if(r.status=="fulfilled"){const a=r.value;this.results.push(a),this.controller?.enqueue(a),this.emit("success",n+s,a)}else if(r.status=="rejected"){const a=new Error(r.reason);this.results.push(a),this.controller?.enqueue(a),this.emit("error",n+s,a)}}),this.activeTaskCount-=o.length}}}Array.prototype.ap=function(e){return this.reduce((t,o)=>t.concat(e.map(o)),[])};class Ht{maps=new Map;mapsAddedDuringUpdate=new Map;entries(){return Array.from(this.maps.entries())}keys(){return Array.from(this.maps.keys())}values(){return Array.from(this.maps.values())}json(){return this.entries().reduce((t,[o,n])=>((_o(o)||Co(o)||wo(o))&&(t[o]=n),t),{})}get length(){return this.entries().length}set(t,o){this.maps.set(t,o),this.mapsAddedDuringUpdate.set(t,o)}get(t){return this.maps.get(t)}getIndex(t){const o=this.entries();if(o.length&&o[t]){const[n,r]=o[t];return[n,r]}}top(){return this.getIndex(0)}shift(){const t=this.top();if(t){const[o]=t;this.delete(o)}return t}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}clear(){this.maps.clear(),this.mapsAddedDuringUpdate.clear()}filter(t){let o=Array.from(this.maps.entries());for(;o.length>0;){this.mapsAddedDuringUpdate.clear();for(let n=0,r=o.length;n<r;n++){const[s,a]=o[n];t(s,a)===!1&&this.delete(s)}o=Array.from(this.mapsAddedDuringUpdate.entries())}}}function xo(e,t=(o,n)=>o<=n){const o=e.length;let n=Math.floor(o/2);for(;n>0;){for(let r=n;r<o;r++){const s=e[r];let a=r;for(;a>=n&&!t(e[a-n],s);)e[a]=e[a-n],a-=n;e[a]=s}n=Math.floor(n/2)}}let jt;try{jt=Promise}catch{jt=function(){}}function Ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ge(e,t,o,n=!1){const r=async s=>{await o(s)};try{e.addEventListener(t,r,n)}catch{e.attachEvent("on"+t,r)}return()=>{try{e.removeEventListener(t,r,n)}catch{e.detachEvent("on"+t,r)}}}function dt(){const e=new ht;return{on:(t,o)=>{e.on(t,o)},off:(t,o)=>{e.off(t,o)},emit:(t,...o)=>{e.emit(t,...o)}}}(function(){if(!window.requestAnimationFrame){let e=J();window.requestAnimationFrame=function(t){const o=J(),n=Math.max(0,16-(o-e)),r=window.setTimeout(function(){t(o+n)},n);return e=o+n,r}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();function Mo(e){let t=!1;return window.requestAnimationFrame(function o(n){!t&&e(n)&&window.requestAnimationFrame(o)}),()=>{t=!0}}window.requestIdleCallback=window.requestIdleCallback||function(e,t){const o=J();return setTimeout(function(){e({didTimeout:J()-o>50,timeRemaining:()=>Math.max(0,50-(J()-o))})},t?.timeout)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)};let Yt=0,Bo;const Gt=new MessageChannel;Gt.port2,Gt.port1.onmessage=e=>{Bo({didTimeout:Yt<=J(),timeRemaining:()=>Math.max(0,Yt-J())})};class mt{static _nextId=0;static nextId(){return mt._nextId++}}const _={Linear:{None:function(e){return e}},Ease:{In:function(e){return Math.pow(e,1.7)}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.sin((1-e)*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))}},Exponential:{In:function(e){return e===0?0:Math.pow(1024,e-1)},Out:function(e){return e===1?1:1-Math.pow(2,-10*e)},InOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},Out:function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},InOut:function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)}},Back:{In:function(e){return e===1?1:e*e*((1.70158+1)*e-1.70158)},Out:function(e){return e===0?0:--e*e*((1.70158+1)*e+1.70158)+1},InOut:function(e){const t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-_.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?_.Bounce.In(e*2)*.5:_.Bounce.Out(e*2-1)*.5+.5}},generatePow:function(e=4){return e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:function(t){return t**e},Out:function(t){return 1-(1-t)**e},InOut:function(t){return t<.5?(t*2)**e/2:(1-(2-t*2)**e)/2+.5}}},random:function(e){return Math.random()},createStep:function(e){return function(t){return Math.floor(t*e)/e}},createNoisyEasing:function(e,t=.1){const o=1-t;return function(n){return t*Math.random()+o*e(n)}},swing:function(e){return e+Math.sin(e*Math.PI*2)/2},causeSeizures:function(e){return e+.2*Math.random()-.1}};function Vo(e){switch(e){case _.Quadratic.In:return _.Quadratic.Out;case _.Quadratic.Out:return _.Quadratic.In;case _.Quadratic.InOut:return _.Quadratic.InOut;case _.Cubic.In:return _.Cubic.Out;case _.Cubic.Out:return _.Cubic.In;case _.Cubic.InOut:return _.Cubic.InOut;case _.Quartic.In:return _.Quartic.Out;case _.Quartic.Out:return _.Quartic.In;case _.Quartic.InOut:return _.Quartic.InOut;case _.Quintic.In:return _.Quintic.Out;case _.Quintic.Out:return _.Quintic.In;case _.Quintic.InOut:return _.Quintic.InOut;case _.Sinusoidal.In:return _.Sinusoidal.Out;case _.Sinusoidal.Out:return _.Sinusoidal.In;case _.Sinusoidal.InOut:return _.Sinusoidal.InOut;case _.Exponential.In:return _.Exponential.Out;case _.Exponential.Out:return _.Exponential.In;case _.Exponential.InOut:return _.Exponential.InOut;case _.Circular.In:return _.Circular.Out;case _.Circular.Out:return _.Circular.In;case _.Circular.InOut:return _.Circular.InOut;case _.Elastic.In:return _.Elastic.Out;case _.Elastic.Out:return _.Elastic.In;case _.Elastic.InOut:return _.Elastic.InOut;case _.Back.In:return _.Back.Out;case _.Back.Out:return _.Back.In;case _.Back.InOut:return _.Back.InOut;case _.Bounce.In:return _.Bounce.Out;case _.Bounce.Out:return _.Bounce.In;case _.Bounce.InOut:return _.Bounce.InOut;default:return e}}const we={Utils:{Linear:function(e,t,o){return(t-e)*o+e},Factorial:function(){const e=[1];return function(t){let o=1;if(e[t])return e[t];for(let n=t;n>1;n--)o*=n;return e[t]=o,o}}(),Bernstein:function(e,t){const o=we.Utils.Factorial;return o(e)/o(t)/o(e-t)},CatmullRom:function(e,t,o,n,r){const s=(o-e)*.5,a=(n-t)*.5,d=r*r,u=r*d;return(2*t-2*o+s+a)*u+(-3*t+3*o-2*s-a)*d+s*r+t},QuadraticBezier:(e,t,o,n)=>{const r=1-n;return r*r*e+2*r*n*t+n*n*o},CubicBezier:(e,t,o,n,r)=>{const s=1-r;return s*s*s*e+3*s*s*r*t+3*s*r*r*o+r*r*r*n}},Linear:function(e,t){const o=e.length-1,n=o*t,r=Math.floor(n),s=we.Utils.Linear;return t<0?s(e[0],e[1],n):t>1?s(e[o],e[o-1],o-n):s(e[r],e[r+1>o?o:r+1],n-r)},Bezier:function(e,t){let o=0;const n=e.length-1,r=Math.pow,s=we.Utils.Bernstein;for(let a=0;a<=n;a++)o+=r(1-t,n-a)*r(t,a)*e[a]*s(n,a);return o},CatmullRom:function(e,t){const o=e.length-1;let n=o*t,r=Math.floor(n);const s=we.Utils.CatmullRom;return e[0]===e[o]?(t<0&&(r=Math.floor(n=o*(1+t))),s(e[(r-1+o)%o],e[r],e[(r+1)%o],e[(r+2)%o],n-r)):t<0?e[0]-(s(e[0],e[0],e[1],e[1],-n)-e[0]):t>1?e[o]-(s(e[o],e[o],e[o-1],e[o-1],n-o)-e[o]):s(e[r?r-1:0],e[r],e[o<r+1?o:r+1],e[o<r+2?o:r+2],n-r)}};class Do{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]}update(t=J(),o=!1){const n=Object.keys(this._tweens);for(let r=0;r<n.length;r++){const s=this._tweens[n[r]],a=!o;s&&s.update(t,a)===!1&&!o&&delete this._tweens[n[r]]}return!!Object.keys(this._tweens).length}}const Xt=new Do;class Uo{constructor(t,o=Xt){this._object=t,this._group=o}_id=mt.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=_.Linear.None;_interpolationFunction=we.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(t,o){return this._valuesEnd=Object.create(t),o!==void 0&&(this._durationTime=o),this}duration(t=1e3){return this._durationTime=t,this}start(t=J()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const o in this._valuesStartRepeat)this._swapEndStartRepeatValues(o),this._valuesStart[o]=this._valuesStartRepeat[o]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,o,n,r){for(const s in n){const a=t[s],d=Array.isArray(a),u=d?"array":typeof a,h=!d&&Array.isArray(n[s]);if(!(u==="undefined"||u==="function")){if(h){let p=n[s];if(p.length===0)continue;p=p.map(this._handleRelativeValue.bind(this,a)),n[s]=[a].concat(p)}if((u==="object"||d)&&a&&!h){o[s]=d?[]:{};for(const p in a)o[s][p]=a[p];r[s]=d?[]:{},this._setupProperties(a,o[s],n[s],r[s])}else typeof o[s]>"u"&&(o[s]=a),d||(o[s]*=1),h?r[s]=n[s].slice().reverse():r[s]=o[s]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=J()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=J()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,o=this._chainedTweens.length;t<o;t++)this._chainedTweens[t].stop();return this}group(t=Xt){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=_.Linear.None){return this._easingFunction=t,this}interpolation(t=we.Linear){return this._interpolationFunction=t,this}chain(...t){return this._chainedTweens=t,this}onStart(t){return this._onStartCallback=t,this}onEveryStart(t){return this._onEveryStartCallback=t,this}onUpdate(t){return this._onUpdateCallback=t,this}onRepeat(t){return this._onRepeatCallback=t,this}onComplete(t){return this._onCompleteCallback=t,this}onStop(t){return this._onStopCallback=t,this}update(t=J(),o=!0){if(this._isPaused)return!0;let n,r;const s=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>s)return!1;o&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),r=(t-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let d=0,u=this._chainedTweens.length;d<u;d++)this._chainedTweens[d].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,o,n,r){for(const s in n){if(o[s]===void 0)continue;const a=o[s]||0;let d=n[s];const u=Array.isArray(t[s]),h=Array.isArray(d);!u&&h?t[s]=this._interpolationFunction(d,r):typeof d=="object"&&d?this._updateProperties(t[s],a,d,r):(d=this._handleRelativeValue(a,d),typeof d=="number"&&(t[s]=a+(d-a)*r))}}_handleRelativeValue(t,o){return typeof o!="string"?o:o.charAt(0)==="+"||o.charAt(0)==="-"?t+parseFloat(o):parseFloat(o)}_swapEndStartRepeatValues(t){const o=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=n,this._valuesEnd[t]=o}}class zo{autoStart;startTime;oldTime;elapsedTime;running;constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=J(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const o=J();t=o-this.oldTime,this.oldTime=o,this.elapsedTime+=t}return t}}const qt=zo;class pt{tweens=[];frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){xo(this.tweens,(o,n)=>t?o.delay>n.delay:o.delay<=n.delay)}cloneTweens(t=this.tweens){const o=[];return t.forEach(n=>{const r={...n};delete r.tween,r.fromValues={...r.fromValues},r.toValues={...r.toValues},o.push(r)}),o}addTween(t,o,n){const r={fromValues:t,toValues:o,frames:typeof n?.frames=="number"?n.frames:1,delay:typeof n?.delay=="number"?n.delay:this.tweens.length,easeFunction:n?.easeFunction||_.Linear.None,interpolationFunction:n?.interpolationFunction||we.Linear,repeat:typeof n?.repeat=="number"?n.repeat:0,yoyo:n?.yoyo||!1,onStart:n?.onStart||(()=>{}),onUpdate:n?.onUpdate||(()=>{}),onComplete:n?.onComplete||(()=>{})};return this.tweens.push(r),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const o=new qt,n=this.frameDuration;return new Promise(r=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=Mo(s=>{if(!this.isPaused){const d=Math.max(0,s-this.pausedDuration),u=Math.max(0,o.getElapsedTime()-this.pausedDuration);t.filter(h=>h.delay*n<=u).forEach(h=>{h.tween||(h.tween=new Uo({...h.fromValues}).to({...h.toValues},h.frames*n).easing(h.easeFunction).interpolation(h.interpolationFunction).repeat(h.repeat).yoyo(h.yoyo).onStart(h.onStart).onUpdate(h.onUpdate).onComplete(h.onComplete),h.tween.start(d)),(h.delay+h.frames*(h.repeat+1))*n>u?h.tween.update(d):(h.tween.isPlaying()&&h.tween.end(),So(t,h))})}const a=!!t.length;return a||(this.onGroupComplete?.(),r()),a})})}isPaused=!1;pausedClock=new qt;pausedDuration=0;play(t=this.cloneTweens(this.tweens)){this.isPaused=!1,this.pausedDuration=0,this.runTweens(t)}reverse(){const t=this.cloneTweens(this.tweens);let o=0;t.forEach(n=>{o=Math.max(o,n.delay+n.frames),n.easeFunction=Vo(n.easeFunction);const r={...n.toValues};n.toValues={...n.fromValues},n.fromValues={...r}}),t.forEach(n=>{n.delay=o-n.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}const Wt=new Ht;function $o(e){let t=Wt.get(e);return t||(t=ln(e),Wt.set(e,t)),t}function gt(e,t,o){const n=$o(e);return n.props.style=n.props.style||{},t?n.props.style[t]||n.props.style[To(t)]||n.props.style[yo(t)]||"":n.props.style}function Ho(e){const t={};if(getComputedStyle){const o=getComputedStyle(e);for(let n=0,r=o.length;n<r;n++)t[o[n]]=o.getPropertyValue(t[n])}else{const o=e.currentStyle;for(const n in o)t[n]=o[n]}return e.style.cssText&&e.style.cssText.split(";").filter(o=>!!o).forEach(o=>{const[n,r]=o.split(":");n&&r&&(t[n.trim()]=r.trim())}),t}function jo(e,t){let o;if(typeof t=="string"){const r=document.querySelector(t)?.shadowRoot;r?o=r:o=document.querySelector(t)}else o=t||document.getElementsByTagName("head")[0];const n=document.createElement("style");if(n.innerHTML=e,o)return o.appendChild(n),()=>{(o instanceof HTMLElement||o instanceof ShadowRoot)&&o.removeChild(n)};{const r=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(r)}}}function Yo(e){const t={};for(let o=0,n=e.attributes,r=n.length;o<r;o++){const s=n[o];s.nodeName&&s.nodeValue&&(s.nodeName==="style"?t[s.nodeName]=Ho(e):t[s.nodeName]=s.nodeValue)}return t}const ae=dt();let Qt="";new MutationObserver((e,t)=>{location.href!==Qt&&(Qt=location.href,ae.emit("urlchange",location.href))}).observe(document,{attributes:!0,childList:!0,subtree:!0}),ge(window,"hashchange",()=>{ae.emit("hashchange",location.hash)}),ge(window,"popstate",e=>{ae.emit("popstate",e.state)}),ge(window,"orientationchange"in window?"orientationchange":"resize",e=>{const t=e.target.innerWidth,o=e.target.innerHeight;ae.emit("windowresize",t,o)}),ge(window,"load",e=>{ae.emit("load",e)}),ge(window,"beforeunload",e=>{ae.emit("beforeunload",e)}),ge(window,"pagehide",e=>{ae.emit("pagehide",e)}),ge(window,"focus",e=>{ae.emit("focus",e)}),ge(window,"blur",e=>{ae.emit("blur",e)}),ge(window,"visibilitychange",e=>{document.hidden?ae.emit("windowhidden",e):ae.emit("windowvisible",e)});function Go(e){document.getElementsByTagName("title")[0].innerText=e,document.title=e}let Zt=!1;function Xe(){Zt||(Zt=!0,jo(`
2
- /* iOS > 11.2 */
3
- /* 注意:--xxx:后面不要有空格 */
1
+ var ZYZGroupCoreVue=function(H,f,Ft,kt){"use strict";function Ki(){return f.getCurrentInstance()}function js(n,t){return f.createVNode(n,t)}function Ji(n){const t=js(n.component,n.props);n.appContext&&(t.appContext=n.appContext),f.render(t,n.selfContainer),n.parentContainer?.appendChild(n.selfContainer)}function tr(n){let t;f.onMounted(()=>{t=n()}),f.onUnmounted(()=>{t?.()})}const es=n=>{let t=null;switch(n){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/i;break;case"oct":t=/^(0o)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":t=/^[\x00-\xFF]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":t=/\s*,\s*/gi;break;case"trim":t=/^\s+|\s+$/g;break;case"regexp":t=/[\\^$.*+?()[\]{}|]/g;break;case"regexp-flags":t=/\w*$/;break;case"native-method":t=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(es("regexp"),"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+?[1-9]{1}[0-9]{10}$/g;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+\@[A-Za-z0-9._-]+\.[A-Za-z0-9]+$/gm;break;case"ip":t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"url":t=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"time":t=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"datetime":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":t=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"whitespace":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"bezier":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
2
+ [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
3
+ |[\u{4E00}-\u{9FCC}]
4
+ |[\u{3400}-\u{4DB5}]
5
+ |[\u{20000}-\u{2A6D6}]
6
+ |[\u{2A700}-\u{2B734}]
7
+ |[\u{2B740}-\u{2B81D}]
8
+ |[\u{2B820}-\u{2CEAF}]
9
+ |[\u{2CEB0}-\u{2EBEF}]
10
+ `.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":t=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":t=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t},er=(n,t)=>{typeof n=="string"&&(n=es(n)||new RegExp(n));const e=t.match(n);return e?n.flags.toLowerCase().indexOf("g")>=0?e.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},Hs=(n,t)=>{typeof n=="string"&&(n=es(n)||new RegExp(n));const e=[],s=t.matchAll(n);for(const i of s)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function _e(n=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let s="";for(let i=0;i<n;i++)s+=t[Math.floor(Math.random()*e)];return s}function sr(n){return n.replace(/(^\w)/g,t=>t.toLowerCase())}const Et=(n,t="-")=>{let e=n.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function nr(n){return n.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function ir(n){return sr(nr(n))}const rr="[object String]",or="[object Symbol]";function Zs(n){return Object.prototype.toString.call(n)}function ar(n){return Zs(n)===rr}function cr(n){return n===n+0}function lr(n){return Zs(n)===or}function hr(n,...t){return new n.constructor(...t)}function ur(n,t){const e=n.findIndex(s=>s===t);return e>=0&&n.splice(e,1),n}let Ws;try{Ws=Map}catch{Ws=function(){}}let Qs;try{Qs=Set}catch{Qs=function(){}}function bt(n,t){const e=parseFloat(n);if(Number.isNaN(e)){if(typeof t=="number")return t;throw new Error(`parseNumber(${n}) is NaN!`)}return e}function Y(n,t,e){const s=Math.min(t,e),i=Math.max(t,e);return n<s?s:n>i?i:n}function fr(n,t){return(n%t+t)%t}function ss(n,t,e){return(1-e)*n+e*t}function mr(n,t=12){return bt(n,0).toFixed(t)}function Ht(n,t=12){return+mr(n,t)}function Ks(n){const t=er("number",n);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}dr();function dr(){const n=new ArrayBuffer(4),t=new Float32Array(n),e=new Uint32Array(n),s=new Uint32Array(512),i=new Uint32Array(512);for(let c=0;c<256;++c){const l=c-127;l<-27?(s[c]=0,s[c|256]=32768,i[c]=24,i[c|256]=24):l<-14?(s[c]=1024>>-l-14,s[c|256]=1024>>-l-14|32768,i[c]=-l-1,i[c|256]=-l-1):l<=15?(s[c]=l+15<<10,s[c|256]=l+15<<10|32768,i[c]=13,i[c|256]=13):l<128?(s[c]=31744,s[c|256]=64512,i[c]=24,i[c|256]=24):(s[c]=31744,s[c|256]=64512,i[c]=13,i[c|256]=13)}const r=new Uint32Array(2048),o=new Uint32Array(64),a=new Uint32Array(64);for(let c=1;c<1024;++c){let l=c<<13,h=0;for(;!(l&8388608);)l<<=1,h-=8388608;l&=-8388609,h+=947912704,r[c]=l|h}for(let c=1024;c<2048;++c)r[c]=939524096+(c-1024<<13);for(let c=1;c<31;++c)o[c]=c<<23;o[31]=1199570944,o[32]=2147483648;for(let c=33;c<63;++c)o[c]=2147483648+(c-32<<23);o[63]=3347054592;for(let c=1;c<64;++c)c!==32&&(a[c]=1024);return{floatView:t,uint32View:e,baseTable:s,shiftTable:i,mantissaTable:r,exponentTable:o,offsetTable:a}}var Js=(n=>(n.UNKNOWN="",n.TEXT="text/plain",n.MD="text/plain",n.HTML="text/html",n.XML_TEXT="text/xml",n.CSS="text/css",n.JPEG="image/jpeg",n.PNG="image/png",n.GIF="image/gif",n.BMP="image/bmp",n.WEBP="image/webp",n.SVG="image/svg+xml",n.ICON="image/x-icon",n.MICROSOFT_ICON="image/vnd.microsoft.icon",n.MPEG="audio/mpeg",n.MP3="audio/mpeg",n.MP4="video/mp4",n.OGG="audio/ogg",n.WAV="audio/wav",n.MIDI="audio/midi",n.WEBM="video/webm",n.VIDEO_OGG="video/ogg",n.OCTET_STREAM="application/octet-stream",n.JAVASCRIPT="application/javascript",n.ECMASCRIPT="application/ecmascript",n.JSON="application/json",n.XML="application/xml",n.XHTML="application/xhtml+xml",n.XWWW="application/x-www-form-urlencoded",n.DOC="application/msword",n.CSV="application/x-csv",n.EXCEL="application/vnb.ms-excel",n.PPT="application/vnb.mspowerpoint",n.PDF="application/pdf",n.ZIP="application/zip",n.TGZ="application/x-gtar",n.TAR_GZ="application/x-gzip",n.EOT="appliaction/vnd.ms-fontobject",n.TTF="aplication/font-sfnt",n.PKCS12="aplication/pkcs12",n))(Js||{}),xe=(n=>(n.ascii="ascii",n.utf8="utf8",n.utf16le="utf16le",n.ucs2="ucs2",n.base64="base64",n.base64url="base64url",n.latin1="latin1",n.binary="binary",n.hex="hex",n))(xe||{});const tn=(n,t,e)=>t?e===xe.base64?new Blob([n],{type:`${t};${e}`}):e===xe.utf8?new Blob([n],{type:`${t};charset=${e}`}):new Blob([n],{type:`${t}`}):new Blob([n]);function Z(){return(performance||Date).now()}class be{events;constructor(){this.events={}}isEmpty(t){return this.events[t]==null||this.events[t].length==0}has(t,e){return this.events[t]!==void 0&&this.events[t].indexOf(e)!==-1}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}addListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}on(t,e){return this.addListener(t,e),this}removeListener(t,e){return this.events[t]&&(this.events[t]=this.events[t].filter(s=>s!==e)),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].slice(0).forEach(i=>{i(...e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,e(...o),this.off(t,i))}})();return this.on(t,i),this}}class pr extends be{results=[];queue=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){super(),this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get stream(){return this.rs}clearUnstartTasks(){this.queue=[]}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const e=await Promise.allSettled(t.map(i=>i())),s=this.results.length;e.forEach((i,r)=>{if(i.status=="fulfilled"){const o=i.value;this.results.push(o),this.controller?.enqueue(o),this.emit("success",s+r,o)}else if(i.status=="rejected"){const o=new Error(i.reason);this.results.push(o),this.controller?.enqueue(o),this.emit("error",s+r,o)}}),this.activeTaskCount-=e.length}}}class ns{_maps=new Map;_mapsAddedDuringUpdate=new Map;_overflow;constructor(t){this._overflow=()=>{if(!t)return!1;const e=this.length;return e==0?!1:t?.overflow?t.overflow():!!t.size&&t.size>0&&e>=t.size}}entries(){return Array.from(this._maps.entries())}keys(){return Array.from(this._maps.keys())}values(){return Array.from(this._maps.values())}json(){return this.entries().reduce((t,[e,s])=>((ar(e)||cr(e)||lr(e))&&(t[e]=s),t),{})}get length(){return this.entries().length}set(t,e){for(;this._overflow();){const s=this._maps.keys().next();s.done||this.delete(s.value)}this._maps.set(t,e),this._mapsAddedDuringUpdate.set(t,e)}get(t){return this._maps.get(t)}has(t){return this._maps.has(t)}getIndex(t){const e=this.entries();if(e.length&&e[t])return e[t]}top(){return this.getIndex(0)}shift(){const t=this.top();if(t){const[e]=t;this.delete(e)}return t}delete(t){return this._mapsAddedDuringUpdate.delete(t),this._maps.delete(t)}clear(){this._maps.clear(),this._mapsAddedDuringUpdate.clear()}flush(){this.clear()}filter(t){let e=Array.from(this._maps.entries());for(;e.length>0;){this._mapsAddedDuringUpdate.clear();for(let s=0,i=e.length;s<i;s++){const[r,o]=e[s];t(r,o)===!1&&this.delete(r)}e=Array.from(this._mapsAddedDuringUpdate.entries())}}}const gr=300;function yr(n,t=gr,e){const s=typeof e?.leading=="boolean"?e.leading:!0,i=typeof e?.trailing=="boolean"?e.trailing:!1;let r=!0;return function(...a){r&&(r=!1,setTimeout(()=>{!s&&i&&n.apply(this,a),r=!0},t),s&&n.apply(this,a))}}Array.prototype.ap=function(n){return this.reduce((t,e)=>t.concat(n.map(e)),[])};let ie;function is(n){ie=n,n(),ie=null}class _r{subscribers=new Set;add(){ie&&!this.subscribers.has(ie)&&this.subscribers.add(ie)}notify(){this.subscribers.forEach(t=>t())}}const en=new WeakMap;function ve(n,t){let e=en.get(n);e||(e=new Map,en.set(n,e));let s=e.get(t);return s||(s=new _r,e.set(t,s)),s}function xr(n,t=!1){return Object.keys(n).forEach(e=>{let s=n[e];if(t&&typeof s=="object"&&s!==null)n[e]=rs(s,t);else{const i=ve(n,e);Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get(){return i.add(),s},set(r){s!=r&&(s=r,i.notify())}})}}),n}function sn(n,t=!1){return xr({value:n},t)}function rs(n,t=!1){const e={get(i,r,o){const a=Reflect.get(i,r,o);if(t&&typeof a=="object"&&a!==null&&!("isYZReactiveProxy"in a)){const l=rs(a,t);l.YZReactiveProxyParentTarget=i,l.YZReactiveProxyParentKey=r,Reflect.set(o,r,l)}return ve(i,r).add(),Reflect.get(i,r,o)},set(i,r,o,a){const c=Reflect.get(i,r,a),l=Reflect.set(i,r,o,a);return Array.isArray(i)?ve(i.YZReactiveProxyParentTarget,i.YZReactiveProxyParentKey).notify():c!=o&&ve(i,r).notify(),l},has(i,r){return r==="isYZReactiveProxy"||r in i}};return new Proxy(n,e)}const br=rs;function vr(n,t=(e,s)=>e<=s){const e=n.length;let s=Math.floor(e/2);for(;s>0;){for(let i=s;i<e;i++){const r=n[i];let o=i;for(;o>=s&&!t(n[o-s],r);)n[o]=n[o-s],o-=s;n[o]=r}s=Math.floor(s/2)}}let nn;try{nn=Promise}catch{nn=function(){}}function wr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tr={exports:{}};(function(n,t){(function(e){n.exports=e()})(function(e){var s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(T,C){var _=T[0],p=T[1],v=T[2],x=T[3];_+=(p&v|~p&x)+C[0]-680876936|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[1]-389564586|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[2]+606105819|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[3]-1044525330|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[4]-176418897|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[5]+1200080426|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[6]-1473231341|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[7]-45705983|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[8]+1770035416|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[9]-1958414417|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[10]-42063|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[11]-1990404162|0,p=(p<<22|p>>>10)+v|0,_+=(p&v|~p&x)+C[12]+1804603682|0,_=(_<<7|_>>>25)+p|0,x+=(_&p|~_&v)+C[13]-40341101|0,x=(x<<12|x>>>20)+_|0,v+=(x&_|~x&p)+C[14]-1502002290|0,v=(v<<17|v>>>15)+x|0,p+=(v&x|~v&_)+C[15]+1236535329|0,p=(p<<22|p>>>10)+v|0,_+=(p&x|v&~x)+C[1]-165796510|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[6]-1069501632|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[11]+643717713|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[0]-373897302|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[5]-701558691|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[10]+38016083|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[15]-660478335|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[4]-405537848|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[9]+568446438|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[14]-1019803690|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[3]-187363961|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[8]+1163531501|0,p=(p<<20|p>>>12)+v|0,_+=(p&x|v&~x)+C[13]-1444681467|0,_=(_<<5|_>>>27)+p|0,x+=(_&v|p&~v)+C[2]-51403784|0,x=(x<<9|x>>>23)+_|0,v+=(x&p|_&~p)+C[7]+1735328473|0,v=(v<<14|v>>>18)+x|0,p+=(v&_|x&~_)+C[12]-1926607734|0,p=(p<<20|p>>>12)+v|0,_+=(p^v^x)+C[5]-378558|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[8]-2022574463|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[11]+1839030562|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[14]-35309556|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[1]-1530992060|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[4]+1272893353|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[7]-155497632|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[10]-1094730640|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[13]+681279174|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[0]-358537222|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[3]-722521979|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[6]+76029189|0,p=(p<<23|p>>>9)+v|0,_+=(p^v^x)+C[9]-640364487|0,_=(_<<4|_>>>28)+p|0,x+=(_^p^v)+C[12]-421815835|0,x=(x<<11|x>>>21)+_|0,v+=(x^_^p)+C[15]+530742520|0,v=(v<<16|v>>>16)+x|0,p+=(v^x^_)+C[2]-995338651|0,p=(p<<23|p>>>9)+v|0,_+=(v^(p|~x))+C[0]-198630844|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[7]+1126891415|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[14]-1416354905|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[5]-57434055|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[12]+1700485571|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[3]-1894986606|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[10]-1051523|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[1]-2054922799|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[8]+1873313359|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[15]-30611744|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[6]-1560198380|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[13]+1309151649|0,p=(p<<21|p>>>11)+v|0,_+=(v^(p|~x))+C[4]-145523070|0,_=(_<<6|_>>>26)+p|0,x+=(p^(_|~v))+C[11]-1120210379|0,x=(x<<10|x>>>22)+_|0,v+=(_^(x|~p))+C[2]+718787259|0,v=(v<<15|v>>>17)+x|0,p+=(x^(v|~_))+C[9]-343485551|0,p=(p<<21|p>>>11)+v|0,T[0]=_+T[0]|0,T[1]=p+T[1]|0,T[2]=v+T[2]|0,T[3]=x+T[3]|0}function r(T){var C=[],_;for(_=0;_<64;_+=4)C[_>>2]=T.charCodeAt(_)+(T.charCodeAt(_+1)<<8)+(T.charCodeAt(_+2)<<16)+(T.charCodeAt(_+3)<<24);return C}function o(T){var C=[],_;for(_=0;_<64;_+=4)C[_>>2]=T[_]+(T[_+1]<<8)+(T[_+2]<<16)+(T[_+3]<<24);return C}function a(T){var C=T.length,_=[1732584193,-271733879,-1732584194,271733878],p,v,x,I,O,R;for(p=64;p<=C;p+=64)i(_,r(T.substring(p-64,p)));for(T=T.substring(p-64),v=T.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<v;p+=1)x[p>>2]|=T.charCodeAt(p)<<(p%4<<3);if(x[p>>2]|=128<<(p%4<<3),p>55)for(i(_,x),p=0;p<16;p+=1)x[p]=0;return I=C*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(I[2],16),R=parseInt(I[1],16)||0,x[14]=O,x[15]=R,i(_,x),_}function c(T){var C=T.length,_=[1732584193,-271733879,-1732584194,271733878],p,v,x,I,O,R;for(p=64;p<=C;p+=64)i(_,o(T.subarray(p-64,p)));for(T=p-64<C?T.subarray(p-64):new Uint8Array(0),v=T.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<v;p+=1)x[p>>2]|=T[p]<<(p%4<<3);if(x[p>>2]|=128<<(p%4<<3),p>55)for(i(_,x),p=0;p<16;p+=1)x[p]=0;return I=C*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(I[2],16),R=parseInt(I[1],16)||0,x[14]=O,x[15]=R,i(_,x),_}function l(T){var C="",_;for(_=0;_<4;_+=1)C+=s[T>>_*8+4&15]+s[T>>_*8&15];return C}function h(T){var C;for(C=0;C<T.length;C+=1)T[C]=l(T[C]);return T.join("")}h(a("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function T(C,_){return C=C|0||0,C<0?Math.max(C+_,0):Math.min(C,_)}ArrayBuffer.prototype.slice=function(C,_){var p=this.byteLength,v=T(C,p),x=p,I,O,R,L;return _!==e&&(x=T(_,p)),v>x?new ArrayBuffer(0):(I=x-v,O=new ArrayBuffer(I),R=new Uint8Array(O),L=new Uint8Array(this,v,I),R.set(L),O)}}();function g(T){return/[\u0080-\uFFFF]/.test(T)&&(T=unescape(encodeURIComponent(T))),T}function b(T,C){var _=T.length,p=new ArrayBuffer(_),v=new Uint8Array(p),x;for(x=0;x<_;x+=1)v[x]=T.charCodeAt(x);return C?v:p}function y(T){return String.fromCharCode.apply(null,new Uint8Array(T))}function m(T,C,_){var p=new Uint8Array(T.byteLength+C.byteLength);return p.set(new Uint8Array(T)),p.set(new Uint8Array(C),T.byteLength),_?p:p.buffer}function S(T){var C=[],_=T.length,p;for(p=0;p<_-1;p+=2)C.push(parseInt(T.substr(p,2),16));return String.fromCharCode.apply(String,C)}function P(){this.reset()}return P.prototype.append=function(T){return this.appendBinary(g(T)),this},P.prototype.appendBinary=function(T){this._buff+=T,this._length+=T.length;var C=this._buff.length,_;for(_=64;_<=C;_+=64)i(this._hash,r(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},P.prototype.end=function(T){var C=this._buff,_=C.length,p,v=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x;for(p=0;p<_;p+=1)v[p>>2]|=C.charCodeAt(p)<<(p%4<<3);return this._finish(v,_),x=h(this._hash),T&&(x=S(x)),this.reset(),x},P.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},P.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},P.prototype.setState=function(T){return this._buff=T.buff,this._length=T.length,this._hash=T.hash,this},P.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},P.prototype._finish=function(T,C){var _=C,p,v,x;if(T[_>>2]|=128<<(_%4<<3),_>55)for(i(this._hash,T),_=0;_<16;_+=1)T[_]=0;p=this._length*8,p=p.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(p[2],16),x=parseInt(p[1],16)||0,T[14]=v,T[15]=x,i(this._hash,T)},P.hash=function(T,C){return P.hashBinary(g(T),C)},P.hashBinary=function(T,C){var _=a(T),p=h(_);return C?S(p):p},P.ArrayBuffer=function(){this.reset()},P.ArrayBuffer.prototype.append=function(T){var C=m(this._buff.buffer,T,!0),_=C.length,p;for(this._length+=T.byteLength,p=64;p<=_;p+=64)i(this._hash,o(C.subarray(p-64,p)));return this._buff=p-64<_?new Uint8Array(C.buffer.slice(p-64)):new Uint8Array(0),this},P.ArrayBuffer.prototype.end=function(T){var C=this._buff,_=C.length,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v,x;for(v=0;v<_;v+=1)p[v>>2]|=C[v]<<(v%4<<3);return this._finish(p,_),x=h(this._hash),T&&(x=S(x)),this.reset(),x},P.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},P.ArrayBuffer.prototype.getState=function(){var T=P.prototype.getState.call(this);return T.buff=y(T.buff),T},P.ArrayBuffer.prototype.setState=function(T){return T.buff=b(T.buff,!0),P.prototype.setState.call(this,T)},P.ArrayBuffer.prototype.destroy=P.prototype.destroy,P.ArrayBuffer.prototype._finish=P.prototype._finish,P.ArrayBuffer.hash=function(T,C){var _=c(new Uint8Array(T)),p=h(_);return C?S(p):p},P})})(Tr);const rn=n=>new XMLSerializer().serializeToString(n),Cr=(n,t=Js.SVG,e=xe.utf8)=>tn(rn(n),t,e);function Sr(n,t){const e=sn(t||"");if(!t)try{let s=window.localStorage.getItem(n);s&&(s=JSON.parse(s),e.value=s?s.value:"")}catch{}return is(()=>{if(e.value)try{window.localStorage.setItem(n,JSON.stringify(e))}catch{}else window.localStorage.removeItem(n)}),e}function U(n,t,e,s=!1){const i=async r=>{await e(r)};try{n.addEventListener(t,i,s)}catch{n.attachEvent("on"+t,i)}return()=>{try{n.removeEventListener(t,i,s)}catch{n.detachEvent("on"+t,i)}}}(function(){if(!window.requestAnimationFrame){let n=Z();window.requestAnimationFrame=function(t){const e=Z(),s=Math.max(0,16-(e-n)),i=window.setTimeout(function(){t(e+s)},s);return n=e+s,i}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)})})();function Pr(n){let t=!1;return window.requestAnimationFrame(function e(s){!t&&n(s)&&window.requestAnimationFrame(e)}),()=>{t=!0}}window.requestIdleCallback=window.requestIdleCallback||function(n,t){const e=Z();return setTimeout(function(){n({didTimeout:Z()-e>50,timeRemaining:()=>Math.max(0,50-(Z()-e))})},t?.timeout)},window.cancelIdleCallback=window.cancelIdleCallback||function(n){clearTimeout(n)};const os=new ns;let as=!1;function on(n,t,e){n&&t&&os.set(n,{cb:t,startTime:Z(),timeout:e}),!as&&(as=!0,Er(s=>{as=!1;let i=s.timeRemaining();os.filter((r,o)=>{let a=!1;const c=Z();(i>0||o.timeout&&Z()-o.startTime>=o.timeout)&&(o.cb(),a=!0);const l=Z();return i-=l-c,!a}),os.length>0&&on()}))}let we=0,Yt=33,Nt=33,cs;const an=new MessageChannel,kr=an.port2;an.port1.onmessage=n=>{cs!==null&&cs({didTimeout:we<=Z(),timeRemaining:()=>Math.max(0,we-Z())})};function Er(n){return cs=n,requestAnimationFrame(t=>{let e=t-we+Nt;e<Nt&&Yt<Nt?(e<8&&(e=8),Nt=e<Yt?Yt:e):e>Nt&&Yt>Nt?Nt=e<Yt?Yt:e:Yt=e,we=t+Nt,kr.postMessage(null)})}class ls{static _nextId=0;static nextId(){return ls._nextId++}}const F={Linear:{None:function(n){return n}},Ease:{In:function(n){return Math.pow(n,1.7)}},Quadratic:{In:function(n){return n*n},Out:function(n){return n*(2-n)},InOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)}},Cubic:{In:function(n){return n*n*n},Out:function(n){return--n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)}},Quartic:{In:function(n){return n*n*n*n},Out:function(n){return 1- --n*n*n*n},InOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)}},Quintic:{In:function(n){return n*n*n*n*n},Out:function(n){return--n*n*n*n*n+1},InOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)}},Sinusoidal:{In:function(n){return 1-Math.sin((1-n)*Math.PI/2)},Out:function(n){return Math.sin(n*Math.PI/2)},InOut:function(n){return .5*(1-Math.sin(Math.PI*(.5-n)))}},Exponential:{In:function(n){return n===0?0:Math.pow(1024,n-1)},Out:function(n){return n===1?1:1-Math.pow(2,-10*n)},InOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)}},Circular:{In:function(n){return 1-Math.sqrt(1-n*n)},Out:function(n){return Math.sqrt(1- --n*n)},InOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)}},Elastic:{In:function(n){return n===0?0:n===1?1:-Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI)},Out:function(n){return n===0?0:n===1?1:Math.pow(2,-10*n)*Math.sin((n-.1)*5*Math.PI)+1},InOut:function(n){return n===0?0:n===1?1:(n*=2,n<1?-.5*Math.pow(2,10*(n-1))*Math.sin((n-1.1)*5*Math.PI):.5*Math.pow(2,-10*(n-1))*Math.sin((n-1.1)*5*Math.PI)+1)}},Back:{In:function(n){return n===1?1:n*n*((1.70158+1)*n-1.70158)},Out:function(n){return n===0?0:--n*n*((1.70158+1)*n+1.70158)+1},InOut:function(n){const t=2.5949095;return(n*=2)<1?.5*(n*n*((t+1)*n-t)):.5*((n-=2)*n*((t+1)*n+t)+2)}},Bounce:{In:function(n){return 1-F.Bounce.Out(1-n)},Out:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},InOut:function(n){return n<.5?F.Bounce.In(n*2)*.5:F.Bounce.Out(n*2-1)*.5+.5}},generatePow:function(n=4){return n=n<Number.EPSILON?Number.EPSILON:n,n=n>1e4?1e4:n,{In:function(t){return t**n},Out:function(t){return 1-(1-t)**n},InOut:function(t){return t<.5?(t*2)**n/2:(1-(2-t*2)**n)/2+.5}}},random:function(n){return Math.random()},createStep:function(n){return function(t){return Math.floor(t*n)/n}},createNoisyEasing:function(n,t=.1){const e=1-t;return function(s){return t*Math.random()+e*n(s)}},swing:function(n){return n+Math.sin(n*Math.PI*2)/2},causeSeizures:function(n){return n+.2*Math.random()-.1}};function Ar(n){switch(n){case F.Quadratic.In:return F.Quadratic.Out;case F.Quadratic.Out:return F.Quadratic.In;case F.Quadratic.InOut:return F.Quadratic.InOut;case F.Cubic.In:return F.Cubic.Out;case F.Cubic.Out:return F.Cubic.In;case F.Cubic.InOut:return F.Cubic.InOut;case F.Quartic.In:return F.Quartic.Out;case F.Quartic.Out:return F.Quartic.In;case F.Quartic.InOut:return F.Quartic.InOut;case F.Quintic.In:return F.Quintic.Out;case F.Quintic.Out:return F.Quintic.In;case F.Quintic.InOut:return F.Quintic.InOut;case F.Sinusoidal.In:return F.Sinusoidal.Out;case F.Sinusoidal.Out:return F.Sinusoidal.In;case F.Sinusoidal.InOut:return F.Sinusoidal.InOut;case F.Exponential.In:return F.Exponential.Out;case F.Exponential.Out:return F.Exponential.In;case F.Exponential.InOut:return F.Exponential.InOut;case F.Circular.In:return F.Circular.Out;case F.Circular.Out:return F.Circular.In;case F.Circular.InOut:return F.Circular.InOut;case F.Elastic.In:return F.Elastic.Out;case F.Elastic.Out:return F.Elastic.In;case F.Elastic.InOut:return F.Elastic.InOut;case F.Back.In:return F.Back.Out;case F.Back.Out:return F.Back.In;case F.Back.InOut:return F.Back.InOut;case F.Bounce.In:return F.Bounce.Out;case F.Bounce.Out:return F.Bounce.In;case F.Bounce.InOut:return F.Bounce.InOut;default:return n}}const Gt={Utils:{Linear:function(n,t,e){return(t-n)*e+n},Factorial:function(){const n=[1];return function(t){let e=1;if(n[t])return n[t];for(let s=t;s>1;s--)e*=s;return n[t]=e,e}}(),Bernstein:function(n,t){const e=Gt.Utils.Factorial;return e(n)/e(t)/e(n-t)},CatmullRom:function(n,t,e,s,i){const r=(e-n)*.5,o=(s-t)*.5,a=i*i,c=i*a;return(2*t-2*e+r+o)*c+(-3*t+3*e-2*r-o)*a+r*i+t},QuadraticBezier:(n,t,e,s)=>{const i=1-s;return i*i*n+2*i*s*t+s*s*e},CubicBezier:(n,t,e,s,i)=>{const r=1-i;return r*r*r*n+3*r*r*i*t+3*r*i*i*e+i*i*i*s}},Linear:function(n,t){const e=n.length-1,s=e*t,i=Math.floor(s),r=Gt.Utils.Linear;return t<0?r(n[0],n[1],s):t>1?r(n[e],n[e-1],e-s):r(n[i],n[i+1>e?e:i+1],s-i)},Bezier:function(n,t){let e=0;const s=n.length-1,i=Math.pow,r=Gt.Utils.Bernstein;for(let o=0;o<=s;o++)e+=i(1-t,s-o)*i(t,o)*n[o]*r(s,o);return e},CatmullRom:function(n,t){const e=n.length-1;let s=e*t,i=Math.floor(s);const r=Gt.Utils.CatmullRom;return n[0]===n[e]?(t<0&&(i=Math.floor(s=e*(1+t))),r(n[(i-1+e)%e],n[i],n[(i+1)%e],n[(i+2)%e],s-i)):t<0?n[0]-(r(n[0],n[0],n[1],n[1],-s)-n[0]):t>1?n[e]-(r(n[e],n[e],n[e-1],n[e-1],s-e)-n[e]):r(n[i?i-1:0],n[i],n[e<i+1?e:i+1],n[e<i+2?e:i+2],s-i)}};class Mr{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]}update(t=Z(),e=!1){const s=Object.keys(this._tweens);for(let i=0;i<s.length;i++){const r=this._tweens[s[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[s[i]]}return!!Object.keys(this._tweens).length}}const cn=new Mr;class Ir{constructor(t,e=cn){this._object=t,this._group=e}_id=ls.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=F.Linear.None;_interpolationFunction=Gt.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(t,e){return this._valuesEnd=Object.create(t),e!==void 0&&(this._durationTime=e),this}duration(t=1e3){return this._durationTime=t,this}start(t=Z()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,s,i){for(const r in s){const o=t[r],a=Array.isArray(o),c=a?"array":typeof o,l=!a&&Array.isArray(s[r]);if(!(c==="undefined"||c==="function")){if(l){let h=s[r];if(h.length===0)continue;h=h.map(this._handleRelativeValue.bind(this,o)),s[r]=[o].concat(h)}if((c==="object"||a)&&o&&!l){e[r]=a?[]:{};for(const h in o)e[r][h]=o[h];i[r]=a?[]:{},this._setupProperties(o,e[r],s[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),l?i[r]=s[r].slice().reverse():i[r]=e[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=Z()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=Z()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=cn){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=F.Linear.None){return this._easingFunction=t,this}interpolation(t=Gt.Linear){return this._interpolationFunction=t,this}chain(...t){return this._chainedTweens=t,this}onStart(t){return this._onStartCallback=t,this}onEveryStart(t){return this._onEveryStartCallback=t,this}onUpdate(t){return this._onUpdateCallback=t,this}onRepeat(t){return this._onRepeatCallback=t,this}onComplete(t){return this._onCompleteCallback=t,this}onStop(t){return this._onStopCallback=t,this}update(t=Z(),e=!0){if(this._isPaused)return!0;let s,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(t-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,c=this._chainedTweens.length;a<c;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,s,i){for(const r in s){if(e[r]===void 0)continue;const o=e[r]||0;let a=s[r];const c=Array.isArray(t[r]),l=Array.isArray(a);!c&&l?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],s=this._valuesEnd[t];typeof s=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(s):this._valuesStartRepeat[t]=s,this._valuesEnd[t]=e}}class Fr{autoStart;startTime;oldTime;elapsedTime;running;constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Z(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Z();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const ln=Fr;class Te{tweens=[];frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){vr(this.tweens,(e,s)=>t?e.delay>s.delay:e.delay<=s.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(s=>{const i={...s};delete i.tween,i.fromValues={...i.fromValues},i.toValues={...i.toValues},e.push(i)}),e}addTween(t,e,s){const i={fromValues:t,toValues:e,frames:typeof s?.frames=="number"?s.frames:1,delay:typeof s?.delay=="number"?s.delay:this.tweens.length,easeFunction:s?.easeFunction||F.Linear.None,interpolationFunction:s?.interpolationFunction||Gt.Linear,repeat:typeof s?.repeat=="number"?s.repeat:0,yoyo:s?.yoyo||!1,onStart:s?.onStart||(()=>{}),onUpdate:s?.onUpdate||(()=>{}),onComplete:s?.onComplete||(()=>{})};return this.tweens.push(i),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new ln,s=this.frameDuration;return new Promise(i=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=Pr(r=>{if(!this.isPaused){const a=Math.max(0,r-this.pausedDuration),c=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(l=>l.delay*s<=c).forEach(l=>{l.tween||(l.tween=new Ir({...l.fromValues}).to({...l.toValues},l.frames*s).easing(l.easeFunction).interpolation(l.interpolationFunction).repeat(l.repeat).yoyo(l.yoyo).onStart(l.onStart).onUpdate(l.onUpdate).onComplete(l.onComplete),l.tween.start(a)),(l.delay+l.frames*(l.repeat+1))*s>c?l.tween.update(a):(l.tween.isPlaying()&&l.tween.end(),ur(t,l))})}const o=!!t.length;return o||(this.onGroupComplete?.(),i()),o})})}isPaused=!1;pausedClock=new ln;pausedDuration=0;play(t=this.cloneTweens(this.tweens)){this.isPaused=!1,this.pausedDuration=0,this.runTweens(t)}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(s=>{e=Math.max(e,s.delay+s.frames),s.easeFunction=Ar(s.easeFunction);const i={...s.toValues};s.toValues={...s.fromValues},s.fromValues={...i}}),t.forEach(s=>{s.delay=e-s.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}const Ce=new ns,zr=(n=!0)=>{Ce.filter((t,e)=>(e.alternate&&(Zn(e,e.alternate),n&&Ce.set(t,e.alternate),e.alternate=void 0),n))};function hn(n){let t=Ce.get(n);return t||(t=Cs(n),Ce.set(n,t)),t}function Or(n){const t=hn(n);return t.alternate||(t.alternate=Cs(n)),t.alternate}function Rr(n,t,e=!0){t(Or(n)),on("FLUSH_DOM_ACTION",()=>zr(e),50)}function J(n){return n*Math.PI/180}function ut(n){return n*180/Math.PI}function un(n,t,e=0){return Math.sqrt(n*n+t*t+e*e)}function fn(n,t,e,s){return un(e-n,s-t)}function hs(n,t,e,s){const i=e-n,r=s-t;return i*i+r*r}function Se(n,t,e,s){let i=Math.atan2(s-t,e-n);return i<0&&(i+=Math.PI*2),i}function mn(n,t){return{dx:Math.cos(n)*t,dy:Math.sin(n)*t}}const dn=Lr("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function Lr(n,t=10){const e={},s=n.split(",");for(let i=0;i<s.length;i+=2){const r="&"+s[i+1]+";",o=parseInt(s[i],t);e[r]="&#"+o+";"}return e["\\xa0"]="&#160;",e}function st(n,t){const e=Object.keys(t);for(let s=0;s<e.length;s++)n=n.replace(new RegExp("{"+e[s]+"}","gi"),""+t[e[s]]);return n}function Pe(n){let t,e;if(!n)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=s[Math.floor(Math.random()*s.length)];while(n[t]);return t}function Nr(n){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[n]||t.start}function Dr(n){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[n]||t.alphabetic}const re={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class us{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(s.setAttribute("stop-color",st("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),s.setAttribute("stop-opacity",r[4]))}else s.setAttribute("stop-color",e);this.__root.appendChild(s)}}class pn{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class ke{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:s=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=s),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(re);for(let e=0,s=t.length;e<s;e++){const i=t[e];this[i]=re[i].canvas}}__getStyleState(){const t={},e=Object.keys(re);for(let s=0,i=e.length;s<i;s++){const r=e[s];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let s=0,i=e.length;s<i;s++){const r=e[s];this[r]=t[r]}}__createElement(t,e={},s=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);s&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const s=this.__currentElementsToStyle;s&&(e.setAttribute(t,""),e=s.element,s.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(re);for(let r=0;r<i.length;r++){const o=re[i[r]],a=this[i[r]];if(o.apply){if(a instanceof pn){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const c=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[c]=c,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(o.apply,st("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof us)e.setAttribute(o.apply,st("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const l=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);if(l){e.setAttribute(o.svgAttr,st("rgb({r},{g},{b})",{r:l[1],g:l[2],b:l[3]}));let h=parseFloat(l[4]);const g=this.globalAlpha;g!=null&&(h*=g),e.setAttribute(o.svgAttr+"-opacity",""+h)}}else{let c=o.svgAttr;if(i[r]==="globalAlpha"&&(c=t+"-"+o.svgAttr,e.getAttribute(c)))continue;c&&e.setAttribute(c,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(dn);for(let r=0,o=i.length;r<o;r++){const a=i[r],c=dn[a],l=new RegExp(a,"gi");l.test(e)&&(e=e.replace(l,c))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=t,this.__currentElement.setAttribute("transform",s)}scale(t,e){e===void 0&&(e=t),this.__addTransform(st("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(st("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(st("translate({x},{y})",{x:t,y:e}))}transform(t,e,s,i,r,o){this.__addTransform(st("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:s,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(st("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(st("L {x} {y}",this.__currentPosition)):this.__addPathCommand(st("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,s,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(st("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:s,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,s,i){this.__currentPosition={x:s,y:i},this.__addPathCommand(st("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:s,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,s,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===t&&a===e||t===s&&e===i||r===0){this.lineTo(t,e);return}const c=this.normalize([o-t,a-e]),l=this.normalize([s-t,i-e]);if(c[0]*l[1]===c[1]*l[0]){this.lineTo(t,e);return}const h=c[0]*l[0]+c[1]*l[1],g=Math.acos(Math.abs(h)),b=this.normalize([c[0]+l[0],c[1]+l[1]]),y=r/Math.sin(g/2),m=t+y*b[0],S=e+y*b[1],P=[-c[1],c[0]],T=[l[1],-l[0]],C=function(v){const x=v[0];return v[1]>=0?Math.acos(x):-Math.acos(x)},_=C(P),p=C(T);this.lineTo(m+P[0]*r,S+P[1]*r),this.arc(m,S,r,_,p)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,e,s,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+s,e),this.lineTo(t+s,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,s,i){const r=this.__createElement("rect",{x:t,y:e,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,s,i){const r=this.__createElement("rect",{x:t,y:e,width:s,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],i=s.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&s.removeChild(i[r]);this.__currentElement=s,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,s,i){if(t===0&&e===0&&s===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:s,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,s,i){const r=this.__createElement("linearGradient",{id:Pe(this.__ids),x1:t+"px",x2:s+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new us(r,this)}createRadialGradient(t,e,s,i,r,o){const a=this.__createElement("radialGradient",{id:Pe(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new us(a,this)}__parseFont(){const e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),s={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(t,e){if(t.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),s.appendChild(e),s}return e}__applyText(t,e,s,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:s,"text-anchor":Nr(this.textAlign),"dominant-baseline":Dr(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,s){this.__applyText(t,e,s,"fill")}strokeText(t,e,s){this.__applyText(t,e,s,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,s,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+s*Math.cos(r),c=e+s*Math.sin(r),l=t+s*Math.cos(i),h=e+s*Math.sin(i),g=o?0:1;let b=0,y=r-i;y<0&&(y+=2*Math.PI),o?b=y>Math.PI?0:1:b=y>Math.PI?1:0,this.lineTo(l,h),this.__addPathCommand(st("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:b,sweepFlag:g,endX:a,endY:c})),this.__currentPosition={x:a,y:c}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),s=Pe(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",s),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",st("url(#{id})",{id:s})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],s,i,r,o,a=0,c=0,l,h,g,b,y,m,S,P;if(t.length===3)s=t[1],i=t[2],l=e.width,h=e.height,r=l,o=h;else if(t.length===5)s=t[1],i=t[2],r=t[3],o=t[4],l=e.width,h=e.height;else if(t.length===9)a=t[1],c=t[2],l=t[3],h=t[4],s=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const T=this.__closestGroupOrSvg();this.__currentElement;const C="translate("+s+", "+i+")";if(e instanceof ke){if(g=e.getSvg().cloneNode(!0),g.childNodes&&g.childNodes.length>1){for(b=g.childNodes[0];b.childNodes.length;)P=b.childNodes[0].getAttribute("id"),this.__ids[P]=P,this.__SVGdefs.appendChild(b.childNodes[0]);if(y=g.childNodes[1],y){const _=y.getAttribute("transform");let p;_?p=_+" "+C:p=C,y.setAttribute("transform",p),T.appendChild(y)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||c||l!==e.width||h!==e.height)&&(S=this.__document.createElement("canvas"),S.width=r,S.height=o,S.getContext("2d")?.drawImage(e,a,c,l,h,0,0,r,o),e=S),m.setAttribute("transform",C),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),T.appendChild(m))}createPattern(t,e){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Pe(this.__ids);let r;return s.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),s.appendChild(r),this.__SVGdefs.appendChild(s)):t instanceof ke&&(s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new pn(s,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class gn{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,s,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new ke({canvas:this.canvas,width:e||this.canvas.width,height:s||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,s,i){return this.context.fillRect(t,e,s,i),this.customContext&&this.customContext.fillRect(t,e,s,i),this}fillText(t,e,s,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,s,i),this.customContext&&this.customContext.fillText(t,e,s),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,s,i){return this.context.strokeText(t,e,s,i),this.customContext&&this.customContext.strokeText(t,e,s),this}strokeRect(t,e,s,i){return this.context.strokeRect(t,e,s,i),this.customContext&&this.customContext.strokeRect(t,e,s,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,s=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,s,i),this.customContext&&this.customContext.clearRect(t,e,s,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const s=new Path2D;s.addPath(t,e),this.currentPath2D=s}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,s=0){return this.translate(e,s),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-s),this.changePath2D(),this}scale(t,e=t,s=0,i=0){return this.translate(s,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-s,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,s,i,r,o){return this.context.arc(t,e,s,i,r,o),this.customContext&&this.customContext.arc(t,e,s,i,r,o?-1:1),this.currentPath2D.arc(t,e,s,i,r,o),this}arcTo(t,e,s,i,r){return this.context.arcTo(t,e,s,i,r),this.customContext&&this.customContext.arcTo(t,e,s,i,r),this.currentPath2D.arcTo(t,e,s,i,r),this}ellipse(t,e,s,i,r,o,a,c){return this.context.ellipse(t,e,s,i,r,o,a,c),this.currentPath2D.ellipse(t,e,s,i,r,o,a,c),this}quadraticCurveTo(t,e,s,i){return this.context.quadraticCurveTo(t,e,s,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,s,i),this.currentPath2D.quadraticCurveTo(t,e,s,i),this}bezierCurveTo(t,e,s,i,r,o){return this.context.bezierCurveTo(t,e,s,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,s,i,r,o),this.currentPath2D.bezierCurveTo(t,e,s,i,r,o),this}rect(t,e,s,i){return this.context.rect(t,e,s,i),this.customContext&&this.customContext.rect(t,e,s,i),this.currentPath2D.rect(t,e,s,i),this}createLinearGradient(t,e,s,i,r){const o=this.context.createLinearGradient(t,e,s,i);return r&&Object.entries(r).forEach(([a,c])=>{o.addColorStop(parseFloat(a),c)}),o}createRadialGradient(t,e,s,i,r,o,a){const c=this.context.createRadialGradient(t,e,s,i,r,o);return a&&Object.entries(a).forEach(([l,h])=>{c.addColorStop(parseFloat(l),h)}),c}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const s=e[0],i=e[1];this.context.drawImage(t,s,i)}else if(e.length===4){const s=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,s,i,r,o)}else if(e.length===8){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],c=e[5],l=e[6],h=e[7];this.context.drawImage(t,s,i,r,o,a,c,l,h)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,s=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,s,i,r)}putImageData(t,e=0,s=0){return this.context.putImageData(t,e,s)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class fs{x;y;toX;toY;constructor(t){this.x=t?.x||0,this.y=t?.y||0,this.toX=t?.toX||0,this.toY=t?.toY||0}toSVGPathData(){return[["L",this.toX,this.toY]]}toCanvasContext(t){t.lineTo(this.toX,this.toY)}getBoundingClientRect(){const t=Se(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),s=Math.min(this.y,this.toY),i=Math.max(this.x,this.toX),r=Math.max(this.y,this.toY);return{x:e,y:s,width:i-e,height:r-s}}else{const e=Math.sin(t),s=Math.cos(t),i=s*this.x-e*this.y,r=s*this.toX-e*this.toY,o=s*this.y+e*this.x,a=s*this.toY+e*this.toX;return{x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)}}}interpolate(t){return{x:this.x+t*(this.toX-this.x),y:this.y+t*(this.toY-this.y)}}intersection(t){const e=this.x,s=this.y,i=t.toX,r=t.toY,o=this.toX-e,a=t.x-i;if(!o&&!a)return null;const c=(this.toY-s)/o,l=(t.y-r)/a;if(o){if(!a)return{x:i,y:c*(i-e)+s}}else return{x:e,y:l*(e-i)+r};const h=(-l*i+r+c*e-s)/(c-l),g=c*(h-e)+s;return isNaN(h)||isNaN(g)?null:{x:h,y:g}}}class Vr extends fs{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1,this.toX=t.toX,this.toY=t.toY}toSVGPathData(){return[["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.toX,this.toY]]}toCanvasContext(t){const[e,s,i,r,o,a,c]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,s,i,r,o,a,c,!this.sweepFlag)}convert(t,e,s,i,r,o,a,c,l){const h=a/180*Math.PI,g=(t-s)/2,b=(e-i)/2,y=Math.cos(h)*g+Math.sin(h)*b,m=-Math.sin(h)*g+Math.cos(h)*b,S=y*y/(r*r)+m*m/(o*o);if(S>1){const B=Math.sqrt(S);throw r=B*r,o=B*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const P=Math.sqrt((r*r*o*o-r*r*m*m-o*o*y*y)/(r*r*m*m+o*o*y*y)),T=c!=l?1:-1,C=T*P*r*m/o,_=T*P*-o*y/r,p=(t+s)/2,v=(e+i)/2,x=Math.cos(h)*C-Math.sin(h)*_+p,I=Math.sin(h)*C+Math.cos(h)*_+v,O=(B,$,D,X)=>(B*X>=$*D?1:-1)*Math.acos((B*D+$*X)/(Math.sqrt(B*B+$*$)*Math.sqrt(D*D+X*X))),R=O(1,0,t-x,e-I)-h,L=O(t-x,e-I,s-x,i-I);return[x,I,r,o,h,R,R+L]}}const Br=Vr;class Xr extends fs{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["Q",t,e,this.toX,this.toY]]}else return[["Q",this.cx,this.cy,this.toX,this.toY]]}toCanvasContext(t){if(this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,s=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,s,this.toX,this.toY)}else t.quadraticCurveTo(this.cx,this.cy,this.toX,this.toY)}getBoundingClientRect(){const t=[this.x,this.toX],e=[this.y,this.toY];let s,i,r,o;for(let l=0;l<2;++l)s=l==0?this.x-2*this.cx+this.toX:this.y-2*this.cy+this.toY,i=l==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,r=l==0?this.x:this.y,Math.abs(s)>1e-12&&(o=-i/(2*s),0<o&&o<1&&[t,e][l].push(s*o*o+i*o+r));const a={x:Math.min.apply(0,t),y:Math.min.apply(0,e)},c={x:Math.max.apply(0,t),y:Math.max.apply(0,e)};return{x:a.x,y:a.y,width:c.x-a.x,height:c.y-a.y}}interpolate(t){return{x:(1-t)*(1-t)*this.x+2*(1-t)*t*this.cx+t*t*this.toX,y:(1-t)*(1-t)*this.y+2*(1-t)*t*this.cy+t*t*this.toY}}}const Yr=Xr;class Zt extends fs{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}toSVGPathData(){return[["C",this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY]]}toCanvasContext(t){t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY)}getBoundingClientRect(){let t=this.c2x-2*this.c1x+this.x-(this.toX-2*this.c2x+this.c1x),e=2*(this.c1x-this.x)-2*(this.c2x-this.c1x),s=this.x-this.c1x,i=(-e+Math.sqrt(e*e-4*t*s))/2/t,r=(-e-Math.sqrt(e*e-4*t*s))/2/t;const o=[this.y,this.toY],a=[this.x,this.toX];let c;const l=[];Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(c=this.interpolate(i),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),r>=0&&r<=1&&(c=this.interpolate(r),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),t=this.c2y-2*this.c1y+this.y-(this.toY-2*this.c2y+this.c1y),e=2*(this.c1y-this.y)-2*(this.c2y-this.c1y),s=this.y-this.c1y,i=(-e+Math.sqrt(e*e-4*t*s))/2/t,r=(-e-Math.sqrt(e*e-4*t*s))/2/t,Math.abs(i)>1e12&&(i=.5),Math.abs(r)>1e12&&(r=.5),i>=0&&i<=1&&(c=this.interpolate(i),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y})),r>=0&&r<=1&&(c=this.interpolate(r),a.push(c.x),o.push(c.y),l.push({X:c.x,Y:c.y}));const h=[],g=l.length;for(let m=0;m<g;m++){for(let S=m+1;S<g;S++)l[m].X===l[S].X&&l[m].Y===l[S].Y&&(S=++m);h.push({X:l[m].X,Y:l[m].Y})}const b={x:Math.min.apply(Math,a),y:Math.min.apply(Math,o)},y={x:Math.max.apply(Math,a),y:Math.max.apply(Math,o)};return{x:b.x,y:b.y,width:y.x-b.x,height:y.y-b.y,dots:h}}interpolate(t){return{x:Math.pow(1-t,3)*this.x+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.toX,y:Math.pow(1-t,3)*this.y+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.toY}}static base3(t,e,s,i,r){const o=-3*e+9*s-9*i+3*r,a=t*o+6*e-12*s+6*i;return t*a-3*e+3*s}static bezlen(t,e,s,i,r,o,a,c,l=1){l=Math.max(0,Math.min(l,1));const h=l/2,g=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],b=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let y=0;for(let m=0;m<12;m++){const S=h*g[m]+h,P=this.base3(S,t,s,r,a),T=this.base3(S,e,i,o,c);y+=b[m]*Math.sqrt(P*P+T*T)}return h*y}length(t=1){return Zt.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,s=this.y,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,c=this.toX,l=this.toY;if(t<0||Zt.bezlen(e,s,i,r,o,a,c,l)<t)return 0;const h=1;let g=h/2,b=h-g,y=Zt.bezlen(e,s,i,r,o,a,c,l,b);for(;Math.abs(y-t)>.01;)g/=2,b+=(y<t?1:-1)*g,y=Zt.bezlen(e,s,i,r,o,a,c,l,b);return b}getPointAtSegmentLength(t){const e=this.getTatLen(t),s=1-e,i=Math.pow(s,3),r=Math.pow(s,2),o=e*e,a=o*e,c=i*this.x+r*3*e*this.c1x+s*3*e*e*this.c2x+a*this.toX,l=i*this.y+r*3*e*this.c1y+s*3*e*e*this.c2y+a*this.toY,h=this.x+2*e*(this.c1x-this.x)+o*(this.c2x-2*this.c1x+this.x),g=this.y+2*e*(this.c1y-this.y)+o*(this.c2y-2*this.c1y+this.y),b=this.c1x+2*e*(this.c2x-this.c1x)+o*(this.toX-2*this.c2x+this.c1x),y=this.c1y+2*e*(this.c2y-this.c1y)+o*(this.toY-2*this.c2y+this.c1y),m=s*this.x+e*this.c1x,S=s*this.y+e*this.c1y,P=s*this.c2x+e*this.toX,T=s*this.c2y+e*this.toY,C=90-Math.atan2(h-b,g-y)*180/Math.PI;return{x:c,y:l,m:{x:h,y:g},n:{x:b,y},start:{x:m,y:S},end:{x:P,y:T},alpha:C}}}const Dt=Zt,oe=Math.PI*2;function yn(n,t,e,s){const i=n*s-t*e<0?-1:1;let r=n*e+t*s;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function Gr(n,t,e,s,i,r,o,a,c,l){const h=l*(n-e)/2+c*(t-s)/2,g=-c*(n-e)/2+l*(t-s)/2,b=o*o,y=a*a,m=h*h,S=g*g;let P=b*y-b*S-y*m;P<0&&(P=0),P/=b*S+y*m,P=Math.sqrt(P)*(i===r?-1:1);const T=P*o/a*g,C=P*-a/o*h,_=l*T-c*C+(n+e)/2,p=c*T+l*C+(t+s)/2,v=(h-T)/o,x=(g-C)/a,I=(-h-T)/o,O=(-g-C)/a,R=yn(1,0,v,x);let L=yn(v,x,I,O);return r===0&&L>0&&(L-=oe),r===1&&L<0&&(L+=oe),[_,p,R,L]}function Ur(n,t){const e=1.3333333333333333*Math.tan(t/4),s=Math.cos(n),i=Math.sin(n),r=Math.cos(n+t),o=Math.sin(n+t);return[s,i,s-i*e,i+s*e,r+o*e,o-r*e,r,o]}function _n(n,t,e,s,i,r,o,a,c){const l=Math.sin(c*oe/360),h=Math.cos(c*oe/360),g=h*(n-e)/2+l*(t-s)/2,b=-l*(n-e)/2+h*(t-s)/2;if(g===0&&b===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const y=g*g/(o*o)+b*b/(a*a);y>1&&(o*=Math.sqrt(y),a*=Math.sqrt(y));const m=Gr(n,t,e,s,i,r,o,a,l,h),S=[];let P=m[2],T=m[3];const C=Math.max(Math.ceil(Math.abs(T)/(oe/4)),1);T/=C;for(let _=0;_<C;_++)S.push(Ur(P,T)),P+=T;return S.map(_=>{for(let p=0;p<_.length;p+=2){let v=_[p+0],x=_[p+1];v*=o,x*=a;const I=h*v-l*x,O=l*v+h*x;_[p+0]=I+m[0],_[p+1]=O+m[1]}return _})}function ms(n,t,e,s,i,r){return[n/3+.6666666666666666*e,t/3+.6666666666666666*s,i/3+.6666666666666666*e,r/3+.6666666666666666*s,i,r]}function ae(n,t,e,s){return[n,t,e,s,e,s]}const Ee={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class ds{static createSVGElement(t="path",e){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&Wr(s,e),s}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||_e()})}static downloadFromSVGElement(t,e="shape"){return Un(Cr(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Un(tn(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return rn(t)}static isSVGPath(t){return typeof t!="string"?!1:(t=t.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(t)&&/[\dz]$/i.test(t))}static SVGPathDataToD(t){return t.map(e=>{if(!e[0])return"";switch(e[0].toLowerCase()){case"a":return`${e[0]} ${e[1]},${e[2]} ${e[3]} ${e[4]},${e[5]} ${e[6]},${e[7]}`;case"c":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]} ${e[5]},${e[6]}`;case"s":case"q":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]}`;default:return e[0]+" "+e.slice(1).join(",")}}).join(" ")}static parseSVGPath(t){const e=[];return ds.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,i,r)=>{let o=i.toLowerCase();const a=Ks(r);for(o=="m"&&a.length>Ee[o]&&(e.push([i,...a.splice(0,Ee[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Ee[o])throw new Error(`parseSVGPath substring:{ ${s} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,Ee[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,s=0,i=0,r=0;return t.map(function(o){const a=o[0],c=a.toUpperCase();if(a!=c)switch(o[0]=c,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let l=1;l<o.length;)o[l++]+=i,o[l++]+=r}switch(c){case"Z":i=e,r=s;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=s=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,s=0,i=0,r=0;return t.map(function(o){const a=o[0],c=a.toLowerCase();if(a!=c)switch(o[0]=c,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let l=1;l<o.length;)o[l++]-=i,o[l++]-=r}switch(c){case"z":i=e,r=s;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],s+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){const e=[];let s=0,i=0,r=0,o=0,a=0,c=0,l=0,h=0,g;for(let b=0,y=t.length;b<y;b++){let m=t[b];const S=m[0];switch(S){case"M":s=m[1],i=m[2];break;case"A":const P=_n(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!P.length)continue;P.forEach((_,p)=>{const[v,x,I,O,R,L,B,$]=_;m=["C",I,O,R,L,B,$],p<P.length-1&&e.push(m)});break;case"S":let T=r,C=o;(g=="C"||g=="S")&&(T+=T-l,C+=C-h),m=["C",T,C,m[1],m[2],m[3],m[4]];break;case"T":g=="Q"||g=="T"?(a=r*2-a,c=o*2-c):(a=r,c=o),m=["C",...ms(r,o,a,c,m[1],m[2])];break;case"Q":a=m[1],c=m[2],m=["C",...ms(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...ae(r,o,m[1],m[2])];break;case"H":m=["C",...ae(r,o,m[1],o)];break;case"V":m=["C",...ae(r,o,r,m[1])];break;case"Z":m=["C",...ae(r,o,s,i)];break}g=S,r=m[m.length-2],o=m[m.length-1],m.length>4?(l=m[m.length-4],h=m[m.length-3]):(l=r,h=o),e.push(m)}return e}static catmullRom2bezier(t){const e=[];for(let s=0,i=t.length;i-2>s;s+=2){let r;s==0?r=[{x:t[s],y:t[s+1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}]:i-4==s?r=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+2],y:t[s+3]}]:r=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){const e=[];let s=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){const a=t[r];switch(a[0]){case"M":s=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(s);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const c=t[o],l=e[c[0]];l&&(c[0]=l.to,s&&(s[0]===l.to?(i=2*Number(s[l.x+2])-Number(s[l.x]),r=2*Number(s[l.x+3])-Number(s[l.x+1])):(i=Number(s[s.length-2]),r=Number(s[s.length-1]))),c.splice(1,0,i,r)),s=c}return t}}const Ae=ds;class At{cX;cY;x;y;degree;scalarX;scalarY;startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){this.cX=0,this.cY=0,this.x=t?.x||0,this.y=t?.y||0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&(this.cX=t.centerX-this.x,this.cY=t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.reset(t?.d,t?.originMatrix)}reset(t,e){typeof t=="string"?this.resetFromSVGPathData(Ae.parseSVGPath(t),e):t instanceof At?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const s=Ae.normalizeSVGPath(Ae.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let i=!1;for(let r=0,o=s.length;r<o;r++){const a=s[r];if(a[0]=="M"){i||(i=!0,this.startPathX=a[1],this.startPathY=a[2]),this.prevPathX=a[1],this.prevPathY=a[2];continue}this.appendLine(new Dt({c1x:a[1],c1y:a[2],c2x:a[3],c2y:a[4],toX:a[5],toY:a[6]}))}e&&({x:this.startPathX,y:this.startPathY}=e.transformPoint({x:this.startPathX,y:this.startPathY}),{x:this.prevPathX,y:this.prevPathY}=e.transformPoint({x:this.prevPathX,y:this.prevPathY}),this.normalizedLines.forEach(r=>{({x:r.x,y:r.y}=e.transformPoint({x:r.x,y:r.y})),{x:r.c1x,y:r.c1y}=e.transformPoint({x:r.c1x,y:r.c1y}),{x:r.c2x,y:r.c2y}=e.transformPoint({x:r.c2x,y:r.c2y}),{x:r.toX,y:r.toY}=e.transformPoint({x:r.toX,y:r.toY})}))}static fromPolymorphPoints(t){const e=new At;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let s=2,i=t.length;s+5<i;s+=6)e.appendLine(new Dt({c1x:t[s],c1y:t[s+1],c2x:t[s+2],c2y:t[s+3],toX:t[s+4],toY:t[s+5]}));return e}static fromLines(t){const e=new At;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let s=0,i=t.length;s<i;s++)e.appendLine(t[s]);return e}appendLine(t){if(t instanceof Br){_n(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(l=>{const[h,g,b,y,m,S,P,T]=l;this.normalizedLines.push(new Dt({x:this.prevPathX,y:this.prevPathY,c1x:b,c1y:y,c2x:m,c2y:S,toX:P,toY:T})),this.prevPathX=P,this.prevPathY=T});return}let e,s,i,r,o,a;t instanceof Dt?(e=t.c1x,s=t.c1y,i=t.c2x,r=t.c2y,o=t.toX,a=t.toY):t instanceof Yr?[e,s,i,r,o,a]=ms(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,s,i,r,o,a]=ae(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Dt({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:s,c2x:i,c2y:r,toX:o,toY:a})),this.prevPathX=o,this.prevPathY=a}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform(),i=[];i.push(["M",t,e]);for(let r=0,o=s.length;r<o;r++)i.push(...s[r].toSVGPathData());return i}toSVGPathD(){return Ae.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:s,normalizedLines:i}=this.updateTransform();t.beginPath(),t.moveTo(e,s),i.forEach(r=>{r.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],s=[];if(t.forEach(c=>{const l=c.getBoundingClientRect();e.push(l.x,l.x+l.width),s.push(l.y,l.y+l.height)}),e.length==0||s.length==0)return{x:0,y:0,width:0,height:0};const i=Math.min.apply(0,e),r=Math.min.apply(0,s),o=Math.max.apply(0,e),a=Math.max.apply(0,s);return{x:i,y:r,width:o-i,height:a-r}}update(t){this.cX=typeof t.cX=="number"?t.cX:this.cX,this.cY=typeof t.cY=="number"?t.cY:this.cY,this.x=t.x,this.y=t.y,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY}updateTransform(){const t=new mt;if(t.translate(this.x+this.cX,this.y+this.cY),t.rotate(this.degree),t.scale(this.scalarX,this.scalarY),t.translate(-this.cX,-this.cY),t.isIdentity)return{startPathX:this.startPathX,startPathY:this.startPathY,normalizedLines:this.normalizedLines};{let e=this.startPathX,s=this.startPathY;({x:e,y:s}=t.transformPoint({x:e,y:s}));const i=[];return this.normalizedLines.forEach(r=>{let o=r.x,a=r.y,c=r.c1x,l=r.c1y,h=r.c2x,g=r.c2y,b=r.toX,y=r.toY;({x:o,y:a}=t.transformPoint({x:o,y:a})),{x:c,y:l}=t.transformPoint({x:c,y:l}),{x:h,y:g}=t.transformPoint({x:h,y:g}),{x:b,y}=t.transformPoint({x:b,y}),i.push(new Dt({x:o,y:a,c1x:c,c1y:l,c2x:h,c2y:g,toX:b,toY:y}))}),{startPathX:e,startPathY:s,normalizedLines:i}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,s)=>e+=s.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let s=0;const i=e.length;for(let r=0;r<i;r++){const o=e[r],a=o.length();if(s+a>=t)return o.getPointAtSegmentLength(t-s);s+=a}return e[i-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:s,normalizedLines:i}=this.updateTransform(),r=i.length;if(r===0)return{x:e,y:s};if(r===1)return i[0].interpolate(t);{let o=t*r,a=i[0];if(o--,o>1)for(let c=1;c<r&&(a=i[c],o>1);c++)o-=1;return a.interpolate(o)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const s=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(s,t):s}}getSubpathsAtLength(t,e,s){const{startPathX:i,startPathY:r,normalizedLines:o}=t.updateTransform();let a=null,c=0;const l=new At;l.prevPathX=l.startPathX=i,l.prevPathY=l.startPathY=r;for(let h=0,g=o.length;h<g;h++){const b=o[h],y=b.length();if(c+y>e&&!a){const m=b.getPointAtSegmentLength(e-c);if(l.appendLine(new Dt({c1x:m.start.x,c1y:m.start.y,c2x:m.m.x,c2y:m.m.y,toX:m.x,toY:m.y})),s)return l;a=l,l.appendLine(new Dt({c1x:m.n.x,c1y:m.n.y,c2x:m.end.x,c2y:m.end.y,toX:b.x,toY:b.y})),c+=y;continue}c+=y,l.appendLine(b)}return l}closestPoint(t,e){const s=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let l=0;l<=s;l+=a){const h=this.getPointAtLength(l),g=hs(h.x,h.y,t,e);g<o&&(i=h,r=l,o=g)}for(a/=2;a>.5;){const l=r-a,h=this.getPointAtLength(l),g=hs(h.x,h.y,t,e),b=r+a,y=this.getPointAtLength(b),m=hs(y.x,y.y,t,e);l>=0&&g<o?(i=h,r=l,o=g):b<=s&&m<o?(i=y,r=b,o=m):a/=2}const c=this.getPointAtLength(r+(r===s?-.1:.1));return{point:i,rotation:r>=s?Se(c.x,c.y,i.x,i.y):Se(i.x,i.y,c.x,c.y),distance:Math.sqrt(o)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform();return[t,e].concat(s.reduce((i,r)=>i.concat([r.c1x,r.c1y,r.c2x,r.c2y,r.toX,r.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let s=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=fn(t[o],t[o+1],s,i),s=t[o],i=t[o+1];return Math.floor(r)}expendFill(t){const e=this.polymorphPoints,s=e.length;let i=t-s;const r=Math.ceil(t/s),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=s-1;){const c=e[a++],l=e[a++],h=e[a++],g=e[a++],b=e[a++],y=e[a++];o.push(["C",c,l,h,g,b,y]);let m=0;for(;m<r&&i>0;)o.push(["C",b,y,b,y,b,y]),i-=6,m++}return o}static mixPoints(t,e,s){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=Ht(t[o]+(e[o]-t[o])*s,6);return r}static getPathInterpolator(t,e){return s=>Math.abs(s-0)<Number.EPSILON?t:Math.abs(s-1)<Number.EPSILON?e:At.fromPolymorphPoints(At.mixPoints(new At({d:t}).polymorphPoints,new At({d:e}).polymorphPoints,s)).toSVGPathData()}}class $r extends be{id;originD;originMatrix;independentTransformInGroup;forceCXY=!1;cX;cY;x;y;degree;scalarX;scalarY;diffXInGroup;diffYInGroup;diffDegreeInGroup;diffScalarXInGroup;diffScalarYInGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;strokeArmyAnts;strokeArmyAntsOffset=0;strokeDashTotalLength=0;isShow=!0;el;pathd;usePathDtoCanvasContext=!1;parent;shapes=[];constructor(t){if(super(),this.id=_e(),t?.d&&(this.originD=t?.d),t?.originMatrix&&(this.originMatrix=t.originMatrix),this.independentTransformInGroup=typeof t?.independentTransformInGroup=="boolean"?t.independentTransformInGroup:!1,this.x=t?.x||0,this.y=t?.y||0,this.cX=0,this.cY=0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&this.forceSetCXY(t.centerX-this.x,t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.diffXInGroup=t?.diffXInGroup||0,this.diffYInGroup=t?.diffYInGroup||0,this.diffDegreeInGroup=t?.diffDegreeInGroup||0,this.diffScalarXInGroup=t?.diffScalarXInGroup||1,this.diffScalarYInGroup=t?.diffScalarYInGroup||1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs={stroke:"none",fill:"none"},t?.attrs&&this.setAttr(t?.attrs),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.strokeArmyAnts){const s=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",s),this.strokeDashTotalLength=Ks(s).reduce((i,r)=>i+r,0)}return br(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new At,is(()=>{this.pathd?.reset(this.originD||this.toSVGPathData(),this.originMatrix)}),this.pathd&&!this.forceCXY){const t=this.shapes.length==0?this.pathd.getBoundingClientRect():this.getBoundingClientRect();t&&(this.pathd.cX=this.cX=t.x+t.width/2-this.pathd.x,this.pathd.cY=this.cY=t.y+t.height/2-this.pathd.y)}this.shapeInit()}return this.pathd}frameStart(t){}frameUpdate(t,e){this.pathd=this.initPathD(),this.pathd.update(this),this.strokeArmyAnts&&(this.isMouseIn||(this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>this.strokeDashTotalLength&&(this.strokeArmyAntsOffset=0)))}frameEnd(t){}toSVGPathData(){return[]}toSVGPathD(){return this.pathd?.toSVGPathD()||""}toCanvasContext(t){this.usePathDtoCanvasContext=!0,this.pathd?.toCanvasContext(t)}getBoundingClientRect(){return this.pathd?.getBoundingClientRect()||null}get center(){const t=this.getBoundingClientRect(),e={x:this.x,y:this.y};return t&&(e.x=t.x+t.width/2,e.y=t.y+t.height/2),e}trim(){if(this.parent)return;const t=this.getBoundingClientRect();if(!t)return;this.shapes.forEach(s=>{const i=s.originMatrix?s.originMatrix.clone():new mt;i.translate(-t.x+s.x,-t.y+s.y),s.originMatrix=i});const e=this.originMatrix?this.originMatrix.clone():new mt;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,s){if(s instanceof gn)return s.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=s.createSVGPoint(),i.x=t,i.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(i);{const r=this.getBoundingClientRect();if(r)return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height}return!1}isPointInStroke(t,e,s){if(s instanceof gn)return s.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=s.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}clone(){return hr(this).copy(this)}copy(t){return this.id=t.id,this.originD=t.originD,this.originMatrix=t.originMatrix,this.independentTransformInGroup=t.independentTransformInGroup,this.x=t.x,this.y=t.y,this.cX=t.cX,this.cY=t.cY,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY,this.diffXInGroup=t.diffXInGroup,this.diffYInGroup=t.diffYInGroup,this.diffDegreeInGroup=t.diffDegreeInGroup,this.diffScalarXInGroup=t.diffScalarXInGroup,this.diffScalarYInGroup=t.diffScalarYInGroup,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs={...t.attrs},this.enableDrag=t.enableDrag,this.alongPath=t.alongPath,this.targetToAfterDragFree=t.targetToAfterDragFree,this.followMouse=t.followMouse,this.isShow=t.isShow,this.strokeArmyAnts=t.strokeArmyAnts,this.strokeDashTotalLength=t.strokeDashTotalLength,this}save(){}restore(){}setAttr(t,e){typeof t!="string"?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([s,i])=>[Et(s),i]))):e&&(this.attrs[Et(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[Et(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[Et(t)]}distance(t){return fn(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ut(Se(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:s,dy:i}=mn(J(this.degree),e);this.vx=s,this.vy=i,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:s,dy:i}=mn(J(this.degree),e);this.ax=s,this.ay=i,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,s=t.y-this.y,i=e*e+s*s,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,c=o*s/r;this.vx+=a/this.mass,this.vy+=c/this.mass,t.vx-=a/t.mass,t.vy-=c/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=bt(t?.gravity,0);this.vy+=e;const s=bt(t?.friction,1);this.vx*=s,this.vy*=s,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const s=bt(e?.easing,.05),i=t.x-this.cX-this.x,r=t.y-this.cY-this.y;this.vx=i*s,this.vy=r*s,this.run(e)}runSpringTo(t,e){const s=bt(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(i=>{const r=i.x-this.cX-this.x,o=i.y-this.cY-this.y,a=r*s,c=o*s;this.vx+=a,this.vy+=c}),this.run({friction:.9,...e})}springMassTo(t,e){const s=bt(e?.springLength,100),i=bt(e?.spring,1e-4),r=t.x-this.x,o=t.y-this.y,a=Math.sqrt(r*r+o*o);if(a<s){const c=r*i,l=o*i;return this.vx+=c/this.mass,this.vy+=l/this.mass,t.vx-=c/t.mass,t.vy-=l/t.mass,1-a/s}return 0}getTotalLength(){return this.initPathD().getTotalLength()}interpolate(t){return this.initPathD().interpolate(t)}getPointAtLength(t){return this.initPathD().getPointAtLength(t)}trailPath(t,e=0){const s=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*s),this.getPointAtLength(e*s)}strokeDashTween(t=1e3,e){const s=this.initPathD(),i=Ht(s.getTotalLength(),0);this.setAttr({strokeDasharray:`${i} ${i}`,strokeDashoffset:`${i}`});const r=e?.onUpdate,o=new Te({frameDuration:t});o.addTween({offset:i},{offset:0},Object.assign(e||{},{onUpdate:(a,c)=>{this.setAttr("strokeDashoffset",""+Ht(a.offset,2)),r?.(a,c)}})),o.play()}}class qr extends $r{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["M",this.getScreenX(),this.getScreenY()]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,s){this.cX=t,this.cY=e,this.cZ=s}rotateX(t){({x:this.y,y:this.z}=_s(J(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=_s(J(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=_s(J(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return un(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,s=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+s*s+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const s=t/e;this.scalar(s)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,s=this.y,i=this.z;return{x:s*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-s*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}}const Me=qr;class ps{_x;_y;_z;_w;constructor(t=0,e=0,s=0,i=1){this._x=t,this._y=e,this._z=s,this._w=i}static slerpFlat(t,e,s,i,r,o,a){let c=s[i+0],l=s[i+1],h=s[i+2],g=s[i+3];const b=r[o+0],y=r[o+1],m=r[o+2],S=r[o+3];if(a===0){t[e+0]=c,t[e+1]=l,t[e+2]=h,t[e+3]=g;return}if(a===1){t[e+0]=b,t[e+1]=y,t[e+2]=m,t[e+3]=S;return}if(g!==S||c!==b||l!==y||h!==m){let P=1-a;const T=c*b+l*y+h*m+g*S,C=T>=0?1:-1,_=1-T*T;if(_>Number.EPSILON){const v=Math.sqrt(_),x=Math.atan2(v,T*C);P=Math.sin(P*x)/v,a=Math.sin(a*x)/v}const p=a*C;if(c=c*P+b*p,l=l*P+y*p,h=h*P+m*p,g=g*P+S*p,P===1-a){const v=1/Math.sqrt(c*c+l*l+h*h+g*g);c*=v,l*=v,h*=v,g*=v}}t[e]=c,t[e+1]=l,t[e+2]=h,t[e+3]=g}static multiplyQuaternionsFlat(t,e,s,i,r,o){const a=s[i],c=s[i+1],l=s[i+2],h=s[i+3],g=r[o],b=r[o+1],y=r[o+2],m=r[o+3];return t[e]=a*m+h*g+c*y-l*b,t[e+1]=c*m+h*b+l*g-a*y,t[e+2]=l*m+h*y+a*b-c*g,t[e+3]=h*m-a*g-c*b-l*y,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t=this._x,e=this._y,s=this._z,i=this._w){return this._x=t,this._y=e,this._z=s,this._w=i,this._onChangeCallback(),this}clone(){return new ps(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e=!0){const s=t.x,i=t.y,r=t.z,o=t.order,a=Math.cos,c=Math.sin,l=a(s/2),h=a(i/2),g=a(r/2),b=c(s/2),y=c(i/2),m=c(r/2);switch(o){case"XYZ":this._x=b*h*g+l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g-b*y*m;break;case"YXZ":this._x=b*h*g+l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g+b*y*m;break;case"ZXY":this._x=b*h*g-l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g-b*y*m;break;case"ZYX":this._x=b*h*g-l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g+b*y*m;break;case"YZX":this._x=b*h*g+l*y*m,this._y=l*y*g+b*h*m,this._z=l*h*m-b*y*g,this._w=l*h*g-b*y*m;break;case"XZY":this._x=b*h*g-l*y*m,this._y=l*y*g-b*h*m,this._z=l*h*m+b*y*g,this._w=l*h*g+b*y*m;break;default:console.warn("Quaternion: .setFromEuler() encountered an unknown order: "+o)}return e===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const s=e/2,i=Math.sin(s);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(s),this._onChangeCallback(),this}setFromRotationMatrix4(t){const e=t.value,s=e[0],i=e[4],r=e[8],o=e[1],a=e[5],c=e[9],l=e[2],h=e[6],g=e[10],b=s+a+g;if(b>0){const y=.5/Math.sqrt(b+1);this._w=.25/y,this._x=(h-c)*y,this._y=(r-l)*y,this._z=(o-i)*y}else if(s>a&&s>g){const y=2*Math.sqrt(1+s-a-g);this._w=(h-c)/y,this._x=.25*y,this._y=(i+o)/y,this._z=(r+l)/y}else if(a>g){const y=2*Math.sqrt(1+a-s-g);this._w=(r-l)/y,this._x=(i+o)/y,this._y=.25*y,this._z=(c+h)/y}else{const y=2*Math.sqrt(1+g-s-a);this._w=(o-i)/y,this._x=(r+l)/y,this._y=(c+h)/y,this._z=.25*y}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let s=t.dot(e)+1;return s<Number.EPSILON?(s=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=s):(this._x=0,this._y=-t.z,this._z=t.y,this._w=s)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=s),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Y(this.dot(t),-1,1)))}rotateTowards(t,e){const s=this.angleTo(t);if(s===0)return this;const i=Math.min(1,e/s);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const s=t._x,i=t._y,r=t._z,o=t._w,a=e._x,c=e._y,l=e._z,h=e._w;return this._x=s*h+o*a+i*l-r*c,this._y=i*h+o*c+r*a-s*l,this._z=r*h+o*l+s*c-i*a,this._w=o*h-s*a-i*c-r*l,this._onChangeCallback(),this}slerp(t,e){if(e===0)return this;if(e===1)return this.copy(t);const s=this._x,i=this._y,r=this._z,o=this._w;let a=o*t._w+s*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=s,this._y=i,this._z=r,this;const c=1-a*a;if(c<=Number.EPSILON){const y=1-e;return this._w=y*o+e*this._w,this._x=y*s+e*this._x,this._y=y*i+e*this._y,this._z=y*r+e*this._z,this.normalize(),this}const l=Math.sqrt(c),h=Math.atan2(l,a),g=Math.sin((1-e)*h)/l,b=Math.sin(e*h)/l;return this._w=o*g+this._w*b,this._x=s*g+this._x*b,this._y=i*g+this._y*b,this._z=r*g+this._z*b,this._onChangeCallback(),this}slerpQuaternions(t,e,s){return this.copy(t).slerp(e,s)}random(){const t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),s=Math.random(),i=Math.sqrt(1-s),r=Math.sqrt(s);return this.set(i*Math.sin(t),i*Math.cos(t),r*Math.sin(e),r*Math.cos(e))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}toJSON(){return this.toArray()}onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class vt{x=0;y=0;z=0;constructor(t=0,e=0,s=0){this.x=t,this.y=e,this.z=s}set(t=0,e=0,s=0){return this.x=t,this.y=e,this.z=s,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new vt(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(xn.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(xn.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,s=this.y,i=this.z,r=t.value;return this.x=r[0]*e+r[3]*s+r[6]*i,this.y=r[1]*e+r[4]*s+r[7]*i,this.z=r[2]*e+r[5]*s+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,s=this.y,i=this.z,r=t.value,o=1/(r[3]*e+r[7]*s+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*s+r[8]*i+r[12])*o,this.y=(r[1]*e+r[5]*s+r[9]*i+r[13])*o,this.z=(r[2]*e+r[6]*s+r[10]*i+r[14])*o,this}applyQuaternion(t){const e=this.x,s=this.y,i=this.z,r=t.x,o=t.y,a=t.z,c=t.w,l=2*(o*i-a*s),h=2*(a*e-r*i),g=2*(r*s-o*e);return this.x=e+c*l+o*g-a*h,this.y=s+c*h+a*l-r*g,this.z=i+c*g+r*h-o*l,this}transformDirection(t){const e=this.x,s=this.y,i=this.z,r=t.value;return this.x=r[0]*e+r[4]*s+r[8]*i,this.y=r[1]*e+r[5]*s+r[9]*i,this.z=r[2]*e+r[6]*s+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Y(this.x,t.x,e.x),this.y=Y(this.y,t.y,e.y),this.z=Y(this.z,t.z,e.z),this}clampScalar(t,e){return this.x=Y(this.x,t,e),this.y=Y(this.y,t,e),this.z=Y(this.z,t,e),this}clampLength(t,e){const s=this.length();return this.divideScalar(s||1).multiplyScalar(Y(s,t,e))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,s){return this.x=t.x+(e.x-t.x)*s,this.y=t.y+(e.y-t.y)*s,this.z=t.z+(e.z-t.z)*s,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const s=t.x,i=t.y,r=t.z,o=e.x,a=e.y,c=e.z;return this.x=i*c-r*a,this.y=r*o-s*c,this.z=s*a-i*o,this}projectOnVector(t){const e=t.lengthSq();if(e===0)return this.set(0,0,0);const s=t.dot(this)/e;return this.copy(t).multiplyScalar(s)}perpendOnVector(t){return gs.copy(this).projectOnVector(t),this.sub(gs)}projectOnPlane(t){return this.perpendOnVector(t)}reflect(t){return this.sub(gs.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(e===0)return Math.PI/2;const s=this.dot(t)/e;return Math.acos(Y(s,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,s=this.y-t.y,i=this.z-t.z;return e*e+s*s+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromMatrix4Position(t){const e=t.value;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrix4Scale(t){const e=this.setFromMatrix4Column(t,0).length(),s=this.setFromMatrix4Column(t,1).length(),i=this.setFromMatrix4Column(t,2).length();return this.x=e,this.y=s,this.z=i,this}setFromMatrix4Column(t,e){return this.fromArray(t.value,e*4)}setFromMatrix3Column(t,e){return this.fromArray(t.value,e*3)}setFromEuler(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,e=Math.random()*2-1,s=Math.sqrt(1-e*e);return this.x=s*Math.cos(t),this.y=e,this.z=s*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const gs=new vt,xn=new ps,Ie=2e3,bn=2001,vn=[1,0,0,1,0,0],wn=[1,0,0,0,1,0,0,0,1],Tn=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class ce{value;constructor(t=wn){this.value=Array.from(t)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m21(){return this.value[3]}get m22(){return this.value[4]}get m23(){return this.value[5]}get m31(){return this.value[6]}get m32(){return this.value[7]}get m33(){return this.value[8]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m21(t){this.value[3]=t}set m22(t){this.value[4]=t}set m23(t){this.value[5]=t}set m31(t){this.value[6]=t}set m32(t){this.value[7]=t}set m33(t){this.value[8]=t}set(t=1,e=0,s=0,i=0,r=1,o=0,a=0,c=0,l=1){const h=this.value;return h[0]=t,h[1]=i,h[2]=a,h[3]=e,h[4]=r,h[5]=c,h[6]=s,h[7]=o,h[8]=l,this}identity(){return this.value=Array.from(wn),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}copy(t){return this.m11=t.m11,this.m12=t.m12,this.m13=t.m13,this.m21=t.m21,this.m22=t.m22,this.m23=t.m23,this.m31=t.m31,this.m32=t.m32,this.m33=t.m33,this}clone(){return new ce(this.value)}fromArray(t,e=0){for(let s=0;s<9;s++)this.value[s]=t[s+e];return this}toArray(t=[],e=0){return t[e]=this.m11,t[e+1]=this.m12,t[e+2]=this.m13,t[e+3]=this.m21,t[e+4]=this.m22,t[e+5]=this.m23,t[e+6]=this.m31,t[e+7]=this.m32,t[e+8]=this.m33,t}extractBasis(t,e,s){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),s.setFromMatrix3Column(this,2),this}setFromMatrix4(t){return this.set(t.m11,t.m21,t.m31,t.m12,t.m22,t.m32,t.m13,t.m23,t.m33),this}multiplyMatrices(t,e){const s=t.value,i=e.value,r=this.value,o=s[0],a=s[3],c=s[6],l=s[1],h=s[4],g=s[7],b=s[2],y=s[5],m=s[8],S=i[0],P=i[3],T=i[6],C=i[1],_=i[4],p=i[7],v=i[2],x=i[5],I=i[8];return r[0]=o*S+a*C+c*v,r[3]=o*P+a*_+c*x,r[6]=o*T+a*p+c*I,r[1]=l*S+h*C+g*v,r[4]=l*P+h*_+g*x,r[7]=l*T+h*p+g*I,r[2]=b*S+y*C+m*v,r[5]=b*P+y*_+m*x,r[8]=b*T+y*p+m*I,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}determinant(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8];return e*o*h-e*a*l-s*r*h+s*a*c+i*r*l-i*o*c}invert(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8],g=h*o-a*l,b=a*c-h*r,y=l*r-o*c,m=e*g+s*b+i*y;if(m===0)return this.set(0,0,0,0,0,0,0,0,0);const S=1/m;return t[0]=g*S,t[1]=(i*l-h*s)*S,t[2]=(a*s-i*o)*S,t[3]=b*S,t[4]=(h*e-i*c)*S,t[5]=(i*r-a*e)*S,t[6]=y*S,t[7]=(s*c-l*e)*S,t[8]=(o*e-s*r)*S,this}transpose(){let t;const e=this.value;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.value;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,s,i,r,o,a){const c=Math.cos(r),l=Math.sin(r);return this.set(s*c,s*l,-s*(c*o+l*a)+o+t,-i*l,i*c,-i*(-l*o+c*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(ys.makeScale(t,e)),this}rotate(t){return this.premultiply(ys.makeRotation(-t)),this}translate(t,e){return this.premultiply(ys.makeTranslation(t,e)),this}makeTranslation(t,e){return typeof t=="number"?this.set(1,0,t,0,1,e,0,0,1):this.set(1,0,t.x,0,1,t.y,0,0,1),this}makeRotation(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,-s,0,s,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){for(let e=0;e<9;e++)if(this.value[e]!==t.value[e])return!1;return!0}}class ft{value;is3dSpecial=!1;constructor(t=Tn){this.value=Array.from(t)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}set(t=1,e=0,s=0,i=0,r=0,o=1,a=0,c=0,l=0,h=0,g=1,b=0,y=0,m=0,S=0,P=1){const T=this.value;return T[0]=t,T[4]=e,T[8]=s,T[12]=i,T[1]=r,T[5]=o,T[9]=a,T[13]=c,T[2]=l,T[6]=h,T[10]=g,T[14]=b,T[3]=y,T[7]=m,T[11]=S,T[15]=P,this}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(Tn),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}copy(t){return this.m11=t.m11,this.m12=t.m12,this.m13=t.m13,this.m14=t.m14,this.m21=t.m21,this.m22=t.m22,this.m23=t.m23,this.m24=t.m24,this.m31=t.m31,this.m32=t.m32,this.m33=t.m33,this.m34=t.m34,this.m41=t.m41,this.m42=t.m42,this.m43=t.m43,this.m44=t.m44,this}clone(){return new ft(this.value)}static fromString(t){const e=new ft,s=Hs("number",t);return s.length===16&&s.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}fromArray(t,e=0){for(let s=0;s<16;s++)this.value[s]=t[s+e];return this}toArray(t=[],e=0){const s=this.value;return t[e]=s[0],t[e+1]=s[1],t[e+2]=s[2],t[e+3]=s[3],t[e+4]=s[4],t[e+5]=s[5],t[e+6]=s[6],t[e+7]=s[7],t[e+8]=s[8],t[e+9]=s[9],t[e+10]=s[10],t[e+11]=s[11],t[e+12]=s[12],t[e+13]=s[13],t[e+14]=s[14],t[e+15]=s[15],t}copyPosition(t){const e=this.value,s=t.value;return e[12]=s[12],e[13]=s[13],e[14]=s[14],this}setFromMatrix3(t){const e=t.value;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,s){return t.setFromMatrix4Column(this,0),e.setFromMatrix4Column(this,1),s.setFromMatrix4Column(this,2),this}makeBasis(t,e,s){return this.set(t.x,e.x,s.x,0,t.y,e.y,s.y,0,t.z,e.z,s.z,0,0,0,0,1),this}normalize(){return this.multiplyScalar(1/(this.m44||1e-4))}transformPoint(t){const e=t.z||1,s=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+s*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+s*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+s*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+s*this.m44}}toMatrix(t){const{scalarX:e,scalarY:s,skewX:i,skewY:r,x:o,y:a}=this.split(),c=[e,r,i,s,o,a];return t?(t.value=c,t):new mt(c)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(t=6){return`matrix4(${this.value.map(e=>Ht(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),s=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),i=ut(Y(Math.asin(-this.m13),-1,1));let r=ut(Math.atan2(this.m23,this.m33));Math.cos(J(i))===0&&(r=ut(Math.atan2(-this.m31,this.m22)));let o=ut(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:s,degreeX:r,degreeY:i,degreeZ:o,skewX:ut(this.m14),skewY:ut(this.m24),skewZ:ut(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}extractRotation(t){const e=this.value,s=t.value,i=1/Wt.setFromMatrix4Column(t,0).length(),r=1/Wt.setFromMatrix4Column(t,1).length(),o=1/Wt.setFromMatrix4Column(t,2).length();return e[0]=s[0]*i,e[1]=s[1]*i,e[2]=s[2]*i,e[3]=0,e[4]=s[4]*r,e[5]=s[5]*r,e[6]=s[6]*r,e[7]=0,e[8]=s[8]*o,e[9]=s[9]*o,e[10]=s[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.value,s=t.x,i=t.y,r=t.z,o=Math.cos(s),a=Math.sin(s),c=Math.cos(i),l=Math.sin(i),h=Math.cos(r),g=Math.sin(r);if(t.order==="XYZ"){const b=o*h,y=o*g,m=a*h,S=a*g;e[0]=c*h,e[4]=-c*g,e[8]=l,e[1]=y+m*l,e[5]=b-S*l,e[9]=-a*c,e[2]=S-b*l,e[6]=m+y*l,e[10]=o*c}else if(t.order==="YXZ"){const b=c*h,y=c*g,m=l*h,S=l*g;e[0]=b+S*a,e[4]=m*a-y,e[8]=o*l,e[1]=o*g,e[5]=o*h,e[9]=-a,e[2]=y*a-m,e[6]=S+b*a,e[10]=o*c}else if(t.order==="ZXY"){const b=c*h,y=c*g,m=l*h,S=l*g;e[0]=b-S*a,e[4]=-o*g,e[8]=m+y*a,e[1]=y+m*a,e[5]=o*h,e[9]=S-b*a,e[2]=-o*l,e[6]=a,e[10]=o*c}else if(t.order==="ZYX"){const b=o*h,y=o*g,m=a*h,S=a*g;e[0]=c*h,e[4]=m*l-y,e[8]=b*l+S,e[1]=c*g,e[5]=S*l+b,e[9]=y*l-m,e[2]=-l,e[6]=a*c,e[10]=o*c}else if(t.order==="YZX"){const b=o*c,y=o*l,m=a*c,S=a*l;e[0]=c*h,e[4]=S-b*g,e[8]=m*g+y,e[1]=g,e[5]=o*h,e[9]=-a*h,e[2]=-l*h,e[6]=y*g+m,e[10]=b-S*g}else if(t.order==="XZY"){const b=o*c,y=o*l,m=a*c,S=a*l;e[0]=c*h,e[4]=-g,e[8]=l*h,e[1]=b*g+S,e[5]=o*h,e[9]=y*g-m,e[2]=m*g-y,e[6]=a*h,e[10]=S*g+b}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(jr,t,Hr)}lookAt(t,e,s){const i=this.value;return at.subVectors(t,e),at.lengthSq()===0&&(at.z=1),at.normalize(),Vt.crossVectors(s,at),Vt.lengthSq()===0&&(Math.abs(s.z)===1?at.x+=1e-4:at.z+=1e-4,at.normalize(),Vt.crossVectors(s,at)),Vt.normalize(),Fe.crossVectors(at,Vt),i[0]=Vt.x,i[4]=Fe.x,i[8]=at.x,i[1]=Vt.y,i[5]=Fe.y,i[9]=at.y,i[2]=Vt.z,i[6]=Fe.z,i[10]=at.z,this}multiplyMatrices(t,e){const s=t.value,i=e.value,r=this.value,o=s[0],a=s[4],c=s[8],l=s[12],h=s[1],g=s[5],b=s[9],y=s[13],m=s[2],S=s[6],P=s[10],T=s[14],C=s[3],_=s[7],p=s[11],v=s[15],x=i[0],I=i[4],O=i[8],R=i[12],L=i[1],B=i[5],$=i[9],D=i[13],X=i[2],W=i[6],ot=i[10],pt=i[14],Tt=i[3],gt=i[7],Ct=i[11],St=i[15];return r[0]=o*x+a*L+c*X+l*Tt,r[4]=o*I+a*B+c*W+l*gt,r[8]=o*O+a*$+c*ot+l*Ct,r[12]=o*R+a*D+c*pt+l*St,r[1]=h*x+g*L+b*X+y*Tt,r[5]=h*I+g*B+b*W+y*gt,r[9]=h*O+g*$+b*ot+y*Ct,r[13]=h*R+g*D+b*pt+y*St,r[2]=m*x+S*L+P*X+T*Tt,r[6]=m*I+S*B+P*W+T*gt,r[10]=m*O+S*$+P*ot+T*Ct,r[14]=m*R+S*D+P*pt+T*St,r[3]=C*x+_*L+p*X+v*Tt,r[7]=C*I+_*B+p*W+v*gt,r[11]=C*O+_*$+p*ot+v*Ct,r[15]=C*R+_*D+p*pt+v*St,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this}determinant(){const t=this.value,e=t[0],s=t[4],i=t[8],r=t[12],o=t[1],a=t[5],c=t[9],l=t[13],h=t[2],g=t[6],b=t[10],y=t[14],m=t[3],S=t[7],P=t[11],T=t[15];return m*(+r*c*g-i*l*g-r*a*b+s*l*b+i*a*y-s*c*y)+S*(+e*c*y-e*l*b+r*o*b-i*o*y+i*l*h-r*c*h)+P*(+e*l*g-e*a*y-r*o*g+s*o*y+r*a*h-s*l*h)+T*(-i*a*h-e*c*g+e*a*b+i*o*g-s*o*b+s*c*h)}transpose(){const t=this.value;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,s){const i=this.value;return t instanceof vt?(i[12]=t.x,i[13]=t.y,i[14]=t.z):typeof t=="number"&&typeof e=="number"&&typeof s=="number"&&(i[12]=t,i[13]=e,i[14]=s),this}invert(){const t=this.value,e=t[0],s=t[1],i=t[2],r=t[3],o=t[4],a=t[5],c=t[6],l=t[7],h=t[8],g=t[9],b=t[10],y=t[11],m=t[12],S=t[13],P=t[14],T=t[15],C=g*P*l-S*b*l+S*c*y-a*P*y-g*c*T+a*b*T,_=m*b*l-h*P*l-m*c*y+o*P*y+h*c*T-o*b*T,p=h*S*l-m*g*l+m*a*y-o*S*y-h*a*T+o*g*T,v=m*g*c-h*S*c-m*a*b+o*S*b+h*a*P-o*g*P,x=e*C+s*_+i*p+r*v;if(x===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const I=1/x;return t[0]=C*I,t[1]=(S*b*r-g*P*r-S*i*y+s*P*y+g*i*T-s*b*T)*I,t[2]=(a*P*r-S*c*r+S*i*l-s*P*l-a*i*T+s*c*T)*I,t[3]=(g*c*r-a*b*r-g*i*l+s*b*l+a*i*y-s*c*y)*I,t[4]=_*I,t[5]=(h*P*r-m*b*r+m*i*y-e*P*y-h*i*T+e*b*T)*I,t[6]=(m*c*r-o*P*r-m*i*l+e*P*l+o*i*T-e*c*T)*I,t[7]=(o*b*r-h*c*r+h*i*l-e*b*l-o*i*y+e*c*y)*I,t[8]=p*I,t[9]=(m*g*r-h*S*r-m*s*y+e*S*y+h*s*T-e*g*T)*I,t[10]=(o*S*r-m*a*r+m*s*l-e*S*l-o*s*T+e*a*T)*I,t[11]=(h*a*r-o*g*r-h*s*l+e*g*l+o*s*y-e*a*y)*I,t[12]=v*I,t[13]=(h*S*i-m*g*i+m*s*b-e*S*b-h*s*P+e*g*P)*I,t[14]=(m*a*i-o*S*i-m*s*c+e*S*c+o*s*P-e*a*P)*I,t[15]=(o*g*i-h*a*i+h*s*c-e*g*c-o*s*b+e*a*b)*I,this}getMaxScaleOnAxis(){const t=this.value,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],s=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,s,i))}makeTranslation(t,e,s){return t instanceof vt?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,s,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),s=Math.sin(t);return this.set(1,0,0,0,0,e,-s,0,0,s,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,0,s,0,0,1,0,0,-s,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),s=Math.sin(t);return this.set(e,-s,0,0,s,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const s=Math.cos(e),i=Math.sin(e),r=1-s,o=t.x,a=t.y,c=t.z,l=r*o,h=r*a;return this.set(l*o+s,l*a-i*c,l*c+i*a,0,l*a+i*c,h*a+s,h*c-i*o,0,l*c-i*a,h*c+i*o,r*c*c+s,0,0,0,0,1),this}makeScale(t,e,s){return this.set(t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1),this}makeShear(t,e,s,i,r,o){return this.set(1,s,r,0,t,1,o,0,e,i,1,0,0,0,0,1),this}makePerspective(t,e,s,i,r,o,a=Ie){const c=this.value,l=2*r/(e-t),h=2*r/(s-i),g=(e+t)/(e-t),b=(s+i)/(s-i);let y,m;if(a===Ie)y=-(o+r)/(o-r),m=-2*o*r/(o-r);else if(a===bn)y=-o/(o-r),m=-o*r/(o-r);else throw new Error("Matrix4.makePerspective(): Invalid coordinate system: "+a);return c[0]=l,c[4]=0,c[8]=g,c[12]=0,c[1]=0,c[5]=h,c[9]=b,c[13]=0,c[2]=0,c[6]=0,c[10]=y,c[14]=m,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(t,e,s,i,r,o,a=Ie){const c=this.value,l=1/(e-t),h=1/(s-i),g=1/(o-r),b=(e+t)*l,y=(s+i)*h;let m,S;if(a===Ie)m=(o+r)*g,S=-2*g;else if(a===bn)m=r*g,S=-1*g;else throw new Error("Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return c[0]=2*l,c[4]=0,c[8]=0,c[12]=-b,c[1]=0,c[5]=2*h,c[9]=0,c[13]=-y,c[2]=0,c[6]=0,c[10]=S,c[14]=-m,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}compose(t,e,s){const i=this.value,r=e.x,o=e.y,a=e.z,c=e.w,l=r+r,h=o+o,g=a+a,b=r*l,y=r*h,m=r*g,S=o*h,P=o*g,T=a*g,C=c*l,_=c*h,p=c*g,v=s.x,x=s.y,I=s.z;return i[0]=(1-(S+T))*v,i[1]=(y+p)*v,i[2]=(m-_)*v,i[3]=0,i[4]=(y-p)*x,i[5]=(1-(b+T))*x,i[6]=(P+C)*x,i[7]=0,i[8]=(m+_)*I,i[9]=(P-C)*I,i[10]=(1-(b+S))*I,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,s){const i=this.value;let r=Wt.set(i[0],i[1],i[2]).length();const o=Wt.set(i[4],i[5],i[6]).length(),a=Wt.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],wt.copy(this);const l=1/r,h=1/o,g=1/a;return wt.value[0]*=l,wt.value[1]*=l,wt.value[2]*=l,wt.value[4]*=h,wt.value[5]*=h,wt.value[6]*=h,wt.value[8]*=g,wt.value[9]*=g,wt.value[10]*=g,e.setFromRotationMatrix4(wt),s.x=r,s.y=o,s.z=a,this}equals(t){for(let e=0;e<16;e++)if(this.value[e]!==t.value[e])return!1;return!0}translate(t=0,e=0,s=0){return this.multiply(new ft([1,0,0,0,0,1,0,0,0,0,1,0,t,e,s,1]))}scale(t=1,e=1,s=1){return this.multiply(new ft([t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1]))}scaleVector3(t){const e=this.value,s=t.x,i=t.y,r=t.z;return e[0]*=s,e[4]*=i,e[8]*=r,e[1]*=s,e[5]*=i,e[9]*=r,e[2]*=s,e[6]*=i,e[10]*=r,e[3]*=s,e[7]*=i,e[11]*=r,this}rotateX(t){const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([1,0,0,0,0,s,i,0,0,-i,s,0,0,0,0,1]))}rotateY(t){const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([s,0,-i,0,0,1,0,0,i,0,s,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=J(t),s=Math.cos(e),i=Math.sin(e);return this.multiply(new ft([s,i,0,0,-i,s,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,s=0){return this.multiply(new ft([1,0,0,J(t),0,1,0,J(e),0,0,1,J(s),0,0,0,1]))}perspective(t){return this.multiply(new ft([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,s=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=s+this.m32,c=i+this.m33,l=r+this.m34;r==0&&(r=1e-4),e/=r,s/=r,i/=r,l==0&&(l=1e-4),o/=l,a/=l,c/=l;const h=c-i;if(h==0)return{x:e,y:s,z:i,mass:r};const g=-i/h;return e+=g*(o-e),s+=g*(a-s),{x:e,y:s,z:i,mass:r}}project(t){const e=t.z;let s=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),s/=r,i/=r,r<0&&(s-=this.m41,i-=this.m42,s*=1/r,i*=1/r,s+=this.m41,i+=this.m42),{x:s,y:i,z:e,mass:r}}bounds(t,e,s,i){const r=new Me({x:t,y:e}),o=new Me({x:t+s,y:e}),a=new Me({x:t+s,y:e+i}),c=new Me({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:c.x,y:c.y,z:c.z,mass:c.mass}=this.project(c);const l=Math.min(r.x,o.x,a.x,c.x),h=Math.min(r.y,o.y,a.y,c.y),g=Math.max(r.x,o.x,a.x,c.x)-l,b=Math.max(r.y,o.y,a.y,c.y)-h;return{x:l,y:h,width:g,height:b}}}class mt{value;_m13=0;_m23=0;_m33=1;matrix4;constructor(t=vn){this.value=Array.from(t),this.matrix4=this.toMatrix4()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this._m13}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this._m23}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this._m33}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this._m13=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this._m23=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this._m33=t}static fromString(t){const e=new mt,s=Hs("number",t);return s.length===6&&s.forEach((i,r)=>{i.fullMatch&&(e.value[r]=parseFloat(i.fullMatch))}),e}toMatrix4(t=this.matrix4){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new ft(e)}identity(){return this.value=Array.from(vn),this.m13=0,this.m23=0,this.m33=1,this.matrix4=this.toMatrix4(),this}get isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}multiplyScalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}normalize(){const t=this.m33||1e-4;return this.multiplyScalar(1/t)}transformPoint(t){const e=t.z||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31,y:t.x*this.m12+t.y*this.m22+e*this.m32,z:t.x*this.m13+t.y*this.m23+e*this.m33}}clone(){return new mt(this.value)}multiply(t){const e=this.clone(),s=t instanceof mt?t:new mt(t);return this.m11=s.m11*e.m11+s.m12*e.m21+s.m13*e.m31,this.m12=s.m11*e.m12+s.m12*e.m22+s.m13*e.m32,this.m13=s.m11*e.m13+s.m12*e.m23+s.m13*e.m33,this.m21=s.m21*e.m11+s.m22*e.m21+s.m23*e.m31,this.m22=s.m21*e.m12+s.m22*e.m22+s.m23*e.m32,this.m23=s.m21*e.m13+s.m22*e.m23+s.m23*e.m33,this.m31=s.m31*e.m11+s.m32*e.m21+s.m33*e.m31,this.m32=s.m31*e.m12+s.m32*e.m22+s.m33*e.m32,this.m33=s.m31*e.m13+s.m32*e.m23+s.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}invert(){const t=this.m11,e=this.m12,s=this.m13,i=this.m21,r=this.m22,o=this.m23,a=this.m31,c=this.m32,l=this.m33,h=l*r-o*c,g=-l*i+o*a,b=c*i-r*a;let y=t*h+e*g+s*b;return y?(y=1/y,this.m11=h*y,this.m12=(-l*e+s*c)*y,this.m13=(o*e-s*r)*y,this.m21=g*y,this.m22=(l*t-s*a)*y,this.m23=(-o*t+s*i)*y,this.m31=b*y,this.m32=(-c*t+e*a)*y,this.m33=(r*t-e*i)*y,this):null}adjugate(){const t=new mt;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=ut(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,degree:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:ut(Math.atan2(-this.m21,this.m22)),skewY:ut(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],s=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],c=t.value[0],l=t.value[1],h=t.value[2],g=t.value[3],b=t.value[4],y=t.value[5],m=c*g,S=l*h,P=(h*s-e*g)/(S-m),T=(c*s-e*l)/(m-S),C=(h*r-i*g)/(S-m),_=(c*r-i*l)/(m-S),p=(h*(a-y)+g*(b-o))/(S-m),v=(c*(a-y)+l*(b-o))/(m-S),x=[P,T,C,_,p,v];return new mt(x)}toString(t=6){return this.matrix4.is2D()?`matrix(${this.value.map(e=>Ht(e,t)).join(",")})`:this.matrix4.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix4(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix4.translate(0,0,t),this.matrix4.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix4.m43),this}translate3d(t,e,s){return this.matrix4.translate(t,e,s),this.matrix4.toMatrix(this),this}translate3dTo(t,e,s){return this.translate3d(t-this.matrix4.m41,e-this.matrix4.m42,s-this.matrix4.m43),this}rotate(t,e=0,s=0){const i=J(t),r=Math.cos(i),o=Math.sin(i);return this.translate(e,s),this.multiply([r,o,-o,r,0,0]),this.translate(-e,-s),this.toMatrix4(),this}rotateTo(t,e=0,s=0){const{degree:i}=this.split();return this.rotate(t-i,e,s),this}rotateX(t){return this.matrix4.rotateX(t),this.matrix4.toMatrix(this),this}rotateXTo(t){const{degreeX:e}=this.matrix4.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix4.rotateY(t),this.matrix4.toMatrix(this),this}rotateYTo(t){const{degreeY:e}=this.matrix4.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix4.rotateZ(t),this.matrix4.toMatrix(this),this}rotateZTo(t){const{degreeZ:e}=this.matrix4.split();return this.rotateZ(t-e),this}rotate3d(t,e,s){return this.matrix4.rotateX(t).rotateY(e).rotateZ(s),this.matrix4.toMatrix(this),this}rotate3dTo(t,e,s){const{degreeX:i,degreeY:r,degreeZ:o}=this.matrix4.split();return this.rotate3d(t-i,e-r,s-o),this}scale(t,e=t,s=0,i=0){return this.translate(s,i),this.multiply([t,0,0,e,0,0]),this.translate(-s,-i),this.toMatrix4(),this}scaleTo(t,e=t,s=0,i=0){return this.scale(t/this.m11,e/this.m22,s,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix4.scale(1,1,t),this.matrix4.toMatrix(this),this}scaleZTo(t){const{scalarZ:e}=this.matrix4.split();return this.scaleZ(t/e),this}scale3d(t,e=t,s=t){return this.matrix4.scale(t,e,s),this.matrix4.toMatrix(this),this}scale3dTo(t,e=t,s=t){const{scalarX:i,scalarY:r,scalarZ:o}=this.matrix4.split();return this.scale3d(t/i,e/r,s/o),this}skew(t,e=t){return this.multiply([Math.cos(J(e)),Math.sin(J(e)),-Math.sin(J(t)),Math.cos(J(t)),0,0]),this.toMatrix4(),this}skewTo(t,e=t){const{skewX:s,skewY:i}=this.split();return this.skew(t-s,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,s){return this}skew3dTo(t,e,s){return this}perspective(t){return this.matrix4.perspective(t),this.matrix4.toMatrix(this),this}}const jr=new vt(0,0,0),Hr=new vt(1,1,1),Vt=new vt,Fe=new vt,at=new vt,Wt=new vt,ys=new ce,wt=new ft;function _s(n,t,e){const s=new mt;return s.rotate(ut(n)),s.transformPoint({x:t,y:e})}function xs(n,t,e){const s=hn(n);return s.props.style=s.props.style||{},t?s.props.style[t]||s.props.style[ir(t)]||s.props.style[Et(t)]||"":s.props.style}function Cn(n){const t={};if(getComputedStyle){const e=getComputedStyle(n);for(let s=0,i=e.length;s<i;s++)t[e[s]]=e.getPropertyValue(t[s])}else{const e=n.currentStyle;for(const s in e)t[s]=e[s]}return n.style.cssText&&n.style.cssText.split(";").filter(e=>!!e).forEach(e=>{const[s,i]=e.split(":");s&&i&&(t[s.trim()]=i.trim())}),t}function Sn(n,t,e){let s=n.style[t]||"";if(!s&&getComputedStyle){t=Et(t);const i=getComputedStyle(n,e),r=i.getPropertyPriority(t);s=i.getPropertyValue(t).trim()+(r?"!"+r:"")}return s||(s=n.currentStyle[t]||""),s}function le(n,t,e){typeof t=="string"&&e?n.style.setProperty(Et(t),e.replace(/!important/i,""),e.toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(s=>{le(n,s,t[s])})}function Pn(n,t){typeof t=="string"?n.style.removeProperty(Et(t)):Object.keys(t).forEach(e=>{Pn(n,e)})}function Zr(n,t){let e;if(typeof t=="string"){const s=document.querySelector(t)?.shadowRoot;s?e=s:e=document.querySelector(t)}else e=t||document.getElementsByTagName("head")[0];if(e){const s=document.createElement("style");return s.innerHTML=n,e.appendChild(s),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(s)}}else{const s=document.styleSheets[0].insertRule(n);return()=>{document.styleSheets[0].deleteRule(s)}}}function Wr(n,t,e){if(t===void 0&&e===void 0)return kn(n);if(typeof t=="string"&&e===void 0)return Qr(n,t);let s={};typeof t=="object"?s=t:typeof t=="string"&&typeof e=="string"&&(s[t]=""+e),Rr(n,i=>{Object.entries(s).forEach(([r,o])=>{i.props[r]=""+o})})}function kn(n){const t={};for(let e=0,s=n.attributes,i=s.length;e<i;e++){const r=s[e];r.nodeName&&r.nodeValue&&(r.nodeName==="style"?t[r.nodeName]=Cn(n):t[r.nodeName]=r.nodeValue)}return t}function Qr(n,t){return t==="style"?Cn(n):n.getAttribute(Et(t))}function ze(n,t,e){return n.setAttribute(Et(t),""+e)}function En(){const n=document.documentElement;return{clientWidth:n.clientWidth,clientHeight:n.clientHeight,clientTop:n.clientTop,clientLeft:n.clientLeft,scrollWidth:n.scrollWidth,scrollHeight:n.scrollHeight,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft,offsetWidth:n.offsetWidth,offsetHeight:n.offsetHeight,offsetTop:n.offsetTop,offsetLeft:n.offsetLeft,offsetParent:n.offsetParent}}function Kr(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function An(n){const{top:t,left:e,width:s,height:i}=n.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=En();return{x:e+r,y:t+o,width:s,height:i}}function Jr(){const n={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0,isDown:!1},t={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0,isDown:!1};return{mousePoint:t,setStartMousePoint:function(e,s){n.x=e.x,n.y=e.y,typeof s=="boolean"&&(n.isDown=s),this.setCurrentMousePoint(e,s)},setCurrentMousePoint:(e,s)=>{const i=t.x,r=t.y;t.x=e.x,t.y=e.y,t.dx=t.x-i,t.dy=t.y-r,t.dStartX=t.x-n.x,t.dStartY=t.y-n.y,typeof s=="boolean"&&(t.isDown=s)}}}function Mn(n){if("center"in n)return n.center;if(typeof n.pageX=="number"&&typeof n.pageY=="number")return{x:n.pageX,y:n.pageY};const{scrollLeft:t,scrollTop:e}=En();return{x:n.clientX+t,y:n.clientY+e}}function he(n,t){const e={x:0,y:0};if(t){const s=Mn(n),i=An(t);e.x=Y(s.x-i.x,0,i.width),e.y=Y(s.y-i.y,0,i.height)}else{let s=0,i=0;if("currentTarget"in n&&n.currentTarget&&n.target&&n.currentTarget!=n.target){const r=n.currentTarget.getBoundingClientRect(),o=n.target.getBoundingClientRect();s=o.left-r.left,i=o.top-r.top}if("offsetX"in n)e.x=n.offsetX+s,e.y=n.offsetY+i;else{const r=Mn(n),o=An(n.target);e.x=Y(r.x-o.x+s,0,o.width),e.y=Y(r.y-o.y+i,0,o.height)}}return e}var In={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
11
+ * http://hammerjs.github.io/
12
+ *
13
+ * Copyright (c) 2016 Jorik Tangelder;
14
+ * Licensed under the MIT license */(function(n){(function(t,e,s,i){var r=["","webkit","Moz","MS","ms","o"],o=e.createElement("div"),a="function",c=Math.round,l=Math.abs,h=Date.now;function g(u,d,w){return setTimeout(_(u,w),d)}function b(u,d,w){return Array.isArray(u)?(y(u,w[d],w),!0):!1}function y(u,d,w){var k;if(u)if(u.forEach)u.forEach(d,w);else if(u.length!==i)for(k=0;k<u.length;)d.call(w,u[k],k,u),k++;else for(k in u)u.hasOwnProperty(k)&&d.call(w,u[k],k,u)}function m(u,d,w){var k="DEPRECATED METHOD: "+d+`
15
+ `+w+` AT
16
+ `;return function(){var M=new Error("get-stack-trace"),z=M&&M.stack?M.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",V=t.console&&(t.console.warn||t.console.log);return V&&V.call(t.console,k,z),u.apply(this,arguments)}}var S;typeof Object.assign!="function"?S=function(d){if(d===i||d===null)throw new TypeError("Cannot convert undefined or null to object");for(var w=Object(d),k=1;k<arguments.length;k++){var M=arguments[k];if(M!==i&&M!==null)for(var z in M)M.hasOwnProperty(z)&&(w[z]=M[z])}return w}:S=Object.assign;var P=m(function(d,w,k){for(var M=Object.keys(w),z=0;z<M.length;)(!k||k&&d[M[z]]===i)&&(d[M[z]]=w[M[z]]),z++;return d},"extend","Use `assign`."),T=m(function(d,w){return P(d,w,!0)},"merge","Use `assign`.");function C(u,d,w){var k=d.prototype,M;M=u.prototype=Object.create(k),M.constructor=u,M._super=k,w&&S(M,w)}function _(u,d){return function(){return u.apply(d,arguments)}}function p(u,d){return typeof u==a?u.apply(d&&d[0]||i,d):u}function v(u,d){return u===i?d:u}function x(u,d,w){y(L(d),function(k){u.addEventListener(k,w,!1)})}function I(u,d,w){y(L(d),function(k){u.removeEventListener(k,w,!1)})}function O(u,d){for(;u;){if(u==d)return!0;u=u.parentNode}return!1}function R(u,d){return u.indexOf(d)>-1}function L(u){return u.trim().split(/\s+/g)}function B(u,d,w){if(u.indexOf&&!w)return u.indexOf(d);for(var k=0;k<u.length;){if(w&&u[k][w]==d||!w&&u[k]===d)return k;k++}return-1}function $(u){return Array.prototype.slice.call(u,0)}function D(u,d,w){for(var k=[],M=[],z=0;z<u.length;){var V=d?u[z][d]:u[z];B(M,V)<0&&k.push(u[z]),M[z]=V,z++}return w&&(d?k=k.sort(function(et,rt){return et[d]>rt[d]}):k=k.sort()),k}function X(u,d){for(var w,k,M=d[0].toUpperCase()+d.slice(1),z=0;z<r.length;){if(w=r[z],k=w?w+M:d,k in u)return k;z++}return i}var W=1;function ot(){return W++}function pt(u){var d=u.ownerDocument||u;return d.defaultView||d.parentWindow||t}var Tt=/mobile|tablet|ip(ad|hone|od)|android/i,gt="ontouchstart"in t,Ct=X(t,"PointerEvent")!==i,St=gt&&Tt.test(navigator.userAgent),it="touch",N="pen",E="mouse",ht="kinect",tt=25,G=1,yt=2,q=4,Q=8,se=1,Ut=2,$t=4,Bt=8,A=16,j=Ut|$t,qt=Bt|A,zi=j|qt,Oi=["x","y"],qe=["clientX","clientY"];function _t(u,d){var w=this;this.manager=u,this.callback=d,this.element=u.element,this.target=u.options.inputTarget,this.domHandler=function(k){p(u.options.enable,[u])&&w.handler(k)},this.init()}_t.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(pt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(pt(this.element),this.evWin,this.domHandler)}};function ic(u){var d,w=u.options.inputClass;return w?d=w:Ct?d=Ds:St?d=Ze:gt?d=Vs:d=He,new d(u,rc)}function rc(u,d,w){var k=w.pointers.length,M=w.changedPointers.length,z=d&G&&k-M===0,V=d&(q|Q)&&k-M===0;w.isFirst=!!z,w.isFinal=!!V,z&&(u.session={}),w.eventType=d,oc(u,w),u.emit("hammer.input",w),u.recognize(w),u.session.prevInput=w}function oc(u,d){var w=u.session,k=d.pointers,M=k.length;w.firstInput||(w.firstInput=Ri(d)),M>1&&!w.firstMultiple?w.firstMultiple=Ri(d):M===1&&(w.firstMultiple=!1);var z=w.firstInput,V=w.firstMultiple,K=V?V.center:z.center,et=d.center=Li(k);d.timeStamp=h(),d.deltaTime=d.timeStamp-z.timeStamp,d.angle=Ns(K,et),d.distance=je(K,et),ac(w,d),d.offsetDirection=Di(d.deltaX,d.deltaY);var rt=Ni(d.deltaTime,d.deltaX,d.deltaY);d.overallVelocityX=rt.x,d.overallVelocityY=rt.y,d.overallVelocity=l(rt.x)>l(rt.y)?rt.x:rt.y,d.scale=V?hc(V.pointers,k):1,d.rotation=V?lc(V.pointers,k):0,d.maxPointers=w.prevInput?d.pointers.length>w.prevInput.maxPointers?d.pointers.length:w.prevInput.maxPointers:d.pointers.length,cc(w,d);var It=u.element;O(d.srcEvent.target,It)&&(It=d.srcEvent.target),d.target=It}function ac(u,d){var w=d.center,k=u.offsetDelta||{},M=u.prevDelta||{},z=u.prevInput||{};(d.eventType===G||z.eventType===q)&&(M=u.prevDelta={x:z.deltaX||0,y:z.deltaY||0},k=u.offsetDelta={x:w.x,y:w.y}),d.deltaX=M.x+(w.x-k.x),d.deltaY=M.y+(w.y-k.y)}function cc(u,d){var w=u.lastInterval||d,k=d.timeStamp-w.timeStamp,M,z,V,K;if(d.eventType!=Q&&(k>tt||w.velocity===i)){var et=d.deltaX-w.deltaX,rt=d.deltaY-w.deltaY,It=Ni(k,et,rt);z=It.x,V=It.y,M=l(It.x)>l(It.y)?It.x:It.y,K=Di(et,rt),u.lastInterval=d}else M=w.velocity,z=w.velocityX,V=w.velocityY,K=w.direction;d.velocity=M,d.velocityX=z,d.velocityY=V,d.direction=K}function Ri(u){for(var d=[],w=0;w<u.pointers.length;)d[w]={clientX:c(u.pointers[w].clientX),clientY:c(u.pointers[w].clientY)},w++;return{timeStamp:h(),pointers:d,center:Li(d),deltaX:u.deltaX,deltaY:u.deltaY}}function Li(u){var d=u.length;if(d===1)return{x:c(u[0].clientX),y:c(u[0].clientY)};for(var w=0,k=0,M=0;M<d;)w+=u[M].clientX,k+=u[M].clientY,M++;return{x:c(w/d),y:c(k/d)}}function Ni(u,d,w){return{x:d/u||0,y:w/u||0}}function Di(u,d){return u===d?se:l(u)>=l(d)?u<0?Ut:$t:d<0?Bt:A}function je(u,d,w){w||(w=Oi);var k=d[w[0]]-u[w[0]],M=d[w[1]]-u[w[1]];return Math.sqrt(k*k+M*M)}function Ns(u,d,w){w||(w=Oi);var k=d[w[0]]-u[w[0]],M=d[w[1]]-u[w[1]];return Math.atan2(M,k)*180/Math.PI}function lc(u,d){return Ns(d[1],d[0],qe)+Ns(u[1],u[0],qe)}function hc(u,d){return je(d[0],d[1],qe)/je(u[0],u[1],qe)}var uc={mousedown:G,mousemove:yt,mouseup:q},fc="mousedown",mc="mousemove mouseup";function He(){this.evEl=fc,this.evWin=mc,this.pressed=!1,_t.apply(this,arguments)}C(He,_t,{handler:function(d){var w=uc[d.type];w&G&&d.button===0&&(this.pressed=!0),w&yt&&d.which!==1&&(w=q),this.pressed&&(w&q&&(this.pressed=!1),this.callback(this.manager,w,{pointers:[d],changedPointers:[d],pointerType:E,srcEvent:d}))}});var dc={pointerdown:G,pointermove:yt,pointerup:q,pointercancel:Q,pointerout:Q},pc={2:it,3:N,4:E,5:ht},Vi="pointerdown",Bi="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Vi="MSPointerDown",Bi="MSPointerMove MSPointerUp MSPointerCancel");function Ds(){this.evEl=Vi,this.evWin=Bi,_t.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(Ds,_t,{handler:function(d){var w=this.store,k=!1,M=d.type.toLowerCase().replace("ms",""),z=dc[M],V=pc[d.pointerType]||d.pointerType,K=V==it,et=B(w,d.pointerId,"pointerId");z&G&&(d.button===0||K)?et<0&&(w.push(d),et=w.length-1):z&(q|Q)&&(k=!0),!(et<0)&&(w[et]=d,this.callback(this.manager,z,{pointers:w,changedPointers:[d],pointerType:V,srcEvent:d}),k&&w.splice(et,1))}});var gc={touchstart:G,touchmove:yt,touchend:q,touchcancel:Q},yc="touchstart",_c="touchstart touchmove touchend touchcancel";function Xi(){this.evTarget=yc,this.evWin=_c,this.started=!1,_t.apply(this,arguments)}C(Xi,_t,{handler:function(d){var w=gc[d.type];if(w===G&&(this.started=!0),!!this.started){var k=xc.call(this,d,w);w&(q|Q)&&k[0].length-k[1].length===0&&(this.started=!1),this.callback(this.manager,w,{pointers:k[0],changedPointers:k[1],pointerType:it,srcEvent:d})}}});function xc(u,d){var w=$(u.touches),k=$(u.changedTouches);return d&(q|Q)&&(w=D(w.concat(k),"identifier",!0)),[w,k]}var bc={touchstart:G,touchmove:yt,touchend:q,touchcancel:Q},vc="touchstart touchmove touchend touchcancel";function Ze(){this.evTarget=vc,this.targetIds={},_t.apply(this,arguments)}C(Ze,_t,{handler:function(d){var w=bc[d.type],k=wc.call(this,d,w);k&&this.callback(this.manager,w,{pointers:k[0],changedPointers:k[1],pointerType:it,srcEvent:d})}});function wc(u,d){var w=$(u.touches),k=this.targetIds;if(d&(G|yt)&&w.length===1)return k[w[0].identifier]=!0,[w,w];var M,z,V=$(u.changedTouches),K=[],et=this.target;if(z=w.filter(function(rt){return O(rt.target,et)}),d===G)for(M=0;M<z.length;)k[z[M].identifier]=!0,M++;for(M=0;M<V.length;)k[V[M].identifier]&&K.push(V[M]),d&(q|Q)&&delete k[V[M].identifier],M++;if(K.length)return[D(z.concat(K),"identifier",!0),K]}var Tc=2500,Yi=25;function Vs(){_t.apply(this,arguments);var u=_(this.handler,this);this.touch=new Ze(this.manager,u),this.mouse=new He(this.manager,u),this.primaryTouch=null,this.lastTouches=[]}C(Vs,_t,{handler:function(d,w,k){var M=k.pointerType==it,z=k.pointerType==E;if(!(z&&k.sourceCapabilities&&k.sourceCapabilities.firesTouchEvents)){if(M)Cc.call(this,w,k);else if(z&&Sc.call(this,k))return;this.callback(d,w,k)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Cc(u,d){u&G?(this.primaryTouch=d.changedPointers[0].identifier,Gi.call(this,d)):u&(q|Q)&&Gi.call(this,d)}function Gi(u){var d=u.changedPointers[0];if(d.identifier===this.primaryTouch){var w={x:d.clientX,y:d.clientY};this.lastTouches.push(w);var k=this.lastTouches,M=function(){var z=k.indexOf(w);z>-1&&k.splice(z,1)};setTimeout(M,Tc)}}function Sc(u){for(var d=u.srcEvent.clientX,w=u.srcEvent.clientY,k=0;k<this.lastTouches.length;k++){var M=this.lastTouches[k],z=Math.abs(d-M.x),V=Math.abs(w-M.y);if(z<=Yi&&V<=Yi)return!0}return!1}var Ui=X(o.style,"touchAction"),$i=Ui!==i,qi="compute",ji="auto",Bs="manipulation",jt="none",pe="pan-x",ge="pan-y",We=kc();function Xs(u,d){this.manager=u,this.set(d)}Xs.prototype={set:function(u){u==qi&&(u=this.compute()),$i&&this.manager.element.style&&We[u]&&(this.manager.element.style[Ui]=u),this.actions=u.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var u=[];return y(this.manager.recognizers,function(d){p(d.options.enable,[d])&&(u=u.concat(d.getTouchAction()))}),Pc(u.join(" "))},preventDefaults:function(u){var d=u.srcEvent,w=u.offsetDirection;if(this.manager.session.prevented){d.preventDefault();return}var k=this.actions,M=R(k,jt)&&!We[jt],z=R(k,ge)&&!We[ge],V=R(k,pe)&&!We[pe];if(M){var K=u.pointers.length===1,et=u.distance<2,rt=u.deltaTime<250;if(K&&et&&rt)return}if(!(V&&z)&&(M||z&&w&j||V&&w&qt))return this.preventSrc(d)},preventSrc:function(u){this.manager.session.prevented=!0,u.preventDefault()}};function Pc(u){if(R(u,jt))return jt;var d=R(u,pe),w=R(u,ge);return d&&w?jt:d||w?d?pe:ge:R(u,Bs)?Bs:ji}function kc(){if(!$i)return!1;var u={},d=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(w){u[w]=d?t.CSS.supports("touch-action",w):!0}),u}var Qe=1,xt=2,ne=4,Xt=8,Ot=Xt,ye=16,Mt=32;function Rt(u){this.options=S({},this.defaults,u||{}),this.id=ot(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=Qe,this.simultaneous={},this.requireFail=[]}Rt.prototype={defaults:{},set:function(u){return S(this.options,u),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(u){if(b(u,"recognizeWith",this))return this;var d=this.simultaneous;return u=Ke(u,this),d[u.id]||(d[u.id]=u,u.recognizeWith(this)),this},dropRecognizeWith:function(u){return b(u,"dropRecognizeWith",this)?this:(u=Ke(u,this),delete this.simultaneous[u.id],this)},requireFailure:function(u){if(b(u,"requireFailure",this))return this;var d=this.requireFail;return u=Ke(u,this),B(d,u)===-1&&(d.push(u),u.requireFailure(this)),this},dropRequireFailure:function(u){if(b(u,"dropRequireFailure",this))return this;u=Ke(u,this);var d=B(this.requireFail,u);return d>-1&&this.requireFail.splice(d,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(u){return!!this.simultaneous[u.id]},emit:function(u){var d=this,w=this.state;function k(M){d.manager.emit(M,u)}w<Xt&&k(d.options.event+Hi(w)),k(d.options.event),u.additionalEvent&&k(u.additionalEvent),w>=Xt&&k(d.options.event+Hi(w))},tryEmit:function(u){if(this.canEmit())return this.emit(u);this.state=Mt},canEmit:function(){for(var u=0;u<this.requireFail.length;){if(!(this.requireFail[u].state&(Mt|Qe)))return!1;u++}return!0},recognize:function(u){var d=S({},u);if(!p(this.options.enable,[this,d])){this.reset(),this.state=Mt;return}this.state&(Ot|ye|Mt)&&(this.state=Qe),this.state=this.process(d),this.state&(xt|ne|Xt|ye)&&this.tryEmit(d)},process:function(u){},getTouchAction:function(){},reset:function(){}};function Hi(u){return u&ye?"cancel":u&Xt?"end":u&ne?"move":u&xt?"start":""}function Zi(u){return u==A?"down":u==Bt?"up":u==Ut?"left":u==$t?"right":""}function Ke(u,d){var w=d.manager;return w?w.get(u):u}function Pt(){Rt.apply(this,arguments)}C(Pt,Rt,{defaults:{pointers:1},attrTest:function(u){var d=this.options.pointers;return d===0||u.pointers.length===d},process:function(u){var d=this.state,w=u.eventType,k=d&(xt|ne),M=this.attrTest(u);return k&&(w&Q||!M)?d|ye:k||M?w&q?d|Xt:d&xt?d|ne:xt:Mt}});function Je(){Pt.apply(this,arguments),this.pX=null,this.pY=null}C(Je,Pt,{defaults:{event:"pan",threshold:10,pointers:1,direction:zi},getTouchAction:function(){var u=this.options.direction,d=[];return u&j&&d.push(ge),u&qt&&d.push(pe),d},directionTest:function(u){var d=this.options,w=!0,k=u.distance,M=u.direction,z=u.deltaX,V=u.deltaY;return M&d.direction||(d.direction&j?(M=z===0?se:z<0?Ut:$t,w=z!=this.pX,k=Math.abs(u.deltaX)):(M=V===0?se:V<0?Bt:A,w=V!=this.pY,k=Math.abs(u.deltaY))),u.direction=M,w&&k>d.threshold&&M&d.direction},attrTest:function(u){return Pt.prototype.attrTest.call(this,u)&&(this.state&xt||!(this.state&xt)&&this.directionTest(u))},emit:function(u){this.pX=u.deltaX,this.pY=u.deltaY;var d=Zi(u.direction);d&&(u.additionalEvent=this.options.event+d),this._super.emit.call(this,u)}});function Ys(){Pt.apply(this,arguments)}C(Ys,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[jt]},attrTest:function(u){return this._super.attrTest.call(this,u)&&(Math.abs(u.scale-1)>this.options.threshold||this.state&xt)},emit:function(u){if(u.scale!==1){var d=u.scale<1?"in":"out";u.additionalEvent=this.options.event+d}this._super.emit.call(this,u)}});function Gs(){Rt.apply(this,arguments),this._timer=null,this._input=null}C(Gs,Rt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ji]},process:function(u){var d=this.options,w=u.pointers.length===d.pointers,k=u.distance<d.threshold,M=u.deltaTime>d.time;if(this._input=u,!k||!w||u.eventType&(q|Q)&&!M)this.reset();else if(u.eventType&G)this.reset(),this._timer=g(function(){this.state=Ot,this.tryEmit()},d.time,this);else if(u.eventType&q)return Ot;return Mt},reset:function(){clearTimeout(this._timer)},emit:function(u){this.state===Ot&&(u&&u.eventType&q?this.manager.emit(this.options.event+"up",u):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}});function Us(){Pt.apply(this,arguments)}C(Us,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[jt]},attrTest:function(u){return this._super.attrTest.call(this,u)&&(Math.abs(u.rotation)>this.options.threshold||this.state&xt)}});function $s(){Pt.apply(this,arguments)}C($s,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:j|qt,pointers:1},getTouchAction:function(){return Je.prototype.getTouchAction.call(this)},attrTest:function(u){var d=this.options.direction,w;return d&(j|qt)?w=u.overallVelocity:d&j?w=u.overallVelocityX:d&qt&&(w=u.overallVelocityY),this._super.attrTest.call(this,u)&&d&u.offsetDirection&&u.distance>this.options.threshold&&u.maxPointers==this.options.pointers&&l(w)>this.options.velocity&&u.eventType&q},emit:function(u){var d=Zi(u.offsetDirection);d&&this.manager.emit(this.options.event+d,u),this.manager.emit(this.options.event,u)}});function ts(){Rt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(ts,Rt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Bs]},process:function(u){var d=this.options,w=u.pointers.length===d.pointers,k=u.distance<d.threshold,M=u.deltaTime<d.time;if(this.reset(),u.eventType&G&&this.count===0)return this.failTimeout();if(k&&M&&w){if(u.eventType!=q)return this.failTimeout();var z=this.pTime?u.timeStamp-this.pTime<d.interval:!0,V=!this.pCenter||je(this.pCenter,u.center)<d.posThreshold;this.pTime=u.timeStamp,this.pCenter=u.center,!V||!z?this.count=1:this.count+=1,this._input=u;var K=this.count%d.taps;if(K===0)return this.hasRequireFailures()?(this._timer=g(function(){this.state=Ot,this.tryEmit()},d.interval,this),xt):Ot}return Mt},failTimeout:function(){return this._timer=g(function(){this.state=Mt},this.options.interval,this),Mt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ot&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Lt(u,d){return d=d||{},d.recognizers=v(d.recognizers,Lt.defaults.preset),new qs(u,d)}Lt.VERSION="2.0.7",Lt.defaults={domEvents:!1,touchAction:qi,enable:!0,inputTarget:null,inputClass:null,preset:[[Us,{enable:!1}],[Ys,{enable:!1},["rotate"]],[$s,{direction:j}],[Je,{direction:j},["swipe"]],[ts],[ts,{event:"doubletap",taps:2},["tap"]],[Gs]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Ec=1,Wi=2;function qs(u,d){this.options=S({},Lt.defaults,d||{}),this.options.inputTarget=this.options.inputTarget||u,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=u,this.input=ic(this),this.touchAction=new Xs(this,this.options.touchAction),Qi(this,!0),y(this.options.recognizers,function(w){var k=this.add(new w[0](w[1]));w[2]&&k.recognizeWith(w[2]),w[3]&&k.requireFailure(w[3])},this)}qs.prototype={set:function(u){return S(this.options,u),u.touchAction&&this.touchAction.update(),u.inputTarget&&(this.input.destroy(),this.input.target=u.inputTarget,this.input.init()),this},stop:function(u){this.session.stopped=u?Wi:Ec},recognize:function(u){var d=this.session;if(!d.stopped){this.touchAction.preventDefaults(u);var w,k=this.recognizers,M=d.curRecognizer;(!M||M&&M.state&Ot)&&(M=d.curRecognizer=null);for(var z=0;z<k.length;)w=k[z],d.stopped!==Wi&&(!M||w==M||w.canRecognizeWith(M))?w.recognize(u):w.reset(),!M&&w.state&(xt|ne|Xt)&&(M=d.curRecognizer=w),z++}},get:function(u){if(u instanceof Rt)return u;for(var d=this.recognizers,w=0;w<d.length;w++)if(d[w].options.event==u)return d[w];return null},add:function(u){if(b(u,"add",this))return this;var d=this.get(u.options.event);return d&&this.remove(d),this.recognizers.push(u),u.manager=this,this.touchAction.update(),u},remove:function(u){if(b(u,"remove",this))return this;if(u=this.get(u),u){var d=this.recognizers,w=B(d,u);w!==-1&&(d.splice(w,1),this.touchAction.update())}return this},on:function(u,d){if(u!==i&&d!==i){var w=this.handlers;return y(L(u),function(k){w[k]=w[k]||[],w[k].push(d)}),this}},off:function(u,d){if(u!==i){var w=this.handlers;return y(L(u),function(k){d?w[k]&&w[k].splice(B(w[k],d),1):delete w[k]}),this}},emit:function(u,d){this.options.domEvents&&Ac(u,d);var w=this.handlers[u]&&this.handlers[u].slice();if(!(!w||!w.length)){d.type=u,d.preventDefault=function(){d.srcEvent.preventDefault()};for(var k=0;k<w.length;)w[k](d),k++}},destroy:function(){this.element&&Qi(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Qi(u,d){var w=u.element;if(w.style){var k;y(u.options.cssProps,function(M,z){k=X(w.style,z),d?(u.oldCssProps[k]=w.style[k],w.style[k]=M):w.style[k]=u.oldCssProps[k]||""}),d||(u.oldCssProps={})}}function Ac(u,d){var w=e.createEvent("Event");w.initEvent(u,!0,!0),w.gesture=d,d.target.dispatchEvent(w)}S(Lt,{INPUT_START:G,INPUT_MOVE:yt,INPUT_END:q,INPUT_CANCEL:Q,STATE_POSSIBLE:Qe,STATE_BEGAN:xt,STATE_CHANGED:ne,STATE_ENDED:Xt,STATE_RECOGNIZED:Ot,STATE_CANCELLED:ye,STATE_FAILED:Mt,DIRECTION_NONE:se,DIRECTION_LEFT:Ut,DIRECTION_RIGHT:$t,DIRECTION_UP:Bt,DIRECTION_DOWN:A,DIRECTION_HORIZONTAL:j,DIRECTION_VERTICAL:qt,DIRECTION_ALL:zi,Manager:qs,Input:_t,TouchAction:Xs,TouchInput:Ze,MouseInput:He,PointerEventInput:Ds,TouchMouseInput:Vs,SingleTouchInput:Xi,Recognizer:Rt,AttrRecognizer:Pt,Tap:ts,Pan:Je,Swipe:$s,Pinch:Ys,Rotate:Us,Press:Gs,on:x,off:I,each:y,merge:T,extend:P,assign:S,inherit:C,bindFn:_,prefixed:X});var Mc=typeof t<"u"?t:typeof self<"u"?self:{};Mc.Hammer=Lt,typeof i=="function"&&i.amd?i(function(){return Lt}):n.exports?n.exports=Lt:t[s]=Lt})(window,document,"Hammer")})(In);var to=In.exports;const eo=wr(to);async function Fn(n,t){return new Promise(e=>{const s=new ResizeObserver(i=>{const o=i[0].contentRect;t(o),e(()=>{s.unobserve(n)})});s.observe(n)})}function so(n,t){return no(n,t)}function no(n,t){const e=n.eb,s=o=>{e.on("pointerMove",r),e.on("pointerUp",i),e.on("pointerCancel",i),t?.start?.(o)},i=o=>{e.off("pointerMove",r),e.off("pointerUp",i),e.off("pointerCancel",i),t?.end?.(o)},r=o=>{t?.move?.(o)};return e.on("pointerDown",s),()=>e.off("pointerDown",s)}function io(n=document.documentElement){const t=new be,e=new eo(n);let s=[];const i=Jr(),r=i.mousePoint,o=A=>{t.emit("mouseDown",A)},a=A=>{t.emit("mouseUp",A)},c=A=>{r.isDown||i.setCurrentMousePoint(he(A,n)),t.emit("mouseMove",A)},l=A=>{t.emit("mouseOver",A)},h=A=>{t.emit("mouseOut",A)},g=A=>{t.emit("mouseEnter",A)},b=A=>{t.emit("mouseLeave",A)},y=A=>{t.emit("mouseClick",A)},m=A=>{t.emit("mouseDoubleClick",A)},S=A=>{t.emit("mouseWheel",A)},P=A=>{t.emit("mouseContextMenu",A)},T=A=>{t.emit("touchStart",A)},C=A=>{t.emit("touchEnd",A)},_=A=>{t.emit("touchCancel",A)},p=A=>{const j=A.changedTouches[0];r.isDown||i.setCurrentMousePoint(he(j,n)),t.emit("touchMove",A)},v=A=>{t.emit("pointerDown",A)},x=A=>{t.emit("pointerUp",A)},I=A=>{t.emit("pointerCancel",A)},O=A=>{t.emit("pointerMove",A)},R=A=>{t.emit("pan",A)},L=A=>{t.emit("panStart",A)},B=A=>{t.emit("panMove",A)},$=A=>{t.emit("panEnd",A)},D=A=>{t.emit("panCancel",A)},X=A=>{t.emit("panLeft",A)},W=A=>{t.emit("panRight",A)},ot=A=>{t.emit("panUp",A)},pt=A=>{t.emit("panDown",A)},Tt=A=>{t.emit("pinch",A)},gt=A=>{t.emit("pinchin",A)},Ct=A=>{t.emit("pinchout",A)},St=A=>{t.emit("press",A)},it=A=>{t.emit("rotate",A)},N=A=>{t.emit("swipe",A)},E=A=>{t.emit("swipeLeft",A)},ht=A=>{t.emit("swipeRight",A)},tt=A=>{t.emit("swipeUp",A)},G=A=>{t.emit("swipeDown",A)},yt=A=>{t.emit("tap",A)},q=A=>{!A.target||n==A.target||n.contains(A.target)||t.emit("tapOutSide",A)},Q=A=>{t.emit("transitionstart",A)},se=A=>{t.emit("transitionend",A)},Ut=A=>{t.emit("animationstart",A)},$t=A=>{t.emit("animationend",A)};let Bt={...n.getBoundingClientRect(),width:n.offsetWidth,height:n.offsetHeight};return{el:n,get rect(){return Bt},mousePoint:r,eb:t,start:async function(){s.push(U(n,"mousedown",o)),s.push(U(n,"mouseup",a)),s.push(U(n,"mousemove",c)),s.push(U(n,"mouseover",l)),s.push(U(n,"mouseout",h)),s.push(U(n,"mouseenter",g)),s.push(U(n,"mouseleave",b)),s.push(U(n,"click",y)),s.push(U(n,"dblclick",m)),s.push(U(n,"onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",S)),s.push(U(n,"contextmenu",P)),s.push(U(n,"touchstart",T)),s.push(U(n,"touchend",C)),s.push(U(n,"touchcancel",_)),s.push(U(n,"touchmove",p)),s.push(U(n,"pointerdown",v)),s.push(U(n,"pointerup",x)),s.push(U(n,"pointercancel",I)),s.push(U(n,"pointermove",O)),e.on("pan",R),e.on("panstart",L),e.on("panmove",B),e.on("panend",$),e.on("pancancel",D),e.on("panleft",X),e.on("panright",W),e.on("panup",ot),e.on("pandown",pt),e.on("pinch",Tt),e.on("pinchin",gt),e.on("pinchout",Ct),e.on("press",St),e.on("rotate",it),e.on("swipe",N),e.on("swipeleft",E),e.on("swiperight",ht),e.on("swipeup",tt),e.on("swipedown",G),e.on("tap",yt),s.push(U(document,"pointerdown",q)),s.push(U(n,"transitionstart",Q)),s.push(U(n,"transitionend",se)),s.push(U(n,"animationstart",Ut)),s.push(U(n,"animationend",$t));const A=await Fn(n,j=>{Bt=j,t.emit("resize",j)});s.push(A),s.push(so(this,{start:j=>{i.setStartMousePoint(he(j,n),!0)},move:j=>{i.setCurrentMousePoint(he(j,n))},end:j=>{i.setCurrentMousePoint(he(j,n),!1)}}))},end:()=>{t.removeAllListeners(),s.forEach(A=>A()),s=[],e.off("pan",R),e.off("panstart",L),e.off("panmove",B),e.off("panend",$),e.off("pancancel",D),e.off("panleft",X),e.off("panright",W),e.off("panup",ot),e.off("pandown",pt),e.off("pinch",Tt),e.off("pinchin",gt),e.off("pinchout",Ct),e.off("press",St),e.off("rotate",it),e.off("swipe",N),e.off("swipeleft",E),e.off("swiperight",ht),e.off("swipeup",tt),e.off("swipedown",G),e.off("tap",yt)}}}function ro(n="(prefers-color-scheme: dark)"){const t=window.matchMedia(n),e=sn(t.matches);return U(t,"change",s=>{e.value=s.matches}),e}const bs=Sr("__yz_theme__");if(!bs.value){const n=ro("(prefers-color-scheme: dark)");bs.value=n.value?"dark":"light"}is(()=>{switch(bs.value){case"dark":document.documentElement.classList.add("dark"),ze(document.documentElement,"data-theme","dark");break;default:document.documentElement.classList.remove("dark"),ze(document.documentElement,"data-theme","light");break}});function vs(n,t=""){return getComputedStyle(document.documentElement).getPropertyValue(n)||t}function oo(n){document.getElementsByTagName("title")[0].innerText=n,document.title=n}let zn=!1;function ao(){zn||(zn=!0,Zr(`
4
17
  :root {
5
18
  --sat:env(safe-area-inset-top, 0px);
6
19
  --sar:env(safe-area-inset-right, 0px);
@@ -13,11 +26,5 @@ var ZYZGroupCoreVue=function(Y,c,pe,le){"use strict";function ho(){return c.getC
13
26
  --sab:env(safe-area-inset-bottom, 0px);
14
27
  --sal:env(safe-area-inset-left, 0px);
15
28
  }
16
- `))}const _e=dt(),Xo={onTop:e=>(Xe(),setTimeout(()=>{const t=getComputedStyle(document.documentElement);_e.emit("top",t.getPropertyValue("--sat"))},1),_e.on("top",e)),onRight:e=>(Xe(),setTimeout(()=>{const t=getComputedStyle(document.documentElement);_e.emit("right",t.getPropertyValue("--sar"))},1),_e.on("right",e)),onBottom:e=>(Xe(),setTimeout(()=>{const t=getComputedStyle(document.documentElement);_e.emit("bottom",t.getPropertyValue("--sab"))},1),_e.on("bottom",e)),onLeft:e=>(Xe(),setTimeout(()=>{const t=getComputedStyle(document.documentElement);_e.emit("left",t.getPropertyValue("--sal"))},1),_e.on("left",e))};function qo(e){const t=dt(),o=new ResizeObserver(n=>{const r=n[0],{width:s,height:a}=r.contentRect;t.emit("resize",s,a)});return o.observe(e),{on:n=>(t.on("resize",n),()=>{t.off("resize",n)}),destroy:()=>{o.unobserve(e)}}}function Kt(e,t,o,n,r){const s=t/o;let a=0,d=0;switch(e){case"aspectFit":s>=1?(a=n,d=a/s,d>r&&(d=r,a=d*s)):(d=r,a=d*s,a>n&&(a=n,d=a/s));break;case"aspectFill":s>=1?(d=r,a=d*s):(a=n,d=a/s);break;case"widthFix":a=n,d=a/s;break;case"heightFix":d=r,a=d*s;break;case"scaleToFill":default:a=n,d=r;break}return{width:a,height:d}}function Wo(e){try{const t=document.createElement("canvas"),o=t.getContext("2d");return t.width=e.width,t.height=e.height,o.drawImage(e,0,0,t.width,t.height),o.getImageData(0,0,t.width,t.height)}catch{return new ImageData(e.width,e.height)}}const Qo=getComputedStyle(document.documentElement);function L(e){return Qo.getPropertyValue(e)}const ue={colorPrimary:L("--color-primary")||"#5A82F0",colorRed:L("--color-red")||"#FA503C",colorOrange:L("--color-orange")||"#fa8c00",colorYellow:L("--color-yellow")||"#fadc32",colorGreen:L("--color-green")||"#00c878",colorBlue:L("--color-blue")||"#00b4fa",colorPurple:L("--color-purple")||"#6464fa",colorBlack:L("--color-black")||"#001428",colorGray00:L("--color-gray-00")||"#000000",colorGray33:L("--color-gray-33")||"#333333",colorGray66:L("--color-gray-66")||"#666666",colorGray99:L("--color-gray-99")||"#999999",colorGrayCC:L("--color-gray-cc")||"#cccccc",colorGrayDD:L("--color-gray-dd")||"#dddddd",colorGrayE6:L("--color-gray-e6")||"#e6e6e6",colorGrayEE:L("--color-gray-ee")||"#eeeeee",colorGrayEF:L("--color-gray-ef")||"#efefef",colorGrayF5:L("--color-gray-f5")||"#f5f5f5",colorGrayFF:L("--color-gray-ff")||"#ffffff",fontLineHeight:L("--font-line-height")||"1.4",fontSize32:L("--font-size-32")||"32px",fontSize24:L("--font-size-24")||"24px",fontSize22:L("--font-size-22")||"22px",fontSize20:L("--font-size-20")||"20px",fontSize18:L("--font-size-18")||"18px",fontSize16:L("--font-size-16")||"16px",fontSize14:L("--font-size-14")||"14px",fontSize12:L("--font-size-12")||"12px",fontSize10:L("--font-size-10")||"10px",d4:L("--distance-4")||"4px",d8:L("--distance-8")||"8px",d12:L("--distance-12")||"12px",d16:L("--distance-16")||"16px",d20:L("--distance-20")||"20px",d32:L("--distance-32")||"32px",d40:L("--distance-40")||"40px",d44:L("--distance-44")||"44px"};class ne{__color={r:0,g:0,b:0,a:1};constructor(t,o){t&&this.setColor(t),typeof o=="number"&&this.setAlpha(o)}get color(){return this.__color}set color(t){this.__color=yt(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=j(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=j(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=j(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=j(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,o,n){return this.r=t,this.g=o,this.b=n,this}setRGBA(t,o,n,r){return this.r=t,this.g=o,this.b=n,this.a=r,this}get hex(){return(this.r<<16)+(this.g<<8)+this.b}toString(){if(this.a===1){const t="000000"+this.hex.toString(16);return"#"+t.slice(t.length-6)}else return`rgba(${this.r},${this.g},${this.b},${ko(this.a,6)})`}clone(){return new ne(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,o="#000000",n="#ffffff"){if(t)return new ne(this.r*.299+this.g*.587+this.b*.114>186?o:n);{const r=this.clone();return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,r}}lighten(t){t=j(Math.abs(t),0,1);let{r:o,g:n,b:r}=this.color;return o+=(255-o)*t,n+=(255-n)*t,r+=(255-r)*t,new ne().setRGBA(o,n,r,this.color.a)}darken(t){t=j(Math.abs(t),0,1);let{r:o,g:n,b:r}=this.color;return o=o*(1-t),n=n*(1-t),r=r*(1-t),new ne().setRGBA(o,n,r,this.color.a)}static gradient(t,o,n){try{const r=yt(t),s=yt(o);return new ne().setRGB((s.r-r.r)*n+r.r,(s.g-r.g)*n+r.g,(s.b-r.b)*n+r.b)}catch{return new ne(o)}}static random(){return new ne(Math.random()*16777215)}get hsv(){const{r:t,g:o,b:n,a:r}=this.color,s=Math.max(t,o,n),a=Math.min(t,o,n),d=s-a;let u;return t===s?u=(o-n)/d:o===s?u=2+(n-t)/d:u=4+(t-o)/d,u/=6,u<0&&(u+=1),{h:d==0?0:u*360,s:s===0?0:d/s,v:s/255,a:r}}set h(t){const o=this.hsv;o.h=j(t,0,360),this.setColor(o)}get h(){return this.hsv.h}set s(t){const o=this.hsv;o.s=j(t,0,1),this.setColor(o)}get s(){return this.hsv.s}set v(t){const o=this.hsv;o.v=j(t,0,1),this.setColor(o)}get v(){return this.hsv.v}}function qe(e,t){return new ne(e,t)}function yt(e){const t=Object.prototype.hasOwnProperty.call(e,"a")?j(e.a,0,1):1;if(Object.prototype.hasOwnProperty.call(e,"r")&&Object.prototype.hasOwnProperty.call(e,"g")&&Object.prototype.hasOwnProperty.call(e,"b"))return e.r=j(Math.round(e.r),0,255),e.g=j(Math.round(e.g),0,255),e.b=j(Math.round(e.b),0,255),e.a=t,e;if(Object.prototype.hasOwnProperty.call(e,"h")&&Object.prototype.hasOwnProperty.call(e,"s")&&Object.prototype.hasOwnProperty.call(e,"v")){const n=j(e.h,0,360),r=j(e.s,0,1),s=j(e.v,0,1),a=Math.floor(n/60)%6,d=n/60-Math.floor(n/60),u=s*(1-r),h=s*(1-d*r),p=s*(1-(1-d)*r),b=[[s,p,u],[h,s,u],[u,s,p],[u,h,s],[p,u,s],[s,u,h]][a];return{r:Math.round(b[0]*255),g:Math.round(b[1]*255),b:Math.round(b[2]*255),a:t}}const o={r:0,g:0,b:0,a:t};if(typeof e=="number")e<Math.pow(2,24)?(o.r=e>>16&255,o.g=e>>8&255,o.b=e&255):(o.r=e>>24&255,o.g=e>>16&255,o.b=e>>8&255,o.a=(e&255)/255);else if(typeof e=="string"){const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(e);if(n)o.r=parseInt(n[1]),o.g=parseInt(n[2]),o.b=parseInt(n[3]),n[4]&&(o.a=parseFloat(n[4]));else{let r=e.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);r?(o.r=parseInt(`${r[1]}${r[1]}`,16),o.g=parseInt(`${r[2]}${r[2]}`,16),o.b=parseInt(`${r[3]}${r[3]}`,16)):(r=e.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(o.r=parseInt(r[1],16),o.g=parseInt(r[2],16),o.b=parseInt(r[3],16)):(r=e.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(o.r=parseInt(r[1],16),o.g=parseInt(r[2],16),o.b=parseInt(r[3],16),o.a=parseInt(r[4],16)/255):e==="none"&&(o.a=0)))}}else throw new Error("parseColor 不支持的颜色解析:"+e);return o.r=j(o.r,0,255),o.g=j(o.g,0,255),o.b=j(o.b,0,255),o.a=j(o.a,0,1),o}const ke={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};ke.buttonColor=new ne(ke.saveRowColor).darken(.1).toString(),ke.borderColor=new ne(ke.backgroundColor).lighten(.07).toString(),ke.inputColor=new ne(ke.backgroundColor).lighten(.085).toString();var Jt={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
17
- * http://hammerjs.github.io/
18
- *
19
- * Copyright (c) 2016 Jorik Tangelder;
20
- * Licensed under the MIT license */(function(e){(function(t,o,n,r){var s=["","webkit","Moz","MS","ms","o"],a=o.createElement("div"),d="function",u=Math.round,h=Math.abs,p=Date.now;function b(i,l,f){return setTimeout(B(i,f),l)}function C(i,l,f){return Array.isArray(i)?(S(i,f[l],f),!0):!1}function S(i,l,f){var m;if(i)if(i.forEach)i.forEach(l,f);else if(i.length!==r)for(m=0;m<i.length;)l.call(f,i[m],m,i),m++;else for(m in i)i.hasOwnProperty(m)&&l.call(f,i[m],m,i)}function y(i,l,f){var m="DEPRECATED METHOD: "+l+`
21
- `+f+` AT
22
- `;return function(){var T=new Error("get-stack-trace"),P=T&&T.stack?T.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",N=t.console&&(t.console.warn||t.console.log);return N&&N.call(t.console,m,P),i.apply(this,arguments)}}var w;typeof Object.assign!="function"?w=function(l){if(l===r||l===null)throw new TypeError("Cannot convert undefined or null to object");for(var f=Object(l),m=1;m<arguments.length;m++){var T=arguments[m];if(T!==r&&T!==null)for(var P in T)T.hasOwnProperty(P)&&(f[P]=T[P])}return f}:w=Object.assign;var E=y(function(l,f,m){for(var T=Object.keys(f),P=0;P<T.length;)(!m||m&&l[T[P]]===r)&&(l[T[P]]=f[T[P]]),P++;return l},"extend","Use `assign`."),R=y(function(l,f){return E(l,f,!0)},"merge","Use `assign`.");function F(i,l,f){var m=l.prototype,T;T=i.prototype=Object.create(m),T.constructor=i,T._super=m,f&&w(T,f)}function B(i,l){return function(){return i.apply(l,arguments)}}function k(i,l){return typeof i==d?i.apply(l&&l[0]||r,l):i}function D(i,l){return i===r?l:i}function I(i,l,f){S(A(l),function(m){i.addEventListener(m,f,!1)})}function x(i,l,f){S(A(l),function(m){i.removeEventListener(m,f,!1)})}function M(i,l){for(;i;){if(i==l)return!0;i=i.parentNode}return!1}function U(i,l){return i.indexOf(l)>-1}function A(i){return i.trim().split(/\s+/g)}function Z(i,l,f){if(i.indexOf&&!f)return i.indexOf(l);for(var m=0;m<i.length;){if(f&&i[m][f]==l||!f&&i[m]===l)return m;m++}return-1}function oe(i){return Array.prototype.slice.call(i,0)}function H(i,l,f){for(var m=[],T=[],P=0;P<i.length;){var N=l?i[P][l]:i[P];Z(T,N)<0&&m.push(i[P]),T[P]=N,P++}return f&&(l?m=m.sort(function(Q,K){return Q[l]>K[l]}):m=m.sort()),m}function $(i,l){for(var f,m,T=l[0].toUpperCase()+l.slice(1),P=0;P<s.length;){if(f=s[P],m=f?f+T:l,m in i)return m;P++}return r}var G=1;function ve(){return G++}function Se(i){var l=i.ownerDocument||i;return l.defaultView||l.parentWindow||t}var Le=/mobile|tablet|ip(ad|hone|od)|android/i,Pe="ontouchstart"in t,Ne=$(t,"PointerEvent")!==r,xe=Pe&&Le.test(navigator.userAgent),q="touch",O="pen",v="mouse",te="kinect",W=25,V=1,re=2,z=4,g=8,nt=1,Ue=2,ze=4,$e=8,He=16,he=Ue|ze,Ie=$e|He,Xn=he|Ie,qn=["x","y"],ot=["clientX","clientY"];function ie(i,l){var f=this;this.manager=i,this.callback=l,this.element=i.element,this.target=i.options.inputTarget,this.domHandler=function(m){k(i.options.enable,[i])&&f.handler(m)},this.init()}ie.prototype={handler:function(){},init:function(){this.evEl&&I(this.element,this.evEl,this.domHandler),this.evTarget&&I(this.target,this.evTarget,this.domHandler),this.evWin&&I(Se(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(Se(this.element),this.evWin,this.domHandler)}};function Gi(i){var l,f=i.options.inputClass;return f?l=f:Ne?l=kt:xe?l=st:Pe?l=Ot:l=it,new l(i,Xi)}function Xi(i,l,f){var m=f.pointers.length,T=f.changedPointers.length,P=l&V&&m-T===0,N=l&(z|g)&&m-T===0;f.isFirst=!!P,f.isFinal=!!N,P&&(i.session={}),f.eventType=l,qi(i,f),i.emit("hammer.input",f),i.recognize(f),i.session.prevInput=f}function qi(i,l){var f=i.session,m=l.pointers,T=m.length;f.firstInput||(f.firstInput=Wn(l)),T>1&&!f.firstMultiple?f.firstMultiple=Wn(l):T===1&&(f.firstMultiple=!1);var P=f.firstInput,N=f.firstMultiple,X=N?N.center:P.center,Q=l.center=Qn(m);l.timeStamp=p(),l.deltaTime=l.timeStamp-P.timeStamp,l.angle=Ft(X,Q),l.distance=rt(X,Q),Wi(f,l),l.offsetDirection=Kn(l.deltaX,l.deltaY);var K=Zn(l.deltaTime,l.deltaX,l.deltaY);l.overallVelocityX=K.x,l.overallVelocityY=K.y,l.overallVelocity=h(K.x)>h(K.y)?K.x:K.y,l.scale=N?Ki(N.pointers,m):1,l.rotation=N?Zi(N.pointers,m):0,l.maxPointers=f.prevInput?l.pointers.length>f.prevInput.maxPointers?l.pointers.length:f.prevInput.maxPointers:l.pointers.length,Qi(f,l);var me=i.element;M(l.srcEvent.target,me)&&(me=l.srcEvent.target),l.target=me}function Wi(i,l){var f=l.center,m=i.offsetDelta||{},T=i.prevDelta||{},P=i.prevInput||{};(l.eventType===V||P.eventType===z)&&(T=i.prevDelta={x:P.deltaX||0,y:P.deltaY||0},m=i.offsetDelta={x:f.x,y:f.y}),l.deltaX=T.x+(f.x-m.x),l.deltaY=T.y+(f.y-m.y)}function Qi(i,l){var f=i.lastInterval||l,m=l.timeStamp-f.timeStamp,T,P,N,X;if(l.eventType!=g&&(m>W||f.velocity===r)){var Q=l.deltaX-f.deltaX,K=l.deltaY-f.deltaY,me=Zn(m,Q,K);P=me.x,N=me.y,T=h(me.x)>h(me.y)?me.x:me.y,X=Kn(Q,K),i.lastInterval=l}else T=f.velocity,P=f.velocityX,N=f.velocityY,X=f.direction;l.velocity=T,l.velocityX=P,l.velocityY=N,l.direction=X}function Wn(i){for(var l=[],f=0;f<i.pointers.length;)l[f]={clientX:u(i.pointers[f].clientX),clientY:u(i.pointers[f].clientY)},f++;return{timeStamp:p(),pointers:l,center:Qn(l),deltaX:i.deltaX,deltaY:i.deltaY}}function Qn(i){var l=i.length;if(l===1)return{x:u(i[0].clientX),y:u(i[0].clientY)};for(var f=0,m=0,T=0;T<l;)f+=i[T].clientX,m+=i[T].clientY,T++;return{x:u(f/l),y:u(m/l)}}function Zn(i,l,f){return{x:l/i||0,y:f/i||0}}function Kn(i,l){return i===l?nt:h(i)>=h(l)?i<0?Ue:ze:l<0?$e:He}function rt(i,l,f){f||(f=qn);var m=l[f[0]]-i[f[0]],T=l[f[1]]-i[f[1]];return Math.sqrt(m*m+T*T)}function Ft(i,l,f){f||(f=qn);var m=l[f[0]]-i[f[0]],T=l[f[1]]-i[f[1]];return Math.atan2(T,m)*180/Math.PI}function Zi(i,l){return Ft(l[1],l[0],ot)+Ft(i[1],i[0],ot)}function Ki(i,l){return rt(l[0],l[1],ot)/rt(i[0],i[1],ot)}var Ji={mousedown:V,mousemove:re,mouseup:z},es="mousedown",ts="mousemove mouseup";function it(){this.evEl=es,this.evWin=ts,this.pressed=!1,ie.apply(this,arguments)}F(it,ie,{handler:function(l){var f=Ji[l.type];f&V&&l.button===0&&(this.pressed=!0),f&re&&l.which!==1&&(f=z),this.pressed&&(f&z&&(this.pressed=!1),this.callback(this.manager,f,{pointers:[l],changedPointers:[l],pointerType:v,srcEvent:l}))}});var ns={pointerdown:V,pointermove:re,pointerup:z,pointercancel:g,pointerout:g},os={2:q,3:O,4:v,5:te},Jn="pointerdown",eo="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Jn="MSPointerDown",eo="MSPointerMove MSPointerUp MSPointerCancel");function kt(){this.evEl=Jn,this.evWin=eo,ie.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}F(kt,ie,{handler:function(l){var f=this.store,m=!1,T=l.type.toLowerCase().replace("ms",""),P=ns[T],N=os[l.pointerType]||l.pointerType,X=N==q,Q=Z(f,l.pointerId,"pointerId");P&V&&(l.button===0||X)?Q<0&&(f.push(l),Q=f.length-1):P&(z|g)&&(m=!0),!(Q<0)&&(f[Q]=l,this.callback(this.manager,P,{pointers:f,changedPointers:[l],pointerType:N,srcEvent:l}),m&&f.splice(Q,1))}});var rs={touchstart:V,touchmove:re,touchend:z,touchcancel:g},is="touchstart",ss="touchstart touchmove touchend touchcancel";function to(){this.evTarget=is,this.evWin=ss,this.started=!1,ie.apply(this,arguments)}F(to,ie,{handler:function(l){var f=rs[l.type];if(f===V&&(this.started=!0),!!this.started){var m=as.call(this,l,f);f&(z|g)&&m[0].length-m[1].length===0&&(this.started=!1),this.callback(this.manager,f,{pointers:m[0],changedPointers:m[1],pointerType:q,srcEvent:l})}}});function as(i,l){var f=oe(i.touches),m=oe(i.changedTouches);return l&(z|g)&&(f=H(f.concat(m),"identifier",!0)),[f,m]}var cs={touchstart:V,touchmove:re,touchend:z,touchcancel:g},ls="touchstart touchmove touchend touchcancel";function st(){this.evTarget=ls,this.targetIds={},ie.apply(this,arguments)}F(st,ie,{handler:function(l){var f=cs[l.type],m=us.call(this,l,f);m&&this.callback(this.manager,f,{pointers:m[0],changedPointers:m[1],pointerType:q,srcEvent:l})}});function us(i,l){var f=oe(i.touches),m=this.targetIds;if(l&(V|re)&&f.length===1)return m[f[0].identifier]=!0,[f,f];var T,P,N=oe(i.changedTouches),X=[],Q=this.target;if(P=f.filter(function(K){return M(K.target,Q)}),l===V)for(T=0;T<P.length;)m[P[T].identifier]=!0,T++;for(T=0;T<N.length;)m[N[T].identifier]&&X.push(N[T]),l&(z|g)&&delete m[N[T].identifier],T++;if(X.length)return[H(P.concat(X),"identifier",!0),X]}var fs=2500,no=25;function Ot(){ie.apply(this,arguments);var i=B(this.handler,this);this.touch=new st(this.manager,i),this.mouse=new it(this.manager,i),this.primaryTouch=null,this.lastTouches=[]}F(Ot,ie,{handler:function(l,f,m){var T=m.pointerType==q,P=m.pointerType==v;if(!(P&&m.sourceCapabilities&&m.sourceCapabilities.firesTouchEvents)){if(T)hs.call(this,f,m);else if(P&&ds.call(this,m))return;this.callback(l,f,m)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function hs(i,l){i&V?(this.primaryTouch=l.changedPointers[0].identifier,oo.call(this,l)):i&(z|g)&&oo.call(this,l)}function oo(i){var l=i.changedPointers[0];if(l.identifier===this.primaryTouch){var f={x:l.clientX,y:l.clientY};this.lastTouches.push(f);var m=this.lastTouches,T=function(){var P=m.indexOf(f);P>-1&&m.splice(P,1)};setTimeout(T,fs)}}function ds(i){for(var l=i.srcEvent.clientX,f=i.srcEvent.clientY,m=0;m<this.lastTouches.length;m++){var T=this.lastTouches[m],P=Math.abs(l-T.x),N=Math.abs(f-T.y);if(P<=no&&N<=no)return!0}return!1}var ro=$(a.style,"touchAction"),io=ro!==r,so="compute",ao="auto",Rt="manipulation",Fe="none",je="pan-x",Ye="pan-y",at=ps();function Lt(i,l){this.manager=i,this.set(l)}Lt.prototype={set:function(i){i==so&&(i=this.compute()),io&&this.manager.element.style&&at[i]&&(this.manager.element.style[ro]=i),this.actions=i.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var i=[];return S(this.manager.recognizers,function(l){k(l.options.enable,[l])&&(i=i.concat(l.getTouchAction()))}),ms(i.join(" "))},preventDefaults:function(i){var l=i.srcEvent,f=i.offsetDirection;if(this.manager.session.prevented){l.preventDefault();return}var m=this.actions,T=U(m,Fe)&&!at[Fe],P=U(m,Ye)&&!at[Ye],N=U(m,je)&&!at[je];if(T){var X=i.pointers.length===1,Q=i.distance<2,K=i.deltaTime<250;if(X&&Q&&K)return}if(!(N&&P)&&(T||P&&f&he||N&&f&Ie))return this.preventSrc(l)},preventSrc:function(i){this.manager.session.prevented=!0,i.preventDefault()}};function ms(i){if(U(i,Fe))return Fe;var l=U(i,je),f=U(i,Ye);return l&&f?Fe:l||f?l?je:Ye:U(i,Rt)?Rt:ao}function ps(){if(!io)return!1;var i={},l=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(f){i[f]=l?t.CSS.supports("touch-action",f):!0}),i}var ct=1,se=2,Ae=4,Ce=8,Te=Ce,Ge=16,de=32;function be(i){this.options=w({},this.defaults,i||{}),this.id=ve(),this.manager=null,this.options.enable=D(this.options.enable,!0),this.state=ct,this.simultaneous={},this.requireFail=[]}be.prototype={defaults:{},set:function(i){return w(this.options,i),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(i){if(C(i,"recognizeWith",this))return this;var l=this.simultaneous;return i=lt(i,this),l[i.id]||(l[i.id]=i,i.recognizeWith(this)),this},dropRecognizeWith:function(i){return C(i,"dropRecognizeWith",this)?this:(i=lt(i,this),delete this.simultaneous[i.id],this)},requireFailure:function(i){if(C(i,"requireFailure",this))return this;var l=this.requireFail;return i=lt(i,this),Z(l,i)===-1&&(l.push(i),i.requireFailure(this)),this},dropRequireFailure:function(i){if(C(i,"dropRequireFailure",this))return this;i=lt(i,this);var l=Z(this.requireFail,i);return l>-1&&this.requireFail.splice(l,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(i){return!!this.simultaneous[i.id]},emit:function(i){var l=this,f=this.state;function m(T){l.manager.emit(T,i)}f<Ce&&m(l.options.event+co(f)),m(l.options.event),i.additionalEvent&&m(i.additionalEvent),f>=Ce&&m(l.options.event+co(f))},tryEmit:function(i){if(this.canEmit())return this.emit(i);this.state=de},canEmit:function(){for(var i=0;i<this.requireFail.length;){if(!(this.requireFail[i].state&(de|ct)))return!1;i++}return!0},recognize:function(i){var l=w({},i);if(!k(this.options.enable,[this,l])){this.reset(),this.state=de;return}this.state&(Te|Ge|de)&&(this.state=ct),this.state=this.process(l),this.state&(se|Ae|Ce|Ge)&&this.tryEmit(l)},process:function(i){},getTouchAction:function(){},reset:function(){}};function co(i){return i&Ge?"cancel":i&Ce?"end":i&Ae?"move":i&se?"start":""}function lo(i){return i==He?"down":i==$e?"up":i==Ue?"left":i==ze?"right":""}function lt(i,l){var f=l.manager;return f?f.get(i):i}function ce(){be.apply(this,arguments)}F(ce,be,{defaults:{pointers:1},attrTest:function(i){var l=this.options.pointers;return l===0||i.pointers.length===l},process:function(i){var l=this.state,f=i.eventType,m=l&(se|Ae),T=this.attrTest(i);return m&&(f&g||!T)?l|Ge:m||T?f&z?l|Ce:l&se?l|Ae:se:de}});function ut(){ce.apply(this,arguments),this.pX=null,this.pY=null}F(ut,ce,{defaults:{event:"pan",threshold:10,pointers:1,direction:Xn},getTouchAction:function(){var i=this.options.direction,l=[];return i&he&&l.push(Ye),i&Ie&&l.push(je),l},directionTest:function(i){var l=this.options,f=!0,m=i.distance,T=i.direction,P=i.deltaX,N=i.deltaY;return T&l.direction||(l.direction&he?(T=P===0?nt:P<0?Ue:ze,f=P!=this.pX,m=Math.abs(i.deltaX)):(T=N===0?nt:N<0?$e:He,f=N!=this.pY,m=Math.abs(i.deltaY))),i.direction=T,f&&m>l.threshold&&T&l.direction},attrTest:function(i){return ce.prototype.attrTest.call(this,i)&&(this.state&se||!(this.state&se)&&this.directionTest(i))},emit:function(i){this.pX=i.deltaX,this.pY=i.deltaY;var l=lo(i.direction);l&&(i.additionalEvent=this.options.event+l),this._super.emit.call(this,i)}});function Nt(){ce.apply(this,arguments)}F(Nt,ce,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Fe]},attrTest:function(i){return this._super.attrTest.call(this,i)&&(Math.abs(i.scale-1)>this.options.threshold||this.state&se)},emit:function(i){if(i.scale!==1){var l=i.scale<1?"in":"out";i.additionalEvent=this.options.event+l}this._super.emit.call(this,i)}});function xt(){be.apply(this,arguments),this._timer=null,this._input=null}F(xt,be,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ao]},process:function(i){var l=this.options,f=i.pointers.length===l.pointers,m=i.distance<l.threshold,T=i.deltaTime>l.time;if(this._input=i,!m||!f||i.eventType&(z|g)&&!T)this.reset();else if(i.eventType&V)this.reset(),this._timer=b(function(){this.state=Te,this.tryEmit()},l.time,this);else if(i.eventType&z)return Te;return de},reset:function(){clearTimeout(this._timer)},emit:function(i){this.state===Te&&(i&&i.eventType&z?this.manager.emit(this.options.event+"up",i):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}});function At(){ce.apply(this,arguments)}F(At,ce,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Fe]},attrTest:function(i){return this._super.attrTest.call(this,i)&&(Math.abs(i.rotation)>this.options.threshold||this.state&se)}});function Mt(){ce.apply(this,arguments)}F(Mt,ce,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:he|Ie,pointers:1},getTouchAction:function(){return ut.prototype.getTouchAction.call(this)},attrTest:function(i){var l=this.options.direction,f;return l&(he|Ie)?f=i.overallVelocity:l&he?f=i.overallVelocityX:l&Ie&&(f=i.overallVelocityY),this._super.attrTest.call(this,i)&&l&i.offsetDirection&&i.distance>this.options.threshold&&i.maxPointers==this.options.pointers&&h(f)>this.options.velocity&&i.eventType&z},emit:function(i){var l=lo(i.offsetDirection);l&&this.manager.emit(this.options.event+l,i),this.manager.emit(this.options.event,i)}});function ft(){be.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}F(ft,be,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Rt]},process:function(i){var l=this.options,f=i.pointers.length===l.pointers,m=i.distance<l.threshold,T=i.deltaTime<l.time;if(this.reset(),i.eventType&V&&this.count===0)return this.failTimeout();if(m&&T&&f){if(i.eventType!=z)return this.failTimeout();var P=this.pTime?i.timeStamp-this.pTime<l.interval:!0,N=!this.pCenter||rt(this.pCenter,i.center)<l.posThreshold;this.pTime=i.timeStamp,this.pCenter=i.center,!N||!P?this.count=1:this.count+=1,this._input=i;var X=this.count%l.taps;if(X===0)return this.hasRequireFailures()?(this._timer=b(function(){this.state=Te,this.tryEmit()},l.interval,this),se):Te}return de},failTimeout:function(){return this._timer=b(function(){this.state=de},this.options.interval,this),de},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Te&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Ee(i,l){return l=l||{},l.recognizers=D(l.recognizers,Ee.defaults.preset),new Bt(i,l)}Ee.VERSION="2.0.7",Ee.defaults={domEvents:!1,touchAction:so,enable:!0,inputTarget:null,inputClass:null,preset:[[At,{enable:!1}],[Nt,{enable:!1},["rotate"]],[Mt,{direction:he}],[ut,{direction:he},["swipe"]],[ft],[ft,{event:"doubletap",taps:2},["tap"]],[xt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var gs=1,uo=2;function Bt(i,l){this.options=w({},Ee.defaults,l||{}),this.options.inputTarget=this.options.inputTarget||i,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=i,this.input=Gi(this),this.touchAction=new Lt(this,this.options.touchAction),fo(this,!0),S(this.options.recognizers,function(f){var m=this.add(new f[0](f[1]));f[2]&&m.recognizeWith(f[2]),f[3]&&m.requireFailure(f[3])},this)}Bt.prototype={set:function(i){return w(this.options,i),i.touchAction&&this.touchAction.update(),i.inputTarget&&(this.input.destroy(),this.input.target=i.inputTarget,this.input.init()),this},stop:function(i){this.session.stopped=i?uo:gs},recognize:function(i){var l=this.session;if(!l.stopped){this.touchAction.preventDefaults(i);var f,m=this.recognizers,T=l.curRecognizer;(!T||T&&T.state&Te)&&(T=l.curRecognizer=null);for(var P=0;P<m.length;)f=m[P],l.stopped!==uo&&(!T||f==T||f.canRecognizeWith(T))?f.recognize(i):f.reset(),!T&&f.state&(se|Ae|Ce)&&(T=l.curRecognizer=f),P++}},get:function(i){if(i instanceof be)return i;for(var l=this.recognizers,f=0;f<l.length;f++)if(l[f].options.event==i)return l[f];return null},add:function(i){if(C(i,"add",this))return this;var l=this.get(i.options.event);return l&&this.remove(l),this.recognizers.push(i),i.manager=this,this.touchAction.update(),i},remove:function(i){if(C(i,"remove",this))return this;if(i=this.get(i),i){var l=this.recognizers,f=Z(l,i);f!==-1&&(l.splice(f,1),this.touchAction.update())}return this},on:function(i,l){if(i!==r&&l!==r){var f=this.handlers;return S(A(i),function(m){f[m]=f[m]||[],f[m].push(l)}),this}},off:function(i,l){if(i!==r){var f=this.handlers;return S(A(i),function(m){l?f[m]&&f[m].splice(Z(f[m],l),1):delete f[m]}),this}},emit:function(i,l){this.options.domEvents&&ys(i,l);var f=this.handlers[i]&&this.handlers[i].slice();if(!(!f||!f.length)){l.type=i,l.preventDefault=function(){l.srcEvent.preventDefault()};for(var m=0;m<f.length;)f[m](l),m++}},destroy:function(){this.element&&fo(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function fo(i,l){var f=i.element;if(f.style){var m;S(i.options.cssProps,function(T,P){m=$(f.style,P),l?(i.oldCssProps[m]=f.style[m],f.style[m]=T):f.style[m]=i.oldCssProps[m]||""}),l||(i.oldCssProps={})}}function ys(i,l){var f=o.createEvent("Event");f.initEvent(i,!0,!0),f.gesture=l,l.target.dispatchEvent(f)}w(Ee,{INPUT_START:V,INPUT_MOVE:re,INPUT_END:z,INPUT_CANCEL:g,STATE_POSSIBLE:ct,STATE_BEGAN:se,STATE_CHANGED:Ae,STATE_ENDED:Ce,STATE_RECOGNIZED:Te,STATE_CANCELLED:Ge,STATE_FAILED:de,DIRECTION_NONE:nt,DIRECTION_LEFT:Ue,DIRECTION_RIGHT:ze,DIRECTION_UP:$e,DIRECTION_DOWN:He,DIRECTION_HORIZONTAL:he,DIRECTION_VERTICAL:Ie,DIRECTION_ALL:Xn,Manager:Bt,Input:ie,TouchAction:Lt,TouchInput:st,MouseInput:it,PointerEventInput:kt,TouchMouseInput:Ot,SingleTouchInput:to,Recognizer:be,AttrRecognizer:ce,Tap:ft,Pan:ut,Swipe:Mt,Pinch:Nt,Rotate:At,Press:xt,on:I,off:x,each:S,merge:R,extend:E,assign:w,inherit:F,bindFn:B,prefixed:$});var vs=typeof t<"u"?t:typeof self<"u"?self:{};vs.Hammer=Ee,typeof r=="function"&&r.amd?r(function(){return Ee}):e.exports?e.exports=Ee:t[n]=Ee})(window,document,"Hammer")})(Jt);var Zo=Jt.exports;const Ko=Ao(Zo);function en(){const e=document.documentElement;return{clientWidth:e.clientWidth,clientHeight:e.clientHeight,clientTop:e.clientTop,clientLeft:e.clientLeft,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,offsetWidth:e.offsetWidth,offsetHeight:e.offsetHeight,offsetTop:e.offsetTop,offsetLeft:e.offsetLeft,offsetParent:e.offsetParent}}function Jo(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function tn(e){const{top:t,left:o,width:n,height:r}=e.getBoundingClientRect(),{scrollLeft:s,scrollTop:a}=en();return{x:o+s,y:t+a,width:n,height:r}}function nn(e){if("center"in e)return e.center;if(typeof e.pageX=="number"&&typeof e.pageY=="number")return{x:e.pageX,y:e.pageY};const{scrollLeft:t,scrollTop:o}=en();return{x:e.clientX+t,y:e.clientY+o}}function fe(e,t){const o={x:0,y:0};if(t){const n=nn(e),r=tn(t);o.x=n.x-r.x,o.y=n.y-r.y}else{let n=0,r=0;if("currentTarget"in e&&e.currentTarget&&e.target&&e.currentTarget!=e.target){const s=e.currentTarget.getBoundingClientRect(),a=e.target.getBoundingClientRect();n=a.left-s.left,r=a.top-s.top}if("offsetX"in e)o.x=e.offsetX+n,o.y=e.offsetY+r;else{const s=nn(e),a=tn(e.target);o.x=s.x-a.x+n,o.y=s.y-a.y+r}}return o}class er extends ht{container;width;height;mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0};hammer;removes=[];constructor(t=document.documentElement,o=!0,n){super(),this.container=t,this.width=t.offsetWidth,this.height=t.offsetHeight,this.hammer=new Ko(this.container),o&&this.start(n)}emitDebounce=Lo((t,...o)=>super.emit(t,...o),50);emit(t,...o){switch(t){case"panLeft":case"panRight":this.emitDebounce(t,...o);break;default:super.emit(t,...o);break}return this}start(t){this.registerMouseEventListeners(),this.registerTransitionEventListeners(),this.registerAnimationEventListeners(),this.registerResizeObserver(),t&&t.forEach(o=>{this.addRemoves(o())}),this.on("pointerMove",o=>{this.setMousePoint(fe(o,this.container))})}destroy(){this.removes.forEach(t=>t()),this.removes=[],this.removeAllListeners()}restart(){this.destroy(),this.start()}addRemoves(t){this.removes.push(t)}registerMouseEventListeners(){const t=g=>{this.emit("mouseDown",g)},o=g=>{this.emit("mouseUp",g)},n=g=>{this.emit("mouseMove",g)},r=g=>{this.emit("mouseOver",g)},s=g=>{this.emit("mouseOut",g)},a=g=>{this.emit("mouseEnter",g)},d=g=>{this.emit("mouseLeave",g)},u=g=>{this.emit("mouseClick",g)},h=g=>{this.emit("mouseDoubleClick",g)},p=g=>{this.emit("mouseWheel",g)},b=g=>{this.emit("mouseContextMenu",g)},C=g=>{this.emit("touchStart",g)},S=g=>{this.emit("touchEnd",g)},y=g=>{this.emit("touchCancel",g)},w=g=>{this.emit("touchMove",g)},E=g=>{this.emit("pointerDown",g)},R=g=>{this.emit("pointerUp",g)},F=g=>{this.emit("pointerCancel",g)},B=g=>{this.emit("pointerMove",g)},k=g=>{this.emit("pan",g)},D=g=>{this.emit("panStart",g)},I=g=>{this.emit("panMove",g)},x=g=>{this.emit("panEnd",g)},M=g=>{this.emit("panCancel",g)},U=g=>{this.emit("panLeft",g)},A=g=>{this.emit("panRight",g)},Z=g=>{this.emit("panUp",g)},oe=g=>{this.emit("panDown",g)},H=g=>{this.emit("pinch",g)},$=g=>{this.emit("press",g)},G=g=>{this.emit("rotate",g)},ve=g=>{this.emit("swipe",g)},Se=g=>{this.emit("swipeLeft",g)},Le=g=>{this.emit("swipeRight",g)},Pe=g=>{this.emit("swipeUp",g)},Ne=g=>{this.emit("swipeDown",g)},xe=g=>{this.emit("tap",g)},q=g=>{!g.target||this.container==g.target||this.container.contains(g.target)||this.emit("tapOutSide",g)},O=g=>{this.emit("inputChange",g,this.container.files)},v=g=>{this.emit("dragstart",g)},te=g=>{g.dataTransfer&&(g.dataTransfer.dropEffect="copy"),this.emit("dragover",g)},W=g=>{this.emit("dragenter",g)},V=g=>{this.emit("dragend",g)},re=g=>{g.dataTransfer,this.emit("drop",g,g.dataTransfer?.files||null)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",o,!1),this.container.addEventListener("mousemove",n,!1),this.container.addEventListener("mouseover",r,!1),this.container.addEventListener("mouseout",s,!1),this.container.addEventListener("mouseenter",a,!1),this.container.addEventListener("mouseleave",d,!1),this.container.addEventListener("click",u,!1),this.container.addEventListener("dblclick",h,!1),this.container.addEventListener("wheel",p,!1),this.container.addEventListener("contextmenu",b,!1),this.container.addEventListener("touchstart",C,!1),this.container.addEventListener("touchend",S,!1),this.container.addEventListener("touchcancel",y,!1),this.container.addEventListener("touchmove",w,!1),this.container.addEventListener("pointerdown",E,!1),this.container.addEventListener("pointerup",R,!1),this.container.addEventListener("pointercancel",F,!1),this.container.addEventListener("pointermove",B,!1),this.hammer.on("pan",k),this.hammer.on("panstart",D),this.hammer.on("panmove",I),this.hammer.on("panend",x),this.hammer.on("pancancel",M),this.hammer.on("panleft",U),this.hammer.on("panright",A),this.hammer.on("panup",Z),this.hammer.on("pandown",oe),this.hammer.on("pinch",H),this.hammer.on("press",$),this.hammer.on("rotate",G),this.hammer.on("swipe",ve),this.hammer.on("swipeleft",Se),this.hammer.on("swiperight",Le),this.hammer.on("swipeup",Pe),this.hammer.on("swipedown",Ne),this.hammer.on("tap",xe),document.addEventListener("pointerdown",q,!1),this.container instanceof HTMLInputElement&&this.container.addEventListener("change",O,!1),this.container.addEventListener("dragstart",v,!1),this.container.addEventListener("dragover",te,!1),this.container.addEventListener("dragenter",W,!1),this.container.addEventListener("dragend",V,!1),this.container.addEventListener("drop",re,!1);const z=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",o,!1),this.container.removeEventListener("mousemove",n,!1),this.container.removeEventListener("mouseover",r,!1),this.container.removeEventListener("mouseout",s,!1),this.container.removeEventListener("mouseenter",a,!1),this.container.removeEventListener("mouseleave",d,!1),this.container.removeEventListener("click",u,!1),this.container.removeEventListener("dblclick",h,!1),this.container.removeEventListener("wheel",p,!1),this.container.removeEventListener("contextmenu",b,!1),this.container.removeEventListener("touchstart",C,!1),this.container.removeEventListener("touchend",S,!1),this.container.removeEventListener("touchcancel",y,!1),this.container.removeEventListener("touchmove",w,!1),this.container.removeEventListener("pointerdown",E,!1),this.container.removeEventListener("pointerup",R,!1),this.container.removeEventListener("pointercancel",F),this.container.removeEventListener("pointermove",B,!1),this.hammer.off("pan",k),this.hammer.off("panstart",D),this.hammer.off("panmove",I),this.hammer.off("panend",x),this.hammer.off("pancancel",M),this.hammer.off("panleft",U),this.hammer.off("panright",A),this.hammer.off("panup",Z),this.hammer.off("pandown",oe),this.hammer.off("pinch",H),this.hammer.off("press",$),this.hammer.off("rotate",G),this.hammer.off("swipe",ve),this.hammer.off("swipeleft",Se),this.hammer.off("swiperight",Le),this.hammer.off("swipeup",Pe),this.hammer.off("swipedown",Ne),this.hammer.off("tap",xe),document.removeEventListener("pointerdown",q,!1),document.removeEventListener("touchstart",q,!1),document.removeEventListener("mousedown",q,!1),this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",O,!1),this.container.removeEventListener("dragstart",v,!1),this.container.removeEventListener("dragover",te,!1),this.container.removeEventListener("dragenter",W,!1),this.container.removeEventListener("dragend",V,!1),this.container.removeEventListener("drop",re,!1)};return this.addRemoves(z),z}registerTransitionEventListeners(){const t=r=>{this.emit("transitionstart",r)},o=r=>{this.emit("transitionend",r)};this.container.addEventListener("transitionstart",t,!1),this.container.addEventListener("transitionend",o,!1);const n=()=>{this.container.removeEventListener("transitionstart",t,!1),this.container.removeEventListener("transitionend",o,!1)};return this.addRemoves(n),n}registerAnimationEventListeners(){const t=r=>{this.emit("animationstart",r)},o=r=>{this.emit("animationend",r)};this.container.addEventListener("animationstart",t,!1),this.container.addEventListener("animationend",o,!1);const n=()=>{this.container.removeEventListener("animationstart",t,!1),this.container.removeEventListener("animationend",o,!1)};return this.addRemoves(n),n}registerResizeObserver(){const{on:t,destroy:o}=qo(this.container),n=t((s,a)=>{this.width=s,this.height=a,this.emit("resize",s,a)}),r=()=>{n(),o()};return this.addRemoves(r),r}registerPullDownRefresh(t){const o=t?.distance||50;return this.captureDrag({move:(n,r)=>{r.dStartY>0&&r.dStartY<o&&this.emit("pullDowning",r.dStartY)},end:(n,r)=>{r.dStartY>=o&&this.emit("pullDown")}})}registerPullUpLoading(t){const o=t?.distance||50;return this.captureDrag({move:(n,r)=>{r.dStartY>0&&r.dStartY<o&&this.emit("pullUping",r.dStartY)},end:(n,r)=>{r.dStartY>=o&&this.emit("pullUp")}})}setMousePoint(t){this.mousePoint.x=t.x,this.mousePoint.y=t.y,this.mousePoint.dx=typeof t.dx=="number"?t.dx:0,this.mousePoint.dy=typeof t.dy=="number"?t.dy:0,this.mousePoint.dStartX=typeof t.dStartX=="number"?t.dStartX:0,this.mousePoint.dStartY=typeof t.dStartY=="number"?t.dStartY:0}captureDrag(t){return this.captureDragUsePointer(t)}captureDragUsePointer(t){let o,n;const r=u=>{u.preventDefault(),u.stopPropagation(),this.on("pointerMove",a),this.on("pointerUp",s),this.on("pointerCancel",s),n=fe(u,this.container);const h={...n};o=h,this.setMousePoint(h),t?.start?.(u,h)},s=u=>{u.preventDefault(),u.stopPropagation(),this.off("pointerMove",a),this.off("pointerUp",s),this.off("pointerCancel",s),n=fe(u,this.container);const h={...n,dStartX:o?n.x-o.x:0,dStartY:o?n.y-o.y:0};this.setMousePoint(h),t?.end?.(u,h),o=null},a=u=>{u.preventDefault(),u.stopPropagation();const h={...n};n=fe(u,this.container);const p={...n,dx:n.x-(h.x||0),dy:n.y-(h.y||0),dStartX:o?n.x-o.x:0,dStartY:o?n.y-o.y:0};this.setMousePoint(p),t?.move?.(u,p)};this.on("pointerDown",r);const d=()=>{this.off("pointerDown",r)};return this.addRemoves(d),d}captureDragUseMouse(t){let o,n;const r=u=>{u.preventDefault(),u.stopPropagation(),document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",s,!1),n=fe(u,this.container);const h={...n};o=h,this.setMousePoint(h),t?.start?.(u,h)},s=u=>{u.preventDefault(),u.stopPropagation(),document.removeEventListener("mousemove",a,!1),document.removeEventListener("mouseup",s,!1),n=fe(u,this.container);const h={...n,dStartX:o?n.x-o.x:0,dStartY:o?n.y-o.y:0};this.setMousePoint(h),t?.end?.(u,h),o=null},a=u=>{u.preventDefault(),u.stopPropagation();const h={...n};n=fe(u,this.container);const p={...n,dx:n.x-(h.x||0),dy:n.y-(h.y||0),dStartX:o?n.x-o.x:0,dStartY:o?n.y-o.y:0};this.setMousePoint(p),t?.move?.(u,p)};this.on("mouseDown",r);const d=()=>{this.off("mouseDown",r)};return this.addRemoves(d),d}captureDragUseTouch(t){let o,n;const r=u=>{u.preventDefault(),u.stopPropagation(),this.on("touchMove",a),this.on("touchEnd",s),this.on("touchCancel",s);const h=u.changedTouches[0];n=fe(h,this.container);const p={...n};o=p,this.setMousePoint(p),t?.start?.(h,p)},s=u=>{u.preventDefault(),u.stopPropagation(),this.off("touchMove",a),this.off("touchEnd",s),this.off("touchCancel",s);const h=u.changedTouches[0];n=fe(h,this.container);const p={...n,dStartX:o?n.x-o.x:0,dStartY:o?n.y-o.y:0};this.setMousePoint(p),t?.end?.(h,p),o=null},a=u=>{u.preventDefault(),u.stopPropagation();const h=u.changedTouches[0],p={...n};n=fe(h,this.container);const b={...n,dx:n.x-(p.x||0),dy:n.y-(p.y||0),dStartX:o?n.x-o.x:0,dStartY:o?n.y-o.y:0};this.setMousePoint(b),t?.move?.(h,b)};this.on("touchStart",r);const d=()=>{this.off("touchStart",r)};return this.addRemoves(d),d}}function tr(e){return window.URL.createObjectURL(e)}const on=new Ht;async function nr(e,t=6e4){const o=typeof e=="string"?e:tr(e);return new Promise((n,r)=>{const s=on.get(o);if(s)return n(s);const a=document.createElement("img");a.onload=u=>{clearTimeout(d);const h=a.naturalWidth||a.width,p=a.naturalHeight||a.height,b={width:h,height:p,aspectRatio:h/p,element:a,imageData:Wo(a)};on.set(o,b),n(b),a.onerror=a.onload=null},a.onerror=u=>{clearTimeout(d),r(u)},a.src=o;const d=setTimeout(()=>{r("Timeout!")},t)})}function rn(e,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(e.className)||!1}function sn(e){return{el:e,isRoot:()=>/(html|body)/i.test(e.tagName)||e===document.documentElement,isActive:()=>e===document.activeElement&&(e.type||e.href),getRemSize:function(){return parseFloat(getComputedStyle(document.documentElement).fontSize)},rem2px:function(t){return t*this.getRemSize()},getEmSize:function(){return e.parentElement?parseFloat(getComputedStyle(e.parentElement).fontSize):this.getRemSize()},nearestElement:()=>{let t=e;for(;t&&t.nodeType!==1&&t.parentElement;)t=t.parentElement;return t},parent:()=>e.parentElement,parents:function(t=e,o=[]){return!t||t.parentElement===null?o:this.parents(t.parentElement,o.concat([t]))},scrollParent:function(){const t=this.parents();for(let o=0,n=t.length;o<n;o++)if(/(auto|scroll)/.test(gt(t[o],"overflow")+gt(t[o],"overflow-y")+gt(t[o],"overflow-x")))return t[o];return document.scrollingElement||document.documentElement},contains:t=>e.contains?e!=t&&e.contains(t):!!(e.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(e.parentElement?.children).filter(t=>t!==e),nextElementSibling:()=>e.nextElementSibling,previousElementSibling:()=>e.previousElementSibling,closest:t=>e.closest(t),shadowRoot:()=>e.shadowRoot,isInput:()=>e.tagName==="INPUT"||e instanceof HTMLInputElement,isSelect:()=>e.tagName==="SELECT"||e instanceof HTMLSelectElement,isTextArea:()=>e.tagName==="TEXTAREA"||e instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(e)&&e.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(e)&&e.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(e)&&e.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(e)&&e.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const o=e.options;for(let n=0,r=o.length;n<r;n++)o[n].selected=o[n].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const o=document.getElementsByName(e.name);for(let n=0,r=o.length;n<r;n++){const s=o[n];s.checked=s.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(e.checked=t)},insert:(t,o="append")=>{typeof t=="string"?e[o](or(t)):e[o](t)},html:function(t){if(typeof t=="string"){e.innerHTML=t;const o=an(e);o!=e&&(e=o)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{e.textContent=t},getInnerText:()=>{if(e instanceof SVGElement)return"";let t=e.innerText;if(!t){const o=e.querySelector("slot")?.assignedNodes()||[];let n=0;for(;!t&&n<=o.length-1;)"innerText"in o[n]&&(t=o[n].innerText),n++}return t},remove:()=>e.remove()}}function or(e){const t=document.createElement("template");return t.innerHTML=e,t.content.childNodes.forEach(o=>{const n=an(o);n!=o&&t.content.replaceChild(n,o)}),t.content}function an(e){return e.tagName=="SCRIPT"&&(e=cn(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(cn(t),t)}),e}function cn(e){const t=e.ownerDocument.createElement("script");t.text=e.text;const o=e.attributes;for(let n=0,r=o.length;n<r;n++)t.setAttribute(o[n].name,o[n].value);return t}async function rr(e){if(navigator.clipboard)return await navigator.clipboard.writeText(e);{const t=document.createElement("textarea");return t.value=e,t.style.opacity="0",t.style.position="fixed",t.style.top="0",t.style.left="0",t.focus(),t.select(),document.execCommand("copy")}}function ir(e,t={},o=[],n){return{tag:e,props:t,children:o,el:n}}function ln(e){return ir(e.tagName,Yo(e),Array.from(e.children).map(t=>ln(t)),e)}const sr={class:"page"},ar={class:"page-header"},cr={class:"page-main"},lr={class:"page-main-scroll"},ur={class:"page-footer"},fr={class:"page-global"},hr=c.defineComponent({customOptions:{},inheritAttrs:!0,__name:"LayoutPage",setup(e,{expose:t}){return t({}),(o,n)=>(c.openBlock(),c.createElementBlock("div",sr,[c.createElementVNode("div",ar,[c.renderSlot(o.$slots,"header",{},void 0,!0)]),c.createElementVNode("div",cr,[c.createElementVNode("div",lr,[c.renderSlot(o.$slots,"default",{},void 0,!0)])]),c.createElementVNode("div",ur,[c.renderSlot(o.$slots,"footer",{},void 0,!0)]),c.createElementVNode("div",fr,[c.renderSlot(o.$slots,"global",{},void 0,!0)])]))}}),bs="",ye=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Oe=ye(hr,[["__scopeId","data-v-3c77fd20"]]),dr={class:"view-document"},mr=["src"],pr=c.defineComponent({inheritAttrs:!0,customOptions:{LayoutPage:Oe},__name:"ViewDocument",props:{src:{default:""},title:{default:""}},setup(e){const t=e,o=pe.useRoute();Go(typeof o.params.title=="string"?o.params.title:t.title);const n=decodeURIComponent(typeof o.params.src=="string"?o.params.src:t.src);return(r,s)=>(c.openBlock(),c.createBlock(Oe,null,{default:c.withCtx(()=>[c.createElementVNode("div",dr,[c.createElementVNode("img",{class:"img",src:c.unref(n)},null,8,mr)])]),_:1}))}}),Es="",un=ye(pr,[["__scopeId","data-v-786ac2a3"]]),fn=/^[a-z0-9]+(-[a-z0-9]+)*$/,We=(e,t,o,n="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const d=r.pop(),u=r.pop(),h={provider:r.length>0?r[0]:n,prefix:u,name:d};return t&&!Qe(h)?null:h}const s=r[0],a=s.split("-");if(a.length>1){const d={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Qe(d)?null:d}if(o&&n===""){const d={provider:n,prefix:"",name:s};return t&&!Qe(d,o)?null:d}return null},Qe=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,hn=Object.freeze({left:0,top:0,width:16,height:16}),Ze=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ke=Object.freeze({...hn,...Ze}),vt=Object.freeze({...Ke,body:"",hidden:!1});function gr(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(o.rotate=n),o}function dn(e,t){const o=gr(e,t);for(const n in vt)n in Ze?n in e&&!(n in o)&&(o[n]=Ze[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function yr(e,t){const o=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);function s(a){if(o[a])return r[a]=[];if(!(a in r)){r[a]=null;const d=n[a]&&n[a].parent,u=d&&s(d);u&&(r[a]=[d].concat(u))}return r[a]}return Object.keys(o).concat(Object.keys(n)).forEach(s),r}function vr(e,t,o){const n=e.icons,r=e.aliases||Object.create(null);let s={};function a(d){s=dn(n[d]||r[d],s)}return a(t),o.forEach(a),dn(e,s)}function mn(e,t){const o=[];if(typeof e!="object"||typeof e.icons!="object")return o;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),o.push(r)});const n=yr(e);for(const r in n){const s=n[r];s&&(t(r,vr(e,r,s)),o.push(r))}return o}const Tr={provider:"",aliases:{},not_found:{},...hn};function Tt(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}function pn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Tt(e,Tr))return null;const o=t.icons;for(const r in o){const s=o[r];if(!r||typeof s.body!="string"||!Tt(s,vt))return null}const n=t.aliases||Object.create(null);for(const r in n){const s=n[r],a=s.parent;if(!r||typeof a!="string"||!o[a]&&!n[a]||!Tt(s,vt))return null}return t}const gn=Object.create(null);function br(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Re(e,t){const o=gn[e]||(gn[e]=Object.create(null));return o[t]||(o[t]=br(e,t))}function yn(e,t){return pn(t)?mn(t,(o,n)=>{n?e.icons[o]=n:e.missing.add(o)}):[]}function Er(e,t,o){try{if(typeof o.body=="string")return e.icons[t]={...o},!0}catch{}return!1}let Me=!1;function vn(e){return typeof e=="boolean"&&(Me=e),Me}function _r(e){const t=typeof e=="string"?We(e,!0,Me):e;if(t){const o=Re(t.provider,t.prefix),n=t.name;return o.icons[n]||(o.missing.has(n)?null:void 0)}}function Cr(e,t){const o=We(e,!0,Me);if(!o)return!1;const n=Re(o.provider,o.prefix);return t?Er(n,o.name,t):(n.missing.add(o.name),!0)}function wr(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Me&&!t&&!e.prefix){let r=!1;return pn(e)&&(e.prefix="",mn(e,(s,a)=>{Cr(s,a)&&(r=!0)})),r}const o=e.prefix;if(!Qe({provider:t,prefix:o,name:"a"}))return!1;const n=Re(t,o);return!!yn(n,e)}const Tn=Object.freeze({width:null,height:null}),bn=Object.freeze({...Tn,...Ze}),Sr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Pr=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function En(e,t,o){if(t===1)return e;if(o=o||100,typeof e=="number")return Math.ceil(e*t*o)/o;if(typeof e!="string")return e;const n=e.split(Sr);if(n===null||!n.length)return e;const r=[];let s=n.shift(),a=Pr.test(s);for(;;){if(a){const d=parseFloat(s);isNaN(d)?r.push(s):r.push(Math.ceil(d*t*o)/o)}else r.push(s);if(s=n.shift(),s===void 0)return r.join("");a=!a}}function Ir(e,t="defs"){let o="";const n=e.indexOf("<"+t);for(;n>=0;){const r=e.indexOf(">",n),s=e.indexOf("</"+t);if(r===-1||s===-1)break;const a=e.indexOf(">",s);if(a===-1)break;o+=e.slice(r+1,s).trim(),e=e.slice(0,n).trim()+e.slice(a+1)}return{defs:o,content:e}}function Fr(e,t){return e?"<defs>"+e+"</defs>"+t:t}function kr(e,t,o){const n=Ir(e);return Fr(n.defs,t+n.content+o)}const Or=e=>e==="unset"||e==="undefined"||e==="none";function Rr(e,t){const o={...Ke,...e},n={...bn,...t},r={left:o.left,top:o.top,width:o.width,height:o.height};let s=o.body;[o,n].forEach(w=>{const E=[],R=w.hFlip,F=w.vFlip;let B=w.rotate;R?F?B+=2:(E.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),E.push("scale(-1 1)"),r.top=r.left=0):F&&(E.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),E.push("scale(1 -1)"),r.top=r.left=0);let k;switch(B<0&&(B-=Math.floor(B/4)*4),B=B%4,B){case 1:k=r.height/2+r.top,E.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:E.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:k=r.width/2+r.left,E.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}B%2===1&&(r.left!==r.top&&(k=r.left,r.left=r.top,r.top=k),r.width!==r.height&&(k=r.width,r.width=r.height,r.height=k)),E.length&&(s=kr(s,'<g transform="'+E.join(" ")+'">',"</g>"))});const a=n.width,d=n.height,u=r.width,h=r.height;let p,b;a===null?(b=d===null?"1em":d==="auto"?h:d,p=En(b,u/h)):(p=a==="auto"?u:a,b=d===null?En(p,h/u):d==="auto"?h:d);const C={},S=(w,E)=>{Or(E)||(C[w]=E.toString())};S("width",p),S("height",b);const y=[r.left,r.top,u,h];return C.viewBox=y.join(" "),{attributes:C,viewBox:y,body:s}}const Lr=/\sid="(\S+)"/g,Nr="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let xr=0;function Ar(e,t=Nr){const o=[];let n;for(;n=Lr.exec(e);)o.push(n[1]);if(!o.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(s=>{const a=typeof t=="function"?t(s):t+(xr++).toString(),d=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+d+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const bt=Object.create(null);function Mr(e,t){bt[e]=t}function Et(e){return bt[e]||bt[""]}function _t(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ct=Object.create(null),Be=["https://api.simplesvg.com","https://api.unisvg.com"],Je=[];for(;Be.length>0;)Be.length===1||Math.random()>.5?Je.push(Be.shift()):Je.push(Be.pop());Ct[""]=_t({resources:["https://api.iconify.design"].concat(Je)});function Br(e,t){const o=_t(t);return o===null?!1:(Ct[e]=o,!0)}function wt(e){return Ct[e]}let _n=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function Vr(e,t){const o=wt(e);if(!o)return 0;let n;if(!o.maxURL)n=0;else{let r=0;o.resources.forEach(a=>{r=Math.max(r,a.length)});const s=t+".json?icons=";n=o.maxURL-r-o.path.length-s.length}return n}function Dr(e){return e===404}const Ur=(e,t,o)=>{const n=[],r=Vr(e,t),s="icons";let a={type:s,provider:e,prefix:t,icons:[]},d=0;return o.forEach((u,h)=>{d+=u.length+1,d>=r&&h>0&&(n.push(a),a={type:s,provider:e,prefix:t,icons:[]},d=u.length),a.icons.push(u)}),n.push(a),n};function zr(e){if(typeof e=="string"){const t=wt(e);if(t)return t.path}return"/"}const $r={prepare:Ur,send:(e,t,o)=>{if(!_n){o("abort",424);return}let n=zr(t.provider);switch(t.type){case"icons":{const s=t.prefix,d=t.icons.join(","),u=new URLSearchParams({icons:d});n+=s+".json?"+u.toString();break}case"custom":{const s=t.uri;n+=s.slice(0,1)==="/"?s.slice(1):s;break}default:o("abort",400);return}let r=503;_n(e+n).then(s=>{const a=s.status;if(a!==200){setTimeout(()=>{o(Dr(a)?"abort":"next",a)});return}return r=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?o("abort",s):o("next",r)});return}setTimeout(()=>{o("success",s)})}).catch(()=>{o("next",r)})}};function Hr(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((r,s)=>r.provider!==s.provider?r.provider.localeCompare(s.provider):r.prefix!==s.prefix?r.prefix.localeCompare(s.prefix):r.name.localeCompare(s.name));let n={provider:"",prefix:"",name:""};return e.forEach(r=>{if(n.name===r.name&&n.prefix===r.prefix&&n.provider===r.provider)return;n=r;const s=r.provider,a=r.prefix,d=r.name,u=o[s]||(o[s]=Object.create(null)),h=u[a]||(u[a]=Re(s,a));let p;d in h.icons?p=t.loaded:a===""||h.missing.has(d)?p=t.missing:p=t.pending;const b={provider:s,prefix:a,name:d};p.push(b)}),t}function Cn(e,t){e.forEach(o=>{const n=o.loaderCallbacks;n&&(o.loaderCallbacks=n.filter(r=>r.id!==t))})}function jr(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const n=e.provider,r=e.prefix;t.forEach(s=>{const a=s.icons,d=a.pending.length;a.pending=a.pending.filter(u=>{if(u.prefix!==r)return!0;const h=u.name;if(e.icons[h])a.loaded.push({provider:n,prefix:r,name:h});else if(e.missing.has(h))a.missing.push({provider:n,prefix:r,name:h});else return o=!0,!0;return!1}),a.pending.length!==d&&(o||Cn([e],s.id),s.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),s.abort))})}))}let Yr=0;function Gr(e,t,o){const n=Yr++,r=Cn.bind(null,o,n);if(!t.pending.length)return r;const s={id:n,icons:t,callback:e,abort:r};return o.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(s)}),r}function Xr(e,t=!0,o=!1){const n=[];return e.forEach(r=>{const s=typeof r=="string"?We(r,t,o):r;s&&n.push(s)}),n}var qr={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Wr(e,t,o,n){const r=e.resources.length,s=e.random?Math.floor(Math.random()*r):e.index;let a;if(e.random){let I=e.resources.slice(0);for(a=[];I.length>1;){const x=Math.floor(Math.random()*I.length);a.push(I[x]),I=I.slice(0,x).concat(I.slice(x+1))}a=a.concat(I)}else a=e.resources.slice(s).concat(e.resources.slice(0,s));const d=Date.now();let u="pending",h=0,p,b=null,C=[],S=[];typeof n=="function"&&S.push(n);function y(){b&&(clearTimeout(b),b=null)}function w(){u==="pending"&&(u="aborted"),y(),C.forEach(I=>{I.status==="pending"&&(I.status="aborted")}),C=[]}function E(I,x){x&&(S=[]),typeof I=="function"&&S.push(I)}function R(){return{startTime:d,payload:t,status:u,queriesSent:h,queriesPending:C.length,subscribe:E,abort:w}}function F(){u="failed",S.forEach(I=>{I(void 0,p)})}function B(){C.forEach(I=>{I.status==="pending"&&(I.status="aborted")}),C=[]}function k(I,x,M){const U=x!=="success";switch(C=C.filter(A=>A!==I),u){case"pending":break;case"failed":if(U||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){p=M,F();return}if(U){p=M,C.length||(a.length?D():F());return}if(y(),B(),!e.random){const A=e.resources.indexOf(I.resource);A!==-1&&A!==e.index&&(e.index=A)}u="completed",S.forEach(A=>{A(M)})}function D(){if(u!=="pending")return;y();const I=a.shift();if(I===void 0){if(C.length){b=setTimeout(()=>{y(),u==="pending"&&(B(),F())},e.timeout);return}F();return}const x={status:"pending",resource:I,callback:(M,U)=>{k(x,M,U)}};C.push(x),h++,b=setTimeout(D,e.rotate),o(I,t,x.callback)}return setTimeout(D),R}function wn(e){const t={...qr,...e};let o=[];function n(){o=o.filter(d=>d().status==="pending")}function r(d,u,h){const p=Wr(t,d,u,(b,C)=>{n(),h&&h(b,C)});return o.push(p),p}function s(d){return o.find(u=>d(u))||null}return{query:r,find:s,setIndex:d=>{t.index=d},getIndex:()=>t.index,cleanup:n}}function Sn(){}const St=Object.create(null);function Qr(e){if(!St[e]){const t=wt(e);if(!t)return;const o=wn(t),n={config:t,redundancy:o};St[e]=n}return St[e]}function Zr(e,t,o){let n,r;if(typeof e=="string"){const s=Et(e);if(!s)return o(void 0,424),Sn;r=s.send;const a=Qr(e);a&&(n=a.redundancy)}else{const s=_t(e);if(s){n=wn(s);const a=e.resources?e.resources[0]:"",d=Et(a);d&&(r=d.send)}}return!n||!r?(o(void 0,424),Sn):n.query(t,r,o)().abort}function Pn(){}function Kr(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,jr(e)}))}function Jr(e){const t=[],o=[];return e.forEach(n=>{(n.match(fn)?t:o).push(n)}),{valid:t,invalid:o}}function Ve(e,t,o){function n(){const r=e.pendingIcons;t.forEach(s=>{r&&r.delete(s),e.icons[s]||e.missing.add(s)})}if(o&&typeof o=="object")try{if(!yn(e,o).length){n();return}}catch(r){console.error(r)}n(),Kr(e)}function In(e,t){e instanceof Promise?e.then(o=>{t(o)}).catch(()=>{t(null)}):t(e)}function ei(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:o,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;const s=e.loadIcon;if(e.loadIcons&&(r.length>1||!s)){In(e.loadIcons(r,n,o),p=>{Ve(e,r,p)});return}if(s){r.forEach(p=>{const b=s(p,n,o);In(b,C=>{const S=C?{prefix:n,icons:{[p]:C}}:null;Ve(e,[p],S)})});return}const{valid:a,invalid:d}=Jr(r);if(d.length&&Ve(e,d,null),!a.length)return;const u=n.match(fn)?Et(o):null;if(!u){Ve(e,a,null);return}u.prepare(o,n,a).forEach(p=>{Zr(o,p,b=>{Ve(e,p.icons,b)})})}))}const ti=(e,t)=>{const o=Xr(e,!0,vn()),n=Hr(o);if(!n.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(n.loaded,n.missing,n.pending,Pn)}),()=>{u=!1}}const r=Object.create(null),s=[];let a,d;return n.pending.forEach(u=>{const{provider:h,prefix:p}=u;if(p===d&&h===a)return;a=h,d=p,s.push(Re(h,p));const b=r[h]||(r[h]=Object.create(null));b[p]||(b[p]=[])}),n.pending.forEach(u=>{const{provider:h,prefix:p,name:b}=u,C=Re(h,p),S=C.pendingIcons||(C.pendingIcons=new Set);S.has(b)||(S.add(b),r[h][p].push(b))}),s.forEach(u=>{const h=r[u.provider][u.prefix];h.length&&ei(u,h)}),t?Gr(t,n,s):Pn};function ni(e,t){const o={...e};for(const n in t){const r=t[n],s=typeof r;n in Tn?(r===null||r&&(s==="string"||s==="number"))&&(o[n]=r):s===typeof o[n]&&(o[n]=n==="rotate"?r%4:r)}return o}const oi=/[\s,]+/;function ri(e,t){t.split(oi).forEach(o=>{switch(o.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ii(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function n(r){for(;r<0;)r+=4;return r%4}if(o===""){const r=parseInt(e);return isNaN(r)?0:n(r)}else if(o!==e){let r=0;switch(o){case"%":r=25;break;case"deg":r=90}if(r){let s=parseFloat(e.slice(0,e.length-o.length));return isNaN(s)?0:(s=s/r,s%1===0?n(s):0)}}return t}function si(e,t){let o=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)o+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}function ai(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ci(e){return"data:image/svg+xml,"+ai(e)}function li(e){return'url("'+ci(e)+'")'}const Fn={...bn,inline:!1},ui={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},fi={display:"inline-block"},Pt={backgroundColor:"currentColor"},kn={backgroundColor:"transparent"},On={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Rn={webkitMask:Pt,mask:Pt,background:kn};for(const e in Rn){const t=Rn[e];for(const o in On)t[e+o]=On[o]}const et={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";et[e+"-flip"]=t,et[e.slice(0,1)+"-flip"]=t,et[e+"Flip"]=t});function Ln(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Nn=(e,t)=>{const o=ni(Fn,t),n={...ui},r=t.mode||"svg",s={},a=t.style,d=typeof a=="object"&&!(a instanceof Array)?a:{};for(let w in t){const E=t[w];if(E!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":o[w]=E===!0||E==="true"||E===1;break;case"flip":typeof E=="string"&&ri(o,E);break;case"color":s.color=E;break;case"rotate":typeof E=="string"?o[w]=ii(E):typeof E=="number"&&(o[w]=E);break;case"ariaHidden":case"aria-hidden":E!==!0&&E!=="true"&&delete n["aria-hidden"];break;default:{const R=et[w];R?(E===!0||E==="true"||E===1)&&(o[R]=!0):Fn[w]===void 0&&(n[w]=E)}}}const u=Rr(e,o),h=u.attributes;if(o.inline&&(s.verticalAlign="-0.125em"),r==="svg"){n.style={...s,...d},Object.assign(n,h);let w=0,E=t.id;return typeof E=="string"&&(E=E.replace(/-/g,"_")),n.innerHTML=Ar(u.body,E?()=>E+"ID"+w++:"iconifyVue"),c.h("svg",n)}const{body:p,width:b,height:C}=e,S=r==="mask"||(r==="bg"?!1:p.indexOf("currentColor")!==-1),y=si(p,{...h,width:b+"",height:C+""});return n.style={...s,"--svg":li(y),width:Ln(h.width),height:Ln(h.height),...fi,...S?Pt:kn,...d},c.h("span",n)};if(vn(!0),Mr("",$r),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!wr(n))&&console.error(o)}catch{console.error(o)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let o in t){const n="IconifyProviders["+o+"] is invalid.";try{const r=t[o];if(typeof r!="object"||!r||r.resources===void 0)continue;Br(o,r)||console.error(n)}catch{console.error(n)}}}}const hi={...Ke,body:""},di=c.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,o){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=We(e,!1,!0))===null)return this.abortLoading(),null;let r=_r(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:ti([n],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),o){r=Object.assign({},r);const a=o(r.body,n.name,n.prefix,n.provider);typeof a=="string"&&(r.body=a)}const s=["iconify"];return n.prefix!==""&&s.push("iconify--"+n.prefix),n.provider!==""&&s.push("iconify--"+n.provider),{data:r,classes:s}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return Nn(hi,e);let o=e;return t.classes&&(o={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Nn({...Ke,...t.data},o)}}),xn=c.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ue.colorPrimary}},setup(e){const t=e;return(o,n)=>(c.openBlock(),c.createElementBlock("span",{class:"icon",style:c.normalizeStyle(["color: "+o.color,"display: inline-flex","justify-content: center","align-items: center","cursor: pointer","font-size: 1em"])},[c.createVNode(c.unref(di),{icon:t.icon,color:o.color},null,8,["icon","color"])],4))}}),mi={class:"loading-11",ref:"loading11"},pi={class:"container container-1"},gi={class:"container container-2"},yi={class:"container container-3"},vi=c.defineComponent({__name:"Loading11",props:{color:{default:ue.colorPrimary},width:{default:"0.8em"}},setup(e){const t=e;return(o,n)=>(c.openBlock(),c.createElementBlock("div",mi,[c.createElementVNode("div",{class:"loading-11-inner",style:c.normalizeStyle({width:t.width,height:t.width})},[c.createElementVNode("div",pi,[c.createElementVNode("div",{class:"dot dot-1",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-2",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-3",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-4",style:c.normalizeStyle({backgroundColor:t.color})},null,4)]),c.createElementVNode("div",gi,[c.createElementVNode("div",{class:"dot dot-1",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-2",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-3",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-4",style:c.normalizeStyle({backgroundColor:t.color})},null,4)]),c.createElementVNode("div",yi,[c.createElementVNode("div",{class:"dot dot-1",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-2",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-3",style:c.normalizeStyle({backgroundColor:t.color})},null,4),c.createElementVNode("div",{class:"dot dot-4",style:c.normalizeStyle({backgroundColor:t.color})},null,4)])],4)],512))}}),ws="",An=ye(vi,[["__scopeId","data-v-f95fac77"]]),Ti={key:0,class:"loading",style:{"margin-right":"6px"}},Mn=c.defineComponent({customOptions:{Loading11:An},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["yz-click","click"],setup(e,{expose:t,emit:o}){const n=e,r=o,s=c.ref(),a=c.ref(n.borderColor),d=c.ref(n.bgColor),u=c.ref(n.fontColor),h=c.ref(n.borderColor),p=c.ref(n.bgColor);function b(k){switch(k){case"outline":a.value=n.borderColor??ue.colorPrimary,d.value=n.bgColor??ue.colorGrayFF,u.value=n.fontColor??ue.colorPrimary,h.value=a.value,p.value=d.value;break;case"fullfilled":default:a.value=n.borderColor??ue.colorPrimary,d.value=n.bgColor??ue.colorPrimary,u.value=n.fontColor??ue.colorGrayFF,h.value=a.value,p.value=d.value;break}}c.watch(()=>n.stylePattern,()=>{b(n.stylePattern)},{immediate:!0});const C=c.ref(n.disabled?"0.6":"1"),S=c.ref(n.disabled?"not-allowed":"pointer");let y=!1;const w=()=>{n.disabled||(y=!0,a.value=qe(h.value).lighten(.05).toString(),d.value=qe(p.value).lighten(.05).toString())},E=()=>{n.disabled||(y=!1,a.value=h.value,d.value=p.value)},R=c.ref(!1),B=Ro(()=>{n.disabled||R.value||(a.value=qe(h.value).darken(.1).toString(),d.value=qe(p.value).darken(.1).toString(),setTimeout(()=>{y?w():E()},150),r("yz-click"),r("click"),n.asyncClick&&(R.value=!0,n.asyncClick().then(()=>{R.value=!1}).catch(()=>{R.value=!1})))},300);return t({el:s}),(k,D)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"el",ref:s,class:"button",style:c.normalizeStyle([`opacity: ${C.value}`,`border: 1px solid ${a.value}`,`background-color: ${d.value}`,`color: ${u.value}`,`border-radius: ${n.borderRadius}`,`width: ${n.width}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${S.value}`,"user-select: none","box-sizing: border-box","display: inline-flex","justify-content: center","align-items: center","z-index: 0"]),onMouseover:w,onMouseleave:E,onClick:D[0]||(D[0]=(...I)=>c.unref(B)&&c.unref(B)(...I))},[c.createElementVNode("label",{class:"label truncate",style:c.normalizeStyle({padding:"0 "+k.padding,cursor:S.value,display:"inline-flex",justifyContent:"center",alignItems:"center"})},[R.value?(c.openBlock(),c.createElementBlock("div",Ti,[c.createVNode(An,{color:u.value},null,8,["color"])])):c.createCommentVNode("",!0),c.renderSlot(k.$slots,"default",{},()=>[k.icon&&k.iconPosition==="left"?(c.openBlock(),c.createBlock(xn,{key:0,icon:k.icon,color:u.value,style:c.normalizeStyle({marginRight:c.unref(ue).d4,cursor:S.value})},null,8,["icon","color","style"])):c.createCommentVNode("",!0),c.createElementVNode("span",{style:c.normalizeStyle({cursor:S.value})},c.toDisplayString(k.label),5),k.icon&&k.iconPosition==="right"?(c.openBlock(),c.createBlock(xn,{key:1,icon:k.icon,color:u.value,style:c.normalizeStyle({marginLeft:c.unref(ue).d4,cursor:S.value})},null,8,["icon","color","style"])):c.createCommentVNode("",!0)])],4)],36))}}),bi={class:"xg-footer-inner"},Ei=c.defineComponent({customOptions:{Button:Mn},inheritAttrs:!0,__name:"Footer",setup(e){const t=pe.useRouter();function o(){t.push("/park")}const n=c.ref("0px");let r;return c.onMounted(()=>{r=Xo.onBottom(s=>{n.value=s})}),c.onUnmounted(()=>{r?.()}),(s,a)=>(c.openBlock(),c.createElementBlock("div",{class:"xg-footer",style:c.normalizeStyle({paddingBottom:n.value})},[c.createElementVNode("div",bi,[c.createVNode(Mn,{label:"去支付",width:"100%",onClick:o})])],4))}}),Ss="",Bn=ye(Ei,[["__scopeId","data-v-47056f4a"]]),_i={class:"text"},Ci=c.defineComponent({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"}},setup(e,{expose:t,emit:o}){const n=e,r=[{name:"蓝牌",style:{"background-color":"#0078f0",color:"#ffffff"}},{name:"绿牌",style:{"background-color":"#00f08c",color:"#000000"}},{name:"黄牌",style:{"background-color":"#fac800",color:"#000000"}},{name:"黄绿",style:{background:"linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%)",color:"#000000"}},{name:"黑牌",style:{"background-color":"#222222",color:"#ffffff"}},{name:"白牌",style:{"background-color":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function s(h){switch(h){case"b":case"蓝牌":h="蓝牌";break;case"g":case"绿牌":h="绿牌";break;case"y":case"黄牌":h="黄牌";break;case"q":case"黄绿":h="黄绿";break;case"d":case"黑牌":h="黑牌";break;case"w":case"白牌":h="白牌";break;default:h="未知";break}const p=r.filter(b=>b.name===h);return p.length?p[0]:s("未知")}const a=c.ref(s(n.plateType||"")),d=c.ref(),u=c.ref(14);return c.onMounted(()=>{u.value=sn(d.value).getEmSize()}),t({}),(h,p)=>(c.openBlock(),c.createElementBlock("div",{class:"plate-display",ref_key:"el",ref:d},[h.displayType=="dot"&&h.plate!=="无牌车"?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["leading",h.displayType]),style:c.normalizeStyle({...a.value.style,width:u.value+"px",height:u.value+"px",marginRight:.36*u.value+"px"})},c.toDisplayString(a.value.name),7)):c.createCommentVNode("",!0),h.displayType=="chinese"&&h.plate!=="无牌车"?(c.openBlock(),c.createElementBlock("div",{key:1,class:c.normalizeClass(["leading",h.displayType]),style:c.normalizeStyle(a.value.style)},c.toDisplayString(a.value.name),7)):c.createCommentVNode("",!0),h.displayType=="plaintext"&&h.plate!=="无牌车"?(c.openBlock(),c.createElementBlock("div",{key:2,class:c.normalizeClass(["leading",h.displayType])},c.toDisplayString(a.value.name),3)):c.createCommentVNode("",!0),c.createElementVNode("div",_i,c.toDisplayString(h.plate),1)],512))}}),Ps="",Vn=ye(Ci,[["__scopeId","data-v-6395bb5a"]]),ee=c.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1}},emits:["ready","resize","clipboard_success","clipboard_error","start","end"],setup(e,{expose:t,emit:o}){const n=e,r=o;let s="start";const a=()=>{s="start",r("start")},d=()=>{s="end",r("end")},u=()=>{s=="start"?d():a()},h=c.ref();let p=!1,b,C;c.onMounted(()=>{b=new er(h.value,!1),b.on("resize",(w,E)=>{r("resize",w,E,h.value.getBoundingClientRect()),C?.(b),p||(p=!0,n.effectTriggerTiming!=="manual"&&a(),r("ready",b),n.effectTriggerTiming=="immediate"&&u())}),b.on("mouseEnter",()=>{n.effectTriggerTiming=="mouseMove"&&u()}),b.on("mouseLeave",()=>{n.effectTriggerTiming=="mouseMove"&&u()}),b.on("tap",()=>{if(n.effectTriggerTiming=="click"&&u(),n.supportCopyText){const w=sn(h.value).getInnerText();rr(w).then(()=>{r("clipboard_success",w)}).catch(E=>{r("clipboard_error",E.toString())})}}),b.start()});const S=()=>new Promise(w=>{if(b)return w(b);C=w}),y=async()=>(await S(),h.value.getBoundingClientRect());return c.onUnmounted(()=>{b?.destroy()}),t({getElement:()=>h.value,getApp:S,getSize:y}),(w,E)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["container",[n.type]]),ref_key:"r",ref:h,style:c.normalizeStyle({position:"relative",boxSizing:"border-box",display:n.type=="shrink"?"inline-block":"block",width:n.type=="full"?"100%":"auto",height:n.type=="full"?"100%":"auto"})},[c.renderSlot(w.$slots,"default")],6))}}),Dn=c.defineComponent({customOptions:{Container:ee},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(e,{expose:t,emit:o}){const n=e,r=o,s=c.reactive({}),a=c.reactive({});let d=n.name,u=n.duration,h=n.timingFunction,p=n.delay,b=n.repeat,C=n.direction;function S(I){switch(d=I,d){case"superRainbow":u=n.duration||15e3;break;case"heartBeat":u=n.duration||1300;break;case"statusProcessing":u=n.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":u=n.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":u=n.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":u=n.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":u=n.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":u=n.duration||600;break;default:u=n.duration||500;break}switch(d){case"superRainbow":h=n.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":h=n.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":h=n.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":h=n.timingFunction||"ease-in-out";break;default:h=n.timingFunction||"ease";break}switch(d){default:p=n.delay||0;break}switch(d){case"superRainbow":case"statusProcessing":b=n.repeat||"infinite";break;default:b=n.repeat||1;break}switch(d){case"superRainbow":C=n.direction||"alternate";break;default:C=n.direction||"normal";break}switch(d){case"hinge":case"rotateFall":a.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":a.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":a.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":a.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":a.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":a.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":a.transformOrigin="right bottom";break;default:delete a.transformOrigin;break}switch(d){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":s.overflow="visible";break;default:s.overflow="hidden";break}switch(d){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":a.backfaceVisibility="visible";break;default:delete a.backfaceVisibility;break}}const y=c.ref(),w=I=>{s.perspective=n.perspective,I.on("animationstart",x=>{r("cssanimationstart",x.animationName)}),I.on("animationend",x=>{r("cssanimationend",x.animationName)})};function E(){y.value.style.animation="none",y.value.offsetHeight,y.value.style.animation=null}const R=()=>{a.animation="none"},F=()=>{E(),a.animation=`${u}ms ${h} ${p}ms ${b} ${C} ${n.fillMode} ${n.playState} ${d}`},B=I=>{I&&S(I),R(),C="normal",F()},k=I=>{I&&S(I),R(),C="reverse",F()},D=()=>{a.animation="none"};return c.watch(()=>n.name,()=>{S(n.name)},{immediate:!0}),t({trigger:B,triggerReverse:k,clear:D}),(I,x)=>(c.openBlock(),c.createBlock(ee,{class:"css-animation",type:n.containerType,supportCopyText:n.supportCopyText,effectTriggerTiming:n.effectTriggerTiming,style:c.normalizeStyle(s),onReady:w,onStart:R,onEnd:F},{default:c.withCtx(()=>[c.createElementVNode("div",{class:"css-animation-inner",ref_key:"animationRef",ref:y,style:c.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[c.renderSlot(I.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),Is="",Un=c.defineComponent({customOptions:{Container:ee,CSSAnimation:Dn},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:_.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(e,{expose:t,emit:o}){const n=e,r=o,s=c.ref(),a=c.reactive({}),d=()=>{r("ready",I,x)},u=()=>{w()},h=c.ref();let p="rotateRightSideFirst",b=n.effect;function C(M,U){switch(b){case"static":U();break;default:M();break}}let S=!1;const y=new pt,w=()=>{const M={},U={};y.clear(),y.frameDuration=n.duration,C(()=>{p=b},()=>{y.addTween(M,U,{delay:n.delay/n.duration,easeFunction:n.easeFunction,onStart:()=>{r(S?"pageCloseStart":"pageOpenStart")},onUpdate:A=>{a.transform="","x"in A&&(a.transform+=` translateX(${A.x}%)`),"y"in A&&(a.transform+=` translateY(${A.y}%)`),"rx"in A&&(a.transform+=` rotateX(${A.rx}deg)`),"ry"in A&&(a.transform+=` rotateY(${A.ry}deg)`),"scale"in A&&(a.transform+=` scale(${A.scale})`),"opacity"in A&&(a.opacity=`${A.opacity}`)},onComplete:()=>{r(S?"pageCloseEnd":"pageOpenEnd")}})})};c.watch(()=>[n.effect,n.delay,n.duration,n.easeFunction],()=>{b=n.effect,w()},{immediate:!0});const E=()=>{r(S?"pageCloseStart":"pageOpenStart")},R=()=>{r(S?"pageCloseEnd":"pageOpenEnd")},F=()=>{C(()=>{h.value.trigger(p)},()=>{y.play()})},B=()=>{C(()=>{h.value.triggerReverse(p)},()=>{y.reverse()})},k=()=>{a.transform="none",a.opacity="1"};function D(){C(()=>{k()},()=>{h.value?.clear()})}const I=M=>{M&&(b=M,w()),S=!1,D(),F()},x=M=>{M&&(b=M,w()),S=!0,D(),B()};return t({open:I,close:x,clear:k,getElement:()=>s.value.getElement()}),(M,U)=>(c.openBlock(),c.createBlock(ee,{class:"page",ref_key:"pageRef",ref:s,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:d,onResize:u},{default:c.withCtx(()=>[c.createVNode(Dn,{ref_key:"cssAnimationRef",ref:h,containerType:"full",effectTriggerTiming:"manual",duration:n.duration,delay:n.delay,timingFunction:n.timingFunction,onCssanimationstart:E,onCssanimationend:R},{default:c.withCtx(()=>[c.createElementVNode("div",{class:"page-inner",style:c.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[c.renderSlot(M.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),zn=c.defineComponent({customOptions:{Page:Un,Container:ee},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:_.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(e,{expose:t,emit:o}){const n=e,r=o;let s=-1,a=-1,d;const u=[];let h=[],p=[],b=[];function C(O){return O>=0&&O<h.length}function S(){return a>s}function y(O,v,te){switch(O){case s:return S()?v:te;case a:return S()?te:v;default:return"static"}}function w(O,v){switch(O){case"moveToLeft":return y(v,"moveToLeft","moveFromRight");case"moveToRight":return y(v,"moveToRight","moveFromLeft");case"moveToTop":return y(v,"moveToTop","moveFromBottom");case"moveToBottom":return y(v,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return y(v,"fade","moveFromLeft");case"moveFromRightPrevFade":return y(v,"fade","moveFromRight");case"moveFromTopPrevFade":return y(v,"fade","moveFromTop");case"moveFromBottomPrevFade":return y(v,"fade","moveFromBottom");case"moveToLeftFade":return y(v,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return y(v,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return y(v,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return y(v,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return y(v,"moveToLeft","moveFromRight");case"moveToRightEasing":return y(v,"moveToRight","moveFromLeft");case"moveToTopEasing":return y(v,"moveToTop","moveFromBottom");case"moveToBottomEasing":return y(v,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return y(v,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return y(v,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return y(v,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return y(v,"scaleToSmall","moveFromBottom");case"scaleSmall":return y(v,"scaleToSmall","scaleFromLarge");case"scaleLarge":return y(v,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return y(v,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return y(v,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return y(v,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return y(v,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return y(v,"moveToBottom","scaleFromSmall");case"glueToLeft":return y(v,"rotateRightSideFirst","moveFromRight");case"glueToRight":return y(v,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return y(v,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return y(v,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return y(v,"flipOutLeft","flipInRight");case"flipToRight":return y(v,"flipOutRight","flipInLeft");case"flipToTop":return y(v,"flipOutTop","flipInBottom");case"flipToBottom":return y(v,"flipOutBottom","flipInTop");case"rotateFall":return y(v,"rotateFall","scaleFromSmall");case"newspaper":return y(v,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return y(v,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return y(v,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return y(v,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return y(v,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return y(v,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return y(v,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return y(v,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return y(v,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return y(v,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return y(v,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return y(v,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return y(v,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return y(v,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return y(v,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return y(v,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return y(v,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return y(v,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return y(v,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return y(v,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return y(v,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return y(v,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return y(v,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return y(v,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return y(v,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return y(v,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return y(v,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return y(v,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return y(v,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return y(v,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return y(v,"rotateSlideOut","rotateSlideIn")}}function E(O,v=600,te=600){switch(O){case s:return v;case a:return te;default:return n.duration}}function R(O,v){switch(O){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return E(v,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return E(v,700,600);case"scaleSmall":return E(v,700,500);case"scaleLarge":return E(v,500,700);case"scaleToLargePrevScaleToSmall":return E(v,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return E(v,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return E(v,800,600);default:return n.duration}}let F=n.timingFunction;function B(O){switch(O){default:return n.easeFunction}}function k(O,v){switch(O){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(v){case s:F=S()?"ease-in-out":"ease";break;case a:default:F=S()?"ease":"ease-in-out"}return B(v);default:return F=n.timingFunction,n.easeFunction}}function D(O,v=300){switch(O){case a:return n.delay+v;default:return n.delay}}function I(O,v){switch(O){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return D(v,500);case"scaleSmall":case"scaleLarge":return D(v,300);case"scaleToLargePrevScaleToSmall":return D(v,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return D(v,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return D(v,180);default:return n.delay}}let x=2,M=2;const U=()=>{x=2,M=2},A=()=>{x=2,M=3},Z=()=>{x=3,M=2};function oe(O){switch(n.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":Z();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":S()?Z():A();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":S()?A():Z();break;default:U();break}C(s)&&s==O&&(b[s].style.zIndex=`${x}`,b[s].style.visibility="visible"),C(a)&&a==O&&(b[a].style.zIndex=`${M}`,b[a].style.visibility="visible")}function H(O){A(),O==s&&(b[s].style.zIndex=`${x}`,b[s].style.visibility="hidden"),O==a&&(b[a].style.zIndex=`${M}`,b[a].style.visibility="visible",u.shift()?.(),r("routeChangeEnd",s,a,h.length),s=a)}const $=c.ref();function G(O=0,v=!1){if(!$.value)return;let te=0;c.render(c.h("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},h.map((W,V)=>{const re=w(n.effect,V);return c.h("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:s==V?"visible":"hidden",zIndex:v?"1":"0"}},W.pageKey?{key:W.pageKey}:{}),c.h(Un,{effect:re,duration:R(n.effect,V),easeFunction:k(n.effect,V),timingFunction:F,delay:I(n.effect,V),onReady:(z,g)=>{p[V]={open:z,close:g},++te==O&&(d?.(),r("renderComplete"))},onPageOpenStart:()=>{oe(V)},onPageOpenEnd:()=>{H(V)},onPageCloseStart:()=>{oe(V)},onPageCloseEnd:()=>{H(V)}},{default:()=>W.component instanceof HTMLElement?c.h("div",{...W.attributes,innerHTML:W.component.innerHTML}):c.h(W.component,W.attributes,()=>W.child)}))})),$.value),b=$.value.children[0].children}c.watch(()=>n.effect,()=>{G()});function ve(O=[]){h=[...O],h.forEach(v=>{v.pageKey=v.pageKey||Dt()}),d=()=>{s=-1,q(0)},G(h.length,!0)}function Se(O){O.pageKey=O.pageKey||Dt(),h.push(O),d=()=>{q(h.length-1)},G(1,h.length==1)}function Le(){h.length<=1||q(h.length-2,()=>{h.splice(h.length-1,1),s=h.length-1,G()})}function Pe(){q(s+1)}function Ne(){q(s-1)}const xe=new No(1);function q(O,v){xe.addTask(()=>new Promise(te=>{const W=()=>{v?.(),te()};if(!C(O)){W();return}if(a=O,a==s){W();return}u.push(W),G(),r("routeChangeStart",s,a,h.length),S()?(C(s)&&p[s].open(),C(a)&&p[a].open()):(C(s)&&p[s].close(),C(a)&&p[a].close())}))}return t({reset:ve,push:Se,pop:Le,forward:Pe,back:Ne,goto:q,currentPageIndex:()=>s,totalPages:()=>h.length}),(O,v)=>(c.openBlock(),c.createElementBlock("div",{class:"routes",ref_key:"routesRef",ref:$,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),$n=c.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},isGlobal:{type:Boolean,default:!0},color:{default:"rgba(0, 0, 0, 0.25)"}},setup(e,{expose:t}){const o=e,n=c.computed(()=>({"background-color":o.color,position:"fixed","z-index":"99999",display:"block",width:"100%",height:"100%",inset:"0",overflow:"hidden"})),r=c.ref(),s=document.documentElement.style.overflow;let a;return c.watch(()=>o.visible,()=>{o.isGlobal?document.documentElement.style.overflow=o.visible?"hidden":s:(a||(a=r.value.parentElement.style.overflow||"visible"),r.value.parentElement.style.overflow=o.visible?"hidden":a)},{immediate:!0}),t({}),(d,u)=>o.visible?(c.openBlock(),c.createElementBlock("div",{key:0,class:"overlay",style:c.normalizeStyle(n.value),ref_key:"el",ref:r},[c.renderSlot(d.$slots,"default")],4)):c.createCommentVNode("",!0)}}),De=c.defineComponent({customOptions:{Overlay:$n,Container:ee},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},isGlobal:{type:Boolean,default:!0},overlayBgColor:{},popValue:{}},emits:["open","close","resize","clickOverlay"],setup(e,{expose:t,emit:o}){const n=e,r=o,s=new pt({frameDuration:n.dur}),a=c.reactive({position:"absolute",overflow:"hidden",opacity:"1"}),d=c.ref(!1),u=c.ref("full");c.watch(()=>[n.directionFrom,n.popValue],()=>{s.clear();const w=!n.popValue,E=n.popValue?n.popValue:100,R=n.popValue?"px":"%";switch(n.directionFrom){case"left":a.height="100%",w?delete a.width:a.width=`${E}${R}`,a.top="0",a.bottom="0",delete a.right,s.addTween({left:E},{left:0},{easeFunction:_.Quadratic.Out,onUpdate(F){a.left=`-${F.left}${R}`},onComplete:b});break;case"right":a.height="100%",w?delete a.width:a.width=`${E}${R}`,a.top="0",a.bottom="0",delete a.left,s.addTween({right:E},{right:0},{easeFunction:_.Quadratic.Out,onUpdate(F){a.right=`-${F.right}${R}`},onComplete:b});break;case"top":a.width="100%",w?delete a.height:a.height=`${E}${R}`,a.left="0",a.right="0",delete a.bottom,s.addTween({top:E},{top:0},{easeFunction:_.Quadratic.Out,onUpdate(F){a.top=`-${F.top}${R}`},onComplete:b});break;case"bottom":a.width="100%",w?delete a.height:a.height=`${E}${R}`,a.left="0",a.right="0",delete a.top,s.addTween({bottom:E},{bottom:0},{easeFunction:_.Quadratic.Out,onUpdate(F){a.bottom=`-${F.bottom}${R}`},onComplete:b});break;case"center":delete a.width,delete a.height,a.left="50%",delete a.right,a.top="50%",delete a.bottom,s.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:_.Quadratic.Out,onUpdate(F){a.transform=`translate(-50%, -50%) scale(${F.scale})`,a.opacity=`${F.opacity}`},onComplete:b});break;case"absolute":a.width=n.absoluteWidth,a.height=n.absoluteHeight,a.left=n.absoluteLeft,a.top=n.absoluteTop,delete a.right,delete a.bottom;break}switch(n.directionFrom){case"center":u.value="shrink",a.transform="translate(-50%, -50%)";break;case"absolute":u.value="shrink",delete a.transform,delete a.opacity;break;default:u.value="full",delete a.transform,delete a.opacity;break}w&&(u.value="shrink")},{immediate:!0}),c.watch(()=>n.absoluteLeft,()=>{switch(n.directionFrom){case"absolute":a.left=n.absoluteLeft;break}}),c.watch(()=>n.absoluteTop,()=>{switch(n.directionFrom){case"absolute":a.top=n.absoluteTop;break}}),c.watch(()=>n.absoluteWidth,()=>{switch(n.directionFrom){case"absolute":a.width=n.absoluteWidth;break}}),c.watch(()=>n.absoluteHeight,()=>{switch(n.directionFrom){case"absolute":a.height=n.absoluteHeight;break}});const h=(w,E,R)=>{r("resize",w,E,R)};let p="open";function b(){p=="open"?r("open"):(d.value=!1,r("close"))}function C(){d.value=!0,p="open",s.play()}function S(){switch(p="close",n.directionFrom){case"absolute":b();break;default:s.reverse();break}}function y(w){const E=n.directionFrom=="absolute"&&n.absoluteWidth=="100%"&&n.absoluteHeight=="100%"?"pop-content":"pop";w.target&&rn(w.target,E)&&(n.closeWhenClickOverlay&&S(),r("clickOverlay"))}return t({open:C,close:S}),(w,E)=>(c.openBlock(),c.createBlock($n,{visible:d.value,isGlobal:n.isGlobal,color:n.overlayBgColor},{default:c.withCtx(()=>[c.createElementVNode("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:y},[c.createVNode(ee,{class:"pop-content",type:u.value,style:c.normalizeStyle(a),onResize:h},{default:c.withCtx(()=>[c.renderSlot(w.$slots,"default",{},()=>[E[0]||(E[0]=c.createElementVNode("div",null,null,-1))])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),wi=["src"],Si=c.defineComponent({name:"Image",customOptions:{Container:ee,Pop:De},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(e,{expose:t,emit:o}){const n=e,r=o,s=new pt({frameDuration:n.dur}),a=c.ref(0),d=c.ref(0),u=c.ref(0),h=c.ref(0),p=c.ref(0),b=c.ref(0),C=c.ref(0),S=c.ref(0),y=c.ref(!0),w=c.ref(0),E=c.ref(0);nr(n.src).then(H=>{w.value=H.width,E.value=H.height,I()}).catch(()=>{y.value=!1});const R=c.ref(0),F=c.ref(0),B=(H,$)=>{R.value=H,F.value=$,I()},k=c.ref(0),D=c.ref(0);function I(){if(!R.value||!F.value||!w.value||!E.value)return;const H=Kt(n.mode,w.value,E.value,R.value,F.value);k.value=H.width,D.value=H.height;const{width:$,height:G}=Jo(),ve=Kt("aspectFit",w.value,E.value,$,G);C.value=ve.width,S.value=ve.height,p.value=($-C.value)/2,b.value=(G-S.value)/2}const x=(H,$,G)=>{r("settled",G.x,G.y,G.width,G.height)};let M=!1;const U=c.ref(),A=c.ref();async function Z(){if(!n.openImageDetailWhenClick)return;const H=await U.value.getSize();s.clear(),s.addTween({left:H.x,top:H.y,width:H.width,height:H.height},{left:p.value,top:b.value,width:C.value,height:S.value},{easeFunction:_.Quadratic.Out,onUpdate($){a.value=$.left,d.value=$.top,u.value=$.width,h.value=$.height},onComplete(){M&&A.value.close(),M=!M}}),M||(A.value.open(),s.play())}function oe(){M&&s.reverse()}return t({}),(H,$)=>(c.openBlock(),c.createBlock(ee,{class:"image",type:"full",style:c.normalizeStyle({backgroundColor:n.bgColor}),onResize:B,onClick:Z},{default:c.withCtx(()=>[y.value?(c.openBlock(),c.createBlock(ee,{key:0,class:"image-inner",ref_key:"imageRef",ref:U,type:"shrink",style:c.normalizeStyle({width:k.value+"px",height:D.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${k.value}px ${D.value}px`}),onResize:x},null,8,["style"])):c.createCommentVNode("",!0),y.value?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(ee,{key:1,type:"shrink"},{default:c.withCtx(()=>[c.createElementVNode("img",{src:n.src,style:{display:"block",objectFit:"contain"}},null,8,wi)]),_:1})),c.createVNode(De,{ref_key:"popRef",ref:A,"direction-from":"absolute","absolute-left":`${a.value}px`,"absolute-top":`${d.value}px`,"absolute-width":`${u.value}px`,"absolute-height":`${h.value}px`,"close-when-click-overlay":!1,onClickOverlay:oe},{default:c.withCtx(()=>[c.createElementVNode("div",{class:"image-pop",style:c.normalizeStyle({width:"100%",height:"100%",backgroundImage:`url(${n.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),Fs="",Hn=ye(Si,[["__scopeId","data-v-fdc8ba41"]]),Pi={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},jn=c.defineComponent({customOptions:{Image:Hn,Container:ee,Routes:zn},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(e,{expose:t,emit:o}){const n=e,r=c.ref(0);function s(C,S){r.value=S}const a=c.ref(),d=C=>{C.on("panLeft",()=>{a.value?.forward()}),C.on("panRight",()=>{a.value?.back()}),a.value.reset(n.urls.map(S=>({component:c.h(Hn,{mode:"aspectFit",src:S,openImageDetailWhenClick:!1})})))},u=c.ref();function h(){u.value?.open()}function p(){u.value?.close()}const b=C=>{C.target&&rn(C.target,"image")&&p()};return t({open:h,close:p}),(C,S)=>(c.openBlock(),c.createBlock(De,{ref_key:"popRef",ref:u,directionFrom:"absolute",onClick:b},{default:c.withCtx(()=>[n.urls.length>1?(c.openBlock(),c.createElementBlock("div",Pi,c.toDisplayString(r.value+1)+" / "+c.toDisplayString(n.urls.length),1)):c.createCommentVNode("",!0),c.createVNode(ee,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:d},{default:c.withCtx(()=>[c.createVNode(zn,{ref_key:"routesRef",ref:a,effect:n.effect,onRouteChangeEnd:s},null,8,["effect"])]),_:1})]),_:1},512))}}),Ii={class:"pop-tel"},Fi=["href"],ki=c.defineComponent({customOptions:{Pop:De},inheritAttrs:!0,__name:"PopTel",props:{tel:{}},setup(e,{expose:t,emit:o}){const n=c.ref();function r(){n.value?.open()}function s(){n.value?.close()}return t({open:r,close:s}),(a,d)=>(c.openBlock(),c.createBlock(De,{directionFrom:"bottom",closeWhenClickOverlay:!1,ref_key:"el",ref:n},{default:c.withCtx(()=>[c.createElementVNode("div",Ii,[c.createElementVNode("div",null,c.toDisplayString(a.tel),1),c.createElementVNode("a",{class:"pop-tel-call",onClick:s,href:`tel:${a.tel}`}," 呼叫 ",8,Fi),c.createElementVNode("div",{class:"pop-tel-cancel",onClick:s}," 取消 ")])]),_:1},512))}}),ks="",Yn=ye(ki,[["__scopeId","data-v-c1425500"]]),Oi={class:"lot-main"},Ri={class:"lot-detail"},Li={class:"bold"},Ni=c.defineComponent({customOptions:{LayoutPage:Oe,Footer:Bn,PlateDisplay:Vn,ViewDocument:un,PopTel:Yn,ImageView:jn},inheritAttrs:!0,__name:"Lot",setup(e){const t=pe.useRouter();function o(){t.push({name:"view-document",params:{title:"收费标准",src:encodeURIComponent("https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159")}})}const n=c.ref();function r(){n.value?.open()}const s=c.ref();function a(){s.value?.open()}return(d,u)=>(c.openBlock(),c.createBlock(Oe,{class:"lot"},{footer:c.withCtx(()=>[c.createVNode(Bn)]),global:c.withCtx(()=>[c.createVNode(Yn,{tel:"15851575410",ref_key:"popTelEl",ref:n},null,512),c.createVNode(jn,{urls:["https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159","https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159"],ref_key:"imageViewEl",ref:s},null,512)]),default:c.withCtx(()=>[u[15]||(u[15]=c.createElementVNode("div",{class:"lot-main-bg"},null,-1)),c.createElementVNode("div",Oi,[u[12]||(u[12]=c.createElementVNode("div",null,"若临测试泊位机器人停车场",-1)),u[13]||(u[13]=c.createElementVNode("div",null,[c.createElementVNode("div"),c.createElementVNode("div",null,"编号"),c.createElementVNode("div")],-1)),u[14]||(u[14]=c.createElementVNode("div",null,[c.createElementVNode("span",null,"103"),c.createElementVNode("span",null,"002")],-1)),c.createElementVNode("div",null,[u[0]||(u[0]=c.createElementVNode("div",null,"停车场主页",-1)),u[1]||(u[1]=c.createElementVNode("div",null,"更换附近车位",-1)),c.createElementVNode("div",{onClick:o},"收费标准")]),c.createElementVNode("div",Ri,[u[4]||(u[4]=c.createElementVNode("div",null,[c.createElementVNode("div",null,"待支付"),c.createElementVNode("div",{class:"red"},"¥0.01")],-1)),u[5]||(u[5]=c.createElementVNode("div",null,[c.createElementVNode("div",null,"已支付"),c.createElementVNode("div",null,"¥0.01")],-1)),u[6]||(u[6]=c.createElementVNode("div",null,[c.createElementVNode("div",null,"订单编号"),c.createElementVNode("div",null,"33333333333")],-1)),u[7]||(u[7]=c.createElementVNode("div",null,[c.createElementVNode("div",null,"开始时间"),c.createElementVNode("div",null,"2025-04-08 09:41:25")],-1)),u[8]||(u[8]=c.createElementVNode("div",null,[c.createElementVNode("div",null,"停车时长"),c.createElementVNode("div",null,"51小时53分钟15秒")],-1)),u[9]||(u[9]=c.createElementVNode("div",null,[c.createElementVNode("div",null,"优惠券"),c.createElementVNode("div",{class:"red"},"1分钟")],-1)),u[10]||(u[10]=c.createElementVNode("div",null,[c.createElementVNode("div",null,"优惠信息"),c.createElementVNode("div",{class:"red"},"xxxx")],-1)),u[11]||(u[11]=c.createElementVNode("div",{class:"lot-detail-gap"},null,-1)),c.createElementVNode("div",null,[u[2]||(u[2]=c.createElementVNode("div",null,"车牌号",-1)),c.createElementVNode("div",Li,[c.createVNode(Vn,{plate:"苏U77777","plate-type":"b"})])]),c.createElementVNode("div",null,[u[3]||(u[3]=c.createElementVNode("div",null,"现场照片",-1)),c.createElementVNode("div",{onClick:a},"查看")])]),c.createElementVNode("div",{class:"lot-actions"},[c.createElementVNode("div",{onClick:r},"联系客服")])])]),_:1}))}}),Os="",xi=ye(Ni,[["__scopeId","data-v-feee85ac"]]),Ai=c.defineComponent({customOptions:{LayoutPage:Oe},inheritAttrs:!0,__name:"Park",setup(e){return(t,o)=>(c.openBlock(),c.createBlock(Oe,{class:"park"},{default:c.withCtx(()=>o[0]||(o[0]=[c.createTextVNode("Park")])),_:1}))}}),Rs="",Mi=ye(Ai,[["__scopeId","data-v-9704593b"]]),Bi=pe.createRouter({history:pe.createWebHashHistory("/"),routes:[{path:"/view-document/:title/:src",name:"view-document",component:un},{path:"/",name:"xg",redirect:"/lot"},{path:"/lot",name:"lot",component:xi},{path:"/park",name:"park",component:Mi}],scrollBehavior:(e,t,o)=>o||{left:0,top:0}}),It=c.ref("next"),tt=[];Bi.beforeEach((e,t,o)=>{const n=tt.length,r=tt.findIndex(s=>s==e.name);n>1&&r>=0&&r<n-1?(It.value="prev",tt.splice(r+1)):(It.value="next",tt.push(e.name)),o()});const Vi="increment",Di="decrement",Ui="incrementAction";function zi(){return{store:le.useStore()}}function $i(e,t){let o=le.mapState;return typeof e=="string"&&e.length>0?o=le.createNamespacedHelpers(e).mapState:t=e,Gn(t,o)}function Hi(e,t){let o=le.mapGetters;return typeof e=="string"&&e.length>0?o=le.createNamespacedHelpers(e).mapGetters:t=e,Gn(t,o)}function ji(e,t){let o=le.mapMutations;return typeof e=="string"&&e.length>0?o=le.createNamespacedHelpers(e).mapMutations:t=e,Array.isArray(t),o(t)}function Yi(e,t){let o=le.mapActions;return typeof e=="string"&&e.length>0?o=le.createNamespacedHelpers(e).mapActions:t=e,Array.isArray(t),o(t)}function Gn(e,t){const o=le.useStore(),n={},r=t(e);return Object.keys(r).forEach(s=>{const a=r[s].bind({$store:o});n[s]=c.computed(a)}),n}return Object.defineProperty(Y,"RouterLink",{enumerable:!0,get:()=>pe.RouterLink}),Object.defineProperty(Y,"RouterView",{enumerable:!0,get:()=>pe.RouterView}),Object.defineProperty(Y,"useRoute",{enumerable:!0,get:()=>pe.useRoute}),Object.defineProperty(Y,"useRouter",{enumerable:!0,get:()=>pe.useRouter}),Y.DECREMENT=Di,Y.INCREMENT=Vi,Y.INCREMENTACTION=Ui,Y.getInstance=ho,Y.getVNode=Vt,Y.renderComponent=mo,Y.routeDirection=It,Y.useVueEffect=po,Y.useVuex=zi,Y.useVuexActions=Yi,Y.useVuexGetters=Hi,Y.useVuexMutations=ji,Y.useVuexStates=$i,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Y}({},vue,vue-router,vuex);
29
+ `))}ao();const dt=new be;let Oe,Re,Le,Ne;Fn(document.documentElement,()=>{setTimeout(()=>{const n=getComputedStyle(document.documentElement),t=n.getPropertyValue("--sat");t!==Oe&&dt.emit("top",t),Oe=t;const e=n.getPropertyValue("--sar");e!==Re&&dt.emit("right",e),Re=e;const s=n.getPropertyValue("--sab");s!==Le&&dt.emit("bottom",s),Le=s;const i=n.getPropertyValue("--sal");i!==Ne&&dt.emit("left",i),Ne=i},0)});const co={onTop:n=>(Oe&&n(Oe),dt.on("top",n),()=>{dt.off("top",n)}),onRight:n=>(Re&&n(Re),dt.on("right",n),()=>{dt.off("right",n)}),onBottom:n=>(Le&&n(Le),dt.on("bottom",n),()=>{dt.off("bottom",n)}),onLeft:n=>(Ne&&n(Ne),dt.on("left",n),()=>{dt.off("left",n)})};function On(n,t,e,s,i){const r=t/e;let o=0,a=0;switch(n){case"aspectFit":r>=1?(o=s,a=o/r,a>i&&(a=i,o=a*r)):(a=i,o=a*r,o>s&&(o=s,a=o/r));break;case"aspectFill":r>=1?(a=i,o=a*r):(o=s,a=o/r);break;case"widthFix":o=s,a=o/r;break;case"heightFix":a=i,o=a*r;break;case"scaleToFill":default:o=s,a=i;break}return{width:o,height:a}}function lo(n){try{const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=n.width,t.height=n.height,e.drawImage(n,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}catch{return new ImageData(n.width,n.height)}}const ho={1:705234,2:8108026,3:6346665,4:16630114,5:16607842,6:16158139,7:2542847,8:10640125,9:16735870,10:8978266,11:16580418,12:16754221,13:16725759,14:14436630,15:6844849,16:13744437,17:1817755,18:16744272,19:4964291,20:16750848,aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};class ct{static NAMES=ho;_color={r:0,g:0,b:0,a:1};constructor(t,e){t&&this.setColor(t),this.setAlpha(e)}get color(){return this._color}set color(t){const e=`Color: Unknown color(${t}) type(${typeof t})`;if(typeof t=="number")this.setHEX(t);else if(typeof t=="string"){let s;if(s=/^(\w+)\(([^)]*)\)/.exec(t)){const i=s[2];let r;switch(s[1]){case"rgb":case"rgba":(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?(this.r=parseInt(r[1],10),this.g=parseInt(r[2],10),this.b=parseInt(r[3],10),this.a=r[4]?parseFloat(r[4]):1):(r=/^\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?(this.r=Y(parseFloat(r[1]),0,100)*255/100,this.g=Y(parseFloat(r[2]),0,100)*255/100,this.b=Y(parseFloat(r[3]),0,100)*255/100,this.a=r[4]?parseFloat(r[4]):1):console.warn(e);break;case"hsl":case"hsla":(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,r[4]?parseFloat(r[4]):1):console.warn(e);break;case"hsv":case"hsva":case"hsb":case"hsba":(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)%\s*,\s*(\d*\.?\d+)%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(i))?this.setHSV(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,r[4]?parseFloat(r[4]):1):console.warn(e);break;default:console.warn(e)}}else if(s=/#([A-Fa-f0-9]+)/.exec(t)){const i=s[1],r=i.length;r===3?this.setRGB(parseInt(i.charAt(0),16),parseInt(i.charAt(1),16),parseInt(i.charAt(2),16),1):r===6||r===8?this.setHEX(parseInt(i,16)):console.warn(e)}else if(t&&t.length>0)try{this.setColorName(t)}catch{console.warn(e)}else console.warn(e)}else t instanceof ct?this.setRGB(t.r,t.g,t.b,t.a):Object.prototype.hasOwnProperty.call(t,"r")&&Object.prototype.hasOwnProperty.call(t,"g")&&Object.prototype.hasOwnProperty.call(t,"b")?this.setRGB(t.r,t.g,t.b,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"l")?this.setHSL(t.h,t.s,t.l,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"v")?this.setHSV(t.h,t.s,t.v,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):Object.prototype.hasOwnProperty.call(t,"h")&&Object.prototype.hasOwnProperty.call(t,"s")&&Object.prototype.hasOwnProperty.call(t,"b")?this.setHSV(t.h,t.s,t.b,Object.prototype.hasOwnProperty.call(t,"a")?t.a:1):console.warn(e)}setColor(t){return this.color=t,this}set(t){return this.setColor(t)}get r(){return this._color.r}set r(t){try{this._color.r=Y(Math.round(bt(t)),0,255)}catch{}}get g(){return this._color.g}set g(t){try{this._color.g=Y(Math.round(bt(t)),0,255)}catch{}}get b(){return this._color.b}set b(t){try{this._color.b=Y(Math.round(bt(t)),0,255)}catch{}}get a(){return this._color.a}set a(t){try{this._color.a=Y(bt(t),0,1)}catch{}}setAlpha(t){return this.a=t,this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){const e=this.r,s=this.g,i=this.b,r=t.value;return this.r=r[0]*e+r[3]*s+r[6]*i,this.g=r[1]*e+r[4]*s+r[7]*i,this.b=r[2]*e+r[5]*s+r[8]*i,this}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this.a=t[e+3],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t[e+3]=this.a,t}toRGBString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${Ht(this.a,6)})`}toHexString(){return this.a===1?("000000"+this.hex.toString(16)).slice(-6):("00000000"+this.hex.toString(16)).slice(-8)}toString(){return this.a===1?"#"+this.toHexString():this.toRGBString()}toColorSpaceString(t=Jt){Yn.fromWorkingColorSpace(nt.copy(this),t);const e=nt.r,s=nt.g,i=nt.b;return t!==Jt?`color(${t} ${e.toFixed(3)} ${s.toFixed(3)} ${i.toFixed(3)})`:this.toRGBString()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b,yield this.a}clone(){return new ct(this.color)}copy(t){return this.setColor(t.color),this}copySRGBToLinear(t){return this.r=Qt(t.r),this.g=Qt(t.g),this.b=Qt(t.b),this}copyLinearToSRGB(t){return this.r=Kt(t.r),this.g=Kt(t.g),this.b=Kt(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}add(t){return this.r=this.r+t.r,this.g=this.g+t.g,this.b=this.b+t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r=this.r+t,this.g=this.g+t,this.b=this.b+t,this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}sub(t){return this.r=this.r-t.r,this.g=this.g-t.g,this.b=this.b-t.b,this}multiply(t){return this.r=this.r*t.r,this.g=this.g*t.g,this.b=this.b*t.b,this}multiplyScalar(t){return this.r=this.r*t,this.g=this.g*t,this.b=this.b*t,this}opposite(t=!0,e="#000000",s="#ffffff"){if(t)return this.setColor(this.r*.299+this.g*.587+this.b*.114>186?e:s);{const{r:i,g:r,b:o}=this.color;return this.r=255-i,this.g=255-r,this.b=255-o,this}}lighten(t){t=Y(t,0,1);const{r:e,g:s,b:i}=this.color;return this.r=e+(255-e)*t,this.g=s+(255-s)*t,this.b=i+(255-i)*t,this}darken(t){t=Y(t,0,1);const{r:e,g:s,b:i}=this.color;return this.r=e*(1-t),this.g=s*(1-t),this.b=i*(1-t),this}lerp(t,e){e=Y(e,0,1);const{r:s,g:i,b:r}=this.color;return this.r=s+(t.r-s)*e,this.g=i+(t.g-i)*e,this.b=r+(t.b-r)*e,this}lerpColors(t,e,s){return s=Y(s,0,1),this.r=t.r+(e.r-t.r)*s,this.g=t.g+(e.g-t.g)*s,this.b=t.b+(e.b-t.b)*s,this}static gradient(t,e,s){try{return nt.lerpColors(new ct(t),new ct(e),s).toString()}catch{return e}}static random(){return nt.setHEX(Math.random()*16777215).toString()}static nextIndex=0;static next(t=ct.nextIndex){ct.nextIndex=t;const e=Object.keys(ct.NAMES),s=e.length;return nt.setHEX(ct.NAMES[e[ct.nextIndex++%s]]).toString()}setColorName(t){const e=ct.NAMES[t.toLowerCase()];return e!==void 0?this.setHEX(e):t==="none"?this.a=0:(this.a=1,console.warn("Color.setColorName: Unknown color "+t)),this}static getColors(){return Object.values(ct.NAMES).map(t=>nt.setHEX(t).toString())}setRGB(t,e,s,i=1){return this.r=t,this.g=e,this.b=s,this.a=i,this}get rgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}setHEX(t){return t=Math.floor(t),t<16777216?(this.r=t>>16&255,this.g=t>>8&255,this.b=t&255,this.a=1):(this.r=t>>24&255,this.g=t>>16&255,this.b=t>>8&255,this.a=(t&255)/255),this}get hex(){let t=(this.r<<16)+(this.g<<8)+this.b;return this.a!==1&&(t=t<<8,t+=Math.round(this.a*255)),t}setHSL(t,e,s,i=1){const r=fr(t,1),o=Y(e,0,1),a=Y(s,0,1);if(o===0)this.r=a*255,this.g=a*255,this.b=a*255;else{const c=a<=.5?a*(1+o):a+o-a*o,l=2*a-c;this.r=Ts(l,c,r+.3333333333333333)*255,this.g=Ts(l,c,r)*255,this.b=Ts(l,c,r-.3333333333333333)*255}return this.a=i,this}getHSL(t){const e=this.r,s=this.g,i=this.b,r=Math.max(e,s,i)/255,o=Math.min(e,s,i)/255;let a,c;const l=(o+r)/2;if(o===r)a=0,c=0;else{const h=r-o;switch(c=l<=.5?h/(r+o):h/(2-r-o),r){case e:a=(s-i)/h+(s<i?6:0);break;case s:a=(i-e)/h+2;break;case i:default:a=(e-s)/h+4;break}a/=6}return t&&t.setHSL(a,c,l,this.a),{h:a,s:c,l,a:this.a}}offsetHSL(t,e,s){const i=this.getHSL();return this.setHSL(i.h+t,i.s+e,i.l+s)}lerpHSL(t,e){const s=this.getHSL(),i=t.getHSL(),r=ss(s.h,i.h,e),o=ss(s.s,i.s,e),a=ss(s.l,i.l,e);return this.setHSL(r,o,a),this}setHSV(t,e,s,i=1){const r=Y(t,0,1)*360,o=Y(e,0,1),a=Y(s,0,1),c=Math.floor(r/60)%6,l=r/60-Math.floor(r/60),h=a*(1-o),g=a*(1-l*o),b=a*(1-(1-l)*o),y=[[a,b,h],[g,a,h],[h,a,b],[h,g,a],[b,h,a],[a,h,g]][c];return this.r=y[0]*255,this.g=y[1]*255,this.b=y[2]*255,this.a=i,this}setHSB(t,e,s,i=1){this.setHSV(t,e,s,i)}getHSV(t){const{r:e,g:s,b:i,a:r}=this.color,o=Math.max(e,s,i),a=Math.min(e,s,i),c=o-a;let l;e===o?l=(s-i)/c:s===o?l=2+(i-e)/c:l=4+(e-s)/c,l/=6,l<0&&(l+=1);const h=c==0?0:l,g=o===0?0:c/o,b=o/255;return t&&t.setHSV(h,g,b,r),{h,s:g,v:b,a:r}}getHSB(t){const{h:e,s,v:i,a:r}=this.getHSV(t);return{h:e,s,b:i,a:r}}}const nt=new ct;function Qt(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Kt(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}const uo="",Jt="srgb",Rn="srgb-linear",Ln="linear",ws="srgb",Nn=new ce().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),Dn=new ce().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715),Vn=[.64,.33,.3,.6,.15,.06],Bn=[.2126,.7152,.0722],Xn=[.3127,.329],Yn={enabled:!0,workingColorSpace:Rn,spaces:{},convert:function(n,t,e){return this.enabled===!1||t===e||!t||!e||(this.spaces[t].transfer===ws&&(n.r=Qt(n.r),n.g=Qt(n.g),n.b=Qt(n.b)),this.spaces[t].primaries!==this.spaces[e].primaries&&(n.applyMatrix3(this.spaces[t].toXYZ),n.applyMatrix3(this.spaces[e].fromXYZ)),this.spaces[e].transfer===ws&&(n.r=Kt(n.r),n.g=Kt(n.g),n.b=Kt(n.b))),n},fromWorkingColorSpace:function(n,t){return this.convert(n,this.workingColorSpace,t)},toWorkingColorSpace:function(n,t){return this.convert(n,t,this.workingColorSpace)},getPrimaries:function(n){return this.spaces[n].primaries},getTransfer:function(n){return n===uo?Ln:this.spaces[n].transfer},getLuminanceCoefficients:function(n,t=this.workingColorSpace){return n.fromArray(this.spaces[t].luminanceCoefficients)},define:function(n){Object.assign(this.spaces,n)},_getMatrix:function(n,t,e){return n.copy(this.spaces[t].toXYZ).multiply(this.spaces[e].fromXYZ)},_getDrawingBufferColorSpace:function(n){return this.spaces[n].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(n=this.workingColorSpace){return this.spaces[n].workingColorSpaceConfig.unpackColorSpace}};Yn.define({[Rn]:{primaries:Vn,whitePoint:Xn,transfer:Ln,toXYZ:Nn,fromXYZ:Dn,luminanceCoefficients:Bn,workingColorSpaceConfig:{unpackColorSpace:Jt},outputColorSpaceConfig:{drawingBufferColorSpace:Jt}},[Jt]:{primaries:Vn,whitePoint:Xn,transfer:ws,toXYZ:Nn,fromXYZ:Dn,luminanceCoefficients:Bn,outputColorSpaceConfig:{drawingBufferColorSpace:Jt}}});function Ts(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<.16666666666666666?n+(t-n)*6*e:e<.5?t:e<.6666666666666666?n+(t-n)*6*(.6666666666666666-e):n}function fo(n){return window.URL.createObjectURL(n)}const Gn=new ns;async function mo(n,t=6e4){return new Promise((e,s)=>{const i=typeof n=="string"?n:fo(n),r=Gn.get(i);if(r)return e(r);const o=document.createElement("img");o.onload=c=>{clearTimeout(a);const l=o.naturalWidth||o.width,h=o.naturalHeight||o.height,g={width:l,height:h,aspectRatio:l/h,element:o,imageData:lo(o)};Gn.set(i,g),e(g),o.onerror=o.onload=null},o.onerror=c=>{clearTimeout(a),s(c)},o.src=i;const a=setTimeout(()=>{s("Timeout!")},t)})}function Un(n,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof n=="string"?e.href=n:e.href=window.URL.createObjectURL(n),e.click()}function $n(n,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(n.className)||!1}function qn(n){return{el:n,isRoot:()=>/(html|body)/i.test(n.tagName)||n===document.documentElement,isActive:()=>n===document.activeElement&&(n.type||n.href),getRemSize:function(){return parseFloat(getComputedStyle(document.documentElement).fontSize)},rem2px:function(t){return t*this.getRemSize()},getEmSize:function(){return n.parentElement?parseFloat(getComputedStyle(n.parentElement).fontSize):this.getRemSize()},nearestElement:()=>{let t=n;for(;t&&t.nodeType!==1&&t.parentElement;)t=t.parentElement;return t},parent:()=>n.parentElement,parents:function(t=n,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,s=t.length;e<s;e++)if(/(auto|scroll)/.test(xs(t[e],"overflow")+xs(t[e],"overflow-y")+xs(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>n.contains?n!=t&&n.contains(t):!!(n.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(n.parentElement?.children).filter(t=>t!==n),nextElementSibling:()=>n.nextElementSibling,previousElementSibling:()=>n.previousElementSibling,closest:t=>n.closest(t),shadowRoot:()=>n.shadowRoot,isInput:()=>n.tagName==="INPUT"||n instanceof HTMLInputElement,isSelect:()=>n.tagName==="SELECT"||n instanceof HTMLSelectElement,isTextArea:()=>n.tagName==="TEXTAREA"||n instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(n)&&n.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(n)&&n.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(n)&&n.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(n)&&n.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=n.options;for(let s=0,i=e.length;s<i;s++)e[s].selected=e[s].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(n.name);for(let s=0,i=e.length;s<i;s++){const r=e[s];r.checked=r.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(n.checked=t)},insert:(t,e="append")=>{typeof t=="string"?n[e](po(t)):n[e](t)},html:function(t){if(typeof t=="string"){n.innerHTML=t;const e=jn(n);e!=n&&(n=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{n.textContent=t},getInnerText:()=>{if(n instanceof SVGElement)return"";let t=n.innerText;if(!t){const e=n.querySelector("slot")?.assignedNodes()||[];let s=0;for(;!t&&s<=e.length-1;)"innerText"in e[s]&&(t=e[s].innerText),s++}return t},remove:()=>n.remove()}}function po(n,t=!1){const e=document.createElement("template");return e.innerHTML=n,t&&e.content.childNodes.forEach(s=>{const i=jn(s);i!=s&&e.content.replaceChild(i,s)}),e.content}function jn(n){return n.tagName=="SCRIPT"&&(n=Hn(n)),n.querySelectorAll&&n.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(Hn(t),t)}),n}function Hn(n){const t=n.ownerDocument.createElement("script");t.text=n.text;const e=n.attributes;for(let s=0,i=e.length;s<i;s++)t.setAttribute(e[s].name,e[s].value);return t}async function go(n){if(navigator.clipboard)return await navigator.clipboard.writeText(n);{const t=document.createElement("textarea");return t.value=n,t.style.opacity="0",t.style.position="fixed",t.style.top="0",t.style.left="0",t.focus(),t.select(),document.execCommand("copy")}}function yo(n,t={},e=[],s){return{tag:n,props:t,children:e,el:s}}function Cs(n){return yo(n.tagName,kn(n),Array.from(n.children).map(t=>Cs(t)),n)}function De(n,t=document.documentElement){if(n.el)return n.el;if(n.el=document.createElement(n.tag),n.props)for(const e in n.props){const s=n.props[e];e.startsWith("on")?n.el.addEventListener(e.slice(2).toLowerCase(),s):e==="style"?le(n.el,n.props[e]):ze(n.el,e,s)}return n.children&&(typeof n.children=="string"?n.el.appendChild(document.createTextNode(n.children)):n.children.forEach(e=>{De(e,n.el)})),t.appendChild(n.el),n.el}function Zn(n,t){if(!n.el)return;if(n.tag!==t.tag){(n.el.parentElement||document.body).replaceChild(De(t),n.el);return}const e=t.el=n.el,s=n.props,i=t.props;for(const a in s)a in i||(a.startsWith("on")?e.removeEventListener(a.slice(2).toLowerCase(),s[a]):e.removeAttribute(a));for(const a in i){const c=s[a],l=i[a];if(l!=c)if(a.startsWith("on")){const h=a.slice(2).toLowerCase();e.removeEventListener(h,c),e.addEventListener(h,l)}else if(a==="style"){for(const h in c)h in l||Pn(e,h);le(e,l)}else ze(e,a,l)}const r=n.children||[],o=t.children||[];if(typeof o=="string")e.innerHTML=o;else if(typeof r=="string")e.innerHTML="",o.forEach(a=>{De(a,e)});else{const a=Math.min(r.length,o.length);for(let c=0;c<a;c++)Zn(r[c],o[c]);o.length>r.length&&o.slice(r.length).forEach(c=>{De(c,e)}),o.length<r.length&&r.slice(o.length).forEach(c=>{c.el&&e.removeChild(c.el)})}}const _o={class:"page"},xo={class:"page-header"},bo={class:"page-main"},vo={class:"page-main-scroll"},wo={class:"page-footer"},To={class:"page-global"},Co=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"LayoutPage",setup(n,{expose:t}){return t({}),(e,s)=>(f.openBlock(),f.createElementBlock("div",_o,[f.createElementVNode("div",xo,[f.renderSlot(e.$slots,"header",{},void 0,!0)]),f.createElementVNode("div",bo,[f.createElementVNode("div",vo,[f.renderSlot(e.$slots,"default",{},void 0,!0)])]),f.createElementVNode("div",wo,[f.renderSlot(e.$slots,"footer",{},void 0,!0)]),f.createElementVNode("div",To,[f.renderSlot(e.$slots,"global",{},void 0,!0)])]))}}),Ic="",zt=(n,t)=>{const e=n.__vccOpts||n;for(const[s,i]of t)e[s]=i;return e},te=zt(Co,[["__scopeId","data-v-3c77fd20"]]),So={class:"view-document"},Po=["src"],ko=f.defineComponent({inheritAttrs:!0,customOptions:{LayoutPage:te},__name:"ViewDocument",props:{src:{default:""},title:{default:""}},setup(n){const t=n,e=Ft.useRoute();oo(typeof e.params.title=="string"?e.params.title:t.title);const s=decodeURIComponent(typeof e.params.src=="string"?e.params.src:t.src);return(i,r)=>(f.openBlock(),f.createBlock(te,null,{default:f.withCtx(()=>[f.createElementVNode("div",So,[f.createElementVNode("img",{class:"img",src:f.unref(s)},null,8,Po)])]),_:1}))}}),Fc="",Wn=zt(ko,[["__scopeId","data-v-786ac2a3"]]),Qn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ve=(n,t,e,s="")=>{const i=n.split(":");if(n.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;s=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),c=i.pop(),l={provider:i.length>0?i[0]:s,prefix:c,name:a};return t&&!Be(l)?null:l}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:s,prefix:o.shift(),name:o.join("-")};return t&&!Be(a)?null:a}if(e&&s===""){const a={provider:s,prefix:"",name:r};return t&&!Be(a,e)?null:a}return null},Be=(n,t)=>n?!!((t&&n.prefix===""||n.prefix)&&n.name):!1,Kn=Object.freeze({left:0,top:0,width:16,height:16}),Xe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ye=Object.freeze({...Kn,...Xe}),Ss=Object.freeze({...Ye,body:"",hidden:!1});function Eo(n,t){const e={};!n.hFlip!=!t.hFlip&&(e.hFlip=!0),!n.vFlip!=!t.vFlip&&(e.vFlip=!0);const s=((n.rotate||0)+(t.rotate||0))%4;return s&&(e.rotate=s),e}function Jn(n,t){const e=Eo(n,t);for(const s in Ss)s in Xe?s in n&&!(s in e)&&(e[s]=Xe[s]):s in t?e[s]=t[s]:s in n&&(e[s]=n[s]);return e}function Ao(n,t){const e=n.icons,s=n.aliases||Object.create(null),i=Object.create(null);function r(o){if(e[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=s[o]&&s[o].parent,c=a&&r(a);c&&(i[o]=[a].concat(c))}return i[o]}return Object.keys(e).concat(Object.keys(s)).forEach(r),i}function Mo(n,t,e){const s=n.icons,i=n.aliases||Object.create(null);let r={};function o(a){r=Jn(s[a]||i[a],r)}return o(t),e.forEach(o),Jn(n,r)}function ti(n,t){const e=[];if(typeof n!="object"||typeof n.icons!="object")return e;n.not_found instanceof Array&&n.not_found.forEach(i=>{t(i,null),e.push(i)});const s=Ao(n);for(const i in s){const r=s[i];r&&(t(i,Mo(n,i,r)),e.push(i))}return e}const Io={provider:"",aliases:{},not_found:{},...Kn};function Ps(n,t){for(const e in t)if(e in n&&typeof n[e]!=typeof t[e])return!1;return!0}function ei(n){if(typeof n!="object"||n===null)return null;const t=n;if(typeof t.prefix!="string"||!n.icons||typeof n.icons!="object"||!Ps(n,Io))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i||typeof r.body!="string"||!Ps(r,Ss))return null}const s=t.aliases||Object.create(null);for(const i in s){const r=s[i],o=r.parent;if(!i||typeof o!="string"||!e[o]&&!s[o]||!Ps(r,Ss))return null}return t}const si=Object.create(null);function Fo(n,t){return{provider:n,prefix:t,icons:Object.create(null),missing:new Set}}function ee(n,t){const e=si[n]||(si[n]=Object.create(null));return e[t]||(e[t]=Fo(n,t))}function ni(n,t){return ei(t)?ti(t,(e,s)=>{s?n.icons[e]=s:n.missing.add(e)}):[]}function zo(n,t,e){try{if(typeof e.body=="string")return n.icons[t]={...e},!0}catch{}return!1}let ue=!1;function ii(n){return typeof n=="boolean"&&(ue=n),ue}function Oo(n){const t=typeof n=="string"?Ve(n,!0,ue):n;if(t){const e=ee(t.provider,t.prefix),s=t.name;return e.icons[s]||(e.missing.has(s)?null:void 0)}}function Ro(n,t){const e=Ve(n,!0,ue);if(!e)return!1;const s=ee(e.provider,e.prefix);return t?zo(s,e.name,t):(s.missing.add(e.name),!0)}function Lo(n,t){if(typeof n!="object")return!1;if(typeof t!="string"&&(t=n.provider||""),ue&&!t&&!n.prefix){let i=!1;return ei(n)&&(n.prefix="",ti(n,(r,o)=>{Ro(r,o)&&(i=!0)})),i}const e=n.prefix;if(!Be({provider:t,prefix:e,name:"a"}))return!1;const s=ee(t,e);return!!ni(s,n)}const ri=Object.freeze({width:null,height:null}),oi=Object.freeze({...ri,...Xe}),No=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Do=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ai(n,t,e){if(t===1)return n;if(e=e||100,typeof n=="number")return Math.ceil(n*t*e)/e;if(typeof n!="string")return n;const s=n.split(No);if(s===null||!s.length)return n;const i=[];let r=s.shift(),o=Do.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*t*e)/e)}else i.push(r);if(r=s.shift(),r===void 0)return i.join("");o=!o}}function Vo(n,t="defs"){let e="";const s=n.indexOf("<"+t);for(;s>=0;){const i=n.indexOf(">",s),r=n.indexOf("</"+t);if(i===-1||r===-1)break;const o=n.indexOf(">",r);if(o===-1)break;e+=n.slice(i+1,r).trim(),n=n.slice(0,s).trim()+n.slice(o+1)}return{defs:e,content:n}}function Bo(n,t){return n?"<defs>"+n+"</defs>"+t:t}function Xo(n,t,e){const s=Vo(n);return Bo(s.defs,t+s.content+e)}const Yo=n=>n==="unset"||n==="undefined"||n==="none";function Go(n,t){const e={...Ye,...n},s={...oi,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,s].forEach(S=>{const P=[],T=S.hFlip,C=S.vFlip;let _=S.rotate;T?C?_+=2:(P.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),P.push("scale(-1 1)"),i.top=i.left=0):C&&(P.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),P.push("scale(1 -1)"),i.top=i.left=0);let p;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:p=i.height/2+i.top,P.unshift("rotate(90 "+p.toString()+" "+p.toString()+")");break;case 2:P.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:p=i.width/2+i.left,P.unshift("rotate(-90 "+p.toString()+" "+p.toString()+")");break}_%2===1&&(i.left!==i.top&&(p=i.left,i.left=i.top,i.top=p),i.width!==i.height&&(p=i.width,i.width=i.height,i.height=p)),P.length&&(r=Xo(r,'<g transform="'+P.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,c=i.width,l=i.height;let h,g;o===null?(g=a===null?"1em":a==="auto"?l:a,h=ai(g,c/l)):(h=o==="auto"?c:o,g=a===null?ai(h,l/c):a==="auto"?l:a);const b={},y=(S,P)=>{Yo(P)||(b[S]=P.toString())};y("width",h),y("height",g);const m=[i.left,i.top,c,l];return b.viewBox=m.join(" "),{attributes:b,viewBox:m,body:r}}const Uo=/\sid="(\S+)"/g,$o="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let qo=0;function jo(n,t=$o){const e=[];let s;for(;s=Uo.exec(n);)e.push(s[1]);if(!e.length)return n;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(qo++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),n=n.replace(new RegExp(i,"g"),""),n}const ks=Object.create(null);function Ho(n,t){ks[n]=t}function Es(n){return ks[n]||ks[""]}function As(n){let t;if(typeof n.resources=="string")t=[n.resources];else if(t=n.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:n.path||"/",maxURL:n.maxURL||500,rotate:n.rotate||750,timeout:n.timeout||5e3,random:n.random===!0,index:n.index||0,dataAfterTimeout:n.dataAfterTimeout!==!1}}const Ms=Object.create(null),fe=["https://api.simplesvg.com","https://api.unisvg.com"],Ge=[];for(;fe.length>0;)fe.length===1||Math.random()>.5?Ge.push(fe.shift()):Ge.push(fe.pop());Ms[""]=As({resources:["https://api.iconify.design"].concat(Ge)});function Zo(n,t){const e=As(t);return e===null?!1:(Ms[n]=e,!0)}function Is(n){return Ms[n]}let ci=(()=>{let n;try{if(n=fetch,typeof n=="function")return n}catch{}})();function Wo(n,t){const e=Is(n);if(!e)return 0;let s;if(!e.maxURL)s=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";s=e.maxURL-i-e.path.length-r.length}return s}function Qo(n){return n===404}const Ko=(n,t,e)=>{const s=[],i=Wo(n,t),r="icons";let o={type:r,provider:n,prefix:t,icons:[]},a=0;return e.forEach((c,l)=>{a+=c.length+1,a>=i&&l>0&&(s.push(o),o={type:r,provider:n,prefix:t,icons:[]},a=c.length),o.icons.push(c)}),s.push(o),s};function Jo(n){if(typeof n=="string"){const t=Is(n);if(t)return t.path}return"/"}const ta={prepare:Ko,send:(n,t,e)=>{if(!ci){e("abort",424);return}let s=Jo(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});s+=r+".json?"+c.toString();break}case"custom":{const r=t.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;ci(n+s).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(Qo(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?e("abort",r):e("next",i)});return}setTimeout(()=>{e("success",r)})}).catch(()=>{e("next",i)})}};function ea(n){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);n.sort((i,r)=>i.provider!==r.provider?i.provider.localeCompare(r.provider):i.prefix!==r.prefix?i.prefix.localeCompare(r.prefix):i.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return n.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const r=i.provider,o=i.prefix,a=i.name,c=e[r]||(e[r]=Object.create(null)),l=c[o]||(c[o]=ee(r,o));let h;a in l.icons?h=t.loaded:o===""||l.missing.has(a)?h=t.missing:h=t.pending;const g={provider:r,prefix:o,name:a};h.push(g)}),t}function li(n,t){n.forEach(e=>{const s=e.loaderCallbacks;s&&(e.loaderCallbacks=s.filter(i=>i.id!==t))})}function sa(n){n.pendingCallbacksFlag||(n.pendingCallbacksFlag=!0,setTimeout(()=>{n.pendingCallbacksFlag=!1;const t=n.loaderCallbacks?n.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const s=n.provider,i=n.prefix;t.forEach(r=>{const o=r.icons,a=o.pending.length;o.pending=o.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(n.icons[l])o.loaded.push({provider:s,prefix:i,name:l});else if(n.missing.has(l))o.missing.push({provider:s,prefix:i,name:l});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||li([n],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let na=0;function ia(n,t,e){const s=na++,i=li.bind(null,e,s);if(!t.pending.length)return i;const r={id:s,icons:t,callback:n,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function ra(n,t=!0,e=!1){const s=[];return n.forEach(i=>{const r=typeof i=="string"?Ve(i,t,e):i;r&&s.push(r)}),s}var oa={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function aa(n,t,e,s){const i=n.resources.length,r=n.random?Math.floor(Math.random()*i):n.index;let o;if(n.random){let x=n.resources.slice(0);for(o=[];x.length>1;){const I=Math.floor(Math.random()*x.length);o.push(x[I]),x=x.slice(0,I).concat(x.slice(I+1))}o=o.concat(x)}else o=n.resources.slice(r).concat(n.resources.slice(0,r));const a=Date.now();let c="pending",l=0,h,g=null,b=[],y=[];typeof s=="function"&&y.push(s);function m(){g&&(clearTimeout(g),g=null)}function S(){c==="pending"&&(c="aborted"),m(),b.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),b=[]}function P(x,I){I&&(y=[]),typeof x=="function"&&y.push(x)}function T(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:b.length,subscribe:P,abort:S}}function C(){c="failed",y.forEach(x=>{x(void 0,h)})}function _(){b.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),b=[]}function p(x,I,O){const R=I!=="success";switch(b=b.filter(L=>L!==x),c){case"pending":break;case"failed":if(R||!n.dataAfterTimeout)return;break;default:return}if(I==="abort"){h=O,C();return}if(R){h=O,b.length||(o.length?v():C());return}if(m(),_(),!n.random){const L=n.resources.indexOf(x.resource);L!==-1&&L!==n.index&&(n.index=L)}c="completed",y.forEach(L=>{L(O)})}function v(){if(c!=="pending")return;m();const x=o.shift();if(x===void 0){if(b.length){g=setTimeout(()=>{m(),c==="pending"&&(_(),C())},n.timeout);return}C();return}const I={status:"pending",resource:x,callback:(O,R)=>{p(I,O,R)}};b.push(I),l++,g=setTimeout(v,n.rotate),e(x,t,I.callback)}return setTimeout(v),T}function hi(n){const t={...oa,...n};let e=[];function s(){e=e.filter(a=>a().status==="pending")}function i(a,c,l){const h=aa(t,a,c,(g,b)=>{s(),l&&l(g,b)});return e.push(h),h}function r(a){return e.find(c=>a(c))||null}return{query:i,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:s}}function ui(){}const Fs=Object.create(null);function ca(n){if(!Fs[n]){const t=Is(n);if(!t)return;const e=hi(t),s={config:t,redundancy:e};Fs[n]=s}return Fs[n]}function la(n,t,e){let s,i;if(typeof n=="string"){const r=Es(n);if(!r)return e(void 0,424),ui;i=r.send;const o=ca(n);o&&(s=o.redundancy)}else{const r=As(n);if(r){s=hi(r);const o=n.resources?n.resources[0]:"",a=Es(o);a&&(i=a.send)}}return!s||!i?(e(void 0,424),ui):s.query(t,i,e)().abort}function fi(){}function ha(n){n.iconsLoaderFlag||(n.iconsLoaderFlag=!0,setTimeout(()=>{n.iconsLoaderFlag=!1,sa(n)}))}function ua(n){const t=[],e=[];return n.forEach(s=>{(s.match(Qn)?t:e).push(s)}),{valid:t,invalid:e}}function me(n,t,e){function s(){const i=n.pendingIcons;t.forEach(r=>{i&&i.delete(r),n.icons[r]||n.missing.add(r)})}if(e&&typeof e=="object")try{if(!ni(n,e).length){s();return}}catch(i){console.error(i)}s(),ha(n)}function mi(n,t){n instanceof Promise?n.then(e=>{t(e)}).catch(()=>{t(null)}):t(n)}function fa(n,t){n.iconsToLoad?n.iconsToLoad=n.iconsToLoad.concat(t).sort():n.iconsToLoad=t,n.iconsQueueFlag||(n.iconsQueueFlag=!0,setTimeout(()=>{n.iconsQueueFlag=!1;const{provider:e,prefix:s}=n,i=n.iconsToLoad;if(delete n.iconsToLoad,!i||!i.length)return;const r=n.loadIcon;if(n.loadIcons&&(i.length>1||!r)){mi(n.loadIcons(i,s,e),h=>{me(n,i,h)});return}if(r){i.forEach(h=>{const g=r(h,s,e);mi(g,b=>{const y=b?{prefix:s,icons:{[h]:b}}:null;me(n,[h],y)})});return}const{valid:o,invalid:a}=ua(i);if(a.length&&me(n,a,null),!o.length)return;const c=s.match(Qn)?Es(e):null;if(!c){me(n,o,null);return}c.prepare(e,s,o).forEach(h=>{la(e,h,g=>{me(n,h.icons,g)})})}))}const ma=(n,t)=>{const e=ra(n,!0,ii()),s=ea(e);if(!s.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(s.loaded,s.missing,s.pending,fi)}),()=>{c=!1}}const i=Object.create(null),r=[];let o,a;return s.pending.forEach(c=>{const{provider:l,prefix:h}=c;if(h===a&&l===o)return;o=l,a=h,r.push(ee(l,h));const g=i[l]||(i[l]=Object.create(null));g[h]||(g[h]=[])}),s.pending.forEach(c=>{const{provider:l,prefix:h,name:g}=c,b=ee(l,h),y=b.pendingIcons||(b.pendingIcons=new Set);y.has(g)||(y.add(g),i[l][h].push(g))}),r.forEach(c=>{const l=i[c.provider][c.prefix];l.length&&fa(c,l)}),t?ia(t,s,r):fi};function da(n,t){const e={...n};for(const s in t){const i=t[s],r=typeof i;s in ri?(i===null||i&&(r==="string"||r==="number"))&&(e[s]=i):r===typeof e[s]&&(e[s]=s==="rotate"?i%4:i)}return e}const pa=/[\s,]+/;function ga(n,t){t.split(pa).forEach(e=>{switch(e.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0;break}})}function ya(n,t=0){const e=n.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(n);return isNaN(i)?0:s(i)}else if(e!==n){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(n.slice(0,n.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?s(r):0)}}return t}function _a(n,t){let e=n.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)e+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+n+"</svg>"}function xa(n){return n.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ba(n){return"data:image/svg+xml,"+xa(n)}function va(n){return'url("'+ba(n)+'")'}const di={...oi,inline:!1},wa={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ta={display:"inline-block"},zs={backgroundColor:"currentColor"},pi={backgroundColor:"transparent"},gi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},yi={webkitMask:zs,mask:zs,background:pi};for(const n in yi){const t=yi[n];for(const e in gi)t[n+e]=gi[e]}const Ue={};["horizontal","vertical"].forEach(n=>{const t=n.slice(0,1)+"Flip";Ue[n+"-flip"]=t,Ue[n.slice(0,1)+"-flip"]=t,Ue[n+"Flip"]=t});function _i(n){return n+(n.match(/^[-0-9.]+$/)?"px":"")}const xi=(n,t)=>{const e=da(di,t),s={...wa},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let S in t){const P=t[S];if(P!==void 0)switch(S){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":e[S]=P===!0||P==="true"||P===1;break;case"flip":typeof P=="string"&&ga(e,P);break;case"color":r.color=P;break;case"rotate":typeof P=="string"?e[S]=ya(P):typeof P=="number"&&(e[S]=P);break;case"ariaHidden":case"aria-hidden":P!==!0&&P!=="true"&&delete s["aria-hidden"];break;default:{const T=Ue[S];T?(P===!0||P==="true"||P===1)&&(e[T]=!0):di[S]===void 0&&(s[S]=P)}}}const c=Go(n,e),l=c.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){s.style={...r,...a},Object.assign(s,l);let S=0,P=t.id;return typeof P=="string"&&(P=P.replace(/-/g,"_")),s.innerHTML=jo(c.body,P?()=>P+"ID"+S++:"iconifyVue"),f.h("svg",s)}const{body:h,width:g,height:b}=n,y=i==="mask"||(i==="bg"?!1:h.indexOf("currentColor")!==-1),m=_a(h,{...l,width:g+"",height:b+""});return s.style={...r,"--svg":va(m),width:_i(l.width),height:_i(l.height),...Ta,...y?zs:pi,...a},f.h("span",s)};if(ii(!0),Ho("",ta),typeof document<"u"&&typeof window<"u"){const n=window;if(n.IconifyPreload!==void 0){const t=n.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Lo(s))&&console.error(e)}catch{console.error(e)}})}if(n.IconifyProviders!==void 0){const t=n.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const s="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;Zo(e,i)||console.error(s)}catch{console.error(s)}}}}const Ca={...Ye,body:""},Sa=f.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(n,t,e){if(typeof n=="object"&&n!==null&&typeof n.body=="string")return this._name="",this.abortLoading(),{data:n};let s;if(typeof n!="string"||(s=Ve(n,!1,!0))===null)return this.abortLoading(),null;let i=Oo(s);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==n)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:n,abort:ma([s],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==n&&(this._name=n,t&&t(n)),e){i=Object.assign({},i);const o=e(i.body,s.name,s.prefix,s.provider);typeof o=="string"&&(i.body=o)}const r=["iconify"];return s.prefix!==""&&r.push("iconify--"+s.prefix),s.provider!==""&&r.push("iconify--"+s.provider),{data:i,classes:r}}},render(){this.counter;const n=this.$attrs,t=this.iconMounted||n.ssr?this.getIcon(n.icon,n.onLoad,n.customise):null;if(!t)return xi(Ca,n);let e=n;return t.classes&&(e={...n,class:(typeof n.class=="string"?n.class+" ":"")+t.classes.join(" ")}),xi({...Ye,...t.data},e)}}),bi=f.defineComponent({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:vs("--xg-blue")}},setup(n){const t=n;return(e,s)=>(f.openBlock(),f.createElementBlock("span",{class:"icon",style:f.normalizeStyle(["color: "+e.color,"display: inline-flex","justify-content: center","align-items: center","cursor: pointer","font-size: 1em"])},[f.createVNode(f.unref(Sa),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),Pa={class:"loading-11",ref:"loading11"},ka={class:"container container-1"},Ea={class:"container container-2"},Aa={class:"container container-3"},Ma=f.defineComponent({__name:"Loading11",props:{color:{default:vs("--xg-blue")},width:{default:"0.8em"}},setup(n){const t=n;return(e,s)=>(f.openBlock(),f.createElementBlock("div",Pa,[f.createElementVNode("div",{class:"loading-11-inner",style:f.normalizeStyle({width:t.width,height:t.width})},[f.createElementVNode("div",ka,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)]),f.createElementVNode("div",Ea,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)]),f.createElementVNode("div",Aa,[f.createElementVNode("div",{class:"dot dot-1",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-2",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-3",style:f.normalizeStyle({backgroundColor:t.color})},null,4),f.createElementVNode("div",{class:"dot dot-4",style:f.normalizeStyle({backgroundColor:t.color})},null,4)])],4)],512))}}),Rc="",vi=zt(Ma,[["__scopeId","data-v-b6f6b2a6"]]),Ia={key:0,class:"loading",style:{"margin-right":"6px"}},Os=.03,Rs=.06,wi=f.defineComponent({customOptions:{Loading11:vi},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"16px"},fontWeight:{default:"normal"},borderRadius:{default:"4px"},stylePattern:{default:"fullfill"},fontColor:{},borderColor:{},bgColor:{},bgColorStart:{},bgColorEnd:{},asyncClick:{}},emits:["yz-click","click"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.ref(),o=vs("--xg-blue","#5a82f0"),a=f.ref(s.fontColor),c=f.ref(s.borderColor),l=f.ref(s.bgColor),h=f.ref(a.value),g=f.ref(c.value),b=f.ref(l.value),y=f.ref(s.bgColorStart||""),m=f.ref(s.bgColorEnd||""),S=s.bgColorStart&&s.bgColorEnd;function P(R){switch(R){case"transparent":c.value=s.borderColor||"rgba(255,255,255,0)",l.value=s.bgColor||"rgba(255,255,255,0)",a.value=s.fontColor||o;break;case"outline":c.value=s.borderColor||o,l.value=s.bgColor||"rgba(255,255,255,0)",a.value=s.fontColor||o;break;case"fullfill":default:c.value=s.borderColor||"rgba(255,255,255,0)",l.value=s.bgColor||o,a.value=s.fontColor||nt.set(l.value).opposite(!0).toString();break}h.value=a.value,g.value=c.value,b.value=l.value,S&&(y.value=s.bgColorStart,m.value=s.bgColorEnd,l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`)}f.watch(()=>s.stylePattern,()=>{P(s.stylePattern)},{immediate:!0});const T=f.ref(s.disabled?"0.6":"1"),C=f.ref(s.disabled?"not-allowed":"pointer");let _=!1;const p=()=>{s.disabled||(_=!0,s.stylePattern=="transparent"&&(a.value=nt.set(h.value).darken(Os).toString()),c.value=nt.set(g.value).darken(Os).toString(),S?l.value=`linear-gradient(180deg, ${m.value} 0%, ${y.value} 100%)`:l.value=nt.set(b.value).darken(Os).toString())},v=()=>{s.disabled||(_=!1,a.value=h.value,c.value=g.value,S?l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`:l.value=b.value)},x=f.ref(!1),O=yr(()=>{s.disabled||x.value||(s.stylePattern=="transparent"&&(a.value=nt.set(h.value).darken(Rs).toString()),c.value=nt.set(g.value).darken(Rs).toString(),S?l.value=`linear-gradient(180deg, ${y.value} 0%, ${m.value} 100%)`:l.value=nt.set(b.value).darken(Rs).toString(),setTimeout(()=>{_?p():v()},150),i("yz-click"),i("click"),s.asyncClick&&(x.value=!0,s.asyncClick().then(()=>{x.value=!1}).catch(()=>{x.value=!1})))},300);return t({el:r}),(R,L)=>(f.openBlock(),f.createElementBlock("div",{ref_key:"el",ref:r,class:"button",style:f.normalizeStyle([`opacity: ${T.value}`,`border: 1px solid ${c.value}`,`background: ${l.value}`,`color: ${a.value}`,`border-radius: ${s.borderRadius}`,`width: ${s.width}`,`height: ${s.height}`,`line-height: ${s.height}`,`font-size: ${s.fontSize}`,`cursor: ${C.value}`,"user-select: none","box-sizing: border-box","display: inline-flex","justify-content: center","align-items: center","z-index: 0"]),onMouseover:p,onMouseleave:v,onClick:L[0]||(L[0]=(...B)=>f.unref(O)&&f.unref(O)(...B))},[f.createElementVNode("label",{class:"label truncate",style:f.normalizeStyle({padding:"0 "+R.padding,cursor:C.value,display:"inline-flex",justifyContent:"center",alignItems:"center",fontWeight:s.fontWeight||"normal"})},[x.value?(f.openBlock(),f.createElementBlock("div",Ia,[f.createVNode(vi,{color:a.value},null,8,["color"])])):f.createCommentVNode("",!0),f.renderSlot(R.$slots,"default",{},()=>[R.icon&&R.iconPosition==="left"?(f.openBlock(),f.createBlock(bi,{key:0,icon:R.icon,color:a.value,style:f.normalizeStyle({marginRight:"4px",cursor:C.value})},null,8,["icon","color","style"])):f.createCommentVNode("",!0),f.createElementVNode("span",{style:f.normalizeStyle({cursor:C.value})},f.toDisplayString(R.label),5),R.icon&&R.iconPosition==="right"?(f.openBlock(),f.createBlock(bi,{key:1,icon:R.icon,color:a.value,style:f.normalizeStyle({marginLeft:"4px",cursor:C.value})},null,8,["icon","color","style"])):f.createCommentVNode("",!0)])],4)],36))}}),Fa={class:"xg-footer-inner"},za=f.defineComponent({customOptions:{Button:wi},inheritAttrs:!0,__name:"Footer",setup(n){const t=Ft.useRouter();function e(){t.push("/park")}const s=f.ref("0px");let i;return f.onMounted(()=>{i=co.onBottom(r=>{s.value=r})}),f.onUnmounted(()=>{i?.()}),(r,o)=>(f.openBlock(),f.createElementBlock("div",{class:"xg-footer",style:f.normalizeStyle({paddingBottom:s.value})},[f.createElementVNode("div",Fa,[f.createVNode(wi,{label:"去支付",width:"100%",onClick:e})])],4))}}),Lc="",Ti=zt(za,[["__scopeId","data-v-47056f4a"]]),Oa={class:"text"},Ra=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"}},setup(n,{expose:t,emit:e}){const s=n,i=[{name:"蓝牌",style:{"background-color":"#0078f0",color:"#ffffff"}},{name:"绿牌",style:{"background-color":"#00f08c",color:"#000000"}},{name:"黄牌",style:{"background-color":"#fac800",color:"#000000"}},{name:"黄绿",style:{background:"linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%)",color:"#000000"}},{name:"黑牌",style:{"background-color":"#222222",color:"#ffffff"}},{name:"白牌",style:{"background-color":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function r(l){switch(l){case"b":case"蓝牌":l="蓝牌";break;case"g":case"绿牌":l="绿牌";break;case"y":case"黄牌":l="黄牌";break;case"q":case"黄绿":l="黄绿";break;case"d":case"黑牌":l="黑牌";break;case"w":case"白牌":l="白牌";break;default:l="未知";break}const h=i.filter(g=>g.name===l);return h.length?h[0]:r("未知")}const o=f.ref(r(s.plateType||"")),a=f.ref(),c=f.ref(14);return f.onMounted(()=>{c.value=qn(a.value).getEmSize()}),t({}),(l,h)=>(f.openBlock(),f.createElementBlock("div",{class:"plate-display",ref_key:"el",ref:a},[l.displayType=="dot"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(["leading",l.displayType]),style:f.normalizeStyle({...o.value.style,width:c.value+"px",height:c.value+"px",marginRight:.36*c.value+"px"})},f.toDisplayString(o.value.name),7)):f.createCommentVNode("",!0),l.displayType=="chinese"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:1,class:f.normalizeClass(["leading",l.displayType]),style:f.normalizeStyle(o.value.style)},f.toDisplayString(o.value.name),7)):f.createCommentVNode("",!0),l.displayType=="plaintext"&&l.plate!=="无牌车"?(f.openBlock(),f.createElementBlock("div",{key:2,class:f.normalizeClass(["leading",l.displayType])},f.toDisplayString(o.value.name),3)):f.createCommentVNode("",!0),f.createElementVNode("div",Oa,f.toDisplayString(l.plate),1)],512))}}),Nc="",Ci=zt(Ra,[["__scopeId","data-v-6395bb5a"]]),lt=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1}},emits:["ready","update","clipboard_success","clipboard_error","start","end"],setup(n,{expose:t,emit:e}){const s=n,i=e;let r="start";const o=()=>{r="start",i("start")},a=()=>{r="end",i("end")},c=()=>{r=="start"?a():o()},l=f.ref();let h,g,b=!1;return f.watchEffect(()=>{l.value&&(h||(h=io(l.value),h.eb.on("resize",()=>{b&&i("update",h)}),h.eb.on("mouseEnter",()=>{s.effectTriggerTiming=="mouseMove"&&c()}),h.eb.on("mouseLeave",()=>{s.effectTriggerTiming=="mouseMove"&&c()}),h.eb.on("tap",()=>{if(s.effectTriggerTiming=="click"&&c(),s.supportCopyText){const y=qn(l.value).getInnerText();go(y).then(()=>{i("clipboard_success",y)}).catch(m=>{i("clipboard_error",m.toString())})}}),s.effectTriggerTiming!=="manual"&&o(),s.effectTriggerTiming=="immediate"&&c(),h.start().then(()=>{g?.(h),i("ready",h),b=!0})))}),f.onMounted(()=>{}),f.onUnmounted(()=>{h?.end()}),t({getController:()=>new Promise(y=>{if(h)return y(h);g=y}),getElement:()=>l.value,getRect:()=>l.value.getBoundingClientRect()}),(y,m)=>(f.openBlock(),f.createElementBlock("div",f.mergeProps({ref_key:"r",ref:l,class:"container",style:{position:"relative",boxSizing:"border-box",display:s.type=="shrink"?"inline-block":"block",width:s.type=="full"?"100%":"auto",height:s.type=="full"?"100%":"auto"}},y.$attrs),[f.renderSlot(y.$slots,"default")],16))}}),Si=f.defineComponent({customOptions:{Container:lt},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.reactive({}),o=f.reactive({});let a=s.name,c=s.duration,l=s.timingFunction,h=s.delay,g=s.repeat,b=s.direction;function y(x){switch(a=x,a){case"superRainbow":c=s.duration||15e3;break;case"heartBeat":c=s.duration||1300;break;case"statusProcessing":c=s.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":c=s.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":c=s.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":c=s.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":c=s.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":c=s.duration||600;break;default:c=s.duration||500;break}switch(a){case"superRainbow":l=s.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":l=s.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":l=s.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":l=s.timingFunction||"ease-in-out";break;default:l=s.timingFunction||"ease";break}switch(a){default:h=s.delay||0;break}switch(a){case"superRainbow":case"statusProcessing":g=s.repeat||"infinite";break;default:g=s.repeat||1;break}switch(a){case"superRainbow":b=s.direction||"alternate";break;default:b=s.direction||"normal";break}switch(a){case"hinge":case"rotateFall":o.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":o.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":o.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":o.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":o.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":o.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":o.transformOrigin="right bottom";break;default:delete o.transformOrigin;break}switch(a){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":r.overflow="visible";break;default:r.overflow="hidden";break}switch(a){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":o.backfaceVisibility="visible";break;default:delete o.backfaceVisibility;break}}const m=f.ref(),S=x=>{r.perspective=s.perspective,x.eb.on("animationstart",I=>{i("cssanimationstart",I.animationName)}),x.eb.on("animationend",I=>{i("cssanimationend",I.animationName)})};function P(){m.value.style.animation="none",m.value.offsetHeight,m.value.style.animation=null}const T=()=>{o.animation="none"},C=()=>{P(),o.animation=`${c}ms ${l} ${h}ms ${g} ${b} ${s.fillMode} ${s.playState} ${a}`},_=x=>{x&&y(x),T(),b="normal",C()},p=x=>{x&&y(x),T(),b="reverse",C()},v=()=>{o.animation="none"};return f.watch(()=>s.name,()=>{y(s.name)},{immediate:!0}),t({trigger:_,triggerReverse:p,clear:v}),(x,I)=>(f.openBlock(),f.createBlock(lt,{class:"css-animation",type:s.containerType,supportCopyText:s.supportCopyText,effectTriggerTiming:s.effectTriggerTiming,style:f.normalizeStyle(r),onReady:S,onStart:T,onEnd:C},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"css-animation-inner",ref_key:"animationRef",ref:m,style:f.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[f.renderSlot(x.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),Dc="",Pi=f.defineComponent({customOptions:{Container:lt,CSSAnimation:Si},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:F.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=f.ref(),o=f.reactive({}),a=()=>{i("ready",x,I)},c=()=>{S()},l=f.ref();let h="rotateRightSideFirst",g=s.effect;function b(O,R){switch(g){case"static":R();break;default:O();break}}let y=!1;const m=new Te,S=()=>{const O={},R={};m.clear(),m.frameDuration=s.duration,b(()=>{h=g},()=>{m.addTween(O,R,{delay:s.delay/s.duration,easeFunction:s.easeFunction,onStart:()=>{i(y?"pageCloseStart":"pageOpenStart")},onUpdate:L=>{o.transform="","x"in L&&(o.transform+=` translateX(${L.x}%)`),"y"in L&&(o.transform+=` translateY(${L.y}%)`),"rx"in L&&(o.transform+=` rotateX(${L.rx}deg)`),"ry"in L&&(o.transform+=` rotateY(${L.ry}deg)`),"scale"in L&&(o.transform+=` scale(${L.scale})`),"opacity"in L&&(o.opacity=`${L.opacity}`)},onComplete:()=>{i(y?"pageCloseEnd":"pageOpenEnd")}})})};f.watch(()=>[s.effect,s.delay,s.duration,s.easeFunction],()=>{g=s.effect,S()},{immediate:!0});const P=()=>{i(y?"pageCloseStart":"pageOpenStart")},T=()=>{i(y?"pageCloseEnd":"pageOpenEnd")},C=()=>{b(()=>{l.value.trigger(h)},()=>{m.play()})},_=()=>{b(()=>{l.value.triggerReverse(h)},()=>{m.reverse()})},p=()=>{o.transform="none",o.opacity="1"};function v(){b(()=>{p()},()=>{l.value?.clear()})}const x=O=>{O&&(g=O,S()),y=!1,v(),C()},I=O=>{O&&(g=O,S()),y=!0,v(),_()};return t({open:x,close:I,clear:p}),(O,R)=>(f.openBlock(),f.createBlock(lt,{class:"page",ref_key:"pageRef",ref:r,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onUpdate:c},{default:f.withCtx(()=>[f.createVNode(Si,{ref_key:"cssAnimationRef",ref:l,containerType:"full",effectTriggerTiming:"manual",duration:s.duration,delay:s.delay,timingFunction:s.timingFunction,onCssanimationstart:P,onCssanimationend:T},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"page-inner",style:f.normalizeStyle({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[f.renderSlot(O.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),ki=f.defineComponent({customOptions:{Page:Pi,Container:lt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:F.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(n,{expose:t,emit:e}){const s=n,i=e;let r=-1,o=-1,a;const c=[];let l=[],h=[],g=[];function b(N){return N>=0&&N<l.length}function y(){return o>r}function m(N,E,ht){switch(N){case r:return y()?E:ht;case o:return y()?ht:E;default:return"static"}}function S(N,E){switch(N){case"moveToLeft":return m(E,"moveToLeft","moveFromRight");case"moveToRight":return m(E,"moveToRight","moveFromLeft");case"moveToTop":return m(E,"moveToTop","moveFromBottom");case"moveToBottom":return m(E,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return m(E,"fade","moveFromLeft");case"moveFromRightPrevFade":return m(E,"fade","moveFromRight");case"moveFromTopPrevFade":return m(E,"fade","moveFromTop");case"moveFromBottomPrevFade":return m(E,"fade","moveFromBottom");case"moveToLeftFade":return m(E,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return m(E,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return m(E,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return m(E,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return m(E,"moveToLeft","moveFromRight");case"moveToRightEasing":return m(E,"moveToRight","moveFromLeft");case"moveToTopEasing":return m(E,"moveToTop","moveFromBottom");case"moveToBottomEasing":return m(E,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return m(E,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return m(E,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return m(E,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return m(E,"scaleToSmall","moveFromBottom");case"scaleSmall":return m(E,"scaleToSmall","scaleFromLarge");case"scaleLarge":return m(E,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return m(E,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return m(E,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return m(E,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return m(E,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return m(E,"moveToBottom","scaleFromSmall");case"glueToLeft":return m(E,"rotateRightSideFirst","moveFromRight");case"glueToRight":return m(E,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return m(E,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return m(E,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return m(E,"flipOutLeft","flipInRight");case"flipToRight":return m(E,"flipOutRight","flipInLeft");case"flipToTop":return m(E,"flipOutTop","flipInBottom");case"flipToBottom":return m(E,"flipOutBottom","flipInTop");case"rotateFall":return m(E,"rotateFall","scaleFromSmall");case"newspaper":return m(E,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return m(E,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return m(E,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return m(E,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return m(E,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return m(E,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return m(E,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return m(E,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return m(E,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return m(E,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return m(E,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return m(E,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return m(E,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return m(E,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return m(E,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return m(E,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return m(E,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return m(E,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return m(E,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return m(E,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return m(E,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return m(E,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return m(E,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return m(E,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return m(E,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return m(E,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return m(E,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return m(E,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return m(E,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return m(E,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return m(E,"rotateSlideOut","rotateSlideIn")}}function P(N,E=600,ht=600){switch(N){case r:return E;case o:return ht;default:return s.duration}}function T(N,E){switch(N){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return P(E,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return P(E,700,600);case"scaleSmall":return P(E,700,500);case"scaleLarge":return P(E,500,700);case"scaleToLargePrevScaleToSmall":return P(E,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return P(E,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return P(E,800,600);default:return s.duration}}let C=s.timingFunction;function _(N){switch(N){default:return s.easeFunction}}function p(N,E){switch(N){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(E){case r:C=y()?"ease-in-out":"ease";break;case o:default:C=y()?"ease":"ease-in-out"}return _(E);default:return C=s.timingFunction,s.easeFunction}}function v(N,E=300){switch(N){case o:return s.delay+E;default:return s.delay}}function x(N,E){switch(N){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return v(E,500);case"scaleSmall":case"scaleLarge":return v(E,300);case"scaleToLargePrevScaleToSmall":return v(E,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return v(E,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return v(E,180);default:return s.delay}}let I=2,O=2;const R=()=>{I=2,O=2},L=()=>{I=2,O=3},B=()=>{I=3,O=2};function $(N){switch(s.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":B();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":y()?B():L();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":y()?L():B();break;default:R();break}b(r)&&r==N&&(g[r].style.zIndex=`${I}`,g[r].style.visibility="visible"),b(o)&&o==N&&(g[o].style.zIndex=`${O}`,g[o].style.visibility="visible")}function D(N){L(),N==r&&(g[r].style.zIndex=`${I}`,g[r].style.visibility="hidden"),N==o&&(g[o].style.zIndex=`${O}`,g[o].style.visibility="visible",c.shift()?.(),i("routeChangeEnd",r,o,l.length),r=o)}const X=f.ref();function W(N=0,E=!1){if(!X.value)return;let ht=0;f.render(f.h("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},l.map((tt,G)=>{const yt=S(s.effect,G);return f.h("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:r==G?"visible":"hidden",zIndex:E?"1":"0"}},tt.pageKey?{key:tt.pageKey}:{}),f.h(Pi,{effect:yt,duration:T(s.effect,G),easeFunction:p(s.effect,G),timingFunction:C,delay:x(s.effect,G),onReady:(q,Q)=>{h[G]={open:q,close:Q},++ht==N&&(a?.(),i("renderComplete"))},onPageOpenStart:()=>{$(G)},onPageOpenEnd:()=>{D(G)},onPageCloseStart:()=>{$(G)},onPageCloseEnd:()=>{D(G)}},{default:()=>tt.component instanceof HTMLElement?f.h("div",{...tt.attributes,innerHTML:tt.component.innerHTML}):f.h(tt.component,tt.attributes,()=>tt.child)}))})),X.value),g=X.value.children[0].children}f.watch(()=>s.effect,()=>{W()});function ot(N=[]){l=[...N],l.forEach(E=>{E.pageKey=E.pageKey||_e()}),a=()=>{r=-1,it(0)},W(l.length,!0)}function pt(N){N.pageKey=N.pageKey||_e(),l.push(N),a=()=>{it(l.length-1)},W(1,l.length==1)}function Tt(){l.length<=1||it(l.length-2,()=>{l.splice(l.length-1,1),r=l.length-1,W()})}function gt(){it(r+1)}function Ct(){it(r-1)}const St=new pr(1);function it(N,E){St.addTask(()=>new Promise(ht=>{const tt=()=>{E?.(),ht()};if(!b(N)){tt();return}if(o=N,o==r){tt();return}c.push(tt),W(),i("routeChangeStart",r,o,l.length),y()?(b(r)&&h[r].open(),b(o)&&h[o].open()):(b(r)&&h[r].close(),b(o)&&h[o].close())}))}return t({reset:ot,push:pt,pop:Tt,forward:gt,back:Ct,goto:it,currentPageIndex:()=>r,totalPages:()=>l.length}),(N,E)=>(f.openBlock(),f.createElementBlock("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),Ei=f.defineComponent({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},global:{type:Boolean,default:!0},color:{default:"rgba(0, 0, 0, 0.25)"}},setup(n,{expose:t}){const e=n,s=f.computed(()=>({display:e.visible?"block":"none",overflow:"hidden","background-color":e.color,position:"fixed","z-index":"99999",width:"100%",height:"100%",inset:"0"})),i=f.ref(),r=Sn(document.documentElement,"overflow")||"visible";let o="";return f.watch(()=>e.visible,()=>{e.global?le(document.documentElement,"overflow",e.visible?"hidden":r):(o||(o=Sn(i.value.parentElement,"overflow")||"visible"),le(i.value.parentElement,"overflow",e.visible?"hidden":o))},{immediate:!0}),t({}),(a,c)=>(f.openBlock(),f.createElementBlock("div",{ref_key:"el",ref:i,class:"overlay",style:f.normalizeStyle(s.value)},[f.renderSlot(a.$slots,"default")],4))}}),de=f.defineComponent({customOptions:{Overlay:Ei,Container:lt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},global:{type:Boolean,default:!0},overlayBgColor:{},popValue:{}},emits:["open","close","resize","clickOverlay"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=new Te({frameDuration:s.dur}),o=f.reactive({position:"absolute",opacity:"1",transformOrigin:"center",willChange:"transform"}),a=f.ref(!1),c=f.ref("full");f.watch(()=>[s.directionFrom,s.popValue],()=>{r.clear();const S=!s.popValue,P=s.popValue?s.popValue:100,T=s.popValue?"px":"%";switch(s.directionFrom){case"left":o.height="100%",S?delete o.width:o.width=`${P}${T}`,o.top="0",o.bottom="0",delete o.right,r.addTween({left:P},{left:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.left=`-${C.left}${T}`},onComplete:g});break;case"right":o.height="100%",S?delete o.width:o.width=`${P}${T}`,o.top="0",o.bottom="0",delete o.left,r.addTween({right:P},{right:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.right=`-${C.right}${T}`},onComplete:g});break;case"top":o.width="100%",S?delete o.height:o.height=`${P}${T}`,o.left="0",o.right="0",delete o.bottom,r.addTween({top:P},{top:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.top=`-${C.top}${T}`},onComplete:g});break;case"bottom":o.width="100%",S?delete o.height:o.height=`${P}${T}`,o.left="0",o.right="0",delete o.top,r.addTween({bottom:P},{bottom:0},{easeFunction:F.Quadratic.Out,onUpdate(C){o.bottom=`-${C.bottom}${T}`},onComplete:g});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,r.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:F.Quadratic.Out,onUpdate(C){o.transform=`translate(-50%, -50%) scale(${C.scale})`,o.opacity=`${C.opacity}`},onComplete:g});break;case"absolute":o.width=s.absoluteWidth,o.height=s.absoluteHeight,o.left=s.absoluteLeft,o.top=s.absoluteTop,delete o.right,delete o.bottom;break}switch(s.directionFrom){case"center":c.value="shrink",o.transform="translate(-50%, -50%)";break;case"absolute":c.value="shrink",delete o.transform,delete o.opacity;break;default:c.value="full",delete o.transform,delete o.opacity;break}S&&(c.value="shrink")},{immediate:!0}),f.watch(()=>s.absoluteLeft,()=>{switch(s.directionFrom){case"absolute":o.left=s.absoluteLeft;break}}),f.watch(()=>s.absoluteTop,()=>{switch(s.directionFrom){case"absolute":o.top=s.absoluteTop;break}}),f.watch(()=>s.absoluteWidth,()=>{switch(s.directionFrom){case"absolute":o.width=s.absoluteWidth;break}}),f.watch(()=>s.absoluteHeight,()=>{switch(s.directionFrom){case"absolute":o.height=s.absoluteHeight;break}});const l=S=>{i("resize",S.rect)};let h="open";function g(){h=="open"?i("open"):(a.value=!1,i("close"))}function b(){a.value=!0,h="open",r.play()}function y(){switch(h="close",s.directionFrom){case"absolute":g();break;default:r.reverse();break}}function m(S){const P=s.directionFrom=="absolute"&&s.absoluteWidth=="100%"&&s.absoluteHeight=="100%"?"pop-content":"pop";S.target&&$n(S.target,P)&&(s.closeWhenClickOverlay&&y(),i("clickOverlay"))}return t({open:b,close:y}),(S,P)=>(f.openBlock(),f.createBlock(Ei,{visible:a.value,global:s.global,color:s.overlayBgColor},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%"},onClick:m},[f.createVNode(lt,{class:"pop-content",type:c.value,style:f.normalizeStyle(o),onReady:l,onUpdate:l},{default:f.withCtx(()=>[f.renderSlot(S.$slots,"default",{},()=>[P[0]||(P[0]=f.createElementVNode("div",null,null,-1))])]),_:3},8,["type","style"])])]),_:3},8,["visible","global","color"]))}}),La=["src"],Na=f.defineComponent({name:"Image",customOptions:{Container:lt,Pop:de},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(n,{expose:t,emit:e}){const s=n,i=e,r=new Te({frameDuration:s.dur}),o=f.ref(0),a=f.ref(0),c=f.ref(0),l=f.ref(0),h=f.ref(0),g=f.ref(0),b=f.ref(0),y=f.ref(0),m=f.ref(!0),S=f.ref(0),P=f.ref(0);mo(s.src).then(D=>{S.value=D.width,P.value=D.height,x()}).catch(()=>{m.value=!1});const T=f.ref(0),C=f.ref(0),_=D=>{T.value=D.rect.width,C.value=D.rect.height,x()},p=f.ref(0),v=f.ref(0);function x(){if(!T.value||!C.value||!S.value||!P.value)return;const D=On(s.mode,S.value,P.value,T.value,C.value);p.value=D.width,v.value=D.height;const{width:X,height:W}=Kr(),ot=On("aspectFit",S.value,P.value,X,W);b.value=ot.width,y.value=ot.height,h.value=(X-b.value)/2,g.value=(W-y.value)/2}const I=D=>{i("settled",D.rect.x,D.rect.y,D.rect.width,D.rect.height)};let O=!1;const R=f.ref(),L=f.ref();async function B(){if(!s.openImageDetailWhenClick)return;const D=await R.value.getRect();r.clear(),r.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:h.value,top:g.value,width:b.value,height:y.value},{easeFunction:F.Quadratic.Out,onUpdate(X){o.value=X.left,a.value=X.top,c.value=X.width,l.value=X.height},onComplete(){O&&L.value.close(),O=!O}}),O||(L.value.open(),r.play())}function $(){O&&r.reverse()}return t({}),(D,X)=>(f.openBlock(),f.createBlock(lt,{class:"image",type:"full",style:f.normalizeStyle({backgroundColor:s.bgColor}),onReady:_,onUpdate:_,onClick:B},{default:f.withCtx(()=>[m.value?(f.openBlock(),f.createBlock(lt,{key:0,class:"image-inner",ref_key:"imageRef",ref:R,type:"shrink",style:f.normalizeStyle({width:p.value+"px",height:v.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${p.value}px ${v.value}px`}),onReady:I,onUpdate:I},null,8,["style"])):f.createCommentVNode("",!0),m.value?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lt,{key:1,type:"shrink"},{default:f.withCtx(()=>[f.createElementVNode("img",{src:s.src,style:{display:"block",objectFit:"contain"}},null,8,La)]),_:1})),f.createVNode(de,{ref_key:"popRef",ref:L,"direction-from":"absolute","absolute-left":`${o.value}px`,"absolute-top":`${a.value}px`,"absolute-width":`${c.value}px`,"absolute-height":`${l.value}px`,"close-when-click-overlay":!1,onClickOverlay:$},{default:f.withCtx(()=>[f.createElementVNode("div",{class:"image-pop",style:f.normalizeStyle({width:"100%",height:"100%",backgroundImage:`url(${s.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),Vc="",Ai=zt(Na,[["__scopeId","data-v-67c2d0de"]]),Da={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Mi=f.defineComponent({customOptions:{Image:Ai,Container:lt,Routes:ki},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(n,{expose:t,emit:e}){const s=n,i=f.ref(0);function r(b,y){i.value=y}const o=f.ref(),a=b=>{b.eb.on("panLeft",()=>{o.value?.forward()}),b.eb.on("panRight",()=>{o.value?.back()}),o.value.reset(s.urls.map(y=>({component:f.h(Ai,{mode:"aspectFit",src:y,openImageDetailWhenClick:!1})})))},c=f.ref();function l(){c.value?.open()}function h(){c.value?.close()}const g=b=>{b.target&&$n(b.target,"image")&&h()};return t({open:l,close:h}),(b,y)=>(f.openBlock(),f.createBlock(de,{ref_key:"popRef",ref:c,directionFrom:"absolute",onClick:g},{default:f.withCtx(()=>[s.urls.length>1?(f.openBlock(),f.createElementBlock("div",Da,f.toDisplayString(i.value+1)+" / "+f.toDisplayString(s.urls.length),1)):f.createCommentVNode("",!0),f.createVNode(lt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:f.withCtx(()=>[f.createVNode(ki,{ref_key:"routesRef",ref:o,effect:s.effect,onRouteChangeEnd:r},null,8,["effect"])]),_:1})]),_:1},512))}}),Va={class:"pop-tel"},Ba=["href"],Xa=f.defineComponent({customOptions:{Pop:de},inheritAttrs:!0,__name:"PopTel",props:{tel:{}},setup(n,{expose:t,emit:e}){const s=f.ref();function i(){s.value?.open()}function r(){s.value?.close()}return t({open:i,close:r}),(o,a)=>(f.openBlock(),f.createBlock(de,{directionFrom:"bottom",closeWhenClickOverlay:!1,ref_key:"el",ref:s},{default:f.withCtx(()=>[f.createElementVNode("div",Va,[f.createElementVNode("div",null,f.toDisplayString(o.tel),1),f.createElementVNode("a",{class:"pop-tel-call",onClick:r,href:`tel:${o.tel}`}," 呼叫 ",8,Ba),f.createElementVNode("div",{class:"pop-tel-cancel",onClick:r}," 取消 ")])]),_:1},512))}}),Bc="",Ii=zt(Xa,[["__scopeId","data-v-c1425500"]]),Ya={class:"lot-main"},Ga={class:"lot-detail"},Ua={class:"bold"},$a=f.defineComponent({customOptions:{LayoutPage:te,Footer:Ti,PlateDisplay:Ci,ViewDocument:Wn,PopTel:Ii,ImageView:Mi},inheritAttrs:!0,__name:"Lot",setup(n){const t=Ft.useRouter();function e(){t.push({name:"view-document",params:{title:"收费标准",src:encodeURIComponent("https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159")}})}const s=f.ref();function i(){s.value?.open()}const r=f.ref();function o(){r.value?.open()}return(a,c)=>(f.openBlock(),f.createBlock(te,{class:"lot"},{footer:f.withCtx(()=>[f.createVNode(Ti)]),global:f.withCtx(()=>[f.createVNode(Ii,{tel:"15851575410",ref_key:"popTelEl",ref:s},null,512),f.createVNode(Mi,{urls:["https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159","https://erichd2.oss-cn-shanghai.aliyuncs.com/0000/0002/2159"],ref_key:"imageViewEl",ref:r},null,512)]),default:f.withCtx(()=>[c[15]||(c[15]=f.createElementVNode("div",{class:"lot-main-bg"},null,-1)),f.createElementVNode("div",Ya,[c[12]||(c[12]=f.createElementVNode("div",null,"若临测试泊位机器人停车场",-1)),c[13]||(c[13]=f.createElementVNode("div",null,[f.createElementVNode("div"),f.createElementVNode("div",null,"编号"),f.createElementVNode("div")],-1)),c[14]||(c[14]=f.createElementVNode("div",null,[f.createElementVNode("span",null,"103"),f.createElementVNode("span",null,"002")],-1)),f.createElementVNode("div",null,[c[0]||(c[0]=f.createElementVNode("div",null,"停车场主页",-1)),c[1]||(c[1]=f.createElementVNode("div",null,"更换附近车位",-1)),f.createElementVNode("div",{onClick:e},"收费标准")]),f.createElementVNode("div",Ga,[c[4]||(c[4]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"待支付"),f.createElementVNode("div",{class:"red"},"¥0.01")],-1)),c[5]||(c[5]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"已支付"),f.createElementVNode("div",null,"¥0.01")],-1)),c[6]||(c[6]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"订单编号"),f.createElementVNode("div",null,"33333333333")],-1)),c[7]||(c[7]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"开始时间"),f.createElementVNode("div",null,"2025-04-08 09:41:25")],-1)),c[8]||(c[8]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"停车时长"),f.createElementVNode("div",null,"51小时53分钟15秒")],-1)),c[9]||(c[9]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"优惠券"),f.createElementVNode("div",{class:"red"},"1分钟")],-1)),c[10]||(c[10]=f.createElementVNode("div",null,[f.createElementVNode("div",null,"优惠信息"),f.createElementVNode("div",{class:"red"},"xxxx")],-1)),c[11]||(c[11]=f.createElementVNode("div",{class:"lot-detail-gap"},null,-1)),f.createElementVNode("div",null,[c[2]||(c[2]=f.createElementVNode("div",null,"车牌号",-1)),f.createElementVNode("div",Ua,[f.createVNode(Ci,{plate:"苏U77777","plate-type":"b"})])]),f.createElementVNode("div",null,[c[3]||(c[3]=f.createElementVNode("div",null,"现场照片",-1)),f.createElementVNode("div",{onClick:o},"查看")])]),f.createElementVNode("div",{class:"lot-actions"},[f.createElementVNode("div",{onClick:i},"联系客服")])])]),_:1}))}}),Xc="",qa=zt($a,[["__scopeId","data-v-feee85ac"]]),ja=f.defineComponent({customOptions:{LayoutPage:te},inheritAttrs:!0,__name:"Park",setup(n){return(t,e)=>(f.openBlock(),f.createBlock(te,{class:"park"},{default:f.withCtx(()=>e[0]||(e[0]=[f.createTextVNode("Park")])),_:1}))}}),Yc="",Ha=zt(ja,[["__scopeId","data-v-9704593b"]]),Za=Ft.createRouter({history:Ft.createWebHashHistory("/"),routes:[{path:"/view-document/:title/:src",name:"view-document",component:Wn},{path:"/",name:"xg",redirect:"/lot"},{path:"/lot",name:"lot",component:qa},{path:"/park",name:"park",component:Ha}],scrollBehavior:(n,t,e)=>e||{left:0,top:0}}),Ls=f.ref("next"),$e=[];Za.beforeEach((n,t,e)=>{const s=$e.length,i=$e.findIndex(r=>r==n.name);s>1&&i>=0&&i<s-1?(Ls.value="prev",$e.splice(i+1)):(Ls.value="next",$e.push(n.name)),e()});const Wa="increment",Qa="decrement",Ka="incrementAction";function Ja(){return{store:kt.useStore()}}function tc(n,t){let e=kt.mapState;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapState:t=n,Fi(t,e)}function ec(n,t){let e=kt.mapGetters;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapGetters:t=n,Fi(t,e)}function sc(n,t){let e=kt.mapMutations;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapMutations:t=n,Array.isArray(t),e(t)}function nc(n,t){let e=kt.mapActions;return typeof n=="string"&&n.length>0?e=kt.createNamespacedHelpers(n).mapActions:t=n,Array.isArray(t),e(t)}function Fi(n,t){const e=kt.useStore(),s={},i=t(n);return Object.keys(i).forEach(r=>{const o=i[r].bind({$store:e});s[r]=f.computed(o)}),s}return Object.defineProperty(H,"RouterLink",{enumerable:!0,get:()=>Ft.RouterLink}),Object.defineProperty(H,"RouterView",{enumerable:!0,get:()=>Ft.RouterView}),Object.defineProperty(H,"useRoute",{enumerable:!0,get:()=>Ft.useRoute}),Object.defineProperty(H,"useRouter",{enumerable:!0,get:()=>Ft.useRouter}),H.DECREMENT=Qa,H.INCREMENT=Wa,H.INCREMENTACTION=Ka,H.getInstance=Ki,H.getVNode=js,H.renderComponent=Ji,H.routeDirection=Ls,H.useVueEffect=tr,H.useVuex=Ja,H.useVuexActions=nc,H.useVuexGetters=ec,H.useVuexMutations=sc,H.useVuexStates=tc,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),H}({},vue,vue-router,vuex);
23
30
  //# sourceMappingURL=zyzgroup_core_vue.iife.js.map