@gkits/collect 0.0.7 → 0.0.8

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.
@@ -0,0 +1,7 @@
1
+ export declare class Screens {
2
+ private static _case;
3
+ static get case(): Screens;
4
+ size: number;
5
+ toVw(value: number): string;
6
+ toPx(value: number): string;
7
+ }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{css as t,attr as e,customElement as o,HIElement as n,html as r,ref as i,observable as s,nullableNumberConverter as a,when as l,repeat as c}from"hi-element";function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var p,u={exports:{}};(p=u).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},p.exports.__esModule=!0,p.exports.default=p.exports;var h=d(u.exports),v={exports:{}},f={exports:{}},g={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(g);var m={exports:{}};!function(t){var e=g.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(m),function(t){var e=g.exports.default,o=m.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(f),function(t){var e=f.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(v);var y=d(v.exports),w={exports:{}},b={exports:{}},x={exports:{}};!function(t){function e(o){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(x);var k=d(x.exports);!function(t){var e=x.exports;t.exports=function(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(b),function(t){var e=b.exports;function o(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=o=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,o,n){var r=e(t,o);if(r){var i=Object.getOwnPropertyDescriptor(r,o);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(this,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(w);var S=d(w.exports),C={exports:{}},O={exports:{}};!function(t){function e(o,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(O),function(t){var e=O.exports;t.exports=function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e(t,o)},t.exports.__esModule=!0,t.exports.default=t.exports}(C);var L=d(C.exports),B={exports:{}},A={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(A),function(t){var e=g.exports.default,o=A.exports;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(B);var $=d(B.exports),z={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}(z);var E=d(z.exports),I={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(I);var _=d(I.exports);function T(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"===("undefined"==typeof Reflect?"undefined":_(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}var P={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(P);var j=d(P.exports),F={exports:{}},N={exports:{}},M={exports:{}};!function(t){var e=I.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(M),function(t){var e=I.exports.default,o=M.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(N),function(t){var e=N.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(F);var R=d(F.exports);var D={exports:{}};!function(t){var e=N.exports;t.exports=function(t,o,n){return(o=e(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}(D);var H=d(D.exports),W={exports:{}},V={exports:{}},G={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n},t.exports.__esModule=!0,t.exports.default=t.exports}(G),function(t){var e=G.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(V);var Y={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Y);var J={exports:{}};!function(t){var e=G.exports;t.exports=function(t,o){if(t){if("string"==typeof t)return e(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,o):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(J);var X={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(X),function(t){var e=V.exports,o=Y.exports,n=J.exports,r=X.exports;t.exports=function(t){return e(t)||o(t)||n(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(W);var q=d(W.exports),U={exports:{}},K={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(K);var Q={exports:{}};!function(t){t.exports=function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i,s,a=[],l=!0,c=!1;try{if(i=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports}(Q);var Z={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Z),function(t){var e=K.exports,o=Q.exports,n=J.exports,r=Z.exports;t.exports=function(t,i){return e(t)||o(t,i)||n(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(U);var tt=d(U.exports),et=Math.min,ot=Math.max,nt=Math.floor,rt=Math.round;function it(t,e,o){e/=100,o/=100;var n=nt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function st(t,e,o){var n,r,i=et(t/=255,e/=255,o/=255),s=ot(t,e,o),a=s-i;if(0===a)n=r=0;else{r=a/s;var l=((s-t)/6+a/2)/a,c=((s-e)/6+a/2)/a,d=((s-o)/6+a/2)/a;t===s?n=d-c:e===s?n=1/3+l-d:o===s&&(n=2/3+c-l),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*s]}function at(t,e,o,n){e/=100,o/=100;var r=255*(1-et(1,(t/=100)*(1-(n/=100))+n)),i=255*(1-et(1,e*(1-n)+n)),s=255*(1-et(1,o*(1-n)+n));return q(st(r,i,s))}function lt(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function ct(t){return st.apply(void 0,q(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function dt(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,o={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},n=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in o)if(e=o[r].exec(t))switch(r){case"cmyk":var i=n(e),s=tt(i,5),a=s[1],l=s[2],c=s[3],d=s[4];if(a>100||l>100||c>100||d>100)break t;return{values:at(a,l,c,d),type:r};case"rgba":var p=n(e),u=tt(p,7),h=u[3],v=u[4],f=u[5],g=u[6];if(h>255||v>255||f>255||g<0||g>1)break t;return{values:[].concat(q(st(h,v,f)),[g]),a:g,type:r};case"hexa":var m=tt(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),w=m.substring(6);return w=w?parseInt(w,16)/255:void 0,{values:[].concat(q(ct(y)),[w]),a:w,type:r};case"hsla":var b=n(e),x=tt(b,7),k=x[3],S=x[4],C=x[5],O=x[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(q(lt(k,S,C)),[O]),a:O,type:r};case"hsva":var L=n(e),B=tt(L,7),A=B[3],$=B[4],z=B[5],E=B[6];if(A>360||$>100||z>100||E<0||E>1)break t;return{values:[A,$,z,E],a:E,type:r}}return{values:null,type:null}}function pt(){var t=function(t,e){return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~o?t.map((function(t){return Number(t.toFixed(o))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var o=[e.h,e.s,e.v,e.a];return o.toString=t(o,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toHSLA:function(){var o=[].concat(q(function(t,e,o){var n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toRGBA:function(){var o=[].concat(q(it(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),o},toCMYK:function(){var o=function(t,e,o){var n,r=it(t,e,o),i=r[0]/255,s=r[1]/255,a=r[2]/255;return[100*(1===(n=et(1-i,1-s,1-a))?0:(1-i-n)/(1-n)),100*(1===n?0:(1-s-n)/(1-n)),100*(1===n?0:(1-a-n)/(1-n)),100*n]}(e.h,e.s,e.v);return o.toString=t(o,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),o},toHEXA:function(){var t=function(t,e,o){return it(t,e,o).map((function(t){return rt(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),o=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return o&&t.push(o),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return pt(e.h,e.s,e.v,e.a)}};return e}function ut(t,e){var o=dt(t),n=pt.apply(void 0,q(o.values)).toRGBA();return"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(Number(n[3].toFixed(2))*e,")")}var ht={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},vt=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},ft=function(t){var e;return H(e={},"--".concat(t,"Color"),"var(--hi".concat(vt(t),"Color,").concat(ht[t],")")),H(e,"--".concat(t,"Color-hover"),"var(--hi".concat(vt(t),"Color-hover,").concat(ut(ht[t],.6),")")),H(e,"--".concat(t,"Color-active"),"var(--hi".concat(vt(t),"Color-active,").concat(ut(ht[t],.4),")")),H(e,"--".concat(t,"Color-outline"),"var(--hi".concat(vt(t),"Color-outline,").concat(ut(ht[t],.15),")")),e},gt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(ht.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(ut(ht.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(ht.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(ht.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},ft("primary")),ft("success")),ft("error")),ft("warning")),ft("info")),mt=function(t){return Object.prototype.toString.call(t)},yt=function(t){return"[object Object]"==mt(t)},wt=function(t){return"[object Array]"==mt(t)};function bt(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},o="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{".concat("\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n ","}\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n "),n="";if(t&&wt(t))for(var r=0;r<t.length;r++){var i=t[r];n+="".concat(e[i],";")}else for(var s in n+=o,e)if(Object.prototype.hasOwnProperty.call(e,s)){var a=e[s];n+=".".concat(s,"{").concat(a,"}")}return n}var xt,kt=function(){function t(){j(this,t),this.config={theme:gt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var s=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,s)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(o,n){var r,i,s=e.async,a=void 0===s||s,l=e.beforeSend,c=void 0===l?function(){}:l,d=e.data,p=void 0===d?null:d,u=e.headers,h=void 0===u?{}:u,v=e.method,f=void 0===v?"get":v,g=e.responseType,m=void 0===g?"json":g,y=e.timeout,w=void 0===y?0:y,b=new XMLHttpRequest;if(b.open(f,t,a),w&&(r=window.setTimeout((function(){n(new Error("the xhr request timeout ".concat(w,"ms")))}),w)),b.onerror=function(){n(new Error("unknown error"))},b.onreadystatechange=function(){if(4===b.readyState)if(w&&void 0!==r&&clearTimeout(r),b.status>=200&&b.status<300)o(b);else{var t=new Error("the request is error");n(t)}},yt(p))try{i=JSON.stringify(p),h["content-type"]="application/json"}catch(t){n(t)}else"string"==typeof p&&(h["content-type"]="application/x-www-form-urlencoded");for(var x in h)b.setRequestHeader(x,h[x]);w&&(b.timeout=w),b.responseType=m,!1!==c(b)&&b.send(i)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((function(t){window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}return R(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var o in t){var n=t[o];yt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}]),t}();function St(){var t="",e=kt.case.config.theme;for(var o in e)o&&(t+="".concat(o,":").concat(e[o],";"));return":host,:root{".concat(t,"} ").concat(".Visibility{visibility:hidden}"," ").concat(bt())}var Ct=t(xt||(xt=E(["\n:host{\n text-align:center;color:#fff\n}\n\n","\n:host{\n text-align:center;color:#fff\n}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {",";}\n.ConflateWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n.ConflateWrap .Title img{\n height:17.0666666666vw\n}\n.ConflateWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.ConflateWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 3.2vw;\ncolor: #FFF1D8;\nline-height: 1.5;\nfont-weight: 400;\n}\n.Icon{display:flex;justify-content:space-around;position:absolute;width:100%;bottom:58vw;}\n.Icon span{display:none}\n.Icon span.Coupon{display:block}\n.Icon div{width:26vw;text-align:center}\n.Icon div p{font-size:12px;}\n.Icon img{width:19.2vw}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .Icon{bottom:54vw;}\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 200vw) {\n .ConflateWrap .Title{margin-top:-5vw}\n .Icon{bottom:50vw;}\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 190vw) {\n .ConflateWrap .Title{margin-top:-10vw}\n .Icon{bottom:45vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 180vw) {\n .Button{bottom:18vw;}\n}\n@media screen and (max-height : 170vw) {\n .ConflateWrap .Title{margin-top:-16vw}\n .Icon{bottom:38vw;}\n .Button{bottom:15vw;}\n}\n"])),St(),bt(["PoiNo"]));function Ot(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}const Lt=t=>Object.prototype.toString.call(t),Bt=t=>"[object Object]"==Lt(t),At=t=>"[object Array]"==Lt(t);function $t(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((t=>{t=$t(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(const e in t)t[e]=$t(t[e]);return t}function zt(t){return(e,o)=>{if(Bt(e))for(var n in e)Et(t)(n,e[n]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((e=>{const o=(e=$t(e)).split(":");Et(t)(o[0],o[1])})):Et(t)(e,o))}}function Et(t){return(e,o)=>{if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}class It{static get instance(){return this._instance||(this._instance=new It),this._instance}constructor(){"classList"in document.documentElement?(this.has=(t,e)=>t.classList.contains(e),this.add=(t,e)=>{const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.add(o[e])},this.remove=(t,e)=>{if(!t)return;const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.remove(o[e])}):(this.has=(t,e)=>this.classReg(e).test(t.className),this.add=(t,e)=>{this.has(t,e)||(t.className=t.className+" "+e)},this.remove=(t,e)=>{t.className=t.className.replace(this.classReg(e)," ")})}classReg(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}toggle(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}const _t={addHandler(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},removeHandler(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},onceHandler(t,e,o){this.addHandler(t,e,o,{once:!0})},trigger(t,e,o){t.dispatchEvent(new CustomEvent(e,{detail:o,bubbles:!0,cancelable:!0}))},emitEvent(t,e,...o){let n,r;"string"==typeof e?(n=e,r="on"+this.capitalize(e)):(n=e.event,r=e.method),t.$listeners[`${n}`]&&t.$emit(n,...o),"function"==typeof t.$props[r]&&t.$props[r](...o)},capitalize:t=>t.charAt(0).toUpperCase()+t.slice(1)},Tt=t`
1
+ import{css as t,attr as e,customElement as o,HIElement as n,html as r,ref as i,observable as s,nullableNumberConverter as a,when as l,repeat as c}from"hi-element";function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var p,u={exports:{}};(p=u).exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},p.exports.__esModule=!0,p.exports.default=p.exports;var h=d(u.exports),v={exports:{}},f={exports:{}},g={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(g);var m={exports:{}};!function(t){var e=g.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(m),function(t){var e=g.exports.default,o=m.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(f),function(t){var e=f.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(v);var y=d(v.exports),w={exports:{}},b={exports:{}},x={exports:{}};!function(t){function e(o){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(x);var k=d(x.exports);!function(t){var e=x.exports;t.exports=function(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=e(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports}(b),function(t){var e=b.exports;function o(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=o=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,o,n){var r=e(t,o);if(r){var i=Object.getOwnPropertyDescriptor(r,o);return i.get?i.get.call(arguments.length<3?t:n):i.value}},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(this,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}(w);var S=d(w.exports),C={exports:{}},O={exports:{}};!function(t){function e(o,n){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o,n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(O),function(t){var e=O.exports;t.exports=function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e(t,o)},t.exports.__esModule=!0,t.exports.default=t.exports}(C);var B=d(C.exports),L={exports:{}},A={exports:{}};!function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports}(A),function(t){var e=g.exports.default,o=A.exports;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(L);var z=d(L.exports),$={exports:{}};!function(t){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.__esModule=!0,t.exports.default=t.exports}($);var E=d($.exports),I={exports:{}};!function(t){function e(o){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(I);var _=d(I.exports);function T(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"===("undefined"==typeof Reflect?"undefined":_(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}var P={exports:{}};!function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(P);var j=d(P.exports),F={exports:{}},N={exports:{}},M={exports:{}};!function(t){var e=I.exports.default;t.exports=function(t,o){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,o||"default");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(M),function(t){var e=I.exports.default,o=M.exports;t.exports=function(t){var n=o(t,"string");return"symbol"===e(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports}(N),function(t){var e=N.exports;function o(t,o){for(var n=0;n<o.length;n++){var r=o[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}t.exports=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports}(F);var R=d(F.exports);var D={exports:{}};!function(t){var e=N.exports;t.exports=function(t,o,n){return(o=e(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports}(D);var H=d(D.exports),W={exports:{}},V={exports:{}},G={exports:{}};!function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n},t.exports.__esModule=!0,t.exports.default=t.exports}(G),function(t){var e=G.exports;t.exports=function(t){if(Array.isArray(t))return e(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(V);var Y={exports:{}};!function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports}(Y);var J={exports:{}};!function(t){var e=G.exports;t.exports=function(t,o){if(t){if("string"==typeof t)return e(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,o):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports}(J);var X={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(X),function(t){var e=V.exports,o=Y.exports,n=J.exports,r=X.exports;t.exports=function(t){return e(t)||o(t)||n(t)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(W);var q=d(W.exports),U={exports:{}},K={exports:{}};!function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports}(K);var Q={exports:{}};!function(t){t.exports=function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var n,r,i,s,a=[],l=!0,c=!1;try{if(i=(o=o.call(t)).next,0===e){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=i.call(o)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}},t.exports.__esModule=!0,t.exports.default=t.exports}(Q);var Z={exports:{}};!function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports}(Z),function(t){var e=K.exports,o=Q.exports,n=J.exports,r=Z.exports;t.exports=function(t,i){return e(t)||o(t,i)||n(t,i)||r()},t.exports.__esModule=!0,t.exports.default=t.exports}(U);var tt=d(U.exports),et=Math.min,ot=Math.max,nt=Math.floor,rt=Math.round;function it(t,e,o){e/=100,o/=100;var n=nt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function st(t,e,o){var n,r,i=et(t/=255,e/=255,o/=255),s=ot(t,e,o),a=s-i;if(0===a)n=r=0;else{r=a/s;var l=((s-t)/6+a/2)/a,c=((s-e)/6+a/2)/a,d=((s-o)/6+a/2)/a;t===s?n=d-c:e===s?n=1/3+l-d:o===s&&(n=2/3+c-l),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*s]}function at(t,e,o,n){e/=100,o/=100;var r=255*(1-et(1,(t/=100)*(1-(n/=100))+n)),i=255*(1-et(1,e*(1-n)+n)),s=255*(1-et(1,o*(1-n)+n));return q(st(r,i,s))}function lt(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function ct(t){return st.apply(void 0,q(t.match(/.{2}/g).map((function(t){return parseInt(t,16)}))))}function dt(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";var e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;var e,o={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},n=function(t){return t.map((function(t){return/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0}))};t:for(var r in o)if(e=o[r].exec(t))switch(r){case"cmyk":var i=n(e),s=tt(i,5),a=s[1],l=s[2],c=s[3],d=s[4];if(a>100||l>100||c>100||d>100)break t;return{values:at(a,l,c,d),type:r};case"rgba":var p=n(e),u=tt(p,7),h=u[3],v=u[4],f=u[5],g=u[6];if(h>255||v>255||f>255||g<0||g>1)break t;return{values:[].concat(q(st(h,v,f)),[g]),a:g,type:r};case"hexa":var m=tt(e,2)[1];4!==m.length&&3!==m.length||(m=m.split("").map((function(t){return t+t})).join(""));var y=m.substring(0,6),w=m.substring(6);return w=w?parseInt(w,16)/255:void 0,{values:[].concat(q(ct(y)),[w]),a:w,type:r};case"hsla":var b=n(e),x=tt(b,7),k=x[3],S=x[4],C=x[5],O=x[6];if(k>360||S>100||C>100||O<0||O>1)break t;return{values:[].concat(q(lt(k,S,C)),[O]),a:O,type:r};case"hsva":var B=n(e),L=tt(B,7),A=L[3],z=L[4],$=L[5],E=L[6];if(A>360||z>100||$>100||E<0||E>1)break t;return{values:[A,z,$,E],a:E,type:r}}return{values:null,type:null}}function pt(){var t=function(t,e){return function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e(~o?t.map((function(t){return Number(t.toFixed(o))})):t)}},e={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var o=[e.h,e.s,e.v,e.a];return o.toString=t(o,(function(t){return"hsva(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toHSLA:function(){var o=[].concat(q(function(t,e,o){var n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"hsla(".concat(t[0],", ").concat(t[1],"%, ").concat(t[2],"%, ").concat(e.a,")")})),o},toRGBA:function(){var o=[].concat(q(it(e.h,e.s,e.v)),[e.a]);return o.toString=t(o,(function(t){return"rgba(".concat(t[0],", ").concat(t[1],", ").concat(t[2],", ").concat(e.a,")")})),o},toCMYK:function(){var o=function(t,e,o){var n,r=it(t,e,o),i=r[0]/255,s=r[1]/255,a=r[2]/255;return[100*(1===(n=et(1-i,1-s,1-a))?0:(1-i-n)/(1-n)),100*(1===n?0:(1-s-n)/(1-n)),100*(1===n?0:(1-a-n)/(1-n)),100*n]}(e.h,e.s,e.v);return o.toString=t(o,(function(t){return"cmyk(".concat(t[0],"%, ").concat(t[1],"%, ").concat(t[2],"%, ").concat(t[3],"%)")})),o},toHEXA:function(){var t=function(t,e,o){return it(t,e,o).map((function(t){return rt(t).toString(16).padStart(2,"0")}))}(e.h,e.s,e.v),o=e.a>=1?"":Number((255*e.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return o&&t.push(o),t.toString=function(){return"#".concat(t.join("").toUpperCase())},t},clone:function(){return pt(e.h,e.s,e.v,e.a)}};return e}function ut(t,e){var o=dt(t),n=pt.apply(void 0,q(o.values)).toRGBA();return"rgba(".concat(n[0].toFixed(0),",").concat(n[1].toFixed(0),",").concat(n[2].toFixed(0),",").concat(Number(n[3].toFixed(2))*e,")")}var ht={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},vt=function(t){return t.trim().toLowerCase().replace(t[0],t[0].toUpperCase())},ft=function(t){var e;return H(e={},"--".concat(t,"Color"),"var(--hi".concat(vt(t),"Color,").concat(ht[t],")")),H(e,"--".concat(t,"Color-hover"),"var(--hi".concat(vt(t),"Color-hover,").concat(ut(ht[t],.6),")")),H(e,"--".concat(t,"Color-active"),"var(--hi".concat(vt(t),"Color-active,").concat(ut(ht[t],.4),")")),H(e,"--".concat(t,"Color-outline"),"var(--hi".concat(vt(t),"Color-outline,").concat(ut(ht[t],.15),")")),e},gt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":"var(--hiThemeColor,".concat(ht.primary,")"),"--themeShadow":"var(--hiThemeShadow, ".concat(ut(ht.primary,.25),")"),"--themeBackground":"var(--hiThemeBackground,".concat(ht.primary,")"),"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":"var(--hiLinkFontColor,".concat(ht.primary,")"),"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},ft("primary")),ft("success")),ft("error")),ft("warning")),ft("info")),mt=function(t){return Object.prototype.toString.call(t)},yt=function(t){return"[object Object]"==mt(t)},wt=function(t){return"[object Array]"==mt(t)};function bt(t){var e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"},o="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{".concat("\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n ","}\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n "),n="";if(t&&wt(t))for(var r=0;r<t.length;r++){var i=t[r];n+="".concat(e[i],";")}else for(var s in n+=o,e)if(Object.prototype.hasOwnProperty.call(e,s)){var a=e[s];n+=".".concat(s,"{").concat(a,"}")}return n}var xt=function(){function t(){j(this,t),this.config={theme:gt,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(!window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE")){var t="✰ hi-kits ✰",e="\n\ndocs: ".concat(atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA=="),"/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n"),o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var s=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,s)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(o,n){var r,i,s=e.async,a=void 0===s||s,l=e.beforeSend,c=void 0===l?function(){}:l,d=e.data,p=void 0===d?null:d,u=e.headers,h=void 0===u?{}:u,v=e.method,f=void 0===v?"get":v,g=e.responseType,m=void 0===g?"json":g,y=e.timeout,w=void 0===y?0:y,b=new XMLHttpRequest;if(b.open(f,t,a),w&&(r=window.setTimeout((function(){n(new Error("the xhr request timeout ".concat(w,"ms")))}),w)),b.onerror=function(){n(new Error("unknown error"))},b.onreadystatechange=function(){if(4===b.readyState)if(w&&void 0!==r&&clearTimeout(r),b.status>=200&&b.status<300)o(b);else{var t=new Error("the request is error");n(t)}},yt(p))try{i=JSON.stringify(p),h["content-type"]="application/json"}catch(t){n(t)}else"string"==typeof p&&(h["content-type"]="application/x-www-form-urlencoded");for(var x in h)b.setRequestHeader(x,h[x]);w&&(b.timeout=w),b.responseType=m,!1!==c(b)&&b.send(i)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((function(t){window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}return R(t,[{key:"install",value:function(t){}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config;for(var o in t){var n=t[o];yt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}]),t}();function kt(){var t="",e=xt.case.config.theme;for(var o in e)o&&(t+="".concat(o,":").concat(e[o],";"));return":host,:root{".concat(t,"} ").concat(".Visibility{visibility:hidden}"," ").concat(bt())}var St,Ct={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")},Ot=t(St||(St=E(["\n:host{\n text-align:center;color:#fff\n}\n\n","\n:host{\n text-align:center;color:#fff\n}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {",";}\n.ConflateWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.ConflateWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n.ConflateWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.ConflateWrap .Title img{\n height:17.0666666666vw\n}\n.ConflateWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.ConflateWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 3.2vw;\ncolor: #FFF1D8;\nline-height: 1.5;\nfont-weight: 400;\n}\n.Icon{display:flex;justify-content:space-around;position:absolute;width:100%;bottom:58vw;}\n.Icon span{display:none}\n.Icon span.Coupon{display:block}\n.Icon div{width:26vw;text-align:center}\n.Icon div p{font-size:12px;}\n.Icon img{width:19.2vw}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .Icon{bottom:54vw;}\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 200vw) {\n .ConflateWrap .Title{margin-top:-5vw}\n .Icon{bottom:50vw;}\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 190vw) {\n .ConflateWrap .Title{margin-top:-10vw}\n .Icon{bottom:45vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 180vw) {\n .Button{bottom:18vw;}\n}\n@media screen and (max-height : 170vw) {\n .ConflateWrap .Title{margin-top:-16vw}\n .Icon{bottom:38vw;}\n .Button{bottom:15vw;}\n}\n"])),kt(),bt(["PoiNo"]),Ct.path);function Bt(t,e,o,n){var r,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(i<3?r(s):i>3?r(e,o,s):r(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s}const Lt=t=>Object.prototype.toString.call(t),At=t=>"[object Object]"==Lt(t),zt=t=>"[object Array]"==Lt(t);function $t(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((t=>{t=$t(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(const e in t)t[e]=$t(t[e]);return t}function Et(t){return(e,o)=>{if(At(e))for(var n in e)It(t)(n,e[n]);"string"==typeof e&&(/:/g.test(e)?e.split(";").forEach((e=>{const o=(e=$t(e)).split(":");It(t)(o[0],o[1])})):It(t)(e,o))}}function It(t){return(e,o)=>{if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}class _t{static get instance(){return this._instance||(this._instance=new _t),this._instance}constructor(){"classList"in document.documentElement?(this.has=(t,e)=>t.classList.contains(e),this.add=(t,e)=>{const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.add(o[e])},this.remove=(t,e)=>{if(!t)return;const o=e.split(" ");for(let e=0;e<o.length;e++)void 0!==t.classList&&t.classList.remove(o[e])}):(this.has=(t,e)=>this.classReg(e).test(t.className),this.add=(t,e)=>{this.has(t,e)||(t.className=t.className+" "+e)},this.remove=(t,e)=>{t.className=t.className.replace(this.classReg(e)," ")})}classReg(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}toggle(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}const Tt={addHandler(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},removeHandler(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},onceHandler(t,e,o){this.addHandler(t,e,o,{once:!0})},trigger(t,e,o){t.dispatchEvent(new CustomEvent(e,{detail:o,bubbles:!0,cancelable:!0}))},emitEvent(t,e,...o){let n,r;"string"==typeof e?(n=e,r="on"+this.capitalize(e)):(n=e.event,r=e.method),t.$listeners[`${n}`]&&t.$emit(n,...o),"function"==typeof t.$props[r]&&t.$props[r](...o)},capitalize:t=>t.charAt(0).toUpperCase()+t.slice(1)},Pt=t`
2
2
  :host{
3
3
  position: fixed;
4
4
  left: 0;
@@ -19,7 +19,7 @@ import{css as t,attr as e,customElement as o,HIElement as n,html as r,ref as i,o
19
19
  opacity: 0;
20
20
  transition: all 0.35s ease-out;
21
21
  }
22
- `;let Pt=class extends n{constructor(){super(),this.show=!1}showChanged(t,e){null===e||!1===e?It.instance.add(this,"Leave"):It.instance.remove(this,"Leave")}connectedCallback(){super.connectedCallback(),this.background&&zt(this)("background",this.background),_t.addHandler(this,"transitionend",(()=>{this.transitionendChange()}))}transitionendChange(){this.show||this.$emit("change")}};Ot([e],Pt.prototype,"background",void 0),Ot([e({mode:"boolean"})],Pt.prototype,"show",void 0),Pt=Ot([o({name:"h-mask",styles:Tt,shadowOptions:{mode:"closed"}})],Pt);const jt=new class{constructor(){if(this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=()=>{void 0!==this.previousBodyPaddingRight&&(document.body.style.paddingRight=this.previousBodyPaddingRight,this.previousBodyPaddingRight=void 0),void 0!==this.previousBodyOverflowSetting&&(document.body.style.overflow=this.previousBodyOverflowSetting,document.documentElement.style.overflow=this.previousBodyOverflowSetting,this.previousBodyOverflowSetting=void 0)},this.handleScroll=(t,e)=>{const o=t.targetTouches[0].clientY-this.initialClientY;return!this.allowTouchMove(t.target)&&(e&&0===e.scrollTop&&o>0||this.isTargetElementTotallyScrolled(e)&&o<0?this.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){const t={get passive(){this.hasPassiveEvents=!0}};_t.addHandler(window,"testPassive",null,t),_t.removeHandler(window,"testPassive",null,t)}}isTargetElementTotallyScrolled(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}allowTouchMove(t){this.locks.some((e=>!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))))}preventDefault(t){const e=t||window.event;return!!this.allowTouchMove(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}setOverflowHidden(t){if(void 0===this.previousBodyPaddingRight){const e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=`${o}px`)}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}disable(t,e){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(this.locks.some((e=>e.targetElement===t)))return;const o={targetElement:t,options:e||{}};this.locks=[...this.locks,o],this.isIosDevice?(t.ontouchstart=t=>{1===t.targetTouches.length&&(this.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=e=>{1===e.targetTouches.length&&this.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}clearAll(){this.isIosDevice?(this.locks.forEach((t=>{t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(_t.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}enable(t){t?(this.locks=this.locks.filter((e=>e.targetElement!==t)),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(_t.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}};function Ft(t,e,o){const n=o.value;return o.value=function(t,e){return null===e||!1===e?jt.enable(document.body):jt.disable(document.body),n.apply(this,arguments)},o}function Nt(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:()=>{}}function Mt(t){return t?e=>{if("string"==typeof e)t.removeAttribute(e);else for(let o=0;o<e.length;o++){const n=e[o];t.removeAttribute(n)}}:()=>{}}const{min:Rt,max:Dt,floor:Ht,round:Wt}=Math;function Vt(t,e,o){e/=100,o/=100;let n=Ht(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function Gt(t,e,o){let n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}function Yt(t,e,o){let n,r,i;const s=Rt(t/=255,e/=255,o/=255),a=Dt(t,e,o),l=a-s;if(i=a,0===l)n=r=0;else{r=l/a;let i=((a-t)/6+l/2)/l,s=((a-e)/6+l/2)/l,c=((a-o)/6+l/2)/l;t===a?n=c-s:e===a?n=1/3+i-c:o===a&&(n=2/3+s-i),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*i]}function Jt(t,e,o,n){return e/=100,o/=100,[...Yt(255*(1-Rt(1,(t/=100)*(1-(n/=100))+n)),255*(1-Rt(1,e*(1-n)+n)),255*(1-Rt(1,o*(1-n)+n)))]}function Xt(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function qt(t){return Yt(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function Ut(t=0,e=0,o=0,n=1){const r=(t,e)=>(o=0)=>e(~o?t.map((t=>Number(t.toFixed(o)))):t),i={h:t,s:e,v:o,a:n,toHSVA(){const t=[i.h,i.s,i.v,i.a];return t.toString=r(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toHSLA(){const t=[...Gt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toRGBA(){const t=[...Vt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${i.a})`)),t},toCMYK(){const t=function(t,e,o){const n=Vt(t,e,o),r=n[0]/255,i=n[1]/255,s=n[2]/255;let a,l,c,d;return a=Rt(1-r,1-i,1-s),l=1===a?0:(1-r-a)/(1-a),c=1===a?0:(1-i-a)/(1-a),d=1===a?0:(1-s-a)/(1-a),[100*l,100*c,100*d,100*a]}(i.h,i.s,i.v);return t.toString=r(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,o){return Vt(t,e,o).map((t=>Wt(t).toString(16).padStart(2,"0")))}(i.h,i.s,i.v),e=i.a>=1?"":Number((255*i.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>Ut(i.h,i.s,i.v,i.a)};return i}function Kt(t,e){const o=Ut(...function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let n;t:for(const r in e)if(n=e[r].exec(t))switch(r){case"cmyk":{let[,t,e,i,s]=o(n);if(t>100||e>100||i>100||s>100)break t;return{values:Jt(t,e,i,s),type:r}}case"rgba":{let[,,,t,e,i,s]=o(n);if(t>255||e>255||i>255||s<0||s>1)break t;return{values:[...Yt(t,e,i),s],a:s,type:r}}case"hexa":{let[,t]=n;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...qt(e),o],a:o,type:r}}case"hsla":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[...Xt(t,e,i),s],a:s,type:r}}case"hsva":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[t,e,i,s],a:s,type:r}}}return{values:null,type:null}}(t).values).toRGBA();return`rgba(${o[0].toFixed(0)},${o[1].toFixed(0)},${o[2].toFixed(0)},${Number(o[3].toFixed(2))*e})`}const Qt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},Zt=t=>t.trim().toLowerCase().replace(t[0],t[0].toUpperCase()),te=t=>({[`--${t}Color`]:`var(--hi${Zt(t)}Color,${Qt[t]})`,[`--${t}Color-hover`]:`var(--hi${Zt(t)}Color-hover,${Kt(Qt[t],.6)})`,[`--${t}Color-active`]:`var(--hi${Zt(t)}Color-active,${Kt(Qt[t],.4)})`,[`--${t}Color-outline`]:`var(--hi${Zt(t)}Color-outline,${Kt(Qt[t],.15)})`}),ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":`var(--hiThemeColor,${Qt.primary})`,"--themeShadow":`var(--hiThemeShadow, ${Kt(Qt.primary,.25)})`,"--themeBackground":`var(--hiThemeBackground,${Qt.primary})`,"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":`var(--hiLinkFontColor,${Qt.primary})`,"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},te("primary")),te("success")),te("error")),te("warning")),te("info"));function oe(t){const e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"};let o="";if(t&&At(t))for(let n=0;n<t.length;n++)o+=`${e[t[n]]};`;else{o+="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n }\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n ";for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o+=`.${t}{${e[t]}}`)}return o}class ne{static get case(){return this._case||(this._case=new ne),this._case}constructor(){this.config={theme:ee,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE"))return;let t="✰ hi-kits ✰",e=`\n\ndocs: ${atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA==")}/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n`,o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){let o=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,o)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t,e={}){return new Promise(((o,n)=>{const{async:r=!0,beforeSend:i=(()=>{}),data:s=null,headers:a={},method:l="get",responseType:c="json",timeout:d=0}=e,p=new XMLHttpRequest;let u,h;if(p.open(l,t,r),d&&(u=window.setTimeout((()=>{n(new Error(`the xhr request timeout ${d}ms`))}),d)),p.onerror=()=>{n(new Error("unknown error"))},p.onreadystatechange=()=>{if(4===p.readyState)if(d&&void 0!==u&&clearTimeout(u),p.status>=200&&p.status<300)o(p);else{const t=new Error("the request is error");n(t)}},Bt(s))try{h=JSON.stringify(s),a["content-type"]="application/json"}catch(t){n(t)}else(t=>"string"==typeof t)(s)&&(a["content-type"]="application/x-www-form-urlencoded");for(const t in a)p.setRequestHeader(t,a[t]);d&&(p.timeout=d),p.responseType=c,!1!==i(p)&&p.send(h)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((t=>{window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}install(t){}init(t,e=this.config){for(const o in t){const n=t[o];Bt(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}function re(){let t="",e=ne.case.config.theme;for(var o in e)o&&(t+=`${o}:${e[o]};`);return`:host,:root{${t}} .Visibility{visibility:hidden} ${oe()}`}const ie=t`
22
+ `;let jt=class extends n{constructor(){super(),this.show=!1}showChanged(t,e){null===e||!1===e?_t.instance.add(this,"Leave"):_t.instance.remove(this,"Leave")}connectedCallback(){super.connectedCallback(),this.background&&Et(this)("background",this.background),Tt.addHandler(this,"transitionend",(()=>{this.transitionendChange()}))}transitionendChange(){this.show||this.$emit("change")}};Bt([e],jt.prototype,"background",void 0),Bt([e({mode:"boolean"})],jt.prototype,"show",void 0),jt=Bt([o({name:"h-mask",styles:Pt,shadowOptions:{mode:"closed"}})],jt);const Ft=new class{constructor(){if(this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=()=>{void 0!==this.previousBodyPaddingRight&&(document.body.style.paddingRight=this.previousBodyPaddingRight,this.previousBodyPaddingRight=void 0),void 0!==this.previousBodyOverflowSetting&&(document.body.style.overflow=this.previousBodyOverflowSetting,document.documentElement.style.overflow=this.previousBodyOverflowSetting,this.previousBodyOverflowSetting=void 0)},this.handleScroll=(t,e)=>{const o=t.targetTouches[0].clientY-this.initialClientY;return!this.allowTouchMove(t.target)&&(e&&0===e.scrollTop&&o>0||this.isTargetElementTotallyScrolled(e)&&o<0?this.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){const t={get passive(){this.hasPassiveEvents=!0}};Tt.addHandler(window,"testPassive",null,t),Tt.removeHandler(window,"testPassive",null,t)}}isTargetElementTotallyScrolled(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}allowTouchMove(t){this.locks.some((e=>!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))))}preventDefault(t){const e=t||window.event;return!!this.allowTouchMove(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)}setOverflowHidden(t){if(void 0===this.previousBodyPaddingRight){const e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=`${o}px`)}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}disable(t,e){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(this.locks.some((e=>e.targetElement===t)))return;const o={targetElement:t,options:e||{}};this.locks=[...this.locks,o],this.isIosDevice?(t.ontouchstart=t=>{1===t.targetTouches.length&&(this.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=e=>{1===e.targetTouches.length&&this.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}clearAll(){this.isIosDevice?(this.locks.forEach((t=>{t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Tt.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}enable(t){t?(this.locks=this.locks.filter((e=>e.targetElement!==t)),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Tt.removeHandler(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}};function Nt(t,e,o){const n=o.value;return o.value=function(t,e){return null===e||!1===e?Ft.enable(document.body):Ft.disable(document.body),n.apply(this,arguments)},o}function Mt(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:()=>{}}function Rt(t){return t?e=>{if("string"==typeof e)t.removeAttribute(e);else for(let o=0;o<e.length;o++){const n=e[o];t.removeAttribute(n)}}:()=>{}}const{min:Dt,max:Ht,floor:Wt,round:Vt}=Math;function Gt(t,e,o){e/=100,o/=100;let n=Wt(t=t/360*6),r=t-n,i=o*(1-e),s=o*(1-r*e),a=o*(1-(1-r)*e),l=n%6;return[255*[o,s,i,i,a,o][l],255*[a,o,o,s,i,i][l],255*[i,i,a,o,o,s][l]]}function Yt(t,e,o){let n=(2-(e/=100))*(o/=100)/2;return 0!==n&&(e=1===n?0:n<.5?e*o/(2*n):e*o/(2-2*n)),[t,100*e,100*n]}function Jt(t,e,o){let n,r,i;const s=Dt(t/=255,e/=255,o/=255),a=Ht(t,e,o),l=a-s;if(i=a,0===l)n=r=0;else{r=l/a;let i=((a-t)/6+l/2)/l,s=((a-e)/6+l/2)/l,c=((a-o)/6+l/2)/l;t===a?n=c-s:e===a?n=1/3+i-c:o===a&&(n=2/3+s-i),n<0?n+=1:n>1&&(n-=1)}return[360*n,100*r,100*i]}function Xt(t,e,o,n){return e/=100,o/=100,[...Jt(255*(1-Dt(1,(t/=100)*(1-(n/=100))+n)),255*(1-Dt(1,e*(1-n)+n)),255*(1-Dt(1,o*(1-n)+n)))]}function qt(t,e,o){return e/=100,[t,(o/=100)+(e*=o<.5?o:1-o)?2*e/(o+e)*100:0,100*(o+e)]}function Ut(t){return Jt(...t.match(/.{2}/g).map((t=>parseInt(t,16))))}function Kt(t=0,e=0,o=0,n=1){const r=(t,e)=>(o=0)=>e(~o?t.map((t=>Number(t.toFixed(o)))):t),i={h:t,s:e,v:o,a:n,toHSVA(){const t=[i.h,i.s,i.v,i.a];return t.toString=r(t,(t=>`hsva(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toHSLA(){const t=[...Yt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${i.a})`)),t},toRGBA(){const t=[...Gt(i.h,i.s,i.v),i.a];return t.toString=r(t,(t=>`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${i.a})`)),t},toCMYK(){const t=function(t,e,o){const n=Gt(t,e,o),r=n[0]/255,i=n[1]/255,s=n[2]/255;let a,l,c,d;return a=Dt(1-r,1-i,1-s),l=1===a?0:(1-r-a)/(1-a),c=1===a?0:(1-i-a)/(1-a),d=1===a?0:(1-s-a)/(1-a),[100*l,100*c,100*d,100*a]}(i.h,i.s,i.v);return t.toString=r(t,(t=>`cmyk(${t[0]}%, ${t[1]}%, ${t[2]}%, ${t[3]}%)`)),t},toHEXA(){const t=function(t,e,o){return Gt(t,e,o).map((t=>Vt(t).toString(16).padStart(2,"0")))}(i.h,i.s,i.v),e=i.a>=1?"":Number((255*i.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&t.push(e),t.toString=()=>`#${t.join("").toUpperCase()}`,t},clone:()=>Kt(i.h,i.s,i.v,i.a)};return i}function Qt(t,e){const o=Kt(...function(t){t=t.match(/^[a-zA-Z]+$/)?function(t){if("black"===t.toLowerCase())return"#000000";const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,"#000000"===e.fillStyle?null:e.fillStyle}(t):t;const e={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},o=t=>t.map((t=>/^(|\d+)\.\d+|\d+$/.test(t)?Number(t):void 0));let n;t:for(const r in e)if(n=e[r].exec(t))switch(r){case"cmyk":{let[,t,e,i,s]=o(n);if(t>100||e>100||i>100||s>100)break t;return{values:Xt(t,e,i,s),type:r}}case"rgba":{let[,,,t,e,i,s]=o(n);if(t>255||e>255||i>255||s<0||s>1)break t;return{values:[...Jt(t,e,i),s],a:s,type:r}}case"hexa":{let[,t]=n;4!==t.length&&3!==t.length||(t=t.split("").map((t=>t+t)).join(""));const e=t.substring(0,6);let o=t.substring(6);return o=o?parseInt(o,16)/255:void 0,{values:[...Ut(e),o],a:o,type:r}}case"hsla":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[...qt(t,e,i),s],a:s,type:r}}case"hsva":{let[,,,t,e,i,s]=o(n);if(t>360||e>100||i>100||s<0||s>1)break t;return{values:[t,e,i,s],a:s,type:r}}}return{values:null,type:null}}(t).values).toRGBA();return`rgba(${o[0].toFixed(0)},${o[1].toFixed(0)},${o[2].toFixed(0)},${Number(o[3].toFixed(2))*e})`}const Zt={theme:"#0073E5",primary:"#0073E5",success:"#18bc37",error:"#F2607A",warning:"#FAA54A",info:"#0073E5"},te=t=>t.trim().toLowerCase().replace(t[0],t[0].toUpperCase()),ee=t=>({[`--${t}Color`]:`var(--hi${te(t)}Color,${Zt[t]})`,[`--${t}Color-hover`]:`var(--hi${te(t)}Color-hover,${Qt(Zt[t],.6)})`,[`--${t}Color-active`]:`var(--hi${te(t)}Color-active,${Qt(Zt[t],.4)})`,[`--${t}Color-outline`]:`var(--hi${te(t)}Color-outline,${Qt(Zt[t],.15)})`}),oe=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--themeColor":`var(--hiThemeColor,${Zt.primary})`,"--themeShadow":`var(--hiThemeShadow, ${Qt(Zt.primary,.25)})`,"--themeBackground":`var(--hiThemeBackground,${Zt.primary})`,"--fontColor":"var(--hiFontColor,#333)","--linkFontColor":`var(--hiLinkFontColor,${Zt.primary})`,"--fontSize14":"var(--hiFontSize14,14px)","--fontSize16":"var(--hiFontSize16,16px)","--fontSize20":"var(--hiFontSize20,20px)","--borderColor":"var(--hiBorderColor, rgba(102, 102, 102, 0.3))","--borderRadius":"var(--hiBorderRadius,4px)","--colorWhite":"#fff","--colorGray1":"#fafafa","--colorGray2":"#eee","--colorGray6":"#757575","--colorGray7":"#585858","--colorGray8":"#333","--colorNeutral02":"rgba(0,0,0,0.02)","--colorNeutral05":"rgba(0,0,0,0.05)","--colorNeutral1":"rgba(0,0,0,0.1)","--colorNeutral2":"rgba(0,0,0,0.2)","--colorNeutral3":"rgba(0,0,0,0.3)","--colorNeutral4":"rgba(0,0,0,0.4)","--colorNeutral5":"rgba(0,0,0,0.5)","--colorNeutral6":"rgba(0,0,0,0.65)","--colorNeutral7":"rgba(0,0,0,0.75)","--colorNeutral8":"rgba(0,0,0,0.85)","--colorBlack":"#000"},ee("primary")),ee("success")),ee("error")),ee("warning")),ee("info"));function ne(t){const e={Cursor:"cursor:pointer",PoiNo:"pointer-events:none",PoiAll:"pointer-events:all",Opa0:"opacity:0",Opa1:"opacity:1",Inset:"inset:0",Content:"content:''",PosR:"position:relative",PosA:"position:absolute",PosF:"position:fixed",OH:"overflow:hidden",OA:"overflow:auto",VisHi:"visibility:hidden",VisVi:"visibility:visible",DisBlock:"display:block",DisInBlock:"display:inline-block",DisIn:"display:inline",DisFlex:"display:flex",DisGrid:"display:grid",DisNo:"display:none",DisNoIm:"display:none!important",WS:"white-space:nowrap",WW:"word-wrap:break-word;word-break:normal",WB:"word-break:break-all",TEll:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis",BCover:"background-color:#eee;background-position:center;background-repeat:no-repeat;background-size:cover",TL:"text-align:left",TR:"text-align:right",TC:"text-align:center"};let o="";if(t&&zt(t))for(let n=0;n<t.length;n++)o+=`${e[t[n]]};`;else{o+="\n :host{white-space:normal;line-height:18px;text-align:initial;}\n h1,h2,h3,h4,h5,h6,hr,p,dl,dt,dd,ul,ol,li,form,legend,button,input,textarea,th,td{margin:0;padding:0;}\n ul,ol{list-style:none;}\n table{border-collapse:collapse;border-spacing:0;}\n h1,h2,h3,h4,h5,h6,button,input,select,textarea{font-size:100%;} \n img{border:0;margin:0;}\n *{\n -webkit-text-size-adjust:none;\n -webkit-touch-callout:none;\n -webkit-user-select:none;\n -khtml-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n }\n *,*:before,*:after{\n -webkit-box-sizing:border-box;\n -moz-box-sizing:border-box;\n -ms-box-sizing:border-box;\n box-sizing:border-box;\n }\n [tabindex=\"-1\"]:focus{outline:none!important}\n :host([disabled]),[disabled],.disabled{opacity:.65;pointer-events:none;cursor:not-allowed!important;}\n .Entry{transition:all 0.3s ease 0s}\n .Entry:focus{box-shadow:0 0 0 3px var(--themeShadow);outline:0;}\n .Entry:focus,.Entry:hover{border-color:var(--themeColor)!important;border-right-width:1px;}\n .Track:before{content:'';position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:rgb(0 255 3 / 32%);z-index:1;}\n ";for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o+=`.${t}{${e[t]}}`)}return o}class re{static get case(){return this._case||(this._case=new re),this._case}constructor(){this.config={theme:oe,button:{radius:6,size:"default"},message:{top:10,radius:6,duration:2e3},notify:{radius:6,duration:5e3},modal:{radius:8},toast:{radius:8,duration:2e3},popup:{radius:12,width:630,height:630},float:{margin:12},captcha:{radius:8,margin:24},space:{gutter:12},actions:{radius:12,margin:16}},window.HiServe=window.HiServe||{},window.HiServe.IS_READY||(window.HiServe.IS_READY=!0,function(){if(window.sessionStorage.getItem("HI_KITS_HELLO_CONSOLE"))return;let t="✰ hi-kits ✰",e=`\n\ndocs: ${atob("aHR0cHM6Ly95cy16anJzLmhhaWVyLm5ldA==")}/hidoc/index.html \n\ngit: https://github.com/hi-kits/hi-kit\n\n如有任何意见和建议可在网站留言\n\n`,o="padding:5px 0",n="background:#0CF;"+o,r="background:#111;font-size:14px;color:#FFF;"+o,i="background:#CFF;"+o;if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){let o=["%c %c "+t+" %c %c"+e+"%c %c",n,r,n,i,n,"color:#000"];window.console.log.apply(console,o)}else window.console&&window.console.log(t+e);window.sessionStorage.setItem("HI_KITS_HELLO_CONSOLE","hello")}(),window.localStorage.getItem("HI_ICONS")?window.HiServe.icons=JSON.parse(window.localStorage.getItem("HI_ICONS")):function(t,e={}){return new Promise(((o,n)=>{const{async:r=!0,beforeSend:i=(()=>{}),data:s=null,headers:a={},method:l="get",responseType:c="json",timeout:d=0}=e,p=new XMLHttpRequest;let u,h;if(p.open(l,t,r),d&&(u=window.setTimeout((()=>{n(new Error(`the xhr request timeout ${d}ms`))}),d)),p.onerror=()=>{n(new Error("unknown error"))},p.onreadystatechange=()=>{if(4===p.readyState)if(d&&void 0!==u&&clearTimeout(u),p.status>=200&&p.status<300)o(p);else{const t=new Error("the request is error");n(t)}},At(s))try{h=JSON.stringify(s),a["content-type"]="application/json"}catch(t){n(t)}else(t=>"string"==typeof t)(s)&&(a["content-type"]="application/x-www-form-urlencoded");for(const t in a)p.setRequestHeader(t,a[t]);d&&(p.timeout=d),p.responseType=c,!1!==i(p)&&p.send(h)}))}("https:"+atob("Ly96anJzLmhhaWVyLm5ldA==")+"/download/hikits/icons.json",{responseType:"text"}).then((t=>{window.HiServe.icons=JSON.parse(t.responseText),window.localStorage.setItem("HI_ICONS",t.responseText)})))}install(t){}init(t,e=this.config){for(const o in t){const n=t[o];At(n)?this.config[o]&&this.init(n,e[o]):e[o]=n}}}function ie(){let t="",e=re.case.config.theme;for(var o in e)o&&(t+=`${o}:${e[o]};`);return`:host,:root{${t}} .Visibility{visibility:hidden} ${ne()}`}const se=t`
23
23
  :host .LoadBox{
24
24
  position: fixed;
25
25
  display: flex;
@@ -93,7 +93,7 @@ slot {
93
93
  opacity: 1;
94
94
  }
95
95
 
96
- `,se=r`
96
+ `,ae=r`
97
97
  <h-mask
98
98
  ${i("HIMask")}
99
99
  background="${t=>t.background}"
@@ -103,7 +103,7 @@ slot {
103
103
  <div class="LoadBox" ${i("LoadBox")}>
104
104
  <slot></slot>
105
105
  </div>
106
- `;let ae=class extends n{constructor(){super(),this.show=!1,ne.case.install([Pt])}showChanged(t,e){null===e||!1===e?Mt(this.HIMask)("show"):Nt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}close(){Mt(this.HIMask)("show"),this.$emit("close")}closeChange(){this.$emit("change")}};function le(t,e="px"){const o=["%","em","rem","ex","ch","vh","vw","vmax","vmin","px","pt","pc","cm","mm","in","kHz","Hz","ms","s","dpi","dpcm","dppx","deg","grad","rad","turn"];let n=!1;for(let e=0;e<o.length;e++){const r=o[e];String(t).toLowerCase().indexOf(r)>-1&&(n=!0)}return n?t:t+e}function ce(t){return`:host([hidden]),:host([hide]){display:none}:host{display:${t}}`}Ot([s],ae.prototype,"HIMask",void 0),Ot([s],ae.prototype,"LoadBox",void 0),Ot([e({mode:"boolean"})],ae.prototype,"show",void 0),Ot([Ft],ae.prototype,"showChanged",null),Ot([e],ae.prototype,"dir",void 0),Ot([e],ae.prototype,"background",void 0),ae=Ot([o({name:"h-load",styles:ie,template:se,shadowOptions:{mode:"closed"}})],ae);const de=t`
106
+ `;let le=class extends n{constructor(){super(),this.show=!1,re.case.install([jt])}showChanged(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Mt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}close(){Rt(this.HIMask)("show"),this.$emit("close")}closeChange(){this.$emit("change")}};function ce(t,e="px"){const o=["%","em","rem","ex","ch","vh","vw","vmax","vmin","px","pt","pc","cm","mm","in","kHz","Hz","ms","s","dpi","dpcm","dppx","deg","grad","rad","turn"];let n=!1;for(let e=0;e<o.length;e++){const r=o[e];String(t).toLowerCase().indexOf(r)>-1&&(n=!0)}return n?t:t+e}function de(t){return`:host([hidden]),:host([hide]){display:none}:host{display:${t}}`}Bt([s],le.prototype,"HIMask",void 0),Bt([s],le.prototype,"LoadBox",void 0),Bt([e({mode:"boolean"})],le.prototype,"show",void 0),Bt([Nt],le.prototype,"showChanged",null),Bt([e],le.prototype,"dir",void 0),Bt([e],le.prototype,"background",void 0),le=Bt([o({name:"h-load",styles:se,template:ae,shadowOptions:{mode:"closed"}})],le);const pe=t`
107
107
  :host .LoadBox{
108
108
  position: fixed;
109
109
  display: flex;
@@ -176,7 +176,7 @@ slot {
176
176
  opacity: 1;
177
177
  }
178
178
 
179
- `,pe=r`
179
+ `,ue=r`
180
180
  <h-mask
181
181
  ${i("HIMask")}
182
182
  background="${t=>t.background}"
@@ -186,17 +186,17 @@ slot {
186
186
  <div class="LoadBox" ${i("LoadBox")}>
187
187
  <slot></slot>
188
188
  </div>
189
- `;let ue=class extends n{constructor(){super(),this.show=!1,ne.case.install([Pt])}showChanged(t,e){null===e||!1===e?Mt(this.HIMask)("show"):Nt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}clickFn(){this.$emit("click")}changeFn(){this.$emit("change")}};Ot([s],ue.prototype,"HIMask",void 0),Ot([s],ue.prototype,"LoadBox",void 0),Ot([e({mode:"boolean"})],ue.prototype,"show",void 0),Ot([Ft],ue.prototype,"showChanged",null),Ot([e],ue.prototype,"dir",void 0),Ot([e],ue.prototype,"background",void 0),ue=Ot([o({name:"h-enter",styles:de,template:pe,shadowOptions:{mode:"closed"}})],ue);const he=t`
189
+ `;let he=class extends n{constructor(){super(),this.show=!1,re.case.install([jt])}showChanged(t,e){null===e||!1===e?Rt(this.HIMask)("show"):Mt(this.HIMask)("show")}connectedCallback(){super.connectedCallback()}clickFn(){this.$emit("click")}changeFn(){this.$emit("change")}};Bt([s],he.prototype,"HIMask",void 0),Bt([s],he.prototype,"LoadBox",void 0),Bt([e({mode:"boolean"})],he.prototype,"show",void 0),Bt([Nt],he.prototype,"showChanged",null),Bt([e],he.prototype,"dir",void 0),Bt([e],he.prototype,"background",void 0),he=Bt([o({name:"h-enter",styles:pe,template:ue,shadowOptions:{mode:"closed"}})],he);const ve=t`
190
190
  .Border{
191
191
  -webkit-mask-size: 100%;
192
192
  -webkit-mask-position: 0;
193
193
  -webkit-mask-repeat: no-repeat;
194
194
  }
195
- `,ve=r`
195
+ `,fe=r`
196
196
  <div class="Border" ${i("Border")}></div>
197
- `;let fe=class extends n{constructor(){super(),this.dasharray="10 10"}connectedCallback(){super.connectedCallback(),this.setSvg()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),this.setSvg()}setSvg(){const t=this.border/2,e=Math.min(this.width,this.height),o=2*this.radius>e?e/2:this.radius,n=`<svg width="${le(this.width)}" height="${le(this.height)}" viewBox="0 0 ${this.width} ${this.height}" version="1.1" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="${this.border}" fill="none" fill-rule="evenodd"><rect x="${t}" y="${t}" width="${this.width-this.border}" height="${this.height-this.border}" rx="${o}" stroke="#000" ${this.dashed?`stroke-dasharray="${this.dasharray}"`:""}></rect></g></svg>`;zt(this.Border)({width:le(this.width),height:le(this.height),"border-radius":le(o),"background-image":this.color,"-webkit-mask-image":`url(data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)})`})}};Ot([s],fe.prototype,"Border",void 0),Ot([e({converter:a})],fe.prototype,"width",void 0),Ot([e({converter:a})],fe.prototype,"height",void 0),Ot([e],fe.prototype,"color",void 0),Ot([e({converter:a})],fe.prototype,"border",void 0),Ot([e({mode:"boolean"})],fe.prototype,"dashed",void 0),Ot([e],fe.prototype,"dasharray",void 0),Ot([e({converter:a})],fe.prototype,"radius",void 0),fe=Ot([o({name:"h-border",styles:he,template:ve,shadowOptions:{mode:"closed"}})],fe);const ge=t`
198
- ${re()}
199
- ${ce("flex")}
197
+ `;let ge=class extends n{constructor(){super(),this.dasharray="10 10"}connectedCallback(){super.connectedCallback(),this.setSvg()}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),this.setSvg()}setSvg(){const t=this.border/2,e=Math.min(this.width,this.height),o=2*this.radius>e?e/2:this.radius,n=`<svg width="${ce(this.width)}" height="${ce(this.height)}" viewBox="0 0 ${this.width} ${this.height}" version="1.1" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="${this.border}" fill="none" fill-rule="evenodd"><rect x="${t}" y="${t}" width="${this.width-this.border}" height="${this.height-this.border}" rx="${o}" stroke="#000" ${this.dashed?`stroke-dasharray="${this.dasharray}"`:""}></rect></g></svg>`;Et(this.Border)({width:ce(this.width),height:ce(this.height),"border-radius":ce(o),"background-image":this.color,"-webkit-mask-image":`url(data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)})`})}};Bt([s],ge.prototype,"Border",void 0),Bt([e({converter:a})],ge.prototype,"width",void 0),Bt([e({converter:a})],ge.prototype,"height",void 0),Bt([e],ge.prototype,"color",void 0),Bt([e({converter:a})],ge.prototype,"border",void 0),Bt([e({mode:"boolean"})],ge.prototype,"dashed",void 0),Bt([e],ge.prototype,"dasharray",void 0),Bt([e({converter:a})],ge.prototype,"radius",void 0),ge=Bt([o({name:"h-border",styles:ve,template:fe,shadowOptions:{mode:"closed"}})],ge);const me=t`
198
+ ${ie()}
199
+ ${de("flex")}
200
200
  :host{
201
201
  position:fixed;
202
202
  left:0;
@@ -223,7 +223,7 @@ ${ce("flex")}
223
223
  justify-content:center;
224
224
  z-index:10;
225
225
  }
226
- `,me=r`
226
+ `,ye=r`
227
227
  <h-mask ${i("Mask")}
228
228
  @click="${t=>t.close()}"
229
229
  @change="${t=>t.close()}"
@@ -232,7 +232,7 @@ ${ce("flex")}
232
232
  <div class="Overlay PosF OH" style="opacity:0;">
233
233
  <slot></slot>
234
234
  </div>
235
- `;let ye=class extends n{constructor(){super(),this.mode="auto",this.show=!1,ne.case.install([Pt])}showChanged(t,e){null===e||!1===e?Mt(this.Mask)("show"):Nt(this.Mask)("show")}connectedCallback(){super.connectedCallback()}close(){"auto"==this.mode&&(this.show=!1)}};Ot([s],ye.prototype,"Mask",void 0),Ot([e],ye.prototype,"mode",void 0),Ot([e({mode:"boolean"})],ye.prototype,"show",void 0),ye=Ot([o({name:"h-overlay",styles:ge,template:me})],ye);const we=t`
235
+ `;let we=class extends n{constructor(){super(),this.mode="auto",this.show=!1,re.case.install([jt])}showChanged(t,e){null===e||!1===e?Rt(this.Mask)("show"):Mt(this.Mask)("show")}connectedCallback(){super.connectedCallback()}close(){"auto"==this.mode&&(this.show=!1)}};Bt([s],we.prototype,"Mask",void 0),Bt([e],we.prototype,"mode",void 0),Bt([e({mode:"boolean"})],we.prototype,"show",void 0),we=Bt([o({name:"h-overlay",styles:me,template:ye})],we);const be=t`
236
236
  :host{
237
237
  position: absolute;
238
238
  pointer-events: none;
@@ -348,13 +348,13 @@ ${ce("flex")}
348
348
 
349
349
 
350
350
 
351
- `,be=r`
351
+ `,xe=r`
352
352
  <div class="ArrowWrap">
353
353
  <span class="Arrow"></span>
354
354
  </div>
355
- `;let xe=class extends n{constructor(){super(),this.dir="top"}colorChanged(t,e){zt(this)({color:e})}connectedCallback(){super.connectedCallback()}};Ot([e],xe.prototype,"dir",void 0),Ot([e],xe.prototype,"color",void 0),xe=Ot([o({name:"h-arrow",styles:we,template:be,shadowOptions:{mode:"closed"}})],xe);var ke=function(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},Se=function(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},Ce=function(){function t(){var e=this;if(j(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,o){var n=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(o&&0===o.scrollTop&&n>0||e.isTargetElementTotallyScrolled(o)&&n<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var o={get passive(){this.hasPassiveEvents=!0}};ke(window,"testPassive",null,o),Se(window,"testPassive",null,o)}}return R(t,[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!!this.allowTouchMove(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(o,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var o=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};this.locks=[].concat(q(this.locks),[n]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(o.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&o.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Se(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Se(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}]),t}(),Oe=new Ce;function Le(t,e,o){var n=o.value;return o.value=function(t,e){return null===e||!1===e?Oe.enable(document.body):Oe.disable(document.body),n.apply(this,arguments)},o}function Be(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:function(){}}function Ae(t){return t?function(e){if("string"==typeof e)t.removeAttribute(e);else for(var o=0;o<e.length;o++){var n=e[o];t.removeAttribute(n)}}:function(){}}var $e,ze,Ee=function(){function t(){var e=this;j(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.add(o[n])},this.remove=function(t,e){if(t)for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.remove(o[n])}):(this.has=function(t,o){return e.classReg(o).test(t.className)},this.add=function(t,o){e.has(t,o)||(t.className=t.className+" "+o)},this.remove=function(t,o){t.className=t.className.replace(e.classReg(o)," ")})}return R(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}]),t}(),Ie={path:atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")};function _e(t){var e=null;return function(o,n,r){var i=r.value;return r.value=function(){for(var o=this,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];e&&clearTimeout(e),e=setTimeout((function(){i.apply(o,r)}),t)},r}}function Te(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return $(this,o)}}var Pe,je=r($e||($e=E(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)" >\n<div class="ConflateWrap">\n <div class="VideoWrap">\n <video ',' autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"\n ><source src="','/download/img/collect/conflate.mp4" type="video/mp4"/></video>\n </div>\n <div ',' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon">\n <div><img src="','/download/img/collect/icon03.png"/><p class="TEll">2.18抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/icon02.png"/><p class="TEll">ihaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n <p>奖品可在【优惠券】中查看</p><p>ihaier新年头像框将通过您的ihaier发放</p>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),i("video"),Ie.path,i("contentWrap"),Ie.path,Ie.path,(function(t){return t.isCoupon?"Coupon":""}),l((function(t){return t.isCoupon}),r(ze||(ze=E(['<div><img src="','/download/img/collect/icon04.png"/><p class="TEll">三翼鸟定制洗衣液</p></div>\n '])),Ie.path)),Ie.path,(function(t){return t.accept()}),Ie.path),Fe=function(t){L(o,n);var e=Te(o);function o(){var t;return h(this,o),(t=e.call(this)).isCoupon=!1,t.isClick=!1,kt.case.install([ye]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?Ae(this.Overlay)("show"):Be(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),this.resize(),setTimeout((function(){Ee.instance.add(t.contentWrap,"show")}),2e3),setTimeout((function(){t.isClick=!0}),4e3)}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&t.prizeId&&(this.isCoupon=!0)}}]),o}();T([s],Fe.prototype,"Overlay",void 0),T([s],Fe.prototype,"video",void 0),T([s],Fe.prototype,"contentWrap",void 0),T([s],Fe.prototype,"isCoupon",void 0),T([e({mode:"boolean"})],Fe.prototype,"show",void 0),T([Le],Fe.prototype,"showChanged",null),T([_e(300)],Fe.prototype,"accept",null),Fe=T([o({name:"g-collect-conflate",template:je,styles:Ct,shadowOptions:{mode:"closed"}})],Fe);var Ne=t(Pe||(Pe=E(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardWrap{display:flex}\n.CardWrap div.Card{\nwidth:14.9333333333vw;\nheight:20.266666666vw;\nmargin: 0 2.666666666vw 0 0;\n}\n.CardWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),St(),bt(["PoiNo"]),bt(["PoiNo"]));class Me extends n{constructor(){super(...arguments),this.disabled=!1}colorChanged(t,e){zt(this)({color:e})}sizeChanged(t,e){for(let t=0;t<this.children.length;t++){Nt(this.children[t])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(t){t&&t(this)}setValueFn(t,e){this[t+"Changed"]("",e)}update(t,e){e&&e(t)}childrenFn(t){const e=this.children.length;if(e>0){for(let t=0;t<e;t++){const o=this.children[t];0==t?Nt(o)("first"):t+1==e&&Nt(o)("last"),Nt(o)("index",String(t))}t&&t()}}}Ot([e],Me.prototype,"color",void 0),Ot([e],Me.prototype,"size",void 0),Ot([e({mode:"boolean"})],Me.prototype,"disabled",void 0);const Re=t`
356
- ${re()}
357
- ${ce("flex")}
355
+ `;let ke=class extends n{constructor(){super(),this.dir="top"}colorChanged(t,e){Et(this)({color:e})}connectedCallback(){super.connectedCallback()}};Bt([e],ke.prototype,"dir",void 0),Bt([e],ke.prototype,"color",void 0),ke=Bt([o({name:"h-arrow",styles:be,template:xe,shadowOptions:{mode:"closed"}})],ke);var Se=function(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},Ce=function(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},Oe=function(){function t(){var e=this;if(j(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,o){var n=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(o&&0===o.scrollTop&&n>0||e.isTargetElementTotallyScrolled(o)&&n<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var o={get passive(){this.hasPassiveEvents=!0}};Se(window,"testPassive",null,o),Ce(window,"testPassive",null,o)}}return R(t,[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!!this.allowTouchMove(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(o,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var o=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};this.locks=[].concat(q(this.locks),[n]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(o.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&o.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Ce(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Ce(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}]),t}(),Be=new Oe;function Le(t,e,o){var n=o.value;return o.value=function(t,e){return null===e||!1===e?Be.enable(document.body):Be.disable(document.body),n.apply(this,arguments)},o}function Ae(t){return t?function(e,o){if(1===arguments.length&&"string"==typeof e)t.setAttribute(e,"");else if(2===arguments.length)t.setAttribute(e,o);else for(var n in e)t[n]=e[n],t.setAttribute(n,e[n])}:function(){}}function ze(t){return t?function(e){if("string"==typeof e)t.removeAttribute(e);else for(var o=0;o<e.length;o++){var n=e[o];t.removeAttribute(n)}}:function(){}}var $e,Ee,Ie=function(){function t(){var e=this;j(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.add(o[n])},this.remove=function(t,e){if(t)for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.remove(o[n])}):(this.has=function(t,o){return e.classReg(o).test(t.className)},this.add=function(t,o){e.has(t,o)||(t.className=t.className+" "+o)},this.remove=function(t,o){t.className=t.className.replace(e.classReg(o)," ")})}return R(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}]),t}();function _e(t){var e=null;return function(o,n,r){var i=r.value;return r.value=function(){for(var o=this,n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];e&&clearTimeout(e),e=setTimeout((function(){i.apply(o,r)}),t)},r}}function Te(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return z(this,o)}}var Pe,je=r($e||($e=E(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)" >\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoWrap">\n <video ',' autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"\n ><source src="','/download/img/collect/conflate.mp4" type="video/mp4"/></video>\n </div>\n <div ',' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon">\n <div><img src="','/download/img/collect/icon03.png"/><p class="TEll">2.18抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/icon02.png"/><p class="TEll">ihaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n <p>奖品可在【优惠券】中查看</p><p>ihaier新年头像框将通过您的ihaier发放</p>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),i("video"),Ct.path,i("contentWrap"),Ct.path,Ct.path,(function(t){return t.isCoupon?"Coupon":""}),l((function(t){return t.isCoupon}),r(Ee||(Ee=E(['<div><img src="','/download/img/collect/icon04.png"/><p class="TEll">三翼鸟定制洗衣液</p></div>\n '])),Ct.path)),Ct.path,(function(t){return t.accept()}),Ct.path),Fe=function(t){B(o,n);var e=Te(o);function o(){var t;return h(this,o),(t=e.call(this)).isCoupon=!1,t.isClick=!1,xt.case.install([we]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?ze(this.Overlay)("show"):Ae(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),this.video.addEventListener("loadeddata",(function(){t.resize(),setTimeout((function(){Ie.instance.add(t.contentWrap,"show")}),1e3),setTimeout((function(){t.isClick=!0}),3e3)}))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&t.prizeId&&(this.isCoupon=!0)}}]),o}();T([s],Fe.prototype,"Overlay",void 0),T([s],Fe.prototype,"video",void 0),T([s],Fe.prototype,"contentWrap",void 0),T([s],Fe.prototype,"isCoupon",void 0),T([e({mode:"boolean"})],Fe.prototype,"show",void 0),T([Le],Fe.prototype,"showChanged",null),T([_e(300)],Fe.prototype,"accept",null),Fe=T([o({name:"g-collect-conflate",template:je,styles:Ot,shadowOptions:{mode:"closed"}})],Fe);var Ne=t(Pe||(Pe=E(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardWrap{display:flex}\n.CardWrap div.Card{\nwidth:14.9333333333vw;\nheight:20.266666666vw;\nmargin: 0 2.666666666vw 0 0;\n}\n.CardWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),kt(),bt(["PoiNo"]),bt(["PoiNo"]));class Me extends n{constructor(){super(...arguments),this.disabled=!1}colorChanged(t,e){Et(this)({color:e})}sizeChanged(t,e){for(let t=0;t<this.children.length;t++){Mt(this.children[t])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(t){t&&t(this)}setValueFn(t,e){this[t+"Changed"]("",e)}update(t,e){e&&e(t)}childrenFn(t){const e=this.children.length;if(e>0){for(let t=0;t<e;t++){const o=this.children[t];0==t?Mt(o)("first"):t+1==e&&Mt(o)("last"),Mt(o)("index",String(t))}t&&t()}}}Bt([e],Me.prototype,"color",void 0),Bt([e],Me.prototype,"size",void 0),Bt([e({mode:"boolean"})],Me.prototype,"disabled",void 0);const Re=t`
356
+ ${ie()}
357
+ ${de("flex")}
358
358
  :host {
359
359
  position: relative;
360
360
  width: 100%;
@@ -411,7 +411,7 @@ ${ce("flex")}
411
411
  }
412
412
  :host([invalid]) .Badge,
413
413
  :host([standAlone]) .Badge{
414
- ${oe(["PosR","DisInBlock"])}
414
+ ${ne(["PosR","DisInBlock"])}
415
415
  }
416
416
  :host([dot]) {
417
417
  display: flex;
@@ -447,7 +447,7 @@ ${ce("flex")}
447
447
  <span class="Badge PosA TC" style="${t=>t.badgeStyle}">${t=>t.count}</span>
448
448
  ${l((t=>t.text),r`<span class="BadgeText">${t=>t.text}</span>`)}
449
449
  </template>
450
- `;let He=class extends Me{countChanged(t,e){String(e).length>1?Nt(this)("suit"):Mt(this)("suit")}connectedCallback(){if(super.connectedCallback(),null!=this.count&&null!=this.count||this.dot)Mt(this)("invalid");else switch(Nt(this)("invalid"),this.status){case"success":this.badgeStyle=`background: ${ee["--successColor"]}`;break;case"error":this.badgeStyle=`background: ${ee["--errorColor"]}`;break;case"warning":this.badgeStyle=`background: ${ee["--warningColor"]}`;break;case"processing":this.badgeStyle=`background: ${ee["--primaryColor"]}`;break;case"default":return void(this.badgeStyle=`background: ${ee["--colorNeutral5"]}`)}}};Ot([e],He.prototype,"count",void 0),Ot([e({mode:"boolean"})],He.prototype,"dot",void 0),Ot([e],He.prototype,"badgeStyle",void 0),Ot([e({mode:"boolean"})],He.prototype,"standAlone",void 0),Ot([e],He.prototype,"status",void 0),Ot([e],He.prototype,"text",void 0),He=Ot([o({name:"h-badge",styles:Re,template:De,shadowOptions:{mode:"closed"}})],He);class We{constructor(){this.timeOut=0}init(t){let e,o;e=setInterval((()=>{o="string"==typeof t.front?window[t.front]:t.front(),this.timeOut++,(this.timeOut>=60||o)&&(clearInterval(e),t.callback())}),50)}}const Ve=t`
450
+ `;let He=class extends Me{countChanged(t,e){String(e).length>1?Mt(this)("suit"):Rt(this)("suit")}connectedCallback(){if(super.connectedCallback(),null!=this.count&&null!=this.count||this.dot)Rt(this)("invalid");else switch(Mt(this)("invalid"),this.status){case"success":this.badgeStyle=`background: ${oe["--successColor"]}`;break;case"error":this.badgeStyle=`background: ${oe["--errorColor"]}`;break;case"warning":this.badgeStyle=`background: ${oe["--warningColor"]}`;break;case"processing":this.badgeStyle=`background: ${oe["--primaryColor"]}`;break;case"default":return void(this.badgeStyle=`background: ${oe["--colorNeutral5"]}`)}}};Bt([e],He.prototype,"count",void 0),Bt([e({mode:"boolean"})],He.prototype,"dot",void 0),Bt([e],He.prototype,"badgeStyle",void 0),Bt([e({mode:"boolean"})],He.prototype,"standAlone",void 0),Bt([e],He.prototype,"status",void 0),Bt([e],He.prototype,"text",void 0),He=Bt([o({name:"h-badge",styles:Re,template:De,shadowOptions:{mode:"closed"}})],He);class We{constructor(){this.timeOut=0}init(t){let e,o;e=setInterval((()=>{o="string"==typeof t.front?window[t.front]:t.front(),this.timeOut++,(this.timeOut>=60||o)&&(clearInterval(e),t.callback())}),50)}}const Ve=t`
451
451
  :host{
452
452
  overflow: hidden;
453
453
  display: inline-block;
@@ -470,4 +470,4 @@ div{
470
470
  <div ${i("SVGAPlayer")}></div>
471
471
  </span>
472
472
  </template>
473
- `;let Ye=class extends Me{pathChanged(t,e){e&&this.loadSvga()}connectedCallback(){super.connectedCallback(),this.loadSvga()}loadSvga(){return function(t,e,o,n){return new(o||(o=Promise))((function(r,i){function s(t){try{l(n.next(t))}catch(t){i(t)}}function a(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){var t;yield(t=atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")+"/download/cdn/svga.min.js","SVGA",new Promise(((e,o)=>{if(void 0!==t){const o=new We,n=t.substring(t.lastIndexOf(".")+1),r=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+t+'"]').length<=0){if("js"===n){const o=document.createElement("script");o.src=t,o.type="text/javascript",r.appendChild(o),o.onload=o.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||e(!0)}}else if("css"===n){const e=document.createElement("link");e.href=t,e.rel="stylesheet",e.type="text/css",r.appendChild(e)}}else o.init({front:String("SVGA"),callback:()=>{e(!0)}})}else o(!1)})));let e=new SVGA.Player(this.SVGAPlayer);new SVGA.Parser(this.SVGAPlayer).load(this.path,(t=>{this.height=t.videoSize.height,this.width=t.videoSize.width,this.$emit("change",{height:t.videoSize.height,width:t.videoSize.width}),e.setVideoItem(t),e.startAnimation()}))}))}};var Je,Xe,qe,Ue;function Ke(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return $(this,o)}}Ot([s],Ye.prototype,"SVGAPlayer",void 0),Ot([e],Ye.prototype,"path",void 0),Ot([e({converter:a})],Ye.prototype,"width",void 0),Ot([e({converter:a})],Ye.prototype,"height",void 0),Ye=Ot([o({name:"h-svga",styles:Ve,template:Ge})],Ye);var Qe,Ze=r(Je||(Je=E(['\n<section class="ListWrap">\n <div class="Synthesis">\n <span>\n ','\n </span>\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <span class="CardWrap">\n ',"\n </span>\n</section>\n"])),l((function(t){return t.isVideo}),r(Xe||(Xe=E(['<div style="position:absolute; z-index:4; display: block;height: 100%;width: 100%;" @click="','"> <h-svga class="Svga" path="','/download/img/collect/hecheng.svga"></h-svga><img class="Tips" src="','/download/img/collect/tips.png" /></div>'])),(function(t){return t.SynthesisFn()}),Ie.path,Ie.path)),(function(t){return t.isVideo?"hide":""}),Ie.path,c((function(t){return t.cardItem}),r(qe||(qe=E(['<div class="Card">\n ','\n <img src="','"/></div>'])),l((function(t){return t.total>0}),r(Ue||(Ue=E(['<h-badge count="','"></h-badge>'])),(function(t){return t.total}))),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0})),to=function(t){L(o,n);var e=Ke(o);function o(){var t;return h(this,o),(t=e.call(this)).isVideo=!1,t.cardItem=Array.from({length:4},(function(t,e){return{card:"".concat(Ie.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(Ie.path,"/download/img/collect/small0").concat(e+1,"-1.png")}})),kt.case.install([He,Ye]),t}return y(o,[{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"update",value:function(t){if(t&&t.cardList){for(var e=Array.from({length:4}),o=0;o<t.cardList.length;o++){var n=t.cardList[o];e[n.cardType-1]={total:n.cardNum,card:"".concat(Ie.path,"/download/img/collect/small0").concat(n.cardType,".png"),grey:"".concat(Ie.path,"/download/img/collect/small0").concat(n.cardType,"-1.png")}}this.cardItem=e,this.isVideo=t.isCanCompose}}}]),o}();T([s],to.prototype,"isVideo",void 0),T([s],to.prototype,"cardItem",void 0),T([_e(300)],to.prototype,"SynthesisFn",null),to=T([o({name:"g-collect-list",template:Ze,styles:Ne,shadowOptions:{mode:"closed"}})],to);var eo,oo,no,ro,io,so,ao=t(Qe||(Qe=E(["\n","\n:host{text-align:center;}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {","}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.PrizeWrap .Content{position:relative; z-index:6;height:100%;\n padding-top: 20vw;text-align:center;\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n.CouponWrap {position:relative}\n.CouponWrap .Info{position:absolute;width:100%;top:14.4vw;left:0;z-index:20;text-align:center;}\n.CouponWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Coupon{height:70.4vw;position:relative;z-index:9;}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .Button{bottom:27vw;}\n}\n@media screen and (max-height : 200vw) {\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 190vw) {\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap video{margin-top:10vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 170vw) {\n .VideoWrap video{margin-top:15vw;}\n .Button{bottom:15vw;}\n}\n"])),St(),bt(["PoiNo"]),Ie.path);function lo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return $(this,o)}}var co,po=r(eo||(eo=E(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)">\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n \n </div>\n\n <div ",' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),l((function(t){return 1==t.type}),r(oo||(oo=E(["<video ",' autoplay muted autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"><source src="',"/download/img/collect/draw0",".mp4?t=",'" type="video/mp4"/></video>'])),i("video"),Ie.path,(function(t){return t.index}),(function(t){return t.index*+new Date}))),l((function(t){return 2==t.type}),r(no||(no=E(['<div class="CouponWrap">\n <div class="Bg"></div>\n <img class="Coupon" src="','/download/img/collect/coupon.png"/>\n <div class="Info">\n <p style="color:#FF3B0A;font-size:9.6vw;font-weight:600;line-height:9.6vw">','</p>\n <p style="color:#EB330E;font-size:3.733vw;font-weight:600;margin:2vw 0 7vw">','</p>\n <p @click="','" style="color:#982F2F;font-size:3.733vw;font-weight:400;text-decoration:underline">去查看</p>\n </div>\n </div>'])),Ie.path,(function(t){return t.prizeQuota}),(function(t){return t.prizeName}),(function(t){return t.look()}))),i("contentWrap"),l((function(t){return 1==t.type}),r(ro||(ro=E(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),Ie.path,(function(t){return t.number>0?r(io||(io=E(["再集","张不同卡面即可合成场景卡"])),(function(t){return t.number})):"可以去合成三翼鸟场景品牌卡啦!"}))),l((function(t){return 2==t.type}),r(so||(so=E(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">',"</p>"])),Ie.path,(function(t){return t.prizeQuota+t.prizeName}))),(function(t){return t.accept()}),Ie.path),uo=function(t){L(o,n);var e=lo(o);function o(){var t;return h(this,o),(t=e.call(this)).prizeName="",t.prizeQuota="",t.isClick=!1,t.type=2,t.number=3,kt.case.install([ye]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?Ae(this.Overlay)("show"):Be(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),1==this.type?(this.resize(),setTimeout((function(){Ee.instance.add(t.contentWrap,"show")}),2e3),setTimeout((function(){t.isClick=!0}),4e3)):(Ee.instance.add(this.contentWrap,"show"),this.isClick=!0)}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"look",value:function(){this.isClick&&(this.$emit("change","look"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){var e=this;t&&(1==this.type?setTimeout((function(){e.resize()}),10):(this.prizeName=t.prizeName,this.prizeQuota=t.prizeQuota))}}]),o}();T([s],uo.prototype,"Overlay",void 0),T([s],uo.prototype,"video",void 0),T([s],uo.prototype,"contentWrap",void 0),T([s],uo.prototype,"prizeName",void 0),T([s],uo.prototype,"prizeQuota",void 0),T([e({converter:a})],uo.prototype,"type",void 0),T([e({converter:a})],uo.prototype,"index",void 0),T([e({converter:a})],uo.prototype,"number",void 0),T([e({mode:"boolean"})],uo.prototype,"show",void 0),T([Le],uo.prototype,"showChanged",null),T([_e(300)],uo.prototype,"accept",null),T([_e(300)],uo.prototype,"look",null),uo=T([o({name:"g-collect-prize",template:po,styles:ao,shadowOptions:{mode:"closed"}})],uo);var ho,vo,fo,go,mo=t(co||(co=E(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n-webkit-user-selectl:none;\n-webkit-user-drag: none;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\n\n.Nav {\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n:host(.isArrow) .Nav{display: flex;}\n"])));function yo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return $(this,o)}}var wo=r(ho||(ho=E(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),l((function(t){return t.active>0}),r(vo||(vo=E(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),Ie.path)),c((function(t){return t.cardItem}),r(fo||(fo=E(['<div class="CardContainer ','" style="','">\n <img src="','" draggable="false"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0}),l((function(t){return t.active<t.cardItem.length-1}),r(go||(go=E(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),Ie.path))),bo=function(t){L(o,n);var e=yo(o);function o(){var t;return h(this,o),(t=e.call(this)).cardItem=Array.from({length:5},(function(t,e){return{card:"".concat(Ie.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(Ie.path,"/download/img/collect/card0").concat(e+1,"-1.png")}})),t.MAX_VISIBILITY=1,t.active=0,t.arrow=!0,t}return y(o,[{key:"arrowChanged",value:function(t,e){null===e||!1===e?Ee.instance.remove(this,"isArrow"):Ee.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"setActive",value:function(t){"l"==t?--this.active:++this.active}},{key:"classFn",value:function(t){return t==this.active?"active":""}},{key:"styleFn",value:function(t){var e="--active:".concat(t===this.active?1:0,";");return e+="--offset:".concat((this.active-t)/3,";"),e+="--direction:".concat(Math.sign(this.active-t),";"),e+="--abs-offset:".concat(Math.abs(this.active-t)/3,";"),e+="pointer-events:".concat(this.active===t?"auto":"none",";"),e+="opacity:".concat(Math.abs(this.active-t)>=this.MAX_VISIBILITY?"0":"1",";"),e+="display:".concat(Math.abs(this.active-t)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"update",value:function(t){if(t&&t.cardList){for(var e=Array.from({length:4}),o=0;o<t.cardList.length;o++){var n=t.cardList[o];e[n.cardType-1]={total:n.cardNum,card:"".concat(Ie.path,"/download/img/collect/card0").concat(n.cardType,".png"),grey:"".concat(Ie.path,"/download/img/collect/card0").concat(n.cardType,"-1.png")}}e.push({total:t.isComposed?1:0,card:"".concat(Ie.path,"/download/img/collect/card05.png"),grey:"".concat(Ie.path,"/download/img/collect/card05-1.png")}),this.cardItem=e,t.isComposed&&(this.active=4,this.arrow=!1,this.isComposed=t.isComposed)}}}]),o}();T([s],bo.prototype,"cardItem",void 0),T([s],bo.prototype,"isComposed",void 0),T([e({converter:a})],bo.prototype,"active",void 0),T([e({mode:"boolean"})],bo.prototype,"arrow",void 0),bo=T([o({name:"g-collect-swipe",template:wo,styles:mo,shadowOptions:{mode:"closed"}})],bo);export{Fe as HiCollectConflate,to as HiCollectList,uo as HiCollectPrize,bo as HiCollectSwipe};
473
+ `;let Ye=class extends Me{pathChanged(t,e){e&&this.loadSvga()}connectedCallback(){super.connectedCallback(),this.loadSvga()}loadSvga(){return function(t,e,o,n){return new(o||(o=Promise))((function(r,i){function s(t){try{l(n.next(t))}catch(t){i(t)}}function a(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof o?e:new o((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))}(this,void 0,void 0,(function*(){var t;yield(t=atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")+"/download/cdn/svga.min.js","SVGA",new Promise(((e,o)=>{if(void 0!==t){const o=new We,n=t.substring(t.lastIndexOf(".")+1),r=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+t+'"]').length<=0){if("js"===n){const o=document.createElement("script");o.src=t,o.type="text/javascript",r.appendChild(o),o.onload=o.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||e(!0)}}else if("css"===n){const e=document.createElement("link");e.href=t,e.rel="stylesheet",e.type="text/css",r.appendChild(e)}}else o.init({front:String("SVGA"),callback:()=>{e(!0)}})}else o(!1)})));let e=new SVGA.Player(this.SVGAPlayer);new SVGA.Parser(this.SVGAPlayer).load(this.path,(t=>{this.height=t.videoSize.height,this.width=t.videoSize.width,this.$emit("change",{height:t.videoSize.height,width:t.videoSize.width}),e.setVideoItem(t),e.startAnimation()}))}))}};var Je,Xe,qe,Ue;function Ke(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return z(this,o)}}Bt([s],Ye.prototype,"SVGAPlayer",void 0),Bt([e],Ye.prototype,"path",void 0),Bt([e({converter:a})],Ye.prototype,"width",void 0),Bt([e({converter:a})],Ye.prototype,"height",void 0),Ye=Bt([o({name:"h-svga",styles:Ve,template:Ge})],Ye);var Qe,Ze=r(Je||(Je=E(['\n<section class="ListWrap">\n <div class="Synthesis">\n <span>\n ','\n </span>\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <span class="CardWrap">\n ',"\n </span>\n</section>\n"])),l((function(t){return t.isVideo}),r(Xe||(Xe=E(['<div style="position:absolute; z-index:4; display: block;height: 100%;width: 100%;" @click="','"> <h-svga class="Svga" path="','/download/img/collect/hecheng.svga"></h-svga><img class="Tips" src="','/download/img/collect/tips.png" /></div>'])),(function(t){return t.SynthesisFn()}),Ct.path,Ct.path)),(function(t){return t.isVideo?"hide":""}),Ct.path,c((function(t){return t.cardItem}),r(qe||(qe=E(['<div class="Card">\n ','\n <img src="','"/></div>'])),l((function(t){return t.total>0}),r(Ue||(Ue=E(['<h-badge count="','"></h-badge>'])),(function(t){return t.total}))),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0})),to=function(t){B(o,n);var e=Ke(o);function o(){var t;return h(this,o),(t=e.call(this)).isVideo=!1,t.cardItem=Array.from({length:4},(function(t,e){return{card:"".concat(Ct.path,"/download/img/collect/small0").concat(e+1,".png"),grey:"".concat(Ct.path,"/download/img/collect/small0").concat(e+1,"-1.png")}})),xt.case.install([He,Ye]),t}return y(o,[{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"update",value:function(t){if(t&&t.cardList){for(var e=Array.from({length:4}),o=0;o<t.cardList.length;o++){var n=t.cardList[o];e[n.cardType-1]={total:n.cardNum,card:"".concat(Ct.path,"/download/img/collect/small0").concat(n.cardType,".png"),grey:"".concat(Ct.path,"/download/img/collect/small0").concat(n.cardType,"-1.png")}}this.cardItem=e,this.isVideo=t.isCanCompose}}}]),o}();T([s],to.prototype,"isVideo",void 0),T([s],to.prototype,"cardItem",void 0),T([_e(300)],to.prototype,"SynthesisFn",null),to=T([o({name:"g-collect-list",template:Ze,styles:Ne,shadowOptions:{mode:"closed"}})],to);var eo,oo,no,ro,io,so,ao=t(Qe||(Qe=E(["\n","\n:host{text-align:center;}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.VideoWrap video {position:relative;z-index:9;","}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.PrizeWrap .Content{position:relative; z-index:60;height:100%;\n padding-top: 20vw;text-align:center;\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n.CouponWrap {position:relative}\n.CouponWrap .Info{position:absolute;width:100%;top:14.4vw;left:0;z-index:20;text-align:center;}\n.VideoWrap .Bg,\n.CouponWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Coupon{height:70.4vw;position:relative;z-index:9;}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .Button{bottom:27vw;}\n}\n@media screen and (max-height : 200vw) {\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 190vw) {\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap video{margin-top:10vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 170vw) {\n .VideoWrap video{margin-top:15vw;}\n .Button{bottom:15vw;}\n}\n"])),kt(),bt(["PoiNo"]),Ct.path);function lo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return z(this,o)}}var co,po=r(eo||(eo=E(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)">\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n \n </div>\n\n <div ",' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),i("Overlay"),l((function(t){return 1==t.type}),r(oo||(oo=E(['<div class="Bg"></div><video ',' autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"><source src="',"/download/img/collect/draw0",".mp4?t=",'" type="video/mp4"/></video>'])),i("video"),Ct.path,(function(t){return t.index}),(function(t){return t.index*+new Date}))),l((function(t){return 2==t.type}),r(no||(no=E(['<div class="CouponWrap">\n <div class="Bg"></div>\n <img class="Coupon" src="','/download/img/collect/coupon.png"/>\n <div class="Info">\n <p style="color:#FF3B0A;font-size:9.6vw;font-weight:600;line-height:9.6vw">','</p>\n <p style="color:#EB330E;font-size:3.733vw;font-weight:600;margin:2vw 0 7vw">','</p>\n <p @click="','" style="color:#982F2F;font-size:3.733vw;font-weight:400;text-decoration:underline">去查看</p>\n </div>\n </div>'])),Ct.path,(function(t){return t.prizeQuota}),(function(t){return t.prizeName}),(function(t){return t.look()}))),i("contentWrap"),l((function(t){return 1==t.type}),r(ro||(ro=E(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),Ct.path,(function(t){return t.number>0?r(io||(io=E(["再集","张不同卡面即可合成场景卡"])),(function(t){return t.number})):"可以去合成三翼鸟场景品牌卡啦!"}))),l((function(t){return 2==t.type}),r(so||(so=E(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">',"</p>"])),Ct.path,(function(t){return t.prizeQuota+t.prizeName}))),(function(t){return t.accept()}),Ct.path),uo=function(t){B(o,n);var e=lo(o);function o(){var t;return h(this,o),(t=e.call(this)).prizeName="",t.prizeQuota="",t.isClick=!1,t.type=1,t.index=1,t.number=3,xt.case.install([we]),t}return y(o,[{key:"showChanged",value:function(t,e){null===e||!1===e?ze(this.Overlay)("show"):Ae(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var t=this;S(k(o.prototype),"connectedCallback",this).call(this),1==this.type?this.video.addEventListener("loadeddata",(function(){t.resize(),setTimeout((function(){Ie.instance.add(t.contentWrap,"show")}),1e3),setTimeout((function(){t.isClick=!0}),3e3)})):(Ie.instance.add(this.contentWrap,"show"),this.isClick=!0)}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"look",value:function(){this.isClick&&(this.$emit("change","look"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){var e=this;t&&(1==this.type?setTimeout((function(){e.resize()}),10):(this.prizeName=t.prizeName,this.prizeQuota=t.prizeQuota))}}]),o}();T([s],uo.prototype,"Overlay",void 0),T([s],uo.prototype,"video",void 0),T([s],uo.prototype,"contentWrap",void 0),T([s],uo.prototype,"prizeName",void 0),T([s],uo.prototype,"prizeQuota",void 0),T([e({converter:a})],uo.prototype,"type",void 0),T([e({converter:a})],uo.prototype,"index",void 0),T([e({converter:a})],uo.prototype,"number",void 0),T([e({mode:"boolean"})],uo.prototype,"show",void 0),T([Le],uo.prototype,"showChanged",null),T([_e(300)],uo.prototype,"accept",null),T([_e(300)],uo.prototype,"look",null),uo=T([o({name:"g-collect-prize",template:po,styles:ao,shadowOptions:{mode:"closed"}})],uo);var ho,vo,fo,go,mo=t(co||(co=E(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n-webkit-user-selectl:none;\n-webkit-user-drag: none;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\n\n.Nav {\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n:host(.isArrow) .Nav{display: flex;}\n"])));function yo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var o,n=k(t);if(e){var r=k(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return z(this,o)}}var wo=r(ho||(ho=E(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),l((function(t){return t.active>0}),r(vo||(vo=E(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(t){return t.setActive("l")}),Ct.path)),c((function(t){return t.cardItem}),r(fo||(fo=E(['<div class="CardContainer ','" style="','">\n <img src="','" draggable="false"/>\n </div>'])),(function(t,e){return e.parent.classFn(e.index)}),(function(t,e){return e.parent.styleFn(e.index)}),(function(t){return t.total>0?t.card:t.grey})),{positioning:!0}),l((function(t){return t.active<t.cardItem.length-1}),r(go||(go=E(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(t){return t.setActive("r")}),Ct.path))),bo=function(t){B(o,n);var e=yo(o);function o(){var t;return h(this,o),(t=e.call(this)).cardItem=Array.from({length:5},(function(t,e){return{card:"".concat(Ct.path,"/download/img/collect/card0").concat(e+1,".png"),grey:"".concat(Ct.path,"/download/img/collect/card0").concat(e+1,"-1.png")}})),t.MAX_VISIBILITY=1,t.active=0,t.arrow=!0,t}return y(o,[{key:"arrowChanged",value:function(t,e){null===e||!1===e?Ie.instance.remove(this,"isArrow"):Ie.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){S(k(o.prototype),"connectedCallback",this).call(this)}},{key:"setActive",value:function(t){"l"==t?--this.active:++this.active}},{key:"classFn",value:function(t){return t==this.active?"active":""}},{key:"styleFn",value:function(t){var e="--active:".concat(t===this.active?1:0,";");return e+="--offset:".concat((this.active-t)/3,";"),e+="--direction:".concat(Math.sign(this.active-t),";"),e+="--abs-offset:".concat(Math.abs(this.active-t)/3,";"),e+="pointer-events:".concat(this.active===t?"auto":"none",";"),e+="opacity:".concat(Math.abs(this.active-t)>=this.MAX_VISIBILITY?"0":"1",";"),e+="display:".concat(Math.abs(this.active-t)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"update",value:function(t){if(t&&t.cardList){for(var e=Array.from({length:4}),o=0;o<t.cardList.length;o++){var n=t.cardList[o];e[n.cardType-1]={total:n.cardNum,card:"".concat(Ct.path,"/download/img/collect/card0").concat(n.cardType,".png"),grey:"".concat(Ct.path,"/download/img/collect/card0").concat(n.cardType,"-1.png")}}e.push({total:t.isComposed?1:0,card:"".concat(Ct.path,"/download/img/collect/card05.png"),grey:"".concat(Ct.path,"/download/img/collect/card05-1.png")}),this.cardItem=e,t.isComposed&&(this.active=4,this.arrow=!1,this.isComposed=t.isComposed)}}}]),o}();T([s],bo.prototype,"cardItem",void 0),T([s],bo.prototype,"isComposed",void 0),T([e({converter:a})],bo.prototype,"active",void 0),T([e({mode:"boolean"})],bo.prototype,"arrow",void 0),bo=T([o({name:"g-collect-swipe",template:wo,styles:mo,shadowOptions:{mode:"closed"}})],bo);export{Fe as HiCollectConflate,to as HiCollectList,uo as HiCollectPrize,bo as HiCollectSwipe};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkits/collect",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "> TODO: description",
5
5
  "author": "liulina0228",
6
6
  "homepage": "",