diff --git a/demos/esm-dev-app/dist/main.js b/demos/esm-dev-app/dist/main.js index c0af9aa12f..3d346e5199 100644 --- a/demos/esm-dev-app/dist/main.js +++ b/demos/esm-dev-app/dist/main.js @@ -1,45 +1,44 @@ /*! For license information please see main.js.LICENSE.txt */ -(()=>{"use strict";const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;class o{constructor(e,t,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const i=this.t;if(t&&void 0===e){const t=void 0!==i&&1===i.length;t&&(e=n.get(i)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&n.set(i,e))}return e}toString(){return this.cssText}}const a=(i,n)=>{if(t)i.adoptedStyleSheets=n.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const t of n){const n=document.createElement("style"),o=e.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=t.cssText,i.appendChild(n)}},s=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new o("string"==typeof e?e:e+"",void 0,i))(t)})(e):e,{is:r,defineProperty:l,getOwnPropertyDescriptor:d,getOwnPropertyNames:u,getOwnPropertySymbols:c,getPrototypeOf:h}=Object,_=globalThis,p=_.trustedTypes,b=p?p.emptyScript:"",g=_.reactiveElementPolyfillSupport,m=(e,t)=>e,f={toAttribute(e,t){switch(t){case Boolean:e=e?b:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},v=(e,t)=>!r(e,t),k={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),_.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(e,i,t);void 0!==n&&l(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){const{get:n,set:o}=d(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const a=n?.call(this);o.call(this,t),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const e=h(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const e=this.properties,t=[...u(e),...c(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return a(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:f).toAttribute(t,i.type);this._$Em=e,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,t){const i=this.constructor,n=i._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=i.getPropertyOptions(n),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:f;this._$Em=n,this[n]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??v)(this[e],t))return;this.P(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e)!0!==i.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],i)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[m("elementProperties")]=new Map,y[m("finalized")]=new Map,g?.({ReactiveElement:y}),(_.reactiveElementVersions??=[]).push("2.0.4");const x=globalThis,w=x.trustedTypes,$=w?w.createPolicy("lit-html",{createHTML:e=>e}):void 0,C="$lit$",I=`lit$${(Math.random()+"").slice(9)}$`,E="?"+I,S=`<${E}>`,T=document,A=()=>T.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,V=Array.isArray,L="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,B=/>/g,O=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,U=/"/g,P=/^(?:script|style|textarea|title)$/i,z=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),R=(z(1),z(2),Symbol.for("lit-noChange")),j=Symbol.for("lit-nothing"),G=new WeakMap,F=T.createTreeWalker(T,129);function W(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$?$.createHTML(t):t}const q=(e,t)=>{const i=e.length-1,n=[];let o,a=2===t?"":"",s=H;for(let t=0;t"===l[0]?(s=o??H,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,r=l[1],s=void 0===l[3]?O:'"'===l[3]?U:N):s===U||s===N?s=O:s===M||s===B?s=H:(s=O,o=void 0);const c=s===O&&e[t+1].startsWith("/>")?" ":"";a+=s===H?i+S:d>=0?(n.push(r),i.slice(0,d)+C+i.slice(d)+I+c):i+I+(-2===d?t:c)}return[W(e,a+(e[i]||"")+(2===t?"":"")),n]};class K{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,a=0;const s=e.length-1,r=this.parts,[l,d]=q(e,t);if(this.el=K.createElement(l,i),F.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=F.nextNode())&&r.length0){n.textContent=w?w.emptyScript:"";for(let i=0;iV(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==j&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(T.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,n="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=K.createElement(W(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new J(n,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=G.get(e.strings);return void 0===t&&G.set(e.strings,t=new K(e)),t}k(e){V(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Z(this.S(A()),this.S(A()),this,this.options)):i=t[n],i._$AI(o),n++;n2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=j}_$AI(e,t=this,i,n){const o=this.strings;let a=!1;if(void 0===o)e=Y(this,e,t,0),a=!D(e)||e!==this._$AH&&e!==R,a&&(this._$AH=e);else{const n=e;let s,r;for(e=o[0],s=0;se}):void 0,re="$lit$",le=`lit$${(Math.random()+"").slice(9)}$`,de="?"+le,ue=`<${de}>`,ce=document,he=()=>ce.createComment(""),_e=e=>null===e||"object"!=typeof e&&"function"!=typeof e,pe=Array.isArray,be="[ \t\n\f\r]",ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,me=/-->/g,fe=/>/g,ve=RegExp(`>|${be}(?:([^\\s"'>=/]+)(${be}*=${be}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ke=/'/g,ye=/"/g,xe=/^(?:script|style|textarea|title)$/i,we=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),$e=we(1),Ce=we(2),Ie=Symbol.for("lit-noChange"),Ee=Symbol.for("lit-nothing"),Se=new WeakMap,Te=ce.createTreeWalker(ce,129);function Ae(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==se?se.createHTML(t):t}class De{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,a=0;const s=e.length-1,r=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,a=2===t?"":"",s=ge;for(let t=0;t"===l[0]?(s=o??ge,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,r=l[1],s=void 0===l[3]?ve:'"'===l[3]?ye:ke):s===ye||s===ke?s=ve:s===me||s===fe?s=ge:(s=ve,o=void 0);const c=s===ve&&e[t+1].startsWith("/>")?" ":"";a+=s===ge?i+ue:d>=0?(n.push(r),i.slice(0,d)+re+i.slice(d)+le+c):i+le+(-2===d?t:c)}return[Ae(e,a+(e[i]||"")+(2===t?"":"")),n]})(e,t);if(this.el=De.createElement(l,i),Te.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=Te.nextNode())&&r.length0){n.textContent=ae?ae.emptyScript:"";for(let i=0;ipe(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==Ee&&_e(this._$AH)?this._$AA.nextSibling.data=e:this.T(ce.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,n="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=De.createElement(Ae(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new Le(n,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=Se.get(e.strings);return void 0===t&&Se.set(e.strings,t=new De(e)),t}k(e){pe(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new He(this.S(he()),this.S(he()),this,this.options)):i=t[n],i._$AI(o),n++;n2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ee}_$AI(e,t=this,i,n){const o=this.strings;let a=!1;if(void 0===o)e=Ve(this,e,t,0),a=!_e(e)||e!==this._$AH&&e!==Ie,a&&(this._$AH=e);else{const n=e;let s,r;for(e=o[0],s=0;s{const n=i?.renderBefore??t;let o=n._$litPart$;if(void 0===o){const e=i?.renderBefore??null;n._$litPart$=o=new He(t.insertBefore(he(),e),e,void 0,i??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ie}}ze._$litElement$=!0,ze.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ze});const Re=globalThis.litElementPolyfillSupport;Re?.({LitElement:ze}),(globalThis.litElementVersions??=[]).push("4.0.4");const je={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:v},Ge=(e=je,t,i)=>{const{kind:n,metadata:o}=i;let a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(i.name,e),"accessor"===n){const{name:n}=i;return{set(i){const o=t.get.call(this);t.set.call(this,i),this.requestUpdate(n,o,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){const{name:n}=i;return function(i){const o=this[n];t.call(this,i),this.requestUpdate(n,o,e)}}throw Error("Unsupported decorator location: "+n)};function Fe(e){return(t,i)=>"object"==typeof i?Ge(e,t,i):((e,t,i)=>{const n=t.hasOwnProperty(i);return t.constructor.createProperty(i,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}function We(e){return Fe({...e,state:!0,attribute:!1})}const qe=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i);function Ke(e,t){return(i,n,o)=>{const a=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof n?i:o??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return qe(i,n,{get(){let i=e.call(this);return void 0===i&&(i=a(this),(null!==i||this.hasUpdated)&&t.call(this,i)),i}})}return qe(i,n,{get(){return a(this)}})}}let Ye;function Je(e){return(t,i)=>qe(t,i,{get(){return(this.renderRoot??(Ye??=document.createDocumentFragment())).querySelectorAll(e)}})}const Ze=1048576,Xe=1073741824,Qe={ATTACHMENT_BROWSE:"Browse",ATTACHMENT_DRAG_DROP_ZONE:"Drop files here."},et={ATTACHMENT_BROWSE:"参照",ATTACHMENT_DRAG_DROP_ZONE:"ここにファイルをドロップします。"},tt={ATTACHMENT_BROWSE:"选择文件",ATTACHMENT_DRAG_DROP_ZONE:"拖动文件到此。"},it={ATTACHMENT_BROWSE:"選擇檔案",ATTACHMENT_DRAG_DROP_ZONE:"拖曳檔案到此。"},nt="'items' property is not array.",ot="'value' property is not unique in items.",at="'value' property is not specified in items.",st="'files' property is not array.",rt="'value' property is not array.",lt="'value' property is not string.",dt="'selectedIndex' property is not array.",ut="'selectedIndex' property is not number.",ct="'columns' property is not array.",ht="'field' property is not specified in columns.",_t="'field' property is not unique in columns.",pt="'rowsPerPage' property is not positive integer.",bt="'data' property is not array.",gt="'container' property is not HTMLElement.";class mt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class ft extends mt{constructor(e){if(super(e),this.it=j,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===j||null==e)return this._t=void 0,this.it=e;if(e===R)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}ft.directiveName="unsafeHTML",ft.resultType=1;const vt=(e=>(...t)=>({_$litDirective$:e,values:t}))(ft),kt=24,yt=12,xt="AM",wt="PM",$t='"max" must be greater than or equal to "min".',Ct="Time is out of valid range.",It="'timeStep' property is not number.",Et="00:00",St="23:59",Tt="'value' property format is not valid.",At="'max' property format is not valid.",Dt="'min' property format is not valid.",Vt="'timeStep' property format is not valid.",Lt={MONTH_SELECT:["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],YEAR_SELECT_POSTFIX:"",WEEK_DAYS:[{text:"SUN",abbr:"Sunday"},{text:"MON",abbr:"Monday"},{text:"TUE",abbr:"Tuesday"},{text:"WED",abbr:"Wednesday"},{text:"THU",abbr:"Thursday"},{text:"FRI",abbr:"Friday"},{text:"SAT",abbr:"Saturday"}],INVALID_FORMAT:"Format is not valid.",INVALID_TIME_FORMAT:"Format is not valid.",CALENDAR_FOOTER_TEXT:{none:"None",today:"Today",close:"Close"},TIME_IS_OUT_OF_VALID_RANGE:"Time is out of valid range."},Ht={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"日",abbr:"日"},{text:"月",abbr:"月"},{text:"火",abbr:"火"},{text:"水",abbr:"水"},{text:"木",abbr:"木"},{text:"金",abbr:"金"},{text:"土",abbr:"土"}],INVALID_FORMAT:"日付の形式が不正です。",INVALID_TIME_FORMAT:"時刻の形式が不正です。",CALENDAR_FOOTER_TEXT:{none:"選択を解除",today:"今日",close:"閉じる"},TIME_IS_OUT_OF_VALID_RANGE:"時刻が有効な範囲外です。"},Mt={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"周日",abbr:"周日"},{text:"周一",abbr:"周一"},{text:"周二",abbr:"周二"},{text:"周三",abbr:"周三"},{text:"周四",abbr:"周四"},{text:"周五",abbr:"周五"},{text:"周六",abbr:"周六"}],INVALID_FORMAT:"日期格式不正确。",INVALID_TIME_FORMAT:"时间格式不正确。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"关闭"},TIME_IS_OUT_OF_VALID_RANGE:"时间超出有效范围。"},Bt={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"周日",abbr:"周日"},{text:"周一",abbr:"周一"},{text:"周二",abbr:"周二"},{text:"周三",abbr:"周三"},{text:"周四",abbr:"周四"},{text:"周五",abbr:"周五"},{text:"周六",abbr:"周六"}],INVALID_FORMAT:"日期格式不正確。",INVALID_TIME_FORMAT:"時間格式不正確。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"關閉"},TIME_IS_OUT_OF_VALID_RANGE:"時間超出有效範圍。"},Ot=(e,t)=>{const i=Xt(e,t);let n=new Date(i.start),o=[];const a=[];for(;n<=i.end;)o.push(Ft(n)),7===o.length&&(a.push(o),o=[]),n.setDate(n.getDate()+1),n=new Date(n);return a},Nt=(e,t)=>{let i,n;i=Math.floor(e/60),n=e%60;const o=i%kt{const t=e.split(":");let i=parseInt(t[0],10),n=parseInt(t[1],10);return isNaN(i)||isNaN(n)?0:(i<0?i=0:i>=kt&&(i=23),n<0?n=0:n>=60&&(n=59),60*i+n)},Pt=(e,t)=>{const i=Ut(e),n=Ut(t);return i>n?1:i===n?0:-1},zt=e=>{let t=e%yt;return t=0===t?yt:t,t},Rt=e=>e>=yt?wt:xt,jt=e=>{const[t,i]=e.split(" "),[n,o]=t.split(":");return i?`${Gt(n,i)}:${o}`:e},Gt=(e,t)=>{const i=parseInt(e,10);return Zt(t===wt?i===yt?12:i+12:i===yt?0:i)},Ft=e=>{const t=new Date(e),i=t.getFullYear(),n=Zt(t.getMonth()+1),o=Zt(t.getDate());return{text:`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`,attr:`${i}-${n}-${o}`}},Wt=(e,t)=>{if(t&&!Kt(t)){const i=t.split("-");if(3!==i.length)return t;const n=i[0],o=i[1],a=i[2];return"en"===e?`${o}/${a}/${n}`:`${n}-${o}-${a}`}return t},qt=(e,t)=>{if(Kt(t))return t;const i="en"===e,n=i?"/":"-",o=t.split(n);return`${i?o[2]:o[0]}-${i?o[0]:o[1]}-${i?o[1]:o[2]}`},Kt=e=>null==e||0===e.length||!/[^(^\s*)|(\s*$)]/.test(e),Yt=(e="ja")=>{const t=new Date,i=t.getFullYear(),n=Zt(t.getMonth()+1),o=Zt(t.getDate());return"ja"===e||"zh"===e?i+"-"+n+"-"+o:n+"/"+o+"/"+i},Jt=(e,t)=>{if(t&&!Kt(t)){const i="en"===e,n=i?"/":"-";if(new Date(`${t}${i?"":"T00:00:00"}`).getDate()!==parseInt(t.split(n)[i?1:2],10))return!1;const o=/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(\d{4})$/;if("en"===e)return null!==t.match(o);const a=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/g;return null!==t.match(a)}return!1},Zt=(e,t=2)=>{const i=`0000000000${e}`;return i.substr(i.length-t)},Xt=(e,t)=>{const i=new Date(e,t);i.setDate(1);const n=new Date(i);n.setDate(n.getDate()-n.getDay());const o=new Date(e,t);o.setMonth(o.getMonth()+1,0);const a=new Date(o);a.setDate(a.getDate()+(6-a.getDay()));const s=(a.getTime()-n.getTime())/864e5;return a.setDate(a.getDate()+(42-s)),{start:n,end:a}},Qt=e=>{switch(e){case"en":default:return Lt;case"zh":return Mt;case"ja":return Ht;case"zh-TW":return Bt}},ei=e=>{const t=[];t.push({value:`${e} 12`,label:`${e} 12`});for(let i=1;i<=11;i++)t.push({value:`${e} ${Zt(i)}`,label:`${e} ${Zt(i)}`});return t},ti=()=>Ce` +(()=>{"use strict";const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;class o{constructor(e,t,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const i=this.t;if(t&&void 0===e){const t=void 0!==i&&1===i.length;t&&(e=n.get(i)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&n.set(i,e))}return e}toString(){return this.cssText}}const a=(i,n)=>{if(t)i.adoptedStyleSheets=n.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const t of n){const n=document.createElement("style"),o=e.litNonce;void 0!==o&&n.setAttribute("nonce",o),n.textContent=t.cssText,i.appendChild(n)}},s=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new o("string"==typeof e?e:e+"",void 0,i))(t)})(e):e,{is:r,defineProperty:l,getOwnPropertyDescriptor:d,getOwnPropertyNames:u,getOwnPropertySymbols:c,getPrototypeOf:h}=Object,_=globalThis,p=_.trustedTypes,b=p?p.emptyScript:"",g=_.reactiveElementPolyfillSupport,m=(e,t)=>e,f={toAttribute(e,t){switch(t){case Boolean:e=e?b:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},v=(e,t)=>!r(e,t),k={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),_.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(e,i,t);void 0!==n&&l(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){const{get:n,set:o}=d(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){const a=n?.call(this);o.call(this,t),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const e=h(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const e=this.properties,t=[...u(e),...c(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return a(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){const i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:f).toAttribute(t,i.type);this._$Em=e,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,t){const i=this.constructor,n=i._$Eh.get(e);if(void 0!==n&&this._$Em!==n){const e=i.getPropertyOptions(n),o="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:f;this._$Em=n,this[n]=o.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??v)(this[e],t))return;this.P(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e)!0!==i.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],i)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach((e=>this._$EC(e,this[e]))),this._$EU()}updated(e){}firstUpdated(e){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[m("elementProperties")]=new Map,y[m("finalized")]=new Map,g?.({ReactiveElement:y}),(_.reactiveElementVersions??=[]).push("2.0.4");const x=globalThis,w=x.trustedTypes,$=w?w.createPolicy("lit-html",{createHTML:e=>e}):void 0,C="$lit$",I=`lit$${Math.random().toFixed(9).slice(2)}$`,E="?"+I,S=`<${E}>`,T=document,A=()=>T.createComment(""),D=e=>null===e||"object"!=typeof e&&"function"!=typeof e,V=Array.isArray,L="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,B=/>/g,O=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,U=/"/g,P=/^(?:script|style|textarea|title)$/i,z=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),R=(z(1),z(2),z(3),Symbol.for("lit-noChange")),j=Symbol.for("lit-nothing"),G=new WeakMap,F=T.createTreeWalker(T,129);function W(e,t){if(!V(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==$?$.createHTML(t):t}class q{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,a=0;const s=e.length-1,r=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,a=2===t?"":3===t?"":"",s=H;for(let t=0;t"===l[0]?(s=o??H,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,r=l[1],s=void 0===l[3]?O:'"'===l[3]?U:N):s===U||s===N?s=O:s===M||s===B?s=H:(s=O,o=void 0);const c=s===O&&e[t+1].startsWith("/>")?" ":"";a+=s===H?i+S:d>=0?(n.push(r),i.slice(0,d)+C+i.slice(d)+I+c):i+I+(-2===d?t:c)}return[W(e,a+(e[i]||"")+(2===t?"":3===t?"":"")),n]})(e,t);if(this.el=q.createElement(l,i),F.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=F.nextNode())&&r.length0){n.textContent=w?w.emptyScript:"";for(let i=0;iV(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==j&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(T.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,n="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=q.createElement(W(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new Y(n,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=G.get(e.strings);return void 0===t&&G.set(e.strings,t=new q(e)),t}k(e){V(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new J(this.O(A()),this.O(A()),this,this.options)):i=t[n],i._$AI(o),n++;n2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=j}_$AI(e,t=this,i,n){const o=this.strings;let a=!1;if(void 0===o)e=K(this,e,t,0),a=!D(e)||e!==this._$AH&&e!==R,a&&(this._$AH=e);else{const n=e;let s,r;for(e=o[0],s=0;se}):void 0,se="$lit$",re=`lit$${Math.random().toFixed(9).slice(2)}$`,le="?"+re,de=`<${le}>`,ue=document,ce=()=>ue.createComment(""),he=e=>null===e||"object"!=typeof e&&"function"!=typeof e,_e=Array.isArray,pe="[ \t\n\f\r]",be=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ge=/-->/g,me=/>/g,fe=RegExp(`>|${pe}(?:([^\\s"'>=/]+)(${pe}*=${pe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ve=/'/g,ke=/"/g,ye=/^(?:script|style|textarea|title)$/i,xe=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),we=xe(1),$e=xe(2),Ce=(xe(3),Symbol.for("lit-noChange")),Ie=Symbol.for("lit-nothing"),Ee=new WeakMap,Se=ue.createTreeWalker(ue,129);function Te(e,t){if(!_e(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ae?ae.createHTML(t):t}class Ae{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let o=0,a=0;const s=e.length-1,r=this.parts,[l,d]=((e,t)=>{const i=e.length-1,n=[];let o,a=2===t?"":3===t?"":"",s=be;for(let t=0;t"===l[0]?(s=o??be,d=-1):void 0===l[1]?d=-2:(d=s.lastIndex-l[2].length,r=l[1],s=void 0===l[3]?fe:'"'===l[3]?ke:ve):s===ke||s===ve?s=fe:s===ge||s===me?s=be:(s=fe,o=void 0);const c=s===fe&&e[t+1].startsWith("/>")?" ":"";a+=s===be?i+de:d>=0?(n.push(r),i.slice(0,d)+se+i.slice(d)+re+c):i+re+(-2===d?t:c)}return[Te(e,a+(e[i]||"")+(2===t?"":3===t?"":"")),n]})(e,t);if(this.el=Ae.createElement(l,i),Se.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=Se.nextNode())&&r.length0){n.textContent=oe?oe.emptyScript:"";for(let i=0;i_e(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ie&&he(this._$AH)?this._$AA.nextSibling.data=e:this.T(ue.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,n="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=Ae.createElement(Te(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(t);else{const e=new Ve(n,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=Ee.get(e.strings);return void 0===t&&Ee.set(e.strings,t=new Ae(e)),t}k(e){_e(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const o of e)n===t.length?t.push(i=new Le(this.O(ce()),this.O(ce()),this,this.options)):i=t[n],i._$AI(o),n++;n2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ie}_$AI(e,t=this,i,n){const o=this.strings;let a=!1;if(void 0===o)e=De(this,e,t,0),a=!he(e)||e!==this._$AH&&e!==Ce,a&&(this._$AH=e);else{const n=e;let s,r;for(e=o[0],s=0;s{const n=i?.renderBefore??t;let o=n._$litPart$;if(void 0===o){const e=i?.renderBefore??null;n._$litPart$=o=new Le(t.insertBefore(ce(),e),e,void 0,i??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return Ce}}Pe._$litElement$=!0,Pe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Pe});const ze=globalThis.litElementPolyfillSupport;ze?.({LitElement:Pe}),(globalThis.litElementVersions??=[]).push("4.1.0");const Re={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:v},je=(e=Re,t,i)=>{const{kind:n,metadata:o}=i;let a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(i.name,e),"accessor"===n){const{name:n}=i;return{set(i){const o=t.get.call(this);t.set.call(this,i),this.requestUpdate(n,o,e)},init(t){return void 0!==t&&this.P(n,void 0,e),t}}}if("setter"===n){const{name:n}=i;return function(i){const o=this[n];t.call(this,i),this.requestUpdate(n,o,e)}}throw Error("Unsupported decorator location: "+n)};function Ge(e){return(t,i)=>"object"==typeof i?je(e,t,i):((e,t,i)=>{const n=t.hasOwnProperty(i);return t.constructor.createProperty(i,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}function Fe(e){return Ge({...e,state:!0,attribute:!1})}const We=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i);function qe(e,t){return(i,n,o)=>{const a=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof n?i:o??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return We(i,n,{get(){let i=e.call(this);return void 0===i&&(i=a(this),(null!==i||this.hasUpdated)&&t.call(this,i)),i}})}return We(i,n,{get(){return a(this)}})}}let Ke;function Ye(e){return(t,i)=>We(t,i,{get(){return(this.renderRoot??(Ke??=document.createDocumentFragment())).querySelectorAll(e)}})}const Je=1048576,Ze=1073741824,Xe={ATTACHMENT_BROWSE:"Browse",ATTACHMENT_DRAG_DROP_ZONE:"Drop files here."},Qe={ATTACHMENT_BROWSE:"参照",ATTACHMENT_DRAG_DROP_ZONE:"ここにファイルをドロップします。"},et={ATTACHMENT_BROWSE:"选择文件",ATTACHMENT_DRAG_DROP_ZONE:"拖动文件到此。"},tt={ATTACHMENT_BROWSE:"選擇檔案",ATTACHMENT_DRAG_DROP_ZONE:"拖曳檔案到此。"},it="'items' property is not array.",nt="'value' property is not unique in items.",ot="'value' property is not specified in items.",at="'files' property is not array.",st="'value' property is not array.",rt="'value' property is not string.",lt="'selectedIndex' property is not array.",dt="'selectedIndex' property is not number.",ut="'columns' property is not array.",ct="'field' property is not specified in columns.",ht="'field' property is not unique in columns.",_t="'rowsPerPage' property is not positive integer.",pt="'data' property is not array.",bt="'container' property is not HTMLElement.";class gt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this.t=e,this._$AM=t,this.i=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class mt extends gt{constructor(e){if(super(e),this.it=j,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===j||null==e)return this._t=void 0,this.it=e;if(e===R)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}mt.directiveName="unsafeHTML",mt.resultType=1;const ft=(e=>(...t)=>({_$litDirective$:e,values:t}))(mt),vt=24,kt=12,yt="AM",xt="PM",wt='"max" must be greater than or equal to "min".',$t="Time is out of valid range.",Ct="'timeStep' property is not number.",It="00:00",Et="23:59",St="'value' property format is not valid.",Tt="'max' property format is not valid.",At="'min' property format is not valid.",Dt="'timeStep' property format is not valid.",Vt={MONTH_SELECT:["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],YEAR_SELECT_POSTFIX:"",WEEK_DAYS:[{text:"SUN",abbr:"Sunday"},{text:"MON",abbr:"Monday"},{text:"TUE",abbr:"Tuesday"},{text:"WED",abbr:"Wednesday"},{text:"THU",abbr:"Thursday"},{text:"FRI",abbr:"Friday"},{text:"SAT",abbr:"Saturday"}],INVALID_FORMAT:"Format is not valid.",INVALID_TIME_FORMAT:"Format is not valid.",CALENDAR_FOOTER_TEXT:{none:"None",today:"Today",close:"Close"},TIME_IS_OUT_OF_VALID_RANGE:"Time is out of valid range."},Lt={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"日",abbr:"日"},{text:"月",abbr:"月"},{text:"火",abbr:"火"},{text:"水",abbr:"水"},{text:"木",abbr:"木"},{text:"金",abbr:"金"},{text:"土",abbr:"土"}],INVALID_FORMAT:"日付の形式が不正です。",INVALID_TIME_FORMAT:"時刻の形式が不正です。",CALENDAR_FOOTER_TEXT:{none:"選択を解除",today:"今日",close:"閉じる"},TIME_IS_OUT_OF_VALID_RANGE:"時刻が有効な範囲外です。"},Ht={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"周日",abbr:"周日"},{text:"周一",abbr:"周一"},{text:"周二",abbr:"周二"},{text:"周三",abbr:"周三"},{text:"周四",abbr:"周四"},{text:"周五",abbr:"周五"},{text:"周六",abbr:"周六"}],INVALID_FORMAT:"日期格式不正确。",INVALID_TIME_FORMAT:"时间格式不正确。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"关闭"},TIME_IS_OUT_OF_VALID_RANGE:"时间超出有效范围。"},Mt={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"周日",abbr:"周日"},{text:"周一",abbr:"周一"},{text:"周二",abbr:"周二"},{text:"周三",abbr:"周三"},{text:"周四",abbr:"周四"},{text:"周五",abbr:"周五"},{text:"周六",abbr:"周六"}],INVALID_FORMAT:"日期格式不正確。",INVALID_TIME_FORMAT:"時間格式不正確。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"關閉"},TIME_IS_OUT_OF_VALID_RANGE:"時間超出有效範圍。"},Bt=(e,t)=>{const i=Zt(e,t);let n=new Date(i.start),o=[];const a=[];for(;n<=i.end;)o.push(Gt(n)),7===o.length&&(a.push(o),o=[]),n.setDate(n.getDate()+1),n=new Date(n);return a},Ot=(e,t)=>{let i,n;i=Math.floor(e/60),n=e%60;const o=i%vt{const t=e.split(":");let i=parseInt(t[0],10),n=parseInt(t[1],10);return isNaN(i)||isNaN(n)?0:(i<0?i=0:i>=vt&&(i=23),n<0?n=0:n>=60&&(n=59),60*i+n)},Ut=(e,t)=>{const i=Nt(e),n=Nt(t);return i>n?1:i===n?0:-1},Pt=e=>{let t=e%kt;return t=0===t?kt:t,t},zt=e=>e>=kt?xt:yt,Rt=e=>{const[t,i]=e.split(" "),[n,o]=t.split(":");return i?`${jt(n,i)}:${o}`:e},jt=(e,t)=>{const i=parseInt(e,10);return Jt(t===xt?i===kt?12:i+12:i===kt?0:i)},Gt=e=>{const t=new Date(e),i=t.getFullYear(),n=Jt(t.getMonth()+1),o=Jt(t.getDate());return{text:`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`,attr:`${i}-${n}-${o}`}},Ft=(e,t)=>{if(t&&!qt(t)){const i=t.split("-");if(3!==i.length)return t;const n=i[0],o=i[1],a=i[2];return"en"===e?`${o}/${a}/${n}`:`${n}-${o}-${a}`}return t},Wt=(e,t)=>{if(qt(t))return t;const i="en"===e,n=i?"/":"-",o=t.split(n);return`${i?o[2]:o[0]}-${i?o[0]:o[1]}-${i?o[1]:o[2]}`},qt=e=>null==e||0===e.length||!/[^(^\s*)|(\s*$)]/.test(e),Kt=(e="ja")=>{const t=new Date,i=t.getFullYear(),n=Jt(t.getMonth()+1),o=Jt(t.getDate());return"ja"===e||"zh"===e?i+"-"+n+"-"+o:n+"/"+o+"/"+i},Yt=(e,t)=>{if(t&&!qt(t)){const i="en"===e,n=i?"/":"-";if(new Date(`${t}${i?"":"T00:00:00"}`).getDate()!==parseInt(t.split(n)[i?1:2],10))return!1;const o=/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(\d{4})$/;if("en"===e)return null!==t.match(o);const a=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/g;return null!==t.match(a)}return!1},Jt=(e,t=2)=>{const i=`0000000000${e}`;return i.substr(i.length-t)},Zt=(e,t)=>{const i=new Date(e,t);i.setDate(1);const n=new Date(i);n.setDate(n.getDate()-n.getDay());const o=new Date(e,t);o.setMonth(o.getMonth()+1,0);const a=new Date(o);a.setDate(a.getDate()+(6-a.getDay()));const s=(a.getTime()-n.getTime())/864e5;return a.setDate(a.getDate()+(42-s)),{start:n,end:a}},Xt=e=>{switch(e){case"en":default:return Vt;case"zh":return Ht;case"ja":return Lt;case"zh-TW":return Mt}},Qt=e=>{const t=[];t.push({value:`${e} 12`,label:`${e} 12`});for(let i=1;i<=11;i++)t.push({value:`${e} ${Jt(i)}`,label:`${e} ${Jt(i)}`});return t},ei=()=>$e` - `;function ii(e,t){const i=e.querySelector(".kuc-base-datetime-listbox-1-17-0__listbox"),n=ni(e);if(!e.parentElement||!i||!n)return;const{inputToBottom:o,inputToTop:a}=n,s="kuc-base-datetime-header-month-1-17-0"===e.tagName.toLowerCase()?360:300,r=e.parentElement.getBoundingClientRect().height;return i.style.maxHeight=s+"px",e.parentElement.style.position="relative",o>=s?(i.style.height=s+"px","bottom"===t?void(i.style.top=r+"px"):void(i.style.bottom=r+"px")):"bottom"===t?(i.style.top=r+"px",void(i.style.height=o-18+"px")):(i.style.height=a-18+"px",i.style.top="auto",void(i.style.bottom=e.parentElement.getBoundingClientRect().height+"px"))}const ni=e=>{var t,i;if(!e.parentElement)return{inputToBottom:0,inputToTop:0,inputToRight:0,inputToLeft:0};const n=null!==(t=e.closest("kuc-base-date-1-17-0"))&&void 0!==t?t:e.closest("kuc-mobile-base-date-1-17-0"),o=(null!==(i=n.getElementsByClassName("kuc-base-date-1-17-0__input")[0])&&void 0!==i?i:n.getElementsByClassName("kuc-mobile-base-date-1-17-0__group")[0]).getBoundingClientRect().width;return{inputToBottom:window.innerHeight-e.parentElement.getBoundingClientRect().bottom,inputToTop:e.parentElement.getBoundingClientRect().top,inputToRight:window.innerWidth-e.parentElement.getBoundingClientRect().left,inputToLeft:e.parentElement.getBoundingClientRect().left+o}},oi={fromAttribute:e=>null===e,toAttribute:e=>e?null:""},ai={fromAttribute:e=>!e||-1===["en","ja","zh","zh-TW"].indexOf(e),toAttribute:e=>{const t=["en","ja","zh","zh-TW"];return-1!==t.indexOf(e)?e:-1!==t.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}},si=e=>e instanceof HTMLElement?e:vt(e),ri=e=>{if(void 0===e||""===e)return"";let t=[];return e.indexOf("-")>0&&(t=e.split("-")),t.length<2?`${e}-01-01`:2===t.length?`${Zt(t[0],4)}-${Zt(t[1])}-01`:t.length>2?`${Zt(t[0],4)}-${Zt(t[1])}-${Zt(t[2])}`:""},li=e=>{if(5===e.length||""===e)return e;const t=e.indexOf(":"),i=e.substr(0,t),n=e.substr(t+1,5);return`${Zt(i)}:${Zt(n)}`},di={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let ui;const ci=new Uint8Array(16);function hi(){if(!ui&&(ui="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ui))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ui(ci)}const _i=[];for(let e=0;e<256;++e)_i.push((e+256).toString(16).slice(1));const pi=function(e,t,i){if(di.randomUUID&&!t&&!e)return di.randomUUID();const n=(e=e||{}).random||(e.rng||hi)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=n[e];return t}return function(e,t=0){return _i[e[t+0]]+_i[e[t+1]]+_i[e[t+2]]+_i[e[t+3]]+"-"+_i[e[t+4]]+_i[e[t+5]]+"-"+_i[e[t+6]]+_i[e[t+7]]+"-"+_i[e[t+8]]+_i[e[t+9]]+"-"+_i[e[t+10]]+_i[e[t+11]]+_i[e[t+12]]+_i[e[t+13]]+_i[e[t+14]]+_i[e[t+15]]}(n)};class bi extends ze{createRenderRoot(){return this}async throwErrorAfterUpdateComplete(e){throw await this.updateComplete,new Error(e)}}const gi=(e,t,i)=>{const n=new CustomEvent(t,{detail:i,bubbles:!0,composed:!0});return e.dispatchEvent(n)},mi=e=>{const t="kuc-style-1-17-0";let i=document.getElementById(t);i||(i=document.createElement("style"),i.id=t,document.head.appendChild(i)),i.appendChild(document.createTextNode(e))},fi=()=>pi();function vi(e){if(!e||"object"!=typeof e)return{};const t={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0===t[e]&&delete t[e];return t}function ki(e){return!(""!==e&&void 0!==e&&!/(^(\d{1,4})-(0?[1-9]|1[0-2])-(0?[1-9]|[12][0-9]|3[01])$)|(^(\d{1,4})$)|(^(\d{1,4})-(0?[1-9]|1[0-2])$)/g.test(e))}function yi(e){return!(""!==e&&!/^(2[0-3]|[01]?[0-9]):([0-9]|[0-5][0-9])$/.test(e))}function xi(e,t,i){const n=Math.round(e),o=Ut(t),a=Ut(i);return!isNaN(n)&&n>0&&n<=o-a}function wi(e){const[t,i,n]=e.split("-"),o=new Date(`${e}T00:00:00`),a=o.getFullYear(),s=o.getMonth(),r=o.getDate();return a===Number(t)&&s===Number(i)-1&&r===Number(n)}function $i(e){return"string"==typeof e}function Ci(e,t){return!(!/(^(\d{4})-(0[0-9]|1[0-2])-(0[1-9]|([12][0-9]|3[01]))$)|(^(\d{4})$)|(^(\d{4})-(0[0-9]|1[0-2])$)/g.test(e)||!/(^([01][0-9]|2[0-3])$)|(^([01][0-9]|2[0-3]):([0-5][0-9]))$|(^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$/.test(t))}function Ii(e){return e.length<2||!e.some((t=>e.indexOf(t)!==e.lastIndexOf(t)))}function Ei(e){return!(e<.5||!Si(e))}function Si(e){return"number"==typeof e&&!Number.isNaN(e)}function Ti(e){return Array.isArray(e)}var Ai=function(e,t,i,n){var o,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let Di;(()=>{if(Di=window.customElements.get("kuc-attachment-1-17-0"),!Di){class e extends bi{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.message="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.files=[],this._isDraging=!1,this._dragEnterCounter=0,this._locale=this._getLocale(),this._isFileOrDirectoryDrag=e=>{if(!e.dataTransfer)return!1;if(void 0!==e.dataTransfer.items)for(let t=0;t + `;function ti(e,t){const i=e.querySelector(".kuc-base-datetime-listbox-1-17-1__listbox"),n=ii(e);if(!e.parentElement||!i||!n)return;const{inputToBottom:o,inputToTop:a}=n,s="kuc-base-datetime-header-month-1-17-1"===e.tagName.toLowerCase()?360:300,r=e.parentElement.getBoundingClientRect().height;return i.style.maxHeight=s+"px",e.parentElement.style.position="relative",o>=s?(i.style.height=s+"px","bottom"===t?void(i.style.top=r+"px"):void(i.style.bottom=r+"px")):"bottom"===t?(i.style.top=r+"px",void(i.style.height=o-18+"px")):(i.style.height=a-18+"px",i.style.top="auto",void(i.style.bottom=e.parentElement.getBoundingClientRect().height+"px"))}const ii=e=>{var t,i;if(!e.parentElement)return{inputToBottom:0,inputToTop:0,inputToRight:0,inputToLeft:0};const n=null!==(t=e.closest("kuc-base-date-1-17-1"))&&void 0!==t?t:e.closest("kuc-mobile-base-date-1-17-1"),o=(null!==(i=n.getElementsByClassName("kuc-base-date-1-17-1__input")[0])&&void 0!==i?i:n.getElementsByClassName("kuc-mobile-base-date-1-17-1__group")[0]).getBoundingClientRect().width;return{inputToBottom:window.innerHeight-e.parentElement.getBoundingClientRect().bottom,inputToTop:e.parentElement.getBoundingClientRect().top,inputToRight:window.innerWidth-e.parentElement.getBoundingClientRect().left,inputToLeft:e.parentElement.getBoundingClientRect().left+o}},ni={fromAttribute:e=>null===e,toAttribute:e=>e?null:""},oi={fromAttribute:e=>!e||-1===["en","ja","zh","zh-TW"].indexOf(e),toAttribute:e=>{const t=["en","ja","zh","zh-TW"];return-1!==t.indexOf(e)?e:-1!==t.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}},ai=e=>e instanceof HTMLElement?e:ft(e),si=e=>{if(void 0===e||""===e)return"";let t=[];return e.indexOf("-")>0&&(t=e.split("-")),t.length<2?`${e}-01-01`:2===t.length?`${Jt(t[0],4)}-${Jt(t[1])}-01`:t.length>2?`${Jt(t[0],4)}-${Jt(t[1])}-${Jt(t[2])}`:""},ri=e=>{if(5===e.length||""===e)return e;const t=e.indexOf(":"),i=e.substr(0,t),n=e.substr(t+1,5);return`${Jt(i)}:${Jt(n)}`},li={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var di,ui=new Uint8Array(16);function ci(){if(!di&&!(di="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return di(ui)}for(var hi=[],_i=0;_i<256;++_i)hi.push((_i+256).toString(16).slice(1));const pi=function(e,t,i){if(li.randomUUID&&!t&&!e)return li.randomUUID();var n=(e=e||{}).random||(e.rng||ci)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=n[o];return t}return function(e,t=0){return(hi[e[t+0]]+hi[e[t+1]]+hi[e[t+2]]+hi[e[t+3]]+"-"+hi[e[t+4]]+hi[e[t+5]]+"-"+hi[e[t+6]]+hi[e[t+7]]+"-"+hi[e[t+8]]+hi[e[t+9]]+"-"+hi[e[t+10]]+hi[e[t+11]]+hi[e[t+12]]+hi[e[t+13]]+hi[e[t+14]]+hi[e[t+15]]).toLowerCase()}(n)};class bi extends Pe{createRenderRoot(){return this}async throwErrorAfterUpdateComplete(e){throw await this.updateComplete,new Error(e)}}const gi=(e,t,i)=>{const n=new CustomEvent(t,{detail:i,bubbles:!0,composed:!0});return e.dispatchEvent(n)},mi=e=>{const t="kuc-style-1-17-1";let i=document.getElementById(t);i||(i=document.createElement("style"),i.id=t,document.head.appendChild(i)),i.appendChild(document.createTextNode(e))},fi=()=>pi();function vi(e){if(!e||"object"!=typeof e)return{};const t={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0===t[e]&&delete t[e];return t}function ki(e){return!(""!==e&&void 0!==e&&!/(^(\d{1,4})-(0?[1-9]|1[0-2])-(0?[1-9]|[12][0-9]|3[01])$)|(^(\d{1,4})$)|(^(\d{1,4})-(0?[1-9]|1[0-2])$)/g.test(e))}function yi(e){return!(""!==e&&!/^(2[0-3]|[01]?[0-9]):([0-9]|[0-5][0-9])$/.test(e))}function xi(e,t,i){const n=Math.round(e),o=Nt(t),a=Nt(i);return!isNaN(n)&&n>0&&n<=o-a}function wi(e){const[t,i,n]=e.split("-"),o=new Date(`${e}T00:00:00`),a=o.getFullYear(),s=o.getMonth(),r=o.getDate();return a===Number(t)&&s===Number(i)-1&&r===Number(n)}function $i(e){return"string"==typeof e}function Ci(e,t){return!(!/(^(\d{4})-(0[0-9]|1[0-2])-(0[1-9]|([12][0-9]|3[01]))$)|(^(\d{4})$)|(^(\d{4})-(0[0-9]|1[0-2])$)/g.test(e)||!/(^([01][0-9]|2[0-3])$)|(^([01][0-9]|2[0-3]):([0-5][0-9]))$|(^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$/.test(t))}function Ii(e){return e.length<2||!e.some((t=>e.indexOf(t)!==e.lastIndexOf(t)))}function Ei(e){return!(e<.5||!Si(e))}function Si(e){return"number"==typeof e&&!Number.isNaN(e)}function Ti(e){return Array.isArray(e)}var Ai=function(e,t,i,n){var o,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let Di;(()=>{if(Di=window.customElements.get("kuc-attachment-1-17-1"),!Di){class e extends bi{constructor(e){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.message="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.files=[],this._isDraging=!1,this._dragEnterCounter=0,this._locale=this._getLocale(),this._isFileOrDirectoryDrag=e=>{if(!e.dataTransfer)return!1;if(void 0!==e.dataTransfer.items)for(let t=0;t
-
${this._locale.ATTACHMENT_DRAG_DROP_ZONE}
+
${this._locale.ATTACHMENT_DRAG_DROP_ZONE}
    ${this.files.map(((e,t)=>this._getAttachmentItemTemplate(e,t)))}
-
- ${this._locale.ATTACHMENT_BROWSE} -
- + ${this._locale.ATTACHMENT_BROWSE} +
+
-

${this.message}

- + >
- `}_getAttachmentItemTemplate(e,t){return $e` -
  • + `}_getAttachmentItemTemplate(e,t){return we` +
  • ${e.name||""}
    - + ${this._getFileSize(e.size)}
  • - `}async updated(e){await this.updateComplete,this._updateFileNameMaxWidth()}_updateFileNameMaxWidth(){const e=this._labelEl.getBoundingClientRect().width;this._fileItemsEl.forEach((t=>{t.style.maxWidth=`calc(var(--kuc-attachment-width, ${e<191?191:e}px) - 14px)`}))}_getRemoveButtonIcon(){return Ce`{t.style.maxWidth=`calc(var(--kuc-attachment-width, ${e<191?191:e}px) - 14px)`}))}_getRemoveButtonIcon(){return $e` - `}_getLanguage(){const e=["en","ja","zh","zh-TW"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}_getLocale(){switch(this._getLanguage()){case"en":default:return Qe;case"zh":return tt;case"zh-TW":return it;case"ja":return et}}_handleClickFileRemove(e){const t=e.currentTarget,i=parseInt(t.getAttribute("data-file-index"),10);if(this.files){i===this.files.length-1&&this._inputEl.focus();const e=[...this.files];this.files.splice(i,1);const t={oldFiles:e,files:this.files,type:"remove-file",fileIndex:[i]};gi(this,"change",t),this.requestUpdate(),i<=this.files.length-1&&this._fileRemoveButtons[i].focus()}}_handleClickLabel(e){e.preventDefault()}_handleDragEnter(e){if(!this.disabled&&(this._dragEnterCounter++,1===this._dragEnterCounter&&this._isFileOrDirectoryDrag(e))){e.preventDefault();const t=2,i=1;this._groupFilesEl.style.height=this._groupFilesEl.getBoundingClientRect().height+"px",this._dragTextEl.style.width=this._groupFilesEl.getBoundingClientRect().width-2*i+"px",this._dragTextEl.style.height=this._groupFilesEl.getBoundingClientRect().height-2*(i+t)+"px",this._isDraging=!0}}_handleDragOver(e){this.disabled||(e.stopPropagation(),this._isFileOrDirectoryDrag(e)&&e.preventDefault())}_handleDragDrop(e){this.disabled||(e.preventDefault(),this._handleDragLeave(),this._isFileDrop(e)&&this._addFiles(e))}_isFileDrop(e){var t;if(e.dataTransfer&&e.dataTransfer.items)for(let i=0;it[e]));const i=[...this.files],n=t.map(((e,t)=>i.length+t));t.forEach((e=>this.files.push(e)));const o={oldFiles:i,files:this.files,type:"add-file",fileIndex:n};gi(this,"change",o),this.requestUpdate()}this._inputEl.value=""}_getFileSize(e){return"number"==typeof e?this._formatFileSize(e):/^[1-9]\d*$/.test(e)?this._formatFileSize(parseInt(e,10)):"NaN size"}_formatFileSize(e){return e>=Xe?Math.round(e/Xe)+" GB":e>=Ze?Math.round(e/Ze)+" MB":e>=1024?Math.round(e/1024)+" KB":Math.round(e)+" bytes"}}Ai([Fe({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Ai([Fe({type:String})],e.prototype,"error",void 0),Ai([Fe({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Ai([Fe({type:String})],e.prototype,"label",void 0),Ai([Fe({type:String,attribute:"lang",reflect:!0,converter:ai})],e.prototype,"language",void 0),Ai([Fe({type:String})],e.prototype,"message",void 0),Ai([Fe({type:Boolean})],e.prototype,"disabled",void 0),Ai([Fe({type:Boolean})],e.prototype,"requiredIcon",void 0),Ai([Fe({type:Boolean,attribute:"hidden",reflect:!0,converter:oi})],e.prototype,"visible",void 0),Ai([Fe({type:Array})],e.prototype,"files",void 0),Ai([We()],e.prototype,"_isDraging",void 0),Ai([Ke(".kuc-attachment-1-17-0__group__files")],e.prototype,"_groupFilesEl",void 0),Ai([Ke(".kuc-attachment-1-17-0__group__files__droppable__text")],e.prototype,"_dragTextEl",void 0),Ai([Ke(".kuc-attachment-1-17-0__group__files__browse-button__input-container__input")],e.prototype,"_inputEl",void 0),Ai([Ke(".kuc-attachment-1-17-0__group__label")],e.prototype,"_labelEl",void 0),Ai([Je(".kuc-attachment-1-17-0__group__files__display-area__item__name")],e.prototype,"_fileItemsEl",void 0),Ai([Je(".kuc-attachment-1-17-0__group__files__display-area__item__remove-button__container__button")],e.prototype,"_fileRemoveButtons",void 0),window.customElements.define("kuc-attachment-1-17-0",e),mi('\n kuc-attachment-1-17-0,\n kuc-attachment-1-17-0 *,\n kuc-attachment-1-17-0:lang(en),\n kuc-attachment-1-17-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-attachment-1-17-0:lang(ja),\n kuc-attachment-1-17-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-attachment-1-17-0:lang(zh),\n kuc-attachment-1-17-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-attachment-1-17-0:lang(zh-TW),\n kuc-attachment-1-17-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-attachment-1-17-0 {\n font-size: 14px;\n display: inline-table;\n vertical-align: top;\n width: var(--kuc-attachment-width, 191px);\n min-width: var(--kuc-attachment-width, 191px);\n }\n kuc-attachment-1-17-0[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-0__group {\n width: 100%;\n height: auto;\n box-sizing: border-box;\n position: relative;\n display: block;\n }\n .kuc-attachment-1-17-0__group__label {\n display: inline-block;\n padding: 4px 0 8px 0;\n color: #333333;\n white-space: nowrap;\n }\n .kuc-attachment-1-17-0__group__label[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-0__group__files {\n border: solid 1px #e3e7e8;\n background-color: #eeeeee;\n padding: 16px 4px;\n display: block;\n font-size: 14px;\n overflow: hidden;\n position: relative;\n box-sizing: border-box;\n width: var(--kuc-attachment-width, auto);\n height: var(--kuc-attachment-height, auto);\n }\n .kuc-attachment-1-17-0__group__files--disabled {\n cursor: not-allowed;\n }\n .kuc-attachment-1-17-0__group__files__browse-button {\n border: 1px solid transparent;\n position: relative;\n display: inline-block;\n margin-right: 16px;\n padding: 8px;\n text-decoration: none;\n }\n .kuc-attachment-1-17-0__group__files__browse-button[hidden]{\n display: none\n }\n .kuc-attachment-1-17-0__group__files__browse-button:focus-within {\n border: 1px solid #3498db;\n }\n .kuc-attachment-1-17-0__group__files__browse-button:hover\n .kuc-attachment-1-17-0__group__files__browse-button__text {\n color: #217dbb;\n }\n .kuc-attachment-1-17-0__group__files__browse-button__text {\n color: #3498db;\n font-size: 14px;\n }\n .kuc-attachment-1-17-0__group__files__browse-button__input-container {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n display: inline-block;\n }\n .kuc-attachment-1-17-0__group__files__browse-button__input-container__input {\n cursor: pointer;\n font-size: 999px;\n vertical-align: middle;\n height: 100%;\n width: 100%;\n line-height: 1.5;\n }\n .kuc-attachment-1-17-0__group__files__display-area {\n padding-inline-start: 0px;\n list-style-type: disc;\n margin-block-start: 0em;\n margin-block-end: 0em;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item {\n position: relative;\n margin-bottom: 8px;\n height: auto;\n min-height: 24px;\n border: 2px solid #f1f4f5;\n background-color: #f1f4f5;\n list-style: none;\n display: flex;\n align-items: center;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item__name {\n display: inline-block;\n padding: 3px calc(4.6em + 4px) 3px 26px;\n width: 100%;\n max-width: 177px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n word-wrap: normal;\n font-size: var(--kuc-attachment-item-font-size, 14px);\n line-height: 1.2;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item__remove-button__container {\n display: inline-block;\n position: absolute;\n top: calc(50% - 12px);\n left: 0;\n width: 24px;\n height: 24px;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item__remove-button__container[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item__remove-button__container__button {\n background-color: #f2f4f6;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid transparent;\n padding: 0px;\n width:100%;\n height:100%;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item__remove-button__container__button:hover {\n background: #d8e1e6;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item__remove-button__container__button:focus-within {\n border: 1px solid #3498db;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item__remove-button__container__button:focus {\n outline: none;\n }\n .kuc-attachment-1-17-0__group__files__display-area__item__size {\n display: inline-block;\n position: absolute;\n right: 0;\n color: #888888;\n padding: 0 3px 0 0;\n max-width: 4.6em;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n word-wrap: normal;\n font-size: var(--kuc-attachment-item-font-size, 14px);\n line-height: 1.2;\n }\n .kuc-attachment-1-17-0__group__files__droppable {\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n margin: auto 0;\n }\n .kuc-attachment-1-17-0__group__files__droppable[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-0__group__files__droppable__text {\n background-color: #e2f2fe;\n border: dashed 2px #3498db;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n color: #3498db;\n font-size: 14px;\n }\n .kuc-attachment-1-17-0__group__files__browse-message {\n display: inline-block;\n color: var(--kuc-attachment-message-color, #888888);\n font-size: var(--kuc-attachment-message-font-size, 14px);\n margin: 3px 0 0;\n word-break: break-all;\n }\n .kuc-attachment-1-17-0__group__files__browse-message--disabled {\n color: #888888;\n }\n .kuc-attachment-1-17-0__group__files__browse-message[hidden] {\n display: none;\n }\n'),Di=e}})();var Vi=function(e,t,i,n){var o,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let Li;(()=>{if(Li=window.customElements.get("kuc-button-1-17-0"),!Li){class e extends bi{constructor(e){super(),this.className="",this.id="",this.text="",this.type="normal",this.content="",this.disabled=!1,this.visible=!0;const t=vi(e);Object.assign(this,t)}_handleClickButton(e){e.stopPropagation(),gi(this,"click")}_getButtonColorType(){return"normal"===this.type||"submit"===this.type||"alert"===this.type?this.type:"normal"}render(){return $e` + `}_getLanguage(){const e=["en","ja","zh","zh-TW"];return-1!==e.indexOf(this.language)?this.language:-1!==e.indexOf(document.documentElement.lang)?document.documentElement.lang:"en"}_getLocale(){switch(this._getLanguage()){case"en":default:return Xe;case"zh":return et;case"zh-TW":return tt;case"ja":return Qe}}_handleClickFileRemove(e){const t=e.currentTarget,i=parseInt(t.getAttribute("data-file-index"),10);if(this.files){i===this.files.length-1&&this._inputEl.focus();const e=[...this.files];this.files.splice(i,1);const t={oldFiles:e,files:this.files,type:"remove-file",fileIndex:[i]};gi(this,"change",t),this.requestUpdate(),i<=this.files.length-1&&this._fileRemoveButtons[i].focus()}}_handleClickLabel(e){e.preventDefault()}_handleDragEnter(e){if(!this.disabled&&(this._dragEnterCounter++,1===this._dragEnterCounter&&this._isFileOrDirectoryDrag(e))){e.preventDefault();const t=2,i=1;this._groupFilesEl.style.height=this._groupFilesEl.getBoundingClientRect().height+"px",this._dragTextEl.style.width=this._groupFilesEl.getBoundingClientRect().width-2*i+"px",this._dragTextEl.style.height=this._groupFilesEl.getBoundingClientRect().height-2*(i+t)+"px",this._isDraging=!0}}_handleDragOver(e){this.disabled||(e.stopPropagation(),this._isFileOrDirectoryDrag(e)&&e.preventDefault())}_handleDragDrop(e){!this.disabled&&this._isDraging&&(e.preventDefault(),this._handleDragLeave(),this._isFileDrop(e)&&this._addFiles(e))}_isFileDrop(e){var t;if(e.dataTransfer&&e.dataTransfer.items)for(let i=0;it[e]));const i=[...this.files],n=t.map(((e,t)=>i.length+t));t.forEach((e=>this.files.push(e)));const o={oldFiles:i,files:this.files,type:"add-file",fileIndex:n};gi(this,"change",o),this.requestUpdate()}this._inputEl.value=""}_getFileSize(e){return"number"==typeof e?this._formatFileSize(e):/^[1-9]\d*$/.test(e)?this._formatFileSize(parseInt(e,10)):"NaN size"}_formatFileSize(e){return e>=Ze?Math.round(e/Ze)+" GB":e>=Je?Math.round(e/Je)+" MB":e>=1024?Math.round(e/1024)+" KB":Math.round(e)+" bytes"}}Ai([Ge({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Ai([Ge({type:String})],e.prototype,"error",void 0),Ai([Ge({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Ai([Ge({type:String})],e.prototype,"label",void 0),Ai([Ge({type:String,attribute:"lang",reflect:!0,converter:oi})],e.prototype,"language",void 0),Ai([Ge({type:String})],e.prototype,"message",void 0),Ai([Ge({type:Boolean})],e.prototype,"disabled",void 0),Ai([Ge({type:Boolean})],e.prototype,"requiredIcon",void 0),Ai([Ge({type:Boolean,attribute:"hidden",reflect:!0,converter:ni})],e.prototype,"visible",void 0),Ai([Ge({type:Array})],e.prototype,"files",void 0),Ai([Fe()],e.prototype,"_isDraging",void 0),Ai([qe(".kuc-attachment-1-17-1__group__files")],e.prototype,"_groupFilesEl",void 0),Ai([qe(".kuc-attachment-1-17-1__group__files__droppable__text")],e.prototype,"_dragTextEl",void 0),Ai([qe(".kuc-attachment-1-17-1__group__files__browse-button__input-container__input")],e.prototype,"_inputEl",void 0),Ai([qe(".kuc-attachment-1-17-1__group__label")],e.prototype,"_labelEl",void 0),Ai([Ye(".kuc-attachment-1-17-1__group__files__display-area__item__name")],e.prototype,"_fileItemsEl",void 0),Ai([Ye(".kuc-attachment-1-17-1__group__files__display-area__item__remove-button__container__button")],e.prototype,"_fileRemoveButtons",void 0),window.customElements.define("kuc-attachment-1-17-1",e),mi('\n kuc-attachment-1-17-1,\n kuc-attachment-1-17-1 *,\n kuc-attachment-1-17-1:lang(en),\n kuc-attachment-1-17-1:lang(en) * {\n font-family: sans-serif;\n }\n kuc-attachment-1-17-1:lang(ja),\n kuc-attachment-1-17-1:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo,\n sans-serif;\n }\n kuc-attachment-1-17-1:lang(zh),\n kuc-attachment-1-17-1:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti,\n Hei, "Heiti SC", sans-serif;\n }\n kuc-attachment-1-17-1:lang(zh-TW),\n kuc-attachment-1-17-1:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-attachment-1-17-1 {\n font-size: 14px;\n display: inline-table;\n vertical-align: top;\n width: var(--kuc-attachment-width, 191px);\n min-width: var(--kuc-attachment-width, 191px);\n }\n kuc-attachment-1-17-1[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-1__group {\n width: 100%;\n height: auto;\n box-sizing: border-box;\n position: relative;\n display: block;\n }\n .kuc-attachment-1-17-1__group__label {\n display: inline-block;\n padding: 4px 0 8px 0;\n color: #333333;\n white-space: nowrap;\n }\n .kuc-attachment-1-17-1__group__label[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-1__group__files {\n border: solid 1px #e3e7e8;\n background-color: #eeeeee;\n padding: 16px 4px;\n display: block;\n font-size: 14px;\n overflow: hidden;\n position: relative;\n box-sizing: border-box;\n width: var(--kuc-attachment-width, auto);\n height: var(--kuc-attachment-height, auto);\n }\n .kuc-attachment-1-17-1__group__files--disabled {\n cursor: not-allowed;\n }\n .kuc-attachment-1-17-1__group__files__browse-button {\n border: 1px solid transparent;\n position: relative;\n display: inline-block;\n margin-right: 16px;\n padding: 8px;\n text-decoration: none;\n }\n .kuc-attachment-1-17-1__group__files__browse-button[hidden]{\n display: none;\n }\n .kuc-attachment-1-17-1__group__files__browse-button:focus-within {\n border: 1px solid #3498db;\n }\n .kuc-attachment-1-17-1__group__files__browse-button:hover\n .kuc-attachment-1-17-1__group__files__browse-button__text {\n color: #217dbb;\n }\n .kuc-attachment-1-17-1__group__files__browse-button__text {\n color: #3498db;\n font-size: 14px;\n }\n .kuc-attachment-1-17-1__group__files__browse-button__input-container {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n display: inline-block;\n }\n .kuc-attachment-1-17-1__group__files__browse-button__input-container__input {\n cursor: pointer;\n font-size: 999px;\n vertical-align: middle;\n height: 100%;\n width: 100%;\n line-height: 1.5;\n }\n .kuc-attachment-1-17-1__group__files__display-area {\n padding-inline-start: 0px;\n list-style-type: disc;\n margin-block-start: 0em;\n margin-block-end: 0em;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item {\n position: relative;\n margin-bottom: 8px;\n height: auto;\n min-height: 24px;\n border: 2px solid #f1f4f5;\n background-color: #f1f4f5;\n list-style: none;\n display: flex;\n align-items: center;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item__name {\n display: inline-block;\n padding: 3px calc(4.6em + 4px) 3px 26px;\n width: 100%;\n max-width: 177px;\n box-sizing: border-box;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n word-wrap: normal;\n font-size: var(--kuc-attachment-item-font-size, 14px);\n line-height: 1.2;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item__remove-button__container {\n display: inline-block;\n position: absolute;\n top: calc(50% - 12px);\n left: 0;\n width: 24px;\n height: 24px;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item__remove-button__container[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item__remove-button__container__button {\n background-color: #f2f4f6;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid transparent;\n padding: 0px;\n width:100%;\n height:100%;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item__remove-button__container__button:hover {\n background: #d8e1e6;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item__remove-button__container__button:focus-within {\n border: 1px solid #3498db;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item__remove-button__container__button:focus {\n outline: none;\n }\n .kuc-attachment-1-17-1__group__files__display-area__item__size {\n display: inline-block;\n position: absolute;\n right: 0;\n color: #888888;\n padding: 0 3px 0 0;\n max-width: 4.6em;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n word-wrap: normal;\n font-size: var(--kuc-attachment-item-font-size, 14px);\n line-height: 1.2;\n }\n .kuc-attachment-1-17-1__group__files__droppable {\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n margin: auto 0;\n }\n .kuc-attachment-1-17-1__group__files__droppable[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-1__group__files__droppable__text {\n background-color: #e2f2fe;\n border: dashed 2px #3498db;\n display: table-cell;\n vertical-align: middle;\n text-align: center;\n color: #3498db;\n font-size: 14px;\n }\n .kuc-attachment-1-17-1__group__files__browse-message {\n display: inline-block;\n color: var(--kuc-attachment-message-color, #888888);\n font-size: var(--kuc-attachment-message-font-size, 14px);\n margin: 3px 0 0;\n word-break: break-all;\n }\n .kuc-attachment-1-17-1__group__files__browse-message--disabled {\n color: #888888;\n }\n .kuc-attachment-1-17-1__group__files__browse-message[hidden] {\n display: none;\n }\n .kuc-attachment-1-17-1__group__files__not-droppable--dragenter {\n visibility: hidden;\n }\n'),Di=e}})();var Vi=function(e,t,i,n){var o,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};let Li;(()=>{if(Li=window.customElements.get("kuc-button-1-17-1"),!Li){class e extends bi{constructor(e){super(),this.className="",this.id="",this.text="",this.type="normal",this.content="",this.disabled=!1,this.visible=!0;const t=vi(e);Object.assign(this,t)}_handleClickButton(e){e.stopPropagation(),gi(this,"click")}_getButtonColorType(){return"normal"===this.type||"submit"===this.type||"alert"===this.type?this.type:"normal"}render(){return we` - `}}Vi([Fe({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Vi([Fe({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Vi([Fe({type:String})],e.prototype,"text",void 0),Vi([Fe({type:String})],e.prototype,"type",void 0),Vi([Fe()],e.prototype,"content",void 0),Vi([Fe({type:Boolean})],e.prototype,"disabled",void 0),Vi([Fe({type:Boolean,attribute:"hidden",reflect:!0,converter:oi})],e.prototype,"visible",void 0),window.customElements.define("kuc-button-1-17-0",e),mi('\n kuc-button-1-17-0,\n kuc-button-1-17-0 *,\n kuc-button-1-17-0:lang(en),\n kuc-button-1-17-0:lang(en) * {\n font-family: sans-serif;\n }\n kuc-button-1-17-0:lang(ja),\n kuc-button-1-17-0:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;\n }\n kuc-button-1-17-0:lang(zh),\n kuc-button-1-17-0:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, Hei,\n "Heiti SC", sans-serif;\n }\n kuc-button-1-17-0:lang(zh-TW),\n kuc-button-1-17-0:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-button-1-17-0 {\n display: inline-block;\n vertical-align: top;\n }\n kuc-button-1-17-0[hidden] {\n display: none;\n }\n .kuc-button-1-17-0__button {\n display: grid;\n align-items: center;\n align-content: center;\n font-size: var(--kuc-button-font-size, 16px);\n width: var(--kuc-button-width, "auto");\n height: var(--kuc-button-height, 48px);\n min-width: var(--kuc-button-width, 163px);\n padding: 0px 16px;\n user-select: none;\n white-space: nowrap;\n }\n .kuc-button-1-17-0__button--normal {\n background-color: var(--kuc-button-background-color, #f7f9fa);\n color: var(--kuc-button-text-color, #3498db);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-17-0__button--normal:hover,\n .kuc-button-1-17-0__button--normal:focus-visible,\n .kuc-button-1-17-0__button--normal:active {\n cursor: pointer;\n }\n .kuc-button-1-17-0__button--normal:hover {\n background-color: var(--kuc-button-background-color-hover, #c8d6dd);\n }\n .kuc-button-1-17-0__button--normal:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #c8d6dd);\n }\n .kuc-button-1-17-0__button--normal:active {\n background-color: var(--kuc-button-background-color-active, #c8d6dd);\n }\n .kuc-button-1-17-0__button--submit {\n background-color: var(--kuc-button-background-color, #3498db);\n color: var(--kuc-button-text-color, #ffffff);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-17-0__button--submit:hover,\n .kuc-button-1-17-0__button--submit:focus-visible,\n .kuc-button-1-17-0__button--submit:active {\n cursor: pointer;\n }\n .kuc-button-1-17-0__button--submit:hover {\n background-color: var(--kuc-button-background-color-hover, #1d6fa5);\n }\n .kuc-button-1-17-0__button--submit:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #1d6fa5);\n }\n .kuc-button-1-17-0__button--submit:active {\n background-color: var(--kuc-button-background-color-active, #1d6fa5);\n }\n .kuc-button-1-17-0__button--alert {\n background-color: var(--kuc-button-background-color, #e74c3c);\n color: var(--kuc-button-text-color, #ffffff);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-17-0__button--alert:hover,\n .kuc-button-1-17-0__button--alert:focus-visible,\n .kuc-button-1-17-0__button--alert:active {\n cursor: pointer;\n }\n .kuc-button-1-17-0__button--alert:hover {\n background-color: var(--kuc-button-background-color-hover, #bf2718);\n }\n .kuc-button-1-17-0__button--alert:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #bf2718);\n }\n .kuc-button-1-17-0__button--alert:active {\n background-color: var(--kuc-button-background-color-active, #bf2718);\n }\n .kuc-button-1-17-0__button:disabled {\n background-color: #d4d7d7;\n border: 1px solid #e3e7e8;\n color: #888888;\n cursor: not-allowed;\n }\n .kuc-button-1-17-0__button--normal:focus-visible,\n .kuc-button-1-17-0__button--submit:focus-visible,\n .kuc-button-1-17-0__button--alert:focus-visible {\n outline: 1px solid #3498db;\n }\n'),Li=e}})();const Hi=Li;var Mi=function(e,t,i,n){var o,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Bi extends bi{constructor(){super(...arguments),this.ariaLive="",this.guid="",this.text=""}render(){return $e` - ${this.ariaLive&&""!==this.ariaLive?$e` + `}}Vi([Ge({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Vi([Ge({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Vi([Ge({type:String})],e.prototype,"text",void 0),Vi([Ge({type:String})],e.prototype,"type",void 0),Vi([Ge()],e.prototype,"content",void 0),Vi([Ge({type:Boolean})],e.prototype,"disabled",void 0),Vi([Ge({type:Boolean,attribute:"hidden",reflect:!0,converter:ni})],e.prototype,"visible",void 0),window.customElements.define("kuc-button-1-17-1",e),mi('\n kuc-button-1-17-1,\n kuc-button-1-17-1 *,\n kuc-button-1-17-1:lang(en),\n kuc-button-1-17-1:lang(en) * {\n font-family: sans-serif;\n }\n kuc-button-1-17-1:lang(ja),\n kuc-button-1-17-1:lang(ja) * {\n font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;\n }\n kuc-button-1-17-1:lang(zh),\n kuc-button-1-17-1:lang(zh) * {\n font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, Hei,\n "Heiti SC", sans-serif;\n }\n kuc-button-1-17-1:lang(zh-TW),\n kuc-button-1-17-1:lang(zh-TW) * {\n font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti,\n Hei,"Heiti SC",sans-serif;\n }\n kuc-button-1-17-1 {\n display: inline-block;\n vertical-align: top;\n }\n kuc-button-1-17-1[hidden] {\n display: none;\n }\n .kuc-button-1-17-1__button {\n display: grid;\n align-items: center;\n align-content: center;\n font-size: var(--kuc-button-font-size, 16px);\n width: var(--kuc-button-width, "auto");\n height: var(--kuc-button-height, 48px);\n min-width: var(--kuc-button-width, 163px);\n padding: 0px 16px;\n user-select: none;\n white-space: nowrap;\n }\n .kuc-button-1-17-1__button--normal {\n background-color: var(--kuc-button-background-color, #f7f9fa);\n color: var(--kuc-button-text-color, #3498db);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-17-1__button--normal:hover,\n .kuc-button-1-17-1__button--normal:focus-visible,\n .kuc-button-1-17-1__button--normal:active {\n cursor: pointer;\n }\n .kuc-button-1-17-1__button--normal:hover {\n background-color: var(--kuc-button-background-color-hover, #c8d6dd);\n }\n .kuc-button-1-17-1__button--normal:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #c8d6dd);\n }\n .kuc-button-1-17-1__button--normal:active {\n background-color: var(--kuc-button-background-color-active, #c8d6dd);\n }\n .kuc-button-1-17-1__button--submit {\n background-color: var(--kuc-button-background-color, #3498db);\n color: var(--kuc-button-text-color, #ffffff);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-17-1__button--submit:hover,\n .kuc-button-1-17-1__button--submit:focus-visible,\n .kuc-button-1-17-1__button--submit:active {\n cursor: pointer;\n }\n .kuc-button-1-17-1__button--submit:hover {\n background-color: var(--kuc-button-background-color-hover, #1d6fa5);\n }\n .kuc-button-1-17-1__button--submit:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #1d6fa5);\n }\n .kuc-button-1-17-1__button--submit:active {\n background-color: var(--kuc-button-background-color-active, #1d6fa5);\n }\n .kuc-button-1-17-1__button--alert {\n background-color: var(--kuc-button-background-color, #e74c3c);\n color: var(--kuc-button-text-color, #ffffff);\n border: 1px solid #e3e7e8;\n }\n .kuc-button-1-17-1__button--alert:hover,\n .kuc-button-1-17-1__button--alert:focus-visible,\n .kuc-button-1-17-1__button--alert:active {\n cursor: pointer;\n }\n .kuc-button-1-17-1__button--alert:hover {\n background-color: var(--kuc-button-background-color-hover, #bf2718);\n }\n .kuc-button-1-17-1__button--alert:focus-visible {\n background-color: var(--kuc-button-background-color-focus, #bf2718);\n }\n .kuc-button-1-17-1__button--alert:active {\n background-color: var(--kuc-button-background-color-active, #bf2718);\n }\n .kuc-button-1-17-1__button:disabled {\n background-color: #d4d7d7;\n border: 1px solid #e3e7e8;\n color: #888888;\n cursor: not-allowed;\n }\n .kuc-button-1-17-1__button--normal:focus-visible,\n .kuc-button-1-17-1__button--submit:focus-visible,\n .kuc-button-1-17-1__button--alert:focus-visible {\n outline: 1px solid #3498db;\n }\n'),Li=e}})();const Hi=Li;var Mi=function(e,t,i,n){var o,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Bi extends bi{constructor(){super(...arguments),this.ariaLive="",this.guid="",this.text=""}render(){return we` + ${this.ariaLive&&""!==this.ariaLive?we` - `:$e` + `:we`